/* ============================================================
   FlipCheck — Visual Overhaul (v=visual-overhaul-1)
   Mobile-first premium dark theme.
   ============================================================ */

:root {
    /* Base palette */
    --bg-0: #06091a;
    --bg-1: #0a1024;
    --bg-2: #0e1530;
    --surface: rgba(255, 255, 255, 0.035);
    --surface-2: rgba(255, 255, 255, 0.06);
    --surface-strong: rgba(15, 22, 48, 0.85);
    --border: rgba(255, 255, 255, 0.09);
    --border-strong: rgba(255, 255, 255, 0.18);
    --text: #f3f6ff;
    --text-soft: #c9d1e6;
    --text-muted: #8a93b0;

    /* Brand */
    --primary: #2ee08a;          /* FlipCheck green */
    --primary-2: #00c87a;
    --primary-dim: rgba(46, 224, 138, 0.16);
    --accent: #5cc8ff;            /* electric blue / AI accent */
    --accent-2: #3a9bff;
    --deep: #b478ff;              /* purple for Deep Check */
    --deep-2: #7c4dff;

    /* Verdicts */
    --buy: #2ee08a;
    --buy-glow: rgba(46, 224, 138, 0.35);
    --offer: #ffb547;
    --offer-glow: rgba(255, 181, 71, 0.35);
    --skip: #ff5c6c;
    --skip-glow: rgba(255, 92, 108, 0.35);
    --unknown: #8aa0c4;

    /* Type */
    --font-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

    /* Shape */
    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 22px;

    /* Shadows */
    --shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.35);
    --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.6);
    --glow-primary: 0 0 0 1px rgba(46, 224, 138, 0.3), 0 12px 36px rgba(46, 224, 138, 0.18);
    --glow-accent: 0 0 0 1px rgba(92, 200, 255, 0.3), 0 12px 36px rgba(92, 200, 255, 0.18);
    --glow-deep: 0 0 0 1px rgba(180, 120, 255, 0.35), 0 12px 36px rgba(180, 120, 255, 0.22);

    /* Motion */
    --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    background-color: var(--bg-0);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    background:
        radial-gradient(1200px 800px at 70% -10%, rgba(180, 120, 255, 0.10), transparent 60%),
        radial-gradient(1000px 700px at -10% 30%, rgba(46, 224, 138, 0.08), transparent 60%),
        radial-gradient(900px 700px at 110% 90%, rgba(92, 200, 255, 0.08), transparent 60%),
        var(--bg-0);
}

/* Ambient background layers ============================== */
.bg-mesh, .bg-grid {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}
.bg-mesh {
    background:
        radial-gradient(600px 400px at 20% 80%, rgba(46, 224, 138, 0.08), transparent 70%),
        radial-gradient(600px 400px at 80% 20%, rgba(124, 77, 255, 0.08), transparent 70%);
    filter: blur(20px);
    animation: meshDrift 28s ease-in-out infinite alternate;
}
.bg-grid {
    background-image:
        linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse at center, rgba(0,0,0,0.8) 0%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at center, rgba(0,0,0,0.8) 0%, transparent 75%);
    opacity: 0.5;
}
@keyframes meshDrift {
    0%   { transform: translate3d(0,0,0) scale(1); }
    100% { transform: translate3d(-3%, 2%, 0) scale(1.05); }
}

@media (prefers-reduced-motion: reduce) {
    .bg-mesh { animation: none; }
    *, *::before, *::after { animation-duration: 0.001s !important; transition-duration: 0.001s !important; }
}

/* Layout ================================================= */
.container {
    width: 100%;
    max-width: 980px;
    margin: 0 auto;
    padding: 0 1.1rem;
    position: relative;
    z-index: 1;
}

main {
    flex: 1;
    width: 100%;
    max-width: 980px;
    margin: 0 auto;
    padding: 1.1rem 1.1rem 6rem;
    position: relative;
    z-index: 1;
}

/* Header ================================================= */
.app-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: linear-gradient(180deg, rgba(6, 9, 26, 0.92), rgba(6, 9, 26, 0.75));
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    border-bottom: 1px solid var(--border);
    padding: 0.7rem 0;
}
.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}
.logo {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    background: none;
    border: none;
    padding: 0.25rem 0.4rem;
    cursor: pointer;
    color: var(--primary);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: -0.02em;
    border-radius: 10px;
    transition: transform 0.18s var(--ease), background 0.18s var(--ease);
}
.logo:hover { background: rgba(46, 224, 138, 0.08); transform: translateY(-1px); }
.logo:active { transform: translateY(0); }
.logo:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.logo-mark {
    display: inline-grid;
    place-items: center;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    color: #04140b;
    border-radius: 9px;
    box-shadow: 0 0 0 1px rgba(46, 224, 138, 0.35), 0 8px 22px rgba(46, 224, 138, 0.35);
}
.logo-text {
    background: linear-gradient(135deg, var(--primary) 0%, #b9ffd9 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: none;
}

.auth-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.user-email {
    color: var(--text-muted);
    font-size: 0.82rem;
    max-width: 40vw;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Credits pill — note: JS writes textContent here, so the icon
   must be done with a ::before pseudo-element. */
#creditDisplay {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.75rem;
    border-radius: 9999px;
    background: linear-gradient(135deg, rgba(46, 224, 138, 0.14), rgba(92, 200, 255, 0.10));
    border: 1px solid rgba(46, 224, 138, 0.45);
    color: var(--primary);
    font-weight: 600;
    font-size: 0.82rem;
    font-feature-settings: "tnum" 1;
    letter-spacing: 0.01em;
    box-shadow: 0 0 0 1px rgba(46, 224, 138, 0.05), 0 6px 16px rgba(46, 224, 138, 0.12);
}
#creditDisplay::before {
    content: '⚡';
    margin-right: 0.05rem;
    font-size: 0.85em;
    line-height: 1;
}

#logoutButton.hidden { display: none; }

/* Global message ========================================= */
.global-msg {
    margin: 0 auto 1rem;
    border-radius: var(--radius);
    padding: 0;
}
.global-msg:empty, .global-msg:has(.status-message:empty) {
    display: none;
}
#globalMessage {
    color: var(--skip);
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0;
}
#globalMessage:empty { display: none; }
#globalMessage:not(:empty) {
    display: block;
    padding: 0.85rem 1rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid currentColor;
    border-radius: var(--radius);
    /* color is set via inline style by JS (red/amber/cyan); border inherits it. */
}

.status-message { margin-top: 0.5rem; font-size: 0.9rem; font-weight: 500; }
.status-message:empty { display: none; }
.status-message.error { color: var(--skip); }
.status-message.warning { color: var(--offer); }
.status-message.info { color: var(--accent); }

/* Pages =================================================== */
.page { display: none; }
.page.active { display: block; animation: pageIn 0.34s var(--ease-out) both; }
.hidden { display: none !important; }

