/* =====================================================================
   CAMPUS BIZ — UI REFRESH
   Loaded after styles.css. Everything animated here uses transform /
   opacity / stroke-dashoffset only, so it stays on the GPU and doesn't
   drop frames on mid-range Android phones.
   ===================================================================== */

:root {
    --cb-forest: #1e4d3b;
    --cb-forest-2: #2d7a5f;
    --cb-deep: #0d2a1f;
    --cb-mint: #8fd3b0;
    --cb-mint-soft: #e4f1e9;
    --cb-gold: #f2b544;
    --cb-gold-deep: #c98a17;
    --cb-cream: #f5f0e8;
    --cb-ink: #15201b;
    --cb-ink-2: #3b4842;
    --cb-mute: #6b7670;
    --cb-faint: #9aa39e;
    --cb-line: rgba(21, 32, 27, .09);
    --cb-line-2: rgba(21, 32, 27, .14);
    --cb-surface: #ffffff;
    --cb-surface-2: #f4efe6;
    --cb-surface-3: #faf7f1;
    --cb-elev: 0 1px 2px rgba(16, 40, 30, .05), 0 8px 24px rgba(16, 40, 30, .07);
    --cb-elev-lg: 0 24px 60px rgba(13, 42, 31, .18), 0 4px 12px rgba(13, 42, 31, .06);
    --cb-danger: #c2412d;
    --cb-danger-bg: #fdece8;
    --cb-ok: #1f7a4f;
    --cb-ease: cubic-bezier(.22, 1, .36, 1);
    --cb-spring: cubic-bezier(.34, 1.56, .64, 1);
    --cb-verified: #1e4d3b;
}
html[data-theme="dark"] {
    --cb-ink: #f3f1ec;
    --cb-ink-2: #cfd5d1;
    --cb-mute: #9aa49f;
    --cb-faint: #6f7974;
    --cb-line: rgba(255, 255, 255, .08);
    --cb-line-2: rgba(255, 255, 255, .14);
    --cb-surface: #111312;
    --cb-surface-2: #191c1a;
    --cb-surface-3: #0b0c0c;
    --cb-mint-soft: rgba(143, 211, 176, .12);
    --cb-elev: 0 1px 2px rgba(0, 0, 0, .4), 0 10px 28px rgba(0, 0, 0, .45);
    --cb-elev-lg: 0 24px 60px rgba(0, 0, 0, .6);
    --cb-danger: #ff8a73;
    --cb-danger-bg: rgba(255, 112, 87, .12);
    --cb-verified: #4fb489;
}

body { padding-bottom: calc(112px + env(safe-area-inset-bottom, 0px)); }

