/* ============================================================
   GrowLeafy Design System — single source of truth (§34)
   Tokens → theme → base → layout → components → motion → a11y.
   Every GrowLeafy surface (site, portals, admin) uses this file.
   Changing --gl-primary here re-skins the whole platform.
   ============================================================ */

/* ---------- 1. DESIGN TOKENS ---------- */
:root {
    /* Brand (GrowLeafy: #16A34A green, #111827 ink, #FFFFFF, #86EFAC light green) */
    --gl-primary: #16A34A;
    --gl-primary-strong: #15803D;
    --gl-primary-soft: #22C55E;
    --gl-primary-ink: #FFFFFF;          /* text on primary */
    --gl-primary-wash: rgba(22, 163, 74, .08);
    --gl-primary-wash-2: rgba(22, 163, 74, .16);

    /* Light green accent */
    --gl-lime: #86EFAC;
    --gl-lime-soft: #E8F8E6;            /* very light green panel */
    --gl-lime-ink: #14532D;

    /* Deep brand band (hero, footer) — lighter segment */
    --gl-brand-deep: #0A4026;
    --gl-brand-mid: #0E5C31;
    --gl-brand-bright: #12813C;
    --gl-hero-ink: #F2FDF6;
    --gl-footer-bg: #0B4A2A;

    /* Ambient background glows */
    --gl-bg-glow-1: rgba(22, 163, 74, .13);
    --gl-bg-glow-2: rgba(134, 239, 172, .20);

    /* Surfaces (light = brand default theme) */
    --gl-bg: #FFFFFF;
    --gl-bg-2: #F3F9F5;
    --gl-surface: #FFFFFF;
    --gl-surface-2: #F1F7F2;
    --gl-surface-3: #E4F1E7;
    --gl-border: #DDEAE0;
    --gl-border-strong: #BFD8C5;
    --gl-text: #111827;
    --gl-text-2: #333F4A;
    --gl-muted: #54626B;
    --gl-faint: #94A1AA;

    /* Status */
    --gl-ok: #16A34A;
    --gl-ok-bg: rgba(22, 163, 74, .12);
    --gl-warn: #B45309;
    --gl-warn-bg: rgba(245, 158, 11, .14);
    --gl-danger: #DC2626;
    --gl-danger-strong: #B91C1C;
    --gl-danger-bg: rgba(220, 38, 38, .10);
    --gl-info: #2563EB;
    --gl-info-bg: rgba(37, 99, 235, .10);

    /* Typography */
    --gl-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans",
               "Helvetica Neue", Arial, sans-serif;
    --gl-font-display: var(--gl-font);
    --gl-fs-xs: 11px;
    --gl-fs-sm: 13px;
    --gl-fs-md: 15px;
    --gl-fs-lg: 18px;
    --gl-fs-xl: 22px;
    --gl-fs-2xl: 28px;
    --gl-fs-3xl: clamp(30px, 5vw, 46px);
    --gl-lh: 1.6;
    --gl-weight-bold: 800;
    --gl-weight-semi: 650;

    /* Spacing */
    --gl-sp-1: 4px;
    --gl-sp-2: 8px;
    --gl-sp-3: 12px;
    --gl-sp-4: 16px;
    --gl-sp-5: 20px;
    --gl-sp-6: 24px;
    --gl-sp-8: 32px;
    --gl-sp-10: 40px;
    --gl-sp-14: 56px;

    /* Radius */
    --gl-r-sm: 10px;
    --gl-r-md: 14px;
    --gl-r-lg: 18px;
    --gl-r-xl: 24px;
    --gl-r-pill: 999px;

    /* Elevation (soft, premium) */
    --gl-shadow-1: 0 1px 2px rgba(17, 24, 39, .05), 0 3px 12px rgba(17, 24, 39, .06);
    --gl-shadow-2: 0 4px 14px rgba(17, 24, 39, .09), 0 14px 36px rgba(17, 24, 39, .10);
    --gl-shadow-glow: 0 0 0 1px rgba(22, 163, 74, .35), 0 6px 22px rgba(22, 163, 74, .18);

    /* Motion */
    --gl-t-fast: 120ms;
    --gl-t-mid: 220ms;
    --gl-t-slow: 380ms;
    --gl-ease: cubic-bezier(.22, .61, .28, 1);
    --gl-ease-out: cubic-bezier(.16, 1, .3, 1);
    --gl-ease-spring: cubic-bezier(.34, 1.45, .44, 1);

    /* Layout */
    --gl-wrap: 1400px;
    --gl-header-h: 64px;

    /* Z-index */
    --gl-z-header: 40;
    --gl-z-drawer: 60;
    --gl-z-modal: 70;
    --gl-z-toast: 80;

    /* Legacy aliases — pages may still reference these (§35 no breakage) */
    --emerald: var(--gl-primary);
    --emerald-dark: var(--gl-primary-ink);
    --ink: var(--gl-text);
    --card: var(--gl-surface);
    --border: var(--gl-border);
    --text: var(--gl-text);
    --muted: var(--gl-muted);
    --danger: var(--gl-danger);
    --amber: var(--gl-warn);
}

/* ---------- 2. DARK THEME ---------- */
[data-theme="dark"] {
    --gl-primary: #22C55E;
    --gl-primary-strong: #16A34A;
    --gl-primary-soft: #4ADE80;
    --gl-primary-ink: #06281A;
    --gl-primary-wash: rgba(34, 197, 94, .12);
    --gl-primary-wash-2: rgba(34, 197, 94, .22);
    --gl-lime: #6EE7A8;
    --gl-lime-soft: #10321F;
    --gl-lime-ink: #A7F3D0;
    --gl-footer-bg: #071D12;
    --gl-bg-glow-1: rgba(34, 197, 94, .10);
    --gl-bg-glow-2: rgba(52, 211, 153, .10);

    --gl-bg: #111827;
    --gl-bg-2: #0C1219;
    --gl-surface: #1A2331;
    --gl-surface-2: #212D3D;
    --gl-surface-3: #29374A;
    --gl-border: #2D3A4B;
    --gl-border-strong: #3E4F63;
    --gl-text: #F4F5F7;
    --gl-text-2: #C6CEC9;
    --gl-muted: #93A0AD;
    --gl-faint: #63707E;

    --gl-ok: #34D399;
    --gl-ok-bg: rgba(52, 211, 153, .12);
    --gl-warn: #F5B942;
    --gl-warn-bg: rgba(245, 185, 66, .12);
    --gl-danger: #F87171;
    --gl-danger-strong: #EF4444;
    --gl-danger-bg: rgba(248, 113, 113, .12);
    --gl-info: #60A5FA;
    --gl-info-bg: rgba(96, 165, 250, .12);

    --gl-shadow-1: 0 1px 2px rgba(0, 0, 0, .35), 0 2px 10px rgba(0, 0, 0, .22);
    --gl-shadow-2: 0 4px 14px rgba(0, 0, 0, .38), 0 12px 34px rgba(0, 0, 0, .30);
    --gl-shadow-glow: 0 0 0 1px rgba(34, 197, 94, .35), 0 6px 24px rgba(34, 197, 94, .22);
}