@keyframes pageIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Typography ============================================= */
.display {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.1;
}
h1 { font-size: 1.6rem; margin: 0; font-family: var(--font-display); }
h2 { font-size: 1.4rem; margin-bottom: 0.5rem; font-family: var(--font-display); letter-spacing: -0.02em; }
h3 { font-size: 1.05rem; font-weight: 600; font-family: var(--font-display); letter-spacing: -0.01em; }
p  { margin-bottom: 0; }
.muted { color: var(--text-muted); }
.gradient-text {
    background: linear-gradient(120deg, var(--primary) 0%, var(--accent) 60%, var(--deep) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Badge pill ============================================= */
.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.35rem 0.75rem;
    border-radius: 9999px;
    background: rgba(46, 224, 138, 0.08);
    border: 1px solid rgba(46, 224, 138, 0.25);
    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.badge-pill .dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 0 3px rgba(46, 224, 138, 0.18);
    animation: dotPulse 2s ease-in-out infinite;
}
@keyframes dotPulse { 50% { transform: scale(1.25); opacity: 0.65; } }

/* Boot card ============================================== */
.boot-card {
    max-width: 440px;
    margin: 3rem auto;
    padding: 2rem;
    text-align: center;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(8px);
}
.boot-spinner {
    width: 38px;
    height: 38px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    border: 3px solid rgba(255,255,255,0.08);
    border-top-color: var(--primary);
    animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Auth shell ============================================= */

/* Logged-out landing page ================================ */
.landing-shell {
    width: 100%;
    max-width: 980px;
    margin: 0 auto;
    padding: 0.35rem 0 2rem;
}

.landing-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    gap: 1.2rem;
    align-items: center;
    padding: 1.1rem 0 1.6rem;
}

.landing-hero-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
}

.landing-title {
    font-size: clamp(2.05rem, 7vw, 4.25rem);
    line-height: 0.96;
    letter-spacing: -0.055em;
    max-width: 760px;
}

.landing-subtitle {
    color: var(--text-soft);
    font-size: clamp(1rem, 2.8vw, 1.18rem);
    line-height: 1.62;
    max-width: 660px;
}

.landing-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    width: 100%;
}

.landing-actions .primary-btn,
.landing-actions .secondary-btn,
.landing-cta-panel .primary-btn {
    min-height: 48px;
    justify-content: center;
}

.landing-trust {
    color: var(--text-muted);
    font-size: 0.92rem;
}

.landing-preview-card {
    position: relative;
    overflow: hidden;
    border-radius: 26px;
    border: 1px solid rgba(92, 200, 255, 0.22);
    background:
        radial-gradient(480px 220px at 80% 0%, rgba(92, 200, 255, 0.16), transparent 60%),
        radial-gradient(420px 240px at 10% 100%, rgba(46, 224, 138, 0.13), transparent 70%),
        rgba(10, 16, 36, 0.86);
    box-shadow: var(--shadow-lg), var(--glow-accent);
    padding: 1.1rem;
    backdrop-filter: blur(12px) saturate(140%);
    -webkit-backdrop-filter: blur(12px) saturate(140%);
}

.landing-preview-card::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(135deg, rgba(255,255,255,0.12), transparent 34%, rgba(46,224,138,0.06));
}

.preview-topline,
.preview-verdict,
.preview-item,
.preview-metrics,
.preview-why {
    position: relative;
    z-index: 1;
}

.preview-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
    color: var(--text-soft);
    font-size: 0.86rem;
    font-weight: 700;
    margin-bottom: 0.9rem;
}

.example-pill {
    white-space: nowrap;
    color: #04140b;
    background: linear-gradient(135deg, var(--primary), #b9ffd9);
    border-radius: 999px;
    padding: 0.28rem 0.55rem;
    font-size: 0.72rem;
    font-weight: 800;
}

.preview-verdict {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: #ffdca0;
    background: rgba(255, 181, 71, 0.12);
    border: 1px solid rgba(255, 181, 71, 0.30);
    border-radius: 999px;
    padding: 0.42rem 0.65rem;
    font-size: 0.86rem;
    margin-bottom: 0.85rem;
}

.preview-item {
    color: var(--text);
    font-family: var(--font-display);
    font-size: 1.5rem;
    line-height: 1.05;
    font-weight: 750;
    letter-spacing: -0.035em;
    margin-bottom: 1rem;
}

.preview-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
}

.preview-metrics div {
    min-width: 0;
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 16px;
    background: rgba(255,255,255,0.045);
    padding: 0.72rem;
}

.preview-metrics span {
    display: block;
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.055em;
    margin-bottom: 0.2rem;
}

.preview-metrics strong {
    display: block;
    color: var(--text);
    font-family: var(--font-mono);
    font-size: 0.98rem;
    overflow-wrap: anywhere;
}

.preview-why {
    margin-top: 0.9rem;
    color: var(--text-soft);
    font-size: 0.9rem;
    line-height: 1.55;
}

.landing-section {
    margin-top: 1rem;
    padding: 1.05rem 0;
}

.section-kicker {
    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    margin-bottom: 0.4rem;
}

.landing-section-title {
    font-family: var(--font-display);
    font-size: clamp(1.45rem, 4.8vw, 2.25rem);
    line-height: 1.08;
    letter-spacing: -0.04em;
    max-width: 680px;
    margin-bottom: 0.95rem;
}

.landing-steps,
.benefit-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
}

.landing-step-card,
.benefit-card,
.landing-cta-panel,
.landing-auth-area {
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.045);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.landing-step-card {
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.landing-step-card span {
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: #04140b;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    font-weight: 900;
    font-family: var(--font-mono);
}

.landing-step-card p,
.benefit-card p {
    color: var(--text-soft);
    font-size: 0.95rem;
}

.benefit-card {
    padding: 1rem;
}

.benefit-card h3 {
    font-family: var(--font-display);
    font-size: 1.12rem;
    letter-spacing: -0.02em;
    margin-bottom: 0.35rem;
}

.landing-cta-panel {
    margin: 1.1rem 0;
    padding: 1.25rem;
    text-align: center;
    background:
        radial-gradient(520px 220px at 50% 0%, rgba(46, 224, 138, 0.16), transparent 70%),
        rgba(255, 255, 255, 0.055);
}

.landing-cta-panel h2 {
    font-family: var(--font-display);
    font-size: clamp(1.55rem, 5vw, 2.35rem);
    line-height: 1.08;
    letter-spacing: -0.04em;
    max-width: 720px;
    margin: 0 auto 0.95rem;
}

.landing-cta-panel p {
    color: var(--text-muted);
    margin-top: 0.75rem;
    font-size: 0.92rem;
}

.landing-auth-area {
    max-width: 520px;
    margin: 1.4rem auto 0;
    padding: 1rem;
    scroll-margin-top: 92px;
}

.compact-auth-hero {
    margin-bottom: 1rem;
}

.compact-auth-hero .display {
    font-size: clamp(1.35rem, 5vw, 1.9rem);
}

@media (max-width: 820px) {
    .landing-hero {
        grid-template-columns: 1fr;
        padding-top: 0.5rem;
    }
    .landing-hero-copy {
        align-items: stretch;
        text-align: left;
    }
    .landing-actions .primary-btn,
    .landing-actions .secondary-btn {
        flex: 1 1 150px;
    }
    .landing-steps,
    .benefit-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .landing-shell {
        padding-top: 0;
    }
    .landing-title {
        font-size: clamp(2rem, 11vw, 3rem);
    }
    .landing-subtitle {
        font-size: 1rem;
    }
    .landing-actions {
        flex-direction: column;
    }
    .landing-actions .primary-btn,
    .landing-actions .secondary-btn,
    .landing-cta-panel .primary-btn {
        width: 100%;
    }
    .landing-preview-card,
    .landing-cta-panel,
    .landing-auth-area {
        border-radius: 20px;
    }
    .preview-metrics {
        grid-template-columns: 1fr;
    }
    .preview-item {
        font-size: 1.32rem;
    }
}

.auth-shell {
    max-width: 480px;
    margin: 1.5rem auto 0;
}
.auth-hero {
    text-align: center;
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
}
.auth-hero .display { font-size: 1.9rem; }
.auth-hero .muted { max-width: 360px; }

.auth-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    backdrop-filter: blur(8px);
    box-shadow: var(--shadow-md);
}
.auth-card .card-title { margin-bottom: 1rem; color: var(--text); }
.auth-switch { margin-top: 1rem; font-size: 0.9rem; color: var(--text-muted); }
.auth-switch a { color: var(--accent); text-decoration: none; font-weight: 600; }
.auth-switch a:hover { color: var(--primary); text-decoration: underline; }

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

