:root {
    color-scheme: light;
    --ink: #111827;
    --muted: #667085;
    --line: #e5e7eb;
    --surface: #f7f8fb;
    --primary: #0f766e;
    --primary-dark: #115e59;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--ink);
    background: #fff;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.navbar-brand {
    font-weight: 800;
}

.brand-mark {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    color: #fff;
    background: var(--primary);
    border-radius: 8px;
}

.nav-link {
    font-weight: 650;
}

.hero-section {
    min-height: calc(100vh - 78px);
    display: flex;
    align-items: center;
    padding: 72px 0;
    background:
        linear-gradient(120deg, rgba(15, 118, 110, .11), rgba(37, 99, 235, .08)),
        #fff;
}

.eyebrow {
    margin-bottom: 12px;
    color: var(--primary-dark);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0;
}

h1 {
    max-width: 720px;
    font-size: clamp(2.5rem, 7vw, 5.75rem);
    line-height: .95;
    letter-spacing: 0;
    font-weight: 850;
}

h2,
h3 {
    letter-spacing: 0;
    font-weight: 800;
}

.lead {
    max-width: 620px;
    color: var(--muted);
    font-size: 1.18rem;
}

.btn {
    border-radius: 8px;
    font-weight: 750;
}

.btn-primary {
    border-color: var(--primary);
    background: var(--primary);
}

.btn-primary:hover {
    border-color: var(--primary-dark);
    background: var(--primary-dark);
}

.section-heading {
    max-width: 760px;
    margin-bottom: 28px;
}

.section-heading h1,
.section-heading h2 {
    margin-bottom: 10px;
    font-size: clamp(2rem, 5vw, 3.4rem);
    line-height: 1;
}

.section-heading p {
    color: var(--muted);
    font-size: 1.05rem;
}

.wallet-card {
    position: relative;
    overflow: hidden;
    min-height: 300px;
    padding: 28px;
    color: #fff;
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--card-color) 90%, #000), #111827 72%);
    border-radius: 22px;
    box-shadow: 0 28px 70px rgba(17, 24, 39, .22);
}

.wallet-card::after {
    content: "";
    position: absolute;
    inset: auto -20% -40% 30%;
    height: 190px;
    background: rgba(255, 255, 255, .10);
    transform: rotate(-8deg);
}

.wallet-card > * {
    position: relative;
    z-index: 1;
}

.wallet-card h2 {
    margin: 6px 0 0;
    font-size: clamp(1.8rem, 4vw, 3rem);
}

.wallet-kicker {
    color: rgba(255, 255, 255, .75);
    font-weight: 800;
}

.qr-box {
    display: grid;
    width: 86px;
    height: 86px;
    place-items: center;
    color: var(--ink);
    background: #fff;
    border-radius: 12px;
    font-weight: 900;
}

.progress {
    height: 12px;
    background: rgba(255, 255, 255, .25);
    border-radius: 999px;
}

.progress-bar {
    background: #fff;
}

.is-complete {
    --card-color: #2563eb;
}

.home-hero {
    min-height: calc(100vh - 78px);
    display: flex;
    align-items: center;
    padding: 84px 0 54px;
    background: #f4f1ec;
}

.home-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
    gap: 44px;
    align-items: center;
}

.home-hero-copy h1 {
    max-width: 820px;
    margin-bottom: 22px;
    text-transform: uppercase;
}

.home-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.home-hero-device {
    display: flex;
    justify-content: center;
}

.home-phone {
    width: min(100%, 390px);
    padding: 18px;
    color: #111827;
    background: #fff;
    border: 1px solid rgba(17, 24, 39, .16);
    border-radius: 28px;
    box-shadow: 0 30px 80px rgba(17, 24, 39, .22);
}

.home-phone-header {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 16px;
    color: #fff;
    background: #111827;
    border-radius: 18px;
    font-weight: 900;
}

.home-phone-header small {
    color: rgba(255, 255, 255, .72);
    font-weight: 800;
}

.home-qr-card,
.home-points-card {
    display: grid;
    gap: 9px;
    margin-top: 14px;
    padding: 16px;
    background: #f9fafb;
    border: 1px solid var(--line);
    border-radius: 14px;
}

.home-qr {
    margin: 0 auto;
    border: 1px solid var(--line);
}

.home-qr-card strong {
    text-align: center;
}

.home-qr-card span,
.home-points-card small {
    color: var(--muted);
    text-align: center;
    font-weight: 750;
}

.home-points-card strong {
    font-size: 1.45rem;
}

.home-banner-preview {
    overflow: hidden;
    margin-top: 14px;
    aspect-ratio: 16 / 7;
    border-radius: 14px;
}

.home-banner-preview img,
.showcase-banner-stack img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.local-proof-section,
.home-features-section,
.home-showcase-section,
.home-cta-section {
    padding: 70px 0;
}

.proof-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
}

.proof-heading h2 {
    max-width: 650px;
    margin: 0;
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1;
}

.proof-heading a {
    color: var(--primary-dark);
    font-weight: 900;
    text-decoration: none;
}

.shop-marquee {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(220px, 1fr);
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.shop-marquee a {
    display: grid;
    gap: 6px;
    min-height: 118px;
    padding: 18px;
    color: #111827;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    text-decoration: none;
}

.shop-marquee span {
    color: var(--muted);
    font-weight: 750;
}

.home-features-section {
    background: #111827;
    color: #fff;
}

.home-features-section .section-heading p {
    color: rgba(255, 255, 255, .72);
}

.home-feature-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.home-feature-grid article {
    padding: 22px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 8px;
}

.home-feature-grid span {
    color: #d6b28a;
    font-weight: 900;
}

.home-feature-grid p {
    color: rgba(255, 255, 255, .72);
}

.home-showcase-grid {
    display: grid;
    grid-template-columns: minmax(0, .85fr) minmax(320px, 1.15fr);
    gap: 34px;
    align-items: center;
}

.home-showcase-grid h2,
.home-cta h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1;
}

