/* ============================================================
   WTB LIST — LIGHT (default) + DARK THEME
   Palette: white · orange · gold
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root,
[data-theme="light"] {
    --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --font-display: var(--font);

    --orange: #ea580c;
    --orange-2: #c2410c;
    --orange-soft: rgba(234, 88, 12, 0.1);
    --gold-1: #b45309;
    --gold-2: #92400e;
    --gold-3: #78350f;
    --gradient-pro: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #ea580c 100%);
    --gradient-pro-soft: linear-gradient(135deg, rgba(251,191,36,0.18), rgba(234,88,12,0.08));
    --gold-glow: 0 0 32px rgba(234, 88, 12, 0.18);

    --ink: #faf8f5;
    --bg-0: #ffffff;
    --bg-1: #faf8f5;
    --bg-2: #fff7ed;
    --surface: #ffffff;
    --surface-2: #faf8f5;
    --surface-3: #fff1e6;
    --line: rgba(28, 25, 23, 0.1);
    --line-2: rgba(28, 25, 23, 0.16);
    --line-3: rgba(28, 25, 23, 0.24);

    --heading: #1c1917;
    --white: #ffffff;
    --text: #292524;
    --text-2: #57534e;
    --text-3: #78716c;

    --primary: var(--orange);
    --primary-dark: var(--orange-2);
    --primary-light: #ffedd5;
    --accent: var(--orange);
    --accent-gray: #f5f5f4;
    --text-light: #57534e;
    --text-lighter: #a8a29e;
    --bg: #fffaf5;
    --bg-gray: #fff7ed;
    --bg-dark: #ffffff;
    --border: rgba(28, 25, 23, 0.1);
    --border-strong: rgba(28, 25, 23, 0.16);
    --shadow: rgba(28, 25, 23, 0.08);
    --shadow-lg: rgba(28, 25, 23, 0.14);

    --gradient-surface: linear-gradient(180deg, #ffffff 0%, #fffaf5 100%);
    --glow: 0 0 80px rgba(249, 115, 22, 0.08);

    --radius-xl: 26px;
    --radius-lg: 20px;
    --radius-md: 14px;
    --radius-sm: 10px;

    --shadow-card: 0 1px 0 rgba(255,255,255,0.9) inset, 0 12px 40px -16px rgba(28,25,23,0.12);
    --shadow-pop: 0 24px 60px -20px rgba(28,25,23,0.18);

    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --dur: 0.45s;

    --btn-primary-bg: linear-gradient(135deg, #f97316, #ea580c);
    --btn-primary-fg: #ffffff;
    --hero-accent: var(--orange);
    --nav-bg: rgba(255, 250, 245, 0.92);
    --chip-bg: #1c1917;
    --chip-fg: #ffffff;
    --input-bg: #ffffff;
    --input-border: rgba(28, 25, 23, 0.14);
}

[data-theme="dark"] {
    --orange: #fb923c;
    --orange-2: #f97316;
    --orange-soft: rgba(251, 146, 60, 0.14);
    --gold-1: #f7e7b6;
    --gold-2: #e3c069;
    --gold-3: #b98a37;
    --gradient-pro: linear-gradient(135deg, #f9ecc4 0%, #e3c069 45%, #bd9140 100%);
    --gradient-pro-soft: linear-gradient(135deg, rgba(227,192,105,0.14), rgba(189,145,64,0.06));
    --gold-glow: 0 0 40px rgba(227, 192, 105, 0.22);

    --ink: #08080a;
    --bg-0: #0a0a0c;
    --bg-1: #101012;
    --bg-2: #16161a;
    --surface: rgba(255, 255, 255, 0.024);
    --surface-2: rgba(255, 255, 255, 0.05);
    --surface-3: rgba(255, 255, 255, 0.08);
    --line: rgba(255, 255, 255, 0.08);
    --line-2: rgba(255, 255, 255, 0.14);
    --line-3: rgba(255, 255, 255, 0.22);

    --heading: #ffffff;
    --white: #ffffff;
    --text: #f4f4f6;
    --text-2: #a3a3ad;
    --text-3: #6c6c76;

    --primary: #ffffff;
    --primary-dark: #e5e5e5;
    --primary-light: #27272a;
    --accent: var(--orange);
    --accent-gray: #18181b;
    --text-light: #a3a3ad;
    --text-lighter: #6c6c76;
    --bg: #0a0a0c;
    --bg-gray: #16161a;
    --bg-dark: #08080a;
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.14);
    --shadow: rgba(0, 0, 0, 0.4);
    --shadow-lg: rgba(0, 0, 0, 0.6);

    --gradient-surface: linear-gradient(180deg, rgba(255,255,255,0.055) 0%, rgba(255,255,255,0.012) 100%);
    --glow: 0 0 120px rgba(251, 146, 60, 0.06);

    --shadow-card: 0 1px 0 rgba(255,255,255,0.04) inset, 0 18px 50px -20px rgba(0,0,0,0.7);
    --shadow-pop: 0 30px 80px -24px rgba(0,0,0,0.85);

    --btn-primary-bg: linear-gradient(135deg, #fb923c, #ea580c);
    --btn-primary-fg: #ffffff;
    --hero-accent: var(--gold-2);
    --nav-bg: rgba(10, 10, 12, 0.88);
    --chip-bg: #ffffff;
    --chip-fg: #1c1917;
    --input-bg: rgba(0, 0, 0, 0.35);
    --input-border: rgba(255, 255, 255, 0.12);
}

* { box-sizing: border-box; }
html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    overflow-x: clip;
    width: 100%;
    max-width: 100%;
}

body {
    font-family: var(--font);
    background: var(--ink);
    background-image:
        radial-gradient(ellipse 90% 55% at 50% -10%, var(--orange-soft), transparent 60%),
        radial-gradient(ellipse 60% 50% at 100% 0%, rgba(245,158,11,0.06), transparent 55%),
        radial-gradient(ellipse 70% 60% at 0% 100%, rgba(249,115,22,0.04), transparent 55%);
    background-attachment: fixed;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    padding-top: calc(var(--site-nav-height, 80px) + env(safe-area-inset-top, 0px));
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
    color: var(--text);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* Subtle film-grain so flat blacks read as "expensive" */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0.025;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    background: transparent;
    border-radius: 0;
    padding: 0 24px 96px;
    box-shadow: none;
    border: none;
    overflow-x: clip;
}

[data-theme="dark"] body {
    background-image:
        radial-gradient(ellipse 90% 55% at 50% -10%, rgba(251,146,60,0.08), transparent 60%),
        radial-gradient(ellipse 60% 50% at 100% 0%, rgba(255,255,255,0.035), transparent 55%),
        radial-gradient(ellipse 70% 60% at 0% 100%, rgba(255,255,255,0.025), transparent 55%);
}

::selection { background: rgba(249, 115, 22, 0.25); color: var(--white); }
[data-theme="dark"] ::selection { background: rgba(251, 146, 60, 0.3); color: #fff; }

/* ---------- Keyframes ---------- */
@keyframes revealUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalIn { from { opacity: 0; transform: translateY(14px) scale(0.97); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes overlayIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulseGlow { 0%,100% { box-shadow: 0 0 0 0 rgba(227,192,105,0.0); } 50% { box-shadow: 0 0 0 6px rgba(227,192,105,0.06); } }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes glowBreathe {
    0%, 100% { opacity: 0.55; transform: translate(-50%, -42%) scale(1); }
    50% { opacity: 0.85; transform: translate(-50%, -46%) scale(1.06); }
}
@keyframes macFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
@keyframes cardPop {
    from { opacity: 0; transform: translateY(16px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes softPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.015); }
}

/* Scroll-reveal utility (driven by premium.js) */
[data-reveal] { opacity: 0; transform: translateY(20px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); transition-delay: var(--d, 0s); }
[data-reveal].is-visible { opacity: 1; transform: none; }
[data-reveal].is-visible .mac-window-stage { animation: macFloat 5.5s ease-in-out 0.4s infinite; }
[data-reveal].is-visible .mac-card {
    opacity: 0;
    animation: cardPop 0.55s var(--ease) forwards;
}
[data-reveal].is-visible .mac-card:nth-child(1) { animation-delay: 0.18s; }
[data-reveal].is-visible .mac-card:nth-child(2) { animation-delay: 0.3s; }
[data-reveal].is-visible .mac-card:nth-child(3) { animation-delay: 0.42s; }
[data-reveal].is-visible .feature-card,
[data-reveal].is-visible .problem-card,
[data-reveal].is-visible .pro-benefit-card,
[data-reveal].is-visible .step,
[data-reveal].is-visible .review-card,
[data-reveal].is-visible .pricing-card {
    opacity: 0;
    animation: cardPop 0.55s var(--ease) forwards;
}
[data-reveal].is-visible .feature-card:nth-child(1),
[data-reveal].is-visible .problem-card:nth-child(1),
[data-reveal].is-visible .pro-benefit-card:nth-child(1),
[data-reveal].is-visible .step:nth-child(1),
[data-reveal].is-visible .review-card:nth-child(1),
[data-reveal].is-visible .pricing-card:nth-child(1) { animation-delay: 0.08s; }
[data-reveal].is-visible .feature-card:nth-child(2),
[data-reveal].is-visible .problem-card:nth-child(2),
[data-reveal].is-visible .pro-benefit-card:nth-child(2),
[data-reveal].is-visible .step:nth-child(2),
[data-reveal].is-visible .review-card:nth-child(2),
[data-reveal].is-visible .pricing-card:nth-child(2) { animation-delay: 0.16s; }
[data-reveal].is-visible .feature-card:nth-child(3),
[data-reveal].is-visible .problem-card:nth-child(3),
[data-reveal].is-visible .pro-benefit-card:nth-child(3),
[data-reveal].is-visible .step:nth-child(3),
[data-reveal].is-visible .review-card:nth-child(3),
[data-reveal].is-visible .pricing-card:nth-child(3) { animation-delay: 0.24s; }
[data-reveal].is-visible .feature-card:nth-child(4),
[data-reveal].is-visible .pro-benefit-card:nth-child(4),
[data-reveal].is-visible .review-card:nth-child(4) { animation-delay: 0.32s; }
[data-reveal].is-visible .feature-card:nth-child(5) { animation-delay: 0.4s; }
[data-reveal].is-visible .feature-card:nth-child(6) { animation-delay: 0.48s; }

.feature-card,
.problem-card,
.pro-benefit-card,
.step,
.pricing-card,
.mac-card {
    transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}
.feature-card:hover,
.problem-card:hover,
.pro-benefit-card:hover,
.step:hover,
.pricing-card:hover {
    transform: translateY(-4px);
}
.mac-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px -16px rgba(28, 25, 23, 0.28);
}

.hero .hero-glow {
    animation: glowBreathe 7s ease-in-out infinite;
}
.hero-cta .btn-primary {
    animation: softPulse 3.2s ease-in-out 1.2s infinite;
}

@media (prefers-reduced-motion: reduce) {
    [data-reveal] { opacity: 1 !important; transform: none !important; }
    [data-reveal].is-visible .mac-window-stage,
    [data-reveal].is-visible .mac-card,
    [data-reveal].is-visible .feature-card,
    [data-reveal].is-visible .problem-card,
    [data-reveal].is-visible .pro-benefit-card,
    [data-reveal].is-visible .step,
    [data-reveal].is-visible .review-card,
    [data-reveal].is-visible .pricing-card,
    .hero .hero-glow,
    .hero-cta .btn-primary,
    .mac-shoe img {
        animation: none !important;
        opacity: 1 !important;
    }
    * { animation-duration: 0.001ms !important; transition-duration: 0.08s !important; }
}

/* ============================================================
   HEADER
   ============================================================ */
.app-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 26px 0 34px;
    gap: 16px;
    flex-wrap: wrap;
    animation: revealUp 0.6s var(--ease) both;
}
.app-header-left { display: flex; align-items: center; gap: 14px; }

.main-logo {
    max-height: 40px;
    max-width: 116px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 0.96;
}

.brand-title {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--white);
    margin: 0;
    text-transform: none;
}
.brand-title::after {
    content: 'PRO';
    display: none;
}

