/**
 * SWADS Customer Theme
 * Browse & Scan (/app) + auth funnel — black chassis, orange accents.
 * Personal Dashboard uses Dashboard Theme: dashboard_theme.css (black + orange glass).
 */

:root {
    --customer-bg-deep: #050505;
    --customer-bg-mid: #0c0c0c;
    --customer-bg-glow: #161616;
    --browse-bg-deep: #030303;
    --browse-bg-mid: #0a0a0a;
    --browse-bg-glow: #141414;
    --customer-accent: #ff6b00;
    --customer-accent-soft: #ffb77d;
    --customer-glass-bg: rgba(255, 255, 255, 0.06);
    --customer-glass-border: rgba(255, 255, 255, 0.14);
    --customer-glass-panel: rgba(0, 0, 0, 0.45);
    --customer-text: #ffffff;
    --customer-text-muted: rgba(255, 255, 255, 0.88);
    --customer-text-dim: rgba(255, 255, 255, 0.72);
    --customer-text-detail: rgba(255, 248, 240, 0.92);
    --primary-orb-size: min(72vw, 17.5rem);
    --secondary-orb-size: min(42vw, 7.5rem);
    --browse-orb-size: var(--primary-orb-size);
    --scan-orb-size: var(--secondary-orb-size);
    --app-shell-w: 30rem;
    --slide-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* —— Base —— */
html,
body.scan-customer {
    height: 100%;
    margin: 0;
    overflow: hidden;
    overscroll-behavior: none;
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    font-family: var(--main-font), 'Roboto Flex', sans-serif;
    background: var(--customer-bg-deep);
    color: var(--customer-text);
}

body.scan-customer {
    padding-top: 0 !important;
}

.app-layers {
    height: 200dvh;
    width: 100%;
    transition: transform 0.5s var(--slide-ease);
    will-change: transform;
}

.app-layers.is-browse {
    transform: translateY(-100dvh);
}

.layer-scan,
.layer-browse {
    height: 100dvh;
    width: 100%;
    overflow: hidden;
}

.layer-scan {
    background: radial-gradient(
        ellipse 130% 95% at 50% -8%,
        var(--customer-bg-glow) 0%,
        var(--customer-bg-mid) 50%,
        var(--customer-bg-deep) 100%
    );
}

.layer-browse {
    background: radial-gradient(
        ellipse 130% 95% at 50% -8%,
        var(--browse-bg-glow) 0%,
        var(--browse-bg-mid) 45%,
        var(--browse-bg-deep) 100%
    );
}

.scan-shell,
.browse-shell {
    max-width: var(--app-shell-w);
    margin: 0 auto;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.scan-shell::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 38%, transparent 0%, rgba(0, 0, 0, 0.5) 100%);
    pointer-events: none;
    z-index: 0;
}

.browse-shell::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 38%, transparent 0%, rgba(0, 0, 0, 0.55) 100%);
    pointer-events: none;
    z-index: 0;
}

.scan-shell > *,
.browse-shell > * {
    position: relative;
    z-index: 1;
}

/* —— Topbar: Dashboard pinned left, menu pinned right (within app shell) —— */
.scan-topbar {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding: max(10px, env(safe-area-inset-top)) 16px 12px;
    padding-left: calc(16px + env(safe-area-inset-left, 0px));
    padding-right: calc(16px + env(safe-area-inset-right, 0px));
    flex-shrink: 0;
    background: transparent;
    border-bottom: none;
    box-sizing: border-box;
}

.scan-topbar__dash {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 36px;
    margin-right: auto; /* stay on the left; menu goes to the far right */
    order: -1;
    padding: 0 11px;
    box-sizing: border-box;
    border-radius: 10px;
    border: 1px solid rgba(255, 107, 0, 0.4);
    background: rgba(0, 0, 0, 0.55);
    color: #ffb77d;
    text-decoration: none;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    box-shadow:
        0 0 12px rgba(255, 107, 0, 0.12),
        inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.scan-topbar__dash i {
    color: #ff6b00;
    font-size: 0.85rem;
}

.scan-topbar__dash:active {
    transform: scale(0.97);
}

.scan-topbar .scan-menu-btn {
    margin-left: auto;
    flex-shrink: 0;
}

.scan-menu-btn {
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--customer-text);
    font-size: 1.1rem;
    cursor: pointer;
}

/* —— Welcome (first-time orientation) —— */
.scan-welcome {
    text-align: center;
    padding: 14px 20px 4px;
    flex-shrink: 0;
}

.scan-welcome-title {
    margin: 0 0 8px;
    font-size: clamp(2rem, 9vw, 2.85rem);
    font-weight: 300;
    line-height: 1.05;
    letter-spacing: 0.04em;
    color: var(--customer-text);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

body.site-fotograpp .scan-welcome-eyebrow {
    margin: 0 0 0.35rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--customer-text-dim);
}

body.site-fotograpp .scan-welcome-logo {
    margin: 0 0 8px;
    font-family: var(--logo-font);
    font-size: clamp(1.5rem, 8vw, 2.2rem);
    font-weight: 900;
    letter-spacing: -0.045em;
    line-height: 1;
    color: var(--customer-text);
    white-space: nowrap;
}

body.site-fotograpp .scan-welcome-logo span {
    color: var(--customer-accent);
}

.scan-welcome-tagline {
    margin: 0 auto;
    max-width: none;
    width: 100%;
    padding: 0 10px;
    box-sizing: border-box;
    font-size: clamp(0.52rem, 2.2vw, 0.65rem);
    font-weight: 300;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1.35;
    color: var(--customer-text-dim);
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
    text-align: center;
}

/* —— Scan stage & orbs —— */
.scan-stage {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px 24px 0;
    min-height: 0;
}