.home-showcase-grid p,
.home-cta p {
    color: var(--muted);
    font-size: 1.05rem;
}

.showcase-banner-stack {
    display: grid;
    gap: 14px;
}

.showcase-banner-stack img {
    aspect-ratio: 16 / 6;
    border-radius: 8px;
    box-shadow: 0 18px 45px rgba(17, 24, 39, .14);
}

.home-cta {
    padding: 38px;
    background: #f4f1ec;
    border-radius: 8px;
}

.business-grid,
.metric-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.business-card,
.metric-card,
.panel-block,
.admin-table {
    padding: 22px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 12px 34px rgba(17, 24, 39, .06);
}

.business-dot {
    display: block;
    width: 42px;
    height: 6px;
    margin-bottom: 18px;
    border-radius: 999px;
}

.business-card h2,
.business-card h3 {
    font-size: 1.2rem;
}

.business-card p {
    color: var(--muted);
}

.business-card-banner {
    width: 100%;
    aspect-ratio: 2 / 1;
    object-fit: cover;
    margin-bottom: 16px;
    border-radius: 8px;
}

.meta-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: var(--muted);
    font-size: .92rem;
}

.promo-strip {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(260px, 1fr);
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.promo-strip article {
    display: grid;
    gap: 10px;
    min-height: 150px;
    padding: 18px;
    color: #fff;
    background: #111827;
    border-radius: 8px;
}

.promo-strip span {
    color: rgba(255, 255, 255, .78);
}

.customer-app-shell {
    min-height: 100vh;
    padding: 22px 12px 34px;
    background: radial-gradient(circle at 50% 0, #ffffff, #f3f4f1 72%);
}

.member-app {
    position: relative;
    min-height: 100vh;
    padding: 16px 16px 92px;
    color: var(--ink);
    background: radial-gradient(circle at 50% 0, #ffffff, #eef7f4 72%);
}

.member-home-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.member-mini-logo,
.member-avatar {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    color: #fff;
    background: #fff;
    border-radius: 8px;
    font-weight: 900;
    text-decoration: none;
}

.member-avatar {
    color: var(--primary-dark);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 1.9rem;
}

.member-avatar i {
    line-height: 1;
}

.member-mini-logo {
    background: var(--primary);
}

.member-home,
.member-settings,
.member-card-screen {
    max-width: 720px;
    margin: 0 auto;
}

.member-card-screen .loyalty-phone-card {
    max-width: 680px;
    border-radius: 18px;
}

.shop-loyalty-card {
    margin-bottom: 12px;
}

.loyalty-header.shop-loyalty-header {
    grid-template-columns: 72px 1fr;
    min-height: 126px;
    padding: 22px 26px;
    background:
        radial-gradient(circle at 88% 18%, color-mix(in srgb, var(--shop-secondary) 34%, transparent), transparent 34%),
        linear-gradient(135deg, color-mix(in srgb, var(--shop-primary) 82%, #000), var(--shop-primary));
}

.loyalty-header.shop-loyalty-header .shop-card-mark {
    width: 64px;
    height: 64px;
    color: var(--shop-primary);
    background: #fff;
    border: 3px solid rgba(255, 255, 255, .82);
    font-size: 2rem;
    font-weight: 950;
}

.loyalty-header.shop-loyalty-header h1 {
    font-size: clamp(1.9rem, 8vw, 3.1rem);
    line-height: .95;
}

.loyalty-header.shop-loyalty-header p {
    margin-top: 10px;
    font-size: clamp(.95rem, 3.2vw, 1.35rem);
    letter-spacing: .18em;
}

.member-home h1,
.member-settings h1 {
    max-width: none;
    margin: 0 0 20px;
    font-size: clamp(1.45rem, 5vw, 2rem);
    line-height: 1.2;
    text-align: center;
}

.member-section {
    margin-top: 18px;
}

.member-section h2 {
    margin-bottom: 12px;
    font-size: 1.28rem;
}

.member-list-card {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 16px 14px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 12px 32px rgba(17, 24, 39, .04);
}

.member-list-card + .member-list-card {
    margin-top: 14px;
}

.member-list-card strong {
    display: block;
    font-size: 1.1rem;
}

.member-list-card small {
    display: block;
    margin-top: 8px;
    color: var(--primary-dark);
    font-size: .72rem;
    font-weight: 900;
    text-transform: uppercase;
}

.member-reward-icon {
    display: grid;
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    place-items: center;
    color: #8aa1c7;
    font-size: 1.35rem;
}

.member-list-card p {
    margin: 6px 0 0;
}

.member-card {
    overflow: hidden;
    max-width: 680px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 18px 55px rgba(17, 24, 39, .10);
}

.member-card-hero {
    position: relative;
    min-height: 350px;
    display: flex;
    align-items: flex-start;
    padding: 34px 30px;
    color: #fff;
    background:
        radial-gradient(circle at 70% 12%, color-mix(in srgb, var(--shop-primary) 25%, transparent), transparent 34%),
        linear-gradient(135deg, color-mix(in srgb, var(--shop-primary) 80%, #000), #111827);
}

.member-card-hero img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-card-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(17, 24, 39, .62), rgba(17, 24, 39, .18));
}

.member-card-hero > div {
    position: relative;
    z-index: 1;
}

.member-card-hero h1 {
    max-width: 410px;
    margin: 0;
    color: #fff;
    font-size: clamp(2.6rem, 8vw, 4.4rem);
    line-height: .9;
    text-transform: uppercase;
}

.member-card-hero p {
    margin-top: 20px;
    color: rgba(255, 255, 255, .82);
    font-size: clamp(1.2rem, 4vw, 1.9rem);
    letter-spacing: .32em;
}

.member-card-body {
    display: grid;
    justify-items: center;
    gap: 12px;
    padding: 24px 18px 56px;
}

.member-card-body > span {
    color: var(--primary-dark);
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.member-card-body > strong {
    font-size: 1.35rem;
}

.member-stars {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 7px;
    color: #d7dce3;
    font-size: 2.05rem;
    line-height: 1;
}

.member-stars .is-filled {
    color: var(--primary);
}

.member-qr {
    width: min(220px, 58vw);
    margin-top: 18px;
}

.member-qr img,
.member-qr canvas {
    width: 100%;
    height: auto;
}

.member-settings h1 {
    padding: 2px 0 18px;
    border-bottom: 1px solid var(--line);
}

.settings-list {
    overflow: hidden;
    margin-top: 16px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
}

.settings-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-height: 56px;
    padding: 0 10px;
    color: var(--ink);
    border-bottom: 1px solid var(--line);
    font-weight: 850;
    text-decoration: none;
}

.settings-list a:last-child {
    border-bottom: 0;
}

.settings-list span {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 999px;
}

.member-tabbar {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 10;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    min-height: 64px;
    background: #fff;
    border-top: 1px solid var(--line);
}

.member-tabbar a {
    display: grid;
    place-items: center;
    color: #7b8794;
    text-decoration: none;
}

.member-tabbar a.active {
    color: var(--primary);
    box-shadow: inset 0 4px 0 var(--primary);
}

.member-tabbar i {
    font-size: 1.35rem;
}

.loyalty-phone-card {
    max-width: 830px;
    margin: 0 auto;
    overflow: hidden;
    background: #fffdf8;
    border: 1px solid rgba(17, 24, 39, .45);
    border-radius: 48px;
    box-shadow: 0 22px 70px rgba(17, 24, 39, .18);
}

.loyalty-header {
    position: relative;
    display: grid;
    grid-template-columns: 154px 1fr;
    gap: 28px;
    align-items: center;
    min-height: 188px;
    padding: 24px 110px 24px 135px;
    color: #fff;
    background:
        radial-gradient(circle at 28% 15%, rgba(73, 133, 66, .55), transparent 38%),
        linear-gradient(135deg, color-mix(in srgb, var(--shop-primary, #0d321d) 72%, #0b0f0d), var(--shop-primary, #123f22) 54%, #102d1c);
}

.loyalty-header h1 {
    margin: 0;
    max-width: none;
    font-size: clamp(2rem, 5vw, 3.6rem);
    line-height: 1;
    font-weight: 900;
    letter-spacing: .18em;
    text-shadow: 0 2px 1px rgba(0, 0, 0, .22);
}

.loyalty-header p {
    margin: 18px 0 0;
    color: #a9bf8e;
    font-size: clamp(1rem, 3vw, 1.7rem);
    font-weight: 800;
    letter-spacing: .22em;
}

.tree-badge {
    display: grid;
    width: 132px;
    height: 132px;
    place-items: center;
    color: #fff;
    border: 6px solid #fff;
    border-radius: 999px;
}

.tree-badge i {
    font-size: 4.15rem;
    line-height: 1;
}

.leaf {
    position: absolute;
    width: 128px;
    height: 128px;
    opacity: .44;
    background:
        radial-gradient(ellipse at 50% 20%, rgba(154, 204, 125, .65), transparent 56%),
        repeating-linear-gradient(135deg, transparent 0 13px, rgba(168, 216, 134, .35) 14px 16px);
    clip-path: polygon(50% 0, 68% 20%, 88% 42%, 100% 72%, 70% 70%, 42% 86%, 20% 72%, 0 74%, 10% 40%, 28% 18%);
}

.leaf-left {
    left: 0;
    top: 18px;
    transform: rotate(-30deg);
}

.leaf-right {
    right: 0;
    top: 18px;
    transform: scaleX(-1) rotate(-30deg);
}

.loyalty-body {
    padding: 26px 42px 24px;
}

.qr-section {
    display: grid;
    justify-items: center;
    text-align: center;
}

.qr-section p {
    margin: 0 0 10px;
    color: #555b63;
    font-size: 1.35rem;
    font-weight: 750;
}

.qr-frame {
    width: min(296px, 70vw);
    padding: 18px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 8px 24px rgba(17, 24, 39, .15);
}

.qr-frame img {
    display: block;
    width: 100%;
}

.qr-section strong {
    margin-top: 10px;
    padding: 9px 28px;
    color: #111;
    background: rgba(229, 231, 219, .82);
    border-radius: 12px;
    font-size: 1.45rem;
    line-height: 1.2;
}

.customer-row {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    margin: 24px 0 0;
    padding: 0 4px 24px;
    border-bottom: 1px solid rgba(17, 24, 39, .14);
}

.customer-meta {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    color: #111;
    font-size: 1.4rem;
    font-weight: 800;
}

.customer-meta svg {
    width: 39px;
    height: 39px;
    fill: none;
    stroke: #174b24;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.customer-zip {
    color: #174b24;
}

.visits-panel {
    padding: 22px 0 28px;
}

.visits-panel h2 {
    margin-bottom: 18px;
    font-size: 1.55rem;
}

.stamp-row {
    display: grid;
    grid-template-columns: repeat(var(--stamp-count, 10), minmax(0, 1fr));
    gap: 18px;
}

.stamp {
    display: grid;
    aspect-ratio: 1;
    place-items: center;
    color: #b8bdc1;
    border: 2px dashed #b8bdc1;
    border-radius: 999px;
}

.stamp.is-filled {
    color: #fff;
    background: radial-gradient(circle at 30% 25%, #6cab55, #2d7a2f);
    border-color: #2d7a2f;
    box-shadow: inset 0 4px 8px rgba(255, 255, 255, .16);
}

.stamp i {
    font-size: 1.35rem;
    line-height: 1;
}

.visit-count {
    margin: 16px 0 8px;
    color: #111;
    font-size: 1.55rem;
    font-weight: 850;
}

.visit-count strong {
    color: #3f8e3b;
    font-size: 3rem;
    line-height: 1;
}

.loyalty-progress {
    height: 12px;
    overflow: hidden;
    background: #e5e5e5;
    border-radius: 999px;
}

.loyalty-progress span {
    display: block;
    height: 100%;
    background: #438b39;
    border-radius: inherit;
}

.reward-callout {
    display: grid;
    grid-template-columns: 70px 1fr;
    gap: 16px;
    align-items: center;
    margin-top: 20px;
    padding: 18px 24px;
    background: linear-gradient(135deg, #f4f4f1, #e9e9e4);
    border-radius: 10px;
}

.reward-callout svg {
    width: 50px;
    height: 50px;
    fill: none;
    stroke: #174b24;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.reward-callout strong,
.reward-callout span {
    display: block;
    font-size: 1.28rem;
}

.reward-callout strong {
    color: #111;
}

.reward-callout span {
    color: #286c25;
    font-weight: 850;
}

.generic-card-panel p {
    margin: 0 0 14px;
    color: #667085;
    line-height: 1.45;
}

.partners-panel {
    margin: 0 -42px;
    padding: 22px 34px 8px;
    border-top: 1px solid rgba(17, 24, 39, .14);
}

.partners-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}

.partners-heading h2 {
    margin: 0;
    color: #707070;
    font-size: 1.1rem;
    text-transform: uppercase;
}

.partners-heading a {
    color: #2f7a2f;
    font-weight: 800;
    text-decoration: none;
}

.partner-banner {
    display: none;
    overflow: hidden;
    min-height: 184px;
    color: #fff;
    background: #111;
    border-radius: 14px;
}

.partner-banner.active {
    display: block;
}

.partner-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.partner-banner-fallback {
    display: grid;
    min-height: 184px;
    place-items: center;
    padding: 26px;
    color: #fff;
    font-size: 2rem;
    font-weight: 900;
    text-align: center;
}

.partner-banner-fallback span {
    display: block;
    margin-top: 8px;
    font-size: 1rem;
    font-weight: 700;
    opacity: .78;
}

.partner-banner div {
    display: grid;
    align-content: center;
    padding: 20px 24px;
}

.partner-banner h3 {
    margin: 0 0 8px;
    font-family: Georgia, serif;
    font-size: clamp(1.5rem, 4vw, 2.65rem);
    font-weight: 500;
    text-transform: uppercase;
}

.partner-banner strong {
    color: #ffd86a;
    font-size: clamp(1.2rem, 3vw, 2.2rem);
    line-height: 1;
    text-transform: uppercase;
}

.partner-banner span {
    font-size: 1.35rem;
}

.partner-banner a {
    width: fit-content;
    margin-top: 12px;
    padding: 10px 24px;
    color: #fff;
    background: #438b39;
    border-radius: 8px;
    font-weight: 850;
    text-decoration: none;
    text-transform: uppercase;
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 11px;
    margin-top: 16px;
}

.slider-dots span {
    width: 11px;
    height: 11px;
    background: #a9a9a9;
    border-radius: 999px;
}

.slider-dots .active {
    background: #438b39;
}

.customer-tabbar {
    position: fixed;
    right: max(0px, calc((100vw - 830px) / 2));
    bottom: 0;
    left: max(0px, calc((100vw - 830px) / 2));
    z-index: 20;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2px;
    padding: 13px 32px 17px;
    background: rgba(255, 255, 255, .94);
    border-top: 1px solid rgba(17, 24, 39, .12);
    border-radius: 34px 34px 0 0;
    box-shadow: 0 -10px 28px rgba(17, 24, 39, .08);
}

.customer-tabbar a {
    display: grid;
    justify-items: center;
    gap: 5px;
    min-width: 0;
    color: #636363;
    font-size: 1rem;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
}

.customer-tabbar i {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    color: inherit;
    font-size: 1.55rem;
    line-height: 1;
}

.customer-tabbar span {
    font-size: .88rem;
    line-height: 1.1;
}

.customer-tabbar .active {
    color: #327d30;
}

.pwa-install-card {
    position: fixed;
    right: 18px;
    bottom: 18px;
    left: 18px;
    z-index: 80;
    display: grid;
    grid-template-columns: 46px 1fr auto;
    gap: 12px;
    align-items: center;
    max-width: 520px;
    margin: 0 auto;
    padding: 26px 18px 16px;
    background: rgba(255, 255, 255, .96);
    border: 1px solid rgba(15, 23, 42, .12);
    border-radius: 18px 18px 0 0;
    box-shadow: 0 -18px 42px rgba(15, 23, 42, .22);
    backdrop-filter: blur(18px);
}

.pwa-install-card[hidden] {
    display: none;
}

.pwa-install-grip {
    position: absolute;
    top: 10px;
    left: 50%;
    width: 46px;
    height: 5px;
    background: #d6d9df;
    border-radius: 999px;
    transform: translateX(-50%);
}

.pwa-install-close {
    position: absolute;
    top: 8px;
    right: 10px;
    display: grid;
    width: 26px;
    height: 26px;
    place-items: center;
    color: #64748b;
    background: transparent;
    border: 0;
    font-size: 1.25rem;
    line-height: 1;
}

.pwa-install-icon {
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, var(--primary), #1f8a3b);
    border-radius: 12px;
    font-weight: 950;
}

.pwa-install-copy {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.pwa-install-copy strong {
    color: var(--ink);
    font-size: 1rem;
}

.pwa-install-copy span {
    color: #64748b;
    font-size: .88rem;
}

.pwa-install-button {
    min-height: 42px;
    padding: 0 18px;
    color: #fff;
    background: var(--primary);
    border: 0;
    border-radius: 999px;
    box-shadow: 0 8px 18px rgba(15, 118, 110, .28);
    font-weight: 850;
}

.pwa-install-button:disabled {
    color: #334155;
    background: #d8e6df;
    box-shadow: none;
}

body:has(.customer-tabbar) .pwa-install-card,
body:has(.member-tabbar) .pwa-install-card {
    bottom: 82px;
    border-radius: 18px;
}

.partner-dashboard {
    background: #f7f8fb;
}

.partner-topbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.partner-topbar h1 {
    margin-bottom: 8px;
    font-size: clamp(2.2rem, 5vw, 4.5rem);
}

.partner-topbar p:last-child {
    margin: 0;
    color: #667085;
}

.partner-auth-line {
    display: flex;
    align-items: center;
    gap: 10px;
}

.plan-badge {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 4px 10px;
    border-radius: 999px;
    color: #fff;
    font-size: .74rem;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
}

.plan-badge--plus {
    background: #7a4a22;
}

.plan-badge--basic {
    background: #3f3f46;
}

.partner-topbar-actions {
    display: grid;
    align-items: flex-start;
    justify-items: center;
    gap: 10px;
}

.shop-switcher {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 22px;
}

.shop-switcher a {
    padding: 9px 13px;
    color: #344054;
    background: #fff;
    border: 1px solid #d0d5dd;
    border-radius: 999px;
    font-weight: 800;
    text-decoration: none;
}

.shop-switcher .active {
    color: #fff;
    background: #0f766e;
    border-color: #0f766e;
}

.visit-rule-note {
    padding: 12px;
    color: #344054;
    background: #f2f4f7;
    border-radius: 8px;
    font-size: .92rem;
}

.registered-customers {
    display: grid;
    gap: 10px;
}

.registered-customers h3,
.shop-profile-form h3 {
    margin: 0;
    font-size: 1rem;
}

.shop-profile-form {
    display: grid;
    gap: 14px;
    padding-top: 18px;
    border-top: 1px solid #eaecf0;
}

.registered-customer-row {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f8fafc;
    border: 1px solid #eaecf0;
    border-radius: 8px;
}

.registered-customer-row span,
.registered-customer-row strong {
    color: #101828;
}

.registered-customer-row code {
    color: #0f766e;
}

.scanner-shell {
    display: grid;
    gap: 14px;
}

.scanner-preview {
    position: relative;
    overflow: hidden;
    min-height: 260px;
    background: #101828;
    border-radius: 12px;
}

.scanner-preview video,
.scanner-preview > div[id^="html5-reader"] {
    width: 100%;
    min-height: 260px;
}

.scanner-preview video {
    display: block;
    object-fit: cover;
}

.scanner-preview > span {
    position: absolute;
    left: 12px;
    bottom: 12px;
    padding: 7px 10px;
    color: #fff;
    background: rgba(0, 0, 0, .68);
    border-radius: 999px;
    font-size: .86rem;
    font-weight: 800;
}

.scanner-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.generated-qr {
    display: grid;
    place-items: center;
}

.generated-qr img,
.generated-qr canvas {
    width: 100%;
    max-width: 220px;
    height: auto;
}

.shop-qr-box {
    display: grid;
    width: min(100%, 270px);
    margin-left: auto;
    padding: 22px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    box-shadow: 0 12px 34px rgba(17, 24, 39, .08);
}

.shop-qr-box--top {
    width: 220px;
    padding: 16px;
    gap: 10px;
}

.shop-qr-box--top .generated-qr img,
.shop-qr-box--top .generated-qr canvas {
    max-width: 176px;
}

.shop-public-url {
    display: block;
    width: min(100%, 320px);
    overflow-wrap: anywhere;
    color: #475467;
    font-size: .8rem;
    text-align: center;
}

.nav-link-logout {
    color: #b42318;
    font-weight: 800;
}

.visit-feedback {
    display: none;
    padding: 12px;
    border-radius: 8px;
    font-weight: 800;
}

.visit-feedback:not(:empty) {
    display: block;
}

.visit-feedback.success {
    color: #065f46;
    background: #d1fae5;
}

.visit-feedback.error {
    color: #991b1b;
    background: #fee2e2;
}

.visit-feedback.warning {
    color: #92400e;
    background: #fef3c7;
}

.visit-log {
    display: grid;
    gap: 10px;
    margin-top: 8px;
}

.visit-log h3 {
    margin: 0;
    font-size: 1rem;
}

.visit-log-item {
    display: grid;
    gap: 3px;
    padding: 11px 12px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

.visit-log-item span {
    color: #667085;
    font-size: .9rem;
}

.visit-log-item em {
    color: #0f766e;
    font-style: normal;
    font-weight: 800;
}

.login-shell {
    min-height: calc(100vh - 77px);
    display: grid;
    place-items: center;
    padding: 32px 14px;
    background: linear-gradient(135deg, rgba(15, 118, 110, .08), rgba(31, 79, 143, .08));
}

.login-card {
    width: min(100%, 560px);
    padding: 34px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    box-shadow: 0 22px 70px rgba(17, 24, 39, .14);
}

.login-card h1 {
    margin-bottom: 12px;
    font-size: clamp(2.2rem, 6vw, 4rem);
}

.login-card > p:not(.eyebrow) {
    color: #667085;
}

.demo-credentials {
    display: grid;
    gap: 10px;
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.demo-credentials div {
    display: grid;
    gap: 2px;
}

.demo-credentials span {
    color: #667085;
    font-size: .95rem;
}

.login-secondary-action {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 16px;
    padding: 14px;
    background: #f8fafc;
    border: 1px solid #eaecf0;
    border-radius: 8px;
}

.login-secondary-action span {
    color: #667085;
}

.login-secondary-action a {
    color: #0f766e;
    font-weight: 800;
    text-decoration: none;
}

.register-partner-page {
    background: #f7f8fb;
}

.partner-register-form .panel-block {
    height: 100%;
}

.partner-register-form h2 {
    margin-bottom: 18px;
    font-size: 1.35rem;
}

.partner-register-form textarea.form-control {
    min-height: 104px;
}

.form-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.plan-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    min-height: 46px;
    align-items: center;
}

.plan-preview span {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 14px;
    color: #0f766e;
    background: #ecfdf3;
    border: 1px solid #abefc6;
    border-radius: 999px;
    font-weight: 800;
}

.register-submit-bar {
    position: sticky;
    bottom: 0;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
    padding: 18px 0;
    background: linear-gradient(180deg, rgba(247, 248, 251, 0), #f7f8fb 30%);
}

.shops-screen {
    max-width: 830px;
    min-height: calc(100vh - 116px);
    margin: 0 auto;
    padding-bottom: 92px;
    overflow: hidden;
    background: #fffdf8;
    border: 1px solid rgba(17, 24, 39, .2);
    border-radius: 34px;
    box-shadow: 0 22px 70px rgba(17, 24, 39, .12);
}

.shops-heading {
    padding: 34px 34px 18px;
}

.shops-heading p {
    margin: 0 0 8px;
    color: #2f7a2f;
    font-weight: 850;
}

.shops-heading h1 {
    margin: 0;
    font-size: clamp(2.4rem, 6vw, 4.6rem);
}

.shops-heading span {
    display: block;
    max-width: 560px;
    color: #6b7280;
    font-size: 1.05rem;
}

.shops-list {
    display: grid;
    gap: 14px;
    padding: 0 34px 26px;
}

.shop-select-card {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 18px;
    align-items: center;
    padding: 18px;
    color: #111827;
    background: #fff;
    border: 1px solid rgba(17, 24, 39, .1);
    border-radius: 12px;
    text-decoration: none;
    box-shadow: 0 12px 28px rgba(17, 24, 39, .06);
}

.shop-select-card:hover {
    color: #111827;
    transform: translateY(-1px);
}

.shop-select-mark {
    display: grid;
    width: 64px;
    height: 64px;
    place-items: center;
    color: #fff;
    background: var(--shop-primary);
    border-radius: 18px;
    font-size: 1.8rem;
    font-weight: 900;
}

.shop-select-card h2 {
    margin: 0 0 4px;
    font-size: 1.25rem;
}

.shop-select-card small {
    display: block;
    margin-bottom: 5px;
    color: #667085;
    font-weight: 750;
}

.shop-landing-hero {
    position: relative;
    overflow: hidden;
    min-height: calc(100vh - 77px);
    display: flex;
    align-items: end;
    padding: 84px 0 72px;
    color: #fff;
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--shop-primary) 82%, #000), #101828);
}

.shop-landing-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.shop-landing-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(17, 24, 39, .92), rgba(17, 24, 39, .54) 54%, rgba(17, 24, 39, .08)),
        linear-gradient(0deg, rgba(17, 24, 39, .86), rgba(17, 24, 39, .05) 52%);
}

.shop-landing-hero .container {
    position: relative;
    z-index: 1;
}

.shop-landing-hero-content {
    max-width: 760px;
}

.shop-landing-hero h1 {
    max-width: 900px;
    text-transform: uppercase;
}

.shop-landing-hero p:not(.eyebrow) {
    max-width: 640px;
    color: rgba(255, 255, 255, .82);
    font-size: 1.2rem;
}

.public-shop-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}

.shop-landing-main,
.shop-details-section,
.shop-about-section {
    padding: 70px 0;
}

.shop-landing-grid {
    display: grid;
    grid-template-columns: minmax(300px, .72fr) minmax(0, 1fr);
    gap: 24px;
    align-items: stretch;
}

.shop-reward-card,
.shop-info-panel {
    padding: 28px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 20px 55px rgba(17, 24, 39, .08);
}

.shop-reward-card {
    color: #fff;
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--shop-primary) 90%, #000), #111827);
}

.shop-reward-card span,
.shop-reward-card small {
    color: rgba(255, 255, 255, .72);
    font-weight: 800;
}

.shop-reward-card h2 {
    margin: 12px 0;
    font-size: clamp(2rem, 5vw, 3.2rem);
    line-height: 1;
}

.shop-reward-card p {
    color: rgba(255, 255, 255, .78);
}

.shop-reward-progress {
    display: flex;
    align-items: end;
    gap: 8px;
    margin: 28px 0 12px;
}

.shop-reward-progress strong {
    font-size: 4rem;
    line-height: .8;
}

.shop-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 20px;
}

.shop-steps article,
.shop-details-grid article {
    padding: 18px;
    background: #f9fafb;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.shop-steps span,
.shop-details-grid span {
    display: block;
    color: var(--primary-dark);
    font-size: .82rem;
    font-weight: 900;
    text-transform: uppercase;
}

.shop-steps strong,
.shop-details-grid strong {
    display: block;
    margin-top: 7px;
    font-size: 1.05rem;
}

.shop-steps p {
    margin: 8px 0 0;
    color: var(--muted);
}

.shop-details-section {
    background: #f4f1ec;
}

.shop-details-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.shop-about-section h2 {
    max-width: 900px;
    font-size: clamp(2rem, 5vw, 3.4rem);
    line-height: 1.05;
}

.shop-select-card p {
    margin: 0 0 10px;
    color: #6b7280;
}

.shop-select-card strong {
    display: block;
    margin-top: 8px;
    color: var(--shop-primary);
}

.shop-welcome-page,
.shop-login-page {
    position: relative;
    min-height: 100vh;
    padding: 28px;
    color: var(--ink);
    background:
        radial-gradient(circle at 80% 8%, color-mix(in srgb, var(--shop-primary) 12%, transparent), transparent 32%),
        #f7f8fb;
}

body:has(.pwa-install-card) .shop-welcome-page {
    padding-bottom: 188px;
}

.shop-welcome-logo,
.shop-login-logo {
    display: grid;
    width: 190px;
    height: 190px;
    place-items: center;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 18px 55px rgba(17, 24, 39, .08);
}

.shop-login-logo {
    width: 50px;
    height: 50px;
}

.shop-welcome-logo img,
.shop-login-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.shop-welcome-logo strong,
.shop-login-logo strong {
    padding: 10px;
    color: #fff;
    background: var(--shop-primary);
    text-align: center;
    font-weight: 900;
}

.shop-welcome-copy {
    max-width: 760px;
    margin-top: 26px;
}

.shop-welcome-copy h1,
.shop-phone-form h1 {
    max-width: 680px;
    font-size: clamp(2rem, 5vw, 2.55rem);
    line-height: 1.22;
}

.shop-welcome-copy p,
.shop-phone-form p {
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.45;
}

.shop-welcome-copy > strong,
.shop-welcome-copy small {
    display: block;
    margin-top: 28px;
}

.shop-welcome-copy small a {
    color: var(--primary-dark);
    font-weight: 800;
}

.floating-next-button {
    position: fixed;
    right: 24px;
    bottom: 26px;
    z-index: 90;
    display: grid;
    width: 56px;
    height: 56px;
    place-items: center;
    color: #fff;
    background: var(--primary);
    border: 0;
    border-radius: 8px;
    box-shadow: 0 12px 28px rgba(17, 24, 39, .14);
    font-size: 1.35rem;
    text-decoration: none;
}

body:has(.pwa-install-card) .shop-welcome-page .floating-next-button {
    bottom: 152px;
}

.shop-login-close {
    position: fixed;
    top: 24px;
    right: 24px;
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    color: var(--ink);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    font-size: 1.45rem;
    line-height: 1;
    text-decoration: none;
}

.shop-phone-form {
    max-width: 580px;
    margin-top: 28px;
}

.shop-phone-input {
    display: grid;
    grid-template-columns: 94px 1fr;
    gap: 8px;
    margin-top: 18px;
}

.shop-phone-input span,
.shop-phone-input input {
    min-height: 50px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
}

.shop-phone-input span {
    display: grid;
    place-items: center;
    font-size: 1.1rem;
    font-weight: 750;
}

.shop-phone-input input {
    padding: 0 14px;
    font-size: 1.1rem;
}

.shop-form-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 52px;
    margin-top: 18px;
    color: #fff;
    background: var(--primary);
    border: 0;
    border-radius: 6px;
    box-shadow: 0 12px 28px rgba(17, 24, 39, .14);
    font-size: 1rem;
    font-weight: 850;
}

.shop-form-submit span {
    font-size: 1.15rem;
    line-height: 1;
}

.shop-code-real-input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: .01;
}

.shop-code-boxes {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 18px auto 34px;
}

.shop-code-boxes span {
    display: grid;
    width: 48px;
    height: 56px;
    place-items: center;
    color: var(--ink);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 7px;
    box-shadow: 0 8px 16px rgba(17, 24, 39, .04);
    font-size: 1.4rem;
    font-weight: 850;
}

.shop-code-boxes span.is-filled {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(15, 118, 110, .12);
}

.shop-code-help {
    margin: 18px 0 8px;
    text-align: center;
}

.shop-resend-link {
    display: block;
    width: 100%;
    min-height: 50px;
    padding: 14px;
    color: #fff;
    background: var(--primary);
    border-radius: 6px;
    text-align: center;
    font-weight: 850;
    text-decoration: none;
}

.shop-form-submit + .shop-resend-link {
    margin-top: 12px;
}

.shop-mini-progress {
    height: 8px;
    overflow: hidden;
    background: #e5e7eb;
    border-radius: 999px;
}

.shop-mini-progress span {
    display: block;
    height: 100%;
    background: var(--shop-primary);
}

.account-screen {
    display: flex;
    flex-direction: column;
}

.account-form {
    display: grid;
    gap: 12px;
    padding: 0 34px 34px;
}

.account-feedback {
    margin: 0 34px 16px;
    padding: 12px 14px;
    border-radius: 8px;
    font-weight: 800;
}

.account-feedback.success {
    color: #065f46;
    background: #d1fae5;
}

.account-feedback.error {
    color: #991b1b;
    background: #fee2e2;
}

.register-error {
    margin: 0 0 18px;
}

.account-form .btn {
    margin-top: 6px;
}

.metric-card span {
    display: block;
    color: var(--muted);
    font-weight: 700;
}

.metric-card strong {
    display: block;
    margin-top: 10px;
    font-size: 2rem;
}

.stacked-form,
.filter-bar {
    display: grid;
    gap: 12px;
}

.filter-bar {
    grid-template-columns: 2fr repeat(3, 1fr);
}

.directory-empty {
    margin-top: 22px;
    padding: 18px;
    color: #667085;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    text-align: center;
}

.directory-empty[hidden] {
    display: none;
}

.form-control,
.form-select {
    min-height: 46px;
    border-radius: 8px;
}

.admin-table {
    overflow: hidden;
    padding: 0;
}

.admin-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 14px;
    padding: 16px 18px;
    border-bottom: 1px solid var(--line);
}

.admin-row:last-child {
    border-bottom: 0;
}

.admin-row-head {
    color: var(--muted);
    background: var(--surface);
    font-weight: 800;
}

.admin-section {
    padding: 22px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow-soft);
}

.admin-section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.admin-section-heading h2 {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 900;
}

.admin-section-heading p {
    max-width: 520px;
    margin: 0;
    color: var(--muted);
}

.admin-row-business {
    grid-template-columns: 1.35fr 1.55fr 1.35fr 1fr .7fr .8fr;
}

.admin-row-banner {
    grid-template-columns: 1.35fr 1.7fr 1.7fr 1.4fr;
}

.admin-business-item {
    border-bottom: 1px solid var(--line);
}

.admin-business-item:last-child {
    border-bottom: 0;
}

.admin-business-item summary {
    cursor: pointer;
    list-style: none;
}

.admin-business-item summary::-webkit-details-marker {
    display: none;
}

.admin-business-item[open] summary {
    background: #f9fafb;
}

.admin-edit-form,
.admin-banner-form {
    display: grid;
    gap: 14px;
    padding: 18px;
    border-top: 1px solid var(--line);
}

.admin-delete-form {
    padding: 0 18px 18px;
}

.admin-banner-form {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
}

.admin-banner-link {
    width: fit-content;
    color: var(--primary);
    font-weight: 800;
    text-decoration: none;
}

.admin-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    color: #344054;
    font-weight: 800;
}

.status-pill {
    width: fit-content;
    padding: 4px 9px;
    color: #065f46;
    background: #d1fae5;
    border-radius: 999px;
    font-size: .85rem;
    font-weight: 800;
}

footer {
    background: var(--surface);
}

@media (max-width: 768px) {
    .home-hero {
        min-height: auto;
        padding: 42px 0;
    }

    .home-hero-grid,
    .home-showcase-grid {
        grid-template-columns: 1fr;
    }

    .home-feature-grid {
        grid-template-columns: 1fr;
    }

    .shop-landing-hero {
        min-height: auto;
        padding: 90px 0 46px;
    }

    .shop-landing-grid,
    .shop-steps,
    .shop-details-grid {
        grid-template-columns: 1fr;
    }

    .proof-heading {
        display: block;
    }

    .shop-marquee {
        grid-auto-columns: minmax(210px, 82vw);
    }

    .home-cta {
        padding: 24px;
    }

    .hero-section {
        min-height: auto;
        padding: 42px 0 52px;
    }

    .wallet-card {
        padding: 22px;
        border-radius: 18px;
    }

    .filter-bar,
    .admin-row,
    .admin-row-business,
    .admin-row-banner {
        grid-template-columns: 1fr;
    }

    .admin-row-head {
        display: none;
    }

    .admin-section {
        padding: 16px;
    }

    .admin-section-heading {
        display: block;
    }

    .customer-app-shell {
        padding: 0;
        background: #fffdf8;
    }

    .loyalty-phone-card {
        min-height: calc(100vh - 77px);
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .loyalty-header {
        grid-template-columns: 82px 1fr;
        min-height: 130px;
        gap: 16px;
        padding: 18px 22px;
    }

    .tree-badge {
        width: 76px;
        height: 76px;
        border-width: 4px;
    }

    .tree-badge i {
        font-size: 2.55rem;
    }

    .loyalty-header h1 {
        font-size: 1.55rem;
        letter-spacing: .1em;
    }

    .loyalty-header p {
        margin-top: 10px;
        font-size: 1rem;
        letter-spacing: .14em;
    }

    .loyalty-header.shop-loyalty-header {
        grid-template-columns: 58px 1fr;
        min-height: 106px;
        padding: 16px 18px;
    }

    .loyalty-header.shop-loyalty-header .shop-card-mark {
        width: 52px;
        height: 52px;
        font-size: 1.55rem;
    }

    .loyalty-header.shop-loyalty-header h1 {
        font-size: 1.45rem;
        letter-spacing: .08em;
    }

    .loyalty-header.shop-loyalty-header p {
        font-size: .82rem;
        letter-spacing: .12em;
    }

    .leaf {
        width: 72px;
        height: 72px;
    }

    .loyalty-body {
        padding: 22px 18px 14px;
    }

    .qr-section p {
        font-size: 1.08rem;
    }

    .qr-frame {
        width: min(235px, 72vw);
        padding: 14px;
    }

    .qr-section strong {
        font-size: 1.05rem;
    }

    .customer-row {
        align-items: flex-start;
        padding-bottom: 18px;
    }

    .customer-meta {
        gap: 9px;
        font-size: 1rem;
    }

    .customer-meta svg {
        width: 30px;
        height: 30px;
    }

    .stamp-row {
        gap: 7px;
    }

    .stamp i {
        font-size: 1.05rem;
    }

    .visit-count strong {
        font-size: 2.45rem;
    }

    .reward-callout {
        grid-template-columns: 48px 1fr;
        padding: 15px;
    }

    .reward-callout svg {
        width: 38px;
        height: 38px;
    }

    .reward-callout strong,
    .reward-callout span {
        font-size: 1rem;
    }

    .partners-panel {
        margin: 0 -18px;
        padding: 18px 14px 8px;
    }

    .partner-banner {
        min-height: 128px;
    }

    .partner-banner div {
        padding: 14px;
    }

    .partner-banner span {
        font-size: .95rem;
    }

    .partner-banner a {
        padding: 8px 14px;
        font-size: .82rem;
    }

    .customer-tabbar {
        right: 0;
        left: 0;
        padding: 10px 8px 12px;
        border-radius: 24px 24px 0 0;
    }

    .customer-tabbar a {
        font-size: .76rem;
    }

    .customer-tabbar i {
        width: 34px;
        height: 34px;
        font-size: 1.35rem;
    }

    .customer-tabbar span {
        font-size: .72rem;
    }

    .pwa-install-card {
        right: 0;
        bottom: 0;
        left: 0;
        border-radius: 18px 18px 0 0;
    }

    body:has(.customer-tabbar) .pwa-install-card,
    body:has(.member-tabbar) .pwa-install-card {
        bottom: 76px;
        border-radius: 18px 18px 0 0;
    }

    .pwa-install-copy span {
        font-size: .8rem;
    }

    .pwa-install-button {
        padding: 0 14px;
    }

    body:has(.pwa-install-card) .shop-welcome-page {
        padding-bottom: 206px;
    }

    body:has(.pwa-install-card) .shop-welcome-page .floating-next-button {
        right: 18px;
        bottom: 172px;
    }

    .shops-screen {
        min-height: calc(100vh - 77px);
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .shops-heading,
    .shops-list {
        padding-left: 18px;
        padding-right: 18px;
    }

    .shop-select-card {
        grid-template-columns: 54px 1fr;
        gap: 13px;
        padding: 14px;
    }

    .shop-select-mark {
        width: 52px;
        height: 52px;
        border-radius: 14px;
    }

    .account-form {
        padding-left: 18px;
        padding-right: 18px;
    }

    .partner-topbar {
        flex-direction: column;
    }

    .shop-qr-box--top {
        width: 100%;
        max-width: 220px;
    }
}

@media (prefers-color-scheme: dark) {
    :root {
        color-scheme: dark;
        --ink: #f9fafb;
        --muted: #aab2c0;
        --line: #283142;
        --surface: #111827;
    }

    body,
    .navbar,
    .business-card,
    .metric-card,
    .panel-block,
    .admin-table {
        background: #0b1120 !important;
    }
}