h1 { display: none; }
.logo-header, .top-bar { display: none; }

.app-header-right { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

.lang-switch {
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 3px;
    backdrop-filter: blur(10px);
}
.lang-btn {
    border-radius: 999px;
    padding: 7px 14px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--text-2);
    background: transparent;
    border: none;
    cursor: pointer;
    min-height: auto;
    text-transform: uppercase;
    transition: color 0.25s var(--ease), background 0.25s var(--ease);
}
.lang-btn.active { background: var(--btn-primary-bg); color: #fff; }
.lang-btn:hover:not(.active) { color: var(--text); background: var(--surface-3); }

.theme-switch {
    display: flex;
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 3px;
}
.theme-btn {
    border: none;
    background: transparent;
    border-radius: 999px;
    padding: 7px 10px;
    font-size: 14px;
    cursor: pointer;
    line-height: 1;
    opacity: 0.55;
    transition: opacity 0.2s var(--ease), background 0.2s var(--ease);
}
.theme-btn.active { opacity: 1; background: var(--surface-3); }
.theme-btn:hover { opacity: 0.85; }

/* ============================================================
   AUTH BAR
   ============================================================ */
.auth-bar {
    background: var(--gradient-surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    margin: 24px 0 28px;
    backdrop-filter: blur(14px);
    animation: revealUp 0.6s var(--ease) 0.05s both;
}
/* Hide the empty bar shown when logged out */
.auth-bar:empty { display: none; }
.auth-user, .auth-guest { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: center; }
.auth-email { font-size: 14px; font-weight: 500; color: var(--text-2); }

.plan-badge {
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.plan-badge.pro { background: var(--gradient-pro); color: #1a1206; box-shadow: var(--gold-glow); }
.plan-badge.free { background: var(--surface-3); color: var(--text-2); border: 1px solid var(--line); }
.plan-badge.referral {
    background: rgba(16, 185, 129, 0.15);
    color: #047857;
    border: 1px solid rgba(16, 185, 129, 0.35);
}
.pricing-referral-note {
    margin: 0 0 14px;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #047857;
    font-size: 13.5px;
    font-weight: 700;
    text-align: center;
}
[data-theme="dark"] .plan-badge.referral,
[data-theme="dark"] .pricing-referral-note {
    color: #6ee7b7;
}

.search-limit {
    font-size: 12px;
    color: var(--text-2);
    padding: 5px 11px;
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: 999px;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary, .btn-secondary, .btn-pro, .btn-ghost {
    position: relative;
    padding: 11px 20px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease), opacity 0.2s;
    min-height: 42px;
    width: auto;
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
}
.btn-lg { padding: 16px 30px; font-size: 13px; min-height: 54px; }

.btn-primary { background: var(--btn-primary-bg); color: var(--btn-primary-fg); border: none; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 34px -10px rgba(249, 115, 22, 0.45); }

.btn-secondary { background: var(--surface-2); color: var(--text); border: 1px solid var(--line-2); }
.btn-secondary:hover { background: var(--surface-3); transform: translateY(-1px); }

.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--line-2); }
.btn-ghost:hover { background: var(--surface-2); border-color: var(--line-3); transform: translateY(-1px); }

.btn-pro { background: var(--gradient-pro); color: #1a1206; box-shadow: var(--gold-glow); }
.btn-pro:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -12px rgba(227,192,105,0.5); }

/* Shine sweep on premium buttons */
.btn-primary::after, .btn-pro::after, .cta-pro::after {
    content: '';
    position: absolute;
    top: 0; left: -120%;
    width: 60%; height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255,255,255,0.55), transparent);
    transform: skewX(-18deg);
    transition: left 0.7s var(--ease);
    pointer-events: none;
}
.btn-primary:hover::after, .btn-pro:hover::after, .cta-pro:hover::after { left: 130%; }

/* Click ripple (premium.js) */
.ripple { position: absolute; border-radius: 50%; transform: scale(0); background: rgba(0,0,0,0.18); animation: rippleExpand 0.6s var(--ease); pointer-events: none; }
.btn-secondary .ripple, .btn-ghost .ripple { background: rgba(255,255,255,0.18); }
@keyframes rippleExpand { to { transform: scale(2.6); opacity: 0; } }

/* ============================================================
   LOGIN HERO
   ============================================================ */
.login-prompt, .login-hero {
    position: relative;
    text-align: center;
    padding: 96px 24px 88px;
    background:
        radial-gradient(ellipse 70% 60% at 50% 0%, rgba(255,255,255,0.06), transparent 70%),
        var(--gradient-surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    margin: 24px 0 40px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
}
.hero-glow {
    position: absolute;
    top: -40%; left: 50%;
    width: min(680px, 120vw);
    height: min(680px, 120vw);
    transform: translateX(-50%);
    background: radial-gradient(circle, rgba(255,255,255,0.10), transparent 62%);
    pointer-events: none;
    animation: floaty 9s ease-in-out infinite;
}
.hero-eyebrow {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--text-2);
    padding: 6px 14px;
    border: 1px solid var(--line-2);
    border-radius: 999px;
    background: var(--surface-2);
    margin-bottom: 26px;
    position: relative;
    animation: revealUp 0.6s var(--ease) 0.05s both;
}
.login-prompt h2, .hero-title {
    position: relative;
    font-family: var(--font);
    font-size: clamp(2rem, 5.5vw, 3.25rem);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.025em;
    color: var(--heading);
    margin: 0 auto 18px;
    max-width: 720px;
    animation: revealUp 0.7s var(--ease) 0.12s both;
}
.hero-title .accent { color: var(--hero-accent); font-weight: 700; }
.login-prompt h2 em, .hero-title em { font-style: normal; color: var(--hero-accent); }
.login-prompt p, .hero-sub {
    position: relative;
    color: var(--text-2);
    font-size: clamp(15px, 2.2vw, 18px);
    line-height: 1.6;
    max-width: 540px;
    margin: 0 auto 14px;
    animation: revealUp 0.7s var(--ease) 0.2s both;
}
.hero-cta {
    position: relative;
    display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
    margin: 30px 0 12px;
    width: 100%;
    max-width: 100%;
    animation: revealUp 0.7s var(--ease) 0.28s both;
}
.hero-cta .btn-lg {
    max-width: 100%;
    box-sizing: border-box;
}
.hero-feats {
    position: relative;
    display: flex; gap: 10px; justify-content: center; flex-wrap: wrap;
    margin: 34px auto 0;
    max-width: 640px;
    animation: revealUp 0.7s var(--ease) 0.36s both;
}
.hero-feat {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 13px; font-weight: 600; color: var(--text);
    padding: 9px 15px;
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: 999px;
    backdrop-filter: blur(8px);
}
.hero-feat .hf-ic { font-size: 15px; opacity: 0.95; }
.hero-note {
    position: relative;
    margin-top: 26px !important;
    font-size: 13px !important;
    color: var(--text-3) !important;
    animation: revealUp 0.7s var(--ease) 0.44s both;
}

/* Dashboard: never leave logged-in UI invisible from scroll-reveal */
#appContent [data-reveal],
body.authed #appContent [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
}

/* ============================================================
   APP PANEL
   ============================================================ */
#appContent {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    padding: 30px;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-card);
}

/* Plan-limit nudge (progress style, not scary) */
.plan-limit-banner {
    display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
    background: var(--gradient-pro-soft);
    border: 1px solid rgba(234, 88, 12, 0.22);
    border-radius: var(--radius-md);
    padding: 14px 18px;
    margin-bottom: 24px;
    font-size: 13.5px;
    color: var(--gold-2);
    animation: revealUp 0.5s var(--ease) both;
}
.plan-limit-banner strong { color: var(--heading); }
.plan-limit-banner a {
    color: #fff;
    background: var(--btn-primary-bg);
    font-weight: 800;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.05em;
    margin-left: auto;
    padding: 8px 15px;
    border-radius: 999px;
    text-decoration: none;
    white-space: nowrap;
    transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.plan-limit-banner a:hover { transform: translateY(-1px); box-shadow: var(--gold-glow); }

.referral-banner {
    display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.28);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    margin-bottom: 16px;
    font-size: 13.5px;
    color: var(--heading);
}
.referral-banner a {
    margin-left: auto;
    color: #fff;
    background: #059669;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.05em;
    padding: 8px 14px;
    border-radius: 999px;
    text-decoration: none;
}
.referral-card {
    margin-bottom: 12px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 0;
    overflow: hidden;
}
.dash-collapse-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    border: none;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
}
.dash-collapse-toggle:hover { background: color-mix(in srgb, var(--surface) 88%, var(--text) 12%); }
.dash-collapse-label {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.dash-collapse-label strong {
    font-size: 14px;
    color: var(--heading);
}
.dash-collapse-hint {
    font-size: 12px;
    color: var(--text-3);
}
.dash-collapse-chevron {
    flex: 0 0 auto;
    font-size: 14px;
    color: var(--text-3);
    transition: transform 0.2s ease;
}
.dash-collapse:not(.is-collapsed) .dash-collapse-chevron { transform: rotate(180deg); }
.dash-collapse-body {
    padding: 0 16px 16px;
    border-top: 1px solid var(--line);
}
.dash-collapse.is-collapsed .dash-collapse-body { display: none; }
.dash-collapse.is-collapsed .dash-collapse-body { border-top: none; }
.referral-card-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 20px;
    align-items: flex-end;
    justify-content: space-between;
    padding-top: 12px;
}
.referral-copy { flex: 1 1 220px; min-width: 0; }
.referral-copy strong {
    display: block;
    font-size: 14px;
    color: var(--heading);
    margin-bottom: 4px;
}
.referral-copy p {
    margin: 0;
    font-size: 13px;
    color: var(--text-2);
    line-height: 1.45;
}
.referral-stats {
    margin-top: 8px !important;
    font-size: 12px !important;
    color: var(--text-3) !important;
}
.referral-stripe-code {
    margin-top: 10px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    color: var(--heading) !important;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* Floating invite notice when arriving via ?ref= */
.ref-invite-notice {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: max(16px, env(safe-area-inset-bottom));
    z-index: 1200;
    display: none;
}
.ref-invite-inner {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-radius: 16px;
    background: var(--surface);
    border: 1px solid rgba(16, 185, 129, 0.35);
    box-shadow: 0 18px 50px -20px rgba(0, 0, 0, 0.35);
}
.ref-invite-copy {
    flex: 1 1 240px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.ref-invite-copy strong {
    color: var(--heading);
    font-size: 14px;
}
.ref-invite-copy span {
    color: var(--text-2);
    font-size: 13px;
    line-height: 1.45;
}
.ref-invite-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}
.ref-invite-close {
    border: none;
    background: transparent;
    color: var(--text-3);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    padding: 4px 8px;
}
@media (max-width: 640px) {
    .ref-invite-actions { width: 100%; }
    .ref-invite-actions .btn-primary,
    .ref-invite-actions .btn-secondary { flex: 1; }
}

.referral-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    max-width: 100%;
}
.referral-link {
    display: block;
    max-width: min(100%, 360px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    background: var(--surface-2);
    border: 1px solid var(--line);
    color: var(--text);
}

@media (max-width: 768px) {
    .referral-banner { flex-direction: column; align-items: stretch; }
    .referral-banner a { margin-left: 0; text-align: center; }
    .referral-actions { width: 100%; }
    .referral-link { max-width: 100%; }
    .referral-actions .btn-secondary { width: 100%; }
}
.limit-meter { flex: 1 1 120px; min-width: 120px; height: 6px; border-radius: 999px; background: rgba(255,255,255,0.1); overflow: hidden; }
.limit-meter > span { display: block; height: 100%; border-radius: 999px; background: var(--gradient-pro); transition: width 0.6s var(--ease); }

/* ============================================================
   TABS
   ============================================================ */
.list-type-tabs {
    display: flex;
    background: var(--surface-2);
    border: 1px solid var(--line-2);
    border-radius: 14px;
    padding: 4px;
    max-width: 100%;
    margin: 0 0 28px;
    gap: 4px;
    flex-wrap: nowrap;
}
.list-tab {
    flex: 1;
    border-radius: 10px;
    padding: 11px 16px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-2);
    background: transparent;
    border: none;
    cursor: pointer;
    letter-spacing: 0;
    text-transform: none;
    min-width: 0;
    transition: color 0.25s var(--ease), background 0.25s var(--ease);
}
[data-theme="dark"] .list-type-tabs { background: rgba(0,0,0,0.4); border-color: var(--line); }
.list-tab.active { background: var(--btn-primary-bg); color: #fff; box-shadow: 0 8px 20px -8px rgba(249,115,22,0.45); }
.list-tab:hover:not(.active) { color: var(--text); background: var(--surface-2); }

/* ============================================================
   SEARCH
   ============================================================ */
.search-section { display: flex; gap: 12px; margin-bottom: 24px; }
#searchInput {
    flex: 1;
    padding: 16px 20px;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: var(--radius-md);
    color: var(--text);
    font-size: 15px;
    font-family: var(--font);
    transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
}
#searchInput::placeholder { color: var(--text-3); }
#searchInput:focus {
    outline: none;
    border-color: var(--orange);
    box-shadow: 0 0 0 3px var(--orange-soft);
}
.search-section > button {
    padding: 16px 28px;
    background: var(--btn-primary-bg);
    border: none;
    border-radius: var(--radius-md);
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0;
    text-transform: none;
    width: auto;
    min-width: 120px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.search-section > button:hover { transform: translateY(-2px); box-shadow: 0 14px 34px -12px rgba(234, 88, 12, 0.45); }

/* ============================================================
   SEARCH RESULTS
   ============================================================ */
.search-results {
    background: var(--surface);
    border: 1px solid var(--line-2);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 8px;
    margin-bottom: 24px;
    max-height: 520px;
    overflow-y: auto;
}
.search-results.active { display: block; animation: slideDown 0.35s var(--ease); }
.result-item {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--surface);
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    padding: 14px;
    margin-bottom: 6px;
    cursor: pointer;
    transition: background 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
    animation: revealUp 0.4s var(--ease) both;
}
.result-item:hover { background: var(--surface-3); border-color: var(--line-2); transform: translateX(5px); }
.result-item img { width: 76px; height: 76px; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--line); flex-shrink: 0; background: #000; }
.result-item-info h3 { color: var(--text); font-weight: 600; font-size: 15px; margin-bottom: 4px; }
.result-item-info p, .sku-text { color: var(--text-3); font-size: 12.5px; font-family: 'Menlo', monospace; }