.scan-ring,
.browse-ring {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.scan-ring {
    border: 1px solid rgba(255, 255, 255, 0.1);
}

@keyframes scan-pulse {
    0%, 100% { opacity: 0.35; transform: scale(1); }
    50% { opacity: 0.85; transform: scale(1.02); }
}

@keyframes scan-ripple {
    0% { transform: scale(1); opacity: 0.55; }
    70% { transform: scale(1.35); opacity: 0; }
    100% { transform: scale(1.35); opacity: 0; }
}

@keyframes orb-throb {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes orb-glow-breathe {
    0%, 100% { opacity: 0.45; transform: scale(0.92); }
    50% { opacity: 0.95; transform: scale(1.08); }
}

@keyframes orb-glisten {
    0% { transform: translateX(-130%) skewX(-12deg); opacity: 0; }
    12% { opacity: 0.85; }
    45% { transform: translateX(130%) skewX(-12deg); opacity: 0; }
    100% { transform: translateX(130%) skewX(-12deg); opacity: 0; }
}

@keyframes orb-specular {
    0%, 100% { opacity: 0.65; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.06); }
}

.scan-orb-btn,
.browse-orb-btn {
    position: relative;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    padding: 0;
    overflow: hidden;
    isolation: isolate;
    background:
        radial-gradient(ellipse 38% 30% at 30% 26%, rgba(255, 255, 255, 0.22) 0%, transparent 55%),
        radial-gradient(circle at 50% 72%, rgba(0, 0, 0, 0.85) 0%, transparent 55%),
        radial-gradient(circle at 50% 48%, #2a2a2a 0%, #141414 42%, #070707 100%);
    box-shadow:
        inset 0 -14px 28px rgba(0, 0, 0, 0.75),
        inset 0 10px 22px rgba(255, 255, 255, 0.08),
        inset 0 0 0 1px rgba(255, 255, 255, 0.1),
        0 0 0 1px rgba(255, 107, 0, 0.35),
        0 0 0 3px rgba(255, 107, 0, 0.08),
        0 18px 44px rgba(0, 0, 0, 0.65),
        0 0 36px rgba(255, 107, 0, 0.28),
        0 0 72px rgba(255, 107, 0, 0.12);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    animation: orb-throb 2.4s ease-in-out infinite;
    z-index: 2;
}

.browse-orb-btn {
    width: var(--primary-orb-size);
    height: var(--primary-orb-size);
}

.scan-orb-btn {
    width: var(--secondary-orb-size);
    height: var(--secondary-orb-size);
    animation-duration: 2.8s;
    animation-delay: 0.3s;
    box-shadow:
        inset 0 -10px 20px rgba(0, 0, 0, 0.7),
        inset 0 6px 14px rgba(255, 255, 255, 0.07),
        inset 0 0 0 1px rgba(255, 255, 255, 0.08),
        0 0 0 1px rgba(255, 107, 0, 0.3),
        0 0 0 2px rgba(255, 107, 0, 0.06),
        0 10px 28px rgba(0, 0, 0, 0.6),
        0 0 22px rgba(255, 107, 0, 0.22),
        0 0 48px rgba(255, 107, 0, 0.1);
}

.scan-orb-btn::before,
.browse-orb-btn::before {
    content: '';
    position: absolute;
    inset: -8%;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(255, 107, 0, 0.55) 0%,
        rgba(255, 107, 0, 0.18) 42%,
        transparent 70%
    );
    filter: blur(2px);
    z-index: -1;
    animation: orb-glow-breathe 2.4s ease-in-out infinite;
    pointer-events: none;
}

.scan-orb-shine {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    overflow: hidden;
    pointer-events: none;
    z-index: 3;
}

.scan-orb-shine::after {
    content: '';
    position: absolute;
    top: -20%;
    left: 0;
    width: 45%;
    height: 140%;
    background: linear-gradient(
        105deg,
        transparent 0%,
        rgba(255, 255, 255, 0.05) 35%,
        rgba(255, 255, 255, 0.55) 50%,
        rgba(255, 255, 255, 0.08) 65%,
        transparent 100%
    );
    animation: orb-glisten 3.2s ease-in-out infinite;
}

.scan-orb-specular {
    position: absolute;
    top: 14%;
    left: 22%;
    width: 28%;
    height: 18%;
    border-radius: 50%;
    background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.75) 0%, transparent 70%);
    pointer-events: none;
    z-index: 4;
    animation: orb-specular 2.4s ease-in-out infinite;
}

.scan-orb-label,
.browse-orb-label {
    position: relative;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--customer-text);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

.scan-orb-label { gap: 3px; width: 100%; height: 100%; }
.browse-orb-label { gap: 6px; width: 100%; height: 100%; }

.scan-orb-label .scan-title {
    font-size: clamp(1rem, 4.5vw, 1.35rem);
    font-weight: 300;
    letter-spacing: 0.06em;
    line-height: 1;
}

.scan-orb-label .scan-sub {
    font-size: clamp(1rem, 4.5vw, 1.35rem);
    font-weight: 300;
    opacity: 1;
    letter-spacing: 0.06em;
    line-height: 1;
    text-transform: uppercase;
}

.browse-orb-label .browse-title {
    font-size: clamp(2rem, 9vw, 2.75rem);
    font-weight: 300;
    letter-spacing: 0.04em;
    line-height: 1;
}

.browse-orb-label .browse-sub {
    font-size: clamp(0.65rem, 2.8vw, 0.8rem);
    font-weight: 400;
    opacity: 0.92;
    letter-spacing: 0.06em;
}

.browse-orb-label--solo .browse-title {
    font-size: clamp(1.9rem, 8.5vw, 2.75rem);
}

.browse-orb-label--solo .browse-title--find {
    font-size: clamp(1.05rem, 4.4vw, 1.35rem);
    line-height: 1.05;
    letter-spacing: 0.01em;
    max-width: 7.4rem;
    white-space: normal;
}

/* Affordance microcopy — Shazam-style "tap to" cue inside the orb */
.browse-orb-label .browse-tap {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: clamp(0.6rem, 2.6vw, 0.72rem);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: rgba(255, 170, 100, 0.95);
    text-shadow: 0 0 10px rgba(255, 107, 0, 0.55);
    animation: browse-tap-pulse 2.4s ease-in-out infinite;
}

@keyframes browse-tap-pulse {
    0%, 100% { opacity: 0.55; }
    50% { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .browse-orb-label .browse-tap { animation: none; opacity: 0.9; }
}

.scan-orb-btn:active,
.browse-orb-btn:active {
    animation: none;
    transform: scale(0.96);
}

.browse-cluster {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.browse-rings {
    position: relative;
    width: calc(var(--primary-orb-size) + 4rem);
    height: calc(var(--primary-orb-size) + 4rem);
    display: flex;
    align-items: center;
    justify-content: center;
}

.browse-ring {
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.browse-ring--outer {
    width: calc(var(--primary-orb-size) + 3.5rem);
    height: calc(var(--primary-orb-size) + 3.5rem);
    animation: scan-pulse 3s ease-in-out infinite;
}

.browse-ring--mid {
    width: calc(var(--primary-orb-size) + 1.75rem);
    height: calc(var(--primary-orb-size) + 1.75rem);
    border-color: rgba(255, 255, 255, 0.08);
    animation: scan-pulse 3s ease-in-out infinite 0.4s;
}

.browse-ring--ripple {
    width: var(--primary-orb-size);
    height: var(--primary-orb-size);
    border: 2px solid rgba(255, 220, 160, 0.45);
    animation: scan-ripple 2.4s ease-out infinite;
}

.scan-rings {
    margin-top: 1.5rem;
    position: relative;
    width: calc(var(--secondary-orb-size) + 2.5rem);
    height: calc(var(--secondary-orb-size) + 2.5rem);
    display: flex;
    align-items: center;
    justify-content: center;
}

.scan-ring--outer {
    width: calc(var(--secondary-orb-size) + 2rem);
    height: calc(var(--secondary-orb-size) + 2rem);
    animation: scan-pulse 3.2s ease-in-out infinite 0.2s;
}

.scan-ring--ripple {
    width: var(--secondary-orb-size);
    height: var(--secondary-orb-size);
    border: 1px solid rgba(255, 220, 160, 0.3);
    animation: scan-ripple 2.8s ease-out infinite 0.6s;
}

@media (prefers-reduced-motion: reduce) {
    .scan-orb-btn,
    .browse-orb-btn,
    .scan-orb-btn::before,
    .browse-orb-btn::before,
    .scan-orb-shine::after,
    .scan-orb-specular,
    .scan-ring--outer,
    .scan-ring--ripple,
    .browse-ring--outer,
    .browse-ring--mid,
    .browse-ring--ripple {
        animation: none !important;
    }
}

/* —— Scan footer —— */
.scan-footer {
    flex-shrink: 0;
    padding: 16px 24px max(20px, env(safe-area-inset-bottom));
    text-align: center;
}

.scan-footer-meta {
    font-size: 11px;
    line-height: 1.6;
    color: var(--customer-text-muted);
    font-weight: 300;
}

.scan-footer-meta strong {
    color: var(--customer-text);
    font-weight: 500;
}

.scan-footer-link {
    display: inline-block;
    margin-top: 12px;
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--customer-text-dim);
    text-decoration: none;
}

.scan-footer-link:hover {
    color: var(--customer-accent-soft);
}

.scan-install-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 10px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 140, 60, 0.45);
    background: rgba(255, 107, 0, 0.18);
    color: #fff4e8;
    font-family: inherit;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.scan-install-btn:active {
    background: rgba(255, 107, 0, 0.28);
}

/* —— Browse / search layer —— */
.browse-handle-zone {
    flex-shrink: 0;
    padding: max(10px, env(safe-area-inset-top)) 0 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: grab;
    touch-action: none;
}

.browse-handle-zone:active { cursor: grabbing; }

.browse-handle {
    width: 42px;
    height: 4px;
    border-radius: 999px;
    background: #ff6b00;
    margin-bottom: 6px;
    box-shadow:
        0 0 4px #ff6b00,
        0 0 10px rgba(255, 107, 0, 0.95),
        0 0 20px rgba(255, 107, 0, 0.65),
        0 0 36px rgba(255, 107, 0, 0.35);
    animation: browse-handle-neon 2.2s ease-in-out infinite;
}

@keyframes browse-handle-neon {
    0%, 100% {
        opacity: 0.85;
        box-shadow:
            0 0 4px #ff6b00,
            0 0 10px rgba(255, 107, 0, 0.85),
            0 0 18px rgba(255, 107, 0, 0.5),
            0 0 30px rgba(255, 107, 0, 0.25);
    }
    50% {
        opacity: 1;
        box-shadow:
            0 0 6px #ffb77d,
            0 0 14px rgba(255, 107, 0, 1),
            0 0 28px rgba(255, 107, 0, 0.75),
            0 0 44px rgba(255, 107, 0, 0.4);
    }
}

.browse-handle-hint--fine {
    display: none;
}

@media (hover: hover) and (pointer: fine) {
    .browse-handle-hint--touch {
        display: none;
    }

    .browse-handle-hint--fine {
        display: block;
    }
}

.browse-handle-hint {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 183, 125, 0.8);
    text-shadow: 0 0 12px rgba(255, 107, 0, 0.35);
}