/* Home page ============================================== */
.home-content {
    text-align: center;
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.home-badge { margin-bottom: 1rem; }
.home-title {
    font-size: clamp(2.1rem, 8vw, 3rem);
    margin-bottom: 0.6rem;
    background: linear-gradient(180deg, #ffffff 0%, #b9c5e2 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.tagline {
    font-size: 1.05rem;
    margin-bottom: 2rem;
    color: var(--text-soft);
    max-width: 560px;
    line-height: 1.55;
}
.home-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    width: 100%;
    max-width: 460px;
    margin: 0 auto;
}

/* Action cards on home */
.action-card {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    width: 100%;
    padding: 1.1rem 1.15rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    cursor: pointer;
    text-align: left;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: transform 0.18s var(--ease), background 0.18s var(--ease), border-color 0.18s var(--ease), box-shadow 0.24s var(--ease);
    position: relative;
    overflow: hidden;
}
.action-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(140% 100% at 0% 0%, rgba(46, 224, 138, 0.10), transparent 60%);
    opacity: 0;
    transition: opacity 0.25s var(--ease);
    pointer-events: none;
}
.action-card:hover {
    transform: translateY(-2px);
    border-color: rgba(46, 224, 138, 0.4);
    box-shadow: var(--shadow-md), 0 0 0 1px rgba(46, 224, 138, 0.18);
}
.action-card:hover::before { opacity: 1; }
.action-card:active { transform: translateY(0); }
.action-card:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

.action-icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border-radius: 13px;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    color: #04140b;
    box-shadow: 0 8px 22px rgba(46, 224, 138, 0.28);
}
.action-card-accent .action-icon {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #001a33;
    box-shadow: 0 8px 22px rgba(92, 200, 255, 0.28);
}
.action-card-ghost .action-icon {
    width: 42px;
    height: 42px;
    background: var(--surface-2);
    color: var(--text-soft);
    box-shadow: none;
    border: 1px solid var(--border);
}

.action-text { display: flex; flex-direction: column; gap: 0.15rem; flex: 1; min-width: 0; }
.action-title { font-weight: 600; font-size: 1rem; color: var(--text); }
.action-sub { font-size: 0.85rem; color: var(--text-muted); }
.action-arrow {
    color: var(--text-muted);
    font-size: 1.2rem;
    transition: transform 0.2s var(--ease), color 0.2s var(--ease);
}
.action-card:hover .action-arrow { transform: translateX(3px); color: var(--primary); }
.action-card-accent:hover .action-arrow { color: var(--accent); }

/* Home trust strip */
.home-trust {
    margin-top: 2rem;
    padding: 0.9rem 1rem;
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 9999px;
    font-size: 0.78rem;
    color: var(--text-muted);
}
.trust-item { display: flex; flex-direction: column; align-items: center; gap: 0.05rem; }
.trust-num {
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--text);
    font-size: 0.86rem;
    letter-spacing: -0.01em;
}
.trust-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.06em; }
.trust-divider {
    width: 1px;
    height: 22px;
    background: var(--border);
}

/* Step indicator ========================================= */
.step-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.35rem 0.7rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 9999px;
}
.step-num {
    display: inline-grid;
    place-items: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary);
    color: #04140b;
    font-weight: 700;
    font-size: 0.72rem;
}
.step-total { color: var(--text-muted); opacity: 0.6; }

/* Panel + tabs =========================================== */
.panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.1rem;
    backdrop-filter: blur(6px);
}
.tab-container {
    display: flex;
    gap: 0.4rem;
    margin-bottom: 0.8rem;
    padding: 0.3rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
}
.tab-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.7rem 0.6rem;
    background: transparent;
    border: none;
    border-radius: 9px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    transition: background 0.18s var(--ease), color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.tab-btn:hover { color: var(--text); }
.tab-btn.active {
    background: linear-gradient(180deg, rgba(46, 224, 138, 0.12), rgba(46, 224, 138, 0.06));
    color: var(--primary);
    box-shadow: 0 0 0 1px rgba(46, 224, 138, 0.35), 0 6px 16px rgba(46, 224, 138, 0.12);
    font-weight: 600;
}
.tab-btn svg { stroke-width: 2; }

/* Upload zone ============================================ */
.upload-zone {
    border: 1.5px dashed rgba(255,255,255,0.18);
    border-radius: var(--radius);
    background:
        radial-gradient(360px 200px at 50% 0%, rgba(46, 224, 138, 0.07), transparent 70%),
        rgba(255,255,255,0.02);
    padding: 1.5rem 1rem;
    transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.upload-zone:hover { border-color: rgba(46, 224, 138, 0.5); }
.upload-zone-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
}
.upload-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(46, 224, 138, 0.18), rgba(92, 200, 255, 0.12));
    border: 1px solid rgba(46, 224, 138, 0.25);
    color: var(--primary);
    margin-bottom: 0.3rem;
}
.upload-title { font-weight: 600; font-size: 1rem; color: var(--text); }
.upload-sub { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 0.4rem; }
.upload-options {
    display: flex;
    gap: 0.5rem;
    width: 100%;
    max-width: 360px;
    margin-top: 0.4rem;
}
.upload-options .primary-btn.small,
.upload-options .secondary-btn.small {
    flex: 1;
    padding: 0.65rem 0.75rem;
    font-size: 0.88rem;
    margin: 0;
}