/* ---------- 3. BASE ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--gl-font);
    background:
        radial-gradient(1000px 460px at 8% -8%, var(--gl-bg-glow-1) 0%, transparent 58%),
        radial-gradient(900px 420px at 96% 6%, var(--gl-bg-glow-2) 0%, transparent 55%),
        var(--gl-bg);
    color: var(--gl-text);
    line-height: var(--gl-lh);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    font-size: var(--gl-fs-md);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }
h1, h2, h3, h4 { font-weight: var(--gl-weight-bold); line-height: 1.2; letter-spacing: -.3px; }
h1 { font-size: var(--gl-fs-3xl); }
h2 { font-size: var(--gl-fs-2xl); margin: var(--gl-sp-2) 0 var(--gl-sp-3); }
h3 { font-size: var(--gl-fs-lg); }

::selection { background: var(--gl-primary-wash-2); }

:focus-visible {
    outline: 2px solid var(--gl-primary);
    outline-offset: 2px;
    border-radius: 4px;
}

.skip-link {
    position: absolute; left: 12px; top: -60px; z-index: 100;
    background: var(--gl-primary); color: var(--gl-primary-ink);
    padding: 10px 16px; border-radius: var(--gl-r-sm); font-weight: 700;
    transition: top var(--gl-t-fast) var(--gl-ease);
}
.skip-link:focus { top: 12px; }

/* ---------- 4. LAYOUT ---------- */
.wrap { max-width: var(--gl-wrap); margin: 0 auto; padding: 0 var(--gl-sp-5); }

header.site {
    position: sticky; top: 0; z-index: var(--gl-z-header);
    height: var(--gl-header-h);
    background: color-mix(in srgb, var(--gl-bg) 82%, transparent);
    backdrop-filter: blur(14px) saturate(1.4);
    -webkit-backdrop-filter: blur(14px) saturate(1.4);
    border-bottom: 1px solid var(--gl-border);
}
header.site::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
    background: linear-gradient(90deg, transparent, var(--gl-primary-soft) 22%, var(--gl-lime) 55%, transparent 88%);
    opacity: .45; pointer-events: none;
}
header.site .wrap { display: flex; align-items: center; gap: var(--gl-sp-3); height: 100%; }

.brand { display: flex; align-items: center; gap: var(--gl-sp-2); font-weight: var(--gl-weight-bold); letter-spacing: .2px; font-size: 17px; }
/* Wordmark logo: "Grow" ink + "Leafy" green, tagline beneath (brand asset). */
.brand-wordmark { flex-direction: column; align-items: flex-start; gap: 1px; padding: 2px 0; }
.brand-wordmark .wm { font-size: 22px; font-weight: 800; letter-spacing: -.9px; line-height: 1; font-family: var(--gl-font); }
.brand-wordmark .wm-grow { color: var(--gl-text); }
.brand-wordmark .wm-leafy { color: var(--gl-primary); }
.brand-wordmark .logo-tag { display: block; width: auto; font-size: 8.5px; font-weight: 800; letter-spacing: 1.7px; color: var(--gl-faint); text-transform: uppercase; }
@media (max-width: 768px) { .brand-wordmark .wm { font-size: 19px; } }
.logo-mark { width: 34px; height: 34px; flex: none; border-radius: 10px; box-shadow: var(--gl-shadow-1); }
.logo-word { font-weight: 800; letter-spacing: -.4px; }
.logo-accent { color: var(--gl-primary); }
.logo-tag { display: block; width: 100%; font-size: 8.5px; font-weight: 700; letter-spacing: 1.4px; color: var(--gl-faint); text-transform: uppercase; }
.brand .logo-tag { display: none; }
.leaf {
    width: 32px; height: 32px; border-radius: 10px;
    background: linear-gradient(135deg, var(--gl-primary-soft), var(--gl-primary-strong));
    color: var(--gl-primary-ink);
    display: grid; place-items: center; font-size: 17px;
    box-shadow: var(--gl-shadow-1);
    animation: leaf-breathe 5s var(--gl-ease) infinite;
}
@keyframes leaf-breathe {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.06) rotate(-2deg); }
}

nav.main { display: flex; gap: 2px; margin-left: var(--gl-sp-4); font-size: 14px; flex-wrap: nowrap; }
nav.main a {
    color: var(--gl-muted); font-weight: 600; padding: 8px 11px; border-radius: var(--gl-r-sm);
    white-space: nowrap;
    transition: color var(--gl-t-fast) var(--gl-ease), background var(--gl-t-fast) var(--gl-ease);
}
nav.main a:hover { color: var(--gl-text); background: var(--gl-surface-2); }
nav.main a.active { color: var(--gl-primary); }
.logo-tag { display: inline; }
/* Mid-width priority: keep the header on ONE line — drop lower-priority
   links before labels ever wrap (§29). */
@media (max-width: 1360px) { .logo-tag { display: none; } }
@media (max-width: 1240px) { nav.main a[href*="support"] { display: none; } }
@media (max-width: 1120px) { nav.main a[href*="features"] { display: none; } }
@media (max-width: 1000px) { nav.main a[href*="services"] { display: none; } }