.browse-header {
    flex-shrink: 0;
    padding: 0 16px 8px;
}

.browse-header h2 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 300;
    letter-spacing: 0.06em;
    color: var(--customer-text);
}

.browse-header h2 span {
    color: var(--customer-accent-soft);
}

.browse-loc-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--customer-text-muted);
}

.browse-loc-row .loc-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    flex: 1;
}

.browse-loc-row .loc-pill i {
    color: var(--customer-accent-soft);
    font-size: 11px;
}

.browse-loc-row .loc-pill span {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.browse-loc-refresh {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: 1px solid var(--customer-glass-border);
    background: var(--customer-glass-bg);
    color: var(--customer-text);
    font-size: 11px;
    cursor: pointer;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.browse-top-controls {
    flex-shrink: 0;
    padding: 0 16px 10px;
    border-bottom: 1px solid rgba(255, 107, 0, 0.12);
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.browse-top-controls .browse-cat-row {
    padding-top: 4px;
    margin-bottom: 8px;
}

.browse-search-wrap {
    display: flex;
    gap: 8px;
    align-items: center;
}

.browse-search-input {
    flex: 1;
    min-width: 0;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid var(--customer-glass-border);
    border-radius: 999px;
    padding: 10px 16px;
    font-size: 15px;
    font-weight: 300;
    color: var(--customer-text);
    outline: none;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.browse-search-input:focus {
    border-color: rgba(255, 107, 0, 0.55);
    box-shadow: 0 0 12px rgba(255, 107, 0, 0.15);
}

.browse-search-input::placeholder {
    color: var(--customer-text-dim);
    font-weight: 400;
}

.browse-search-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(255, 107, 0, 0.45);
    background: rgba(0, 0, 0, 0.55);
    color: #ffb77d;
    font-size: 13px;
    cursor: pointer;
    flex-shrink: 0;
    box-shadow: 0 0 14px rgba(255, 107, 0, 0.18);
}

.browse-cat-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}

.browse-cat-btn,
.browse-filter-btn {
    border-radius: 12px;
    border: 1px solid var(--customer-glass-border);
    background: var(--customer-glass-bg);
    color: var(--customer-text-detail);
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.browse-cat-btn {
    padding: 10px 6px;
    font-size: 12px;
}

.browse-cat-btn.is-active,
.browse-filter-btn.is-active {
    border-color: rgba(255, 107, 0, 0.55);
    background: rgba(0, 0, 0, 0.5);
    color: var(--customer-accent-soft);
    box-shadow: 0 0 16px rgba(255, 107, 0, 0.2);
}

.browse-filter-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
}

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

.browse-filter-btn {
    padding: 9px 4px;
    border-radius: 10px;
    font-size: 12px;
    white-space: nowrap;
    min-width: 0;
}

.browse-filter-wrap {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.28s ease, opacity 0.22s ease, margin-top 0.22s ease;
    margin-top: 0;
}

.browse-filter-wrap.is-visible {
    max-height: 72px;
    opacity: 1;
    margin-top: 8px;
}

.browse-mode-wrap {
    margin-top: 10px;
    padding: 0 2px;
}

.browse-signal-legend {
    margin-top: 8px;
    padding: 6px 10px 8px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.4);
}

.browse-signal-legend__title {
    margin: 0 0 4px;
    padding: 0 1px;
    color: rgba(255, 183, 125, 0.9);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-align: left;
}

.browse-signal-legend__row {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
    padding: 6px 4px 6px 6px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.browse-signal-legend__row::-webkit-scrollbar {
    display: none;
}

.browse-signal-legend__item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    flex-shrink: 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.browse-signal-legend__item i,
.browse-signal-legend__item .store-signal-pig {
    color: #ff6b00;
    width: 15px;
    height: 15px;
    font-size: 12px;
    flex-shrink: 0;
}

.browse-signal-legend__item .store-signal-glyph {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 15px;
    width: auto;
    height: 15px;
    flex-shrink: 0;
    overflow: visible;
    color: #ff6b00;
}

.browse-signal-legend__item .store-signal-ring {
    position: absolute;
    inset: -5px;
    width: auto;
    height: auto;
    color: #ff6b00;
    pointer-events: none;
}

.browse-signal-legend__item .store-signal-slash {
    position: absolute;
    inset: -5px;
    width: auto;
    height: auto;
    color: #ffffff;
    pointer-events: none;
    filter: drop-shadow(0 0 1px rgba(0, 0, 0, 0.85));
}

.browse-signal-legend__item .store-signal-pig {
    position: relative;
    width: 15px;
    height: 15px;
    color: #ff6b00;
    flex-shrink: 0;
    background: none;
}
.browse-signal-legend__item .store-signal-pig__body,
.browse-signal-legend__item .store-signal-pig__face {
    position: absolute;
    inset: 0;
    display: block;
}
.browse-signal-legend__item .store-signal-pig__body {
    background-color: #ff6b00;
    -webkit-mask: url('/img/store-signal-pig.png?v=4') center / contain no-repeat;
    mask: url('/img/store-signal-pig.png?v=4') center / contain no-repeat;
}
.browse-signal-legend__item .store-signal-pig__face {
    background-color: #0a0a0a;
    -webkit-mask: url('/img/store-signal-pig-face.png?v=4') center / contain no-repeat;
    mask: url('/img/store-signal-pig-face.png?v=4') center / contain no-repeat;
}

.browse-signal-legend__item .store-signal-24h__num {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1;
    color: #ff6b00;
}
.browse-signal-legend__item .store-signal-24h__hr {
    font-size: 13px;
    margin-left: 0;
    font-weight: 700;
    color: #ffffff;
    line-height: 1;
    letter-spacing: 0.01em;
}

.browse-signal-legend__item--24h {
    gap: 5px;
}

.browse-signal-legend__sep {
    width: 1px;
    height: 14px;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.16);
}

.browse-mode-toggle {
    display: flex;
    gap: 4px;
    padding: 4px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background:
        radial-gradient(ellipse 80% 120% at 50% 0%, rgba(255, 255, 255, 0.06) 0%, transparent 55%),
        rgba(0, 0, 0, 0.55);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        inset 0 -8px 18px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.browse-mode-btn {
    position: relative;
    flex: 1;
    padding: 9px 8px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: transparent;
    color: var(--customer-text-muted);
    font-family: inherit;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    isolation: isolate;
    overflow: hidden;
    transition: color 0.2s, background 0.2s, box-shadow 0.2s, border-color 0.2s, transform 0.15s;
}

.browse-mode-btn.is-active {
    color: #fff;
    font-weight: 600;
    border-color: rgba(255, 107, 0, 0.55);
    background:
        radial-gradient(ellipse 42% 55% at 28% 22%, rgba(255, 255, 255, 0.28) 0%, transparent 58%),
        radial-gradient(circle at 50% 110%, rgba(0, 0, 0, 0.85) 0%, transparent 55%),
        radial-gradient(circle at 50% 48%, #2c2c2c 0%, #161616 45%, #070707 100%);
    box-shadow:
        inset 0 -8px 16px rgba(0, 0, 0, 0.7),
        inset 0 5px 10px rgba(255, 255, 255, 0.08),
        inset 0 0 0 1px rgba(255, 255, 255, 0.08),
        0 0 0 1px rgba(255, 107, 0, 0.4),
        0 6px 16px rgba(0, 0, 0, 0.45),
        0 0 18px rgba(255, 107, 0, 0.35),
        0 0 32px rgba(255, 107, 0, 0.16);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
    animation: browse-mode-orb-throb 2.6s ease-in-out infinite;
}

.browse-mode-btn.is-active::before {
    content: '';
    position: absolute;
    inset: -35% -10% -55%;
    border-radius: inherit;
    background: radial-gradient(
        ellipse 70% 80% at 50% 55%,
        rgba(255, 107, 0, 0.45) 0%,
        rgba(255, 107, 0, 0.12) 42%,
        transparent 70%
    );
    filter: blur(2px);
    z-index: -1;
    pointer-events: none;
    animation: browse-mode-orb-glow 2.6s ease-in-out infinite;
}

.browse-mode-btn:active:not(.is-active) {
    transform: scale(0.98);
}

@keyframes browse-mode-orb-throb {
    0%, 100% {
        box-shadow:
            inset 0 -8px 16px rgba(0, 0, 0, 0.7),
            inset 0 5px 10px rgba(255, 255, 255, 0.08),
            inset 0 0 0 1px rgba(255, 255, 255, 0.08),
            0 0 0 1px rgba(255, 107, 0, 0.35),
            0 6px 16px rgba(0, 0, 0, 0.45),
            0 0 14px rgba(255, 107, 0, 0.28),
            0 0 28px rgba(255, 107, 0, 0.12);
    }
    50% {
        box-shadow:
            inset 0 -8px 16px rgba(0, 0, 0, 0.7),
            inset 0 5px 10px rgba(255, 255, 255, 0.08),
            inset 0 0 0 1px rgba(255, 255, 255, 0.08),
            0 0 0 1px rgba(255, 107, 0, 0.55),
            0 6px 16px rgba(0, 0, 0, 0.45),
            0 0 22px rgba(255, 107, 0, 0.42),
            0 0 40px rgba(255, 107, 0, 0.2);
    }
}

@keyframes browse-mode-orb-glow {
    0%, 100% { opacity: 0.55; }
    50% { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .browse-mode-btn.is-active,
    .browse-mode-btn.is-active::before {
        animation: none !important;
    }
}

.browse-results--market {
    padding: 10px 12px 16px;
}

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

.product-grid-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    background: var(--customer-glass-bg);
    border: 1px solid var(--customer-glass-border);
    border-radius: 14px;
    overflow: hidden;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    transition: border-color 0.2s;
}

.product-grid-card:active {
    border-color: rgba(255, 183, 125, 0.45);
}

.product-grid-card__img {
    position: relative;
    aspect-ratio: 1;
    background: rgba(0, 0, 0, 0.22);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-grid-card__img:not(:has(img)) {
    border-bottom: 1px solid rgba(255, 107, 0, 0.4);
    box-shadow: inset 0 0 0 1px rgba(255, 107, 0, 0.12);
}

.product-grid-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-grid-card__img i {
    font-size: 1.75rem;
    color: var(--customer-accent-soft);
    opacity: 0.7;
}

.product-grid-card__kind {
    position: absolute;
    top: 6px;
    left: 6px;
    padding: 2px 7px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #fff4e8;
    background: rgba(255, 107, 0, 0.75);
    border: 1px solid rgba(255, 183, 125, 0.4);
}

.product-grid-card__kind--community {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #e8f4ff;
    background: rgba(37, 99, 235, 0.72);
    border-color: rgba(147, 197, 253, 0.45);
}

.product-grid-card__kind--community i {
    font-size: 10px;
    opacity: 0.95;
}

.product-grid-card--community {
    border-color: rgba(96, 165, 250, 0.28);
}

.product-grid-card__dist {
    position: absolute;
    bottom: 6px;
    right: 6px;
    padding: 2px 6px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 500;
    color: var(--customer-text-detail);
    background: rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.product-grid-card__body {
    padding: 8px 9px 10px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-height: 4.25rem;
}

.product-grid-card__name {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--customer-text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-grid-card__price {
    margin: 2px 0 0;
    font-size: 14px;
    font-weight: 600;
    color: #fff4e8;
}

.product-grid-card__store {
    margin: auto 0 0;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.04em;
    color: var(--customer-text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-grid-card--promo {
    border-radius: 0 0 14px 14px;
}

.product-grid-card--promo .product-grid-card__merchant {
    padding: 20px 14px 14px 18px;
    border-bottom: 1px solid rgba(255, 107, 0, 0.28);
    background: #000;
    border-radius: 0;
    box-sizing: border-box;
}

.product-grid-card--promo .product-grid-card__merchant-name {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif !important;
    font-size: 16px;
    font-weight: 800 !important;
    font-style: normal;
    line-height: 1.3;
    color: #fff;
    letter-spacing: 0.02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: normal;
    overflow-wrap: normal;
}

.product-grid-card--promo .product-grid-card__body {
    min-height: 0;
}

.product-grid-card--promo .product-grid-card__price {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    color: #fff4e8;
}

.product-grid-card--promo .product-grid-card__name {
    margin: 2px 0 0;
    font-size: 12px;
    font-weight: 500;
    color: var(--customer-text-muted);
    -webkit-line-clamp: 2;
}

.browse-results {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 12px 16px;
    overscroll-behavior-y: contain;
}

.browse-results::-webkit-scrollbar { width: 2px; }
.browse-results::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
}

.browse-empty {
    height: 100%;
    min-height: 10rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--customer-text-muted);
}

.browse-empty i {
    font-size: 2rem;
    margin-bottom: 10px;
    color: rgba(255, 183, 125, 0.55);
}

.browse-empty p {
    margin: 0;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--customer-text-detail);
}

.browse-loading {
    text-align: center;
    padding: 2rem;
    color: var(--customer-accent-soft);
}

/* —— Result cards (customer glass) —— */
.dir-results-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dir-result {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 6px;
}

.glass-card {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 12px;
    margin-bottom: 8px;
    text-decoration: none;
    color: var(--customer-text);
    background: var(--customer-glass-bg);
    border: 1px solid var(--customer-glass-border);
    border-radius: 16px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: border-color 0.2s;
}

.glass-card--slim {
    gap: 10px;
    padding: 10px 12px;
    margin-bottom: 0;
    border-radius: 14px;
    min-height: 0;
    align-items: flex-start;
    /* Quiet graphite glass + faint orange wash — readable in a dense list */
    background:
        linear-gradient(
            135deg,
            rgba(255, 107, 0, 0.1) 0%,
            rgba(255, 255, 255, 0.04) 42%,
            rgba(0, 0, 0, 0.35) 100%
        ),
        rgba(12, 12, 12, 0.72);
    border: 1px solid rgba(255, 107, 0, 0.22);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 4px 16px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.dir-result .glass-card--slim {
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

.dir-result .glass-card--slim:active {
    border-color: rgba(255, 107, 0, 0.45);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 0 18px rgba(255, 107, 0, 0.14);
}

.glass-card:visited,
.glass-card:hover {
    text-decoration: none;
    color: var(--customer-text);
}

.glass-card:active {
    border-color: rgba(255, 107, 0, 0.4);
}

.glass-card__logo {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.glass-card__logo:not(:has(img)) {
    border-color: rgba(255, 107, 0, 0.4);
    box-shadow: 0 0 0 1px rgba(255, 107, 0, 0.12);
}

.glass-card__logo img { width: 100%; height: 100%; object-fit: cover; }
.glass-card__logo i { color: var(--customer-accent-soft); font-size: 15px; opacity: 0.95; }

.glass-card--slim .glass-card__logo {
    width: 38px;
    height: 38px;
    border-radius: 9px;
}

.glass-card--slim .glass-card__logo i { font-size: 13px; }

.glass-card__body { flex: 1; min-width: 0; }

.glass-card__name {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: var(--customer-text);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}

.glass-card--slim .glass-card__name {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
}

.glass-card--slim .glass-card__score {
    margin: 2px 0 0;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.35;
    color: #ffb77d;
    word-break: break-word;
}

.glass-card__meta {
    margin: 3px 0 0;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--customer-text-detail);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.glass-card--slim .glass-card__meta {
    margin-top: 0;
    font-size: 12px;
    min-width: 0;
    flex: 1;
}

.glass-card__meta-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 2px;
    min-width: 0;
}

.glass-card--slim .glass-card__meta-row .glass-card__dist--inline {
    margin-left: 0;
    flex-shrink: 0;
    font-size: 11px;
    padding: 1px 6px;
}

.glass-card__hours {
    margin: 4px 0 0;
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    max-width: 100%;
    font-size: 10px;
    font-weight: 200;
    font-variation-settings: 'wght' 200;
    line-height: 1.3;
    letter-spacing: 0.02em;
    color: rgba(255, 255, 255, 0.38);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.glass-card__hours i {
    font-size: 8px;
    opacity: 0.55;
    flex-shrink: 0;
    color: inherit;
    position: relative;
    top: -0.05em;
}

.glass-card__hours-status {
    font-weight: 300;
    font-variation-settings: 'wght' 300;
    flex-shrink: 0;
}

.glass-card__hours-detail {
    color: rgba(255, 255, 255, 0.38);
    font-weight: 200;
    font-variation-settings: 'wght' 200;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Status word only tinted — time stays muted grey (Maps / GoFood) */
.glass-card__hours--open .glass-card__hours-status,
.glass-card__hours--open_24h .glass-card__hours-status {
    color: rgba(110, 200, 145, 0.88);
}

.glass-card__hours--open i,
.glass-card__hours--open_24h i {
    color: rgba(110, 200, 145, 0.75);
}

.glass-card__hours--closing_soon .glass-card__hours-status,
.glass-card__hours--opening_soon .glass-card__hours-status {
    color: rgba(255, 183, 125, 0.82);
}

.glass-card__hours--closing_soon i,
.glass-card__hours--opening_soon i {
    color: rgba(255, 183, 125, 0.7);
}

.glass-card__hours--closed .glass-card__hours-status {
    color: rgba(255, 255, 255, 0.42);
}

.glass-card__hours--closed i {
    color: rgba(255, 255, 255, 0.32);
}

.glass-card__branch {
    margin: 4px 0 0;
    font-size: 12px;
    font-weight: 400;
    color: var(--customer-text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.glass-card__promo {
    display: inline-block;
    margin-top: 6px;
    padding: 3px 7px;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: rgba(255, 140, 60, 0.22);
    border: 1px solid rgba(255, 183, 125, 0.45);
    color: #fff4e8;
    border-radius: 4px;
}

.promo-results-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.promo-result-card .glass-card__promo {
    margin-top: 4px;
}

.glass-card__aside {
    flex-shrink: 0;
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.glass-card--slim .glass-card__aside {
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
    flex-shrink: 0;
    padding-top: 0;
}

/* Legacy: distance used to sit inline with signal icons */
.glass-card__dist--inline {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 12px;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: var(--customer-text-detail);
    letter-spacing: 0.02em;
    margin-left: 3px;
}

.glass-card__dist {
    font-size: 12px;
    font-weight: 500;
    padding: 3px 7px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: var(--customer-text-detail);
    letter-spacing: 0.03em;
}

.glass-card__badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    text-align: center;
}

.glass-card__badge-btn {
    appearance: none;
    -webkit-appearance: none;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 12px;
    min-width: 4.25rem;
    width: auto;
    padding: 8px 10px 7px;
    cursor: pointer;
    flex-shrink: 0;
    transition: border-color 0.15s, box-shadow 0.15s, transform 0.12s;
}

.glass-card__badge-btn:active {
    transform: scale(0.96);
}

.glass-card__badge-btn:hover,
.glass-card__badge-btn:focus-visible {
    border-color: rgba(255, 107, 0, 0.45);
    box-shadow: 0 0 14px rgba(255, 107, 0, 0.18);
    outline: none;
}

.glass-card__badge img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.35));
}

.glass-card--slim .glass-card__badge img {
    width: 32px;
    height: 32px;
}

.glass-card__badge-tier {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--customer-text-detail);
    text-align: center;
    line-height: 1.2;
    margin-top: 6px;
    max-width: none;
    padding: 0 2px;
    word-break: break-word;
}

.glass-card--slim .glass-card__badge-tier {
    max-width: none;
    text-align: center;
}

/* Explore directory — trust badge modal */
.explore-trust-modal {
    position: fixed;
    inset: 0;
    z-index: 10120;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
}

.explore-trust-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.82);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.explore-trust-modal__panel {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 22rem;
    max-height: min(92dvh, 640px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    border-radius: 24px;
    padding: 22px 18px 18px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background:
        radial-gradient(ellipse 55% 50% at 12% 0%, rgba(255, 255, 255, 0.08) 0%, transparent 55%),
        rgba(0, 0, 0, 0.88);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.55);
    text-align: center;
}

.explore-trust-modal__close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    border: 0;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    cursor: pointer;
}

.explore-trust-modal__title {
    margin: 0 0 4px;
    font-size: 1rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fff;
}

.explore-trust-modal__store {
    margin: 0 0 8px;
    font-size: 13px;
    font-weight: 700;
    color: #ffb77d;
    letter-spacing: 0.03em;
}

.explore-trust-modal__intro {
    margin: 0 0 16px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.55);
}

.explore-trust-modal__badges {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px 8px;
    margin-bottom: 16px;
    padding: 0 4px;
}

.explore-trust-modal__badges div {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.explore-trust-modal__badges img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.explore-trust-modal__badges span {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.65);
}

.explore-trust-modal__stats {
    width: 100%;
    border-radius: 16px;
    padding: 12px;
    margin-bottom: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.45);
}

.explore-trust-modal__stats-title {
    margin: 0 0 10px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.explore-trust-modal__stats-title i {
    color: #ff6b00;
}

.explore-trust-modal__stats-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.explore-trust-modal__stats-grid > div {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.explore-trust-modal__stats-grid > div:not(:first-child) {
    border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.explore-trust-modal__stat-value {
    font-size: 1.125rem;
    font-weight: 900;
    line-height: 1;
    color: #fff;
}

.explore-trust-modal__stat-value--accent {
    color: #ff6b00;
}

.explore-trust-modal__stat-label {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-align: center;
    line-height: 1.25;
    color: rgba(255, 255, 255, 0.45);
}

.explore-trust-modal__current {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding-top: 4px;
}

.explore-trust-modal__current img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.35));
}

.explore-trust-modal__tier-label {
    margin: 0;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #ffb77d;
}

/* GoFood-style matched product strip under directory store card */
.dir-product-carousel {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    /* Do not set touch-action: pan-x — it blocks vertical list scroll when
       combined with the parent scroller (touches on tiles / empty gaps). */
    padding: 10px 12px 4px;
    margin: 0 0 4px;
    scrollbar-width: none;
}

.dir-product-carousel::-webkit-scrollbar {
    display: none;
}

.dir-product-tile {
    flex: 0 0 7.25rem;
    width: 7.25rem;
    scroll-snap-align: start;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.dir-product-tile:visited,
.dir-product-tile:hover {
    text-decoration: none;
    color: inherit;
}

.dir-product-tile__img {
    width: 7.25rem;
    height: 7.25rem;
    border-radius: 14px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
    display: flex;
    align-items: center;
    justify-content: center;
}

.dir-product-tile__img:not(:has(img)) {
    border: 1px solid rgba(255, 107, 0, 0.4);
    box-shadow:
        0 0 0 1px rgba(255, 107, 0, 0.12),
        0 4px 14px rgba(0, 0, 0, 0.28);
}

.dir-product-tile__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dir-product-tile__img i {
    color: var(--customer-accent-soft);
    font-size: 1.35rem;
    opacity: 0.75;
}

.dir-product-tile__name {
    margin: 0;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.3;
    color: var(--customer-text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
    min-height: 2.6em;
}

.dir-product-tile__price {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
}

.glass-card__products {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 5px;
}

.glass-card__product-tag {
    display: inline-block;
    font-size: 10px;
    font-weight: 400;
    max-width: 7.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.glass-card__product-tag--match {
    padding: 3px 8px;
    border-radius: 999px;
    color: var(--customer-text) !important;
    -webkit-text-fill-color: var(--customer-text);
    background: rgba(255, 107, 0, 0.12);
    border: 1px solid rgba(255, 140, 60, 0.32);
}

.glass-card__product-tag--more {
    padding: 3px 8px;
    border-radius: 999px;
    color: var(--customer-text) !important;
    -webkit-text-fill-color: var(--customer-text);
    font-weight: 400;
    background: rgba(255, 107, 0, 0.1);
    border: 1px solid rgba(255, 140, 60, 0.28);
}
/* —— Scanner modal —— */
#qr-scanner-modal {
    position: fixed;
    inset: 0;
    z-index: 10050;
    background: rgba(45, 25, 12, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

#qr-scanner-modal.is-open { display: flex; }

#qr-scanner-modal .scanner-frame {
    width: 100%;
    max-width: var(--app-shell-w);
}

#qr-reader-container {
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--customer-glass-border);
}

.scanner-close {
    position: absolute;
    top: max(16px, env(safe-area-inset-top));
    right: 16px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--customer-glass-border);
    background: var(--customer-glass-panel);
    color: var(--customer-text);
    font-size: 1.25rem;
    cursor: pointer;
    z-index: 2;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* —— Drawer —— */
#scan-drawer-backdrop {
    position: fixed;
    inset: 0;
    z-index: 10040;
    background: rgba(0, 0, 0, 0.72);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

#scan-drawer-backdrop.is-open {
    opacity: 1;
    pointer-events: auto;
}

#scan-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(18rem, 85vw);
    z-index: 10045;
    background: rgba(8, 8, 8, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-left: 1px solid rgba(255, 107, 0, 0.28);
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    padding: max(20px, env(safe-area-inset-top)) 20px 24px;
}

#scan-drawer.is-open { transform: translateX(0); }

#scan-drawer a,
#scan-drawer .scan-drawer-install {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 12px;
    color: var(--customer-text);
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    border-radius: 12px;
    width: 100%;
    background: none;
    border: 0;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
}

#scan-drawer a:hover,
#scan-drawer .scan-drawer-install:hover {
    background: var(--customer-glass-bg);
}

#scan-drawer a i,
#scan-drawer .scan-drawer-install i {
    color: var(--customer-accent-soft);
    width: 20px;
    text-align: center;
}