/* Image preview ========================================== */
.image-preview {
    margin-top: 0.9rem;
    text-align: center;
    padding: 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
.image-preview img {
    max-width: 100%;
    max-height: 240px;
    border-radius: 12px;
    margin-bottom: 0.6rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}
.image-preview p { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 0.5rem; }

/* Optional / required chips */
.optional-chip,
.required-chip {
    display: inline-block;
    margin-left: 0.4rem;
    padding: 0.1rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    vertical-align: middle;
}
.optional-chip {
    background: rgba(255,255,255,0.06);
    color: var(--text-muted);
    border: 1px solid var(--border);
}
.required-chip {
    background: rgba(255, 181, 71, 0.12);
    color: var(--offer);
    border: 1px solid rgba(255, 181, 71, 0.3);
}

/* Price input with $ prefix */
.price-input {
    display: flex;
    align-items: stretch;
    background: var(--bg-1);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.price-input:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(46, 224, 138, 0.18);
}
.price-prefix {
    display: grid;
    place-items: center;
    padding: 0 0.9rem;
    color: var(--text-muted);
    font-weight: 600;
    border-right: 1px solid var(--border);
    font-family: var(--font-mono);
}
.price-input input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 0.8rem 0.9rem;
    color: var(--text);
    font-size: 1rem;
    font-family: var(--font-mono);
    font-weight: 500;
    border-radius: 0 12px 12px 0;
}
.price-input input:focus { outline: none; }

/* Forms — general ======================================== */
.input-group {
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
}
.input-group label {
    margin-bottom: 0.4rem;
    font-weight: 500;
    font-size: 0.92rem;
    color: var(--text-soft);
}
.input-group input,
.input-group select,
.input-group textarea {
    padding: 0.8rem 0.9rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    font-size: 1rem;
    background: var(--bg-1);
    color: var(--text);
    font-family: var(--font-body);
    transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease), background 0.18s var(--ease);
    -webkit-appearance: none;
    appearance: none;
}
.input-group input::placeholder,
.input-group textarea::placeholder { color: rgba(138, 147, 176, 0.65); }
.input-group input:focus,
.input-group textarea:focus,
.input-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(46, 224, 138, 0.18);
}
.input-group textarea {
    resize: vertical;
    min-height: 130px;
    line-height: 1.5;
}
.helper-text {
    display: block;
    margin-top: 0.45rem;
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* Buttons ================================================ */
.primary-btn, .secondary-btn, .ghost-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.3rem;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: var(--font-body);
    border-radius: 12px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.16s var(--ease), background 0.16s var(--ease), box-shadow 0.18s var(--ease), border-color 0.16s var(--ease), color 0.16s var(--ease);
    position: relative;
    min-height: 46px;
    line-height: 1.1;
    user-select: none;
    text-decoration: none;
}
.primary-btn svg, .secondary-btn svg, .ghost-btn svg { flex-shrink: 0; }

.primary-btn {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-2) 100%);
    color: #04140b;
    box-shadow: 0 6px 18px rgba(46, 224, 138, 0.32), inset 0 1px 0 rgba(255,255,255,0.2);
}
.primary-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 26px rgba(46, 224, 138, 0.45), inset 0 1px 0 rgba(255,255,255,0.25);
}
.primary-btn:active { transform: translateY(0); }
.primary-btn:disabled {
    background: rgba(255,255,255,0.06);
    color: var(--text-muted);
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}
.primary-btn-glow {
    box-shadow: 0 0 0 1px rgba(46, 224, 138, 0.4), 0 0 30px rgba(46, 224, 138, 0.35), inset 0 1px 0 rgba(255,255,255,0.2);
    animation: glowPulse 2.6s ease-in-out infinite;
}
@keyframes glowPulse {
    50% { box-shadow: 0 0 0 1px rgba(46, 224, 138, 0.55), 0 0 48px rgba(46, 224, 138, 0.5), inset 0 1px 0 rgba(255,255,255,0.22); }
}

.secondary-btn {
    background: var(--surface-2);
    color: var(--text);
    border: 1px solid var(--border-strong);
}
.secondary-btn:hover {
    background: rgba(255,255,255,0.10);
    border-color: rgba(46, 224, 138, 0.4);
    color: var(--primary);
    transform: translateY(-1px);
}
.secondary-btn:active { transform: translateY(0); }
.secondary-btn:disabled {
    color: var(--text-muted);
    background: rgba(255,255,255,0.04);
    cursor: not-allowed;
    border-color: var(--border);
    transform: none;
}

.ghost-btn {
    background: transparent;
    color: var(--text-soft);
    border: 1px solid var(--border);
}
.ghost-btn:hover { background: var(--surface-2); color: var(--text); border-color: var(--border-strong); }
.ghost-btn:active { transform: translateY(0); }
.ghost-btn-danger {
    color: var(--skip);
    border-color: rgba(255, 92, 108, 0.3);
}
.ghost-btn-danger:hover {
    background: rgba(255, 92, 108, 0.08);
    color: var(--skip);
    border-color: rgba(255, 92, 108, 0.5);
}

.primary-btn.small, .secondary-btn.small, .ghost-btn.small {
    padding: 0.55rem 0.9rem;
    font-size: 0.85rem;
    min-height: 40px;
}
.block { width: 100%; }
.primary-btn:focus-visible, .secondary-btn:focus-visible, .ghost-btn:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.primary-btn.loading, .secondary-btn.loading, .ghost-btn.loading {
    opacity: 0.7;
    cursor: progress;
}

/* Navigation buttons row ================================= */
.navigation-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 1.2rem;
    gap: 0.6rem;
    flex-wrap: wrap;
}
.navigation-buttons > * { flex: 1; min-width: 140px; }

.sticky-actions {
    /* On mobile, these read like a sticky bar visually but render normally */
}

/* Review summary ========================================= */
.review-summary {
    padding: 1.2rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 1rem;
}
.review-summary h3 { color: var(--text); margin-bottom: 0.6rem; }
.review-summary ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 0.4rem; }
.review-summary li {
    font-size: 0.92rem;
    color: var(--text-soft);
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.55rem 0.75rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: 10px;
}
.review-summary li strong { color: var(--text); font-weight: 500; }

/* Generic card */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.1rem;
    backdrop-filter: blur(4px);
}

/* Section title for scan cards / saved page */
.section-title {
    margin-bottom: 0.7rem;
    color: var(--text);
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
}
.section-title-big {
    font-size: 1.8rem;
    margin-bottom: 0.3rem;
}
.section-sub { margin-bottom: 1rem; font-size: 0.95rem; }

/* Scan type cards ======================================== */
.scan-card-group {
    display: flex;
    gap: 0.7rem;
    flex-wrap: wrap;
}
.scan-card {
    flex: 1;
    min-width: 220px;
    padding: 1rem;
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    text-align: left;
    color: var(--text-soft);
    transition: transform 0.18s var(--ease), border-color 0.18s var(--ease), background 0.18s var(--ease), box-shadow 0.24s var(--ease);
    position: relative;
    overflow: hidden;
    font-family: var(--font-body);
}
.scan-card::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(120% 100% at 100% 0%, rgba(46, 224, 138, 0.08), transparent 60%);
    opacity: 0;
    transition: opacity 0.2s var(--ease);
}
.scan-card:hover { transform: translateY(-2px); border-color: rgba(46, 224, 138, 0.4); }
.scan-card:hover::before { opacity: 1; }
.scan-card h4 {
    margin-top: 0.6rem;
    margin-bottom: 0.3rem;
    color: var(--text);
    font-family: var(--font-display);
    font-size: 1.1rem;
    letter-spacing: -0.01em;
}
.scan-card p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.4; }
.scan-card-head { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.scan-card-icon {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255,255,255,0.05);
    color: var(--primary);
    border: 1px solid var(--border);
}
.scan-card-credits {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.25rem 0.55rem;
    border-radius: 9999px;
    background: rgba(255,255,255,0.06);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-family: var(--font-mono);
}

