/* ==========================================================================
   MeoAsk — custom styles (works alongside Tailwind CSS)
   Brand: Orange #FF6A1A · Sky Blue #38BDF8 · Black #050506
   ========================================================================== */

:root {
    --orange: #FF6A1A;
    --orange-2: #FF8A3D;
    --sky: #38BDF8;
    --black: #050506;
    --ink: #0C0C0F;
    --line: rgba(255, 255, 255, .08);
    --ease-out: cubic-bezier(.16, 1, .3, 1);
}

html { -webkit-tap-highlight-color: transparent; }
body { overflow-x: hidden; }
h1, h2, h3, h4, .font-display { font-family: 'Sora', sans-serif; letter-spacing: -.02em; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #08080a; }
::-webkit-scrollbar-thumb { background: #24242b; border-radius: 10px; border: 2px solid #08080a; }
::-webkit-scrollbar-thumb:hover { background: #34343d; }

/* ---------- Page loader ---------- */
#page-loader { position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center; background: var(--black); transition: opacity .6s var(--ease-out), visibility .6s; }
body.loaded #page-loader { opacity: 0; visibility: hidden; }
.loader-mark { display: flex; gap: 8px; }
.loader-mark span { width: 10px; height: 10px; border-radius: 50%; background: var(--orange); animation: loaderDot 1s var(--ease-out) infinite; }
.loader-mark span:nth-child(2) { background: #fff; animation-delay: .12s; }
.loader-mark span:nth-child(3) { background: var(--sky); animation-delay: .24s; }
@keyframes loaderDot { 0%, 100% { transform: translateY(0); opacity: .4; } 50% { transform: translateY(-10px); opacity: 1; } }

/* ---------- Logo ---------- */
.logo-mark { background: linear-gradient(135deg, var(--orange), #ff9a4d 45%, var(--sky)); box-shadow: 0 6px 24px -6px rgba(255, 106, 26, .6), inset 0 1px 0 rgba(255,255,255,.35); }
.logo-mark::after { content: ''; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.45) 50%, transparent 70%); background-size: 250% 100%; animation: logoShine 4.5s ease-in-out infinite; }
@keyframes logoShine { 0%, 60% { background-position: 150% 0; } 100% { background-position: -100% 0; } }

/* ---------- Navbar ---------- */
#site-nav.scrolled { background: rgba(5, 5, 6, .72); backdrop-filter: blur(18px) saturate(160%); -webkit-backdrop-filter: blur(18px) saturate(160%); border-bottom: 1px solid var(--line); }
#mobile-menu.open { opacity: 1; pointer-events: auto; }
#mobile-menu.open .mobile-panel { transform: translateX(0); }
#mobile-menu .mobile-link { opacity: 0; transform: translateX(20px); transition: all .5s var(--ease-out); transition-delay: calc(var(--i) * 60ms + 150ms); }
#mobile-menu.open .mobile-link { opacity: 1; transform: none; }

/* ---------- Buttons ---------- */
.btn-primary, .btn-ghost, .btn-sky {
    position: relative; align-items: center; gap: .5rem; border-radius: 14px;
    padding: .9rem 1.4rem; font-weight: 700; font-size: .95rem; line-height: 1; white-space: nowrap;
    transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), background .3s, border-color .3s, color .3s;
    isolation: isolate; overflow: hidden; cursor: pointer;
}
:where(.btn-primary, .btn-ghost, .btn-sky) { display: inline-flex; } /* zero specificity so Tailwind's hidden / sm:inline-flex still win */
.btn-primary { color: #fff; background: linear-gradient(135deg, #FF6A1A 0%, #FF8A3D 100%); box-shadow: 0 10px 30px -10px rgba(255, 106, 26, .75), inset 0 1px 0 rgba(255,255,255,.25); }
.btn-primary::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(120deg, transparent 20%, rgba(255,255,255,.35) 50%, transparent 80%); transform: translateX(-120%); transition: transform .8s var(--ease-out); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -12px rgba(255, 106, 26, .9), inset 0 1px 0 rgba(255,255,255,.3); }
.btn-primary:hover::before { transform: translateX(120%); }
.btn-primary:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.btn-ghost { color: #fff; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.12); }
.btn-ghost:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.25); transform: translateY(-2px); }
.btn-sky { color: #04131c; background: linear-gradient(135deg, #38BDF8, #7DD3FC); box-shadow: 0 10px 30px -12px rgba(56, 189, 248, .8); }
.btn-sky:hover { transform: translateY(-2px); }
.btn-sm { padding: .6rem .95rem !important; font-size: .82rem !important; border-radius: 10px !important; }

/* ---------- Text effects ---------- */
.text-gradient { background: linear-gradient(100deg, #FF6A1A 0%, #FFB37A 35%, #38BDF8 75%, #7DD3FC 100%); -webkit-background-clip: text; background-clip: text; color: transparent; background-size: 200% auto; animation: gradientShift 6s linear infinite; }
@keyframes gradientShift { to { background-position: 200% center; } }
.text-stroke { -webkit-text-stroke: 1px rgba(255,255,255,.25); color: transparent; }
.eyebrow { display: inline-flex; align-items: center; gap: .5rem; border-radius: 999px; border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.03); padding: .45rem .9rem; font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #d4d4d8; backdrop-filter: blur(8px); }
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 4px rgba(255,106,26,.18); animation: pulseDot 2s infinite; }
@keyframes pulseDot { 0%, 100% { box-shadow: 0 0 0 0 rgba(255,106,26,.5); } 50% { box-shadow: 0 0 0 6px rgba(255,106,26,0); } }

/* typing caret */
.type-caret { display: inline-block; width: 3px; height: .9em; margin-left: 4px; vertical-align: -0.08em; background: var(--orange); border-radius: 2px; animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }

/* ---------- Backgrounds ---------- */
.bg-grid { background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%); }
.bg-dots { background-image: radial-gradient(rgba(255,255,255,.09) 1px, transparent 1px); background-size: 22px 22px; }
.noise::after { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .05; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

.aurora { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55; will-change: transform; pointer-events: none; }
.aurora-1 { width: 560px; height: 560px; background: radial-gradient(circle, rgba(255,106,26,.75), transparent 65%); top: -180px; left: -120px; animation: float1 18s ease-in-out infinite; }
.aurora-2 { width: 520px; height: 520px; background: radial-gradient(circle, rgba(56,189,248,.6), transparent 65%); top: -60px; right: -160px; animation: float2 22s ease-in-out infinite; }
.aurora-3 { width: 420px; height: 420px; background: radial-gradient(circle, rgba(168,85,247,.35), transparent 65%); bottom: -120px; left: 35%; animation: float1 26s ease-in-out infinite reverse; }
@keyframes float1 { 0%, 100% { transform: translate(0, 0) scale(1); } 33% { transform: translate(80px, 60px) scale(1.1); } 66% { transform: translate(-40px, 90px) scale(.95); } }
@keyframes float2 { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-90px, 80px) scale(1.12); } }

/* perspective floor grid for the hero */
.hero-floor { position: absolute; left: -50%; right: -50%; bottom: -10%; height: 55%; transform: perspective(600px) rotateX(62deg); transform-origin: bottom; background-image: linear-gradient(rgba(255,106,26,.22) 1px, transparent 1px), linear-gradient(90deg, rgba(56,189,248,.18) 1px, transparent 1px); background-size: 60px 60px; animation: floorMove 3.5s linear infinite; mask-image: linear-gradient(to top, #000 10%, transparent 85%); -webkit-mask-image: linear-gradient(to top, #000 10%, transparent 85%); opacity: .5; }
@keyframes floorMove { to { background-position: 0 60px; } }

/* beams */
.beam { position: absolute; width: 1px; height: 180px; background: linear-gradient(to bottom, transparent, var(--orange), transparent); opacity: .7; animation: beamDrop 6s linear infinite; }
.beam.sky { background: linear-gradient(to bottom, transparent, var(--sky), transparent); }
@keyframes beamDrop { from { transform: translateY(-200px); opacity: 0; } 15% { opacity: .8; } to { transform: translateY(900px); opacity: 0; } }

/* ---------- Surfaces ---------- */
.glass { background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.02)); border: 1px solid var(--line); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.card { position: relative; border-radius: 22px; background: linear-gradient(180deg, #111115, #0c0c0f); border: 1px solid var(--line); transition: transform .5s var(--ease-out), border-color .4s, box-shadow .5s var(--ease-out); }
.card-hover:hover { transform: translateY(-6px); border-color: rgba(255,106,26,.35); box-shadow: 0 30px 60px -30px rgba(255,106,26,.35); }

/* spotlight that follows the mouse (set by JS) */
.spotlight { --mx: 50%; --my: 50%; }
.spotlight::before { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .4s; background: radial-gradient(420px circle at var(--mx) var(--my), rgba(255,106,26,.12), transparent 45%); z-index: 0; }
.spotlight:hover::before { opacity: 1; }
.spotlight > *:not(.absolute) { position: relative; z-index: 1; }

/* animated gradient border */
.border-glow { position: relative; }
.border-glow::after { content: ''; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: conic-gradient(from var(--angle, 0deg), transparent 0 60%, var(--orange) 75%, var(--sky) 90%, transparent 100%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: spinAngle 5s linear infinite; pointer-events: none; }
@property --angle { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
@keyframes spinAngle { to { --angle: 360deg; } }

/* ---------- Forms ---------- */
.field { width: 100%; border-radius: 14px; border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.03); padding: .85rem 1rem; color: #fff; font-size: .95rem; transition: border-color .25s, box-shadow .25s, background .25s; }
.field::placeholder { color: #71717a; }
.field:focus { outline: none; border-color: rgba(255,106,26,.7); background: rgba(255,255,255,.05); box-shadow: 0 0 0 4px rgba(255,106,26,.12); }
select.field { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23a1a1aa'%3E%3Cpath d='M12 15l-5-5h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .8rem center; background-size: 20px; padding-right: 2.5rem; }
select.field option { background: #111115; color: #fff; }
.label { display: block; margin-bottom: .5rem; font-size: .85rem; font-weight: 600; color: #e4e4e7; }
.field-icon { position: relative; }
.field-icon > i { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: #71717a; font-size: 1.1rem; pointer-events: none; }
.field-icon > .field { padding-left: 2.75rem; }
.checkbox { width: 18px; height: 18px; accent-color: var(--orange); }

/* ---------- Badges ---------- */
.badge { display: inline-flex; align-items: center; gap: .35rem; border-radius: 999px; padding: .3rem .7rem; font-size: .72rem; font-weight: 700; letter-spacing: .01em; white-space: nowrap; border: 1px solid transparent; }
.badge i { font-size: .85rem; }
.badge-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: pulseDot 1.6s infinite; box-shadow: 0 0 0 0 currentColor; }
.badge-gray { color: #a1a1aa; background: rgba(161,161,170,.1); border-color: rgba(161,161,170,.18); }
.badge-sky { color: #7dd3fc; background: rgba(56,189,248,.1); border-color: rgba(56,189,248,.25); }
.badge-orange { color: #ffa36b; background: rgba(255,106,26,.12); border-color: rgba(255,106,26,.3); }
.badge-violet { color: #c4b5fd; background: rgba(139,92,246,.12); border-color: rgba(139,92,246,.28); }
.badge-amber { color: #fcd34d; background: rgba(245,158,11,.1); border-color: rgba(245,158,11,.25); }
.badge-green { color: #6ee7b7; background: rgba(16,185,129,.1); border-color: rgba(16,185,129,.25); }
.badge-rose { color: #fda4af; background: rgba(244,63,94,.1); border-color: rgba(244,63,94,.25); }

/* ---------- Reveal / lazy-load motion ---------- */
.reveal { opacity: 0; transform: translateY(40px) scale(.985); filter: blur(8px); transition: opacity 1s var(--ease-out), transform 1.1s var(--ease-out), filter 1s var(--ease-out); transition-delay: var(--d, 0ms); }
.reveal.from-left { transform: translateX(-50px); }
.reveal.from-right { transform: translateX(50px); }
.reveal.zoom { transform: scale(.9); }
.reveal.is-visible { opacity: 1; transform: none; filter: none; }

.split-word { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; }
.split-word > span { display: inline-block; transform: translateY(110%); transition: transform 1s var(--ease-out); transition-delay: var(--d, 0ms); }
.is-visible .split-word > span, .split-word.is-visible > span { transform: none; }

.lazy-img { opacity: 0; transform: scale(1.04); transition: opacity .8s var(--ease-out), transform 1.2s var(--ease-out); }
.lazy-img.loaded { opacity: 1; transform: none; }
.skeleton { background: linear-gradient(90deg, #121216 0%, #1b1b21 50%, #121216 100%); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
    .reveal, .split-word > span { opacity: 1 !important; transform: none !important; filter: none !important; }
}

/* ---------- Hero ---------- */
.hero-input-wrap { position: relative; border-radius: 22px; padding: 1px; background: linear-gradient(135deg, rgba(255,106,26,.8), rgba(255,255,255,.12) 40%, rgba(56,189,248,.8)); box-shadow: 0 30px 80px -30px rgba(255,106,26,.55), 0 0 0 8px rgba(255,255,255,.02); }
.hero-input { border-radius: 21px; background: rgba(10,10,13,.92); backdrop-filter: blur(20px); }
.hero-input textarea { resize: none; }
.prompt-chip { display: inline-flex; align-items: center; gap: .4rem; border-radius: 999px; border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.03); padding: .45rem .85rem; font-size: .8rem; color: #d4d4d8; transition: all .3s var(--ease-out); }
.prompt-chip:hover { border-color: rgba(255,106,26,.6); color: #fff; background: rgba(255,106,26,.08); transform: translateY(-2px); }

.price-orb { position: relative; display: inline-grid; place-items: center; }
.price-orb::before { content: ''; position: absolute; inset: -6px; border-radius: 999px; background: conic-gradient(var(--orange), var(--sky), var(--orange)); filter: blur(10px); opacity: .6; animation: spin 6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* floating chips around hero */
.float-chip { animation: floaty 6s ease-in-out infinite; animation-delay: var(--fd, 0s); }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

/* ---------- Marquee ---------- */
.marquee { display: flex; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; flex-shrink: 0; gap: 1rem; padding-right: 1rem; animation: marquee var(--speed, 40s) linear infinite; }
.marquee.reverse .marquee-track { animation-direction: reverse; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-100%); } }

/* ---------- Service thumbnail art ---------- */
.thumb { position: relative; overflow: hidden; aspect-ratio: 16/10; border-radius: 16px; background: #0f0f13; }
.thumb-art { background: radial-gradient(120% 120% at 0% 0%, color-mix(in srgb, var(--c1) 55%, #000) 0%, #0d0d10 55%), #0d0d10; }
.thumb-glow { position: absolute; width: 70%; height: 90%; right: -15%; bottom: -35%; border-radius: 50%; background: radial-gradient(circle, var(--c2), transparent 65%); opacity: .55; filter: blur(14px); transition: transform .8s var(--ease-out); }
.thumb-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px); background-size: 22px 22px; mask-image: linear-gradient(135deg, #000, transparent 70%); -webkit-mask-image: linear-gradient(135deg, #000, transparent 70%); }
.thumb-window { position: absolute; left: 10%; top: 14%; width: 56%; height: 62%; border-radius: 10px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); backdrop-filter: blur(6px); display: flex; gap: 4px; padding: 7px; transition: transform .8s var(--ease-out); }
.thumb-window span { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.35); }
.thumb-window span:first-child { background: var(--c1); }
.thumb-lines { position: absolute; left: calc(10% + 12px); top: calc(14% + 26px); width: 40%; display: flex; flex-direction: column; gap: 7px; }
.thumb-lines i { display: block; height: 6px; border-radius: 6px; background: rgba(255,255,255,.14); }
.thumb-lines i:nth-child(1) { width: 85%; background: linear-gradient(90deg, var(--c1), var(--c2)); opacity: .9; }
.thumb-lines i:nth-child(2) { width: 65%; }
.thumb-lines i:nth-child(3) { width: 45%; }
.thumb-icon { position: absolute; right: 9%; bottom: 13%; display: grid; place-items: center; width: 30%; aspect-ratio: 1; border-radius: 22%; font-size: clamp(1.4rem, 3.2vw, 2.1rem); color: #fff; background: linear-gradient(135deg, var(--c1), var(--c2)); box-shadow: 0 14px 30px -10px var(--c1), inset 0 1px 0 rgba(255,255,255,.35); transition: transform .8s var(--ease-out); }
.thumb-v1 .thumb-window { left: auto; right: 10%; }
.thumb-v1 .thumb-lines { left: auto; right: calc(10% + 12px); }
.thumb-v1 .thumb-icon { right: auto; left: 9%; }
.thumb-v2 .thumb-window { top: 22%; height: 56%; width: 64%; transform: rotate(-4deg); }
.thumb-v3 .thumb-icon { right: 50%; transform: translateX(50%); bottom: 18%; width: 34%; }
.thumb-v3 .thumb-window { opacity: .5; }
.group:hover .thumb-glow { transform: scale(1.25) translate(-10%, -10%); }
.group:hover .thumb-window { transform: translateY(-4px) rotate(-2deg); }
.group:hover .thumb-icon { transform: translateY(-6px) rotate(-6deg) scale(1.06); }
.group:hover .thumb-v3 .thumb-icon { transform: translateX(50%) translateY(-6px) scale(1.06); }

/* ---------- Motion "video" showcase ---------- */
.film { position: relative; border-radius: 26px; overflow: hidden; background: #08080b; border: 1px solid var(--line); box-shadow: 0 60px 120px -50px rgba(255,106,26,.45), 0 0 0 1px rgba(255,255,255,.03); }
.film-screen { position: relative; aspect-ratio: 16/9; overflow: hidden; }
@media (max-width: 640px) { .film-screen { aspect-ratio: 4/5; } }
.film-scene { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 6%; opacity: 0; transform: scale(1.06); filter: blur(10px); transition: opacity .9s var(--ease-out), transform 1.2s var(--ease-out), filter .9s var(--ease-out); }
.film-scene.active { opacity: 1; transform: none; filter: none; }
.film-bar { height: 3px; background: rgba(255,255,255,.08); }
.film-bar > span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--orange), var(--sky)); }
.film-dot { height: 4px; flex: 1; border-radius: 4px; background: rgba(255,255,255,.12); overflow: hidden; cursor: pointer; }
.film-dot > span { display: block; height: 100%; width: 0; background: #fff; }
.film-dot.done > span { width: 100%; }
.scan-line { position: absolute; left: 0; right: 0; height: 120px; background: linear-gradient(to bottom, transparent, rgba(56,189,248,.12), transparent); animation: scan 3s linear infinite; pointer-events: none; }
@keyframes scan { from { top: -120px; } to { top: 100%; } }
.typing-line { overflow: hidden; white-space: nowrap; border-right: 2px solid var(--orange); width: 0; animation: typeLine 2.2s steps(40) forwards, caret .8s steps(1) infinite; }
@keyframes typeLine { to { width: 100%; } }
.build-bar { height: 8px; border-radius: 8px; background: rgba(255,255,255,.07); overflow: hidden; }
.build-bar > i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--orange), var(--sky)); width: 0; }
.film-scene.active .build-bar > i { animation: fillBar 3.6s var(--ease-out) forwards; animation-delay: var(--bd, 0s); }
@keyframes fillBar { to { width: var(--w, 100%); } }
.film-scene.active .pop { animation: popIn .8s var(--ease-out) both; animation-delay: var(--pd, 0s); }
@keyframes popIn { from { opacity: 0; transform: translateY(18px) scale(.92); } to { opacity: 1; transform: none; } }
.check-draw path { stroke-dasharray: 40; stroke-dashoffset: 40; }
.film-scene.active .check-draw path { animation: draw 1s .6s var(--ease-out) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- Terminal (hero side) ---------- */
.terminal { font-family: 'JetBrains Mono', monospace; }
.term-line { opacity: 0; transform: translateY(6px); transition: all .5s var(--ease-out); }
.term-line.show { opacity: 1; transform: none; }

/* ---------- How it works timeline ---------- */
.step-line { position: absolute; top: 44px; left: 8%; right: 8%; height: 2px; background: rgba(255,255,255,.08); overflow: hidden; }
.step-line > span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--orange), var(--sky)); transition: width 2.5s var(--ease-out); }
.is-visible .step-line > span { width: 100%; }
.step-num { box-shadow: 0 0 0 8px var(--black), 0 0 0 9px rgba(255,255,255,.08); }

/* ---------- FAQ ---------- */
.faq-item .faq-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease-out); }
.faq-item .faq-body > div { overflow: hidden; }
.faq-item.open .faq-body { grid-template-rows: 1fr; }
.faq-item.open .faq-icon { transform: rotate(45deg); background: var(--orange); color: #fff; border-color: var(--orange); }
.faq-item.open { border-color: rgba(255,106,26,.35); }

/* ---------- Footer ---------- */
.footer-link { color: #a1a1aa; transition: color .25s; }
.footer-link:hover { color: #fff; }
.footer-word { font-size: clamp(5rem, 22vw, 20rem); margin-bottom: -0.18em; background: linear-gradient(to bottom, rgba(255,255,255,.07), rgba(255,255,255,0) 75%); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Flash toasts ---------- */
.flash-toast { animation: toastIn .6s var(--ease-out) both; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-14px) scale(.96); } }

/* ---------- Counters / stats ---------- */
.stat-num { font-variant-numeric: tabular-nums; }

/* ---------- Checkout / progress ---------- */
.step-pill { display: flex; align-items: center; gap: .6rem; font-size: .85rem; font-weight: 600; color: #71717a; }
.step-pill .n { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 1px solid rgba(255,255,255,.15); font-size: .75rem; }
.step-pill.active { color: #fff; }
.step-pill.active .n { background: var(--orange); border-color: var(--orange); color: #fff; box-shadow: 0 0 0 5px rgba(255,106,26,.15); }
.step-pill.done { color: #d4d4d8; }
.step-pill.done .n { background: rgba(56,189,248,.15); border-color: rgba(56,189,248,.4); color: var(--sky); }

.qty { display: inline-flex; align-items: center; border: 1px solid rgba(255,255,255,.12); border-radius: 14px; overflow: hidden; }
.qty button { width: 44px; height: 46px; display: grid; place-items: center; font-size: 1.1rem; color: #fff; transition: background .2s; }
.qty button:hover { background: rgba(255,255,255,.07); }
.qty input { width: 56px; height: 46px; text-align: center; background: transparent; color: #fff; font-weight: 700; border-left: 1px solid rgba(255,255,255,.1); border-right: 1px solid rgba(255,255,255,.1); -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty input:focus { outline: none; }

.live-progress { height: 10px; border-radius: 10px; background: rgba(255,255,255,.06); overflow: hidden; position: relative; }
.live-progress > span { position: absolute; inset: 0 auto 0 0; border-radius: inherit; background: linear-gradient(90deg, var(--orange), #ffb37a, var(--sky)); background-size: 200% 100%; animation: gradientShift 2.5s linear infinite; transition: width 1.2s var(--ease-out); }
.live-progress > span::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.45), transparent); animation: sweep 1.8s infinite; }
@keyframes sweep { from { transform: translateX(-100%); } to { transform: translateX(100%); } }

.timeline-item { position: relative; padding-left: 2.25rem; padding-bottom: 1.5rem; }
.timeline-item::before { content: ''; position: absolute; left: 13px; top: 30px; bottom: 0; width: 2px; background: rgba(255,255,255,.07); }
.timeline-item:last-child::before { display: none; }
.timeline-item .t-dot { position: absolute; left: 0; top: 2px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: .85rem; }

/* ---------- Portal (user + admin) ---------- */
.portal-body { background: #070709; }
.sidebar { width: 270px; background: #0a0a0d; border-right: 1px solid var(--line); transition: transform .45s var(--ease-out); }
.side-link { display: flex; align-items: center; gap: .8rem; border-radius: 12px; padding: .72rem .9rem; font-size: .9rem; font-weight: 600; color: #a1a1aa; transition: all .25s; position: relative; }
.side-link i { font-size: 1.15rem; }
.side-link:hover { color: #fff; background: rgba(255,255,255,.04); }
.side-link.active { color: #fff; background: linear-gradient(90deg, rgba(255,106,26,.16), rgba(255,106,26,0)); }
.side-link.active::before { content: ''; position: absolute; left: -12px; top: 22%; bottom: 22%; width: 3px; border-radius: 0 3px 3px 0; background: var(--orange); box-shadow: 0 0 12px var(--orange); }
.side-link.active i { color: var(--orange); }
.side-count { margin-left: auto; min-width: 22px; height: 22px; padding: 0 6px; display: grid; place-items: center; border-radius: 999px; font-size: .7rem; font-weight: 800; background: var(--orange); color: #fff; }
.admin-theme .side-link.active { background: linear-gradient(90deg, rgba(56,189,248,.16), rgba(56,189,248,0)); }
.admin-theme .side-link.active::before { background: var(--sky); box-shadow: 0 0 12px var(--sky); }
.admin-theme .side-link.active i { color: var(--sky); }
@media (max-width: 1023px) {
    .sidebar { position: fixed; inset: 0 auto 0 0; z-index: 80; transform: translateX(-100%); }
    body.sidebar-open .sidebar { transform: none; }
    body.sidebar-open .sidebar-backdrop { opacity: 1; pointer-events: auto; }
}
.sidebar-backdrop { position: fixed; inset: 0; z-index: 75; background: rgba(0,0,0,.65); backdrop-filter: blur(3px); opacity: 0; pointer-events: none; transition: opacity .35s; }

.panel { border-radius: 20px; background: #0d0d10; border: 1px solid var(--line); }
.stat-card { position: relative; overflow: hidden; border-radius: 20px; padding: 1.25rem; background: #0d0d10; border: 1px solid var(--line); transition: transform .4s var(--ease-out), border-color .3s; }
.stat-card:hover { transform: translateY(-3px); border-color: rgba(255,255,255,.14); }
.stat-card .stat-glow { position: absolute; width: 140px; height: 140px; right: -40px; top: -50px; border-radius: 50%; filter: blur(40px); opacity: .35; }
.table-wrap { overflow-x: auto; }
.data-table { width: 100%; font-size: .875rem; }
.data-table th { text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: #71717a; font-weight: 700; padding: .85rem 1rem; border-bottom: 1px solid var(--line); white-space: nowrap; }
.data-table td { padding: .95rem 1rem; border-bottom: 1px solid rgba(255,255,255,.045); vertical-align: middle; }
.data-table tbody tr { transition: background .2s; }
.data-table tbody tr:hover { background: rgba(255,255,255,.02); }
.data-table tbody tr:last-child td { border-bottom: 0; }

.tab-link { padding: .6rem 1rem; border-radius: 10px; font-size: .85rem; font-weight: 600; color: #a1a1aa; white-space: nowrap; transition: all .2s; }
.tab-link:hover { color: #fff; }
.tab-link.active { background: rgba(255,255,255,.07); color: #fff; }

.chat-bubble { max-width: 85%; border-radius: 18px; padding: .9rem 1.1rem; font-size: .9rem; line-height: 1.6; }
.chat-me { margin-left: auto; background: linear-gradient(135deg, rgba(255,106,26,.18), rgba(255,106,26,.08)); border: 1px solid rgba(255,106,26,.25); border-bottom-right-radius: 6px; }
.chat-them { background: #131318; border: 1px solid var(--line); border-bottom-left-radius: 6px; }

.prose-legal h2 { color: #fff; font-size: 1.35rem; font-weight: 700; margin: 2.2rem 0 .8rem; }
.prose-legal h3 { color: #fff; font-size: 1.05rem; font-weight: 700; margin: 1.5rem 0 .5rem; }
.prose-legal p, .prose-legal li { color: #a1a1aa; line-height: 1.8; font-size: .975rem; }
.prose-legal ul { list-style: disc; padding-left: 1.25rem; margin: .6rem 0; }
.prose-legal li { margin: .3rem 0; }
.prose-legal a { color: var(--sky); }

/* spinner */
.spinner { width: 18px; height: 18px; border: 2px solid rgba(255,255,255,.3); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }

/* orbit decoration */
.orbit { position: absolute; border: 1px dashed rgba(255,255,255,.08); border-radius: 50%; animation: spin 40s linear infinite; }
.orbit > i { position: absolute; top: -6px; left: 50%; width: 12px; height: 12px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 16px var(--orange); }
.orbit.sky > i { background: var(--sky); box-shadow: 0 0 16px var(--sky); }