#scan-drawer .scan-drawer-badge {
    margin-left: auto;
    min-width: 1.35rem;
    height: 1.35rem;
    padding: 0 0.35rem;
    border-radius: 999px;
    background: #ff6b00;
    color: #000;
    font-size: 10px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

#scan-drawer .scan-drawer-support {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 107, 0, 0.2);
}

#scan-drawer .scan-drawer-support__label {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.45);
    padding: 0 12px 8px;
    margin: 0;
}

#scan-drawer .scan-drawer-support a span {
    display: flex;
    flex-direction: column;
    gap: 2px;
    line-height: 1.2;
}

#scan-drawer .scan-drawer-support a small {
    font-size: 11px;
    font-weight: 500;
    color: var(--customer-accent-soft);
}

.hidden { display: none !important; }

/* —— Product detail (customer browse) —— */
html:has(body.scan-customer.customer-product-page) {
    height: 100%;
    height: 100dvh;
    overflow: hidden;
}

body.scan-customer.customer-product-page #optimized-bg-container {
    display: none !important;
}

body.scan-customer.customer-product-page {
    height: 100%;
    height: 100dvh;
    max-height: 100dvh;
    overflow: hidden;
    -webkit-overflow-scrolling: touch;
    background: radial-gradient(
        ellipse 130% 95% at 50% -8%,
        var(--customer-bg-glow) 0%,
        var(--customer-bg-mid) 50%,
        var(--customer-bg-deep) 100%
    );
}

