/* =====================================================================
   SMMCloudX 2.0 — premium layer
   Loaded after app.css. Upgrades tokens, surfaces and components, and
   adds the motion system (driven by assets/js/motion.js).
   Light and dark themes are designed as equals.
   All motion respects prefers-reduced-motion.
   ===================================================================== */

@property --angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@property --shift { syntax: "<percentage>"; initial-value: 0%; inherits: false; }

:root {
  --v2: 1;
  /* Surfaces */
  --bg: #f3f6fc;
  --bg-elev: #edf2fa;
  --surface: #ffffff;
  --surface-2: #f7f9fd;
  --surface-3: #eef2f9;
  --surface-glass: rgb(255 255 255 / .72);
  --border: #e3e9f3;
  --border-strong: #cfd9e9;
  --hairline: rgb(15 35 70 / .07);
  --text: #0a1630;
  --text-2: #3b4b66;
  --muted: #6f7f99;

  /* Brand derived */
  --brand-glow: color-mix(in oklab, var(--brand) 45%, transparent);
  --brand-2-glow: color-mix(in oklab, var(--brand-2) 40%, transparent);
  --grad: linear-gradient(135deg, var(--brand) 0%, color-mix(in oklab, var(--brand) 50%, var(--brand-2)) 55%, var(--brand-2) 100%);
  --grad-soft: linear-gradient(135deg, color-mix(in oklab, var(--brand) 12%, transparent), color-mix(in oklab, var(--brand-2) 12%, transparent));
  --grad-text: linear-gradient(100deg, var(--brand) 0%, var(--brand-2) 35%, color-mix(in oklab, var(--brand) 60%, #a855f7) 65%, var(--brand) 100%);

  /* Depth */
  --shadow-xs: 0 1px 2px rgb(16 32 72 / .05);
  --shadow-sm: 0 1px 2px rgb(16 32 72 / .05), 0 2px 6px -2px rgb(16 32 72 / .06);
  --shadow: 0 2px 4px -1px rgb(16 32 72 / .04), 0 12px 32px -12px rgb(16 32 72 / .16);
  --shadow-lg: 0 4px 10px -4px rgb(16 32 72 / .06), 0 32px 70px -24px rgb(16 32 72 / .30);
  --shadow-brand: 0 18px 40px -18px var(--brand-glow);
  --ring: 0 0 0 4px color-mix(in oklab, var(--brand) 16%, transparent);
  --inner-hi: inset 0 1px 0 rgb(255 255 255 / .7);

  --radius: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  /* Motion */
  --ease: cubic-bezier(.22, .8, .24, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --ease-out-expo: cubic-bezier(.16, 1, .3, 1);
  --dur: .6s;
}

[data-theme="dark"] {
  --bg: #050912;
  --bg-elev: #080e1c;
  --surface: #0b1323;
  --surface-2: #0e172a;
  --surface-3: #131e34;
  --surface-glass: rgb(12 20 38 / .66);
  --border: #1a2640;
  --border-strong: #26375a;
  --hairline: rgb(255 255 255 / .06);
  --text: #eaf1fc;
  --text-2: #b3c0d6;
  --muted: #7d8ca8;
  --brand-glow: color-mix(in oklab, var(--brand) 55%, transparent);
  --shadow-xs: 0 1px 2px rgb(0 0 0 / .5);
  --shadow-sm: 0 1px 2px rgb(0 0 0 / .45), 0 2px 8px -2px rgb(0 0 0 / .4);
  --shadow: 0 2px 6px -1px rgb(0 0 0 / .5), 0 16px 36px -14px rgb(0 0 0 / .7);
  --shadow-lg: 0 4px 12px -4px rgb(0 0 0 / .5), 0 36px 80px -26px rgb(0 0 0 / .85);
  --shadow-brand: 0 18px 44px -16px var(--brand-glow);
  --inner-hi: inset 0 1px 0 rgb(255 255 255 / .05);
}

/* ---------- Base polish ---------- */
body { background: var(--bg); font-feature-settings: "cv02", "cv03", "cv04", "cv11", "ss01"; }
[data-theme="dark"] body { background: radial-gradient(1200px 600px at 80% -10%, color-mix(in oklab, var(--brand) 9%, transparent), transparent 60%), var(--bg); background-attachment: fixed; }
h1, h2 { letter-spacing: -.035em; }
::selection { background: color-mix(in oklab, var(--brand) 30%, transparent); color: var(--text); }
* { scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 99px; border: 3px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-track { background: transparent; }

/* Cross-document page transitions (Chrome/Edge 126+, ignored elsewhere) */
::view-transition-old(root) { animation: .22s var(--ease) both vtOut; }
::view-transition-new(root) { animation: .38s var(--ease-out-expo) both vtIn; }
@keyframes vtOut { to { opacity: 0; transform: translateY(-6px); } }
@keyframes vtIn { from { opacity: 0; transform: translateY(10px); } }

/* Top navigation progress bar (shown while the next page loads) */
.nav-progress { position: fixed; left: 0; top: 0; height: 3px; width: 100%; z-index: 2000; pointer-events: none; transform-origin: 0 50%; transform: scaleX(0); background: var(--grad); box-shadow: 0 0 12px var(--brand-glow); opacity: 0; }
.nav-progress.is-loading { opacity: 1; animation: navLoad 8s cubic-bezier(.1, .8, .2, 1) forwards; }
@keyframes navLoad { 0% { transform: scaleX(0); } 20% { transform: scaleX(.45); } 100% { transform: scaleX(.92); } }

/* Scroll progress (public pages) */
.scroll-progress { position: fixed; left: 0; right: 0; top: 0; height: 2px; z-index: 60; transform-origin: 0 50%; transform: scaleX(var(--p, 0)); background: var(--grad); pointer-events: none; }

/* ---------- Motion primitives ---------- */
.reveal { opacity: 0; transform: translateY(24px); filter: blur(6px); transition: opacity .8s var(--ease-out-expo), transform .8s var(--ease-out-expo), filter .8s var(--ease-out-expo); transition-delay: var(--d, 0s); }
.reveal.from-left { transform: translateX(-28px); }
.reveal.from-right { transform: translateX(28px); }
.reveal.zoom { transform: scale(.94); }
.reveal.is-in { opacity: 1; transform: none; filter: none; }
.split-word { display: inline-block; opacity: 0; transform: translateY(.6em) rotate(2deg); filter: blur(8px); animation: wordIn .9s var(--ease-out-expo) forwards; animation-delay: var(--d, 0s); }
@keyframes wordIn { to { opacity: 1; transform: none; filter: none; } }
.fade-up { animation: fadeUp .9s var(--ease-out-expo) both; animation-delay: var(--d, 0s); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); filter: blur(4px); } }

/* Animated gradient text */
.gradient-text, .text-shine {
  background: var(--grad-text); background-size: 250% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: textShine 7s linear infinite;
}
@keyframes textShine { to { background-position: -250% 0; } }

/* Rotating conic border (used on highlight cards, CTA, auth card) */
.glow-border { position: relative; isolation: isolate; }
.glow-border::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; z-index: -1; pointer-events: none;
  background: conic-gradient(from var(--angle), transparent 0%, var(--brand) 12%, var(--brand-2) 22%, transparent 34%, transparent 60%, color-mix(in oklab, var(--brand-2) 70%, #fff) 72%, transparent 84%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  animation: spinAngle 6s linear infinite;
}
@keyframes spinAngle { to { --angle: 360deg; } }

/* Cursor spotlight (motion.js sets --mx / --my) */
.spotlight { position: relative; isolation: isolate; }
.spotlight::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 0; opacity: 0; transition: opacity .35s var(--ease);
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), color-mix(in oklab, var(--brand) 12%, transparent), transparent 45%);
}
.spotlight:hover::after { opacity: 1; }
.spotlight > * { position: relative; z-index: 1; }
[data-theme="dark"] .spotlight::after { background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), color-mix(in oklab, var(--brand) 22%, transparent), transparent 45%); }