.header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.icon-btn {
    width: 40px; height: 40px; display: grid; place-items: center;
    background: transparent; border: 1px solid transparent; color: var(--gl-muted);
    border-radius: var(--gl-r-md); cursor: pointer; font-size: 17px;
    transition: color var(--gl-t-fast) var(--gl-ease), background var(--gl-t-fast) var(--gl-ease), transform var(--gl-t-fast) var(--gl-ease);
}
.icon-btn:hover { color: var(--gl-text); background: var(--gl-surface-2); }
.icon-btn:active { transform: scale(.94); }
.icon-btn .dot {
    position: absolute; width: 9px; height: 9px; border-radius: 50%;
    background: var(--gl-primary-soft); border: 2px solid var(--gl-bg);
    transform: translate(9px, -9px);
}
.icon-btn { position: relative; }

.pill-link {
    display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
    color: var(--gl-text); font-weight: 700; font-size: 13px;
    padding: 8px 14px; border-radius: var(--gl-r-pill);
    border: 1px solid var(--gl-border); transition: border-color var(--gl-t-fast) var(--gl-ease), background var(--gl-t-fast) var(--gl-ease);
}
.pill-link:hover { border-color: var(--gl-primary); background: var(--gl-primary-wash); }
.pill-link.primary { background: var(--gl-primary); color: var(--gl-primary-ink); border-color: var(--gl-primary); }
.pill-link.primary:hover { background: var(--gl-primary-strong); color: #fff; border-color: var(--gl-primary-strong); }
.pill-link.cart-pill { border-color: var(--gl-border-strong); }

/* search popover */
.search-pop { position: absolute; top: calc(100% + 8px); right: 0; width: min(420px, 92vw); display: none; }
.search-pop.open { display: block; animation: pop var(--gl-t-mid) var(--gl-ease-spring); }
.search-pop form { display: flex; gap: 8px; }
.search-pop input { flex: 1; }

/* notifications popover */
.popover {
    position: absolute; top: calc(100% + 8px); right: 0; width: min(360px, 92vw);
    background: var(--gl-surface); border: 1px solid var(--gl-border);
    border-radius: var(--gl-r-lg); box-shadow: var(--gl-shadow-2);
    padding: var(--gl-sp-3); display: none; z-index: var(--gl-z-drawer);
}
.popover.open { display: block; animation: pop var(--gl-t-mid) var(--gl-ease-spring); }
.popover h4 { font-size: var(--gl-fs-sm); color: var(--gl-muted); text-transform: uppercase; letter-spacing: .8px; margin-bottom: var(--gl-sp-2); }
.popover ul { list-style: none; max-height: 300px; overflow: auto; }
.popover li { padding: 10px 8px; border-bottom: 1px solid var(--gl-border); font-size: var(--gl-fs-sm); }
.popover li:last-child { border-bottom: 0; }
.popover li.unread { border-left: 3px solid var(--gl-primary); padding-left: 10px; }
.popover .pop-foot { margin-top: var(--gl-sp-2); }

/* mobile nav drawer */
.nav-scrim {
    position: fixed; inset: 0; background: rgba(4, 8, 6, .55);
    backdrop-filter: blur(2px); z-index: calc(var(--gl-z-drawer) - 1);
    opacity: 0; pointer-events: none; transition: opacity var(--gl-t-mid) var(--gl-ease);
}
.nav-scrim.open { opacity: 1; pointer-events: auto; }
.mobile-nav {
    position: fixed; top: 0; left: 0; bottom: 0; width: min(320px, 86vw);
    background: var(--gl-surface); border-right: 1px solid var(--gl-border);
    z-index: var(--gl-z-drawer); padding: var(--gl-sp-5);
    transform: translateX(-102%); transition: transform var(--gl-t-mid) var(--gl-ease-out);
    display: flex; flex-direction: column; gap: var(--gl-sp-1);
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav a {
    padding: 12px 14px; border-radius: var(--gl-r-md); font-weight: 700; color: var(--gl-text-2);
    transition: background var(--gl-t-fast) var(--gl-ease);
}
.mobile-nav a:hover { background: var(--gl-surface-2); }
.mobile-nav .close-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--gl-sp-3); }

/* bottom navigation (mobile) */
.bottom-nav {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--gl-z-header);
    display: none;
    background: color-mix(in srgb, var(--gl-surface) 94%, transparent);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--gl-border);
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
}
.bottom-nav a {
    flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px;
    font-size: 10px; font-weight: 700; color: var(--gl-muted);
    padding: 6px 2px; border-radius: var(--gl-r-sm);
    transition: color var(--gl-t-fast) var(--gl-ease);
}
.bottom-nav a .ico { font-size: 19px; line-height: 1; }
.bottom-nav a.active { color: var(--gl-primary); }
.bottom-nav a.scan .ico {
    width: 44px; height: 44px; margin-top: -18px; border-radius: 50%;
    background: linear-gradient(135deg, var(--gl-primary-soft), var(--gl-primary-strong));
    color: var(--gl-primary-ink); display: grid; place-items: center;
    box-shadow: var(--gl-shadow-glow); border: 4px solid var(--gl-bg);
}

main.site-main { padding: var(--gl-sp-8) 0 var(--gl-sp-14); min-height: 60vh; }

footer.site { border-top: 1px solid var(--gl-border); padding: var(--gl-sp-8) 0 var(--gl-sp-10); color: var(--gl-faint); font-size: var(--gl-fs-sm); }
footer.site .wrap { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--gl-sp-6); }
footer.site a { display: block; margin: 4px 0; color: var(--gl-muted); transition: color var(--gl-t-fast) var(--gl-ease); }
footer.site a:hover { color: var(--gl-text); }
footer.site .brand { flex-wrap: wrap; margin-bottom: 10px; }
footer.site .brand .logo-tag { display: block; }