.customer-product-shell {
    max-width: var(--app-shell-w);
    margin: 0 auto;
    height: 100%;
    height: 100dvh;
    max-height: 100dvh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.customer-product-shell::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 30%, transparent 0%, rgba(0, 0, 0, 0.35) 100%);
    pointer-events: none;
    z-index: 0;
}

.customer-product-topbar {
    position: relative;
    flex-shrink: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: max(12px, env(safe-area-inset-top)) 14px 10px;
    background: linear-gradient(to bottom, rgba(5, 5, 5, 0.92), rgba(5, 5, 5, 0));
}

.customer-product-icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid var(--customer-glass-border);
    background: var(--customer-glass-bg);
    color: var(--customer-text);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: border-color 0.2s, background 0.2s;
}

.customer-product-icon-btn:active {
    border-color: rgba(255, 183, 125, 0.45);
    background: rgba(255, 255, 255, 0.12);
}

.customer-product-scroll {
    flex: 1 1 auto;
    min-height: 0;
    position: relative;
    z-index: 1;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding-bottom: 1.25rem;
}

.customer-product-gallery {
    width: 100%;
    aspect-ratio: 1;
    background: rgba(0, 0, 0, 0.18);
    border-bottom: 1px solid var(--customer-glass-border);
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.customer-product-gallery::-webkit-scrollbar { display: none; }

.customer-product-gallery__slide {
    flex: 0 0 100%;
    scroll-snap-align: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.customer-product-gallery__slide img.customer-product-gallery__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.28;
    filter: blur(16px);
    transform: scale(1.08);
}

.customer-product-gallery__slide img.customer-product-gallery__fg {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.customer-product-gallery__empty {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--customer-accent-soft);
    font-size: 3rem;
    opacity: 0.55;
}

.customer-product-gallery__count {
    position: absolute;
    bottom: 12px;
    right: 12px;
    z-index: 2;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 0.08em;
    color: var(--customer-text-detail);
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.customer-product-body {
    padding: 18px 16px 8px;
}

.customer-product-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.customer-product-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.25;
    color: var(--customer-text);
    word-break: break-word;
}

.customer-product-price {
    margin: 0;
    flex-shrink: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff4e8;
    white-space: nowrap;
}

.customer-product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 18px;
}