.scan-card[data-scan="standard"].selected {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(46, 224, 138, 0.10), rgba(46, 224, 138, 0.03));
    box-shadow: var(--glow-primary);
}
.scan-card[data-scan="standard"].selected .scan-card-icon {
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    color: #04140b;
    border-color: transparent;
}
.scan-card[data-scan="standard"].selected .scan-card-credits {
    background: rgba(46, 224, 138, 0.18);
    color: var(--primary);
}

.scan-card[data-scan="deep"] .scan-card-icon { color: var(--deep); }
.scan-card[data-scan="deep"]:hover { border-color: rgba(180, 120, 255, 0.5); }
.scan-card[data-scan="deep"]::before {
    background: radial-gradient(120% 100% at 100% 0%, rgba(180, 120, 255, 0.12), transparent 60%);
}
.scan-card[data-scan="deep"].selected {
    border-color: var(--deep);
    background: linear-gradient(135deg, rgba(180, 120, 255, 0.13), rgba(124, 77, 255, 0.04));
    box-shadow: var(--glow-deep);
}
.scan-card[data-scan="deep"].selected .scan-card-icon {
    background: linear-gradient(135deg, var(--deep), var(--deep-2));
    color: #160930;
    border-color: transparent;
}
.scan-card[data-scan="deep"].selected .scan-card-credits {
    background: rgba(180, 120, 255, 0.2);
    color: var(--deep);
}

/* Result cards =========================================== */
.result-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.15rem 1.15rem 1.25rem;
    margin-bottom: 0.9rem;
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(6px);
    transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
    animation: cardIn 0.4s var(--ease-out) both;
}
@keyframes cardIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}
.result-card:empty { display: none; }
.result-card h3 {
    margin-bottom: 0.7rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-family: var(--font-display);
}
.result-card p, .result-card ul {
    margin-bottom: 0.45rem;
    font-size: 0.95rem;
    line-height: 1.55;
    color: var(--text-soft);
}
.result-card ul {
    padding-left: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}
.result-card li {
    padding-left: 1.2rem;
    position: relative;
}
.result-card li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6rem;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 3px rgba(92, 200, 255, 0.15);
}

/* Summary card (highlight) — large verdict layout */
.highlight-card {
    padding: 1.4rem 1.3rem;
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
    border: 1px solid var(--border);
    overflow: hidden;
    position: relative;
}
.highlight-card h3 {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 0.8rem;
}

/* Big verdict header (injected by JS) */
.verdict-block {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 1rem 1.15rem;
    border-radius: var(--radius);
    margin-bottom: 1rem;
    position: relative;
    overflow: hidden;
}
.verdict-block::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(120% 200% at 0% 0%, currentColor, transparent 50%);
    opacity: 0.08;
    pointer-events: none;
}
.verdict-emoji {
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: var(--verdict-color, var(--unknown));
    color: #04140b;
    flex-shrink: 0;
    font-size: 1.5rem;
    font-weight: 700;
    font-family: var(--font-display);
    box-shadow: 0 6px 18px var(--verdict-glow, transparent);
}
.verdict-text { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }
.verdict-label {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.6rem;
    letter-spacing: -0.02em;
    line-height: 1;
    text-transform: uppercase;
    color: var(--text);
}
.verdict-sub {
    font-size: 0.82rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 500;
}

/* Verdict color variants — set --verdict-color and --verdict-glow per state */
.summary-buy   { --verdict-color: var(--buy);     --verdict-glow: var(--buy-glow);     border-color: rgba(46, 224, 138, 0.4); box-shadow: 0 0 0 1px rgba(46, 224, 138, 0.15), 0 14px 36px rgba(46, 224, 138, 0.08); }
.summary-offer { --verdict-color: var(--offer);   --verdict-glow: var(--offer-glow);   border-color: rgba(255, 181, 71, 0.4); box-shadow: 0 0 0 1px rgba(255, 181, 71, 0.15), 0 14px 36px rgba(255, 181, 71, 0.08); }
.summary-skip  { --verdict-color: var(--skip);    --verdict-glow: var(--skip-glow);    border-color: rgba(255, 92, 108, 0.4); box-shadow: 0 0 0 1px rgba(255, 92, 108, 0.15), 0 14px 36px rgba(255, 92, 108, 0.08); }
.summary-unknown { --verdict-color: var(--unknown); --verdict-glow: transparent; border-color: var(--border-strong); }

.summary-buy .verdict-block   { color: var(--buy);   background: rgba(46, 224, 138, 0.06);  border: 1px solid rgba(46, 224, 138, 0.3); }
.summary-offer .verdict-block { color: var(--offer); background: rgba(255, 181, 71, 0.06);  border: 1px solid rgba(255, 181, 71, 0.3); }
.summary-skip .verdict-block  { color: var(--skip);  background: rgba(255, 92, 108, 0.06);  border: 1px solid rgba(255, 92, 108, 0.3); }
.summary-unknown .verdict-block { color: var(--unknown); background: rgba(255,255,255,0.04); border: 1px solid var(--border); }

.summary-buy .verdict-label   { color: var(--buy); }
.summary-offer .verdict-label { color: var(--offer); }
.summary-skip .verdict-label  { color: var(--skip); }
.summary-unknown .verdict-label { color: var(--unknown); }

/* Metric grid */
.metric-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.55rem;
    margin-top: 0.4rem;
}
.metric {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.75rem 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
    transition: border-color 0.2s var(--ease);
}
.metric:hover { border-color: var(--border-strong); }
.metric-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}
.metric-value {
    font-family: var(--font-mono);
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text);
    line-height: 1.2;
    letter-spacing: -0.01em;
    overflow-wrap: anywhere;
}
.metric--accent .metric-value { color: var(--accent); }
.metric--primary .metric-value { color: var(--primary); }
.metric--offer .metric-value { color: var(--offer); }
.metric--skip .metric-value { color: var(--skip); }
.metric-icon { color: currentColor; opacity: 0.8; }

/* Legacy fallback for result-row layout (older renders) */
.result-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    color: var(--text-soft);
    font-size: 0.92rem;
}
.result-row:last-child { border-bottom: none; }
.result-row strong { color: var(--text); font-weight: 500; }
.result-row span { font-family: var(--font-mono); font-weight: 600; color: var(--text); }

/* Inline copy buttons */
.copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    margin-top: 0.6rem;
    padding: 0.4rem 0.75rem;
    background: rgba(92, 200, 255, 0.08);
    border: 1px solid rgba(92, 200, 255, 0.25);
    color: var(--accent);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 8px;
    transition: background 0.15s var(--ease), color 0.15s var(--ease), border-color 0.15s var(--ease);
    text-decoration: none;
}
.copy-btn:hover { background: rgba(92, 200, 255, 0.16); border-color: rgba(92, 200, 255, 0.5); }