/* Loading state with spinner */
.loading {
    display: flex; align-items: center; justify-content: center; gap: 12px;
    text-align: center;
    padding: 36px;
    color: var(--text-2);
    font-size: 14px;
    font-weight: 500;
}
.loading::before {
    content: '';
    width: 18px; height: 18px;
    border: 2px solid var(--line-2);
    border-top-color: var(--orange);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
.loading::after { content: none; }

/* ============================================================
   SELECTED ITEMS
   ============================================================ */
.selected-items { margin-bottom: 8px; }
.selected-items h2 {
    font-family: var(--font);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
    color: var(--text-2);
    margin-bottom: 18px;
}
.items-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.selected-item-card {
    position: relative;
    background: var(--gradient-surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 18px;
    transition: border-color 0.3s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
    animation: revealUp 0.45s var(--ease) both;
}
.selected-item-card:hover { border-color: var(--line-2); transform: translateY(-4px); box-shadow: var(--shadow-pop); }
.item-card-top { margin-bottom: 14px; }
.item-card-top img {
    width: 100%; height: 210px; object-fit: cover;
    border-radius: var(--radius-md); margin-bottom: 12px;
    border: 1px solid var(--line); background: #000;
}
.item-card-meta h3 { color: var(--text); font-size: 16px; font-weight: 600; line-height: 1.35; margin: 0 0 8px; }
.selected-item-card h3 { color: var(--text); font-size: 16px; font-weight: 600; line-height: 1.35; margin-bottom: 8px; }

.item-sku { font-family: 'Menlo', monospace; font-size: 12px; color: var(--text-2); background: var(--surface-2); border: 1px solid var(--line); padding: 5px 11px; border-radius: 7px; display: inline-block; margin-bottom: 0; }

.item-note-box { margin-bottom: 14px; }
.item-note-box label, .size-selector label, .size-custom-row > label {
    display: block; margin-bottom: 7px;
    font-weight: 700; color: var(--text-2);
    font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em;
}
.item-note-input, .size-selector select, .custom-size-input, .size-add-select {
    width: 100%;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    color: var(--text);
    border-radius: var(--radius-sm);
    padding: 11px 13px;
    font-size: 13.5px;
    font-family: var(--font);
    transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
    box-sizing: border-box;
}
.item-note-input { min-height: 64px; resize: vertical; line-height: 1.4; }
.item-note-input:focus, .size-selector select:focus, .custom-size-input:focus, .size-add-select:focus {
    outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px var(--orange-soft);
}

.size-chips { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 12px; min-height: 26px; }
.size-chip {
    display: inline-flex; align-items: center; gap: 5px;
    background: var(--chip-bg); color: var(--chip-fg);
    border: none; border-radius: 999px;
    padding: 5px 11px; font-size: 12px; font-weight: 600;
}
.size-chip-remove { background: transparent; border: none; color: inherit; cursor: pointer; padding: 0 1px; font-size: 14px; line-height: 1; opacity: 0.55; }
.size-chip-remove:hover { opacity: 1; }
.size-placeholder { color: var(--text-3); font-size: 13px; }

.size-add-row { display: flex; gap: 8px; align-items: stretch; }
.size-add-row .size-add-select { flex: 1; min-width: 0; }
.size-custom-controls { display: flex; gap: 8px; align-items: stretch; }
.size-custom-controls .custom-size-input { flex: 1; min-width: 0; }
.btn-add-size, .btn-add-custom-size {
    padding: 11px 15px !important;
    font-size: 12px !important;
    white-space: nowrap;
    background: var(--surface-3) !important;
    color: var(--text) !important;
    border: 1px solid var(--line-2) !important;
    border-radius: var(--radius-sm) !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    cursor: pointer;
    transition: background 0.2s var(--ease) !important;
    flex-shrink: 0;
}
.btn-add-size:hover, .btn-add-custom-size:hover { background: var(--surface-2) !important; transform: none !important; }
.size-custom-row { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); }

.remove-btn {
    position: absolute; top: 14px; right: 14px;
    width: 34px; height: 34px;
    background: rgba(0,0,0,0.55);
    color: #fff;
    border: 1px solid var(--line-2);
    border-radius: 50%;
    cursor: pointer; font-size: 19px;
    display: flex; align-items: center; justify-content: center;
    backdrop-filter: blur(6px);
    transition: background 0.2s var(--ease), transform 0.2s var(--ease), border-color 0.2s var(--ease);
    box-shadow: none;
    z-index: 2;
}
.remove-btn:hover { background: rgba(239,68,68,0.85); border-color: transparent; transform: scale(1.08); }

/* ============================================================
   ACTIONS
   ============================================================ */
.actions {
    display: flex; flex-wrap: wrap; gap: 10px;
    margin-top: 26px; padding-top: 26px;
    border-top: 1px solid var(--line);
    justify-content: flex-start;
}
.actions button {
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
    width: auto;
    border: 1px solid var(--line-2);
    background: var(--surface);
    color: var(--text);
    cursor: pointer;
    transition: background 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease), opacity 0.2s;
}
.actions button:hover:not(:disabled) { background: var(--surface-3); transform: translateY(-2px); }
.actions button:disabled { opacity: 0.5; cursor: not-allowed; color: var(--text-2) !important; }

.actions button[onclick*="showCustomItemModal"] { background: var(--surface-2); border-color: var(--line-2); color: var(--text); }
#generateBtn, #saveListBtn {
    background: var(--btn-primary-bg) !important;
    border: none !important;
    color: #fff !important;
    box-shadow: 0 10px 26px -12px rgba(249, 115, 22, 0.4);
}
#generateBtn:hover:not(:disabled), #saveListBtn:hover:not(:disabled) { box-shadow: 0 16px 36px -14px rgba(249, 115, 22, 0.5); }
#generateHtmlBtn {
    background: #fff7ed !important;
    border: 1px solid #fdba74 !important;
    color: #9a3412 !important;
}
#generateHtmlBtn:hover:not(:disabled) { box-shadow: 0 8px 24px -8px rgba(234, 88, 12, 0.3); }
[data-theme="dark"] #generateHtmlBtn {
    background: var(--gradient-pro-soft) !important;
    border-color: rgba(227,192,105,0.4) !important;
    color: var(--gold-1) !important;
}
#shareDiscordBtn {
    background: #5865f2 !important;
    border: 1px solid #4752c4 !important;
    color: #fff !important;
}
#shareDiscordBtn:hover:not(:disabled) { filter: brightness(1.08); }
#shareDiscordBtn:disabled { opacity: 0.45; }