.customer-product-tag {
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 8px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--customer-text-detail);
    background: var(--customer-glass-bg);
    border: 1px solid var(--customer-glass-border);
}

.customer-product-tag i {
    color: var(--customer-accent);
    margin-right: 4px;
}

.customer-product-tag--rp i {
    color: var(--customer-accent-soft);
}

.customer-product-tag--badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding-top: 3px;
    padding-bottom: 3px;
    text-transform: none;
    letter-spacing: 0.04em;
}

.customer-product-tag--badge img {
    width: 16px;
    height: 16px;
    object-fit: contain;
    flex-shrink: 0;
}

.customer-product-tag--community {
    display: inline-flex;
    align-items: center;
    color: #e8f4ff;
    background: rgba(37, 99, 235, 0.22);
    border-color: rgba(147, 197, 253, 0.4);
}

.customer-product-tag--community i {
    color: #93c5fd;
}

.customer-product-tag--seller {
    max-width: 100%;
}

.customer-product-tag--muted {
    opacity: 0.65;
}

.customer-product-meta {
    margin: 0 0 14px;
}

.customer-product-meta__label {
    margin: 0 0 6px;
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--customer-text-dim);
}

.customer-product-tags--seller,
.customer-product-tags--details {
    margin-bottom: 0;
}