/* ---------- 5. COMPONENTS ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    background: linear-gradient(135deg, var(--gl-primary-soft) 0%, var(--gl-primary) 45%, #0E9F6E 100%);
    color: var(--gl-primary-ink); border: none; cursor: pointer;
    border-radius: var(--gl-r-md); padding: 13px 22px;
    font-size: 15px; font-weight: var(--gl-weight-bold); letter-spacing: .1px;
    transition: transform var(--gl-t-fast) var(--gl-ease), box-shadow var(--gl-t-fast) var(--gl-ease), filter var(--gl-t-fast) var(--gl-ease);
    box-shadow: 0 4px 14px rgba(16, 185, 129, .32), inset 0 1px 0 rgba(255, 255, 255, .22);
}
.btn:hover { filter: brightness(1.06); transform: translateY(-1px); box-shadow: var(--gl-shadow-glow); }
.btn:active { transform: translateY(0) scale(.97); }
.btn:disabled { opacity: .55; cursor: wait; }
.btn.ghost {
    background: transparent; color: var(--gl-text);
    border: 1px solid var(--gl-border); box-shadow: none;
}
.btn.ghost:hover { border-color: var(--gl-primary); background: var(--gl-primary-wash); transform: none; }
.btn.danger { background: linear-gradient(135deg, #F87171, #EF4444); box-shadow: 0 2px 10px rgba(239, 68, 68, .28); }
.btn.small { padding: 7px 14px; font-size: 13px; border-radius: var(--gl-r-sm); }
.btn.block { width: 100%; }
.btn.loading { pointer-events: none; }
.btn.loading::after {
    content: ""; width: 14px; height: 14px; border-radius: 50%;
    border: 2px solid currentColor; border-top-color: transparent;
    animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.card {
    position: relative;
    background: linear-gradient(180deg, var(--gl-surface) 55%, var(--gl-bg-2));
    border: 1px solid var(--gl-border);
    border-radius: var(--gl-r-lg); padding: var(--gl-sp-5);
    box-shadow: var(--gl-shadow-1);
    transition: transform var(--gl-t-mid) var(--gl-ease), box-shadow var(--gl-t-mid) var(--gl-ease), border-color var(--gl-t-mid) var(--gl-ease);
}
.card::before {
    content: ""; position: absolute; left: 12px; right: 12px; top: 0; height: 3px;
    border-radius: 0 0 6px 6px;
    background: linear-gradient(90deg, var(--gl-primary-soft), var(--gl-lime) 62%, transparent);
    opacity: .75; pointer-events: none;
}
.card.hover:hover { transform: translateY(-3px); box-shadow: var(--gl-shadow-2); border-color: var(--gl-border-strong); }
.card h3 { font-size: 16px; margin-bottom: var(--gl-sp-2); }
.card h3 .hl { color: var(--gl-primary); }
.card p { color: var(--gl-muted); font-size: var(--gl-fs-sm); }

.badge {
    display: inline-flex; align-items: center; gap: 6px;
    background: var(--gl-primary-wash); color: var(--gl-primary-soft);
    font-size: var(--gl-fs-xs); font-weight: 700; padding: 4px 10px;
    border: 1px solid var(--gl-primary-wash-2);
    border-radius: var(--gl-r-pill); letter-spacing: .6px;
}
.badge::before {
    content: ""; width: 6px; height: 6px; border-radius: 50%;
    background: currentColor; flex: none;
}
.badge.ok { background: var(--gl-ok-bg); color: var(--gl-ok); }
.badge.warn { background: var(--gl-warn-bg); color: var(--gl-warn); }
.badge.err { background: var(--gl-danger-bg); color: var(--gl-danger); }
.badge.info { background: var(--gl-info-bg); color: var(--gl-info); }
.badge.neutral { background: var(--gl-surface-3); color: var(--gl-text-2); }

.chip {
    display: inline-block; font-size: var(--gl-fs-xs); color: var(--gl-muted);
    background: var(--gl-surface); border: 1px solid var(--gl-border);
    padding: 6px 10px; border-radius: var(--gl-r-pill);
}

.notice {
    background: var(--gl-primary-wash); border: 1px solid var(--gl-primary-wash-2);
    color: var(--gl-text-2); border-radius: var(--gl-r-md);
    padding: 12px 16px; font-size: var(--gl-fs-sm); margin: 12px 0;
}
.notice.warn { background: var(--gl-warn-bg); border-color: rgba(245, 185, 66, .35); }
.notice.err { background: var(--gl-danger-bg); border-color: rgba(248, 113, 113, .35); }

/* forms */
input, select, textarea {
    width: 100%; background: var(--gl-surface-2); border: 1px solid var(--gl-border);
    color: var(--gl-text); border-radius: var(--gl-r-md); padding: 12px 14px;
    font-size: var(--gl-fs-md); font-family: inherit;
    transition: border-color var(--gl-t-fast) var(--gl-ease), box-shadow var(--gl-t-fast) var(--gl-ease);
}
input:focus, select:focus, textarea:focus {
    outline: none; border-color: var(--gl-primary); box-shadow: 0 0 0 3px var(--gl-primary-wash);
}
label { display: block; font-size: var(--gl-fs-xs); color: var(--gl-muted); font-weight: 700; letter-spacing: .5px; margin: 10px 0 6px; }
textarea { min-height: 90px; resize: vertical; }
.form-err { animation: shake 300ms var(--gl-ease); border-color: var(--gl-danger-strong) !important; }
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* tables — modernised, readable */
table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: var(--gl-fs-sm); }
th, td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--gl-border); }
th { color: var(--gl-muted); font-size: var(--gl-fs-xs); letter-spacing: .6px; text-transform: uppercase; font-weight: 700; }
tr:last-child td { border-bottom: 0; }
tbody tr { transition: background var(--gl-t-fast) var(--gl-ease); }
tbody tr:hover { background: var(--gl-surface-2); }

/* KPI / stat */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: var(--gl-sp-3); margin: var(--gl-sp-4) 0; }
.kpi {
    background: var(--gl-surface); border: 1px solid var(--gl-border);
    border-radius: var(--gl-r-md); padding: var(--gl-sp-4);
    transition: transform var(--gl-t-mid) var(--gl-ease), border-color var(--gl-t-mid) var(--gl-ease);
}
.kpi:hover { transform: translateY(-2px); border-color: var(--gl-border-strong); }
.kpi .v { font-size: 24px; font-weight: var(--gl-weight-bold); color: var(--gl-text); font-variant-numeric: tabular-nums; }
.kpi .v.hl { color: var(--gl-primary); }
.kpi .l { color: var(--gl-muted); font-size: var(--gl-fs-xs); margin-top: 2px; }