/* Result actions row ====================================== */
.result-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
    margin-top: 1.5rem;
}
.result-actions button { width: 100%; min-width: 0; }
@media (min-width: 720px) {
    .result-actions { grid-template-columns: repeat(3, 1fr); }
}

/* Loading overlay ======================================== */
.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(6, 9, 26, 0.78);
    backdrop-filter: blur(14px) saturate(120%);
    -webkit-backdrop-filter: blur(14px) saturate(120%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 1.5rem;
    animation: overlayIn 0.25s var(--ease-out) both;
}
.loading-overlay.hidden { display: none; }
@keyframes overlayIn { from { opacity: 0; } to { opacity: 1; } }

.loading-card {
    width: 100%;
    max-width: 380px;
    padding: 2rem 1.5rem;
    text-align: center;
    background: var(--surface-strong);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.65rem;
}
.loader-ring {
    position: relative;
    width: 84px;
    height: 84px;
    margin-bottom: 0.4rem;
    border-radius: 50%;
    background: conic-gradient(from 0deg, transparent 0deg, var(--primary) 90deg, var(--accent) 180deg, var(--deep) 270deg, transparent 360deg);
    animation: spin 1.6s linear infinite;
    padding: 4px;
    box-shadow: 0 0 36px rgba(46, 224, 138, 0.3);
}
.loader-ring::before {
    content: '';
    position: absolute;
    inset: 4px;
    border-radius: 50%;
    background: var(--bg-0);
}
.loader-orb {
    position: absolute;
    inset: 18px;
    border-radius: 50%;
    background: radial-gradient(circle at 40% 35%, rgba(46, 224, 138, 0.55), rgba(46, 224, 138, 0.05) 70%);
    animation: orbPulse 2s ease-in-out infinite;
}
@keyframes orbPulse { 50% { transform: scale(0.85); opacity: 0.6; } }

.loading-title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text);
    margin-top: 0.3rem;
    letter-spacing: -0.01em;
}
.loading-msg {
    font-size: 0.92rem;
    color: var(--text-soft);
    min-height: 1.3em;
}
.loading-hint { font-size: 0.78rem; margin-top: 0.4rem; }

.scan-progress-wrap {
    width: 100%;
    height: 10px;
    border-radius: 9999px;
    background: rgba(255,255,255,0.06);
    overflow: hidden;
    margin-top: 0.7rem;
    border: 1px solid rgba(255,255,255,0.08);
    position: relative;
}
.scan-progress-bar {
    width: 0%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--primary), var(--accent), var(--deep));
    background-size: 200% 100%;
    transition: width 0.2s linear;
    box-shadow: 0 0 14px rgba(46, 224, 138, 0.5);
    animation: barShimmer 2.4s linear infinite;
    position: relative;
}
.scan-progress-bar::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent);
    animation: shimmer 1.6s linear infinite;
}
@keyframes barShimmer { to { background-position: 200% 0; } }
@keyframes shimmer { to { transform: translateX(120%); } }

.scan-progress-percent {
    margin-top: 0.2rem;
    font-family: var(--font-mono);
    font-weight: 600;
    color: var(--text);
    font-size: 0.95rem;
    letter-spacing: 0.02em;
}

/* Modals ================================================= */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(6, 9, 26, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9000;
    padding: 1rem;
    animation: overlayIn 0.2s var(--ease-out) both;
}
.modal.hidden { display: none; }
.modal-content {
    background: var(--surface-strong);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    max-width: 600px;
    width: 100%;
    color: var(--text);
    white-space: pre-wrap;
    border: 1px solid var(--border-strong);
    box-shadow: var(--shadow-lg);
    max-height: 80vh;
    overflow-y: auto;
}
.modal-content h3 { margin-bottom: 0.8rem; color: var(--text); font-size: 1.05rem; }
.modal-content p { color: var(--text-soft); white-space: pre-wrap; }

/* btn-group */
.btn-group {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

/* Saved deals page ======================================= */
.saved-tabs {
    display: flex;
    gap: 0.4rem;
    margin: 1rem 0 1.2rem;
    padding: 0.3rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
}
.saved-tabs .tab-btn { flex: 1; }

.saved-section { margin-top: 0.5rem; }
.saved-section-actions {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 0.8rem;
}

#savedDealsContainer,
#scanHistoryContainer {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.saved-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem 1.1rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.9rem;
    color: var(--text);
    transition: transform 0.18s var(--ease), border-color 0.18s var(--ease), background 0.18s var(--ease);
    backdrop-filter: blur(4px);
}
.saved-card:hover {
    transform: translateY(-1px);
    border-color: var(--border-strong);
    background: var(--surface-2);
}

.saved-card-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.3rem; }
.saved-card-title {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text);
    line-height: 1.3;
    word-break: break-word;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.saved-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.7rem;
    font-size: 0.82rem;
    color: var(--text-muted);
    font-family: var(--font-body);
}
.saved-card-meta span { display: inline-flex; align-items: center; gap: 0.25rem; }
.saved-card-date {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.saved-card-actions {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    flex-shrink: 0;
}
.saved-card-actions .secondary-btn,
.saved-card-actions .ghost-btn {
    padding: 0.5rem 0.85rem;
    font-size: 0.82rem;
    min-height: 38px;
}

/* Verdict mini-badge for saved cards */
.verdict-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.2rem 0.55rem;
    border-radius: 9999px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-family: var(--font-display);
}
.verdict-chip-buy   { background: rgba(46, 224, 138, 0.12); color: var(--buy); border: 1px solid rgba(46, 224, 138, 0.3); }
.verdict-chip-offer { background: rgba(255, 181, 71, 0.12); color: var(--offer); border: 1px solid rgba(255, 181, 71, 0.3); }
.verdict-chip-skip  { background: rgba(255, 92, 108, 0.12); color: var(--skip); border: 1px solid rgba(255, 92, 108, 0.3); }
.verdict-chip-unknown { background: rgba(255,255,255,0.06); color: var(--text-muted); border: 1px solid var(--border); }

/* Empty state for saved/history */
.empty-state {
    text-align: center;
    padding: 2.5rem 1rem;
    background: var(--surface);
    border: 1px dashed var(--border-strong);
    border-radius: var(--radius);
}
.empty-state-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 0.9rem;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    color: var(--text-muted);
}
.empty-state-title {
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--text);
    font-size: 1.05rem;
    margin-bottom: 0.3rem;
}
.empty-state-sub { font-size: 0.9rem; color: var(--text-muted); }

/* Footer ================================================= */
.app-footer {
    margin-top: auto;
    padding: 1.2rem 0 2rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8rem;
    border-top: 1px solid var(--border);
    background: linear-gradient(0deg, rgba(6, 9, 26, 0.6), transparent);
    position: relative;
    z-index: 1;
}

/* ============================================================
   MOBILE: <= 600px (portrait priority)
   ============================================================ */