/* Aurora background */
.aurora { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.aurora .blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; will-change: transform; mix-blend-mode: normal; }
.aurora .b1 { width: 560px; height: 560px; left: -140px; top: -220px; background: color-mix(in oklab, var(--brand) 55%, transparent); animation: blob1 18s ease-in-out infinite alternate; }
.aurora .b2 { width: 520px; height: 520px; right: -160px; top: -120px; background: color-mix(in oklab, var(--brand-2) 55%, transparent); animation: blob2 22s ease-in-out infinite alternate; }
.aurora .b3 { width: 440px; height: 440px; left: 38%; top: 30%; background: color-mix(in oklab, #a855f7 40%, transparent); opacity: .35; animation: blob3 26s ease-in-out infinite alternate; }
[data-theme="dark"] .aurora .blob { opacity: .5; }
[data-theme="dark"] .aurora .b3 { opacity: .3; }
@keyframes blob1 { to { transform: translate(140px, 90px) scale(1.15); } }
@keyframes blob2 { to { transform: translate(-120px, 140px) scale(.9); } }
@keyframes blob3 { to { transform: translate(-160px, -80px) scale(1.25); } }
.noise { position: absolute; inset: 0; pointer-events: none; opacity: .05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E"); }
[data-theme="dark"] .noise { opacity: .08; }

/* Pulse dot ("live") */
.pulse-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--success); display: inline-block; flex: none; }
.pulse-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: inherit; animation: pulseRing 2s var(--ease) infinite; }
@keyframes pulseRing { from { transform: scale(1); opacity: .7; } to { transform: scale(3); opacity: 0; } }

/* ---------- Buttons ---------- */
.btn { border-radius: 12px; transition: transform .25s var(--ease-spring), box-shadow .3s var(--ease), background .2s, border-color .2s, color .2s, filter .2s; position: relative; overflow: hidden; isolation: isolate; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-primary { background: var(--grad); background-size: 160% 160%; background-position: 0% 50%; box-shadow: var(--shadow-brand), inset 0 1px 0 rgb(255 255 255 / .25); transition: transform .25s var(--ease-spring), box-shadow .3s var(--ease), background-position .6s var(--ease); }
.btn-primary:hover { background-position: 100% 50%; box-shadow: 0 22px 44px -16px var(--brand-glow), inset 0 1px 0 rgb(255 255 255 / .3); filter: none; }
/* Shine sweep */
.btn-primary::after, .btn-white::after, .btn-shine::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; z-index: -1; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgb(255 255 255 / .45), transparent); transform: skewX(-20deg); transition: none;
}
.btn-primary:hover::after, .btn-white:hover::after, .btn-shine:hover::after { left: 130%; transition: left .8s var(--ease); }
.btn-primary .icon, .btn .icon { transition: transform .3s var(--ease-spring); }
.btn:hover .icon:last-child:not(:first-child) { transform: translateX(3px); }
.btn:not(.btn-primary):not(.btn-solid):not(.btn-danger):not(.btn-success):not(.btn-white):not(.btn-ghost):not(.btn-soft):not(.btn-outline-light) { box-shadow: var(--shadow-xs), var(--inner-hi); }
.btn-soft { transition: transform .25s var(--ease-spring), background .2s; }
.btn-ghost:hover { transform: none; }
/* Click ripple (motion.js) */
.ripple { position: absolute; border-radius: 50%; transform: scale(0); background: currentColor; opacity: .22; pointer-events: none; animation: ripple .6s var(--ease) forwards; z-index: 0; }
@keyframes ripple { to { transform: scale(4); opacity: 0; } }

/* ---------- Cards & surfaces ---------- */
.card { border-color: var(--border); box-shadow: var(--shadow-xs), var(--inner-hi); transition: box-shadow .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease); }
.card-header { border-bottom-color: var(--hairline); }
.card-hover:hover, .card.lift:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: color-mix(in oklab, var(--brand) 30%, var(--border)); }
.glass, .glass-card { background: var(--surface-glass); backdrop-filter: blur(20px) saturate(1.6); -webkit-backdrop-filter: blur(20px) saturate(1.6); border: 1px solid color-mix(in oklab, var(--border) 70%, transparent); }

/* Stat cards: mesh + shine */
.stat { border-radius: var(--radius-lg); box-shadow: var(--shadow-xs), var(--inner-hi); transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s; }
.stat:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: color-mix(in oklab, var(--brand) 25%, var(--border)); }
.stat-icon { border-radius: 14px; transition: transform .45s var(--ease-spring); position: relative; }
.stat:hover .stat-icon { transform: rotate(-8deg) scale(1.08); }
.stat.highlight { background: var(--grad); background-size: 200% 200%; animation: meshShift 10s ease-in-out infinite alternate; box-shadow: var(--shadow-brand); }
.stat.highlight::before { content: ""; position: absolute; inset: 0; background: radial-gradient(240px 140px at 90% -10%, rgb(255 255 255 / .35), transparent 60%), radial-gradient(200px 140px at 0% 120%, rgb(0 0 0 / .15), transparent 60%); pointer-events: none; }
.stat.highlight::after { animation: floaty 7s ease-in-out infinite; }
@keyframes meshShift { from { background-position: 0% 30%; } to { background-position: 100% 70%; } }
.stat-value { font-variant-numeric: tabular-nums; }

/* ---------- Forms ---------- */
.input, .select, .textarea { border-radius: 13px; transition: border-color .2s, box-shadow .25s var(--ease), background .2s, transform .2s; }
.input:focus, .select:focus, .textarea:focus { box-shadow: var(--ring), 0 8px 24px -14px var(--brand-glow); }
.switch .track { transition: background .3s var(--ease); }
.switch .track::after { transition: transform .35s var(--ease-spring), width .2s; }
.switch input:checked + .track { background: var(--grad); }
.switch:active .track::after { width: 22px; }

/* ---------- Badges ---------- */
.badge { letter-spacing: .01em; }
.badge-success::before, .badge-info::before { animation: badgePulse 2.2s ease-in-out infinite; }
@keyframes badgePulse { 50% { opacity: .35; } }

/* ---------- Chips (order page) ---------- */
.chip { border-radius: 14px; transition: border-color .2s, background .2s, transform .3s var(--ease-spring), box-shadow .3s; }
.chip:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.chip .pi { transition: transform .45s var(--ease-spring); box-shadow: 0 6px 14px -8px rgb(0 0 0 / .45); }
.chip:hover .pi { transform: scale(1.12) rotate(-6deg); }
.chip.is-active { background: var(--grad-soft); box-shadow: inset 0 0 0 1.5px var(--brand), 0 10px 24px -14px var(--brand-glow); }
.chip.is-active .pi { animation: popIn .5s var(--ease-spring); }
@keyframes popIn { 0% { transform: scale(.6); } 100% { transform: scale(1); } }

/* ---------- Toasts ---------- */
.toast { border-radius: 16px; background: var(--surface-glass); backdrop-filter: blur(18px) saturate(1.5); -webkit-backdrop-filter: blur(18px) saturate(1.5); animation: toastIn2 .55s var(--ease-spring); overflow: hidden; position: relative; }
.toast::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; transform-origin: 0 50%; background: currentColor; opacity: .5; animation: toastTimer var(--toast-ms, 5s) linear forwards; }
.toast.success::after { color: var(--success); } .toast.error::after { color: var(--danger); } .toast.info::after { color: var(--info); } .toast.warning::after { color: var(--warning); }
@keyframes toastIn2 { from { opacity: 0; transform: translateY(20px) scale(.92); } }
@keyframes toastTimer { to { transform: scaleX(0); } }

/* ---------- Modal / dropdown ---------- */
dialog.modal[open] { animation: modalIn2 .45s var(--ease-spring); }
dialog.modal::backdrop { background: rgb(3 8 20 / .5); backdrop-filter: blur(6px); animation: fadeIn .3s var(--ease); }
@keyframes modalIn2 { from { opacity: 0; transform: translateY(16px) scale(.94); } }
@keyframes fadeIn { from { opacity: 0; } }
.dropdown-menu { border-radius: 16px; background: var(--surface-glass); backdrop-filter: blur(20px) saturate(1.5); -webkit-backdrop-filter: blur(20px) saturate(1.5); transform-origin: top right; }
.dropdown.is-open .dropdown-menu { animation: dropIn .3s var(--ease-spring); }
@keyframes dropIn { from { opacity: 0; transform: translateY(-6px) scale(.95); } }
.dropdown-menu a, .dropdown-menu button { transition: background .15s, padding-left .2s var(--ease); }
.dropdown-menu a:hover, .dropdown-menu button:hover { padding-left: 16px; }