/* skeleton loading */
.skeleton {
    position: relative; overflow: hidden; background: var(--gl-surface-3);
    border-radius: var(--gl-r-sm); min-height: 14px;
}
.skeleton::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--gl-surface) 70%, transparent), transparent);
    animation: shimmer 1.4s infinite;
}
@keyframes shimmer { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }

/* empty states */
.empty {
    padding: var(--gl-sp-10) var(--gl-sp-5); text-align: center;
    background: var(--gl-surface); border: 1px dashed var(--gl-border-strong);
    border-radius: var(--gl-r-lg); margin: var(--gl-sp-4) 0;
}
.empty .ico { font-size: 40px; display: block; margin-bottom: var(--gl-sp-3); }
.empty h3 { margin-bottom: var(--gl-sp-2); }
.empty p { color: var(--gl-muted); max-width: 420px; margin: 0 auto var(--gl-sp-4); }

/* toast */
.toast {
    position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px);
    background: var(--gl-surface-3); color: var(--gl-text);
    border: 1px solid var(--gl-border-strong); border-radius: var(--gl-r-md);
    padding: 12px 20px; font-weight: 700; font-size: var(--gl-fs-sm);
    box-shadow: var(--gl-shadow-2); z-index: var(--gl-z-toast);
    opacity: 0; pointer-events: none; transition: opacity var(--gl-t-mid) var(--gl-ease), transform var(--gl-t-mid) var(--gl-ease-spring);
    max-width: 92vw;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.ok { border-color: var(--gl-ok); }

/* modal + drawer primitives */
.scrim {
    position: fixed; inset: 0; background: rgba(4, 8, 6, .6);
    backdrop-filter: blur(3px); z-index: var(--gl-z-modal);
    opacity: 0; pointer-events: none; transition: opacity var(--gl-t-mid) var(--gl-ease);
}
.scrim.open { opacity: 1; pointer-events: auto; }
.modal {
    position: fixed; left: 50%; top: 50%; transform: translate(-50%, -46%) scale(.96);
    width: min(520px, 94vw); max-height: 88vh; overflow: auto;
    background: var(--gl-surface); border: 1px solid var(--gl-border);
    border-radius: var(--gl-r-xl); padding: var(--gl-sp-6);
    box-shadow: var(--gl-shadow-2); z-index: calc(var(--gl-z-modal) + 1);
    opacity: 0; pointer-events: none; transition: opacity var(--gl-t-mid) var(--gl-ease), transform var(--gl-t-mid) var(--gl-ease-spring);
}
.modal.open { opacity: 1; transform: translate(-50%, -50%) scale(1); pointer-events: auto; }
.drawer {
    position: fixed; top: 0; right: 0; bottom: 0; width: min(430px, 94vw);
    background: var(--gl-surface); border-left: 1px solid var(--gl-border);
    z-index: calc(var(--gl-z-modal) + 1); padding: var(--gl-sp-6);
    transform: translateX(102%); transition: transform var(--gl-t-mid) var(--gl-ease-out);
    overflow: auto;
}
.drawer.open { transform: translateX(0); }
.drawer .close, .modal .close, .mobile-nav .close { position: absolute; top: 14px; right: 14px; }

/* QR identity card (§7) */
.qr-card {
    width: min(320px, 100%); margin: 0 auto;
    background: linear-gradient(160deg, var(--gl-surface-2), var(--gl-surface));
    border: 1px solid var(--gl-border-strong); border-radius: var(--gl-r-xl);
    padding: var(--gl-sp-6); text-align: center;
    box-shadow: var(--gl-shadow-2); position: relative; overflow: hidden;
}
.qr-card::before {
    content: ""; position: absolute; inset: -40% -20% auto; height: 70%;
    background: radial-gradient(300px 200px at 50% 0%, var(--gl-primary-wash) 0%, transparent 70%);
}
.qr-card .qr-brand { position: relative; font-weight: var(--gl-weight-bold); letter-spacing: 2px; font-size: var(--gl-fs-xs); color: var(--gl-muted); }
.qr-card .qr-box {
    position: relative; width: 172px; height: 172px; margin: var(--gl-sp-4) auto;
    background: #fff; border-radius: var(--gl-r-lg); padding: 10px; box-shadow: var(--gl-shadow-1);
}
.qr-card .qr-box img, .qr-card .qr-box svg { width: 100%; height: 100%; }
.qr-card .qr-id { position: relative; font-weight: var(--gl-weight-bold); letter-spacing: 2.5px; font-size: var(--gl-fs-md); font-variant-numeric: tabular-nums; }
.qr-card .qr-status {
    position: relative; display: inline-flex; align-items: center; gap: 6px;
    margin-top: var(--gl-sp-3); color: var(--gl-ok); font-weight: 700; font-size: var(--gl-fs-sm);
}
.qr-card .qr-status .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gl-ok); box-shadow: 0 0 0 4px var(--gl-ok-bg); }
.qr-card .qr-hint { position: relative; color: var(--gl-muted); font-size: var(--gl-fs-xs); margin-top: var(--gl-sp-3); letter-spacing: 1.2px; text-transform: uppercase; }