@media (max-width: 600px) {
    body { font-size: 15.5px; }
    main { padding: 0.85rem 1rem 5rem; }
    .container { padding: 0 1rem; }

    .header-inner { padding: 0; }
    .logo-text { font-size: 1.05rem; }
    .user-email { display: none; }
    #creditDisplay { font-size: 0.78rem; padding: 0.3rem 0.65rem; }
    #logoutButton { padding: 0.5rem 0.7rem; font-size: 0.78rem; min-height: 38px; }
    #logoutButton span { display: none; }

    .home-content { margin-top: 0.8rem; }
    .home-title { font-size: clamp(1.9rem, 9vw, 2.4rem); }
    .tagline { font-size: 0.95rem; margin-bottom: 1.5rem; }
    .home-trust {
        flex-wrap: wrap;
        border-radius: 18px;
        padding: 0.7rem 1rem;
        gap: 0.6rem;
        margin-top: 1.5rem;
        font-size: 0.72rem;
        max-width: 100%;
    }
    .trust-divider { display: none; }
    .trust-item { flex: 1; min-width: 30%; }

    .action-card { padding: 0.95rem 1rem; }
    .action-icon { width: 42px; height: 42px; border-radius: 12px; }
    .action-card-ghost .action-icon { width: 38px; height: 38px; }
    .action-title { font-size: 0.95rem; }
    .action-sub { font-size: 0.8rem; }

    .navigation-buttons { flex-direction: column; gap: 0.5rem; }
    .navigation-buttons > * { width: 100%; min-width: 0; }

    .result-actions { grid-template-columns: 1fr 1fr; }

    .scan-card-group { flex-direction: column; }
    .scan-card { min-width: 0; }

    .modal-content { padding: 1.25rem; border-radius: var(--radius); }

    .saved-card {
        flex-direction: column;
        align-items: stretch;
        gap: 0.7rem;
    }
    .saved-card-actions { justify-content: stretch; }
    .saved-card-actions > * { flex: 1; }

    .upload-options { flex-direction: column; }
    .upload-icon { width: 56px; height: 56px; }

    .verdict-label { font-size: 1.4rem; }
    .verdict-emoji { width: 44px; height: 44px; font-size: 1.3rem; }
    .highlight-card { padding: 1.15rem; border-radius: var(--radius); }

    .tab-btn { padding: 0.6rem 0.4rem; font-size: 0.85rem; gap: 0.3rem; }
    .tab-btn svg { width: 14px; height: 14px; }

    .metric { padding: 0.65rem 0.75rem; }
    .metric-value { font-size: 1rem; }
    .metric-label { font-size: 0.66rem; }

    .auth-shell { margin-top: 0.5rem; }
    .auth-card { padding: 1.2rem; border-radius: var(--radius); }
    .auth-hero .display { font-size: 1.5rem; }

    .loading-card { padding: 1.5rem 1.2rem; }
    .loader-ring { width: 70px; height: 70px; }
    .loader-orb { inset: 14px; }
    .loading-title { font-size: 1rem; }
    .loading-msg { font-size: 0.85rem; }

    .step-indicator { font-size: 0.7rem; }
}

/* Tap-target safety on very small screens */
@media (max-width: 380px) {
    .primary-btn, .secondary-btn, .ghost-btn { padding: 0.75rem 1rem; }
    .action-title { font-size: 0.9rem; }
    .home-title { font-size: 1.9rem; }
}

/* Prefers light scheme — we always render dark, but let's
   keep iOS form controls readable */
input, textarea, select, button { color-scheme: dark; }

/* Selection */
::selection { background: rgba(46, 224, 138, 0.35); color: #fff; }

/* Scrollbar (subtle) */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 9999px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.16); }

/* Stripe billing additions */
.trust-note {
    margin: 0 auto 1.25rem;
    max-width: 760px;
    padding: 0.85rem 1rem;
    border: 1px solid rgba(124, 246, 200, 0.22);
    border-radius: 16px;
    background: rgba(124, 246, 200, 0.08);
    color: rgba(238, 246, 255, 0.88);
    text-align: center;
    font-weight: 600;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0 1rem;
}

.pricing-card {
    position: relative;
    overflow: hidden;
    padding: 1.15rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,255,255,0.045));
    box-shadow: 0 18px 40px rgba(0,0,0,0.24);
}

.pricing-card.featured {
    border-color: rgba(116, 142, 255, 0.42);
    box-shadow: 0 20px 55px rgba(86, 114, 255, 0.20);
}

.pricing-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.pricing-card h3 {
    margin: 0;
    font-family: var(--font-display, inherit);
    font-size: 1.05rem;
}

.pricing-price {
    white-space: nowrap;
    color: #7cf6c8;
    font-family: var(--font-mono, monospace);
    font-weight: 800;
}

.pricing-credits {
    margin: 0 0 1rem;
    color: rgba(238, 246, 255, 0.78);
    font-weight: 700;
}

.payment-status-card {
    max-width: 680px;
    margin: 2rem auto;
    text-align: center;
    padding: 1.35rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(255,255,255,0.11), rgba(255,255,255,0.05));
    box-shadow: 0 24px 70px rgba(0,0,0,0.28);
}

.payment-status-icon {
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    margin: 0 auto 1rem;
    border-radius: 999px;
    background: rgba(124, 246, 200, 0.12);
    color: #7cf6c8;
    border: 1px solid rgba(124, 246, 200, 0.34);
    font-size: 1.7rem;
    font-weight: 900;
}

.mobile-debug-line {
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(0, 188, 212, 0.12);
  border: 1px solid rgba(0, 188, 212, 0.35);
  color: #b9f6ff;
  font-size: 12px;
  line-height: 1.35;
  word-break: break-word;
}
.mobile-debug-line.hidden { display: none; }


/* Value perception additions ================================= */
.money-protected-line {
    margin-top: 0.9rem;
    padding: 0.75rem 0.9rem;
    border: 1px solid rgba(255, 179, 0, 0.28);
    border-radius: var(--radius-sm);
    background: rgba(255, 179, 0, 0.08);
    color: var(--offer);
    font-weight: 700;
}
.gross-profit-note,
.metric-help,
.value-reminder,
.value-copy {
    color: var(--text-muted);
    font-size: 0.86rem;
    line-height: 1.45;
}
.metric-help {
    display: block;
    margin-top: 0.35rem;
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 500;
}
.gross-profit-note {
    margin-top: 0.75rem;
}
.value-receipt-list,
.listing-pack-list {
    display: grid;
    gap: 0.45rem;
    margin: 0.5rem 0 0.75rem;
    padding-left: 0;
    list-style: none;
}
.value-receipt-list li,
.listing-pack-list li {
    position: relative;
    padding-left: 1.45rem;
}
.value-receipt-list li::before,
.listing-pack-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 800;
}
.seller-message-options {
    display: grid;
    gap: 0.85rem;
}
.seller-message-option {
    padding: 0.8rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.025);
}
.seller-message-option strong {
    display: block;
    margin-bottom: 0.35rem;
    color: var(--text);
}
.seller-message-option p {
    margin-bottom: 0.65rem;
}
.value-copy {
    margin: 0.25rem 0 0;
    text-align: center;
}
.value-copy-small {
    font-size: 0.8rem;
}
.pricing-tag {
    display: inline-flex;
    vertical-align: middle;
    margin-left: 0.35rem;
    padding: 0.15rem 0.42rem;
    border-radius: 999px;
    background: rgba(46, 224, 138, 0.14);
    color: var(--primary);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    white-space: nowrap;
}
.pricing-tag-best {
    background: rgba(180, 120, 255, 0.14);
    color: var(--deep);
}