/* ---------- Tables ---------- */
.table th { background: color-mix(in oklab, var(--surface-2) 70%, transparent); }
.table tbody tr { transition: background .2s, box-shadow .2s; }
.table tbody tr:hover { background: color-mix(in oklab, var(--brand) 4%, var(--surface)); box-shadow: inset 3px 0 0 var(--brand); }
.row-in { animation: rowIn .55s var(--ease-out-expo) backwards; animation-delay: var(--d, 0s); }
@keyframes rowIn { from { opacity: 0; transform: translateY(8px); } }

/* ---------- Tabs / segmented ---------- */
.tabs button, .tabs a { transition: color .2s; position: relative; }
.tabs .is-active { border-bottom-color: transparent; }
.tabs .is-active::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 2px; border-radius: 2px; background: var(--grad); animation: tabLine .4s var(--ease-spring); }
@keyframes tabLine { from { transform: scaleX(0); } }
.seg a.is-active, .seg button.is-active { animation: popIn .35s var(--ease-spring); }

/* ---------- Accordion ---------- */
.accordion details { border-radius: 18px; transition: box-shadow .3s var(--ease), border-color .3s, background .3s; }
.accordion details:hover { border-color: color-mix(in oklab, var(--brand) 30%, var(--border)); }
.accordion summary::after { transition: transform .4s var(--ease-spring), background .3s; }
.accordion details[open] summary::after { content: "+"; transform: rotate(135deg); background: var(--grad); color: #fff; }
.accordion details[open] .acc-body { animation: fadeUp .5s var(--ease-out-expo); }

/* ---------- Skeleton ---------- */
.skeleton { background: linear-gradient(100deg, var(--surface-3) 30%, color-mix(in oklab, var(--brand) 8%, var(--surface-2)) 50%, var(--surface-3) 70%); background-size: 300% 100%; }

/* =====================================================================
   PUBLIC SITE 2.0
   ===================================================================== */
.site-header { transition: background .35s var(--ease), border-color .35s, box-shadow .35s, padding .35s; }
.site-header .nav { transition: height .35s var(--ease); }
.site-header.is-scrolled { background: var(--surface-glass); box-shadow: 0 10px 30px -20px rgb(10 25 60 / .35); }
.site-header.is-scrolled .nav { height: 62px; }
.nav-links a { position: relative; transition: color .2s, background .2s; }
.nav-links a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px; border-radius: 2px; background: var(--grad); transform: scaleX(0); transform-origin: 0 50%; transition: transform .35s var(--ease); }
.nav-links a:hover { background: transparent; }
.nav-links a:hover::after, .nav-links a.is-active::after { transform: scaleX(1); }
.nav-links a.is-active { background: transparent; color: var(--text); }
.brand-mark { transition: transform .5s var(--ease-spring); }
.brand:hover .brand-mark { transform: rotate(-10deg) scale(1.08); }

/* Hero */
.hero { padding: 72px 0 110px; }
.hero-bg::before, .hero-bg::after { display: none; }
.hero-grid { opacity: .5; mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 30%, transparent 75%); animation: gridDrift 40s linear infinite; }
[data-theme="dark"] .hero-grid { opacity: .35; }
@keyframes gridDrift { to { background-position: 48px 48px, 48px 48px; } }
.eyebrow { background: var(--surface-glass); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); position: relative; overflow: hidden; }
.eyebrow::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgb(255 255 255 / .5), transparent 70%); transform: translateX(-100%); animation: eyebrowShine 4.5s var(--ease) 1.2s infinite; }
[data-theme="dark"] .eyebrow::after { background: linear-gradient(100deg, transparent 30%, rgb(255 255 255 / .12), transparent 70%); }
@keyframes eyebrowShine { 0%, 60% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
.hero h1 { font-size: clamp(2.2rem, 1.4rem + 2.7vw, 3.75rem); line-height: 1.04; letter-spacing: -.045em; margin: 22px 0 18px; }
.hero .lead { font-size: 1.14rem; line-height: 1.7; }
.hero-points li { transition: transform .3s var(--ease); }
.hero-points li:hover { transform: translateX(4px); }
.hero-points .ck { border-radius: 8px; }
.hero-live { display: inline-flex; align-items: center; gap: 10px; margin-top: 26px; padding: 8px 14px; border-radius: 99px; font: 600 .82rem var(--font); color: var(--text-2); background: var(--surface-glass); border: 1px solid var(--border); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }

/* Product mock with tilt (motion.js sets --rx / --ry) */
.hero-visual { perspective: 1400px; }
.mock { transform: rotateX(var(--rx, 4deg)) rotateY(var(--ry, -8deg)); transform-style: preserve-3d; transition: transform .8s var(--ease-out-expo), box-shadow .8s; border-radius: 26px; background: var(--surface-glass); backdrop-filter: blur(22px) saturate(1.5); -webkit-backdrop-filter: blur(22px) saturate(1.5); box-shadow: var(--shadow-lg), 0 60px 120px -60px var(--brand-glow); }
.hero-visual:hover .mock { transform: rotateX(var(--rx, 1deg)) rotateY(var(--ry, -2deg)); }
.mock-chart path[stroke] { stroke-dasharray: 600; stroke-dashoffset: 600; animation: drawLine 2.4s var(--ease-out-expo) .6s forwards; }
.mock-chart path[fill^="url"] { opacity: 0; animation: fadeIn 1.2s var(--ease) 1.4s forwards; }
@keyframes drawLine { to { stroke-dashoffset: 0; } }
.mock-row { transition: transform .3s var(--ease); }
.mock-row:hover { transform: translateX(4px); }
.mock-row .bar i { transform-origin: 0 50%; animation: barGrow 1.8s var(--ease-out-expo) both; animation-delay: calc(1s + var(--d, 0s)); }
@keyframes barGrow { from { transform: scaleX(0); } }
.mock-stat.hl { background: var(--grad); background-size: 200% 200%; animation: meshShift 8s ease-in-out infinite alternate; }
.float-card { background: var(--surface-glass); backdrop-filter: blur(16px) saturate(1.5); -webkit-backdrop-filter: blur(16px) saturate(1.5); border-radius: 18px; transform: translateZ(60px); }
.float-card.one { left: -44px; top: 34%; bottom: auto; }
.float-card.three { right: -26px; bottom: -64px; animation-delay: -1.5s; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* Marquee (platform strip) */
.marquee { position: relative; overflow: hidden; padding: 22px 0; border-block: 1px solid var(--hairline); background: color-mix(in oklab, var(--surface) 55%, transparent);
  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; width: max-content; gap: 14px; animation: marquee 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item { display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px 10px 10px; border-radius: 99px; background: var(--surface); border: 1px solid var(--border); font: 600 .9rem var(--font); color: var(--text); white-space: nowrap; box-shadow: var(--shadow-xs); }
.marquee-item .pi { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: #fff; }
.marquee-item .pi .icon { width: 15px; height: 15px; }
@keyframes marquee { to { transform: translateX(-50%); } }
[dir="rtl"] .marquee-track { animation-direction: reverse; }

/* Announcement */
.marquee + .announce, .announce { margin-top: 28px; }
.announce-card { background: var(--surface-glass); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-radius: 22px; }
.announce-card .ai { animation: wiggle 3.5s ease-in-out infinite; }
@keyframes wiggle { 0%, 80%, 100% { transform: rotate(0); } 85% { transform: rotate(-12deg); } 90% { transform: rotate(10deg); } 95% { transform: rotate(-6deg); } }

/* Stats */
.pstat { position: relative; overflow: hidden; border-radius: 22px; box-shadow: var(--shadow-xs), var(--inner-hi); transition: transform .4s var(--ease), box-shadow .4s, border-color .4s; }
.pstat:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: color-mix(in oklab, var(--brand) 30%, var(--border)); }
.pstat .n { font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.5rem); background: linear-gradient(180deg, var(--text), color-mix(in oklab, var(--text) 60%, var(--brand))); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }
.pstat .l .icon { color: var(--brand); }
.pstat::before { content: ""; position: absolute; right: -40px; top: -40px; width: 120px; height: 120px; border-radius: 50%; background: radial-gradient(closest-side, var(--brand-soft), transparent); transition: transform .6s var(--ease); }
.pstat:hover::before { transform: scale(1.6); }

/* Section heads */
.section-head .kicker { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 99px; background: var(--grad-soft); border: 1px solid color-mix(in oklab, var(--brand) 18%, transparent); }
.section-head .kicker::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 0 3px color-mix(in oklab, var(--brand) 18%, transparent); }
.section-head h2 { font-size: clamp(1.7rem, 1.2rem + 1.8vw, 2.8rem); }
.section-alt { background: linear-gradient(180deg, var(--bg-elev), var(--bg)); border-color: var(--hairline); position: relative; }

/* Platforms */
.platform { border-radius: 18px; box-shadow: var(--shadow-xs), var(--inner-hi); transition: transform .4s var(--ease-spring), box-shadow .35s var(--ease), border-color .35s; }
.platform:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: color-mix(in oklab, var(--brand) 30%, var(--border)); }
.platform .pi { transition: transform .5s var(--ease-spring); box-shadow: 0 10px 18px -10px rgb(0 0 0 / .5); }
.platform:hover .pi { transform: scale(1.14) rotate(-8deg); }