/* ---------- 6. MOTION ---------- */
.rise { animation: rise var(--gl-t-slow) var(--gl-ease-out) both; }
.rise-1 { animation: rise var(--gl-t-slow) var(--gl-ease-out) both; animation-delay: 60ms; }
.rise-2 { animation: rise var(--gl-t-slow) var(--gl-ease-out) both; animation-delay: 130ms; }
.rise-3 { animation: rise var(--gl-t-slow) var(--gl-ease-out) both; animation-delay: 200ms; }
.rise-4 { animation: rise var(--gl-t-slow) var(--gl-ease-out) both; animation-delay: 270ms; }
@keyframes rise {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}
.pop { animation: pop var(--gl-t-mid) var(--gl-ease-spring) both; }
@keyframes pop {
    from { opacity: 0; transform: scale(.94) translateY(6px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}
.fade-in { animation: fadeIn var(--gl-t-mid) var(--gl-ease) both; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.pulse-dot { animation: pulseDot 2s var(--gl-ease) infinite; }
@keyframes pulseDot {
    0%, 100% { box-shadow: 0 0 0 0 var(--gl-ok-bg); }
    50% { box-shadow: 0 0 0 6px transparent; }
}

/* ---------- 7. UTILITIES ---------- */
.muted { color: var(--gl-muted); }
.hl { color: var(--gl-primary); }
.row { display: flex; gap: var(--gl-sp-3); flex-wrap: wrap; align-items: center; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: var(--gl-sp-4); margin: var(--gl-sp-6) 0; }
.section { margin: var(--gl-sp-14) 0; }
.center { text-align: center; }
.hidden { display: none !important; }

/* ---------- 8. RESPONSIVE ---------- */
@media (max-width: 1024px) {
    nav.main { gap: 0; }
    nav.main a { padding: 8px 9px; font-size: 13px; }
    footer.site .wrap { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    :root { --gl-header-h: 58px; }
    nav.main { display: none; }
    .header-actions .search-pop { position: fixed; top: calc(var(--gl-header-h) + 8px); left: 12px; right: 12px; width: auto; }
    .hide-sm { display: none !important; }
    .show-sm { display: inline-flex !important; }
    main.site-main { padding-bottom: calc(var(--gl-sp-14) + 70px); }
    .bottom-nav { display: flex; }
    footer.site .wrap { grid-template-columns: 1fr 1fr; gap: var(--gl-sp-5); }
    .grid { grid-template-columns: 1fr; }
    .kpis { grid-template-columns: repeat(2, 1fr); }
    table { display: block; overflow-x: auto; }
}
@media (max-width: 420px) {
    .wrap { padding: 0 var(--gl-sp-4); }
    .kpis { grid-template-columns: repeat(2, 1fr); }
}

/* Admin-published banner rail (§26) — rendered dynamically from /config */
.banner-rail { margin: 10px 0 0; }
.banner-rail .promo {
    display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
    background: linear-gradient(120deg, var(--gl-primary-wash), var(--gl-surface));
    border: 1px solid var(--gl-primary-wash-2); border-radius: var(--gl-r-lg);
    padding: 14px 18px; margin-bottom: 10px;
}
.banner-rail .promo strong { font-size: 16px; }
.banner-rail .promo .sub { color: var(--gl-muted); font-size: 13px; }

/* OTP flow (§3) — shared by login, register, partner portal */
.otp-row { display: flex; gap: 8px; justify-content: center; margin: 18px 0 8px; }
.otp-row input {
    width: 46px; height: 56px; text-align: center; font-size: 22px; font-weight: 800;
    padding: 0; border-radius: var(--gl-r-md); font-variant-numeric: tabular-nums;
}
.auth-timer { text-align: center; color: var(--gl-muted); font-size: 13px; margin: 12px 0; }
.auth-timer button {
    background: none; border: none; color: var(--gl-primary); font-weight: 800;
    font-size: 13px; cursor: pointer; padding: 4px 8px; border-radius: 8px;
}
.auth-timer button:disabled { color: var(--gl-muted); cursor: not-allowed; }
.auth-back { text-align: center; margin-top: 16px; }
.auth-back button { background: none; border: none; color: var(--gl-muted); cursor: pointer; font-size: 13px; text-decoration: underline; }
.auth-msg { text-align: center; font-size: 13px; margin-top: 12px; min-height: 20px; color: var(--gl-danger); }
.auth-msg.ok { color: var(--gl-ok); }

/* ---------- 9. REDUCED MOTION (§27/§32) ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
    html { scroll-behavior: auto; }
}

/* ---------- 10. PAGE SECTIONS (tokenized, shared) ---------- */
.hero {
    text-align: center; padding: clamp(28px, 6vh, 64px) 0 clamp(28px, 5vh, 48px);
    background: radial-gradient(900px 420px at 50% -10%, var(--gl-primary-wash-2) 0%, transparent 70%);
}
.hero h1 { letter-spacing: -.6px; }
.hero h1 em { color: var(--gl-primary); font-style: normal; }
.hero p { color: var(--gl-muted); max-width: 640px; margin: 14px auto 0; font-size: var(--gl-fs-md); }
.hero p em { color: var(--gl-primary); font-style: normal; }
.hero .actions { display: flex; gap: var(--gl-sp-3); justify-content: center; margin-top: var(--gl-sp-6); flex-wrap: wrap; }

.price { font-size: 24px; font-weight: var(--gl-weight-bold); margin: var(--gl-sp-2) 0; }
.price small { font-size: 13px; color: var(--gl-muted); font-weight: 600; }
.strike { color: var(--gl-muted); text-decoration: line-through; font-size: 14px; margin-left: 6px; }

.prose p, .section > p { color: var(--gl-muted); line-height: 1.8; max-width: 720px; }

.faq details {
    background: var(--gl-surface); border: 1px solid var(--gl-border);
    border-radius: var(--gl-r-md); padding: 14px 18px; margin: var(--gl-sp-2) 0;
    transition: border-color var(--gl-t-fast) var(--gl-ease);
}
.faq details[open] { border-color: var(--gl-primary); }
.faq summary { cursor: pointer; font-weight: 700; }
.faq p { color: var(--gl-muted); margin-top: var(--gl-sp-2); font-size: var(--gl-fs-sm); }

.testimonials blockquote {
    background: var(--gl-surface); border: 1px solid var(--gl-border);
    border-left: 3px solid var(--gl-primary);
    border-radius: var(--gl-r-lg); padding: var(--gl-sp-5);
    color: var(--gl-text-2); line-height: 1.7;
}
.testimonials cite { display: block; margin-top: 10px; color: var(--gl-muted); font-style: normal; font-size: var(--gl-fs-sm); }

.steps { counter-reset: step; }
.steps .card { position: relative; padding-top: 52px; }
.steps .card::before {
    counter-increment: step; content: counter(step);
    position: absolute; top: 16px; left: 20px;
    width: 28px; height: 28px; border-radius: 50%;
    background: var(--gl-primary-wash); color: var(--gl-primary);
    font-weight: var(--gl-weight-bold); font-size: 15px;
    display: grid; place-items: center;
}

.track-steps { display: flex; gap: 6px; flex-wrap: wrap; margin: var(--gl-sp-4) 0; }
.track-steps .step {
    flex: 1; min-width: 90px; background: var(--gl-surface);
    border: 1px solid var(--gl-border); border-radius: var(--gl-r-md);
    padding: 12px 10px; text-align: center; font-size: var(--gl-fs-xs); color: var(--gl-muted);
}
.track-steps .step.done { border-color: var(--gl-primary); color: var(--gl-text); }
.track-steps .step.current { border-color: var(--gl-primary); color: var(--gl-primary-soft); font-weight: var(--gl-weight-bold); }

/* ---------- 11. AUTH-AWARE SHELL (glShell + glDrawers §28) ---------- */
/* Header states */
/* SVG icon set — one shared stroke style across the shell. */
.gl-icon { display: inline-block; vertical-align: -.18em; flex: none; }
.icon-btn svg { width: 18px; height: 18px; }
.drawer .close svg, .mobile-nav .close svg { width: 16px; height: 16px; }
.bottom-nav a .ico svg { width: 19px; height: 19px; }
.bottom-nav a.scan .ico svg { width: 22px; height: 22px; }
.journey-steps .js .ico svg { width: 20px; height: 20px; }
.phone-mock .p-row .ico svg { width: 15px; height: 15px; }
/* CRITICAL: author display rules (.pill-link etc.) override the browser's
   [hidden] default — this restores it so every auth-state toggle actually
   hides (My Account for guests, Login/Create after sign-in, badges at 0). */
[hidden] { display: none !important; }
.cart-badge {
    display: inline-grid; place-items: center; min-width: 18px; height: 18px;
    padding: 0 5px; border-radius: 999px; background: var(--gl-primary); color: var(--gl-primary-ink);
    font-size: 11px; font-weight: 800; line-height: 1;
}
.bell-count {
    position: absolute; top: 4px; right: 2px; min-width: 16px; height: 16px; padding: 0 4px;
    border-radius: 999px; background: var(--gl-primary); color: var(--gl-primary-ink);
    font-size: 10px; font-weight: 800; display: grid; place-items: center;
    border: 2px solid var(--gl-bg);
}
/* One drawer system: body scroll lock + shared scrim behaviour */
.drawer-open { overflow: hidden; }
.gl-drawer { display: flex; flex-direction: column; }
.gl-drawer[hidden] { display: none; }
.gl-drawer .close { background: var(--gl-surface-2); }
.drawer-foot { margin-top: auto; padding-top: var(--gl-sp-4); border-top: 1px solid var(--gl-border); }
.gl-drawer h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; padding-right: 40px; }
.mobile-nav[hidden] { display: none; }
.mobile-nav { z-index: calc(var(--gl-z-modal) + 1); }
.mnav-divider { height: 1px; background: var(--gl-border); margin: 8px 0; }
.mobile-nav .mnav-title { font-size: 11px; letter-spacing: 1.1px; text-transform: uppercase; color: var(--gl-muted); padding: 10px 14px 4px; }
.mobile-nav .mnav-primary { color: var(--gl-primary); font-weight: 800; }
.mobile-nav .mnav-logout {
    width: 100%; text-align: left; background: none; border: none; cursor: pointer;
    padding: 12px 14px; border-radius: var(--gl-r-md); font-weight: 700; color: var(--gl-danger); font-size: 15px;
}
.mobile-nav .mnav-logout:hover { background: var(--gl-surface-2); }

/* Cart drawer */
.cart-line { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--gl-border); }
.cart-line .cl-img {
    width: 52px; height: 52px; border-radius: 12px; flex: none;
    background: var(--gl-primary-wash); border: 1px solid var(--gl-primary-wash-2);
    display: grid; place-items: center; font-size: 24px;
}
.cart-line .cl-name { font-weight: 700; font-size: 13px; }
.qty-ctl { display: inline-flex; align-items: center; gap: 8px; }
.qty-ctl button {
    width: 24px; height: 24px; border-radius: 6px; border: 1px solid var(--gl-border);
    background: var(--gl-surface-2); cursor: pointer; font-weight: 800; font-size: 13px; line-height: 1;
}
.cart-remove { background: none; border: none; color: var(--gl-danger); cursor: pointer; font-size: 12px; font-weight: 700; margin-left: 8px; }
.cart-guest { background: var(--gl-primary-wash); border: 1px dashed var(--gl-primary); border-radius: var(--gl-r-md); padding: 14px; }

/* Account drawer */
.acct-head { display: flex; gap: 12px; align-items: center; padding-bottom: 14px; border-bottom: 1px solid var(--gl-border); margin-bottom: 8px; }
.acct-head h3 { padding: 0; margin: 0 0 2px; font-size: 17px; }
.acct-avatar {
    width: 48px; height: 48px; border-radius: 16px; flex: none;
    background: linear-gradient(135deg, var(--gl-primary-soft), var(--gl-primary-strong));
    color: var(--gl-primary-ink); display: grid; place-items: center; font-weight: 800; font-size: 20px;
}
.acct-menu a, .acct-menu button {
    display: flex; align-items: center; gap: 10px; width: 100%; text-align: left;
    padding: 11px 12px; border-radius: var(--gl-r-md); color: var(--gl-text-2);
    font-weight: 700; font-size: 14px; background: none; border: none; cursor: pointer; text-decoration: none;
}
.acct-menu a:hover, .acct-menu button:hover { background: var(--gl-surface-2); color: var(--gl-text); }
.acct-sec { font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--gl-muted); padding: 12px 12px 3px; }
.acct-sep { height: 1px; background: var(--gl-border); margin: 8px 0; }
.acct-pass { margin-top: 12px; background: var(--gl-surface-2); border: 1px solid var(--gl-border); border-radius: var(--gl-r-md); padding: 14px; }
.acct-pass h4 { margin-bottom: 10px; }
.strength { display: flex; gap: 6px; margin: 4px 0 12px; }
.strength span { flex: 1; height: 5px; border-radius: 99px; background: var(--gl-surface-3); transition: background var(--gl-t-fast) var(--gl-ease); }
.strength.s1 span:nth-child(1) { background: var(--gl-danger); }
.strength.s2 span:nth-child(-n+2) { background: var(--gl-warn); }
.strength.s3 span:nth-child(-n+3) { background: var(--gl-warn); }
.strength.s4 span { background: var(--gl-ok); }

/* Notifications drawer */
.ntf-item { padding: 12px; border-bottom: 1px solid var(--gl-border); border-radius: 10px; font-size: 13px; }
.ntf-item.unread { background: var(--gl-primary-wash); border-bottom-color: var(--gl-primary-wash-2); }
.ntf-empty { text-align: center; padding: 30px 10px; }

/* Search overlay */
.search-overlay { width: 100%; padding: var(--gl-sp-8) var(--gl-sp-6); }
.search-overlay .search-inner { max-width: 620px; margin: 10vh auto 0; width: 100%; }
.search-overlay form { display: flex; gap: 10px; }
.search-overlay input { flex: 1; font-size: 17px; padding: 14px 16px; }
.search-quick { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.search-quick a {
    color: var(--gl-primary); font-weight: 700; font-size: 13px; text-decoration: none;
    padding: 8px 12px; background: var(--gl-primary-wash); border-radius: var(--gl-r-pill);
}
.search-quick a:hover { background: var(--gl-primary-soft); }

/* Visible keyboard focus everywhere (§30) */
.gl-drawer a:focus-visible, .gl-drawer button:focus-visible, .gl-drawer input:focus-visible,
.mobile-nav a:focus-visible, .mobile-nav button:focus-visible {
    outline: 2px solid var(--gl-primary); outline-offset: 2px;
}

/* Unified auth component inside the drawer (§4) */
.auth-tabs { display: flex; gap: 8px; margin-bottom: 16px; }
.auth-tabs button {
    flex: 1; padding: 10px; border-radius: var(--gl-r-md); cursor: pointer;
    background: var(--gl-surface-2); border: 1px solid var(--gl-border);
    color: var(--gl-muted); font-weight: 800; font-size: 13px;
}
.auth-tabs button.active { background: var(--gl-primary); color: var(--gl-primary-ink); border-color: var(--gl-primary); }
.auth-sub { display: none; }
.auth-sub.on { display: block; animation: rise var(--gl-t-mid) var(--gl-ease-out) both; }
.phone-row { display: flex; gap: 10px; align-items: stretch; }
.phone-row .cc {
    width: 74px; flex: none; text-align: center; font-weight: 700;
    background: var(--gl-surface-2); color: var(--gl-text-2);
}
.pw-row { position: relative; }
.pw-row .eye {
    position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
    background: none; border: none; cursor: pointer; font-size: 15px; color: var(--gl-muted);
}
.linklike { background: none; border: none; color: var(--gl-primary); font-weight: 800; cursor: pointer; font-size: 13px; padding: 4px 6px; border-radius: 8px; }

/* Registration progress (01 → 04) */
.auth-progress { margin: 0 0 18px; }
.auth-progress ol {
    list-style: none; display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin: 0; padding: 0;
}
.auth-progress li {
    display: flex; align-items: center; gap: 8px;
    font-size: 11px; font-weight: 800; letter-spacing: .6px; color: var(--gl-muted);
    padding: 7px 12px; border-radius: var(--gl-r-pill);
    background: var(--gl-surface-2); border: 1px solid var(--gl-border);
}
.auth-progress li.on { background: var(--gl-primary); color: var(--gl-primary-ink); border-color: var(--gl-primary); }
.auth-progress li.done { background: var(--gl-primary-wash); color: var(--gl-primary); border-color: var(--gl-primary); }
.auth-progress li::after { content: "→"; color: var(--gl-muted); margin-left: 8px; }
.auth-progress li:last-child::after { content: ""; margin: 0; }
.auth-progress li.on {
    background: linear-gradient(135deg, var(--gl-primary-soft), var(--gl-primary) 60%, #0E9F6E);
    color: #fff; border-color: transparent; box-shadow: 0 4px 12px rgba(16, 185, 129, .28);
}
.auth-progress li.done { background: var(--gl-lime-soft); color: var(--gl-lime-ink); border-color: var(--gl-primary-wash-2); }

/* ---------- 12. PREMIUM COLORWAY (brand-deep surfaces) ---------- */
/* Deep-green footer — lighter segment; wordmark reads white + lime. */
footer.site {
    margin-top: var(--gl-sp-14);
    background:
        radial-gradient(700px 300px at 12% 0%, rgba(134, 239, 172, .22), transparent 60%),
        linear-gradient(135deg, #0B4A2A 0%, #0E5C31 55%, #10713C 100%);
    border-top: 3px solid transparent;
    border-image: linear-gradient(90deg, var(--gl-primary-soft), var(--gl-lime) 50%, var(--gl-primary-soft)) 1;
    color: rgba(242, 253, 246, .85);
}
footer.site .wrap { padding: var(--gl-sp-10) 0 var(--gl-sp-6); }
footer.site .logo-word { color: #fff; }
footer.site .logo-tag { color: rgba(167, 243, 208, .75) !important; }
footer.site .wm-grow { color: #FFFFFF; }
footer.site .wm-leafy { color: var(--gl-lime); }
footer.site p { color: rgba(242, 253, 246, .70); }
footer.site a { color: rgba(242, 253, 246, .78); display: block; padding: 2px 0; transition: color var(--gl-t-fast) var(--gl-ease); }
footer.site a:hover { color: var(--gl-lime); }
footer.site .wrap > div > strong { color: var(--gl-lime) !important; }
footer.site .brand .logo-mark { box-shadow: 0 6px 18px rgba(0, 0, 0, .35); }
footer.site .footer-credits {
    display: flex; gap: 10px; align-items: center; justify-content: center;
    padding: 16px 0 0; margin-top: 18px;
    border-top: 1px solid rgba(134, 239, 172, .18);
    font-size: 13px; color: rgba(242, 253, 246, .72);
    flex-wrap: wrap;
}
footer.site .footer-credits .fc-sep { color: rgba(134, 239, 172, .5); }

/* Hero QR identity mock — glowing premium card. */
.qr-card {
    box-shadow: 0 18px 44px rgba(6, 46, 28, .28), inset 0 1px 0 rgba(255, 255, 255, .6);
    border: 1px solid var(--gl-border-strong);
}
.qr-card .qr-box { box-shadow: 0 8px 20px rgba(6, 46, 28, .14); }

/* Auth/payment cards — a soft green halo so forms don't float flat. */
.auth-shell .card,
#gate-login .card,
#ck-guest .card {
    box-shadow: var(--gl-shadow-2);
    border-color: var(--gl-border-strong);
}