.store-settings-card {
    margin: 0 0 12px;
    padding: 0;
    border: 1px solid var(--line-2);
    border-radius: var(--radius-lg);
    background: var(--surface-2, var(--surface));
    overflow: hidden;
}
.store-settings-title {
    margin: 0 0 4px;
    font-size: 1.05rem;
}
.store-settings-sub {
    margin: 12px 0 14px;
    color: var(--muted);
    font-size: 0.9rem;
}
.store-settings-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: 1fr 1fr;
}
@media (max-width: 720px) {
    .store-settings-grid { grid-template-columns: 1fr; }
}
.store-settings-grid label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--muted);
}
.store-settings-grid input {
    padding: 10px 12px;
    border: 1px solid var(--line-2);
    border-radius: 10px;
    background: var(--surface);
    color: var(--text);
}
.store-slug-row {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1px solid var(--line-2);
    border-radius: 10px;
    overflow: hidden;
    background: var(--surface);
}
.store-slug-prefix {
    flex: 0 0 auto;
    padding: 10px 8px 10px 12px;
    font-size: 0.8rem;
    color: var(--muted);
    white-space: nowrap;
    border-right: 1px solid var(--line-2);
}
.store-slug-row input {
    border: none !important;
    border-radius: 0 !important;
    flex: 1;
    min-width: 0;
}
.store-settings-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-top: 14px;
}
.store-settings-msg { font-size: 0.85rem; }
.store-settings-msg.ok { color: #15803d; }
.store-settings-msg.err { color: #b91c1c; }
.store-settings-preview {
    margin: 10px 0 0;
    font-size: 0.85rem;
    color: var(--muted);
    word-break: break-all;
}

/* ============================================================
   MODALS
   ============================================================ */
.modal {
    display: none;
    position: fixed; inset: 0; z-index: 1000;
    background: rgba(0,0,0,0.72);
    backdrop-filter: blur(10px);
    overflow-y: auto;
    padding: 24px;
    animation: overlayIn 0.3s var(--ease);
}
.modal[style*="flex"] { display: flex !important; align-items: center; justify-content: center; }
.modal-content {
    background: var(--surface);
    border: 1px solid var(--line-2);
    border-radius: var(--radius-xl);
    color: var(--text);
    box-shadow: var(--shadow-pop);
    width: 100%;
    min-width: 0;
    max-width: 520px;
    margin: auto;
    padding: 30px;
    position: relative;
    animation: modalIn 0.45s var(--ease) both;
}
[data-theme="dark"] .modal-content {
    background: linear-gradient(180deg, #161618 0%, #101012 100%);
}
.modal-content h2 { font-family: var(--font); font-weight: 700; letter-spacing: -0.02em; color: var(--heading); }
.modal-content label { color: var(--text-2); font-weight: 600; }
.modal-content input,
.modal-content select,
.modal-content textarea {
    background: var(--input-bg) !important;
    border: 1px solid var(--input-border) !important;
    color: var(--text) !important;
    border-radius: var(--radius-sm) !important;
}
.modal-content input:focus,
.modal-content select:focus,
.modal-content textarea:focus {
    outline: none;
    border-color: var(--orange) !important;
    box-shadow: 0 0 0 3px var(--orange-soft);
}
.modal-content small { color: var(--text-3) !important; }

.close {
    position: absolute; top: 14px; right: 14px;
    width: 36px; height: 36px;
    display: inline-flex; align-items: center; justify-content: center;
    float: none;
    color: var(--text-2); font-size: 22px; line-height: 1; font-weight: 400;
    cursor: pointer; background: var(--surface-2); border: 1px solid var(--line);
    border-radius: 10px;
    transition: color 0.2s, background 0.2s var(--ease), border-color 0.2s;
    z-index: 3;
    padding: 0;
}
.close:hover { color: var(--heading); background: var(--surface-3); border-color: var(--line-2); }
[data-theme="dark"] .close:hover { color: #fff; background: rgba(255,255,255,0.1); }

/* ============================================================
   PRICING MODAL — conversion-optimized
   ============================================================ */
.pricing-modal { max-width: 880px !important; padding: 38px 36px 30px !important; overflow-x: hidden; }
.pricing-head { text-align: center; margin-bottom: 22px; }
.pricing-eyebrow {
    display: inline-block;
    font-size: 11px; font-weight: 800; letter-spacing: 0.22em; text-transform: uppercase;
    color: #1a1206;
    background: var(--gradient-pro);
    padding: 6px 14px; border-radius: 999px;
    margin-bottom: 16px;
    box-shadow: var(--gold-glow);
}
.pricing-title, .pricing-modal h2 {
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 6vw, 2.3rem) !important;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: var(--white);
    margin: 0 0 8px;
    overflow-wrap: break-word;
}
.pricing-subtitle { color: var(--text-2); font-size: 15px; margin: 0 auto; max-width: 440px; }

/* Billing toggle */
.billing-toggle {
    display: flex;
    width: fit-content;
    max-width: 100%;
    margin: 22px auto 26px;
    padding: 4px;
    background: rgba(0,0,0,0.45);
    border: 1px solid var(--line);
    border-radius: 999px;
}
.billing-opt {
    display: inline-flex; align-items: center; gap: 8px;
    border: none; background: transparent; cursor: pointer;
    color: var(--text-2);
    font-size: 13px; font-weight: 700; letter-spacing: 0.02em;
    padding: 10px 20px; border-radius: 999px;
    transition: color 0.25s var(--ease), background 0.25s var(--ease);
}
.billing-opt.active { background: var(--white); color: #000; }
.save-pill {
    font-size: 10px; font-weight: 800; letter-spacing: 0.04em;
    padding: 3px 8px; border-radius: 999px;
    background: var(--gradient-pro); color: #1a1206;
}
.billing-opt.active .save-pill { background: #1a1206; color: var(--gold-1); }

.currency-toggle {
    display: inline-flex;
    flex-wrap: nowrap;
    width: fit-content;
    max-width: 100%;
    margin: -10px auto 22px;
    padding: 3px;
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: 999px;
    gap: 2px;
    overflow: hidden;
}
.currency-toggle--landing { margin: 0 auto 28px; }
.currency-opt {
    border: none; background: transparent; cursor: pointer;
    color: var(--text-2);
    font-size: 13px; font-weight: 800; letter-spacing: 0.06em;
    padding: 8px 14px; border-radius: 999px;
    transition: color 0.2s var(--ease), background 0.2s var(--ease);
    white-space: nowrap;
    flex: 0 0 auto;
    min-height: 40px;
}
.currency-opt.active {
    background: var(--heading);
    color: var(--surface);
}
[data-theme="dark"] .currency-opt.active {
    background: var(--white);
    color: #111;
}

.pricing-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 0 0 22px; align-items: stretch; width: 100%; }

.pricing-card {
    position: relative;
    min-width: 0;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    text-align: left;
    color: var(--text);
    display: flex; flex-direction: column;
    transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.pricing-card.featured, .pricing-card.plan-pro {
    border-color: rgba(227,192,105,0.45);
    background: var(--gradient-pro-soft);
    box-shadow: 0 10px 28px -18px rgba(234, 88, 12, 0.28);
}
@media (prefers-reduced-motion: no-preference) {
    .pricing-card.featured, .pricing-card.plan-pro {
        animation: none;
    }
}
.pricing-card h3 { font-family: var(--font); font-size: 1.15rem; font-weight: 700; margin-bottom: 4px; color: var(--heading); }
.plan-tagline { font-size: 13px; color: var(--text-3); margin-bottom: 16px; }

.pricing-card .price { display: flex; align-items: baseline; gap: 8px; margin: 6px 0 4px; }
.pricing-card .price-num, .pricing-card .price > span:first-child {
    font-family: var(--font);
    font-size: 3rem; font-weight: 700; line-height: 1;
    color: var(--heading);
    -webkit-text-fill-color: var(--heading);
}
.plan-pro .price-num, .plan-pro .price > span:first-child {
    background: var(--gradient-pro);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.pricing-card .price-unit, .pricing-card .price > span:last-child { font-size: 14px; font-weight: 600; color: var(--text-2); -webkit-text-fill-color: var(--text-2); }
.price-sub, .pricing-promo {
    font-size: 12.5px !important; color: var(--gold-2) !important; font-weight: 600;
    margin: 2px 0 14px !important; min-height: 18px;
}
.plan-free .price-sub { color: var(--text-3) !important; }

.feat-list, .pricing-card ul { list-style: none; padding: 0; margin: 6px 0 22px; flex: 1; }
.feat-list li, .pricing-card li {
    display: flex; align-items: flex-start; gap: 10px;
    padding: 7px 0;
    font-size: 13.5px; color: var(--text);
    border-bottom: 1px solid rgba(255,255,255,0.04);
}
.feat-list li:last-child, .pricing-card li:last-child { border-bottom: none; }
.feat-list li.muted { color: var(--text-3); }
.feat-ic { flex-shrink: 0; width: 16px; }

.plan-cta {
    width: 100%;
    padding: 15px 20px;
    border-radius: 999px;
    font-size: 14px; font-weight: 600; letter-spacing: 0; text-transform: none;
    cursor: pointer; border: none;
    position: relative; overflow: hidden;
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
}
.cta-ghost { background: var(--surface-2); color: var(--text-2); border: 1px solid var(--line-2); cursor: default; }
.cta-pro { background: var(--gradient-pro); color: #fff; box-shadow: var(--gold-glow); font-weight: 600; }
.cta-pro:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -12px rgba(234, 88, 12, 0.45); }
.cta-ghost-strong { background: var(--heading); color: #fff; border: none; font-weight: 600; }

.ribbon {
    position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
    background: var(--gradient-pro); color: #1a1206;
    font-size: 10px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
    padding: 6px 16px; border-radius: 999px;
    box-shadow: var(--gold-glow); white-space: nowrap;
}
.badge, .pricing-card .badge {
    display: inline-block;
    background: var(--gradient-pro); color: #1a1206;
    font-size: 10px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
    padding: 5px 13px; border-radius: 999px; margin-bottom: 12px;
}
.badge-trial { background: var(--surface-3) !important; color: var(--text) !important; border: 1px solid var(--line-2); }

.trust-row {
    display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap;
    margin-top: 14px;
    font-size: 11.5px; color: var(--text-3);
}
.pricing-trust {
    display: flex; align-items: center; justify-content: center; gap: 18px; flex-wrap: wrap;
    margin-top: 6px; padding-top: 18px;
    border-top: 1px solid var(--line);
    font-size: 12px; color: var(--text-3);
}
.pricing-trust span { display: inline-flex; align-items: center; gap: 6px; }
.pricing-social {
    text-align: center; margin-top: 16px;
    font-size: 13px; color: var(--text-2);
}
.pricing-social .stars { color: var(--gold-2); letter-spacing: 2px; }
.invite-code-box {
    margin: 16px 0 4px;
    padding: 14px 16px;
    border: 1px dashed var(--line);
    border-radius: 12px;
    background: var(--surface-2);
}
.invite-label {
    margin: 0 0 10px;
    font-size: 13px;
    color: var(--text-2);
    font-weight: 600;
}
.invite-row {
    display: flex;
    gap: 10px;
    align-items: stretch;
}
.invite-input {
    flex: 1;
    min-width: 0;
    padding: 11px 14px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--text);
    font-family: inherit;
    font-size: 0.95rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.invite-input:focus {
    outline: none;
    border-color: var(--gold-2, #e8a317);
}
.invite-btn { flex-shrink: 0; white-space: nowrap; }
.invite-msg { margin: 10px 0 0; font-size: 12.5px; color: var(--text-2); }
.invite-msg.ok { color: #1f8a4c; }
.invite-msg.err { color: #c0392b; }
.pricing-free-note { text-align: center; font-size: 12.5px; color: var(--text-3); margin-top: 12px; }

/* ============================================================
   COOKIE CONSENT BANNER
   ============================================================ */
.cookie-banner {
    display: none;
    position: fixed; left: 0; right: 0; bottom: 16px; margin: 0 auto;
    z-index: 1100;
    width: min(700px, calc(100% - 24px));
    align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
    padding: 16px 20px;
    background: rgba(16, 16, 18, 0.97);
    border: 1px solid var(--line-2);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-pop);
    backdrop-filter: blur(16px);
}
.cookie-banner.show { display: flex; animation: revealUp 0.5s var(--ease) both; }
.cookie-text { flex: 1 1 300px; font-size: 13px; color: var(--text-2); line-height: 1.5; }
.cookie-text strong { display: block; color: var(--text); font-size: 14px; margin-bottom: 3px; }
.cookie-text a { color: var(--text); text-decoration: underline; text-underline-offset: 2px; }
.cookie-actions { display: flex; gap: 8px; flex-shrink: 0; }

@media (max-width: 560px) {
    .cookie-banner { bottom: 12px; padding: 14px 16px; }
    .cookie-actions { width: 100%; }
    .cookie-actions button { flex: 1; }
}

/* ============================================================
   PREVIEW
   ============================================================ */
.preview { text-align: center; display: none; margin-top: 24px; }
.preview.active { display: block; animation: fadeIn 0.5s var(--ease); }
.preview img, .preview-generated-img {
    max-width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-pop);
    margin-bottom: 12px;
    border: 1px solid var(--line);
    display: block;
}
.preview-image-link,
.preview a.preview-image-link {
    display: inline-block;
    max-width: min(100%, 720px);
    cursor: zoom-in;
    text-decoration: none;
    background: transparent !important;
    color: inherit !important;
    padding: 0 !important;
    margin: 0 auto 8px !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    font-weight: inherit !important;
    text-transform: none !important;
}
.preview-image-link:hover,
.preview a.preview-image-link:hover {
    transform: none !important;
    box-shadow: none !important;
}
.preview-image-link:active { opacity: 0.92; }
.preview-mobile-hint {
    display: none;
    margin: 0 0 14px;
    font-size: 13px;
    color: var(--text-2);
}
@media (max-width: 768px) {
    /* Prevent iOS Safari auto-zoom on focus/tap */
    input,
    select,
    textarea,
    button,
    .currency-opt,
    .billing-opt,
    .lang-btn,
    .list-tab,
    .search-section > button {
        font-size: 16px !important;
    }
    html {
        -webkit-text-size-adjust: 100%;
        text-size-adjust: 100%;
    }
    .preview-mobile-hint { display: block; }
    .preview-image-link,
    .preview a.preview-image-link { width: 100%; max-width: 100%; }
    .preview-generated-img { width: 100%; margin-bottom: 8px; }
}
.preview a.preview-btn,
.preview .preview-btn {
    display: inline-block; padding: 14px 28px;
    background: var(--btn-primary-bg); color: #fff;
    text-decoration: none; border: none; border-radius: 999px;
    font-weight: 600; text-transform: none; font-size: 14px; letter-spacing: 0;
    margin-top: 12px; cursor: pointer;
    transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.preview a.preview-btn:hover, .preview .preview-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 34px -12px rgba(234, 88, 12, 0.45); }
.preview .preview-btn-secondary {
    background: var(--surface-2); color: var(--text);
    border: 1px solid var(--line-2);
}

.list-status { color: var(--text-3) !important; font-size: 13px; }

/* ============================================================
   TOAST
   ============================================================ */
#toastContainer {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
    max-width: min(360px, calc(100vw - 24px));
}
.toast {
    padding: 14px 20px; border-radius: var(--radius-md);
    font-size: 14px; font-weight: 500;
    background: rgba(22,22,26,0.96); border: 1px solid var(--line-2); color: var(--text);
    box-shadow: var(--shadow-pop); backdrop-filter: blur(12px);
    opacity: 0; transform: translateY(14px) scale(0.97);
    transition: all 0.35s var(--ease); max-width: 360px; pointer-events: auto;
}
.toast.show { opacity: 1; transform: translateY(0) scale(1); }
.toast-error { border-color: rgba(239,68,68,0.45); color: #fca5a5; }
.toast-success { border-color: rgba(227,192,105,0.5); color: var(--gold-1); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 860px) {
    .pricing-modal { max-width: 460px !important; padding: 30px 22px 24px !important; }
    .pricing-cards { grid-template-columns: 1fr; }
    .pricing-card.plan-free { order: 2; }
    .pricing-card.plan-pro { order: 1; }
}

@media (max-width: 1100px) {
    .items-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
    .container { padding: 0 14px 48px; }
    #appContent { padding: 18px 0 28px; }
    .app-header { padding: 18px 0 24px; }
    .login-prompt, .login-hero { padding: 64px 20px 60px; margin: 12px 0 28px; }
    .hero-cta .btn-lg { flex: 1 1 100%; }
    .search-section { flex-direction: column; }
    .search-section > button { width: 100%; }
    .list-type-tabs {
        max-width: 100%;
        width: 100%;
        flex-direction: column;
        flex-wrap: nowrap;
        overflow: visible;
        border-radius: 14px;
        gap: 4px;
        padding: 4px;
    }
    .list-type-tabs .list-tab {
        flex: none;
        width: 100%;
        white-space: normal;
        font-size: 13px;
        padding: 12px 14px;
        border-radius: 10px;
        text-align: center;
    }
    .items-list { grid-template-columns: 1fr; gap: 14px; }
    .selected-item-card {
        padding: 14px;
        transform: none !important;
    }
    .selected-item-card:hover { transform: none; }
    .item-card-top {
        display: grid;
        grid-template-columns: 96px 1fr;
        gap: 12px;
        align-items: start;
        margin-bottom: 12px;
    }
    .item-card-top img {
        width: 96px; height: 96px; margin-bottom: 0;
        border-radius: 12px; object-fit: cover;
    }
    .item-card-meta h3 {
        font-size: 14.5px; margin: 0 0 8px;
        padding-right: 36px;
        display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
    }
    .item-sku { font-size: 11px; padding: 4px 8px; }
    .item-note-input { min-height: 56px; font-size: 14px; }
    .size-add-row, .size-custom-controls {
        flex-direction: column;
        gap: 8px;
    }
    .btn-add-size, .btn-add-custom-size {
        width: 100%;
        justify-content: center;
        min-height: 44px;
        font-size: 13px !important;
    }
    .size-add-select, .custom-size-input {
        min-height: 44px;
        font-size: 14px;
    }
    .actions { gap: 8px; }
    .actions button { flex: 1 1 calc(50% - 4px); min-width: 0; min-height: 44px; }
    #generateBtn, #saveListBtn { flex-basis: 100%; }
    .plan-limit-banner {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    .plan-limit-banner a { margin-left: 0; width: 100%; text-align: center; }
    .limit-meter { width: 100%; flex: none; }
    .auth-bar { padding: 12px; margin: 16px 0 20px; overflow: hidden; }
    .auth-user {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        width: 100%;
        min-width: 0;
    }
    .auth-user > button { width: 100%; }
    .auth-email {
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        text-align: center;
    }
    /* Keep side padding 0, but never wipe the fixed-nav offset */
    body {
        padding-left: 0 !important;
        padding-right: 0 !important;
        padding-bottom: 0 !important;
        padding-top: calc(var(--site-nav-height, 80px) + env(safe-area-inset-top, 0px)) !important;
    }
    #toastContainer {
        left: 12px;
        right: 12px;
        bottom: max(16px, env(safe-area-inset-bottom));
        max-width: none;
    }
    .toast { max-width: none; width: 100%; }
}

@media (max-width: 420px) {
    .modal { padding: 14px; }
    .pricing-modal { padding: 26px 18px 20px !important; }
    .hero-feats { gap: 8px; }
    .hero-feat { font-size: 12px; padding: 8px 12px; }
}

@media (hover: none) and (pointer: coarse) {
    .result-item:active { transform: scale(0.99); }
    .selected-item-card:active { transform: scale(0.995); }
    button:active { transform: scale(0.98); }
}

/* ============================================================
   LANDING PAGE (logged-out)
   ============================================================ */
.landing { max-width: 1080px; margin: 0 auto; width: 100%; overflow-x: clip; }

/* Hero — open, centered, modern */
.hero {
    position: relative;
    text-align: center;
    padding: 70px 20px 40px;
    overflow: hidden;
    width: 100%;
}
.hero .hero-glow {
    top: -120px;
    width: min(760px, 120vw);
    height: min(760px, 120vw);
}
.hero-trust-mini {
    position: relative;
    margin-top: 16px;
    font-size: 12.5px;
    color: var(--text-3);
    letter-spacing: 0.01em;
    animation: revealUp 0.7s var(--ease) 0.34s both;
}

/* App preview — Mac window + real UI mock */
.hero-preview { position: relative; margin: 52px auto 0; max-width: 920px; }
.hero-preview-label {
    text-align: center; font-size: 12px; font-weight: 600; letter-spacing: 0.06em;
    text-transform: uppercase; color: var(--text-3); margin: 0 0 14px;
}
.hero-preview-caption {
    text-align: center;
    margin: 16px 0 0;
    font-size: 14px;
    color: var(--text-2);
    line-height: 1.45;
}

.mac-window {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(28, 25, 23, 0.14);
    box-shadow: 0 28px 70px -22px rgba(28, 25, 23, 0.32);
    transform-style: preserve-3d;
    transition: transform 0.25s ease-out;
}
.mac-window-stage {
    perspective: 1200px;
}
[data-theme="dark"] .mac-window {
    border-color: rgba(255,255,255,0.12);
    box-shadow: 0 36px 90px -24px rgba(0,0,0,0.85);
    background: #121214;
}
.mac-titlebar {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    background: #f4f4f5;
    border-bottom: 1px solid rgba(28, 25, 23, 0.08);
}
[data-theme="dark"] .mac-titlebar {
    background: #1c1c1f;
    border-bottom-color: rgba(255,255,255,0.08);
}
.mac-dots { display: flex; gap: 7px; }
.mac-dots span { width: 11px; height: 11px; border-radius: 50%; }
.mac-dots span:nth-child(1) { background: #ff5f57; }
.mac-dots span:nth-child(2) { background: #febc2e; }
.mac-dots span:nth-child(3) { background: #28c840; }
.mac-url {
    justify-self: center;
    text-align: center;
    font-size: 11px;
    font-family: ui-monospace, Menlo, monospace;
    color: #78716c;
    background: #fff;
    border: 1px solid rgba(28, 25, 23, 0.1);
    border-radius: 999px;
    padding: 5px 14px;
    max-width: 240px;
    width: 100%;
    margin: 0;
}
[data-theme="dark"] .mac-url {
    background: #0d0d0f;
    border-color: rgba(255,255,255,0.1);
    color: #a8a29e;
}
.mac-body {
    padding: 16px 16px 18px;
    background: #fafaf9;
}
[data-theme="dark"] .mac-body { background: #161618; }
.mac-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}
.mac-tab {
    font-size: 11px;
    font-weight: 600;
    padding: 7px 12px;
    border-radius: 999px;
    color: #78716c;
    background: #fff;
    border: 1px solid rgba(28, 25, 23, 0.1);
}
.mac-tab.is-active {
    background: var(--btn-primary-bg, #ea580c);
    color: #fff;
    border-color: transparent;
}
[data-theme="dark"] .mac-tab {
    background: #1c1c1f;
    border-color: rgba(255,255,255,0.1);
    color: #a8a29e;
}
.mac-search {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
}
.mac-search-input {
    flex: 1;
    font-size: 12px;
    color: #a8a29e;
    background: #fff;
    border: 1px solid rgba(28, 25, 23, 0.12);
    border-radius: 10px;
    padding: 10px 12px;
}
.mac-search-btn {
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    background: var(--btn-primary-bg, #ea580c);
    border-radius: 10px;
    padding: 10px 16px;
}
[data-theme="dark"] .mac-search-input {
    background: #1c1c1f;
    border-color: rgba(255,255,255,0.1);
}
.mac-section-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #78716c;
    margin: 0 0 10px;
}
.mac-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
.mac-card {
    background: #fff;
    border: 1px solid rgba(28, 25, 23, 0.1);
    border-radius: 12px;
    padding: 10px;
    text-align: left;
}
[data-theme="dark"] .mac-card {
    background: #1c1c1f;
    border-color: rgba(255,255,255,0.1);
}
.mac-card img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 9px;
    background: #f5f5f4;
    display: block;
    margin-bottom: 8px;
}
.mac-shoe {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 9px;
    background: #e8e8e8;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    overflow: hidden;
    border: 1px solid rgba(28, 25, 23, 0.06);
}
.mac-shoe img {
    width: 88%;
    height: auto;
    aspect-ratio: auto;
    margin: 0;
    background: transparent;
    border-radius: 0;
    animation: shoeBob 3.2s ease-in-out infinite;
    filter: none;
    opacity: 1;
    object-fit: contain;
}
.mac-card:nth-child(2) .mac-shoe img { animation-delay: 0.45s; }
.mac-card:nth-child(3) .mac-shoe img { animation-delay: 0.9s; }
@keyframes shoeBob {
    0%, 100% { transform: translateY(0) rotate(-2deg); }
    50% { transform: translateY(-5px) rotate(2deg); }
}
.mac-tab,
.mac-search-btn,
.mac-sizes button,
.mac-add {
    cursor: pointer;
    font: inherit;
    border: none;
}
.mac-tab {
    font-size: 11px;
    font-weight: 600;
    padding: 7px 12px;
    border-radius: 999px;
    color: #78716c;
    background: #fff;
    border: 1px solid rgba(28, 25, 23, 0.1);
}
.mac-sizes button {
    font-size: 9px;
    font-weight: 700;
    padding: 3px 7px;
    border-radius: 5px;
    background: #1c1917;
    color: #fff;
}
.mac-sizes button.on { background: #dc2626; }
.mac-sizes button:hover { filter: brightness(1.15); }
.mac-add {
    display: inline-block;
    margin-top: 8px;
    font-size: 10px;
    font-weight: 700;
    color: #fff;
    background: #1c1917;
    border-radius: 6px;
    padding: 5px 9px;
}
.mac-add:hover { background: #ea580c; }
.mac-search-btn {
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    background: var(--btn-primary-bg, #ea580c);
    border-radius: 10px;
    padding: 10px 16px;
}
.mac-search-btn.is-pulse { animation: softPulse 0.45s ease; }
.mac-cursor {
    display: inline-block;
    animation: blink 1s steps(1) infinite;
    color: #a8a29e;
}
@keyframes blink { 0%, 50% { opacity: 1; } 51%, 100% { opacity: 0; } }
.mac-card.is-flash {
    outline: 2px solid rgba(234, 88, 12, 0.45);
    outline-offset: 1px;
}
.mac-card h5 {
    margin: 0 0 4px;
    font-size: 12px;
    font-weight: 700;
    color: #1c1917;
    line-height: 1.25;
}
[data-theme="dark"] .mac-card h5 { color: #f4f4f5; }
.mac-sku {
    display: inline-block;
    font-size: 9px;
    font-weight: 600;
    color: #78716c;
    background: #f5f5f4;
    border-radius: 6px;
    padding: 2px 6px;
    margin-bottom: 6px;
}
[data-theme="dark"] .mac-sku { background: #292524; color: #a8a29e; }
.mac-notes {
    margin: 0 0 8px;
    font-size: 10px;
    color: #a8a29e;
    line-height: 1.35;
    min-height: 2.6em;
}
.mac-sizes { display: flex; flex-wrap: wrap; gap: 4px; }
.mac-sizes span,
.mac-sizes button {
    font-size: 9px;
    font-weight: 700;
    padding: 3px 7px;
    border-radius: 5px;
    background: #1c1917;
    color: #fff;
}
.mac-sizes span.on,
.mac-sizes button.on { background: #dc2626; }

.showcase-ui {
    background: #fafaf9;
    border: 1px solid rgba(28, 25, 23, 0.1);
    border-radius: 16px;
    padding: 14px;
    box-shadow: 0 20px 50px -28px rgba(28, 25, 23, 0.28);
}
[data-theme="dark"] .showcase-ui {
    background: #161618;
    border-color: rgba(255,255,255,0.1);
}
.showcase-ui-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #78716c;
    margin: 0 0 10px;
}
.showcase-ui-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

@media (max-width: 720px) {
    .mac-cards,
    .showcase-ui-cards { grid-template-columns: 1fr; }
    .mac-card:nth-child(n+3) { display: none; }
    .showcase-ui-cards .mac-card:nth-child(n+3) { display: none; }
}

.preview-window {
    text-align: left;
    border-radius: 16px;
    overflow: hidden;
}
.pw-shot {
    display: block;
    width: 100%;
    height: auto;
    vertical-align: top;
}

.pw-bar {
    display: flex; align-items: center; gap: 7px;
    padding: 13px 16px;
}
.pw-bar > span { width: 11px; height: 11px; border-radius: 50%; }
.pw-bar--light {
    background: #faf8f5;
    border-bottom: 1px solid rgba(28, 25, 23, 0.08);
}
.pw-bar--light > span { background: #d6d3d1; }
.pw-bar--light .pw-url {
    color: #78716c;
    background: #fff;
    border: 1px solid rgba(28, 25, 23, 0.1);
}
.pw-url {
    margin-left: 14px;
    font-size: 11px; font-family: 'Menlo', monospace;
    padding: 4px 12px; border-radius: 999px;
}
.pw-body { padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.pw-tabs { display: flex; gap: 6px; border-radius: 999px; padding: 4px; width: fit-content; }
.pw-tab { font-size: 11px; font-weight: 600; padding: 7px 14px; border-radius: 999px; }
.pw-row { display: flex; gap: 14px; align-items: center; padding: 12px; border-radius: var(--radius-md); }
.pw-name { font-size: 12px; font-weight: 600; line-height: 1.3; margin-bottom: 4px; }
.pw-meta { flex: 1; display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.pw-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.pw-chips span {
    font-size: 10px; font-weight: 600;
    padding: 4px 10px; border-radius: 999px;
}
.pw-cta {
    align-self: flex-end; margin-top: 2px;
    font-size: 12px; font-weight: 700; letter-spacing: 0;
    color: #fff; background: var(--btn-primary-bg);
    padding: 11px 18px; border-radius: 999px;
    box-shadow: 0 8px 24px -8px rgba(234, 88, 12, 0.5);
}

/* Stats bar */
.stats-bar {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
    margin: 56px 0 8px;
    padding: 26px;
    background: var(--gradient-surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
}
.stat { text-align: center; display: flex; flex-direction: column; gap: 5px; }
.stat-num { font-family: var(--font); font-size: 1.75rem; font-weight: 700; color: var(--heading); letter-spacing: -0.02em; }
.stat-label { font-size: 12.5px; color: var(--text-2); }

/* Generic section */
.section { padding: 76px 0 12px; text-align: center; scroll-margin-top: 84px; }
.section-eyebrow {
    display: inline-block;
    font-size: 11px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase;
    color: var(--text-2);
    padding: 6px 14px; border: 1px solid var(--line-2); border-radius: 999px;
    background: var(--surface-2); margin-bottom: 18px;
}
.section-title {
    font-family: var(--font);
    font-size: clamp(1.45rem, 3.2vw, 2.15rem);
    font-weight: 700; letter-spacing: -0.02em; line-height: 1.2;
    color: var(--heading); margin: 0 auto 14px; max-width: 680px;
}
.section-sub { color: var(--text-2); font-size: 16px; line-height: 1.6; max-width: 520px; margin: 0 auto 40px; }

/* Feature grid */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; text-align: left; }
.feature-card {
    background: var(--gradient-surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 26px 22px;
    transition: border-color 0.3s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.feature-card:hover { border-color: var(--line-2); transform: translateY(-4px); box-shadow: var(--shadow-pop); }
.fc-ic {
    width: 48px; height: 48px; display: flex; align-items: center; justify-content: center;
    font-size: 22px; border-radius: 12px; margin-bottom: 16px;
    background: var(--surface-3); border: 1px solid var(--line);
}
.feature-card h4 { font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: var(--text-2); line-height: 1.55; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; text-align: left; counter-reset: step; }
.step { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px 22px; }
.step-num {
    display: flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: 12px; margin-bottom: 16px;
    font-family: var(--font-display); font-weight: 800; font-size: 18px;
    color: #1a1206; background: var(--gradient-pro); box-shadow: var(--gold-glow);
}
.step h4 { font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.step p { font-size: 14px; color: var(--text-2); line-height: 1.55; }

/* Landing pricing teaser */
.landing-pricing { max-width: 720px; margin: 0 auto; text-align: left; }
.cta-ghost-strong {
    background: var(--white); color: #000; border: none;
}
.cta-ghost-strong:hover { transform: translateY(-2px); box-shadow: 0 14px 34px -12px rgba(255,255,255,0.4); }

/* Reviews / social proof */
.rating-badge {
    display: inline-flex; align-items: center; gap: 10px;
    margin: -22px auto 40px;
    padding: 10px 18px;
    background: var(--gradient-surface); border: 1px solid var(--line);
    border-radius: 999px;
}
.rating-badge .stars { color: var(--gold-2); letter-spacing: 2px; font-size: 14px; }
.rating-badge strong { font-family: var(--font); font-size: 18px; color: var(--heading); }
.rating-badge .rating-sub { font-size: 13px; color: var(--text-2); }

.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; text-align: left; }
.review-card {
    background: var(--gradient-surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 24px 22px;
    display: flex; flex-direction: column;
    transition: border-color 0.3s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.review-card:hover { border-color: var(--line-2); transform: translateY(-4px); box-shadow: var(--shadow-pop); }
.review-card .stars { color: var(--gold-2); letter-spacing: 2px; font-size: 13px; margin-bottom: 14px; }
.rc-quote { font-size: 14.5px; line-height: 1.55; color: var(--text); margin-bottom: 20px; flex: 1; }
.rc-author { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.rc-avatar {
    width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-display); font-weight: 800; font-size: 16px; color: #000;
    background: linear-gradient(150deg, #ffffff, #d4d4d8);
}
.rc-author strong { display: block; color: var(--text); font-size: 14px; }
.rc-author span { display: block; color: var(--text-3); font-size: 12.5px; }

.rev-intl-sub { margin-top: -12px; margin-bottom: 8px; }
.review-card { position: relative; }
.review-card--pro { border-color: rgba(227,192,105,0.35); background: var(--gradient-pro-soft); }
.rc-pro-badge {
    position: absolute; top: 16px; right: 16px;
    font-size: 10px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
    padding: 4px 8px; border-radius: 6px;
    background: var(--gradient-pro); color: #1a1206;
}

/* Pro benefits grid */
.pro-benefits-section { padding-top: 20px; }
.pro-benefits-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; text-align: left;
}
.pro-benefit-card {
    background: var(--gradient-surface); border: 1px solid var(--line);
    border-radius: var(--radius-lg); padding: 24px 20px;
    transition: border-color 0.3s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.pro-benefit-card:hover { border-color: var(--line-2); transform: translateY(-3px); box-shadow: var(--shadow-pop); }
.pb-ic {
    width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
    font-size: 20px; margin-bottom: 14px;
    background: var(--orange-soft); border: 1px solid rgba(234,88,12,0.15);
}
.pro-benefit-card h4 { font-size: 15px; font-weight: 700; color: var(--heading); margin: 0 0 8px; }
.pro-benefit-card p { font-size: 13.5px; color: var(--text-2); line-height: 1.55; margin: 0; }

/* Pro upgrade band */
.pro-upgrade-band {
    margin: 72px 0;
    padding: 48px 40px;
    border-radius: var(--radius-xl);
    border: 1px solid rgba(227,192,105,0.3);
    background: var(--gradient-pro-soft);
    position: relative; overflow: hidden;
}
.pro-upgrade-band::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(ellipse 60% 80% at 100% 0%, rgba(234,88,12,0.12), transparent 60%);
    pointer-events: none;
}
.pro-band-inner {
    position: relative; display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 36px; align-items: center;
}
.pro-band-eyebrow {
    display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase;
    color: var(--gold-2); margin-bottom: 10px;
}
.pro-band-copy h3 {
    font-family: var(--font); font-size: clamp(1.5rem, 3.5vw, 2rem); font-weight: 700;
    letter-spacing: -0.02em; color: var(--heading); margin-bottom: 12px;
}
.pro-band-copy > p { color: var(--text-2); font-size: 15px; line-height: 1.6; margin-bottom: 20px; max-width: 520px; }
.pro-band-list { list-style: none; padding: 0; margin: 0 0 24px; display: flex; flex-direction: column; gap: 8px; }
.pro-band-list li { font-size: 14px; color: var(--text); font-weight: 500; }
.pro-band-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.pro-band-note { font-size: 13px; color: var(--text-3); }
.pro-band-card {
    background: var(--surface); border: 1px solid var(--line-2);
    border-radius: var(--radius-lg); padding: 28px 24px; text-align: center;
    box-shadow: var(--shadow-pop);
}
.pro-band-price { display: flex; align-items: baseline; justify-content: center; gap: 6px; margin-bottom: 12px; flex-wrap: wrap; }
.pro-band-from { font-size: 13px; color: var(--text-3); font-weight: 600; }
.pro-band-num {
    font-family: var(--font); font-size: 3rem; font-weight: 800; line-height: 1;
    background: var(--gradient-pro); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.pro-band-unit { font-size: 15px; color: var(--text-2); font-weight: 600; }
.pro-band-card > p { font-size: 14px; color: var(--text-2); line-height: 1.55; margin-bottom: 16px; }
.pro-band-trust { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--text-3); }
.pro-band-trust .stars, .pro-band-trust > span:first-child { color: var(--gold-2); letter-spacing: 2px; }

.plan-roi {
    font-size: 12.5px; color: var(--gold-2); font-weight: 600;
    margin: -8px 0 16px; padding: 8px 12px;
    background: rgba(227,192,105,0.1); border-radius: 8px; border: 1px solid rgba(227,192,105,0.2);
}

.hero-cta { flex-wrap: wrap; justify-content: center; }
.cta-band-trust { position: relative; font-size: 13px; color: var(--text-3); margin-top: 16px; margin-bottom: 0; }

/* FAQ */
.faq { max-width: 680px; margin: 0 auto; text-align: left; display: flex; flex-direction: column; gap: 10px; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; transition: border-color 0.25s var(--ease); }
.faq-item[open] { border-color: var(--line-2); }
.faq-item summary {
    cursor: pointer; list-style: none;
    padding: 18px 20px; font-size: 15px; font-weight: 600; color: var(--text);
    display: flex; align-items: center; justify-content: space-between; gap: 14px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 22px; font-weight: 400; color: var(--text-2); transition: transform 0.25s var(--ease); line-height: 1; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding: 0 20px 18px; font-size: 14px; color: var(--text-2); line-height: 1.6; }

/* Final CTA band */
.cta-band {
    position: relative; overflow: hidden;
    text-align: center; margin: 80px 0 24px;
    padding: 66px 28px;
    background: radial-gradient(ellipse 70% 80% at 50% 0%, rgba(255,255,255,0.07), transparent 70%), var(--gradient-surface);
    border: 1px solid var(--line); border-radius: var(--radius-xl);
}
.cta-band .hero-glow { top: -200px; width: 600px; height: 600px; }
.cta-band h3 { position: relative; font-family: var(--font); font-size: clamp(1.55rem, 4vw, 2.35rem); font-weight: 700; letter-spacing: -0.02em; color: var(--heading); margin-bottom: 12px; }
.cta-band p { position: relative; color: var(--text-2); font-size: 16px; margin-bottom: 28px; }

/* Discord community band — tuż nad stopką */
.discord-band {
    margin: 36px 0 8px;
    padding: 28px 32px;
    border-radius: var(--radius-xl);
    border: 1px solid rgba(88, 101, 242, 0.28);
    background:
        radial-gradient(ellipse 80% 120% at 0% 50%, rgba(88, 101, 242, 0.14), transparent 55%),
        var(--surface-2);
}
.discord-band-inner {
    display: flex; align-items: center; justify-content: space-between;
    gap: 24px; flex-wrap: wrap;
}
.discord-copy { flex: 1 1 280px; min-width: 0; }
.discord-eyebrow { color: #5865F2; }
.discord-band h3 {
    font-family: var(--font);
    font-size: clamp(1.25rem, 2.8vw, 1.65rem);
    font-weight: 700; letter-spacing: -0.02em;
    color: var(--heading); margin: 6px 0 8px;
}
.discord-band p {
    margin: 0; max-width: 52ch;
    color: var(--text-2); font-size: 15px; line-height: 1.55;
}
.btn-discord {
    display: inline-flex; align-items: center; gap: 10px;
    flex-shrink: 0;
    padding: 14px 22px;
    border-radius: 14px;
    background: #5865F2; color: #fff;
    font-weight: 700; font-size: 14.5px;
    text-decoration: none;
    box-shadow: 0 10px 28px -12px rgba(88, 101, 242, 0.75);
    transition: transform 0.2s var(--ease), background 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.btn-discord:hover {
    background: #4752c4; color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 14px 32px -12px rgba(88, 101, 242, 0.85);
}
.discord-ic { display: block; flex-shrink: 0; }

@media (max-width: 720px) {
    .discord-band { padding: 24px 20px; }
    .btn-discord { width: 100%; justify-content: center; }
    .brand-logo { width: 46px; height: 46px; }
    .brand-wordmark { font-size: 1.35rem; }
}

/* Footer */
.landing-footer { margin-top: 40px; padding-top: 48px; border-top: 1px solid var(--line); }

/* Output showcase — add flow + Pro list graphics */
.output-showcase { padding-bottom: 12px; }
.output-flow {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 28px auto 22px;
    max-width: 980px;
    align-items: stretch;
}
.output-shot {
    margin: 0;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
}
.output-shot img {
    display: block;
    width: 100%;
    height: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    object-position: top center;
    background: var(--surface-2);
    flex: 1 1 auto;
}
.output-shot figcaption,
.output-list-card figcaption {
    margin-top: auto;
    padding: 12px 14px 14px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-2);
    text-align: center;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.35;
}
.output-lists {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    max-width: 980px;
    margin: 8px auto 0;
    align-items: stretch;
}
.output-list-card {
    margin: 0;
    position: relative;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 22px 50px -28px rgba(28, 25, 23, 0.28);
    display: flex;
    flex-direction: column;
    height: 100%;
}
[data-theme="dark"] .output-list-card { background: #161618; }
.output-list-card img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: top center;
    background: #fff;
    flex: 0 0 auto;
}
[data-theme="dark"] .output-list-card img { background: #161618; }
.output-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: #fff;
    background: var(--btn-primary-bg, #ea580c);
    padding: 6px 10px;
    border-radius: 999px;
}
.output-cta {
    text-align: center;
    margin-top: 28px;
}
.output-note {
    margin: 12px 0 0;
    font-size: 13px;
    color: var(--text-3);
}
@media (max-width: 768px) {
    .output-flow,
    .output-lists { grid-template-columns: 1fr; }
    .output-lists { max-width: 420px; }
}

.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1.2fr 1fr;
    gap: 32px;
    padding-bottom: 36px;
}
.footer-brand-col { max-width: 320px; }
.footer-brand { margin-bottom: 16px; }
.footer-tagline { font-size: 13.5px; color: var(--text-2); line-height: 1.6; margin-bottom: 14px; }
.footer-social {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 18px;
}
.footer-social-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--text-2);
    font-size: 12.5px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease), background 0.25s var(--ease);
}
.footer-social-link:hover {
    transform: translateY(-2px);
    color: var(--text);
    border-color: var(--line-2);
    background: var(--surface-2);
}
.footer-company { font-size: 12px; color: var(--text-3); line-height: 1.7; }
.footer-col h4 {
    font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--text-2); margin-bottom: 16px;
}
.footer-col > a {
    display: block; font-size: 14px; color: var(--text-2); text-decoration: none;
    padding: 6px 0; transition: color 0.2s var(--ease);
}
.footer-col > a:hover { color: var(--text); }
.footer-bottom {
    padding: 22px 0 12px; border-top: 1px solid var(--line);
    text-align: center; font-size: 12.5px; color: var(--text-3);
}

@media (max-width: 760px) {
    .footer-inner { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
    .footer-brand-col { grid-column: 1 / -1; max-width: none; }
}

/* ============================================================
   DASHBOARD (logged-in) — centered & clean
   ============================================================ */
.dashboard { max-width: 900px; margin: 0 auto; width: 100%; min-width: 0; }
#appContent {
    background: var(--gradient-surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    padding: 28px 24px 32px;
    margin-top: 8px;
    box-shadow: var(--shadow-card);
}
.dash-header { text-align: center; margin-bottom: 28px; }
.dash-title { font-family: var(--font); font-size: clamp(1.35rem, 3vw, 1.75rem); font-weight: 700; letter-spacing: -0.02em; color: var(--heading); margin-bottom: 8px; }
.dash-sub { color: var(--text-2); font-size: 15px; max-width: 520px; margin: 0 auto; line-height: 1.55; }
.dashboard .list-type-tabs { margin-left: auto; margin-right: auto; }
.dashboard #listStatus { text-align: center; }
.dashboard .selected-items h2 { text-align: center; }
.dashboard .actions { justify-content: center; }

/* ============================================================
   LANDING / DASHBOARD RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
    .feature-grid, .reviews-grid { grid-template-columns: repeat(2, 1fr); }
    .pro-benefits-grid { grid-template-columns: repeat(2, 1fr); }
    .pro-band-inner { grid-template-columns: 1fr; }
    .stats-bar { grid-template-columns: repeat(2, 1fr); gap: 22px 14px; }
}
@media (max-width: 680px) {
    .hero { padding: 48px 12px 28px; }
    .hero-preview { margin-top: 38px; }
    .preview-window { transform: none; }
    .section { padding: 56px 0 8px; }
    .feature-grid, .steps, .reviews-grid { grid-template-columns: 1fr; }
    .pro-benefits-grid { grid-template-columns: 1fr; }
    .pro-upgrade-band { padding: 32px 22px; margin: 48px 0; }
    .stats-bar { padding: 22px 16px; }
    .stat-num { font-size: 1.6rem; }
    .testimonial { padding: 30px 22px; }
    .cta-band { padding: 48px 20px; margin: 56px 0 16px; }
    .pw-row .pw-chips span { font-size: 9px; }
}

/* ============================================================
   FIXED SITE NAV (mobile + desktop)
   ============================================================ */
:root {
    --site-nav-height: 80px;
}
.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 900;
    width: 100%;
    max-width: 100%;
    overflow: visible;
    padding-top: env(safe-area-inset-top, 0px);
    background: var(--nav-bg);
    backdrop-filter: blur(18px) saturate(150%);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
    border-bottom: 1px solid transparent;
    transition: border-color 0.25s var(--ease), background 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.site-nav.scrolled {
    border-bottom-color: var(--line-2);
    box-shadow: 0 10px 28px -18px rgba(28, 25, 23, 0.35);
}
[data-theme="dark"] .site-nav.scrolled {
    box-shadow: 0 12px 32px -16px rgba(0, 0, 0, 0.65);
}
.nav-inner {
    position: relative;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    min-width: 0;
    box-sizing: border-box;
}
.nav-brand {
    display: flex; align-items: center; gap: 12px;
    text-decoration: none; flex-shrink: 0;
    transition: transform 0.25s var(--ease);
}
.nav-brand:hover { transform: translateY(-1px); }
.nav-brand--text { gap: 0; }
.brand-mark {
    width: 42px; height: 42px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(150deg, rgba(255,255,255,0.14), rgba(255,255,255,0.03));
    border: 1px solid var(--line-2);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.12), 0 8px 22px -10px rgba(0,0,0,0.85);
    position: relative; overflow: hidden; flex-shrink: 0;
}
.brand-mark::after {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.18), transparent 60%);
    pointer-events: none;
}
.brand-mark .main-logo { max-height: 26px; max-width: 30px; filter: brightness(0) invert(1); opacity: 0.97; }
.brand-mark--fallback::before { content: 'N'; font-family: var(--font-display); font-weight: 800; font-size: 19px; color: var(--white); }
.nav-brand {
    display: inline-flex; align-items: center; gap: 12px;
    text-decoration: none; flex-shrink: 0; min-width: 0;
}
.brand-logo {
    width: 56px; height: 56px;
    object-fit: contain; flex-shrink: 0;
    display: block;
}
.footer-brand .brand-logo { width: 48px; height: 48px; }
.brand-wordmark {
    display: block; line-height: 1;
    font-family: var(--font);
    font-size: 1.55rem; font-weight: 800; letter-spacing: -0.035em;
    color: var(--heading);
}
.brand-wordmark .brand-accent { color: var(--orange); }
.nav-discord {
    color: #5865F2 !important;
}
.nav-discord:hover { background: rgba(88, 101, 242, 0.12) !important; color: #5865F2 !important; }
.brand-sub {
    font-family: var(--font);
    font-size: 9.5px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--text-3); margin-top: 3px;
}
.nav-links {
    display: flex; align-items: center; gap: 6px;
    margin: 0 auto;
}
.nav-links > a {
    font-size: 13.5px; font-weight: 600; color: var(--text-2);
    text-decoration: none; padding: 8px 14px; border-radius: 999px;
    transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.nav-links > a:hover { color: var(--text); background: var(--surface-2); }
.nav-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; flex-shrink: 0; }
.btn-sm { padding: 9px 16px !important; min-height: 38px !important; font-size: 11.5px !important; }
.nav-login-mobile { display: none; }

/* Hamburger */
.nav-burger {
    display: none;
    flex-direction: column; justify-content: center; gap: 5px;
    width: 42px; height: 42px; padding: 0;
    background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 12px;
    cursor: pointer;
}
.nav-burger span { display: block; width: 18px; height: 2px; margin: 0 auto; background: var(--text); border-radius: 2px; transition: transform 0.3s var(--ease), opacity 0.3s var(--ease); }
.nav-open .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-burger span:nth-child(2) { opacity: 0; }
.nav-open .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* When logged in, hide marketing nav (only logo + lang + auth bar) */
body.authed .nav-links, body.authed .nav-login, body.authed .nav-burger { display: none !important; }

@media (max-width: 960px) {
    .nav-inner {
        padding: 10px 12px;
        gap: 8px;
        flex-wrap: nowrap;
    }
    .nav-brand {
        gap: 8px;
        min-width: 0;
        flex: 1 1 auto;
        overflow: hidden;
    }
    .brand-logo {
        width: 36px !important;
        height: 36px !important;
    }
    .brand-wordmark {
        font-size: 1.05rem !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .nav-actions {
        gap: 6px;
        margin-left: 0;
        flex-shrink: 0;
    }
    .theme-switch,
    .lang-switch {
        padding: 2px;
        flex-shrink: 0;
    }
    .theme-btn {
        padding: 6px 8px;
        font-size: 13px;
    }
    .lang-btn {
        padding: 6px 9px;
        font-size: 11px;
    }
    .nav-links {
        position: absolute;
        top: calc(100% + 1px);
        left: 0;
        right: 0;
        z-index: 600;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        margin: 0;
        padding: 12px;
        background: var(--surface);
        border-bottom: 1px solid var(--line);
        box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
        transform: translateY(-8px);
        opacity: 0;
        pointer-events: none;
        visibility: hidden;
        transition: opacity 0.22s var(--ease), transform 0.22s var(--ease), visibility 0.22s;
    }
    .nav-open .nav-links {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
        visibility: visible;
    }
    .nav-links > a {
        padding: 13px 14px;
        font-size: 15px;
        border-radius: 12px;
    }
    .nav-login-mobile {
        display: block;
        margin-top: 6px;
        width: 100%;
    }
    .nav-login { display: none !important; }
    .nav-burger {
        display: inline-flex !important;
        flex-shrink: 0;
        width: 40px;
        height: 40px;
    }
    .site-nav { position: fixed; overflow: visible; }
}

@media (max-width: 900px) {
    :root { --site-nav-height: 72px; }
    .brand-logo { width: 44px; height: 44px; }
}

@media (max-width: 420px) {
    .nav-inner { padding: 8px 10px; gap: 6px; }
    .brand-wordmark { font-size: 0.95rem !important; max-width: 42vw; }
    .theme-btn { padding: 5px 6px; }
    .lang-btn { padding: 5px 7px; font-size: 10px; }
    .nav-burger { width: 38px; height: 38px; }
}

@media (max-width: 360px) {
    /* On very small phones keep brand mark + burger + one switch */
    .theme-switch { display: none; }
    .brand-wordmark { max-width: 38vw; }
}

/* ============================================================
   LEGAL PAGES (regulamin / polityka prywatności)
   ============================================================ */
.legal-page { max-width: 820px; margin: 0 auto; padding: 8px 24px 90px; }
.legal-hero { padding: 28px 0 26px; margin-bottom: 28px; border-bottom: 1px solid var(--line); }
.legal-back {
    display: inline-flex; align-items: center; gap: 7px;
    font-size: 13px; color: var(--text-2); text-decoration: none;
    margin-bottom: 22px; transition: color 0.2s var(--ease);
}
.legal-back:hover { color: var(--text); }
.legal-page h1 {
    display: block; text-align: left; text-transform: none;
    font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 800; letter-spacing: -0.03em; color: var(--white); margin: 0 0 10px;
}
.legal-meta { color: var(--text-3); font-size: 13px; }
.legal-page h2 {
    font-family: var(--font-display); font-size: 1.3rem; font-weight: 700;
    letter-spacing: -0.02em; color: var(--white); margin: 36px 0 12px;
}
.legal-page h3 { font-size: 1.02rem; font-weight: 700; color: var(--text); margin: 22px 0 8px; }
.legal-page p, .legal-page li { color: var(--text-2); font-size: 15px; line-height: 1.75; }
.legal-page p { margin: 10px 0; }
.legal-page ul, .legal-page ol { padding-left: 22px; margin: 10px 0 14px; }
.legal-page li { margin-bottom: 7px; }
.legal-page a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.legal-company-box {
    background: var(--gradient-surface); border: 1px solid var(--line);
    border-radius: var(--radius-md); padding: 20px 22px; margin: 18px 0;
    font-size: 14px; line-height: 1.7; color: var(--text-2);
}
.legal-company-box strong { color: var(--text); }
.legal-toc {
    background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--radius-md); padding: 18px 22px; margin-bottom: 30px;
}
.legal-toc ol { margin: 0; padding-left: 20px; }
.legal-toc a { color: var(--text-2); text-decoration: none; }
.legal-toc a:hover { color: var(--text); }

/* ============================================================
   COMPARISON TABLE (Free vs Pro)
   ============================================================ */
.compare-table {
    max-width: 720px; margin: 0 auto; text-align: left;
    border: 1px solid var(--line); border-radius: var(--radius-lg);
    overflow: hidden; background: var(--surface);
}
.compare-row {
    display: grid;
    grid-template-columns: 1.7fr 1fr 1fr;
    align-items: center;
    border-bottom: 1px solid var(--line);
}
.compare-row:last-child { border-bottom: none; }
.ct-feature { padding: 16px 20px; font-size: 14px; font-weight: 600; color: var(--text); }
.ct-col { padding: 16px 14px; text-align: center; font-size: 15px; font-weight: 700; color: var(--text); }
.ct-col.ct-pro { background: var(--gradient-pro-soft); border-left: 1px solid rgba(234, 88, 12, 0.2); color: var(--gold-2); }
.compare-head { background: var(--surface-2); }
.compare-head .ct-col { font-family: var(--font); font-size: 14px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-2); }
.compare-head .ct-col.ct-pro { color: var(--gold-2); }
.ct-pro-tag { display: inline-block; }
.ct-col .yes { color: var(--orange); font-size: 17px; }
.ct-col .no { color: var(--text-3); font-size: 15px; }
.compare-cta .ct-col, .compare-cta .ct-feature { padding: 18px 12px; }
.compare-cta .plan-cta { width: 100%; }

@media (max-width: 560px) {
    .compare-row { grid-template-columns: 1.5fr 0.9fr 0.9fr; }
    .ct-feature { padding: 13px 12px; font-size: 12.5px; }
    .ct-col { padding: 13px 6px; font-size: 13px; }
    .compare-head .ct-col { font-size: 12px; }
    .compare-cta .plan-cta { padding: 11px 8px !important; font-size: 11px !important; }
}

/* ============================================================
   SHOE STRIP + PROBLEM + SHOWCASE
   ============================================================ */
.shoe-strip { display: none; }

.mock-thumb {
    width: 60px; height: 60px; border-radius: 10px; flex-shrink: 0;
    display: block; object-fit: cover;
    border: 1px solid var(--line);
    background: var(--surface-2);
}

.sl-thumb {
    width: 52px; height: 52px; border-radius: 10px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; border: 1px solid var(--line);
    background: linear-gradient(145deg, var(--surface-2), var(--surface-3));
}

.problem-section { padding-top: 12px; }
.problem-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
    max-width: 900px; margin: 28px auto 0; text-align: left;
}
.problem-card {
    background: var(--gradient-surface); border: 1px solid var(--line);
    border-radius: var(--radius-lg); padding: 22px 20px;
    transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.problem-card:hover { border-color: var(--line-2); transform: translateY(-2px); }
.problem-ic {
    width: 40px; height: 40px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.05); font-size: 18px; margin-bottom: 14px;
}
.problem-card h4 { font-size: 15px; font-weight: 600; color: var(--heading); margin: 0 0 8px; }
.problem-card p { font-size: 13.5px; color: var(--text-2); line-height: 1.55; margin: 0; }

.showcase-section { overflow: hidden; }
.showcase-grid {
    display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 28px;
    max-width: 980px; margin: 32px auto 0; align-items: center;
}
.showcase-visual-wrap { min-width: 0; }
.showcase-shot-frame {
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--surface);
    box-shadow: var(--shadow-card);
}
.showcase-shot-frame--graphic {
    border: none;
    background: transparent;
    box-shadow: none;
    overflow: visible;
}
.showcase-shot-frame--graphic .showcase-shot {
    border-radius: 18px;
    box-shadow: 0 28px 70px -28px rgba(28, 25, 23, 0.32);
}
[data-theme="dark"] .showcase-shot-frame {
    border-color: rgba(255,255,255,0.12);
    box-shadow: 0 28px 70px -28px rgba(0, 0, 0, 0.7);
}
[data-theme="dark"] .showcase-shot-frame--graphic {
    border: none;
    box-shadow: none;
}
[data-theme="dark"] .showcase-shot-frame--graphic .showcase-shot {
    box-shadow: 0 32px 80px -24px rgba(0, 0, 0, 0.8);
}
.showcase-shot {
    display: block;
    width: 100%;
    height: auto;
    vertical-align: top;
}
.showcase-copy { text-align: left; }
.showcase-copy h4 { font-size: 1.1rem; font-weight: 600; color: var(--heading); margin: 0 0 12px; }
.showcase-copy p { font-size: 14px; color: var(--text-2); line-height: 1.6; margin: 0 0 14px; }
.showcase-points {
    list-style: none;
    padding: 0;
    margin: 0 0 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.showcase-points li {
    font-size: 13.5px;
    color: var(--text);
    line-height: 1.4;
}
.export-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.export-pill {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 14px; border-radius: 999px; font-size: 12px; font-weight: 600;
    background: var(--surface-2); border: 1px solid var(--line); color: var(--text);
}
.export-pill.pro-only { border-color: rgba(227,192,105,0.35); color: var(--gold-2); background: var(--gradient-pro-soft); }
.export-pill .pill-badge {
    font-size: 9px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
    padding: 2px 6px; border-radius: 4px; background: rgba(227,192,105,0.2); color: var(--gold-1);
}

.pw-row { align-items: center; }
.pw-row .pw-meta { flex: 1; min-width: 0; }

@media (max-width: 768px) {
    .problem-grid { grid-template-columns: 1fr; }
    .showcase-grid { grid-template-columns: 1fr; }
    .showcase-copy { text-align: center; }
    .showcase-points { align-items: center; }
    .export-pills { justify-content: center; }
    .shoe-strip img { width: 60px; height: 60px; }
}

/* Feedback modal */
.feedback-modal { max-width: 520px; text-align: left; }
.feedback-modal h2 { margin-bottom: 8px; }
.feedback-sub { color: var(--text-2); font-size: 14px; margin: 0 0 20px; }
.feedback-modal label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--text); }
.feedback-modal input,
.feedback-modal textarea {
    width: 100%; padding: 12px 14px; border-radius: var(--radius-sm);
    border: 1px solid var(--input-border); background: var(--input-bg);
    color: var(--text); font-family: var(--font); font-size: 14px;
    margin-bottom: 16px; resize: vertical;
}
.feedback-modal input:focus,
.feedback-modal textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px var(--orange-soft); }
.feedback-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 4px; }
.feedback-btn { border-color: var(--line-2) !important; color: var(--text-2) !important; }
.feedback-btn:hover { color: var(--orange) !important; border-color: var(--orange) !important; }

/* Mobile overflow safety */
@media (max-width: 960px) {
    html, body {
        overflow-x: clip !important;
        max-width: 100vw;
    }
    .container,
    .landing,
    .hero,
    .section,
    .cta-band,
    .discord-band,
    .footer-inner,
    .pricing-cards,
    .hero-preview,
    .preview-window {
        max-width: 100%;
        min-width: 0;
    }
    img, svg, video, canvas, iframe {
        max-width: 100%;
        height: auto;
    }
    .hero { padding-left: 8px; padding-right: 8px; }
    .hero-cta {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    .hero-cta .btn-lg {
        width: 100%;
        flex: none;
    }
    .currency-toggle,
    .billing-toggle {
        display: inline-flex;
        flex-wrap: nowrap;
        width: auto;
        max-width: 100%;
        justify-content: center;
        border-radius: 999px;
        overflow: hidden;
    }
    .currency-opt,
    .billing-opt {
        flex: 1 1 auto;
        min-width: 0;
        font-size: 16px !important; /* iOS: avoid auto-zoom on tap */
        padding: 10px 14px;
        min-height: 44px;
    }
    .footer-inner {
        grid-template-columns: 1fr !important;
        gap: 24px;
    }
}