/* Features */
.feature { border-radius: 24px; padding: 30px; box-shadow: var(--shadow-xs), var(--inner-hi); transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s; overflow: hidden; }
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: color-mix(in oklab, var(--brand) 30%, var(--border)); }
.feature .fi { width: 54px; height: 54px; border-radius: 16px; background: var(--grad); color: #fff; box-shadow: var(--shadow-brand); transition: transform .6s var(--ease-spring); }
.feature:hover .fi { transform: translateY(-3px) rotate(-8deg) scale(1.06); }
.feature h3 { font-size: 1.12rem; }

/* Steps with animated connector */
.steps { position: relative; }
.steps-line { position: absolute; left: 6%; right: 6%; top: 44px; height: 2px; background: var(--border); border-radius: 2px; overflow: hidden; z-index: 0; }
.steps-line::after { content: ""; position: absolute; inset: 0; background: var(--grad); transform-origin: 0 50%; transform: scaleX(0); transition: transform 1.8s var(--ease-out-expo) .3s; }
.steps.is-in .steps-line::after { transform: scaleX(1); }
.step { z-index: 1; border-radius: 24px; box-shadow: var(--shadow-xs), var(--inner-hi); transition: transform .45s var(--ease), box-shadow .45s; background: var(--surface); }
.step:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.step::before { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 14px; background: var(--grad); color: #fff; box-shadow: var(--shadow-brand); font-size: .85rem; }

/* Featured services */
.svc-card .card-body { position: relative; }
.svc-card .price-now { font: 800 1.35rem var(--font-display); letter-spacing: -.02em; }

/* Code window */
.code { border-radius: 20px; box-shadow: var(--shadow-lg), 0 40px 90px -50px var(--brand-glow); padding-top: 44px; background: linear-gradient(180deg, #0c1629, #070d1b); }
.code::before { content: ""; position: absolute; left: 16px; top: 16px; width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; box-shadow: 16px 0 0 #febc2e, 32px 0 0 #28c840; }
.code .caret { display: inline-block; width: 8px; height: 1.1em; vertical-align: -2px; background: var(--brand-2); animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* CTA band */
.cta-band { background: var(--grad); background-size: 220% 220%; animation: meshShift 12s ease-in-out infinite alternate; box-shadow: 0 40px 90px -40px var(--brand-glow); border-radius: 32px; }
.cta-band .orb { position: absolute; border-radius: 50%; background: rgb(255 255 255 / .16); pointer-events: none; animation: floaty 9s ease-in-out infinite; }
.cta-band .orb.o1 { width: 220px; height: 220px; right: -60px; top: -80px; }
.cta-band .orb.o2 { width: 120px; height: 120px; left: 38%; bottom: -60px; animation-delay: -3s; }
.cta-band .orb.o3 { width: 60px; height: 60px; left: 8%; top: 20px; animation-delay: -5s; background: rgb(255 255 255 / .22); }

/* Footer */
.site-footer { position: relative; background: var(--surface); border-top-color: transparent; }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--brand), var(--brand-2), transparent); opacity: .6; }
.footer-grid a { transition: color .2s, padding-left .25s var(--ease); }
.footer-grid a:hover { padding-left: 4px; }
.socials a { transition: transform .35s var(--ease-spring), background .2s, color .2s; }
.socials a:hover { transform: translateY(-3px) rotate(-6deg); background: var(--grad); color: #fff; }

/* Back to top */
.to-top { position: fixed; right: 20px; bottom: 20px; z-index: 54; width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center; color: var(--text);
  background: conic-gradient(var(--brand) calc(var(--p, 0) * 360deg), var(--border) 0); opacity: 0; transform: translateY(12px) scale(.9); pointer-events: none; transition: opacity .3s, transform .4s var(--ease-spring); }
.to-top::before { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--surface); box-shadow: var(--shadow); }
.to-top .icon { position: relative; transform: rotate(-90deg); }
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover .icon { animation: bob .8s var(--ease) infinite; }
@keyframes bob { 50% { transform: rotate(-90deg) translateX(3px); } }
.whatsapp-fab { animation: fabIn .8s var(--ease-spring) 1s both; }
.whatsapp-fab::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #22c55e; animation: fabRing 2.6s var(--ease) infinite; }
@keyframes fabRing { from { transform: scale(1); opacity: .7; } to { transform: scale(1.55); opacity: 0; } }
@keyframes fabIn { from { transform: scale(0) rotate(-90deg); } }

/* Page hero (inner pages) */
.page-hero { padding: 72px 0 48px; }
.page-hero h1 { letter-spacing: -.04em; }
.page-hero .aurora .blob { opacity: .35; }
.page-hero > .container { position: relative; z-index: 1; }
.auth-aside > .aurora, .auth-aside > .noise { position: absolute; }

/* Blog & posts */
.post-card { border-radius: 24px; transition: transform .45s var(--ease), box-shadow .45s; }
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.post-cover img { transition: transform 1s var(--ease-out-expo); }
.post-card:hover .post-cover img { transform: scale(1.06); }

/* =====================================================================
   AUTH 2.0
   ===================================================================== */
.auth-aside { background: #050a18; }
.auth-aside::before { display: none; }
.auth-aside .aurora .blob { opacity: .6; }
.auth-aside .aurora .b3 { opacity: .4; }
.auth-aside.has-bg .aurora { opacity: .45; }
.auth-aside li { animation: fadeUp .8s var(--ease-out-expo) both; }
.auth-aside li:nth-child(1) { --d: .3s; } .auth-aside li:nth-child(2) { --d: .4s; } .auth-aside li:nth-child(3) { --d: .5s; } .auth-aside li:nth-child(4) { --d: .6s; }
.auth-aside li .icon { width: 30px; height: 30px; padding: 7px; border-radius: 10px; background: rgb(255 255 255 / .08); border: 1px solid rgb(255 255 255 / .12); color: #fff; }
.auth-floats { position: relative; height: 150px; margin-top: 30px; }
.auth-float { position: absolute; display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-radius: 16px; font-size: .8rem; color: #fff; background: rgb(255 255 255 / .08); border: 1px solid rgb(255 255 255 / .14); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 20px 40px -20px rgb(0 0 0 / .6); animation: floaty 7s ease-in-out infinite; }
.auth-float b { display: block; font-size: .9rem; }
.auth-float .fi { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--grad); color: #fff; }
.auth-float.a1 { left: 0; top: 0; }
.auth-float.a2 { left: 34%; top: 70px; animation-delay: -2.5s; }
.auth-main { position: relative; overflow: hidden; }
.auth-main::before { content: ""; position: absolute; width: 520px; height: 520px; right: -200px; top: -200px; border-radius: 50%; background: radial-gradient(closest-side, var(--brand-soft), transparent); pointer-events: none; animation: blob2 20s ease-in-out infinite alternate; }
.auth-card { position: relative; padding: 34px; border-radius: 28px; background: var(--surface-glass); backdrop-filter: blur(24px) saturate(1.5); -webkit-backdrop-filter: blur(24px) saturate(1.5); border: 1px solid var(--border); box-shadow: var(--shadow-lg); animation: fadeUp .9s var(--ease-out-expo) both; }
.auth-card h1 { font-size: 1.9rem; letter-spacing: -.04em; }

/* =====================================================================
   APP SHELL 2.0 (client + admin)
   ===================================================================== */
.sidebar { background: var(--surface-glass); backdrop-filter: blur(22px) saturate(1.4); -webkit-backdrop-filter: blur(22px) saturate(1.4); border-right-color: var(--hairline); }
.sidebar-head { border-bottom-color: var(--hairline); }
.side-link { transition: background .25s var(--ease), color .2s, transform .25s var(--ease); }
.side-link .icon { transition: transform .4s var(--ease-spring), color .2s; }
.side-link:hover { transform: translateX(2px); }
.side-link:hover .icon { transform: scale(1.12); }
.side-link.is-active { background: var(--grad-soft); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--brand) 18%, transparent); }
.side-link.is-active::before { width: 4px; background: var(--grad); left: -12px; box-shadow: 0 0 12px var(--brand-glow); animation: indicatorIn .5s var(--ease-spring); }
@keyframes indicatorIn { from { transform: scaleY(0); } }
.side-link.primary-cta { background: var(--grad); background-size: 180% 180%; animation: meshShift 8s ease-in-out infinite alternate; overflow: hidden; }
.side-link.primary-cta::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; background: linear-gradient(100deg, transparent, rgb(255 255 255 / .45), transparent); transform: skewX(-20deg); animation: sweep 5s var(--ease) 2s infinite; }
@keyframes sweep { 0%, 70% { left: -60%; } 100% { left: 140%; } }
.side-link .count { animation: popIn .5s var(--ease-spring); box-shadow: 0 0 0 3px color-mix(in oklab, var(--danger) 18%, transparent); }
.balance-card { background: var(--grad); background-size: 200% 200%; animation: meshShift 10s ease-in-out infinite alternate; border: 0; color: #fff; position: relative; overflow: hidden; box-shadow: var(--shadow-brand); }
.balance-card::after { content: ""; position: absolute; right: -30px; top: -30px; width: 110px; height: 110px; border-radius: 50%; background: rgb(255 255 255 / .14); }
.balance-card .muted { color: rgb(255 255 255 / .8) !important; }
.balance-card .v { color: #fff; font-size: 1.35rem; }
.balance-card .btn-soft { --btn-bg: rgb(255 255 255 / .18); --btn-fg: #fff; position: relative; z-index: 1; }
.balance-card .btn-soft:hover { --btn-bg: rgb(255 255 255 / .28); }

.topbar { background: color-mix(in oklab, var(--bg) 70%, transparent); border-bottom-color: var(--hairline); }
.topbar .balance-pill { background: var(--surface-glass); box-shadow: var(--shadow-xs), var(--inner-hi); transition: box-shadow .3s; }
.topbar .balance-pill:hover { box-shadow: 0 10px 24px -14px var(--brand-glow); }
.icon-btn { transition: background .2s, border-color .2s, transform .3s var(--ease-spring); }
.icon-btn:hover { transform: translateY(-1px); }
.icon-btn .dot { animation: dotPulse 2s ease-in-out infinite; }
@keyframes dotPulse { 50% { box-shadow: 0 0 0 2px var(--bg), 0 0 0 6px color-mix(in oklab, var(--danger) 25%, transparent); } }
.theme-toggle .icon { transition: transform .6s var(--ease-spring); }
.theme-toggle:hover .icon { transform: rotate(40deg); }
.avatar { background-size: 200% 200%; animation: meshShift 8s ease-in-out infinite alternate; box-shadow: 0 6px 14px -8px var(--brand-glow); }
.page-head h1 { letter-spacing: -.035em; }
.content > * { animation: fadeUp .7s var(--ease-out-expo) both; }
.content > *:nth-child(2) { --d: .06s; } .content > *:nth-child(3) { --d: .12s; } .content > *:nth-child(4) { --d: .18s; } .content > *:nth-child(5) { --d: .24s; } .content > *:nth-child(n+6) { --d: .3s; }

/* Order page */
.service-trigger { border-radius: 14px; transition: border-color .2s, box-shadow .3s var(--ease), background .2s; }
.service-trigger:hover { box-shadow: 0 10px 24px -16px var(--brand-glow); }
.service-select.is-open .service-panel { animation: dropIn .3s var(--ease-spring); transform-origin: top center; }
.service-panel { border-radius: 18px; background: var(--surface-glass); backdrop-filter: blur(22px) saturate(1.5); -webkit-backdrop-filter: blur(22px) saturate(1.5); }
.service-opt { transition: background .15s, transform .2s var(--ease); }
.service-opt:hover { transform: translateX(3px); }
.svc-meta { border-radius: 14px; transition: transform .35s var(--ease-spring), border-color .3s; }
.svc-meta:hover { transform: translateY(-2px); border-color: color-mix(in oklab, var(--brand) 30%, var(--border)); }
.charge-box { border-radius: 18px; background: var(--grad-soft); position: relative; overflow: hidden; }
.charge-box::after { content: ""; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%; background: linear-gradient(100deg, transparent, rgb(255 255 255 / .35), transparent); transform: skewX(-20deg); }
[data-theme="dark"] .charge-box::after { background: linear-gradient(100deg, transparent, rgb(255 255 255 / .08), transparent); }
.charge-box.bump::after { animation: sweep1 .9s var(--ease); }
@keyframes sweep1 { to { left: 140%; } }
.charge-box .amount { background: var(--grad-text); background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: textShine 7s linear infinite; display: inline-block; }
.charge-box.bump .amount { animation: textShine 7s linear infinite, bump .45s var(--ease-spring); }
@keyframes bump { 40% { transform: scale(1.1); } }
.support-link { border-radius: 14px; transition: transform .3s var(--ease-spring), border-color .2s, background .2s, box-shadow .3s; }
.support-link:hover { transform: translateX(4px); box-shadow: var(--shadow); }
.support-link .si { transition: transform .45s var(--ease-spring); }
.support-link:hover .si { transform: rotate(-10deg) scale(1.1); }
.method-card { border-radius: 16px; transition: border-color .2s, background .2s, transform .3s var(--ease-spring), box-shadow .3s; }
.method-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.method-card.is-active { background: var(--grad-soft); box-shadow: inset 0 0 0 1.5px var(--brand), 0 10px 24px -14px var(--brand-glow); }

/* Charts: draw-in */
.chart .line { stroke-dasharray: 1; stroke-dashoffset: 1; animation: drawLine 1.6s var(--ease-out-expo) .2s forwards; filter: drop-shadow(0 4px 8px color-mix(in oklab, var(--brand) 35%, transparent)); }
.chart .area { opacity: 0; animation: areaIn 1s var(--ease) .9s forwards; }
@keyframes areaIn { to { opacity: .16; } }
.chart .bar { transform-box: fill-box; transform-origin: 50% 100%; animation: barUp .9s var(--ease-out-expo) both; }
@keyframes barUp { from { transform: scaleY(0); } }
.chart.no-anim .line, .chart.no-anim .area, .chart.no-anim .bar { animation: none; stroke-dashoffset: 0; }
.chart.no-anim .area { opacity: .16; }
.progress > i { position: relative; overflow: hidden; transform-origin: 0 50%; animation: barGrow 1.4s var(--ease-out-expo) both; }
.progress > i::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgb(255 255 255 / .45), transparent); animation: progressShine 2s linear infinite; }
@keyframes progressShine { from { transform: translateX(-100%); } to { transform: translateX(100%); } }

/* Status dots breathe */
.status-dot.ok { animation: okPulse 2.4s ease-in-out infinite; }
@keyframes okPulse { 50% { box-shadow: 0 0 0 7px var(--success-bg); } }

/* Empty state */
.empty-icon { background: var(--grad); color: #fff; box-shadow: var(--shadow-brand); animation: floaty 5s ease-in-out infinite; }

/* Tickets */
.msg { animation: fadeUp .6s var(--ease-out-expo) both; }
.msg.me .msg-bubble { background: var(--grad-soft); }

/* Admin shell: deep premium sidebar in both themes */
.app.admin .sidebar { background: linear-gradient(180deg, #081022 0%, #060c1a 100%); backdrop-filter: none; -webkit-backdrop-filter: none; }
.app.admin .sidebar::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(300px 200px at 0% 0%, color-mix(in oklab, var(--brand) 22%, transparent), transparent 70%), radial-gradient(260px 220px at 100% 100%, color-mix(in oklab, var(--brand-2) 14%, transparent), transparent 70%); }
.app.admin .sidebar > * { position: relative; }
.app.admin .sidebar .side-link.is-active { background: linear-gradient(90deg, color-mix(in oklab, var(--brand) 38%, transparent), color-mix(in oklab, var(--brand-2) 10%, transparent)); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .06); }

/* Bottom nav (mobile) */
.bottom-nav { background: var(--surface-glass); }
.bottom-nav a { transition: color .2s, transform .3s var(--ease-spring); }
.bottom-nav a:active { transform: scale(.92); }
.bottom-nav a.is-active .icon { animation: popIn .45s var(--ease-spring); }
.bottom-nav a.fab span.fab-circle { background-size: 200% 200%; animation: meshShift 8s ease-in-out infinite alternate; }

/* Error pages */
.error-code { background: var(--grad-text); background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; animation: textShine 6s linear infinite, floaty 6s ease-in-out infinite; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .steps-line { display: none; }
}
@media (max-width: 760px) {
  .hero { padding: 44px 0 80px; }
  .hero h1 { font-size: clamp(2rem, 1.4rem + 4vw, 2.6rem); }
  .aurora .blob { filter: blur(50px); }
  .aurora .b1 { width: 360px; height: 360px; }
  .aurora .b2 { width: 320px; height: 320px; }
  .aurora .b3 { display: none; }
  .mock { transform: none !important; }
  .auth-card { padding: 24px 20px; border-radius: 22px; }
  .to-top { right: 16px; bottom: 16px; width: 42px; height: 42px; }
  .guest .whatsapp-fab ~ .to-top, .has-wa .to-top { bottom: 76px; }
  .marquee { padding: 16px 0; }
  .cta-band { border-radius: 24px; }
}
@media (hover: none) {
  .spotlight::after { display: none; }
}

/* ---------- Reduced motion: everything calm, content fully visible ---------- */
@media (prefers-reduced-motion: reduce) {
  .reveal, .split-word { opacity: 1 !important; transform: none !important; filter: none !important; }
  .marquee-track, .aurora .blob, .hero-grid, .glow-border::before, .gradient-text, .text-shine, .cta-band, .stat.highlight, .balance-card, .side-link.primary-cta, .avatar, .float-card, .auth-float, .whatsapp-fab::after, .pulse-dot::after { animation: none !important; }
  .mock-chart path[stroke] { stroke-dashoffset: 0; }
  .mock-chart path[fill^="url"] { opacity: 1; }
  .chart .line { stroke-dashoffset: 0; }
  .chart .area { opacity: .16; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}
html.reduced-motion .reveal, html.reduced-motion .split-word { opacity: 1 !important; transform: none !important; filter: none !important; }

/* Absolutely positioned buttons keep their placement (v2 buttons are position:relative) */
.btn.input-affix, .btn.code-copy { position: absolute; }
.btn.input-affix, .btn.input-affix:hover, .btn.input-affix:active { transform: translateY(-50%); }
.btn.code-copy:hover, .btn.code-copy:active { transform: none; }

/* Stat values never break mid-number */
.stat-value { overflow-wrap: normal; white-space: nowrap; font-size: clamp(1.05rem, .9rem + .45vw, 1.3rem); }
.stat > div:last-child { min-width: 0; }
@media (min-width: 761px) { .stats { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); } }
@media (max-width: 760px) { .stat-value { font-size: 1.05rem; } }

/* Grid/flex children may shrink below their content (long code lines scroll inside .code) */
.grid > *, .stack > *, .order-layout > *, .card-body > *, .form-grid > * { min-width: 0; }
.code { max-width: 100%; }
.alert > div, .alert > p { min-width: 0; flex: 1; }
.page-hero .aurora { mask-image: linear-gradient(180deg, #000 40%, transparent 100%); -webkit-mask-image: linear-gradient(180deg, #000 40%, transparent 100%); }

/* =====================================================================
   2.1 — header currency changer, mobile sheets
   ===================================================================== */
.topbar .balance-pill { text-decoration: none; color: var(--text); }
.topbar .balance-pill:hover { color: var(--text); }
.topbar .balance-pill { padding: 6px 14px; cursor: default; }
.topbar .balance-pill:hover { box-shadow: var(--shadow-xs), var(--inner-hi); }
.topbar .balance-pill .bp-amount { font-variant-numeric: tabular-nums; }
.cur-btn { width: auto; min-width: 40px; padding: 0 10px; border: 1px solid var(--border); background: var(--surface-glass); font: 700 .78rem var(--font); letter-spacing: .04em; color: var(--text); }
.cur-btn:hover { border-color: color-mix(in oklab, var(--brand) 35%, var(--border)); }
.cur-menu { width: 300px; padding: 6px; }
.cur-search { padding: 4px 6px 8px; }
.cur-search .input { min-height: 38px; }
.cur-list { max-height: min(360px, 60vh); overflow-y: auto; overscroll-behavior: contain; display: grid; gap: 2px; }
.dropdown-menu .cur-item { display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 10px; padding: 8px 10px; }
.cur-item .cur-sym { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--surface-3); color: var(--text); font: 700 .82rem var(--font); overflow: hidden; white-space: nowrap; }
.cur-item .cur-name { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; text-align: left; }
.cur-item .cur-name .xs { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cur-item.is-current { background: var(--grad-soft); }
.cur-item.is-current .cur-sym { background: var(--grad); color: #fff; }
.cur-check { color: var(--brand); }

/* User avatar images */
.avatar img, .avatar-img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; display: block; }
.avatar.has-img { background: var(--surface-3); padding: 0; overflow: hidden; animation: none; }

@media (max-width: 760px) {
  .topbar .bp-add { display: none; }            /* Add funds lives in the bottom menu */
  .topbar .balance-pill { padding: 6px 12px; }
}
@media (max-width: 600px) {
  /* Header pop-ups become full-width sheets that always fit the screen */
  .topbar .dropdown { position: static; }
  .topbar .dropdown-menu {
    position: fixed; left: 8px; right: 8px; top: calc(100% + 6px); width: auto; min-width: 0; max-width: none;
    max-height: calc(100dvh - var(--topbar-h) - 96px); overflow-y: auto; overscroll-behavior: contain; transform-origin: top center;
  }
  .topbar .cur-list { max-height: none; }
  .notif-menu { width: auto; }
}
@media (max-width: 480px) {
  .topbar { gap: 4px; padding: 0 8px; }
  .topbar .page-title { display: none; }
  .topbar-actions { margin-left: auto; gap: 4px; }
  .topbar .theme-toggle { display: inline-grid; }
  .topbar .icon-btn { width: 36px; height: 36px; }
  .topbar .cur-btn { width: auto; padding: 0 8px; }
  .topbar .balance-pill { padding: 5px 10px; font-size: .84rem; }
  .user-btn { padding: 2px; }
}
@media (max-width: 350px) {
  .topbar .balance-pill .bp-amount { font-size: .78rem; }
  .topbar .cur-btn { padding: 0 6px; font-size: .72rem; }
}

/* ---------- Support ticket form (2.1) ---------- */
.ticket-form { max-width: 860px; }
.cat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.cat-card { position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 18px 10px; border-radius: 18px; border: 1px solid var(--border); background: var(--surface-2); cursor: pointer; text-align: center; font: 600 .9rem var(--font); color: var(--text); transition: border-color .2s, background .2s, transform .3s var(--ease-spring), box-shadow .3s; }
.cat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.cat-card input { position: absolute; opacity: 0; pointer-events: none; }
.cat-card .cat-ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); transition: transform .45s var(--ease-spring), background .3s, color .3s; }
.cat-card.is-active { border-color: var(--brand); background: var(--grad-soft); box-shadow: inset 0 0 0 1.5px var(--brand), 0 12px 26px -16px var(--brand-glow); }
.cat-card.is-active .cat-ic { background: var(--grad); color: #fff; transform: scale(1.08) rotate(-6deg); }
.cat-card:has(input:focus-visible) { outline: 2px solid var(--brand); outline-offset: 2px; }
.sub-group { display: flex; flex-wrap: wrap; gap: 8px; animation: fadeUp .45s var(--ease-out-expo); }
.sub-chip { position: relative; cursor: pointer; }
.sub-chip input { position: absolute; opacity: 0; pointer-events: none; }
.sub-chip span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 99px; border: 1px solid var(--border); background: var(--surface-2); font: 600 .88rem var(--font); color: var(--text-2); transition: all .2s var(--ease); }
.sub-chip:hover span { border-color: var(--border-strong); color: var(--text); }
.sub-chip input:checked + span { background: var(--grad); color: #fff; border-color: transparent; box-shadow: var(--shadow-brand); }
.sub-chip input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }
.recent-orders { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 8px; }
.order-pill { display: inline-flex; gap: 6px; align-items: center; padding: 5px 10px; border-radius: 99px; border: 1px dashed var(--border-strong); background: transparent; color: var(--text-2); font: 600 .8rem var(--font-mono); cursor: pointer; transition: all .2s; }
.order-pill .xs { font-family: var(--font); color: var(--muted); }
.order-pill:hover { border-color: var(--brand); color: var(--brand); }
.order-pill.is-on { border-style: solid; border-color: var(--brand); background: var(--brand-soft); color: var(--brand); }
.dropzone { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 22px 16px; border-radius: 18px; border: 1.5px dashed var(--border-strong); background: var(--surface-2); text-align: center; cursor: pointer; transition: border-color .2s, background .2s; }
.dropzone:hover, .dropzone.is-drag { border-color: var(--brand); background: var(--grad-soft); }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.dropzone .dz-ic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--grad); color: #fff; box-shadow: var(--shadow-brand); }
.file-list { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 6px; }
.file-list li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); animation: fadeUp .35s var(--ease-out-expo); }
.file-list li .fn { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .88rem; }
.file-list li.too-big { border-color: var(--danger); }
.ticket-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.att-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.att-thumb { display: block; width: 88px; height: 66px; border-radius: 10px; overflow: hidden; border: 1px solid var(--border); background: var(--surface-3); }
.att-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.att-thumb:hover img { transform: scale(1.06); }
@media (max-width: 760px) {
  .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .btn-block-mobile { width: 100%; }
  .file-list li { grid-template-columns: auto minmax(0, 1fr) auto; }
  .file-list li .xs { grid-column: 2; grid-row: 2; }
}

/* ---------- Updates feed (2.1) ---------- */
.upd-list { list-style: none; margin: 0; padding: 0; }
.upd { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: start; padding: 16px 18px; border-bottom: 1px solid var(--hairline); transition: background .2s; }
.upd:last-child { border-bottom: 0; }
.upd:hover { background: color-mix(in oklab, var(--brand) 3%, transparent); }
.upd-ic { width: 40px; height: 40px; border-radius: 12px; }
.upd-top { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 4px; }
.upd-title { font-weight: 600; color: var(--text); overflow-wrap: anywhere; }
.upd .xs.muted { display: flex; gap: 6px; align-items: center; margin-top: 2px; }
.upd .xs.muted .pi { border-radius: 6px; display: inline-grid; place-items: center; color: #fff; }
.upd .xs.muted .pi .icon { width: 11px; height: 11px; }
.upd-price { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-variant-numeric: tabular-nums; }
.upd-price .icon { width: 14px; height: 14px; color: var(--muted); }
.upd-msg { margin: 6px 0 0; color: var(--text-2); font-size: .92rem; }
@media (max-width: 600px) {
  .upd { grid-template-columns: auto minmax(0, 1fr); padding: 14px; }
  .upd-cta { grid-column: 2; justify-self: start; }
}

/* ---------- Avatars (2.1) ---------- */
.avatar-xl { width: 88px; height: 88px; border-radius: 26px; font-size: 1.7rem; }
.avatar-edit { position: relative; display: inline-flex; flex-direction: column; align-items: center; gap: 4px; flex: none; }
.avatar-edit .avatar { box-shadow: var(--shadow); }
.avatar-cam { position: absolute; right: -6px; top: 58px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; background: var(--grad); color: #fff; border: 3px solid var(--bg); box-shadow: var(--shadow-brand); transition: transform .3s var(--ease-spring); }
.avatar-cam:hover { transform: scale(1.1) rotate(-8deg); }
.avatar-cam input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.avatar-cam .icon { width: 16px; height: 16px; }
.avatar-edit.is-uploading .avatar { opacity: .5; }
.avatar-edit.is-uploading .avatar-cam .icon { animation: spin .8s linear infinite; }
.avatar-rm .btn { min-height: 24px; font-size: .74rem; }
.avatar.has-img img { border-radius: inherit; }

/* ---------- Logo day/night (2.1) ---------- */
.brand img.brand-logo { height: var(--logo-h, 34px); width: auto; max-width: min(200px, 46vw); object-fit: contain; display: block; }
.brand img.brand-logo.logo-night { display: none; }
[data-theme="dark"] .brand img.brand-logo.logo-night { display: block; }
[data-theme="dark"] .brand img.brand-logo.logo-day:has(+ .logo-night) { display: none; }
.nav > .brand { min-width: 0; flex: 0 1 auto; }
@media (max-width: 480px) {
  .nav > .brand img.brand-logo { max-width: calc(100vw - 150px); }
}
.sidebar-head .brand img.brand-logo { max-width: 200px; max-height: calc(var(--topbar-h) - 16px); }

/* Readable menus: solid surfaces (nested backdrop-filters can't blur inside the glass topbar) */
.topbar .dropdown-menu, .service-panel { background: var(--surface); backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: var(--shadow-lg), 0 0 0 1px var(--border); }
.dropdown-menu .dropdown-head a { display: inline; width: auto; padding: 0; background: none; font-weight: 600; }
.dropdown-menu .dropdown-head a:hover { padding: 0; background: none; text-decoration: underline; }
.dropdown-head.row-between { display: flex; align-items: center; justify-content: space-between; }
.notif.unread { background: color-mix(in oklab, var(--brand) 8%, var(--surface)); }
@media (max-width: 600px) {
  body.menu-sheet-open::after { content: ""; position: fixed; inset: 0; background: rgb(3 8 20 / .42); z-index: 85; animation: fadeIn .2s var(--ease); }
  body.menu-sheet-open .topbar { z-index: 90; }
  body.menu-sheet-open .whatsapp-fab, body.menu-sheet-open .to-top { opacity: 0; pointer-events: none; }
}

/* Admin → Appearance: logo previews on both backgrounds */
.logo-prev { display: inline-grid; place-items: center; height: 56px; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--border); max-width: 100%; }
.logo-prev img { max-height: 40px; max-width: 220px; width: auto; object-fit: contain; }
.logo-prev-light { background: #f4f7fb; }
.logo-prev-dark { background: #0b1220; }

/* =====================================================================
   2.2: smooth scrolling on phones + tablets
   Effects that force a re-paint on every scrolled frame (blur filters,
   backdrop blur over moving content, animated gradients, fixed backgrounds)
   are replaced by static equivalents on touch devices / small screens.
   Desktop keeps the full look.
   ===================================================================== */
@media (max-width: 900px), (hover: none) {
  html { scroll-behavior: auto; }
  [data-theme="dark"] body { background-attachment: scroll; }
  .reveal, .split-word { filter: none; }
  .reveal { transition: opacity .6s var(--ease-out-expo), transform .6s var(--ease-out-expo); transition-delay: var(--d, 0s); }
  @keyframes wordIn { to { opacity: 1; transform: none; } }
  @keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } }
  .noise { display: none; }
  .aurora .blob { animation: none; will-change: auto; filter: blur(44px); }
  .hero-grid { animation: none; }
  .gradient-text, .text-shine, .charge-box .amount, .error-code { animation: none; background-position: 0 0; }
  .glow-border::before, .eyebrow::after, .announce-card .ai, .cta-band .orb, .pulse-dot::after { animation: none; }
  .cta-band, .mock-stat.hl { animation: none; }
  .glass, .glass-card, .eyebrow, .hero-live, .mock, .float-card, .announce-card, .auth-card, .auth-float {
    backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--surface);
  }
  /* Header: no height animation or live blur while the page moves under it */
  .site-header, .site-header .nav { transition: background .25s var(--ease), border-color .25s, box-shadow .25s; }
  .site-header.is-scrolled .nav { height: 72px; }
  .site-header.is-scrolled, .site-header.solid { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--surface); }
  .whatsapp-fab::after { animation: none; }
}

/* ---------- 2.2: sidebar / drawer scrolling ---------- */
/* Fit the *visible* screen (mobile browser bars included) and never scroll the page behind */
.sidebar { height: 100vh; height: 100dvh; }
.sidebar-scroll { min-height: 0; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.service-list { overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
@media (max-width: 1024px) {
  /* Drawer: the whole panel scrolls (menu + balance card), so nothing is ever cut off */
  .sidebar { height: auto; top: 0; bottom: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding-bottom: env(safe-area-inset-bottom); }
  .sidebar-scroll { flex: none; overflow: visible; }
  .app.admin .sidebar::before { position: fixed; top: 0; bottom: 0; left: 0; width: inherit; }
  body.drawer-open { overflow: hidden; }
}

/* ---------- 2.2: header sheets (currency / notifications / account) on phones ---------- */
@media (max-width: 600px) {
  body.menu-sheet-open { overflow: hidden; }
  /* A blurred header would become the sheet's containing block and break touch scrolling on Android */
  body.menu-sheet-open .topbar { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--surface); }
  .topbar .dropdown-menu {
    top: calc(var(--topbar-h) + 6px);
    max-height: calc(100dvh - var(--topbar-h) - 92px);
    overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; touch-action: pan-y;
  }
  .topbar .cur-list { overflow: visible; overscroll-behavior: auto; }
}

/* ---------- 2.2: homepage stats — large numbers (e.g. 6,534,254) fit on phones ---------- */
.public-stats > .pstat { min-width: 0; }
@media (max-width: 600px) {
  .pstat .n { font-size: clamp(1.15rem, 5.6vw, 1.7rem); white-space: nowrap; }
}

/* ---------- Binance Pay ID (auto) payment box ---------- */
.bpay { display: grid; gap: 14px; }
.bpay-status { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: color-mix(in oklab, #f0b90b 12%, var(--surface)); border: 1px solid color-mix(in oklab, #f0b90b 40%, var(--border)); }
.bpay-status > div { flex: 1; min-width: 0; }
.bpay-spin { width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid color-mix(in oklab, #f0b90b 30%, transparent); border-top-color: #f0b90b; animation: spin .9s linear infinite; flex: none; }
.bpay-status.is-late { background: color-mix(in oklab, var(--warning, #f59e0b) 10%, var(--surface)); }
.bpay-timer { font: 700 1.05rem var(--font); padding: 4px 10px; border-radius: 10px; background: var(--surface); border: 1px solid var(--border); }
.bpay-amount { padding: 16px; border-radius: 16px; background: var(--surface-2, var(--surface)); border: 1px dashed color-mix(in oklab, #f0b90b 55%, var(--border)); }
.bpay-big { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; font: 800 2rem/1.15 var(--font-display); letter-spacing: -.02em; margin: 4px 0 6px; }
.bpay-big small { font-size: 1rem; color: #c99400; font-weight: 800; }
[data-theme="dark"] .bpay-big small { color: #f0b90b; }
.bpay-big .btn { align-self: center; }
.warning-text { color: #b45309; display: flex; align-items: center; gap: 6px; }
[data-theme="dark"] .warning-text { color: #fbbf24; }
.warning-text .icon { width: 14px; height: 14px; flex: none; }
.bpay-id { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--border); background: var(--surface); }
.bpay-idv { font: 800 1.35rem var(--font); letter-spacing: .04em; word-break: break-all; }
.bpay-steps { margin: 0; padding-left: 20px; display: grid; gap: 6px; color: var(--text-2); font-size: .92rem; }
.bpay-order { border: 1px solid var(--border); border-radius: 14px; padding: 12px 14px; }
.bpay-order summary { cursor: pointer; font-weight: 600; display: flex; align-items: center; gap: 8px; list-style: none; }
.bpay-order summary::-webkit-details-marker { display: none; }
.bpay-order summary .icon { width: 16px; height: 16px; color: var(--brand); }
.bpay-order .input { min-width: 0; flex: 1; }
@media (max-width: 480px) {
  .bpay-big { font-size: 1.7rem; }
  .bpay-id { flex-direction: column; align-items: stretch; }
  .bpay-order .row { flex-wrap: wrap !important; }
  .bpay-order .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .bpay-spin { animation: none; } }

/* ---------- 2.3.2: smooth scrolling in admin / client pages (long tables) ---------- */
/* Live blur behind the sticky header/sidebar and a fixed page background were re-painted on every scrolled frame */
.topbar { backdrop-filter: none; -webkit-backdrop-filter: none; background: color-mix(in oklab, var(--bg) 96%, transparent); }
.sidebar { backdrop-filter: none; -webkit-backdrop-filter: none; }
.app:not(.admin) .sidebar { background: var(--surface); }
[data-theme="dark"] body { background-attachment: scroll; }
.table tbody tr { transition: none; }
/* While the page is moving, rows passing under the mouse don't re-paint hover effects */
html.is-scrolling .content { pointer-events: none; }

/* ---------- 2.3.3: admin tables + menu scrolling ---------- */
/* Tables only scroll sideways; they never become a small vertical scroll box that "catches" the mouse wheel */
.table-wrap { overflow-y: hidden; }
/* Desktop menu: when the menu reaches its end, the wheel carries on scrolling the page */
@media (min-width: 1025px) { .sidebar-scroll { overscroll-behavior: auto; } }

/* ---------- 2.4: Binance Pay two-step card (make payment → verify) ---------- */
.bpay { max-width: 560px; }
.bpay-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 1.1rem; }
.bpay-stepper { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; position: relative; }
.bpay-stepper::before { content: ""; position: absolute; left: 0; right: 0; top: 13px; height: 2px; background: var(--border); }
.bpay-stepper li { position: relative; display: grid; justify-items: center; gap: 6px; font: 600 .85rem var(--font); color: var(--muted); }
.bpay-stepper li span { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-3); color: var(--muted); font-size: .8rem; border: 2px solid var(--surface); }
.bpay-stepper li.is-on { color: var(--text); }
.bpay-stepper li.is-on span { background: var(--grad); color: #fff; }
.bpay-step { display: grid; gap: 12px; }
.bpay [data-bpay-step="2"], .bpay.on-verify [data-bpay-step="1"] { display: none; }
.bpay.on-verify [data-bpay-step="2"] { display: grid; }
.bpay .bpay-amount { text-align: center; border-style: solid; }
.bpay .bpay-big { justify-content: center; font-size: 2.2rem; }
.bpay-idrow { display: flex; gap: 8px; }
.bpay-idrow .input { flex: 1; min-width: 0; font-weight: 700; letter-spacing: .03em; }
.bpay-box { display: grid; gap: 12px; justify-items: center; padding: 16px; border-radius: 16px; background: var(--surface-2, var(--surface-3)); border: 1px solid var(--border); }
.bpay-qr { background: #fff; padding: 10px; border-radius: 14px; box-shadow: var(--shadow-xs); }
.bpay-qr img { display: block; width: 180px; height: auto; max-width: 60vw; }
.bpay-box .bpay-steps { justify-self: stretch; }
@media (max-width: 480px) { .bpay .bpay-big { font-size: 1.9rem; } .bpay-idrow { flex-wrap: wrap; } .bpay-idrow .btn { width: 100%; } }

/* ---------- 2.4.4: bottom-nav Funds button never clipped + notification count ---------- */
.bottom-nav { overflow: visible; }
.bottom-nav a.fab, .bottom-nav a.fab:active, .bottom-nav a.fab:hover, .bottom-nav a.fab:focus, .bottom-nav a.fab:focus-visible { transform: none; overflow: visible; background: transparent; -webkit-tap-highlight-color: transparent; }
.bottom-nav a.fab span.fab-circle { position: relative; z-index: 1; transition: transform .25s var(--ease-spring), box-shadow .2s; }
.bottom-nav a.fab:active span.fab-circle { transform: scale(.94); }
.bottom-nav a.fab:focus-visible span.fab-circle { outline: 2px solid var(--brand); outline-offset: 2px; }
.icon-btn .nbadge { position: absolute; top: 3px; right: 2px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 99px; background: var(--danger); color: #fff; font: 700 .62rem/17px var(--font); text-align: center; box-shadow: 0 0 0 2px var(--bg); pointer-events: none; }