/* ---------------------------------------------------------------------
   1. SPLASH
--------------------------------------------------------------------- */
.loading.cb-splash {
    position: fixed; inset: 0; z-index: 200000;
    display: flex; align-items: center; justify-content: center;
    background: radial-gradient(120% 75% at 50% 40%, #215f49 0%, #133d2e 40%, #0a2219 100%);
    overflow: hidden;
    transition: opacity .5s ease;
}
.cb-splash.is-leaving { opacity: 0; pointer-events: none; }
.cb-splash-glow {
    position: absolute; left: 50%; top: 46%;
    width: 560px; height: 560px; border-radius: 50%;
    background: radial-gradient(circle, rgba(143, 211, 176, .26) 0%, rgba(143, 211, 176, .08) 38%, rgba(143, 211, 176, 0) 64%);
    transform: translate(-50%, -50%) scale(.55); opacity: 0;
    animation: cbGlow 1.6s var(--cb-ease) .15s forwards;
}
.cb-splash-dots i {
    position: absolute; width: 3px; height: 3px; border-radius: 50%; background: #e9fff4; opacity: 0;
    animation: cbTwinkle 2.4s ease-in-out infinite;
}
.cb-splash-dots i:nth-child(1) { left: 18%; top: 22%; animation-delay: .4s; }
.cb-splash-dots i:nth-child(2) { left: 78%; top: 18%; animation-delay: .9s; width: 2px; height: 2px; }
.cb-splash-dots i:nth-child(3) { left: 84%; top: 62%; animation-delay: 1.3s; }
.cb-splash-dots i:nth-child(4) { left: 12%; top: 70%; animation-delay: .7s; width: 2px; height: 2px; }
.cb-splash-dots i:nth-child(5) { left: 30%; top: 84%; animation-delay: 1.6s; width: 2px; height: 2px; }
.cb-splash-dots i:nth-child(6) { left: 64%; top: 30%; animation-delay: 1.1s; width: 2px; height: 2px; }
.cb-splash-center {
    position: relative; width: min(80vw, 330px); text-align: center;
    transition: transform .55s var(--cb-ease), opacity .4s ease;
}
.cb-splash.is-leaving .cb-splash-center { transform: scale(1.08); opacity: 0; }
.cb-splash-arc { position: absolute; left: -6%; width: 112%; top: -66%; overflow: visible; pointer-events: none; }
.cb-arc-path {
    fill: none; stroke: url(#cbArcGrad); stroke-width: 3.2; stroke-linecap: round;
    stroke-dasharray: 1; stroke-dashoffset: 1;
    animation: cbArc .95s cubic-bezier(.45, 0, .2, 1) .35s forwards;
}
.cb-arc-head { opacity: 0; animation: cbHead 1.55s linear .35s forwards; }
.cb-arc-spark {
    transform-box: fill-box; transform-origin: center; opacity: 0; transform: scale(0) rotate(-60deg);
    animation: cbSpark .7s var(--cb-spring) 1.22s forwards, cbSparkle 1.8s ease-in-out 2s infinite;
}
.cb-splash-word {
    font-family: 'Pacifico', cursive; font-size: clamp(46px, 13.5vw, 60px); line-height: 1.2;
    color: #fff; letter-spacing: .5px; white-space: nowrap;
    background: linear-gradient(105deg, #ffffff 0%, #ffffff 42%, #c9f5df 50%, #ffffff 58%, #ffffff 100%);
    background-size: 260% 100%; background-position: 100% 0;
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
    opacity: 0; transform: translateY(12px);
    animation: cbWord .85s var(--cb-ease) .5s forwards, cbShine 1.1s ease-in-out 1.25s forwards;
}
.cb-splash-tag {
    margin-top: 6px; font: 500 13.5px/1.4 'Inter', sans-serif; letter-spacing: .02em; color: rgba(236, 255, 246, .72);
    opacity: 0; transform: translateY(6px);
    animation: cbFadeUp .6s var(--cb-ease) 1.2s forwards;
}
.cb-splash-foot {
    position: absolute; left: 0; right: 0; bottom: calc(34px + env(safe-area-inset-bottom, 0px));
    text-align: center; font: 600 10.5px/1 'Inter', sans-serif; letter-spacing: .24em; text-transform: uppercase;
    color: rgba(236, 255, 246, .38); opacity: 0;
    animation: cbFadeUp .6s ease 1.45s forwards;
}
@keyframes cbGlow { to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }
@keyframes cbTwinkle { 0%, 100% { opacity: 0; } 50% { opacity: .75; } }
@keyframes cbArc { to { stroke-dashoffset: 0; } }
@keyframes cbHead { 0% { opacity: 1; } 62% { opacity: 1; } 100% { opacity: 0; } }
@keyframes cbSpark { to { opacity: 1; transform: scale(1) rotate(0); } }
@keyframes cbSparkle { 0%, 100% { transform: scale(1) rotate(0); opacity: 1; } 50% { transform: scale(.7) rotate(20deg); opacity: .7; } }
@keyframes cbWord { to { opacity: 1; transform: none; } }
@keyframes cbShine { from { background-position: 100% 0; } to { background-position: 0 0; } }
@keyframes cbFadeUp { to { opacity: 1; transform: none; } }

/* ---------------------------------------------------------------------
   2. INTRO SLIDES
--------------------------------------------------------------------- */
.tutorial-overlay {
    --tt-bg: #f3eee4;
    --tt-blob1: rgba(143, 211, 176, .45);
    --tt-blob2: rgba(242, 181, 68, .22);
    position: fixed; inset: 0; z-index: 100000;
    display: flex; flex-direction: column;
    background: var(--tt-bg); color: var(--cb-ink);
    font-family: 'Inter', sans-serif;
    overflow: hidden; overscroll-behavior: none;
    -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent;
    transition: background-color .6s ease, opacity .35s ease;
}
.tutorial-overlay[data-slide="1"] { --tt-bg: #e8f0e9; --tt-blob1: rgba(45, 122, 95, .2); --tt-blob2: rgba(143, 211, 176, .4); }
.tutorial-overlay[data-slide="2"] { --tt-bg: #f6eddc; --tt-blob1: rgba(242, 181, 68, .32); --tt-blob2: rgba(143, 211, 176, .3); }
html[data-theme="dark"] .tutorial-overlay { --tt-bg: #0a0d0c; --tt-blob1: rgba(45, 122, 95, .26); --tt-blob2: rgba(242, 181, 68, .08); }
html[data-theme="dark"] .tutorial-overlay[data-slide="1"] { --tt-bg: #08100c; --tt-blob1: rgba(45, 122, 95, .3); --tt-blob2: rgba(143, 211, 176, .1); }
html[data-theme="dark"] .tutorial-overlay[data-slide="2"] { --tt-bg: #0f0d08; --tt-blob1: rgba(242, 181, 68, .14); --tt-blob2: rgba(45, 122, 95, .2); }
.tutorial-overlay.hidden { display: none !important; }
.tutorial-overlay.leaving { opacity: 0; pointer-events: none; }

.tt-bg { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.tt-blob { position: absolute; border-radius: 50%; transition: transform 1s var(--cb-ease), background-color .8s ease; }
.tt-blob.b1 { width: 120vw; height: 120vw; max-width: 720px; max-height: 720px; left: -30vw; top: -30vw; background: radial-gradient(circle, var(--tt-blob1), transparent 66%); }
.tt-blob.b2 { width: 110vw; height: 110vw; max-width: 640px; max-height: 640px; right: -40vw; top: 26vh; background: radial-gradient(circle, var(--tt-blob2), transparent 66%); }
.tutorial-overlay[data-slide="1"] .tt-blob.b1 { transform: translate3d(30vw, 8vh, 0); }
.tutorial-overlay[data-slide="2"] .tt-blob.b1 { transform: translate3d(48vw, 30vh, 0); }
.tutorial-overlay[data-slide="1"] .tt-blob.b2 { transform: translate3d(-24vw, -6vh, 0); }
.tutorial-overlay[data-slide="2"] .tt-blob.b2 { transform: translate3d(-50vw, -20vh, 0); }

.tutorial-overlay .ob-top {
    position: relative; z-index: 2; width: 100%; max-width: 560px; margin: 0 auto; box-sizing: border-box;
    display: flex; align-items: center; justify-content: space-between;
    padding: max(14px, env(safe-area-inset-top, 0px)) 20px 0;
}
.tutorial-overlay .ob-brand { display: flex; align-items: center; gap: 10px; font: 700 16px 'Poppins', sans-serif; letter-spacing: -.01em; color: var(--cb-ink); }
.tutorial-overlay .ob-brand img { border-radius: 9px; display: block; box-shadow: 0 2px 8px rgba(13, 42, 31, .18); }
.tutorial-overlay .ob-skip {
    border: 0; border-radius: 999px; padding: 9px 16px; cursor: pointer;
    background: rgba(21, 32, 27, .06); color: var(--cb-ink-2); font: 600 13.5px 'Inter', sans-serif;
    transition: opacity .3s, background .2s;
}
html[data-theme="dark"] .tutorial-overlay .ob-skip { background: rgba(255, 255, 255, .08); }
.tutorial-overlay.is-last .ob-skip { opacity: 0; pointer-events: none; }

.tutorial-overlay .ob-viewport {
    position: relative; z-index: 1; flex: 1; min-height: 0; width: 100%; max-width: none;
    display: flex; overflow-x: auto; overflow-y: hidden;
    scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch; touch-action: pan-x; cursor: default; outline: none;
}
.tutorial-overlay .ob-viewport::-webkit-scrollbar { display: none; }
.tutorial-overlay .ob-slide {
    flex: 0 0 100%; min-width: 0; height: 100%; box-sizing: border-box;
    scroll-snap-align: center; scroll-snap-stop: always;
    display: flex; flex-direction: column; align-items: center;
}
.tutorial-overlay .ob-art { flex: 1 1 auto; min-height: 0; width: 100%; display: flex; align-items: center; justify-content: center; padding: 10px 20px 0; box-sizing: border-box; transform: none !important; }
.tutorial-overlay .ob-copy { flex: 0 0 auto; width: 100%; max-width: 440px; padding: 6px 28px 0; box-sizing: border-box; text-align: center; transform: none !important; opacity: 1 !important; }
.ob-kicker {
    display: inline-block; margin-bottom: 12px; padding: 6px 11px; border-radius: 999px;
    font: 700 10.5px/1 'Inter', sans-serif; letter-spacing: .14em; text-transform: uppercase;
    color: var(--cb-forest); background: rgba(30, 77, 59, .09);
}
html[data-theme="dark"] .ob-kicker { color: var(--cb-mint); background: rgba(143, 211, 176, .12); }
.tutorial-overlay .ob-copy h2 {
    margin: 0 0 10px; font: 700 clamp(1.55rem, 6.6vw, 2.05rem)/1.12 'Poppins', sans-serif; letter-spacing: -.025em;
    color: var(--cb-ink) !important; text-wrap: balance;
}
.tutorial-overlay .ob-copy p { margin: 0 auto; max-width: 31ch; font-size: 15.5px; line-height: 1.55; color: var(--cb-mute); text-wrap: pretty; }
.tutorial-overlay.is-live .ob-slide .ob-copy > * { opacity: 0; transform: translateY(14px); }
.tutorial-overlay.is-live .ob-slide.play .ob-copy > * { animation: cbFadeUp .6s var(--cb-ease) forwards; }
.tutorial-overlay.is-live .ob-slide.play .ob-copy > :nth-child(2) { animation-delay: .07s; }
.tutorial-overlay.is-live .ob-slide.play .ob-copy > :nth-child(3) { animation-delay: .14s; }

.tutorial-overlay .ob-bottom {
    position: relative; z-index: 2; width: 100%; max-width: 520px; margin: 0 auto; box-sizing: border-box;
    display: flex; flex-direction: row; align-items: center; justify-content: space-between; gap: 16px;
    padding: 22px 24px calc(22px + env(safe-area-inset-bottom, 0px));
}
.tutorial-overlay .ob-dots { display: flex; gap: 7px; }
.tutorial-overlay .ob-dot {
    position: relative; width: 8px; height: 8px; padding: 0; border: 0; border-radius: 99px; cursor: pointer; overflow: hidden;
    background: rgba(21, 32, 27, .16); transition: width .45s var(--cb-ease);
}
html[data-theme="dark"] .tutorial-overlay .ob-dot { background: rgba(255, 255, 255, .16); }
.tutorial-overlay .ob-dot::after { content: ''; position: absolute; inset: -12px -4px; }
.tutorial-overlay .ob-dot i { position: absolute; inset: 0; border-radius: inherit; background: var(--cb-forest); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--cb-ease); }
html[data-theme="dark"] .tutorial-overlay .ob-dot i { background: var(--cb-mint); }
.tutorial-overlay .ob-dot.on { width: 30px; }
.tutorial-overlay .ob-dot.on i, .tutorial-overlay .ob-dot.done i { transform: scaleX(1); }
.tutorial-overlay .ob-next {
    width: auto; height: 58px; min-width: 58px; padding: 0 22px 0 26px; margin: 0;
    display: inline-flex; align-items: center; gap: 10px; border: 0; border-radius: 999px; cursor: pointer;
    background: var(--cb-forest); color: #fff; font: 600 15.5px 'Poppins', sans-serif;
    box-shadow: 0 12px 26px rgba(30, 77, 59, .3);
    transition: transform .2s var(--cb-ease), padding .4s var(--cb-ease), background-color .3s;
}
.tutorial-overlay .ob-next svg { width: 20px; height: 20px; transition: transform .3s var(--cb-ease); }
.tutorial-overlay .ob-next:active { transform: scale(.96); }
.tutorial-overlay.is-last .ob-next { padding: 0 24px 0 30px; background: var(--cb-deep); }
.tutorial-overlay.is-last .ob-next svg { transform: translateX(3px); }
html[data-theme="dark"] .tutorial-overlay .ob-next { background: var(--cb-mint); color: var(--cb-deep); box-shadow: 0 12px 26px rgba(143, 211, 176, .18); }

/* --- stage (all sizes in em so the whole scene scales as one) --- */
.tt-stage {
    --s: min(86vw, 344px, 44vh);
    position: relative; width: var(--s); height: var(--s); font-size: calc(var(--s) / 22);
}
.tt-float { position: absolute; opacity: 0; }
.tt-bubble {
    padding: .62em .9em; border-radius: 1.1em 1.1em 1.1em .3em; background: var(--cb-surface); color: var(--cb-ink);
    font: 600 .72em/1.2 'Inter', sans-serif; white-space: nowrap; box-shadow: var(--cb-elev);
}
.tt-bubble.me { background: var(--cb-forest); color: #fff; border-radius: 1.1em 1.1em .3em 1.1em; }
.tt-chip {
    display: inline-flex; align-items: center; gap: .45em; padding: .55em .85em .55em .6em; border-radius: 999px;
    background: var(--cb-surface); color: var(--cb-ink); font: 700 .7em/1 'Inter', sans-serif; white-space: nowrap; box-shadow: var(--cb-elev);
}
.tt-chip i { display: grid; place-items: center; width: 1.7em; height: 1.7em; border-radius: 50%; background: var(--cb-mint-soft); color: var(--cb-forest); }
.tt-chip i svg { width: 1.05em; height: 1.05em; }
.tt-chip.gold i { background: var(--cb-gold); color: var(--cb-ink); }
.tt-chip.ok i { background: var(--cb-forest); color: #fff; }
.tt-chip.dark { background: var(--cb-ink); color: var(--cb-surface); }
.tt-chip.dark i { background: rgba(255, 255, 255, .14); color: inherit; }
html[data-theme="dark"] .tt-chip i { color: var(--cb-mint); }
html[data-theme="dark"] .tt-chip.ok i { background: var(--cb-mint); color: var(--cb-deep); }
html[data-theme="dark"] .tt-chip.gold i { color: var(--cb-deep); }

/* slide 1 — phone with campus listings */
.tt-phone {
    position: absolute; left: 50%; top: 3%; width: 13.4em; height: 19.6em; box-sizing: border-box;
    padding: 1.55em .85em .85em; border-radius: 2.3em; background: var(--cb-surface);
    border: .42em solid #17211c; box-shadow: var(--cb-elev-lg);
    transform: translateX(-50%);
}
html[data-theme="dark"] .tt-phone { border-color: #2a312d; }
.tt-phone-notch { position: absolute; top: .45em; left: 50%; width: 3.8em; height: .85em; border-radius: 1em; background: #17211c; transform: translateX(-50%); }
html[data-theme="dark"] .tt-phone-notch { background: #2a312d; }
.tt-search { display: flex; align-items: center; gap: .45em; height: 2.1em; padding: 0 .7em; border-radius: 1.05em; background: var(--cb-surface-2); color: var(--cb-mute); font-size: .62em; }
.tt-search svg { width: 1.2em; height: 1.2em; flex: none; }
.tt-cats { display: flex; gap: .35em; margin: .65em 0 .7em; overflow: hidden; }
.tt-cats span { padding: .42em .7em; border-radius: 999px; background: var(--cb-surface-2); color: var(--cb-ink-2); font: 600 .54em/1 'Inter', sans-serif; white-space: nowrap; }
.tt-cats span.on { background: var(--cb-forest); color: #fff; }
.tt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .5em; }
.tt-tile { border-radius: .95em; padding: .45em .45em .55em; background: var(--cb-surface-3); border: 1px solid var(--cb-line); }
.tt-tile i { display: grid; place-items: center; height: 3.6em; border-radius: .7em; margin-bottom: .45em; }
.tt-tile i svg { width: 1.8em; height: 1.8em; }
.tt-tile b { display: block; font: 700 .55em/1.2 'Inter', sans-serif; color: var(--cb-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tt-tile em { display: block; margin-top: .2em; font: 700 .58em/1 'Poppins', sans-serif; font-style: normal; color: var(--cb-forest); }
html[data-theme="dark"] .tt-tile em { color: var(--cb-mint); }
.c-food i { background: #ffe1d2; color: #b4451c; }
.c-fash i { background: #e9e1ff; color: #5a2fb8; }
.c-gad i { background: #dbe8ff; color: #1f4f9c; }
.c-book i { background: #fff0c7; color: #8a5a00; }
html[data-theme="dark"] .c-food i { background: rgba(255, 140, 90, .16); color: #ffb38f; }
html[data-theme="dark"] .c-fash i { background: rgba(160, 120, 255, .16); color: #c7b2ff; }
html[data-theme="dark"] .c-gad i { background: rgba(90, 150, 255, .16); color: #a9c7ff; }
html[data-theme="dark"] .c-book i { background: rgba(242, 181, 68, .16); color: #f6cf7a; }
.tt-s1 .f1 { left: -3%; top: 27%; }
.tt-s1 .f2 { right: -3%; top: 41%; }
.tt-s1 .f3 { left: 1%; bottom: 7%; }
.tt-s1 .f4 { right: 0; top: 3%; }

/* slide 2 — protection vault + timeline */
.tt-vault { position: absolute; left: 50%; top: 2%; width: 9.8em; height: 9.8em; transform: translateX(-50%); }
.tt-ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.tt-ring circle { fill: none; stroke-width: 6; }
.tt-ring .trk { stroke: rgba(30, 77, 59, .12); }
.tt-ring .val { stroke: var(--cb-forest); stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
html[data-theme="dark"] .tt-ring .trk { stroke: rgba(255, 255, 255, .08); }
html[data-theme="dark"] .tt-ring .val { stroke: var(--cb-mint); }
.tt-vault-core {
    position: absolute; inset: 1.25em; border-radius: 50%; display: grid; place-items: center;
    background: radial-gradient(circle at 30% 25%, #3a8c6c, #1e4d3b 55%, #0f3326); color: #fff;
    box-shadow: 0 18px 40px rgba(30, 77, 59, .35), inset 0 2px 0 rgba(255, 255, 255, .15);
}
.tt-vault-core svg { width: 3em; height: 3em; }
.tt-amount { position: absolute; left: 0; right: 0; top: 49%; text-align: center; }
.tt-amount b { display: block; font: 700 1.75em/1.1 'Poppins', sans-serif; letter-spacing: -.02em; color: var(--cb-ink); }
.tt-amount span { display: block; margin-top: .3em; font: 600 .7em/1 'Inter', sans-serif; color: var(--cb-mute); }
.tt-steps { position: absolute; left: 0; right: 0; bottom: 3%; display: flex; align-items: flex-start; padding: 0 .2em; }
.tt-step { flex: 0 0 auto; width: 3.6em; display: flex; flex-direction: column; align-items: center; }
.tt-step i {
    display: grid; place-items: center; width: 2.5em; height: 2.5em; border-radius: 50%;
    background: var(--cb-surface); color: var(--cb-faint); border: 1.5px solid var(--cb-line-2);
    transition: background .3s, color .3s;
}
.tt-step i svg { width: 1.15em; height: 1.15em; }
.tt-step span { margin-top: .5em; font: 600 .58em/1 'Inter', sans-serif; color: var(--cb-mute); white-space: nowrap; }
.tt-line { flex: 1; height: .2em; margin-top: 1.15em; border-radius: 1em; background: var(--cb-line-2); position: relative; overflow: hidden; }
.tt-line::after { content: ''; position: absolute; inset: 0; background: var(--cb-forest); transform: scaleX(0); transform-origin: left; }
html[data-theme="dark"] .tt-line::after { background: var(--cb-mint); }
.tt-s2 .f5 { right: -1%; top: 6%; }

/* slide 3 — wallet card + sale toasts */
.tt-card {
    position: absolute; left: 50%; top: 7%; width: 17.2em; height: 10.6em; box-sizing: border-box;
    padding: 1.05em 1.2em; border-radius: 1.45em; overflow: hidden; color: #fff;
    background: linear-gradient(140deg, #3a8c6c 0%, #1e4d3b 46%, #0c281d 100%);
    box-shadow: 0 26px 50px rgba(13, 42, 31, .32), inset 0 1px 0 rgba(255, 255, 255, .18);
    transform: translateX(-50%) rotate(-4deg);
}
.tt-card-sheen { position: absolute; top: -40%; bottom: -40%; width: 40%; left: -50%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .22), transparent); transform: rotate(20deg); }
.tt-card-top { display: flex; justify-content: space-between; align-items: center; font: 600 .62em/1 'Inter', sans-serif; letter-spacing: .12em; text-transform: uppercase; opacity: .82; }
.tt-card-top b { display: grid; place-items: center; width: 2.4em; height: 2.4em; border-radius: 50%; background: var(--cb-gold); color: #1b1404; font: 800 .9em/1 'Poppins', sans-serif; letter-spacing: 0; }
.tt-card-bal { margin: .3em 0 .35em; font: 700 2.05em/1.1 'Poppins', sans-serif; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.tt-bars { display: flex; align-items: flex-end; gap: .32em; height: 2.4em; }
.tt-bars i { flex: 1; height: calc(var(--h) * 100%); border-radius: .25em; background: rgba(255, 255, 255, .24); transform-origin: bottom; }
.tt-bars i:last-child { background: var(--cb-gold); }
.tt-card-foot { display: flex; justify-content: space-between; margin-top: .5em; font: 600 .62em/1 'Inter', sans-serif; opacity: .9; }
.tt-card-foot b { color: #ffd98a; }
.tt-toast {
    position: absolute; width: 14.6em; box-sizing: border-box; display: flex; align-items: center; gap: .65em;
    padding: .7em .8em; border-radius: 1.1em; background: var(--cb-surface); box-shadow: var(--cb-elev-lg); opacity: 0;
}
.tt-toast > i { flex: none; display: grid; place-items: center; width: 2.3em; height: 2.3em; border-radius: .75em; background: var(--cb-mint-soft); color: var(--cb-forest); }
.tt-toast > i.ok { background: var(--cb-forest); color: #fff; }
html[data-theme="dark"] .tt-toast > i { color: var(--cb-mint); }
html[data-theme="dark"] .tt-toast > i.ok { background: var(--cb-mint); color: var(--cb-deep); }
.tt-toast > i svg { width: 1.15em; height: 1.15em; }
.tt-toast b { display: block; font: 700 .72em/1.2 'Inter', sans-serif; color: var(--cb-ink); }
.tt-toast span { display: block; margin-top: .15em; font: 500 .6em/1.2 'Inter', sans-serif; color: var(--cb-mute); }
.tt-s3 .n1 { left: 1%; top: 60%; }
.tt-s3 .n2 { right: 0; top: 79%; }
.tt-s3 .f6 { left: 2%; top: 0; }

/* --- stories (only when the overlay is live and the slide is playing) --- */
.tutorial-overlay.is-live .tt-phone,
.tutorial-overlay.is-live .tt-vault,
.tutorial-overlay.is-live .tt-amount,
.tutorial-overlay.is-live .tt-card { opacity: 0; }
.tutorial-overlay.is-live .play .tt-phone { animation: ttRise .7s var(--cb-ease) .05s forwards; }
.tutorial-overlay.is-live .play .tt-tile { animation: ttPop .45s var(--cb-spring) both; }
.tutorial-overlay.is-live .play .tt-tile:nth-child(1) { animation-delay: .32s; }
.tutorial-overlay.is-live .play .tt-tile:nth-child(2) { animation-delay: .4s; }
.tutorial-overlay.is-live .play .tt-tile:nth-child(3) { animation-delay: .48s; }
.tutorial-overlay.is-live .play .tt-tile:nth-child(4) { animation-delay: .56s; }
.tutorial-overlay.is-live .play .tt-s1 .f4 { animation: ttPop .5s var(--cb-spring) .55s forwards, ttBob 4.2s ease-in-out 1.2s infinite; }
.tutorial-overlay.is-live .play .tt-s1 .f1 { animation: ttPop .5s var(--cb-spring) .8s forwards, ttBob 4.6s ease-in-out 1.4s infinite; transform-origin: 0 100%; }
.tutorial-overlay.is-live .play .tt-s1 .f2 { animation: ttPop .5s var(--cb-spring) 1.3s forwards, ttBob 5s ease-in-out 1.9s infinite; transform-origin: 100% 100%; }
.tutorial-overlay.is-live .play .tt-s1 .f3 { animation: ttPop .5s var(--cb-spring) 1.6s forwards, ttBob 4.4s ease-in-out 2.2s infinite; }

.tutorial-overlay.is-live .play .tt-vault { animation: ttZoom .7s var(--cb-spring) .05s forwards; }
.tutorial-overlay.is-live .play .tt-ring .val { animation: ttRing 2s cubic-bezier(.5, 0, .3, 1) .45s forwards; }
.tutorial-overlay.is-live .play .tt-amount { animation: ttRise .6s var(--cb-ease) .25s forwards; }
.tutorial-overlay.is-live .play .tt-step i { animation: ttStep .35s var(--cb-spring) both; }
.tutorial-overlay.is-live .play .tt-step.p1 i { animation-delay: .5s; }
.tutorial-overlay.is-live .play .tt-step.p2 i { animation-delay: 1.05s; }
.tutorial-overlay.is-live .play .tt-step.p3 i { animation-delay: 1.6s; }
.tutorial-overlay.is-live .play .tt-step.p4 i { animation-delay: 2.15s; }
.tutorial-overlay.is-live .play .tt-line::after { animation: ttFill .45s ease-in-out forwards; }
.tutorial-overlay.is-live .play .tt-line.l1::after { animation-delay: .65s; }
.tutorial-overlay.is-live .play .tt-line.l2::after { animation-delay: 1.2s; }
.tutorial-overlay.is-live .play .tt-line.l3::after { animation-delay: 1.75s; }
.tutorial-overlay.is-live .play .tt-s2 .f5 { animation: ttPop .5s var(--cb-spring) 2.35s forwards, ttBob 4.4s ease-in-out 3s infinite; }

.tutorial-overlay.is-live .play .tt-card { animation: ttCard .8s var(--cb-spring) .05s forwards; }
.tutorial-overlay.is-live .play .tt-card-sheen { animation: ttSheen 1.1s ease-in-out .7s forwards; }
.tutorial-overlay.is-live .play .tt-bars i { animation: ttBar .55s var(--cb-ease) both; }
.tutorial-overlay.is-live .play .tt-bars i:nth-child(1) { animation-delay: .5s; }
.tutorial-overlay.is-live .play .tt-bars i:nth-child(2) { animation-delay: .56s; }
.tutorial-overlay.is-live .play .tt-bars i:nth-child(3) { animation-delay: .62s; }
.tutorial-overlay.is-live .play .tt-bars i:nth-child(4) { animation-delay: .68s; }
.tutorial-overlay.is-live .play .tt-bars i:nth-child(5) { animation-delay: .74s; }
.tutorial-overlay.is-live .play .tt-bars i:nth-child(6) { animation-delay: .8s; }
.tutorial-overlay.is-live .play .tt-bars i:nth-child(7) { animation-delay: .86s; }
.tutorial-overlay.is-live .play .tt-s3 .n1 { animation: ttToast .6s var(--cb-spring) 1.05s forwards, ttBob 5s ease-in-out 1.8s infinite; }
.tutorial-overlay.is-live .play .tt-s3 .n2 { animation: ttToast .6s var(--cb-spring) 1.5s forwards, ttBob 4.6s ease-in-out 2.2s infinite; }
.tutorial-overlay.is-live .play .tt-s3 .f6 { animation: ttPop .5s var(--cb-spring) 1.9s forwards, ttBob 4.2s ease-in-out 2.5s infinite; }
/* Without the live class (e.g. splash still up) show the finished scene. */
.tutorial-overlay:not(.is-live) .tt-float, .tutorial-overlay:not(.is-live) .tt-toast { opacity: 1; }
.tutorial-overlay:not(.is-live) .tt-ring .val { stroke-dashoffset: 0; }
.tutorial-overlay:not(.is-live) .tt-line::after { transform: none; }

@keyframes ttRise { from { opacity: 0; transform: translateX(var(--tx, -50%)) translateY(1.4em); } to { opacity: 1; transform: translateX(var(--tx, -50%)) translateY(0); } }
.tt-amount { --tx: 0; }
@keyframes ttPop { 0% { opacity: 0; transform: scale(.5) translateY(.6em); } 100% { opacity: 1; transform: none; } }
@keyframes ttBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-.35em); } }
@keyframes ttZoom { from { opacity: 0; transform: translateX(-50%) scale(.7); } to { opacity: 1; transform: translateX(-50%) scale(1); } }
@keyframes ttRing { to { stroke-dashoffset: 0; } }
@keyframes ttStep { 0% { transform: scale(.7); } 60% { transform: scale(1.12); } 100% { transform: scale(1); background: var(--cb-forest); color: #fff; border-color: var(--cb-forest); } }
html[data-theme="dark"] .tutorial-overlay.is-live .play .tt-step i { animation-name: ttStepDark; }
@keyframes ttStepDark { 0% { transform: scale(.7); } 60% { transform: scale(1.12); } 100% { transform: scale(1); background: var(--cb-mint); color: #0d2a1f; border-color: var(--cb-mint); } }
@keyframes ttFill { to { transform: scaleX(1); } }
@keyframes ttCard { from { opacity: 0; transform: translateX(-50%) translateY(2em) rotate(-12deg); } to { opacity: 1; transform: translateX(-50%) rotate(-4deg); } }
@keyframes ttSheen { to { left: 130%; } }
@keyframes ttBar { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes ttToast { from { opacity: 0; transform: translateY(1.6em) scale(.92); } to { opacity: 1; transform: none; } }

@media (max-height: 640px) {
    .tutorial-overlay .ob-copy h2 { font-size: 1.4rem; }
    .tutorial-overlay .ob-copy p { font-size: 14px; }
    .tutorial-overlay .ob-bottom { padding-top: 12px; }
}
@media (min-width: 900px) and (min-height: 640px) {
    .tt-stage { --s: min(400px, 46vh); }
}

/* ---------------------------------------------------------------------
   3. HEADER + SEARCH
--------------------------------------------------------------------- */
header#main-header { border-bottom: 0; box-shadow: none; padding: max(14px, env(safe-area-inset-top, 0px)) 18px 8px; }
#header-user-avatar { background: var(--cb-forest) !important; box-shadow: 0 0 0 3px var(--cb-surface), 0 4px 12px rgba(30, 77, 59, .3) !important; }
.theme-toggle { border-radius: 50% !important; }
.search-section {
    padding: 4px 16px 12px !important; background: transparent !important; border: 0 !important;
    backdrop-filter: none !important; -webkit-backdrop-filter: none !important; gap: 10px !important; align-items: center;
}
.search-bar { position: relative; }
.search-bar .search-ico { position: absolute; left: 16px; top: 50%; width: 19px; height: 19px; transform: translateY(-50%); color: var(--cb-mute); pointer-events: none; z-index: 1; }
.search-section .search-bar input {
    -webkit-appearance: none; appearance: none;
    height: 50px; padding: 0 18px 0 46px !important; border-radius: 999px !important;
    background: var(--cb-surface) !important; border: 1px solid var(--cb-line) !important;
    box-shadow: 0 1px 2px rgba(16, 40, 30, .04), 0 6px 18px rgba(16, 40, 30, .05) !important;
    font: 500 15px 'Inter', sans-serif; color: var(--cb-ink) !important;
}
.search-section .search-bar input::placeholder { color: var(--cb-faint) !important; }
.search-section .search-bar input:focus { border-color: rgba(30, 77, 59, .45) !important; box-shadow: 0 0 0 4px rgba(30, 77, 59, .12) !important; }
.search-section .search-bar input::-webkit-search-cancel-button { -webkit-appearance: none; }
.search-section .filter-btn {
    flex: none; width: 50px; height: 50px; padding: 0 !important; display: grid; place-items: center;
    border-radius: 50% !important; border: 0 !important; background: var(--cb-forest) !important; color: #fff !important;
    box-shadow: 0 8px 18px rgba(30, 77, 59, .28) !important; backdrop-filter: none !important;
}
.search-section .filter-btn svg { width: 21px; height: 21px; }
.search-section .filter-btn:active { transform: scale(.94); }
html[data-theme="dark"] .search-section .filter-btn { background: var(--cb-mint) !important; color: var(--cb-deep) !important; box-shadow: none !important; }

/* ---------------------------------------------------------------------
   4. FLOATING NAV DOCK
--------------------------------------------------------------------- */
.bottom-nav {
    left: 50% !important; right: auto !important; width: auto !important; max-width: calc(100% - 28px) !important;
    bottom: calc(14px + env(safe-area-inset-bottom, 0px)) !important;
    transform: translateX(-50%); padding: 7px !important; display: block !important;
    border-radius: 999px !important; border: 1px solid rgba(21, 32, 27, .06) !important;
    background: rgba(255, 255, 255, .84) !important;
    -webkit-backdrop-filter: blur(18px) saturate(1.7); backdrop-filter: blur(18px) saturate(1.7);
    box-shadow: 0 14px 36px rgba(13, 42, 31, .18), 0 2px 6px rgba(13, 42, 31, .06), inset 0 1px 0 rgba(255, 255, 255, .9) !important;
    z-index: 120;
}
.nav-track { position: relative; display: flex; align-items: center; gap: 6px; }
.nav-pill {
    position: absolute; left: 0; top: 0; height: 100%; width: 0; border-radius: 999px; z-index: 0; opacity: 0;
    background: var(--cb-forest); box-shadow: 0 6px 16px rgba(30, 77, 59, .32);
    transition: transform .5s var(--cb-ease), width .5s var(--cb-ease), opacity .25s ease;
}
.bottom-nav .nav-item {
    position: relative; z-index: 1; flex: none;
    display: inline-flex; flex-direction: row; align-items: center; justify-content: center; gap: 0;
    height: 52px; min-width: 52px; padding: 0 15px; margin: 0; border: 0; border-radius: 999px;
    background: transparent !important; color: var(--cb-mute);
    font: 600 14px 'Poppins', sans-serif; letter-spacing: 0;
    transition: color .3s ease, padding .5s var(--cb-ease), gap .5s var(--cb-ease); transform: none;
}
.bottom-nav .nav-item svg { width: 23px; height: 23px; fill: none !important; stroke: currentColor !important; stroke-width: 2 !important; transform: none !important; flex: none; }
.bottom-nav .nav-item > span:not(.nav-fab) { display: inline-block; max-width: 0; opacity: 0; overflow: hidden; white-space: nowrap; transition: max-width .5s var(--cb-ease), opacity .3s ease; }
.bottom-nav .nav-item.active { color: #fff; gap: 8px; padding: 0 20px 0 17px; font-weight: 600; }
.bottom-nav .nav-item.active > span:not(.nav-fab) { max-width: 90px; opacity: 1; }
.bottom-nav .nav-item:active { transform: scale(.95); }
.bottom-nav .nav-fab-btn { padding: 0 4px !important; margin: 0 4px; }
.bottom-nav .nav-fab-btn .nav-fab-label { display: none !important; }
.bottom-nav .nav-fab {
    width: 52px; height: 52px; margin: 0; border: 0; border-radius: 50%;
    display: grid; place-items: center; color: #fff;
    background: linear-gradient(150deg, #f6c35a, #e9a227); color: #1b1404;
    box-shadow: 0 8px 18px rgba(201, 138, 23, .38), inset 0 1px 0 rgba(255, 255, 255, .45);
    transition: transform .35s var(--cb-spring), box-shadow .3s;
}
.bottom-nav .nav-fab svg { width: 24px; height: 24px; stroke: currentColor !important; }
.bottom-nav .nav-fab-btn:active .nav-fab { transform: scale(.9); }
.bottom-nav.fab-active .nav-fab { transform: rotate(45deg); }
html[data-theme="dark"] .bottom-nav { background: rgba(22, 25, 24, .82) !important; border-color: rgba(255, 255, 255, .08) !important; box-shadow: 0 14px 36px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .05) !important; }
html[data-theme="dark"] .nav-pill { background: var(--cb-mint); box-shadow: none; }
html[data-theme="dark"] .bottom-nav .nav-item.active { color: var(--cb-deep) !important; }
html[data-theme="dark"] .bottom-nav .nav-item.active svg { stroke: var(--cb-deep) !important; }

/* ---------------------------------------------------------------------
   5. HOME
--------------------------------------------------------------------- */
#home-screen { padding-top: 2px; }
.home-hero {
    position: relative; overflow: hidden; isolation: isolate;
    display: flex; align-items: center; min-height: 176px; padding: 26px 22px;
    border-radius: 26px; color: #fff;
    background: radial-gradient(120% 140% at 0% 0%, #2f7d5f 0%, #1e4d3b 42%, #0f3226 100%);
    box-shadow: 0 18px 40px rgba(13, 42, 31, .26);
}
.home-hero::before, .home-hero::after {
    content: ''; position: absolute; border-radius: 50%; z-index: -1; pointer-events: none;
    border: 1.5px solid rgba(255, 255, 255, .08);
}
.home-hero::before { width: 300px; height: 300px; right: -90px; top: -120px; }
.home-hero::after { width: 200px; height: 200px; right: -30px; top: -60px; border-color: rgba(143, 211, 176, .14); }
.home-hero .hero-copy { position: relative; z-index: 2; max-width: 62%; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.home-hero .hero-greeting-label { color: #b8ecd2 !important; font-weight: 600 !important; }
.home-hero .hero-greeting-name { font-size: clamp(1.65rem, 6.4vw, 2.2rem) !important; letter-spacing: -.03em !important; }
.home-hero .hero-greeting-sub { color: rgba(255, 255, 255, .78) !important; font-size: 13.5px !important; }
.hero-cta {
    margin-top: 12px; display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 15px 0 12px;
    border: 0; border-radius: 999px; cursor: pointer; background: var(--cb-gold); color: #1b1404;
    font: 700 13px 'Poppins', sans-serif; box-shadow: 0 6px 16px rgba(0, 0, 0, .18);
}
.hero-cta svg { width: 17px; height: 17px; }
.hero-cta:active { transform: scale(.96); }
.home-hero .hero-illustration { right: -10px !important; bottom: -14px !important; width: 168px !important; height: 168px !important; }

.featured-section { margin: 4px 0 26px !important; padding: 0 !important; }
.featured-header, .section-head { display: flex; align-items: flex-end; justify-content: space-between; margin: 0 4px 12px; }
.featured-title, .section-head h3, .categories-title {
    display: flex; align-items: center; gap: 8px; margin: 0;
    font: 700 1.08rem/1.2 'Poppins', sans-serif !important; letter-spacing: -.015em; color: var(--cb-ink) !important;
}
.featured-title .ft-ico { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; background: var(--cb-gold); color: #1b1404; }
.featured-title .ft-ico svg { width: 16px; height: 16px; }
.featured-sub, .section-head .section-sub { display: block; margin-top: 2px; font: 500 12.5px 'Inter', sans-serif; color: var(--cb-mute); }
.featured-view-all {
    padding: 7px 12px !important; border-radius: 999px !important; background: var(--cb-surface) !important; border: 1px solid var(--cb-line) !important;
    font: 600 12.5px 'Inter', sans-serif !important; color: var(--cb-ink) !important; box-shadow: none !important;
}
.featured-scroll { gap: 12px !important; padding: 2px 4px 14px !important; scroll-snap-type: x mandatory; scroll-padding-left: 4px; }
.quick-sell-card {
    flex: 0 0 152px !important; width: 152px !important; min-width: 152px !important; scroll-snap-align: start;
    border-radius: 20px !important; overflow: hidden; background: var(--cb-surface) !important;
    border: 1px solid var(--cb-line) !important; box-shadow: var(--cb-elev) !important;
}
.quick-sell-image { position: relative; height: 150px !important; background: var(--cb-surface-2) !important; }
.quick-sell-image img { width: 100%; height: 100%; object-fit: cover; }
.quick-sell-badge { display: none !important; }
.qs-timer {
    position: absolute; left: 8px; top: 8px; display: inline-flex; align-items: center; gap: 4px;
    padding: 5px 8px 5px 6px; border-radius: 999px; background: rgba(13, 22, 18, .66); color: #fff;
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); font: 700 10.5px/1 'Inter', sans-serif;
}
.qs-timer svg { width: 12px; height: 12px; }
.qs-timer.urgent { background: rgba(194, 65, 45, .9); }
.quick-sell-info { padding: 10px 12px 12px !important; }
.quick-sell-name { font: 600 13.5px/1.3 'Inter', sans-serif !important; color: var(--cb-ink) !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin: 0 0 4px !important; }
.quick-sell-price { font: 700 15px/1.2 'Poppins', sans-serif !important; color: var(--cb-forest) !important; margin: 0 0 4px !important; }
html[data-theme="dark"] .quick-sell-price { color: var(--cb-mint) !important; }
.quick-sell-time { display: flex; align-items: center; gap: 6px; font: 500 11.5px 'Inter', sans-serif !important; color: var(--cb-mute) !important; white-space: nowrap; overflow: hidden; }
.quick-sell-time .qs-dist { display: inline-flex; align-items: center; gap: 2px; color: var(--cb-ink-2); }
.quick-sell-time .qs-dist svg { width: 11px; height: 11px; }

.categories-section { margin: 0 0 22px !important; padding: 0 !important; }
.categories-title { margin: 0 4px 12px !important; }
.categories-row { gap: 6px !important; padding: 2px 4px 6px !important; }
.category-btn { min-width: 70px !important; gap: 7px !important; }
.category-icon-circle {
    width: 58px !important; height: 58px !important; border-radius: 20px !important;
    border: 1px solid rgba(21, 32, 27, .04); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6);
    transition: transform .25s var(--cb-spring), box-shadow .25s !important;
}
.category-icon-circle .material-symbols-outlined { font-size: 25px !important; }
.category-label { font: 600 12px 'Inter', sans-serif !important; color: var(--cb-ink-2) !important; }
.category-btn.active-cat .category-icon-circle { box-shadow: 0 0 0 2.5px var(--cb-surface), 0 0 0 4.5px var(--cb-forest) !important; transform: translateY(-2px); }
html[data-theme="dark"] .category-icon-circle { filter: saturate(.9) brightness(.92); border-color: rgba(255, 255, 255, .05); }

#products-section { padding: 0 4px 16px !important; margin-top: 4px !important; }
#products-grid { gap: 12px !important; }
.section-head .section-count { font: 600 12px 'Inter', sans-serif; color: var(--cb-mute); padding: 6px 10px; border-radius: 999px; background: var(--cb-surface); border: 1px solid var(--cb-line); }

.product-card {
    position: relative; display: flex; flex-direction: column; min-width: 0;
    border-radius: 22px !important; overflow: hidden; padding: 0 !important;
    background: var(--cb-surface) !important; border: 1px solid var(--cb-line) !important; box-shadow: var(--cb-elev) !important;
    transition: transform .2s var(--cb-ease), box-shadow .2s !important;
    content-visibility: auto; contain-intrinsic-size: 260px;
}
.product-card:active { transform: scale(.975) !important; }
.product-card-img { position: relative; aspect-ratio: 1 / 1; height: auto !important; background: var(--cb-surface-2) !important; overflow: hidden; border-radius: 0 !important; }
.product-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s var(--cb-ease); }
.product-card:hover .product-card-img img { transform: scale(1.04); }
.pc-badges { position: absolute; left: 8px; top: 8px; right: 8px; display: flex; justify-content: space-between; gap: 6px; pointer-events: none; }
.pc-badge {
    display: inline-flex; align-items: center; gap: 4px; padding: 5px 8px; border-radius: 999px;
    font: 700 10.5px/1 'Inter', sans-serif; white-space: nowrap;
    background: rgba(255, 255, 255, .92); color: var(--cb-ink); box-shadow: 0 2px 8px rgba(0, 0, 0, .1);
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.pc-badge svg { width: 13px; height: 13px; }
.pc-badge.low { background: #fff4d6; color: #8a5a00; }
.pc-badge.sold { background: #fde5e1; color: #b42318; }
html[data-theme="dark"] .pc-badge { background: rgba(17, 19, 18, .86); color: var(--cb-ink); }
html[data-theme="dark"] .pc-badge.low { background: rgba(242, 181, 68, .9); color: #1b1404; }
html[data-theme="dark"] .pc-badge.sold { background: rgba(255, 112, 87, .9); color: #2a0a04; }
.product-card-body { display: flex; flex-direction: column; gap: 4px; padding: 11px 12px 12px !important; min-width: 0; flex: 1; }
.product-card-name {
    font: 600 13.5px/1.32 'Inter', sans-serif !important; color: var(--cb-ink) !important; margin: 0 !important;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; white-space: normal !important; min-height: 2.64em;
}
.pc-seller { display: flex; align-items: center; gap: 4px; min-width: 0; font: 500 11.5px 'Inter', sans-serif; color: var(--cb-mute); }
.pc-seller > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.pc-seller svg { width: 13px; height: 13px; flex: none; }
.pc-seller .pc-dist { flex: none; display: inline-flex; align-items: center; gap: 2px; color: var(--cb-ink-2); }
.pc-seller .pc-dist svg { width: 11px; height: 11px; }
.pc-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 4px; }
.product-card-price { font: 700 16px/1 'Poppins', sans-serif !important; letter-spacing: -.01em; color: var(--cb-ink) !important; margin: 0 !important; white-space: nowrap; }
.pc-buy {
    flex: none; width: 38px; height: 38px; border-radius: 13px; border: 0; cursor: pointer; display: grid; place-items: center;
    background: var(--cb-forest); color: #fff; box-shadow: 0 6px 14px rgba(30, 77, 59, .28);
    transition: transform .2s var(--cb-spring);
}
.pc-buy svg { width: 19px; height: 19px; }
.pc-buy:active { transform: scale(.88); }
html[data-theme="dark"] .pc-buy { background: var(--cb-mint); color: var(--cb-deep); box-shadow: none; }
.product-card .product-buy-btn { display: none; }
.products-empty { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 44px 24px; border-radius: 24px; background: var(--cb-surface); border: 1px dashed var(--cb-line-2); }
.products-empty i { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 22px; background: var(--cb-mint-soft); color: var(--cb-forest); margin-bottom: 16px; }
.products-empty i svg { width: 34px; height: 34px; }
.products-empty b { font: 700 1.05rem 'Poppins', sans-serif; color: var(--cb-ink); margin-bottom: 6px; }
.products-empty span { font-size: 13.5px; color: var(--cb-mute); line-height: 1.55; max-width: 260px; }
.products-empty button { margin-top: 16px; }

/* ---------------------------------------------------------------------
   6. AUTH
--------------------------------------------------------------------- */
body[data-tab="profile"] .bottom-nav.auth-hidden { opacity: 0; pointer-events: none; }
.auth-screen {
    position: fixed; inset: 0; z-index: 260; overflow-y: auto; overflow-x: hidden;
    background: var(--cb-surface); -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
    text-align: left; font-family: 'Inter', sans-serif;
}
.auth-hero { position: relative; height: clamp(230px, 36vh, 330px); overflow: hidden; background: #d5ebdd; }
.auth-scene { position: absolute; inset: 0; width: 100%; height: 100%; display: block; animation: authScene 1s var(--cb-ease) both; }
html[data-theme="dark"] .auth-hero { background: #0c1b15; }
.auth-back {
    position: absolute; z-index: 3; left: 16px; top: max(14px, env(safe-area-inset-top, 0px));
    width: 42px; height: 42px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center;
    background: rgba(255, 255, 255, .78); color: var(--cb-ink); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    box-shadow: 0 4px 14px rgba(13, 42, 31, .14);
}
.auth-back svg { width: 21px; height: 21px; }
html[data-theme="dark"] .auth-back { background: rgba(17, 19, 18, .7); color: #fff; }
.auth-scene .cloud { animation: authCloud 26s linear infinite; }
.auth-scene .cloud.c2 { animation-duration: 34s; animation-delay: -12s; }
.auth-scene .comet { stroke-dasharray: 1; stroke-dashoffset: 1; animation: cbArc 1.2s cubic-bezier(.45, 0, .2, 1) .35s forwards; }
.auth-scene .flag { transform-box: fill-box; transform-origin: 0 50%; animation: authFlag 2.4s ease-in-out infinite; }
@keyframes authScene { from { transform: scale(1.06); opacity: .4; } to { transform: none; opacity: 1; } }
@keyframes authCloud { from { transform: translateX(-40px); } to { transform: translateX(440px); } }
@keyframes authFlag { 0%, 100% { transform: skewY(0) scaleX(1); } 50% { transform: skewY(-6deg) scaleX(.92); } }

.auth-sheet {
    position: relative; z-index: 2; margin-top: -30px; min-height: calc(100% - clamp(230px, 36vh, 330px) + 30px);
    padding: 22px 22px calc(30px + env(safe-area-inset-bottom, 0px)); box-sizing: border-box;
    background: var(--cb-surface); border-radius: 30px 30px 0 0;
    box-shadow: 0 -10px 30px rgba(13, 42, 31, .08);
    animation: authSheet .7s var(--cb-ease) .08s both;
}
.auth-sheet > * { max-width: 420px; margin-left: auto; margin-right: auto; }
@keyframes authSheet { from { transform: translateY(60px); opacity: 0; } to { transform: none; opacity: 1; } }
.auth-grabber { width: 38px; height: 4px; border-radius: 4px; background: var(--cb-line-2); margin: -8px auto 16px; }
.auth-tabs {
    position: relative; display: grid; grid-template-columns: 1fr 1fr; height: 46px; padding: 4px; box-sizing: border-box;
    border-radius: 999px; background: var(--cb-surface-2); margin-bottom: 22px;
}
.auth-tabs-pill { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 999px; background: var(--cb-surface); box-shadow: 0 2px 8px rgba(13, 42, 31, .1); transition: transform .45s var(--cb-ease); }
html[data-theme="dark"] .auth-tabs-pill { background: #2a2f2c; }
.auth-screen[data-mode="register"] .auth-tabs-pill { transform: translateX(100%); }
.auth-tabs button { position: relative; z-index: 1; border: 0; background: none; cursor: pointer; font: 600 14px 'Poppins', sans-serif; color: var(--cb-mute); transition: color .3s; }
.auth-screen[data-mode="login"] .auth-tabs [data-mode="login"], .auth-screen[data-mode="register"] .auth-tabs [data-mode="register"] { color: var(--cb-ink); }
.auth-head { margin-bottom: 18px; }
.auth-title { margin: 0 0 6px; font: 700 1.6rem/1.15 'Poppins', sans-serif; letter-spacing: -.025em; color: var(--cb-ink) !important; }
.auth-sub { margin: 0; font-size: 14px; line-height: 1.5; color: var(--cb-mute); }
.auth-error {
    max-height: 0; overflow: hidden; opacity: 0; margin-bottom: 0; padding: 0 14px; border-radius: 14px;
    background: var(--cb-danger-bg); color: var(--cb-danger); font: 600 13.5px/1.45 'Inter', sans-serif;
    transition: max-height .3s var(--cb-ease), opacity .25s, padding .3s, margin .3s;
}
.auth-error.show { max-height: 120px; opacity: 1; padding: 11px 14px; margin-bottom: 14px; }
.auth-error.ok { background: var(--cb-mint-soft); color: var(--cb-forest); }
html[data-theme="dark"] .auth-error.ok { color: var(--cb-mint); }
.auth-form { display: flex; flex-direction: column; gap: 12px; }
.auth-form.hidden { display: none !important; }
.auth-field {
    position: relative; display: flex; align-items: center; gap: 11px; height: 56px; padding: 0 6px 0 16px;
    border-radius: 17px; background: var(--cb-surface-2); border: 1.5px solid transparent; box-sizing: border-box;
    transition: border-color .2s, background .2s, box-shadow .2s; cursor: text;
}
.auth-field:focus-within { border-color: var(--cb-forest); background: var(--cb-surface); box-shadow: 0 0 0 4px rgba(30, 77, 59, .1); }
html[data-theme="dark"] .auth-field:focus-within { border-color: var(--cb-mint); box-shadow: 0 0 0 4px rgba(143, 211, 176, .12); }
.auth-field.invalid { border-color: var(--cb-danger); animation: cbShake .38s ease; }
.auth-ico { display: grid; place-items: center; color: var(--cb-mute); flex: none; }
.auth-ico svg { width: 20px; height: 20px; }
.auth-field:focus-within .auth-ico { color: var(--cb-forest); }
html[data-theme="dark"] .auth-field:focus-within .auth-ico { color: var(--cb-mint); }
.auth-screen .auth-field input {
    flex: 1; min-width: 0; height: 100%; padding: 0; border: 0 !important; outline: none; background: transparent !important;
    box-shadow: none !important; font: 500 16px 'Inter', sans-serif; color: var(--cb-ink) !important;
}
.auth-screen .auth-field input::placeholder { color: var(--cb-faint); }
.auth-prefix { flex: none; padding-right: 10px; margin-right: -2px; border-right: 1px solid var(--cb-line-2); font: 600 15px 'Inter', sans-serif; color: var(--cb-ink-2); }
.auth-eye { flex: none; width: 44px; height: 44px; border: 0; background: none; border-radius: 12px; cursor: pointer; display: grid; place-items: center; color: var(--cb-mute); }
.auth-eye svg { width: 20px; height: 20px; }
.auth-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 2px 2px 4px; }
.auth-check { display: inline-flex; align-items: center; gap: 9px; cursor: pointer; font: 500 13.5px 'Inter', sans-serif; color: var(--cb-ink-2); line-height: 1.45; }
.auth-check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.auth-check > span {
    flex: none; width: 20px; height: 20px; border-radius: 7px; border: 1.5px solid var(--cb-line-2); background: var(--cb-surface);
    display: grid; place-items: center; transition: background .2s, border-color .2s;
}
.auth-check > span::after { content: ''; width: 10px; height: 6px; border: 2.2px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px) scale(0); transition: transform .25s var(--cb-spring); }
.auth-check input:checked + span { background: var(--cb-forest); border-color: var(--cb-forest); }
.auth-check input:checked + span::after { transform: rotate(-45deg) translate(1px, -1px) scale(1); }
.auth-check input:focus-visible + span { box-shadow: 0 0 0 4px rgba(30, 77, 59, .18); }
.auth-check.invalid > span { border-color: var(--cb-danger); animation: cbShake .38s ease; }
.auth-check a, .auth-check button { color: var(--cb-forest); font-weight: 700; background: none; border: 0; padding: 0; cursor: pointer; font-size: inherit; }
html[data-theme="dark"] .auth-check a, html[data-theme="dark"] .auth-check button { color: var(--cb-mint); }
.auth-terms { align-items: flex-start; margin: 4px 2px 2px; }
.auth-terms > span { margin-top: 1px; }
.auth-link { border: 0; background: none; padding: 6px 0; cursor: pointer; font: 600 13.5px 'Inter', sans-serif; color: var(--cb-forest); }
html[data-theme="dark"] .auth-link { color: var(--cb-mint); }
.auth-primary {
    position: relative; height: 56px; margin-top: 6px; border: 0; border-radius: 17px; cursor: pointer; overflow: hidden;
    display: flex; align-items: center; justify-content: center; gap: 10px;
    background: var(--cb-forest); color: #fff; font: 600 16px 'Poppins', sans-serif;
    box-shadow: 0 12px 24px rgba(30, 77, 59, .26); transition: transform .2s var(--cb-ease), opacity .2s;
}
.auth-primary:active { transform: scale(.98); }
.auth-primary[disabled] { opacity: .7; cursor: progress; }
html[data-theme="dark"] .auth-primary { background: var(--cb-mint); color: var(--cb-deep); box-shadow: none; }
.cb-spin { width: 18px; height: 18px; border-radius: 50%; border: 2.4px solid rgba(255, 255, 255, .35); border-top-color: #fff; animation: cbSpin .7s linear infinite; }
html[data-theme="dark"] .auth-primary .cb-spin { border-color: rgba(13, 42, 31, .25); border-top-color: var(--cb-deep); }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 22px auto 16px; font: 500 12.5px 'Inter', sans-serif; color: var(--cb-faint); }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--cb-line-2); }
.auth-google {
    width: 100%; height: 54px; display: flex; align-items: center; justify-content: center; gap: 10px; cursor: pointer;
    border-radius: 17px; border: 1.5px solid var(--cb-line-2); background: var(--cb-surface); color: var(--cb-ink);
    font: 600 15px 'Poppins', sans-serif; transition: background .2s, transform .2s;
}
.auth-google:active { transform: scale(.98); background: var(--cb-surface-2); }
.auth-google svg { width: 20px; height: 20px; }
.auth-google #google-login-btn-content { display: flex; align-items: center; gap: 10px; }
.auth-google .cb-spin { border-color: rgba(30, 77, 59, .2); border-top-color: var(--cb-forest); }
.auth-switch { display: none; margin: 20px auto 0; text-align: center; font: 500 14px 'Inter', sans-serif; color: var(--cb-mute); }
.auth-switch button { border: 0; background: none; padding: 4px; cursor: pointer; font: 700 14px 'Inter', sans-serif; color: var(--cb-forest); }
html[data-theme="dark"] .auth-switch button { color: var(--cb-mint); }
.auth-screen[data-mode="login"] .auth-switch[data-for="login"], .auth-screen[data-mode="register"] .auth-switch[data-for="register"] { display: block; }
.auth-strength { display: flex; align-items: center; gap: 10px; margin: -2px 4px 0; font: 600 11.5px 'Inter', sans-serif; color: var(--cb-mute); }
.auth-strength i { flex: 1; height: 4px; border-radius: 4px; background: var(--cb-line-2); transition: background .3s; }
.auth-strength span { min-width: 54px; text-align: right; }
.auth-strength[data-level="0"] { display: none; }
.auth-strength[data-level="1"] i:nth-of-type(1) { background: var(--cb-danger); }
.auth-strength[data-level="2"] i:nth-of-type(-n+2) { background: var(--cb-gold); }
.auth-strength[data-level="3"] i:nth-of-type(-n+3) { background: #5aa77f; }
.auth-strength[data-level="4"] i { background: var(--cb-forest); }
html[data-theme="dark"] .auth-strength[data-level="4"] i { background: var(--cb-mint); }
.auth-note { margin: 2px 4px 0; font: 500 12px/1.5 'Inter', sans-serif; color: var(--cb-mute); }

.auth-loader {
    position: fixed; inset: 0; z-index: 400; display: flex; flex-direction: column; align-items: center; justify-content: center;
    background: rgba(255, 255, 255, .62); -webkit-backdrop-filter: blur(10px) saturate(1.2); backdrop-filter: blur(10px) saturate(1.2);
    opacity: 0; transition: opacity .28s ease;
}
html[data-theme="dark"] .auth-loader { background: rgba(10, 12, 11, .66); }
.auth-loader.in { opacity: 1; }
.auth-loader-orbit { position: relative; width: 112px; height: 112px; margin-bottom: 18px; }
.auth-loader-spin { position: absolute; inset: 0; animation: cbSpin 1.25s cubic-bezier(.55, .15, .45, .85) infinite; }
.auth-loader-spin i { position: absolute; left: 50%; top: 50%; width: 7px; height: 7px; margin: -3.5px; border-radius: 50%; background: var(--cb-forest); }
html[data-theme="dark"] .auth-loader-spin i { background: var(--cb-mint); }
.auth-loader-spin i:nth-child(1) { transform: rotate(-24deg) translateY(-48px); opacity: .9; }
.auth-loader-spin i:nth-child(2) { transform: rotate(-48deg) translateY(-48px) scale(.85); opacity: .7; }
.auth-loader-spin i:nth-child(3) { transform: rotate(-72deg) translateY(-48px) scale(.7); opacity: .5; }
.auth-loader-spin i:nth-child(4) { transform: rotate(-96deg) translateY(-48px) scale(.55); opacity: .32; }
.auth-loader-spin i:nth-child(5) { transform: rotate(-120deg) translateY(-48px) scale(.4); opacity: .18; }
.auth-loader-bag { position: absolute; left: 50%; top: 50%; width: 34px; height: 34px; margin: -17px; transform: translateY(-48px) rotate(90deg); display: grid; place-items: center; border-radius: 11px; background: var(--cb-forest); color: #fff; box-shadow: 0 6px 14px rgba(30, 77, 59, .3); }
html[data-theme="dark"] .auth-loader-bag { background: var(--cb-mint); color: var(--cb-deep); }
.auth-loader-bag svg { width: 19px; height: 19px; transform: rotate(-90deg); }
.auth-loader-title { font: 600 17px 'Poppins', sans-serif; color: var(--cb-ink); }
.auth-loader-sub { margin-top: 4px; font: 500 13px 'Inter', sans-serif; color: var(--cb-mute); }
@keyframes cbSpin { to { transform: rotate(360deg); } }
@keyframes cbShake { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-7px); } 40% { transform: translateX(6px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(2px); } }

/* ---------------------------------------------------------------------
   7. OTP SHEET (iridescent rings, 3+3 tiles, auto-submit)
--------------------------------------------------------------------- */
.otp-backdrop {
    position: fixed; inset: 0; z-index: 300000; display: flex; align-items: center; justify-content: center; padding: 20px;
    background: rgba(12, 18, 15, .42); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
    opacity: 0; transition: opacity .26s ease;
}
.otp-backdrop.in { opacity: 1; }
.otp-backdrop.out { opacity: 0; }
.otp-card {
    --otp-bg: #f3f2ec; --otp-tile: #ffffff; --otp-ink: #18181a; --otp-mute: #7c7c78; --otp-line: rgba(0, 0, 0, .07);
    position: relative; width: 100%; max-width: 400px; box-sizing: border-box; overflow: hidden; isolation: isolate;
    padding: 40px 22px 26px; border-radius: 28px; text-align: center; background: var(--otp-bg); color: var(--otp-ink);
    box-shadow: 0 30px 80px rgba(0, 0, 0, .28);
    transform: translateY(26px) scale(.97); transition: transform .45s var(--cb-ease);
}
.otp-backdrop.in .otp-card { transform: none; }
html[data-theme="dark"] .otp-card { --otp-bg: #141615; --otp-tile: #1d201e; --otp-ink: #f4f3ef; --otp-mute: #9a9f9b; --otp-line: rgba(255, 255, 255, .08); }
.otp-rings { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.otp-ring {
    position: absolute; border-radius: 50%;
    background: conic-gradient(from 20deg, #ffd1e6, #c7ecff, #c9ffd9, #fff2ad, #e2d1ff, #ffd1e6);
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 20px), #000 calc(100% - 19px), #000 calc(100% - 1px), transparent);
    mask: radial-gradient(farthest-side, transparent calc(100% - 20px), #000 calc(100% - 19px), #000 calc(100% - 1px), transparent);
    filter: blur(4px); opacity: .9; will-change: transform;
}
.otp-ring.r1 { width: 190px; height: 190px; right: -70px; top: -84px; animation: otpDrift1 13s ease-in-out infinite alternate; }
.otp-ring.r2 { width: 230px; height: 230px; left: -120px; bottom: -130px; animation: otpDrift2 16s ease-in-out infinite alternate; }
.otp-ring.r3 { width: 90px; height: 90px; left: -30px; top: 30%; opacity: .55; animation: otpDrift1 11s ease-in-out -4s infinite alternate; }
html[data-theme="dark"] .otp-ring { opacity: .55; filter: blur(5px) saturate(1.3); }
@keyframes otpDrift1 { from { transform: translate(0, 0) rotate(0); } to { transform: translate(-18px, 14px) rotate(70deg); } }
@keyframes otpDrift2 { from { transform: translate(0, 0) rotate(0); } to { transform: translate(22px, -12px) rotate(-60deg); } }
.otp-close {
    position: absolute; left: 14px; top: 14px; width: 36px; height: 36px; border-radius: 50%; border: 0; cursor: pointer;
    display: grid; place-items: center; background: rgba(0, 0, 0, .05); color: var(--otp-mute);
}
html[data-theme="dark"] .otp-close { background: rgba(255, 255, 255, .07); }
.otp-close svg { width: 17px; height: 17px; }
.otp-head h2 { margin: 0 0 6px; font: 600 1.4rem/1.2 'Poppins', sans-serif; letter-spacing: -.02em; color: var(--otp-ink) !important; }
.otp-sub { margin: 0 0 26px; font: 500 13px/1.5 'Inter', sans-serif; color: var(--otp-mute); word-break: break-word; }
.otp-sub span { color: var(--otp-ink); font-weight: 600; }
.otp-field { position: relative; display: flex; justify-content: center; height: 60px; }
.otp-tiles { display: flex; justify-content: center; gap: 14px; transition: opacity .3s; }
.otp-group { display: flex; gap: 7px; }
.otp-tile {
    position: relative; width: 44px; height: 56px; border-radius: 13px; box-sizing: border-box;
    display: grid; place-items: center; background: var(--otp-tile); border: 1.5px solid var(--otp-line);
    box-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 4px 10px rgba(0, 0, 0, .04);
    transition: border-color .18s, background .25s, transform .3s var(--cb-ease), opacity .3s;
}
.otp-tile b { font: 600 24px/1 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace; color: var(--otp-ink); font-variant-numeric: tabular-nums; }
.otp-tile.pop b { animation: otpPop .32s var(--cb-spring); }
.otp-tile.active { border-color: var(--otp-ink); box-shadow: 0 0 0 3px rgba(0, 0, 0, .05); }
html[data-theme="dark"] .otp-tile.active { box-shadow: 0 0 0 3px rgba(255, 255, 255, .06); }
.otp-caret { position: absolute; left: 50%; top: 50%; width: 2px; height: 24px; margin: -12px 0 0 -1px; border-radius: 2px; background: var(--otp-ink); opacity: 0; }
.otp-tile.active:not(.filled) .otp-caret { animation: otpBlink 1.05s steps(1) infinite; }
@keyframes otpPop { 0% { transform: translateY(8px) scale(.6); opacity: 0; } 100% { transform: none; opacity: 1; } }
@keyframes otpBlink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
.otp-input {
    position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0; z-index: 2;
    border: 0 !important; outline: none; background: transparent !important; box-shadow: none !important;
    color: transparent !important; -webkit-text-fill-color: transparent; caret-color: transparent;
    font-size: 16px; letter-spacing: 1.5em; text-indent: -9999px; cursor: text;
}
.otp-input::selection { background: transparent; }
.otp-status { min-height: 20px; margin: 16px 0 0; font: 500 13px 'Inter', sans-serif; color: var(--otp-mute); transition: color .2s; }
.otp-foot { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 14px; }
.otp-foot button { border: 0; background: none; padding: 6px 4px; cursor: pointer; font: 600 13px 'Inter', sans-serif; color: var(--otp-ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(0, 0, 0, .2); }
.otp-foot button[disabled] { color: var(--otp-mute); text-decoration: none; cursor: default; font-variant-numeric: tabular-nums; }
.otp-dot { color: var(--otp-mute); }
/* checking */
.otp-card[data-state="checking"] .otp-tile { opacity: .55; }
.otp-card[data-state="checking"] .otp-tile b { animation: otpWave 1.1s ease-in-out infinite; }
.otp-card[data-state="checking"] .otp-group:first-child .otp-tile:nth-child(2) b { animation-delay: .08s; }
.otp-card[data-state="checking"] .otp-group:first-child .otp-tile:nth-child(3) b { animation-delay: .16s; }
.otp-card[data-state="checking"] .otp-group:last-child .otp-tile:nth-child(1) b { animation-delay: .24s; }
.otp-card[data-state="checking"] .otp-group:last-child .otp-tile:nth-child(2) b { animation-delay: .32s; }
.otp-card[data-state="checking"] .otp-group:last-child .otp-tile:nth-child(3) b { animation-delay: .4s; }
@keyframes otpWave { 0%, 100% { opacity: .55; transform: none; } 40% { opacity: 1; transform: translateY(-3px); } }
/* error */
.otp-card[data-state="error"] .otp-tile { background: #fbe8e5; border-color: #e7a59b; }
.otp-card[data-state="error"] .otp-tile b { color: #a8331f; }
html[data-theme="dark"] .otp-card[data-state="error"] .otp-tile { background: rgba(255, 112, 87, .12); border-color: rgba(255, 112, 87, .5); }
html[data-theme="dark"] .otp-card[data-state="error"] .otp-tile b { color: #ff9b86; }
.otp-card[data-state="error"] .otp-tiles { animation: cbShake .42s ease; }
.otp-card[data-state="error"] .otp-status { color: #b0402b; }
html[data-theme="dark"] .otp-card[data-state="error"] .otp-status { color: #ff9b86; }
.otp-card.clearing .otp-tile b { transition: opacity .2s, transform .25s; opacity: 0; transform: translateY(-6px); }
/* success — tiles fold into the middle, the check draws itself */
.otp-done { position: absolute; left: 50%; top: 50%; width: 58px; height: 58px; margin: -29px; opacity: 0; pointer-events: none; }
.otp-done path { fill: none; stroke: var(--otp-ink); stroke-width: 3.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; }
.otp-card[data-state="success"] .otp-tile { transform: scale(.4); opacity: 0; transition: transform .38s var(--cb-ease), opacity .3s; }
.otp-card[data-state="success"] .otp-group:first-child { transform: translateX(40px); transition: transform .38s var(--cb-ease); }
.otp-card[data-state="success"] .otp-group:last-child { transform: translateX(-40px); transition: transform .38s var(--cb-ease); }
.otp-card[data-state="success"] .otp-group:first-child .otp-tile:nth-child(1), .otp-card[data-state="success"] .otp-group:last-child .otp-tile:nth-child(3) { transition-delay: 0s; }
.otp-card[data-state="success"] .otp-group:first-child .otp-tile:nth-child(2), .otp-card[data-state="success"] .otp-group:last-child .otp-tile:nth-child(2) { transition-delay: .05s; }
.otp-card[data-state="success"] .otp-group:first-child .otp-tile:nth-child(3), .otp-card[data-state="success"] .otp-group:last-child .otp-tile:nth-child(1) { transition-delay: .1s; }
.otp-card[data-state="success"] .otp-done { opacity: 1; transition: opacity .1s .3s; }
.otp-card[data-state="success"] .otp-done path { animation: otpCheck .5s var(--cb-ease) .34s forwards; }
.otp-card[data-state="success"] .otp-status { color: var(--otp-ink); }
.otp-card[data-state="success"] .otp-foot { opacity: 0; transition: opacity .2s; }
@keyframes otpCheck { to { stroke-dashoffset: 0; } }
@media (max-width: 360px) {
    .otp-tile { width: 38px; height: 50px; }
    .otp-tiles { gap: 10px; } .otp-group { gap: 6px; }
    .otp-tile b { font-size: 21px; }
}

/* ---------------------------------------------------------------------
   8. PRODUCT DETAIL + QUICK SELL DETAIL
--------------------------------------------------------------------- */
.product-detail-modal {
    background: var(--cb-surface) !important; z-index: 300;
    transition: transform .42s var(--cb-ease) !important; overscroll-behavior: contain;
}
.product-detail-modal > .product-detail-header { display: none !important; }
.product-detail-modal .product-detail-body { padding: 0 !important; max-width: 720px; padding-bottom: 0 !important; }
.pd-hero { position: relative; background: var(--cb-surface-2); }
.pd-hero .pd-gallery { border-radius: 0 !important; margin: 0 !important; aspect-ratio: 1 / 1; max-height: 64vh; height: auto !important; width: 100%; }
.pd-hero .pd-gallery-track { height: 100% !important; }
.pd-hero .pd-gallery-slide { height: 100%; }
.pd-hero .pd-gallery-empty { aspect-ratio: 1 / 1; max-height: 56vh; border-radius: 0 !important; margin: 0 !important; display: grid; place-items: center; color: var(--cb-faint); }
.pd-hero .pd-gallery-empty svg { width: 64px; height: 64px; }
.pd-hero .pd-gallery-counter { top: auto !important; bottom: 46px !important; right: 16px !important; }
.pd-hero .pd-gallery-dots { bottom: 44px !important; }
.pd-topbar {
    position: absolute; z-index: 5; left: 0; right: 0; top: 0; display: flex; justify-content: space-between;
    padding: max(14px, env(safe-area-inset-top, 0px)) 16px 0; pointer-events: none;
}
.pd-topbar > * { pointer-events: auto; }
.pd-round {
    width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center;
    background: rgba(255, 255, 255, .86); color: #15201b; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, .14); transition: transform .2s var(--cb-spring);
}
.pd-round:active { transform: scale(.9); }
.pd-round svg { width: 21px; height: 21px; }
html[data-theme="dark"] .pd-round { background: rgba(17, 19, 18, .78); color: #fff; }
.pd-sheet {
    position: relative; z-index: 4; margin-top: -28px; padding: 22px 20px 8px;
    border-radius: 28px 28px 0 0; background: var(--cb-surface); box-shadow: 0 -8px 24px rgba(13, 42, 31, .06);
}
.pd-grabber { width: 38px; height: 4px; border-radius: 4px; background: var(--cb-line-2); margin: -10px auto 16px; }
.pd-meta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 10px; }
.pd-tag {
    display: inline-flex; align-items: center; gap: 5px; padding: 6px 10px; border-radius: 999px;
    font: 700 11.5px/1 'Inter', sans-serif; background: var(--cb-surface-2); color: var(--cb-ink-2);
}
.pd-tag svg { width: 13px; height: 13px; }
.pd-tag.green { background: var(--cb-mint-soft); color: var(--cb-forest); }
html[data-theme="dark"] .pd-tag.green { color: var(--cb-mint); }
.pd-tag.gold { background: #fff1cf; color: #7a5200; }
.pd-tag.red { background: var(--cb-danger-bg); color: var(--cb-danger); }
html[data-theme="dark"] .pd-tag.gold { background: rgba(242, 181, 68, .16); color: #f6cf7a; }
.product-detail-modal .product-detail-name, .quick-sell-detail .quick-sell-detail-name {
    margin: 0 0 8px !important; font: 700 1.45rem/1.22 'Poppins', sans-serif !important; letter-spacing: -.02em; color: var(--cb-ink) !important;
}
.pd-price-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.product-detail-modal .product-detail-price, .quick-sell-detail .quick-sell-detail-price {
    margin: 0 !important; font: 700 1.75rem/1 'Poppins', sans-serif !important; letter-spacing: -.02em; color: var(--cb-forest) !important;
}
html[data-theme="dark"] .product-detail-modal .product-detail-price, html[data-theme="dark"] .quick-sell-detail .quick-sell-detail-price { color: var(--cb-mint) !important; }
.pd-views { display: inline-flex; align-items: center; gap: 5px; font: 500 12.5px 'Inter', sans-serif; color: var(--cb-mute); }
.pd-views svg { width: 15px; height: 15px; }
.pd-specs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 20px; }
.pd-spec { padding: 12px 12px 11px; border-radius: 16px; background: var(--cb-surface-3); border: 1px solid var(--cb-line); min-width: 0; }
.pd-spec i { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 10px; background: var(--cb-mint-soft); color: var(--cb-forest); margin-bottom: 9px; }
html[data-theme="dark"] .pd-spec i { color: var(--cb-mint); }
.pd-spec i svg { width: 16px; height: 16px; }
.pd-spec small { display: block; font: 600 10.5px 'Inter', sans-serif; letter-spacing: .06em; text-transform: uppercase; color: var(--cb-mute); }
.pd-spec b { display: block; margin-top: 3px; font: 600 13.5px/1.3 'Inter', sans-serif; color: var(--cb-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pd-block { margin-bottom: 20px; }
.product-detail-modal .pd-section-label, .quick-sell-detail .pd-section-label {
    margin: 0 0 8px !important; font: 700 12px 'Inter', sans-serif !important; letter-spacing: .07em; text-transform: uppercase; color: var(--cb-mute) !important;
}
.product-detail-modal .product-detail-desc, .quick-sell-detail .quick-sell-detail-desc {
    margin: 0 !important; font: 400 15px/1.65 'Inter', sans-serif !important; color: var(--cb-ink-2) !important; white-space: pre-line; word-break: break-word;
}
.pd-desc-wrap { position: relative; }
.pd-desc-wrap.clamped .product-detail-desc, .pd-desc-wrap.clamped .quick-sell-detail-desc { max-height: 7.4em; overflow: hidden; -webkit-mask: linear-gradient(#000 55%, transparent); mask: linear-gradient(#000 55%, transparent); }
.pd-more { border: 0; background: none; padding: 6px 0 0; font: 700 13.5px 'Inter', sans-serif; color: var(--cb-forest); cursor: pointer; }
html[data-theme="dark"] .pd-more { color: var(--cb-mint); }
.product-detail-modal .product-seller-card {
    display: flex; align-items: center; gap: 12px; padding: 14px !important; margin: 0 0 14px !important;
    border-radius: 20px !important; background: var(--cb-surface) !important; border: 1px solid var(--cb-line) !important; box-shadow: none !important;
}
.product-detail-modal .product-seller-avatar {
    width: 48px !important; height: 48px !important; border-radius: 16px !important; flex: none;
    background: linear-gradient(145deg, #2d7a5f, #1e4d3b) !important; color: #fff !important;
    font: 700 1.1rem 'Poppins', sans-serif !important; display: grid !important; place-items: center;
}
.pd-seller-name { display: flex; align-items: center; gap: 5px; font: 700 15px 'Inter', sans-serif; color: var(--cb-ink); min-width: 0; }
.pd-seller-name span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pd-seller-name svg { width: 16px; height: 16px; flex: none; }
.pd-seller-sub { font: 500 12.5px 'Inter', sans-serif; color: var(--cb-mute); margin-top: 2px; }
.pd-seller-btn { flex: none; margin-left: auto; height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--cb-line-2); background: var(--cb-surface); color: var(--cb-ink); font: 600 13px 'Inter', sans-serif; cursor: pointer; }
.pd-protect {
    display: flex; gap: 12px; align-items: flex-start; padding: 14px 15px; margin-bottom: 14px; border-radius: 20px;
    background: linear-gradient(135deg, rgba(30, 77, 59, .08), rgba(143, 211, 176, .16)); color: var(--cb-ink);
}
html[data-theme="dark"] .pd-protect { background: linear-gradient(135deg, rgba(143, 211, 176, .1), rgba(143, 211, 176, .04)); }
.pd-protect i { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--cb-forest); color: #fff; }
html[data-theme="dark"] .pd-protect i { background: var(--cb-mint); color: var(--cb-deep); }
.pd-protect i svg { width: 20px; height: 20px; }
.pd-protect b { display: block; font: 700 14px 'Inter', sans-serif; }
.pd-protect span { display: block; margin-top: 2px; font: 500 12.5px/1.5 'Inter', sans-serif; color: var(--cb-mute); }
.product-detail-modal .pd-delivery-section { border-radius: 20px !important; border: 1px solid var(--cb-line) !important; background: var(--cb-surface) !important; overflow: hidden; margin-bottom: 14px !important; }
.product-detail-modal .pd-delivery-toggle { padding: 15px 16px !important; font: 600 14px 'Inter', sans-serif !important; color: var(--cb-ink) !important; background: transparent !important; }
.pd-owner { padding: 16px; margin-bottom: 14px; border-radius: 20px; background: var(--cb-mint-soft); }
.pd-owner b { display: block; font: 700 15px 'Poppins', sans-serif; color: var(--cb-ink); margin-bottom: 10px; }
.pd-owner-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pd-btn { height: 46px; border-radius: 14px; border: 0; cursor: pointer; font: 600 14px 'Inter', sans-serif; display: flex; align-items: center; justify-content: center; gap: 8px; }
.pd-btn svg { width: 17px; height: 17px; }
.pd-btn.primary { background: var(--cb-forest); color: #fff; }
.pd-btn.danger { background: var(--cb-danger-bg); color: var(--cb-danger); }
html[data-theme="dark"] .pd-btn.primary { background: var(--cb-mint); color: var(--cb-deep); }
.pd-comments { margin-top: 8px; padding-top: 18px; border-top: 1px solid var(--cb-line); }
.pd-comments-head { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; font: 700 15px 'Poppins', sans-serif; color: var(--cb-ink); }
.pd-comments-head span { font: 600 12px 'Inter', sans-serif; padding: 3px 8px; border-radius: 999px; background: var(--cb-surface-2); color: var(--cb-mute); }
.pd-comment-box { display: flex; gap: 8px; margin-bottom: 14px; }
.pd-comment-box input {
    flex: 1; min-width: 0; height: 46px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--cb-line-2) !important;
    background: var(--cb-surface-2) !important; font: 500 15px 'Inter', sans-serif; color: var(--cb-ink) !important; outline: none;
}
.pd-comment-box input:focus { border-color: var(--cb-forest) !important; background: var(--cb-surface) !important; }
.pd-comment-box button { flex: none; width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer; background: var(--cb-forest); color: #fff; display: grid; place-items: center; }
.pd-comment-box button svg { width: 19px; height: 19px; }
html[data-theme="dark"] .pd-comment-box button { background: var(--cb-mint); color: var(--cb-deep); }
.pd-login-note { font: 500 13.5px 'Inter', sans-serif; color: var(--cb-mute); margin: 0 0 12px; }
.pd-buybar {
    position: sticky; bottom: 0; z-index: 6; display: flex; align-items: center; gap: 14px;
    padding: 12px 18px calc(12px + env(safe-area-inset-bottom, 0px));
    background: rgba(255, 255, 255, .92); -webkit-backdrop-filter: blur(16px) saturate(1.5); backdrop-filter: blur(16px) saturate(1.5);
    border-top: 1px solid var(--cb-line); margin-top: 18px;
}
html[data-theme="dark"] .pd-buybar { background: rgba(17, 19, 18, .9); }
.pd-buybar-price { min-width: 0; }
.pd-buybar-price small { display: block; font: 600 11.5px 'Inter', sans-serif; color: var(--cb-mute); }
.pd-buybar-price b { display: block; font: 700 1.2rem/1.2 'Poppins', sans-serif; letter-spacing: -.01em; color: var(--cb-ink); white-space: nowrap; }
.pd-buy {
    flex: 1; height: 54px; border: 0; border-radius: 17px; cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 9px;
    background: var(--cb-forest); color: #fff; font: 600 15.5px 'Poppins', sans-serif;
    box-shadow: 0 10px 22px rgba(30, 77, 59, .28); transition: transform .2s var(--cb-ease);
}
.pd-buy svg { width: 19px; height: 19px; }
.pd-buy:active { transform: scale(.97); }
.pd-buy[disabled] { opacity: .5; box-shadow: none; cursor: default; }
html[data-theme="dark"] .pd-buy { background: var(--cb-mint); color: var(--cb-deep); box-shadow: none; }
.pd-soldbar { flex: 1; text-align: center; padding: 15px; border-radius: 16px; background: var(--cb-danger-bg); color: var(--cb-danger); font: 700 14.5px 'Inter', sans-serif; }

/* quick sell detail — full sheet in the same language */
.quick-sell-detail { background: rgba(12, 18, 15, .5) !important; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); align-items: flex-end !important; }
.quick-sell-detail-content {
    position: relative; max-width: 620px !important; max-height: 94vh !important; padding-bottom: 0 !important;
    background: var(--cb-surface) !important; border-radius: 30px 30px 0 0 !important;
    animation: cbSheetUp .45s var(--cb-ease) !important; overscroll-behavior: contain;
}
.quick-sell-detail-image { display: block; width: 100%; height: auto !important; aspect-ratio: 4 / 3.4; max-height: 52vh; object-fit: cover; border-radius: 30px 30px 0 0 !important; background: var(--cb-surface-2); }
.qs-detail-top { position: absolute; z-index: 5; top: 14px; left: 14px; right: 14px; display: flex; justify-content: space-between; pointer-events: none; }
.qs-detail-top > * { pointer-events: auto; }
.quick-sell-detail .quick-sell-detail-body { position: relative; z-index: 3; margin-top: -26px; padding: 22px 20px 4px !important; border-radius: 26px 26px 0 0; background: var(--cb-surface); }
.qs-expiry { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 16px; background: #fff6e0; color: #7a5200; font: 600 13px 'Inter', sans-serif; margin-bottom: 18px; }
.qs-expiry svg { width: 18px; height: 18px; flex: none; }
html[data-theme="dark"] .qs-expiry { background: rgba(242, 181, 68, .12); color: #f6cf7a; }
@keyframes cbSheetUp { from { transform: translateY(100%); } to { transform: none; } }

/* ---------------------------------------------------------------------
   9. SHEETS + FORMS (add choice, quick sell, add product)
--------------------------------------------------------------------- */
.add-choice-modal, .quick-sell-form-modal { background: rgba(12, 18, 15, .5) !important; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); justify-content: center; }
.add-choice-content {
    max-width: 560px; margin: 0 auto; padding: 12px 18px calc(24px + env(safe-area-inset-bottom, 0px)) !important;
    background: var(--cb-surface) !important; border-radius: 30px 30px 0 0 !important; animation: cbSheetUp .42s var(--cb-ease) !important;
}
.sheet-grabber { width: 38px; height: 4px; border-radius: 4px; background: var(--cb-line-2); margin: 0 auto 18px; }
.add-choice-title { margin: 0 4px 4px !important; text-align: left !important; font: 700 1.3rem 'Poppins', sans-serif !important; letter-spacing: -.02em; color: var(--cb-ink) !important; }
.add-choice-sub { margin: 0 4px 18px; font: 500 13.5px 'Inter', sans-serif; color: var(--cb-mute); }
.add-choice-option {
    position: relative; display: flex !important; align-items: center; gap: 14px; padding: 16px !important; margin-bottom: 10px !important;
    border-radius: 22px !important; background: var(--cb-surface-3) !important; border: 1px solid var(--cb-line) !important;
    box-shadow: none !important; transition: transform .2s var(--cb-ease), border-color .2s !important; cursor: pointer;
}
.add-choice-option:active { transform: scale(.98); border-color: var(--cb-forest) !important; }
.add-choice-icon { flex: none; width: 56px !important; height: 56px !important; border-radius: 18px !important; display: grid !important; place-items: center; font-size: 0 !important; }
.add-choice-icon svg { width: 26px; height: 26px; }
.add-choice-icon.business { background: var(--cb-forest) !important; color: #fff; }
.add-choice-icon.quick { background: var(--cb-gold) !important; color: #1b1404; }
.add-choice-text { flex: 1; min-width: 0; }
.add-choice-text h4 { margin: 0 0 3px !important; font: 700 15.5px 'Poppins', sans-serif !important; text-transform: none !important; letter-spacing: -.01em !important; color: var(--cb-ink) !important; }
.add-choice-text p { margin: 0 !important; font: 500 12.5px/1.45 'Inter', sans-serif !important; color: var(--cb-mute) !important; }
.add-choice-meta { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.add-choice-meta span { padding: 4px 8px; border-radius: 999px; background: var(--cb-surface); border: 1px solid var(--cb-line); font: 600 10.5px 'Inter', sans-serif; color: var(--cb-ink-2); }
.add-choice-chev { flex: none; color: var(--cb-faint); }
.add-choice-chev svg { width: 20px; height: 20px; }
.add-choice-cancel { margin-top: 6px !important; height: 50px; border-radius: 16px !important; background: var(--cb-surface-2) !important; color: var(--cb-ink-2) !important; font: 600 15px 'Inter', sans-serif !important; }

.quick-sell-form-content {
    position: relative; max-width: 620px; margin: 0 auto; padding: 0 !important; max-height: 94vh !important;
    background: var(--cb-surface-3) !important; border-radius: 30px 30px 0 0 !important; animation: cbSheetUp .45s var(--cb-ease) !important;
    overscroll-behavior: contain;
}
.sheet-head {
    position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 12px; padding: 12px 18px 14px;
    background: rgba(250, 247, 241, .9); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--cb-line);
}
html[data-theme="dark"] .sheet-head { background: rgba(11, 12, 12, .88); }
.sheet-head .sheet-grabber { position: absolute; left: 50%; top: 7px; margin: 0 0 0 -19px; }
.sheet-head-ico { flex: none; display: grid; place-items: center; width: 40px; height: 40px; margin-top: 6px; border-radius: 13px; background: var(--cb-gold); color: #1b1404; }
.sheet-head-ico svg { width: 20px; height: 20px; }
.sheet-head-ico.green { background: var(--cb-forest); color: #fff; }
.sheet-head h3 { margin: 6px 0 0 !important; font: 700 1.15rem/1.15 'Poppins', sans-serif !important; color: var(--cb-ink) !important; }
.sheet-head p { margin: 2px 0 0; font: 500 12.5px 'Inter', sans-serif; color: var(--cb-mute); }
.sheet-close { margin-left: auto; margin-top: 6px; flex: none; width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--cb-surface-2); color: var(--cb-ink-2); display: grid; place-items: center; cursor: pointer; }
.sheet-close svg { width: 18px; height: 18px; }
.sheet-body { padding: 16px 16px 8px; }

.cb-form { display: flex; flex-direction: column; gap: 14px; }
.cb-card { padding: 16px; border-radius: 22px; background: var(--cb-surface); border: 1px solid var(--cb-line); }
.cb-card-title { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; font: 700 14.5px 'Poppins', sans-serif; color: var(--cb-ink); }
.cb-card-title small { margin-left: auto; font: 600 11.5px 'Inter', sans-serif; color: var(--cb-mute); }
.cb-card-title .n { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; background: var(--cb-mint-soft); color: var(--cb-forest); font: 700 11.5px 'Inter', sans-serif; }
html[data-theme="dark"] .cb-card-title .n { color: var(--cb-mint); }
.cb-field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 14px; }
.cb-field:last-child { margin-bottom: 0; }
.cb-label { display: flex; justify-content: space-between; align-items: baseline; font: 600 13px 'Inter', sans-serif; color: var(--cb-ink-2); }
.cb-label em { font-style: normal; font-weight: 500; font-size: 11.5px; color: var(--cb-faint); }
.cb-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cb-form .form-input, .cb-input {
    width: 100%; height: 50px; padding: 0 15px; box-sizing: border-box; border-radius: 15px !important;
    background: var(--cb-surface-2) !important; border: 1.5px solid transparent !important; box-shadow: none !important;
    font: 500 15.5px 'Inter', sans-serif !important; color: var(--cb-ink) !important; outline: none;
    transition: border-color .2s, background .2s, box-shadow .2s;
}
.cb-form textarea.form-input { height: 112px; padding: 13px 15px; resize: none; line-height: 1.5; }
.cb-form .form-input:focus { border-color: var(--cb-forest) !important; background: var(--cb-surface) !important; box-shadow: 0 0 0 4px rgba(30, 77, 59, .1) !important; }
html[data-theme="dark"] .cb-form .form-input { background: var(--cb-surface-2) !important; border-color: transparent !important; }
html[data-theme="dark"] .cb-form .form-input:focus { border-color: var(--cb-mint) !important; background: var(--cb-surface) !important; }
.cb-form .form-input::placeholder { color: var(--cb-faint) !important; }
.cb-form .form-input.invalid { border-color: var(--cb-danger) !important; animation: cbShake .38s ease; }
.cb-affix { position: relative; }
.cb-affix > b { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); font: 600 15.5px 'Inter', sans-serif; color: var(--cb-mute); pointer-events: none; }
.cb-affix > .form-input { padding-left: 34px; }
.cb-affix.phone > b { font-size: 14px; }
.cb-affix.phone > .form-input { padding-left: 62px; }
.cb-hint { font: 500 11.5px/1.5 'Inter', sans-serif; color: var(--cb-mute); }
.cb-hint.warn { display: flex; gap: 6px; color: #9a3412; }
html[data-theme="dark"] .cb-hint.warn { color: #fdba74; }
.cb-hint.warn svg { width: 14px; height: 14px; flex: none; margin-top: 1px; }
.cb-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.cb-chips button {
    display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 13px; border-radius: 999px; cursor: pointer;
    background: var(--cb-surface-2); border: 1.5px solid transparent; color: var(--cb-ink-2); font: 600 13px 'Inter', sans-serif;
    transition: background .2s, color .2s, border-color .2s, transform .2s var(--cb-spring);
}
.cb-chips button:active { transform: scale(.95); }
.cb-chips button.on { background: var(--cb-forest); color: #fff; }
html[data-theme="dark"] .cb-chips button.on { background: var(--cb-mint); color: var(--cb-deep); }
.cb-chips.invalid button { border-color: rgba(194, 65, 45, .4); }
.cb-chips .material-symbols-outlined { font-size: 17px; }
.cb-stepper { display: flex; align-items: center; height: 50px; border-radius: 15px; background: var(--cb-surface-2); overflow: hidden; }
.cb-stepper button { flex: none; width: 48px; height: 100%; border: 0; background: none; color: var(--cb-ink); cursor: pointer; display: grid; place-items: center; }
.cb-stepper button svg { width: 18px; height: 18px; }
.cb-stepper input { flex: 1; min-width: 0; height: 100%; border: 0 !important; background: transparent !important; text-align: center; font: 700 16px 'Poppins', sans-serif; color: var(--cb-ink) !important; outline: none; -moz-appearance: textfield; }
.cb-stepper input::-webkit-outer-spin-button, .cb-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.cb-photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.cb-photo-add {
    aspect-ratio: 1; border-radius: 18px; border: 1.5px dashed rgba(30, 77, 59, .35); background: var(--cb-mint-soft);
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; cursor: pointer; color: var(--cb-forest);
    font: 600 12px 'Inter', sans-serif; transition: transform .2s var(--cb-spring);
}
html[data-theme="dark"] .cb-photo-add { color: var(--cb-mint); border-color: rgba(143, 211, 176, .3); }
.cb-photo-add:active { transform: scale(.96); }
.cb-photo-add svg { width: 26px; height: 26px; }
.cb-photos .upload-preview-grid { display: contents !important; }
.cb-photos .upload-preview-item, .cb-photo { position: relative; aspect-ratio: 1; border-radius: 18px; overflow: hidden; background: var(--cb-surface-2); width: auto !important; height: auto !important; }
.cb-photos .upload-preview-item img, .cb-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cb-photos .upload-preview-remove, .cb-photo button {
    position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; border-radius: 50%; border: 0;
    background: rgba(0, 0, 0, .6); color: #fff; font-size: 12px; line-height: 1; cursor: pointer; display: grid; place-items: center;
}
.cb-photo-busy { display: grid; place-items: center; width: 100%; height: 100%; }
.cb-photo-busy::after { content: ''; width: 24px; height: 24px; border-radius: 50%; border: 2.5px solid var(--cb-line-2); border-top-color: var(--cb-forest); animation: cbSpin .7s linear infinite; }
.cb-upload-note { display: none; margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: #fff6e0; color: #7a5200; font: 600 12.5px 'Inter', sans-serif; }
html[data-theme="dark"] .cb-upload-note { background: rgba(242, 181, 68, .12); color: #f6cf7a; }
.cb-qs-photo { display: block; }
.cb-qs-photo .cb-photo-add { aspect-ratio: 16 / 9; }
.cb-qs-photo .cb-photo { aspect-ratio: 16 / 9; }
.cb-submitbar {
    position: sticky; bottom: 0; z-index: 5; padding: 12px 16px calc(14px + env(safe-area-inset-bottom, 0px));
    background: linear-gradient(to top, var(--cb-surface-3) 72%, rgba(250, 247, 241, 0));
}
html[data-theme="dark"] .cb-submitbar { background: linear-gradient(to top, var(--cb-surface-3) 72%, rgba(11, 12, 12, 0)); }
.cb-submit {
    width: 100%; height: 56px; border: 0; border-radius: 18px; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px;
    background: var(--cb-forest); color: #fff; font: 600 16px 'Poppins', sans-serif; box-shadow: 0 12px 24px rgba(30, 77, 59, .26);
    transition: transform .2s var(--cb-ease), opacity .2s;
}
.cb-submit svg { width: 20px; height: 20px; }
.cb-submit:active { transform: scale(.98); }
.cb-submit[disabled] { opacity: .55; cursor: not-allowed; }
.cb-submit.gold { background: var(--cb-gold); color: #1b1404; box-shadow: 0 12px 24px rgba(201, 138, 23, .28); }
html[data-theme="dark"] .cb-submit:not(.gold) { background: var(--cb-mint); color: var(--cb-deep); box-shadow: none; }

/* Add-product page */
#add-screen { padding: 0 !important; padding-bottom: 0 !important; }
.add-page { background: var(--cb-surface-3); min-height: 100vh; }
.add-page-head { padding: 6px 18px 14px; }
.add-page-head h2 { margin: 0 0 4px; font: 700 1.55rem/1.15 'Poppins', sans-serif; letter-spacing: -.025em; color: var(--cb-ink) !important; }
.add-page-head p { margin: 0; font: 500 13.5px 'Inter', sans-serif; color: var(--cb-mute); }
.add-quota { display: flex; align-items: center; gap: 12px; margin: 14px 0 0; padding: 12px 14px; border-radius: 18px; background: var(--cb-surface); border: 1px solid var(--cb-line); }
.add-quota-bar { flex: 1; height: 7px; border-radius: 7px; background: var(--cb-surface-2); overflow: hidden; }
.add-quota-bar i { display: block; height: 100%; border-radius: inherit; background: var(--cb-forest); }
html[data-theme="dark"] .add-quota-bar i { background: var(--cb-mint); }
.add-quota span { font: 600 12.5px 'Inter', sans-serif; color: var(--cb-ink-2); white-space: nowrap; }
.add-quota button { border: 0; background: none; padding: 0; font: 700 12.5px 'Inter', sans-serif; color: var(--cb-gold-deep); cursor: pointer; }
.add-quota.premium { background: linear-gradient(135deg, #f9e3a8, #e8c766); border: 0; }
.add-quota.premium span { color: #4a3304; }
.add-page .sheet-body { padding-bottom: 0; }
.add-page .cb-submitbar { bottom: calc(86px + env(safe-area-inset-bottom, 0px)); background: transparent; padding-bottom: 12px; }
.add-state { padding: 54px 26px; text-align: center; }
.add-state i { display: inline-grid; place-items: center; width: 84px; height: 84px; border-radius: 28px; background: var(--cb-mint-soft); color: var(--cb-forest); margin-bottom: 18px; }
html[data-theme="dark"] .add-state i { color: var(--cb-mint); }
.add-state i svg { width: 40px; height: 40px; }
.add-state h3 { margin: 0 0 8px; font: 700 1.35rem 'Poppins', sans-serif; color: var(--cb-ink) !important; }
.add-state p { margin: 0 auto 24px; max-width: 300px; font: 500 14px/1.6 'Inter', sans-serif; color: var(--cb-mute); }
.add-state .cb-submit { max-width: 340px; margin: 0 auto 10px; }
.cb-ghost { width: 100%; max-width: 340px; height: 52px; margin: 0 auto; border: 0; border-radius: 17px; background: var(--cb-surface-2); color: var(--cb-ink-2); font: 600 15px 'Inter', sans-serif; cursor: pointer; display: block; }

/* ---------------------------------------------------------------------
   10. TOASTS
--------------------------------------------------------------------- */
#cb-toast-host { position: fixed; left: 0; right: 0; top: max(14px, env(safe-area-inset-top, 0px)); z-index: 400000; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; }
.cb-toast {
    max-width: calc(100% - 40px); padding: 12px 18px; border-radius: 999px; background: #15201b; color: #fff;
    font: 600 13.5px/1.35 'Inter', sans-serif; box-shadow: 0 14px 30px rgba(0, 0, 0, .25);
    opacity: 0; transform: translateY(-14px) scale(.96); transition: opacity .25s, transform .35s var(--cb-spring);
}
.cb-toast.in { opacity: 1; transform: none; }
.cb-toast.out { opacity: 0; transform: translateY(-8px); }
.cb-toast--ok { background: var(--cb-forest); }
.cb-toast--err { background: #a8331f; }
html[data-theme="dark"] .cb-toast { background: #f3f1ec; color: #15201b; }
html[data-theme="dark"] .cb-toast--ok { background: var(--cb-mint); color: var(--cb-deep); }
html[data-theme="dark"] .cb-toast--err { background: #ff9b86; color: #2a0a04; }

/* ---------------------------------------------------------------------
   11. REDUCED MOTION
--------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    .cb-splash *, .tutorial-overlay *, .auth-screen *, .otp-card *, .bottom-nav * {
        animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
    .cb-arc-path { stroke-dashoffset: 0; }
    .otp-ring { animation: none !important; }
}

/* comments */
.pd-comment { display: flex; gap: 11px; padding: 12px 0; border-bottom: 1px solid var(--cb-line); }
.pd-comment:last-child { border-bottom: 0; }
.pd-comment-av { flex: none; width: 34px; height: 34px; border-radius: 12px; display: grid; place-items: center; background: var(--cb-surface-2); color: var(--cb-ink-2); font: 700 13px 'Poppins', sans-serif; }
.pd-comment-main { flex: 1; min-width: 0; }
.pd-comment-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font: 500 12px 'Inter', sans-serif; color: var(--cb-mute); }
.pd-comment-meta b { font-weight: 700; font-size: 13.5px; color: var(--cb-ink); }
.pd-comment-meta time { margin-left: auto; }
.pd-owner-tag { padding: 2px 7px; border-radius: 999px; background: var(--cb-mint-soft); color: var(--cb-forest); font: 700 10.5px 'Inter', sans-serif; }
html[data-theme="dark"] .pd-owner-tag { color: var(--cb-mint); }
.pd-comment-text { margin-top: 3px; font: 400 14.5px/1.5 'Inter', sans-serif; color: var(--cb-ink-2); word-break: break-word; white-space: pre-line; }
.pd-reply-btn { margin-top: 4px; padding: 4px 0; border: 0; background: none; font: 700 12.5px 'Inter', sans-serif; color: var(--cb-forest); cursor: pointer; }
html[data-theme="dark"] .pd-reply-btn { color: var(--cb-mint); }
.pd-comment-reply { margin-top: 10px; padding: 10px 12px; border-radius: 14px; background: var(--cb-surface-3); border: 1px solid var(--cb-line); }

/* auth scene palette (light = golden hour, dark = night campus) */
.auth-scene .as-sky1 { stop-color: #b9e0cc; } .auth-scene .as-sky2 { stop-color: #f4efe2; }
.auth-scene .as-sun1 { stop-color: #ffe7a6; } .auth-scene .as-sun2 { stop-color: #ffe7a6; stop-opacity: 0; }
.auth-scene .as-sunc { fill: #f8d37a; }
.auth-scene .as-stars { fill: #fff; opacity: 0; }
.auth-scene .as-cloud { fill: #fff; opacity: .9; }
.auth-scene .as-bird { fill: none; stroke: #3b5a4c; stroke-width: 1.4; stroke-linecap: round; opacity: .7; }
.auth-scene .as-far { fill: #a7cfb8; } .auth-scene .as-mid { fill: #7db597; }
.auth-scene .as-wall { fill: #fbf7ee; } .auth-scene .as-wall2 { fill: #efe6d4; }
.auth-scene .as-roof { fill: #c9573d; } .auth-scene .as-roof2 { fill: #e8dcc4; }
.auth-scene .as-trim { fill: #ded1b6; } .auth-scene .as-col { fill: #efe6d4; } .auth-scene .as-step { fill: #d3c5a7; }
.auth-scene .as-win { fill: #b8d3c4; } .auth-scene .as-door { fill: #1e4d3b; }
.auth-scene .as-pole { stroke: #6b6458; stroke-width: 1.5; }
.auth-scene .as-clock { fill: #fff; stroke: #c9b996; stroke-width: 1.5; } .auth-scene .as-hands { stroke: #15201b; stroke-width: 1.4; stroke-linecap: round; fill: none; }
.auth-scene .as-trunk { fill: #7a5a3c; } .auth-scene .as-tree1 { fill: #2f7d5f; } .auth-scene .as-tree2 { fill: #4a9b78; }
.auth-scene .as-ground { fill: #5a9d7e; } .auth-scene .as-path { fill: #eadfc6; opacity: .9; }
.auth-scene .as-post { fill: #6b4f35; } .auth-scene .as-awn1 { fill: #1e4d3b; } .auth-scene .as-awn2 { fill: #f8f4ec; } .auth-scene .as-counter { fill: #a2774f; }
html[data-theme="dark"] .auth-scene .as-sky1 { stop-color: #08140f; } html[data-theme="dark"] .auth-scene .as-sky2 { stop-color: #173328; }
html[data-theme="dark"] .auth-scene .as-sun1 { stop-color: #e9f5e3; stop-opacity: .5; } html[data-theme="dark"] .auth-scene .as-sun2 { stop-color: #e9f5e3; }
html[data-theme="dark"] .auth-scene .as-sunc { fill: #eef6e6; }
html[data-theme="dark"] .auth-scene .as-stars { opacity: .8; }
html[data-theme="dark"] .auth-scene .as-cloud { fill: #2a4a3d; opacity: .7; }
html[data-theme="dark"] .auth-scene .as-bird { opacity: 0; }
html[data-theme="dark"] .auth-scene .as-far { fill: #15392b; } html[data-theme="dark"] .auth-scene .as-mid { fill: #102e23; }
html[data-theme="dark"] .auth-scene .as-wall { fill: #2a302c; } html[data-theme="dark"] .auth-scene .as-wall2 { fill: #232825; }
html[data-theme="dark"] .auth-scene .as-roof { fill: #6f2f22; } html[data-theme="dark"] .auth-scene .as-roof2 { fill: #353b37; }
html[data-theme="dark"] .auth-scene .as-trim, html[data-theme="dark"] .auth-scene .as-step { fill: #3c433f; } html[data-theme="dark"] .auth-scene .as-col { fill: #353b37; }
html[data-theme="dark"] .auth-scene .as-win { fill: #f6cf7a; } html[data-theme="dark"] .auth-scene .as-door { fill: #f2b544; }
html[data-theme="dark"] .auth-scene .as-tree1 { fill: #123d2d; } html[data-theme="dark"] .auth-scene .as-tree2 { fill: #18493a; }
html[data-theme="dark"] .auth-scene .as-ground { fill: #0d281e; } html[data-theme="dark"] .auth-scene .as-path { fill: #2b332e; }
html[data-theme="dark"] .auth-scene .as-awn2 { fill: #c9c2b2; }

/* --- fixes after first visual pass --- */
.cb-affix > b { z-index: 1; }
.pd-spec b { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
/* Add-product is a focused task: the dock steps aside and the CTA pins to the bottom */
.bottom-nav { transition: transform .45s var(--cb-ease), opacity .3s ease; }
body[data-tab="add"] .bottom-nav { transform: translate(-50%, 160%); opacity: 0; pointer-events: none; }
body[data-tab="add"] { padding-bottom: 0; }
.add-page .cb-submitbar { bottom: 0 !important; background: linear-gradient(to top, var(--cb-surface-3) 70%, rgba(250, 247, 241, 0)) !important; padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px)) !important; }
html[data-theme="dark"] .add-page .cb-submitbar { background: linear-gradient(to top, var(--cb-surface-3) 70%, rgba(11, 12, 12, 0)) !important; }
.add-page-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.add-page-top .sheet-close { margin: 0; }
.add-page-top .add-step { font: 600 12px 'Inter', sans-serif; color: var(--cb-mute); }
/* Active dock item carries its own pill (expands with the label — no measuring) */
.nav-pill { display: none !important; }
.bottom-nav .nav-item { transition: color .3s ease, padding .5s var(--cb-ease), gap .5s var(--cb-ease), background-color .35s ease, box-shadow .35s ease !important; }
.bottom-nav .nav-item.active:not(.nav-fab-btn) { background: var(--cb-forest) !important; box-shadow: 0 6px 16px rgba(30, 77, 59, .3); }
html[data-theme="dark"] .bottom-nav .nav-item.active:not(.nav-fab-btn) { background: var(--cb-mint) !important; box-shadow: none; }
.bottom-nav .nav-fab-btn.active { background: transparent !important; box-shadow: none !important; }

/* --- intro performance: no full-screen repaints while swiping --- */
.tutorial-overlay { transition: opacity .35s ease !important; background: #f3eee4; }
html[data-theme="dark"] .tutorial-overlay { background: #0a0d0c; }
.tt-bg::before, .tt-bg::after {
    content: ''; position: absolute; inset: 0; opacity: 0; transition: opacity .6s ease; will-change: opacity;
}
.tt-bg::before { background: #e8f0e9; }
.tt-bg::after { background: #f6eddc; }
html[data-theme="dark"] .tt-bg::before { background: #08100c; }
html[data-theme="dark"] .tt-bg::after { background: #0f0d08; }
.tutorial-overlay[data-slide="1"] .tt-bg::before { opacity: 1; }
.tutorial-overlay[data-slide="2"] .tt-bg::after { opacity: 1; }
.tt-blob { z-index: 1; will-change: transform; }
.tt-card-sheen { left: 0 !important; transform: translateX(-130%) rotate(20deg); }
@keyframes ttSheen { from { transform: translateX(-130%) rotate(20deg); } to { transform: translateX(420%) rotate(20deg); } }
/* steps: scale on the GPU, colour change via a pre-painted layer that fades in */
.tt-step i { position: relative; overflow: hidden; }
.tt-step i::after { content: ''; position: absolute; inset: -2px; border-radius: 50%; background: var(--cb-forest); opacity: 0; }
html[data-theme="dark"] .tt-step i::after { background: var(--cb-mint); }
.tt-step i svg { position: relative; z-index: 1; transition: color .2s; }
.tutorial-overlay.is-live .play .tt-step i, html[data-theme="dark"] .tutorial-overlay.is-live .play .tt-step i { animation-name: ttStepPop !important; }
.tutorial-overlay.is-live .play .tt-step i::after { animation: ttStepFill .3s ease both; animation-delay: inherit; }
.tutorial-overlay.is-live .play .tt-step.p1 i::after { animation-delay: .5s; }
.tutorial-overlay.is-live .play .tt-step.p2 i::after { animation-delay: 1.05s; }
.tutorial-overlay.is-live .play .tt-step.p3 i::after { animation-delay: 1.6s; }
.tutorial-overlay.is-live .play .tt-step.p4 i::after { animation-delay: 2.15s; }
.tutorial-overlay.is-live .play .tt-step.p1 i svg { color: #fff; transition-delay: .55s; }
.tutorial-overlay.is-live .play .tt-step.p2 i svg { color: #fff; transition-delay: 1.1s; }
.tutorial-overlay.is-live .play .tt-step.p3 i svg { color: #fff; transition-delay: 1.65s; }
.tutorial-overlay.is-live .play .tt-step.p4 i svg { color: #fff; transition-delay: 2.2s; }
html[data-theme="dark"] .tutorial-overlay.is-live .play .tt-step i svg { color: #0d2a1f; }
@keyframes ttStepPop { 0% { transform: scale(.7); } 60% { transform: scale(1.12); } 100% { transform: scale(1); } }
@keyframes ttStepFill { to { opacity: 1; } }

/* =====================================================================
   12. BUY BAR inside the details sheet (mobile) + search results
   ===================================================================== */
.pd-sheet { padding-bottom: 0; }
.pd-sheet > .pd-buybar { margin: 18px -20px 0; }
.top-nav { display: none; }
.auth-hero-copy { display: none; }
#search-results-panel {
    background: rgba(250, 247, 241, .97) !important; -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
    padding: 16px 16px calc(110px + env(safe-area-inset-bottom, 0px)) !important; bottom: 0 !important;
}
html[data-theme="dark"] #search-results-panel { background: rgba(8, 9, 9, .96) !important; }
#search-panel-label { color: var(--cb-mute) !important; font: 600 13px 'Inter', sans-serif !important; margin: 0 4px 14px !important; }
.search-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }

/* =====================================================================
   13. TABLET  (768px +)
   ===================================================================== */
@media (min-width: 768px) {
    #products-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 16px !important; }
    .search-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .quick-sell-card { flex-basis: 176px !important; width: 176px !important; min-width: 176px !important; }
    .quick-sell-image { height: 168px !important; }

    /* bottom sheets become centred dialogs */
    .add-choice-modal, .quick-sell-form-modal { align-items: center !important; padding: 24px; }
    .add-choice-content, .quick-sell-form-content { width: 100%; border-radius: 28px !important; animation: cbDialogIn .38s var(--cb-ease) !important; }
    .add-choice-content { max-width: 520px; padding: 26px 22px 22px !important; }
    .quick-sell-form-content { max-width: 600px; max-height: 88vh !important; }
    #qs-all-sheet .quick-sell-form-content { max-width: 940px; }
    #qs-all-sheet .sheet-body { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
    .sheet-grabber, .pd-grabber, .auth-grabber { display: none !important; }
    .sheet-head { border-radius: 28px 28px 0 0; padding-top: 16px; }
    .sheet-head-ico, .sheet-head h3, .sheet-close { margin-top: 0 !important; }
    .otp-card { max-width: 420px; }

    /* existing payment / orders sheets */
    .payment-safety-modal, #my-orders-modal, #my-sales-modal, #my-quicksells-modal, #my-products-modal,
    #my-withdrawals-modal, #wallet-history-modal, #edit-phone-modal, #fund-wallet-modal { align-items: center !important; padding: 24px !important; }
    .payment-safety-content, #my-orders-modal > div, #my-sales-modal > div, #my-quicksells-modal > div, #my-products-modal > div,
    #my-withdrawals-modal > div, #wallet-history-modal > div, #edit-phone-modal > div, #fund-wallet-modal > div {
        border-radius: 28px !important; max-height: 88vh; overflow-y: auto;
    }
}
@keyframes cbDialogIn { from { opacity: 0; transform: translateY(18px) scale(.97); } to { opacity: 1; transform: none; } }

/* =====================================================================
   14. DESKTOP  (1024px +)
   ===================================================================== */
@media (min-width: 1024px) {
    :root { --cb-page: 1240px; --cb-gutter: max(28px, calc((100vw - var(--cb-page)) / 2)); }
    body { padding-bottom: 0 !important; }
    .bottom-nav { display: none !important; }

    /* --- top bar: logo · search · links · theme --- */
    .cb-topbar {
        position: sticky; top: 0; z-index: 150;
        display: grid; grid-template-columns: auto minmax(300px, 560px) 1fr auto auto; align-items: center; column-gap: 20px;
        padding: 12px var(--cb-gutter);
        background: rgba(245, 240, 232, .86); -webkit-backdrop-filter: blur(18px) saturate(1.5); backdrop-filter: blur(18px) saturate(1.5);
        border-bottom: 1px solid var(--cb-line);
    }
    html[data-theme="dark"] .cb-topbar { background: rgba(0, 0, 0, .78); }
    header#main-header { display: contents !important; }
    .cb-topbar .header-content { grid-column: 1; grid-row: 1; position: static !important; transform: none !important; flex-direction: row !important; align-items: center !important; gap: 14px !important; cursor: pointer; }
    .cb-topbar .logo { font-size: 30px !important; letter-spacing: 1px !important; }
    .cb-topbar .header-subtitle { margin-top: 4px !important; font-size: 9.5px !important; letter-spacing: 3px !important; }
    .cb-topbar #search-section { grid-column: 2; grid-row: 1; padding: 0 !important; }
    .cb-topbar #search-section .search-bar input { height: 46px; }
    .cb-topbar #search-section .filter-btn { width: 46px; height: 46px; }
    .top-nav { grid-column: 3; grid-row: 1; justify-self: end; display: flex; align-items: center; gap: 4px; }
    .top-link {
        height: 42px; padding: 0 16px; border: 0; border-radius: 999px; cursor: pointer; background: transparent;
        font: 600 14.5px 'Poppins', sans-serif; color: var(--cb-ink-2); transition: background .2s, color .2s; white-space: nowrap;
    }
    .top-link:hover { background: rgba(21, 32, 27, .06); }
    html[data-theme="dark"] .top-link:hover { background: rgba(255, 255, 255, .07); }
    .top-link.active { background: var(--cb-forest); color: #fff; }
    html[data-theme="dark"] .top-link.active { background: var(--cb-mint); color: var(--cb-deep); }
    .top-sell {
        display: inline-flex; align-items: center; gap: 7px; height: 42px; margin-left: 8px; padding: 0 18px 0 14px; border: 0; border-radius: 999px; cursor: pointer;
        background: linear-gradient(150deg, #f6c35a, #e9a227); color: #1b1404; font: 700 14.5px 'Poppins', sans-serif;
        box-shadow: 0 6px 16px rgba(201, 138, 23, .3); transition: transform .2s var(--cb-ease), box-shadow .2s;
    }
    .top-sell svg { width: 17px; height: 17px; }
    .top-sell:hover { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(201, 138, 23, .36); }
    .top-sell.active { box-shadow: 0 0 0 3px var(--cb-surface), 0 0 0 5px #e9a227; }
    .cb-topbar #theme-toggle { grid-column: 4; grid-row: 1; position: static !important; }
    .cb-topbar #header-user-avatar { grid-column: 5; grid-row: 1; position: static !important; }

    /* --- page frame --- */
    .screen { max-width: var(--cb-page) !important; padding: 24px 28px 56px !important; }
    #home-screen { padding-top: 28px !important; }
    .copyright-footer { max-width: var(--cb-page); margin: 0 auto; padding: 28px 28px 36px !important; }

    /* --- home --- */
    .home-hero { min-height: 250px; padding: 44px 52px; border-radius: 32px; }
    .home-hero .hero-copy { max-width: 56%; }
    .home-hero .hero-greeting-label { font-size: 1.05rem !important; }
    .home-hero .hero-greeting-name { font-size: 2.9rem !important; }
    .home-hero .hero-greeting-sub { font-size: 1.05rem !important; }
    .hero-cta { height: 46px; padding: 0 20px 0 16px; font-size: 14.5px; margin-top: 16px; }
    .home-hero .hero-illustration { width: 250px !important; height: 250px !important; right: 50px !important; bottom: -22px !important; }
    .home-hero::before { width: 520px; height: 520px; right: -100px; top: -230px; }
    .home-hero::after { width: 340px; height: 340px; right: 0; top: -120px; }
    .featured-title, .section-head h3, .categories-title { font-size: 1.35rem !important; }
    .featured-section { margin: 12px 0 34px !important; }
    .featured-scroll { gap: 16px !important; }
    .quick-sell-card { flex-basis: 210px !important; width: 210px !important; min-width: 210px !important; }
    .quick-sell-image { height: 196px !important; }
    .categories-section { margin-bottom: 34px !important; }
    .categories-row { flex-wrap: wrap; gap: 12px !important; overflow: visible !important; }
    .category-btn { min-width: 96px !important; }
    .category-icon-circle { width: 68px !important; height: 68px !important; border-radius: 22px !important; }
    #products-grid { grid-template-columns: repeat(auto-fill, minmax(214px, 1fr)) !important; gap: 20px !important; }
    .product-card-name { font-size: 14.5px !important; }
    .product-card-price { font-size: 18px !important; }

    /* --- search results drop-down under the top bar --- */
    #search-results-panel {
        left: calc(50% - min(520px, 50vw - 28px)) !important; right: auto !important; width: min(1040px, calc(100vw - 56px)) !important;
        bottom: auto !important; max-height: 74vh; margin-top: 10px; padding: 20px !important;
        border-radius: 26px; border: 1px solid var(--cb-line); box-shadow: var(--cb-elev-lg);
    }
    .search-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }

    /* --- product page: gallery left, details right --- */
    .product-detail-modal { background: var(--cb-surface-3) !important; }
    .product-detail-modal .product-detail-body {
        max-width: var(--cb-page) !important; margin: 0 auto; padding: 32px 28px 56px !important;
        display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: 48px; align-items: start;
    }
    .pd-hero { position: sticky; top: 32px; border-radius: 30px; overflow: hidden; box-shadow: var(--cb-elev); }
    .pd-hero .pd-gallery, .pd-hero .pd-gallery-empty { max-height: calc(100vh - 64px); }
    .pd-hero .pd-gallery-counter { bottom: 18px !important; }
    .pd-hero .pd-gallery-dots { bottom: 20px !important; }
    .pd-hero .pd-gallery-img { cursor: zoom-in; }
    .pd-sheet { margin: 0; padding: 6px 0 0; border-radius: 0; background: transparent; box-shadow: none; display: flex; flex-direction: column; }
    .pd-sheet > .pd-specs, .pd-sheet > .pd-block, .pd-sheet > .product-seller-card, .pd-sheet > .pd-protect,
    .pd-sheet > .pd-delivery-section, .pd-sheet > .pd-owner, .pd-sheet > .pd-comments { order: 2; }
    .pd-sheet > .pd-buybar {
        order: 1; position: static; margin: 0 0 24px; padding: 18px 20px; border-radius: 22px;
        background: var(--cb-surface) !important; border: 1px solid var(--cb-line); -webkit-backdrop-filter: none; backdrop-filter: none;
    }
    .pd-sheet > .pd-buybar .pd-buy { flex: 0 1 260px; margin-left: auto; }
    .product-detail-modal .product-detail-name { font-size: 2.05rem !important; }
    .product-detail-modal .product-detail-price { font-size: 2.3rem !important; }
    .pd-price-row { margin-bottom: 20px; }
    .pd-specs { gap: 12px; }
    .product-detail-modal .product-seller-card, .pd-protect, .product-detail-modal .pd-delivery-section, .pd-spec { background: var(--cb-surface) !important; }
    .pd-topbar { padding: 18px 18px 0; }

    /* --- quick sell detail: two-panel dialog --- */
    .quick-sell-detail { align-items: center !important; padding: 32px; }
    .quick-sell-detail-content {
        width: 100%; max-width: 1000px !important; height: min(86vh, 700px); max-height: none !important;
        display: grid; grid-template-columns: 1fr 1fr; overflow: hidden !important; border-radius: 30px !important;
        animation: cbDialogIn .4s var(--cb-ease) !important;
    }
    .quick-sell-detail-image { grid-column: 1; grid-row: 1; height: 100% !important; max-height: none !important; aspect-ratio: auto; border-radius: 0 !important; }
    .qs-detail-top { right: auto; width: calc(50% - 28px); }
    .quick-sell-detail .quick-sell-detail-body { grid-column: 2; grid-row: 1; margin: 0 !important; border-radius: 0; overflow-y: auto; padding: 34px 34px 0 !important; }
    .quick-sell-detail .pd-buybar { margin: 18px -34px 0 !important; padding-left: 34px; padding-right: 34px; }

    /* --- login: illustration left, form right --- */
    .auth-screen { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(460px, 1fr); }
    .auth-hero { position: sticky; top: 0; height: 100vh; background: #b9e0cc; }
    html[data-theme="dark"] .auth-hero { background: #08140f; }
    .auth-scene { top: auto; height: 62vh; min-height: 380px; }
    .auth-hero-copy { display: block; position: absolute; z-index: 2; left: 56px; right: 56px; top: 84px; max-width: 470px; }
    .auth-hero-logo { font: 400 32px 'Pacifico', cursive; color: var(--cb-forest); margin-bottom: 14px; }
    html[data-theme="dark"] .auth-hero-logo { color: var(--cb-mint); }
    .auth-hero-copy h2 { margin: 0 0 22px; font: 700 2.35rem/1.12 'Poppins', sans-serif; letter-spacing: -.03em; color: #10241b !important; }
    html[data-theme="dark"] .auth-hero-copy h2 { color: #f3f1ec !important; }
    .auth-hero-copy ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
    .auth-hero-copy li { display: flex; align-items: center; gap: 12px; font: 600 15px 'Inter', sans-serif; color: #24423a; }
    html[data-theme="dark"] .auth-hero-copy li { color: #cfe3d8; }
    .auth-hero-copy li svg { flex: none; width: 36px; height: 36px; padding: 8px; box-sizing: border-box; border-radius: 12px; background: rgba(255, 255, 255, .7); color: var(--cb-forest); }
    html[data-theme="dark"] .auth-hero-copy li svg { background: rgba(143, 211, 176, .12); color: var(--cb-mint); }
    .auth-back { top: 22px; left: 22px; }
    .auth-sheet {
        margin: 0; min-height: 100vh; border-radius: 0; box-shadow: none; padding: 56px 64px;
        display: flex; flex-direction: column; justify-content: center; animation: cbFadeUp .6s var(--cb-ease) both; opacity: 0; transform: translateY(12px);
    }
    .auth-sheet > * { width: 100%; max-width: 420px; }
    .auth-title { font-size: 2rem; }

    /* --- intro slides: picture left, words right --- */
    .tutorial-overlay .ob-top, .tutorial-overlay .ob-bottom { max-width: 1080px; padding-left: 40px; padding-right: 40px; }
    .tutorial-overlay .ob-slide { flex-direction: row; justify-content: center; align-items: center; gap: 64px; padding: 0 40px; }
    .tutorial-overlay .ob-art { flex: 0 0 auto; width: auto; padding: 0; }
    .tutorial-overlay .ob-copy { flex: 0 1 440px; text-align: left; padding: 0; }
    .tutorial-overlay .ob-copy h2 { font-size: 2.75rem; margin-bottom: 14px; }
    .tutorial-overlay .ob-copy p { margin: 0; font-size: 17.5px; max-width: 34ch; }
    .tt-stage { --s: min(470px, 62vh); }

    /* --- add product: two-column form --- */
    #add-screen { padding: 0 28px !important; }
    .add-page { max-width: 1100px; margin: 0 auto; min-height: 0; background: transparent; }
    .add-page-head { padding: 28px 8px 22px; }
    .add-page-head h2 { font-size: 2.1rem; }
    .add-quota { max-width: 520px; }
    .add-page .sheet-body.cb-form { display: block; columns: 2; column-gap: 22px; padding: 0 8px; }
    .add-page .cb-card { break-inside: avoid; margin-bottom: 22px; padding: 22px; }
    .add-page .cb-submitbar { position: static !important; background: none !important; display: flex; justify-content: flex-end; padding: 0 8px 48px !important; }
    .add-page .cb-submit { width: auto; min-width: 280px; padding: 0 36px; }
    .add-state { padding-top: 90px; }

    /* --- profile + forms read better in a column --- */
    #profile-content > div:not(.auth-screen) { max-width: 720px; margin: 0 auto; }
    .quick-sell-form-content { max-width: 640px; }
}

@media (min-width: 1024px) and (hover: hover) {
    .product-card { cursor: pointer; }
    .product-card:hover { transform: translateY(-4px) !important; box-shadow: 0 2px 4px rgba(16, 40, 30, .05), 0 18px 40px rgba(16, 40, 30, .12) !important; }
    .quick-sell-card { cursor: pointer; transition: transform .25s var(--cb-ease), box-shadow .25s !important; }
    .quick-sell-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(16, 40, 30, .12) !important; }
    .category-btn:hover .category-icon-circle { transform: translateY(-3px); }
    .pc-buy:hover, .pd-buy:hover, .cb-submit:hover, .auth-primary:hover { filter: brightness(1.08); }
    .pd-round:hover { transform: scale(1.06); }
    .add-choice-option:hover { border-color: rgba(30, 77, 59, .35) !important; transform: translateY(-2px); }
    .featured-view-all:hover, .pd-seller-btn:hover { background: var(--cb-surface-2) !important; }
    .auth-google:hover { background: var(--cb-surface-2); }
}

@media (min-width: 1440px) {
    #products-grid { grid-template-columns: repeat(5, minmax(0, 1fr)) !important; }
}
#search-panel-grid { display: block !important; }
/* the old "profile card glass" rule targets #profile-content > div > div:first-child — not for the login hero */
#profile-content .auth-screen > .auth-hero {
    background: #d5ebdd !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important;
    -webkit-backdrop-filter: none !important; backdrop-filter: none !important; padding: 0 !important; margin: 0 !important;
}
html[data-theme="dark"] #profile-content .auth-screen > .auth-hero { background: #0c1b15 !important; }
@media (min-width: 1024px) {
    #profile-content .auth-screen > .auth-hero { background: #b9e0cc !important; }
    html[data-theme="dark"] #profile-content .auth-screen > .auth-hero { background: #08140f !important; }
}
@media (min-width: 1024px) {
    .auth-scene { height: min(62vh, calc(100vh - 380px)) !important; min-height: 300px; }
}
@media (min-width: 1024px) and (max-height: 760px) {
    .auth-hero-copy { top: 72px; }
    .auth-hero-copy h2 { font-size: 2rem; margin-bottom: 16px; }
    .auth-hero-copy ul { gap: 8px; }
}