/* Mode selection: Check a Deal / Sell Mine */
.mode-selector {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
    margin-bottom: 1rem;
}
.mode-card {
    width: 100%;
    text-align: left;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.045);
    color: var(--text);
    border-radius: 18px;
    padding: 1rem;
    cursor: pointer;
    transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}
.mode-card:hover {
    transform: translateY(-1px);
    border-color: rgba(46, 224, 138, 0.45);
    background: rgba(255, 255, 255, 0.07);
}
.mode-card.selected {
    border-color: rgba(46, 224, 138, 0.75);
    background: rgba(46, 224, 138, 0.10);
    box-shadow: 0 12px 34px rgba(46, 224, 138, 0.12);
}
.mode-title {
    display: block;
    font-weight: 800;
    font-size: 1rem;
    margin-bottom: 0.35rem;
}
.mode-sub {
    display: block;
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.4;
}

@media (max-width: 700px) {
    .mode-selector { grid-template-columns: 1fr; }
}

/* Compare Two Deals + share cards */
.compare-form-grid,
.compare-result-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}
.compare-input-card h3,
.compare-deal-result h4 {
    margin-top: 0;
}
.compare-deal-result {
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: var(--radius);
    padding: 1rem;
    background: rgba(255,255,255,0.04);
}
.compare-metric {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding: 0.55rem 0;
}
.compare-metric span {
    color: var(--muted);
}
.compare-metric strong {
    text-align: right;
}
@media (max-width: 760px) {
    .compare-form-grid,
    .compare-result-grid {
        grid-template-columns: 1fr;
    }
}

/* Logged-out homepage expansion ========================= */
.landing-anchor-btn {
    text-decoration: none;
}

.landing-feature-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
}

.landing-feature-card,
.landing-info-card,
.example-result-card,
.landing-pain-panel,
.landing-report-section {
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.045);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.landing-feature-card {
    padding: 1.1rem;
    position: relative;
    overflow: hidden;
}

.landing-feature-card::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(380px 180px at 100% 0%, rgba(46, 224, 138, 0.08), transparent 70%);
}

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

.landing-feature-icon {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    margin-bottom: 0.75rem;
    border-radius: 14px;
    color: #04140b;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    box-shadow: 0 8px 24px rgba(46, 224, 138, 0.22);
    font-family: var(--font-mono);
    font-weight: 900;
}

.landing-feature-card h3,
.landing-info-card h3,
.example-result-card h3 {
    font-family: var(--font-display);
    font-size: 1.16rem;
    line-height: 1.15;
    letter-spacing: -0.025em;
    margin-bottom: 0.45rem;
}

.landing-feature-card p,
.landing-info-card p,
.example-result-card p,
.landing-section-copy,
.landing-pain-panel p {
    color: var(--text-soft);
    font-size: 0.95rem;
    line-height: 1.55;
}

.landing-feature-card ul {
    margin-top: 0.8rem;
    padding-left: 0;
    list-style: none;
    display: grid;
    gap: 0.36rem;
}

.landing-feature-card li {
    color: var(--text-soft);
    font-size: 0.9rem;
    line-height: 1.38;
    padding-left: 1.25rem;
    position: relative;
}

.landing-feature-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 900;
}

.landing-two-col {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
}

.landing-info-card {
    padding: 1.1rem;
}

.landing-mini-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 0.9rem;
}

.landing-mini-list span,
.category-chip-grid span {
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.11);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-soft);
    border-radius: 999px;
    padding: 0.42rem 0.65rem;
    font-size: 0.83rem;
    font-weight: 650;
}

.landing-report-section {
    padding: 1.1rem;
    background:
        radial-gradient(520px 220px at 15% 0%, rgba(92, 200, 255, 0.10), transparent 70%),
        rgba(255, 255, 255, 0.045);
}

.landing-checklist-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.6rem;
}

.landing-checklist-grid span {
    display: flex;
    gap: 0.45rem;
    align-items: center;
    color: var(--text-soft);
    border: 1px solid rgba(255, 255, 255, 0.10);
    background: rgba(255, 255, 255, 0.04);
    border-radius: 14px;
    padding: 0.72rem;
    font-size: 0.9rem;
    font-weight: 650;
}

.landing-checklist-grid span::before {
    content: '✓';
    color: var(--primary);
    font-weight: 900;
}

.category-chip-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.9rem;
}

.landing-pain-panel {
    margin: 1.1rem 0;
    padding: 1.25rem;
    background:
        radial-gradient(560px 240px at 90% 0%, rgba(255, 181, 71, 0.12), transparent 68%),
        radial-gradient(520px 220px at 5% 100%, rgba(46, 224, 138, 0.12), transparent 70%),
        rgba(255, 255, 255, 0.052);
}

.landing-pain-panel h2 {
    font-family: var(--font-display);
    font-size: clamp(1.55rem, 5vw, 2.35rem);
    line-height: 1.08;
    letter-spacing: -0.04em;
    margin-bottom: 0.55rem;
}

.pain-lines {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem;
    margin-top: 1rem;
}

.pain-lines span {
    color: var(--text-soft);
    border: 1px solid rgba(255, 255, 255, 0.10);
    background: rgba(0, 0, 0, 0.12);
    border-radius: 14px;
    padding: 0.75rem;
    font-size: 0.9rem;
}

.example-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
}

.example-result-card {
    padding: 1rem;
    background:
        radial-gradient(340px 170px at 100% 0%, rgba(92, 200, 255, 0.08), transparent 70%),
        rgba(255, 255, 255, 0.045);
}

.example-label {
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(46, 224, 138, 0.35);
    background: rgba(46, 224, 138, 0.10);
    color: var(--primary);
    border-radius: 999px;
    padding: 0.24rem 0.55rem;
    font-size: 0.72rem;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    margin-bottom: 0.75rem;
}

.example-result-card p {
    margin-top: 0.35rem;
    font-family: var(--font-mono);
    font-size: 0.86rem;
    color: var(--text-soft);
}

@media (max-width: 820px) {
    .landing-feature-grid,
    .landing-two-col,
    .landing-checklist-grid,
    .pain-lines,
    .example-card-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .landing-feature-card,
    .landing-info-card,
    .landing-report-section,
    .landing-pain-panel,
    .example-result-card {
        border-radius: 20px;
    }
    .landing-feature-card,
    .landing-info-card,
    .landing-report-section,
    .landing-pain-panel {
        padding: 1rem;
    }
    .landing-mini-list span,
    .category-chip-grid span {
        font-size: 0.8rem;
    }
}