.customer-product-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 4px 0 18px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 107, 0, 0.28);
    background: rgba(255, 107, 0, 0.1);
}

.customer-product-note i {
    color: var(--customer-accent-soft);
    font-size: 0.85rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.customer-product-note p {
    margin: 0;
    font-size: 11px;
    font-weight: 400;
    line-height: 1.45;
    color: var(--customer-text-muted);
}

.customer-product-btn--wa-full {
    flex: 1;
    width: 100%;
    padding: 14px 12px;
    background: #25d366;
    color: #0a2a14;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
}

.customer-product-btn--wa-full.is-disabled {
    opacity: 0.45;
    pointer-events: none;
}

.customer-product-btn--escrow {
    flex: 1.5;
}

.customer-product-section-title {
    margin: 0 0 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--customer-glass-border);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--customer-text-muted);
}

.customer-product-desc {
    margin: 0 0 20px;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.55;
    color: var(--customer-text-detail);
    white-space: pre-line;
}

.customer-product-seller {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 16px;
    background: var(--customer-glass-bg);
    border: 1px solid var(--customer-glass-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.customer-product-seller__logo {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--customer-accent-soft);
    flex-shrink: 0;
}

.customer-product-seller__info {
    flex: 1;
    min-width: 0;
}

.customer-product-seller__name {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--customer-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.customer-product-seller__rp {
    margin: 4px 0 0;
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--customer-accent-soft);
}

.customer-product-seller__badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    flex-shrink: 0;
}

.customer-product-seller__badge img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.customer-product-seller__badge span {
    font-size: 7px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--customer-text-detail);
}

.customer-product-actions {
    position: relative;
    flex-shrink: 0;
    z-index: 30;
    width: 100%;
    max-width: var(--app-shell-w);
    margin: 0 auto;
    padding: 12px 14px calc(12px + env(safe-area-inset-bottom, 0px));
    background: rgba(5, 5, 5, 0.96);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    display: flex;
    gap: 8px;
    box-sizing: border-box;
}

.customer-product-btn {
    border: none;
    border-radius: 14px;
    font-family: inherit;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: filter 0.2s, background 0.2s, border-color 0.2s;
}

.customer-product-btn:active {
    filter: brightness(1.08);
}

.customer-product-btn--primary {
    flex: 1.5;
    padding: 14px 12px;
    background: var(--customer-accent);
    color: #2a1400;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    box-shadow: 0 4px 20px rgba(255, 107, 0, 0.35);
}

.customer-product-btn--secondary {
    flex: 1;
    padding: 14px 10px;
    background: var(--customer-glass-bg);
    border: 1px solid var(--customer-glass-border);
    color: var(--customer-text);
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.customer-product-btn--wa {
    width: 46px;
    flex-shrink: 0;
    padding: 0;
    background: #25d366;
    color: #0a2a14;
    font-size: 1.1rem;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.28);
}

.customer-product-btn--wa.is-disabled {
    opacity: 0.45;
    pointer-events: none;
}

.customer-product-btn--full {
    width: 100%;
    padding: 14px 12px;
    background: var(--customer-accent);
    color: #2a1400;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    box-shadow: 0 4px 20px rgba(255, 107, 0, 0.35);
}

/* —— Auth funnel (login / onboarding) —— */
html:has(body.scan-customer.auth-funnel) {
    height: auto;
    overflow: auto;
}

body.scan-customer.auth-funnel {
    height: auto;
    min-height: 100dvh;
    overflow: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 1.25rem;
    box-sizing: border-box;
    background: radial-gradient(
        ellipse 130% 95% at 50% -8%,
        var(--customer-bg-glow) 0%,
        var(--customer-bg-mid) 50%,
        var(--customer-bg-deep) 100%
    );
}

body.scan-customer.auth-funnel.auth-login {
    /* Mobile: brand under top padding; card pushed down with bottom air */
    justify-content: flex-start;
    /* Must beat body.scan-customer { padding-top: 0 !important } */
    padding-top: max(3rem, calc(env(safe-area-inset-top, 0px) + 2.25rem)) !important;
    padding-right: 1.5rem;
    padding-bottom: max(5.75rem, calc(env(safe-area-inset-bottom, 0px) + 4.5rem));
    padding-left: 1.5rem;
    gap: 0;
    min-height: 100dvh;
}

@media (min-width: 768px) {
    body.scan-customer.auth-funnel.auth-login {
        /* Desktop: brand lower from top, WA card near bottom */
        justify-content: space-between;
        padding-top: max(7rem, calc(env(safe-area-inset-top, 0px) + 6rem)) !important;
        padding-bottom: max(3rem, env(safe-area-inset-bottom, 0px));
        gap: 0;
    }
}

.auth-funnel-brand {
    text-align: center;
    width: 100%;
    flex-shrink: 0;
}

/* Login: brand column matches WA card width so SWADS reads as wide as the box */
body.scan-customer.auth-funnel.auth-login .auth-funnel-brand {
    max-width: 310px;
    container-type: inline-size;
    container-name: auth-brand;
}

.auth-funnel-brand .auth-eyebrow {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--customer-text-dim);
    margin: 0 0 0.35rem;
}

.auth-funnel-brand .auth-logo {
    font-size: clamp(2.75rem, 12vw, 4.5rem);
    font-weight: 900;
    letter-spacing: -0.05em;
    color: var(--customer-text);
    margin: 0;
    line-height: 1;
}

body.scan-customer.auth-funnel.auth-login .auth-funnel-brand .auth-logo {
    /* Match ~login card width (310px); cqi when supported, vw fallback otherwise */
    font-size: clamp(3.5rem, 22vw, 5.25rem);
    font-size: clamp(3.5rem, 28cqi, 5.25rem);
    width: 100%;
}

/* FOTOGRAPP is longer than SWADS — keep it on one line inside the brand column */
body.scan-customer.auth-funnel.auth-login .auth-funnel-brand img.auth-logo--fotograpp {
    width: min(280px, 78vw);
    height: auto;
    aspect-ratio: auto;
    object-fit: contain;
    border-radius: 0;
    display: block;
    margin: 0 auto;
}

.auth-funnel-brand .auth-logo span,
.auth-funnel-card .auth-logo span {
    color: var(--customer-accent);
}

.auth-funnel-card {
    width: 100%;
    max-width: 400px;
    padding: 2rem 1.75rem;
    border-radius: 1.5rem;
    background: var(--customer-glass-bg);
    border: 1px solid var(--customer-glass-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    text-align: center;
    box-sizing: border-box;
}

.auth-funnel-card .auth-logo {
    font-size: 2.5rem;
    font-weight: 900;
    letter-spacing: -0.05em;
    color: var(--customer-text);
    margin: 0 0 0.5rem;
}

.auth-funnel-card h1 {
    font-size: 1.25rem;
    margin: 0 0 0.75rem;
    color: var(--customer-text);
    font-weight: 600;
}

.auth-funnel-card > p,
.auth-funnel-lede {
    color: var(--customer-text-muted);
    font-size: 0.9rem;
    margin: 0 0 1.75rem;
    line-height: 1.6;
}

.auth-funnel-card .form-group {
    text-align: left;
    margin-bottom: 1.5rem;
}

.auth-funnel-card label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.6rem;
    color: var(--customer-text-dim);
}

.auth-funnel-card input[type="text"],
.auth-funnel-card input[type="tel"] {
    width: 100%;
    padding: 0.85rem 1.25rem;
    background-color: rgba(255, 255, 255, 0.075);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 0.75rem;
    color: var(--customer-text);
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.auth-funnel-card input:focus {
    outline: none;
    border-color: var(--customer-accent);
    box-shadow: 0 0 0 1px rgba(255, 107, 0, 0.2), 0 0 14px rgba(255, 107, 0, 0.14);
}

.auth-funnel-card .btn-primary {
    width: 100%;
    padding: 0.85rem;
    background: var(--customer-accent);
    color: #2a1400;
    border: none;
    border-radius: 0.75rem;
    font-size: 1rem;
    font-weight: 900;
    font-family: inherit;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: transform 0.1s, background 0.2s, box-shadow 0.2s;
    margin-top: 0.5rem;
    box-shadow: 0 4px 15px rgba(255, 107, 0, 0.35);
}

.auth-funnel-card .btn-primary:hover {
    background: #e66000;
}

.auth-funnel-card .btn-primary:active {
    transform: scale(0.98);
}

.auth-login-card {
    max-width: 310px;
    padding: 1.5rem 1.75rem;
    /* Mobile: sit low with body bottom padding still visible */
    margin-top: auto;
    margin-bottom: 0;
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .auth-login-card {
        /* Desktop uses space-between on body */
        margin-top: 0;
    }
}

.auth-magic-code {
    font-family: ui-monospace, monospace;
    font-size: 2.5rem;
    letter-spacing: 5px;
    color: var(--customer-text);
    margin: 0.5rem auto 1.25rem;
    font-weight: 700;
    border: 1px solid var(--customer-accent);
    border-radius: 1rem;
    padding: 0.75rem 1.75rem;
    display: inline-block;
}

.auth-btn-wa {
    background-color: var(--customer-accent);
    color: #111b21;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: transform 0.1s;
    text-decoration: none;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 auto 1.25rem;
    padding: 0.65rem 1.5rem;
    font-size: 11px;
    width: max-content;
    box-shadow: 0 4px 15px rgba(255, 107, 0, 0.3);
}

.auth-btn-wa:active {
    transform: scale(0.98);
}

.auth-steps {
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 0.75rem;
    padding: 0.75rem;
    text-align: left;
}

.auth-steps-row {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
}

.auth-steps-row + .auth-steps-row {
    margin-top: 0.5rem;
}

.auth-steps-num {
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background: rgba(255, 107, 0, 0.2);
    color: var(--customer-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 9px;
    flex-shrink: 0;
    margin-top: 0.15rem;
}

.auth-steps-row p {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.45;
    margin: 0;
}

.auth-status {
    margin-top: 0.75rem;
    color: var(--customer-text-dim);
    font-size: 10px;
}

.auth-spinner {
    border: 3px solid rgba(255, 255, 255, 0.12);
    border-top-color: var(--customer-accent);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: auth-spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes auth-spin {
    to { transform: rotate(360deg); }
}

