/* ==========================================================================
   TesterBay design system — "the bay": calm ocean blues, warm sun accent, soft 3D
   ========================================================================== */
:root {
  --bg: #f3f8fb;
  --bg-2: #e8f1f7;
  --card: #ffffff;
  --glass: rgba(255, 255, 255, .78);
  --ink: #0b1f33;
  --ink-2: #22384d;
  --muted: #5d7287;
  --line: rgba(11, 31, 51, .08);
  --line-2: rgba(11, 31, 51, .14);
  --accent: #0284c7;          /* sea blue: links, focus, primary */
  --accent-2: #2dd4bf;        /* lagoon teal: highlights */
  --accent-3: #2563eb;        /* deep water */
  --accent-soft: rgba(2, 132, 199, .1);
  --brand: linear-gradient(120deg, #2dd4bf 0%, #0ea5e9 48%, #2563eb 100%);
  --sun: #ffb648;             /* warm accent from the logo */
  --mint: #10b981;
  --mint-soft: rgba(16, 185, 129, .12);
  --coral: #fb7155;
  --coral-soft: rgba(251, 113, 85, .12);
  --amber: #f59e0b;
  --sky: #3b82f6;
  --phone: #0b1622;
  --screen: #fbfdff;
  --screen-ink: #0b1f33;
  --screen-line: #e6eef5;
  --shadow-sm: 0 1px 2px rgba(11, 31, 51, .05), 0 2px 8px rgba(11, 31, 51, .04);
  --shadow: 0 2px 4px rgba(11, 31, 51, .03), 0 14px 34px -10px rgba(11, 31, 51, .16);
  --shadow-lg: 0 30px 80px -20px rgba(5, 60, 100, .35), 0 10px 30px -10px rgba(11, 31, 51, .2);
  --r: 22px;
  --r-sm: 14px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #06131f; --bg-2: #0a1b2a; --card: #0d2133; --glass: rgba(10, 27, 42, .74);
    --ink: #eaf4fb; --ink-2: #c9dbe8; --muted: #8fa6ba; --line: rgba(255, 255, 255, .07); --line-2: rgba(255, 255, 255, .13);
    --accent: #38bdf8; --accent-2: #5eead4; --accent-3: #60a5fa; --accent-soft: rgba(56, 189, 248, .14);
    --mint-soft: rgba(16, 185, 129, .16); --coral-soft: rgba(251, 113, 85, .16);
    --phone: #02070c; --screen: #0f2234; --screen-ink: #eaf4fb; --screen-line: #1b3247;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow: 0 12px 32px -8px rgba(0, 0, 0, .6);
    --shadow-lg: 0 40px 90px -20px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .04);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font: 15px/1.6 var(--font); background: var(--bg); color: var(--ink);
  -webkit-font-smoothing: antialiased; overflow-x: hidden; min-height: 100vh; display: flex; flex-direction: column;
}
::selection { background: var(--accent); color: #fff; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.1; margin: 0 0 .5em; letter-spacing: -.025em; font-weight: 700; }
h1 { font-size: clamp(28px, 4vw, 40px); }
h2 { font-size: clamp(22px, 3vw, 30px); }
h3 { font-size: 18px; letter-spacing: -.01em; }
.muted { color: var(--muted); }
.center { text-align: center; }
.small { font-size: 13px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }

/* ---------- ambient background ---------- */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.bg-grid {
  position: absolute; inset: -50% -20% auto; height: 120vh;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  transform: perspective(900px) rotateX(62deg) translateY(-8%);
  mask-image: radial-gradient(ellipse 60% 50% at 50% 45%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 60% 50% at 50% 45%, #000 20%, transparent 75%);
  opacity: .7;
}
.bg-orb { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .35; animation: drift 22s var(--ease) infinite alternate; }
.o1 { width: 520px; height: 520px; background: var(--accent-2); top: -160px; right: -120px; }
.o2 { width: 420px; height: 420px; background: #7fe3c6; bottom: -180px; left: -140px; opacity: .22; animation-delay: -8s; }
@keyframes drift { to { transform: translate3d(-60px, 80px, 0) scale(1.1); } }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 14px; z-index: 50; margin: 14px auto 0; width: min(1160px, calc(100% - 28px));
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 8px 8px 8px 16px; border-radius: 999px; background: var(--glass);
  backdrop-filter: saturate(1.6) blur(18px); -webkit-backdrop-filter: saturate(1.6) blur(18px);
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font: 700 17px var(--display); letter-spacing: -.02em; }
.brand:hover { text-decoration: none; }
.logo {
  width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center;
  background: linear-gradient(145deg, var(--accent-2), var(--accent)); box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 6px 14px -4px var(--accent);
  transition: transform .5s var(--spring);
}
.brand:hover .logo { transform: rotate(-12deg) scale(1.08); }
.logo svg { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 24; stroke-dashoffset: 24; animation: draw .9s .3s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
nav { display: flex; gap: 2px; align-items: center; }
nav a { padding: 8px 14px; border-radius: 999px; color: var(--ink-2); font-weight: 500; font-size: 14px; transition: background .2s, color .2s; }
nav a:hover { background: var(--line); text-decoration: none; }
nav a.active { background: var(--ink); color: var(--bg); }
nav .bal { color: var(--mint); font-weight: 700; font-variant-numeric: tabular-nums; }
nav .btn { margin-left: 6px; }
.menu-btn { display: none; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--line); cursor: pointer; position: relative; }
.menu-btn span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease); }
.menu-btn span:first-child { top: 16px; } .menu-btn span:last-child { top: 22px; }
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(3px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-3px) rotate(-45deg); }
/* (phones use the bottom tab bar — see "phones: bottom tab bar" below) */

/* ---------- layout ---------- */
main { width: min(1160px, 100%); margin: 0 auto; padding: 40px 20px 80px; flex: 1; }
main.enter > * { animation: pageIn .6s var(--ease) both; }
main.enter > *:nth-child(2) { animation-delay: .05s; } main.enter > *:nth-child(3) { animation-delay: .1s; } main.enter > *:nth-child(n+4) { animation-delay: .15s; }
@keyframes pageIn { from { opacity: 0; transform: translateY(14px); filter: blur(4px); } }
.footer { border-top: 1px solid var(--line); padding: 28px 20px; font-size: 13px; }
.footer-inner { width: min(1120px, 100%); margin: 0 auto; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; position: static; flex-direction: row; padding: 0; background: none; border: 0; box-shadow: none; opacity: 1; transform: none; pointer-events: auto; }
.footer-links a { color: var(--muted); padding: 0; font-size: 13px; border-radius: 0; }
.footer-links a:hover { color: var(--ink); background: none; text-decoration: underline; }
.disclaimer { width: min(1120px, 100%); margin: 16px auto 0; color: var(--muted); font-size: 12px; line-height: 1.5; opacity: .8; }
.ssr { max-width: 720px; padding: 40px 0; }
.ssr h1 { font-size: clamp(34px, 6vw, 64px); letter-spacing: -.04em; }
.ssr p { color: var(--muted); font-size: 18px; }
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; font: 600 17px var(--display); letter-spacing: -.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 24px var(--font); color: var(--muted); transition: transform .3s var(--ease); flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 18px; color: var(--muted); max-width: 680px; animation: fadeUp .4s var(--ease); }
.landing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin: 30px 0 60px; }
.landing-grid .card h3 { margin-top: 0; }
.legal { max-width: 760px; margin: 0 auto; }
.legal h2 { font-size: 20px; margin: 28px 0 8px; letter-spacing: -.02em; }
.legal p, .legal li { color: var(--ink-2); }
.legal ul { padding-left: 20px; }
.legal .updated { color: var(--muted); font-size: 13px; }
.small-brand { font-size: 14px; } .small-brand .logo { width: 24px; height: 24px; border-radius: 8px; } .small-brand .logo svg { width: 14px; height: 14px; }

.page-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.page-head h1 { margin: 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 600 12px var(--font); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: 10px; }
.eyebrow::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: var(--accent); }
.back { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-weight: 500; margin-bottom: 18px; }
.back:hover { color: var(--ink); text-decoration: none; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; margin-bottom: 16px; box-shadow: var(--shadow-sm); }
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.spread { justify-content: space-between; }
.stack > * + * { margin-top: 14px; }

/* ---------- buttons ---------- */
.btn {
  --bx: 0px; --by: 0px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 999px; padding: 12px 22px;
  font: 600 14px var(--font); cursor: pointer; background: var(--ink); color: var(--bg); position: relative; isolation: isolate; overflow: hidden;
  transform: translate(var(--bx), var(--by)); transition: transform .35s var(--ease), box-shadow .3s, background .3s, opacity .2s;
  box-shadow: 0 1px 0 rgba(255,255,255,.12) inset, 0 8px 20px -8px rgba(14,14,18,.5);
}
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--brand); opacity: 0; transition: opacity .35s; }
.btn:hover { text-decoration: none; box-shadow: 0 14px 30px -10px var(--accent); }
.btn:hover::before { opacity: 1; }
.btn:hover { color: #fff; }
.btn:active { transform: translate(var(--bx), var(--by)) scale(.97); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn .arrow { transition: transform .35s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn.ghost::before { background: var(--line); }
.btn.ghost:hover { color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn.ok { background: var(--mint); color: #fff; } .btn.ok::before { background: linear-gradient(120deg, #0ea472, #3ddbb0); }
.btn.ok:hover { box-shadow: 0 14px 30px -10px var(--mint); }
.btn.bad { background: var(--coral); color: #fff; }
.btn.sm { padding: 8px 14px; font-size: 13px; }
.btn.lg { padding: 16px 28px; font-size: 15px; }
.btn.block { width: 100%; }

/* ---------- forms ---------- */
label { display: block; font-weight: 600; font-size: 13px; margin-bottom: 6px; color: var(--ink-2); }
input, select, textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: var(--r-sm); font: inherit;
  background: var(--bg); color: var(--ink); transition: border-color .2s, box-shadow .2s, background .2s;
}
input:hover, select:hover, textarea:hover { border-color: var(--muted); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); background: var(--card); }
input:disabled { opacity: .6; }
textarea { min-height: 110px; resize: vertical; }
.check { display: flex; align-items: center; gap: 10px; font-weight: 500; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: var(--r-sm); cursor: pointer; margin: 0 0 8px; transition: .2s; }
.check:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.check input { width: 18px; height: 18px; accent-color: var(--accent); margin: 0; }
.form-grid { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.hint { font-size: 12px; color: var(--muted); margin-top: 6px; font-weight: 400; }

/* ---------- chips & badges ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--line); color: var(--ink-2); white-space: nowrap; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .8; }
.badge.android { color: #12a150; background: rgba(18, 161, 80, .1); }
.badge.ios { color: var(--sky); background: rgba(59, 158, 255, .1); }
.badge.both { color: var(--accent); background: var(--accent-soft); }
.badge.joined, .badge.pending, .badge.processing { color: var(--amber); background: rgba(245, 165, 36, .12); }
.badge.submitted { color: var(--sky); background: rgba(59, 158, 255, .1); }
.badge.approved, .badge.paid, .badge.open { color: var(--mint); background: var(--mint-soft); }
.badge.rejected, .badge.closed { color: var(--coral); background: var(--coral-soft); }
.badge.open::before { animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 currentColor; } 70% { box-shadow: 0 0 0 6px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.reward { font: 700 24px var(--display); color: var(--ink); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.reward.green { color: var(--mint); }

/* ---------- tilt cards ---------- */
[data-tilt] {
  --rx: 0deg; --ry: 0deg; --gx: 50%; --gy: 50%;
  transform: perspective(1000px) rotateX(var(--rx)) rotateY(var(--ry)); transform-style: preserve-3d;
  transition: transform .5s var(--ease), box-shadow .4s var(--ease), border-color .3s; position: relative; will-change: transform;
}
[data-tilt]:hover { box-shadow: var(--shadow); border-color: var(--line-2); }
[data-tilt].tilting { transition: transform .08s linear, box-shadow .4s; }
[data-tilt]::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(600px circle at var(--gx) var(--gy), rgba(255,255,255,.35), transparent 40%);
  mix-blend-mode: soft-light;
}
[data-tilt]:hover::after { opacity: 1; }
.lift { transform: translateZ(30px); }

/* ---------- campaign cards ---------- */
.ccard { display: flex; flex-direction: column; gap: 16px; padding: 22px; color: inherit; margin: 0; }
.ccard:hover { text-decoration: none; }
.ccard-top { display: flex; gap: 14px; align-items: center; }
.app-icon {
  --h: 250; width: 52px; height: 52px; border-radius: 16px; flex: none; display: grid; place-items: center;
  font: 700 22px var(--display); color: #fff;
  background: linear-gradient(145deg, hsl(var(--h) 90% 68%), hsl(calc(var(--h) + 30) 80% 52%));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 10px 20px -8px hsl(var(--h) 80% 50% / .7);
}
.app-icon.xl { width: 76px; height: 76px; border-radius: 22px; font-size: 32px; }
.ccard h3 { margin: 0 0 2px; font-size: 17px; }
.ccard p { margin: 0; color: var(--muted); font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ccard-foot { display: flex; justify-content: space-between; align-items: end; margin-top: auto; padding-top: 14px; border-top: 1px dashed var(--line-2); }
.meter { height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; margin-top: 8px; width: 120px; }
.meter i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transform-origin: left; animation: grow 1.2s var(--ease) both .3s; }
.meter.wide { width: 100%; }
@keyframes grow { from { transform: scaleX(0); } }
.go-arrow { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--line); transition: .35s var(--ease); color: var(--ink); }
.ccard:hover .go-arrow { background: var(--ink); color: var(--bg); transform: translateZ(20px) rotate(-45deg); }

/* ==========================================================================
   HERO + 3D SCENE
   ========================================================================== */
.hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; min-height: min(78vh, 720px); padding: 10px 0 40px; }
.hero-copy { position: relative; z-index: 2; }
.pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border-radius: 999px; background: var(--card);
  border: 1px solid var(--line); box-shadow: var(--shadow-sm); font-size: 13px; font-weight: 500; color: var(--ink-2); margin-bottom: 26px;
}
.pill b { background: var(--ink); color: var(--bg); padding: 3px 10px; border-radius: 99px; font-size: 12px; }
.hero h1 { font-size: clamp(44px, 7vw, 92px); line-height: .95; letter-spacing: -.055em; font-weight: 800; margin-bottom: 24px; }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero h1 .line > span { display: inline-block; animation: rise 1s var(--ease) both; }
.hero h1 .line:nth-child(2) > span { animation-delay: .12s; }
.hero h1 .grad { background: linear-gradient(100deg, #2563eb 5%, #0ea5e9 40%, #2dd4bf 75%, #0ea5e9 100%); -webkit-background-clip: text; background-clip: text; color: transparent; background-size: 200% 100%; animation: rise 1s .12s var(--ease) both, shimmer 6s 1.2s ease-in-out infinite; }
@keyframes rise { from { transform: translateY(105%) rotate(4deg); } }
@keyframes shimmer { 50% { background-position: 100% 0; } }
.hero p.lead { font-size: clamp(16px, 1.6vw, 19px); color: var(--muted); max-width: 500px; margin: 0 0 34px; animation: fadeUp .9s .35s var(--ease) both; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; animation: fadeUp .9s .45s var(--ease) both; }
.hero .proof { display: flex; gap: 28px; margin-top: 44px; animation: fadeUp .9s .55s var(--ease) both; flex-wrap: wrap; }
.proof div { font-size: 13px; color: var(--muted); }
.proof b { display: block; font: 700 26px var(--display); color: var(--ink); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } }

.scene { position: relative; height: 620px; perspective: 1400px; perspective-origin: 50% 40%; animation: sceneIn 1.4s .1s var(--ease) both; }
@keyframes sceneIn { from { opacity: 0; transform: translateY(40px) scale(.94); } }
.stage {
  --mx: 0; --my: 0;
  position: absolute; inset: 0; transform-style: preserve-3d;
  transform: rotateX(calc(16deg + var(--my) * -8deg)) rotateY(calc(-26deg + var(--mx) * 12deg)) rotateZ(2deg);
  transition: transform .9s var(--ease);
}
.ground { position: absolute; left: 50%; top: 50%; width: 520px; height: 520px; margin: -260px 0 0 -260px; transform: rotateX(90deg) translateZ(-270px); transform-style: preserve-3d; }
.ground::before { content: ""; position: absolute; inset: 15%; border-radius: 50%; background: radial-gradient(closest-side, rgba(8, 60, 100, .35), transparent); filter: blur(20px); }
.ring { position: absolute; inset: 0; border-radius: 50%; border: 1px dashed var(--line-2); animation: spin 40s linear infinite; }
.ring.r2 { inset: 12%; border-style: solid; border-color: var(--line); animation-duration: 28s; animation-direction: reverse; }
.ring::after { content: ""; position: absolute; top: -5px; left: 50%; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 20px var(--accent); }
.ring.r2::after { background: var(--mint); box-shadow: 0 0 20px var(--mint); top: auto; bottom: -5px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* phone model: stacked layers give it real thickness */
.phone { position: absolute; width: 236px; height: 484px; transform-style: preserve-3d; }
.phone .layer { position: absolute; inset: 0; border-radius: 40px; background: #2a2a33; transform: translateZ(var(--z)); }
.phone .layer:nth-child(1) { background: #3a3a46; }
.phone .body {
  position: absolute; inset: 0; border-radius: 40px; background: var(--phone); padding: 10px; transform: translateZ(1px);
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.14), inset 0 0 0 4px #000;
}
.phone .screen { position: relative; width: 100%; height: 100%; border-radius: 31px; background: var(--screen); overflow: hidden; color: var(--screen-ink); font-size: 11px; }
.phone .screen::after { content: ""; position: absolute; inset: 0; background: linear-gradient(125deg, rgba(255,255,255,.28) 0%, transparent 32%); pointer-events: none; }
.notch { position: absolute; top: 10px; left: 50%; width: 76px; height: 22px; margin-left: -38px; border-radius: 99px; background: #000; z-index: 3; }
.phone-a { left: 50%; top: 50%; margin: -242px 0 0 -150px; transform: translateZ(40px); }
.phone-b { left: 50%; top: 50%; margin: -270px 0 0 -10px; transform: translateZ(-90px) rotateY(8deg); }
.phone-a .float, .phone-b .float { animation: bob 7s ease-in-out infinite; transform-style: preserve-3d; position: absolute; inset: 0; }
.phone-b .float { animation-delay: -3.5s; }
@keyframes bob { 50% { transform: translateY(-14px); } }

/* in-screen UI */
.ui { position: absolute; inset: 0; padding: 44px 16px 16px; display: flex; flex-direction: column; gap: 10px; }
.ui-bar { display: flex; justify-content: space-between; align-items: center; font-weight: 700; font-size: 13px; }
.ui-dot { width: 26px; height: 26px; border-radius: 50%; background: var(--screen-line); }
.ui-card { background: var(--card); border: 1px solid var(--screen-line); border-radius: 16px; padding: 12px; }
.ui-app { display: flex; gap: 10px; align-items: center; }
.ui-app i { width: 38px; height: 38px; border-radius: 12px; background: linear-gradient(145deg, #ffb36b, #ff6a4d); flex: none; }
.ui-app b { display: block; font-size: 12px; }
.ui-app span { color: var(--muted); font-size: 10px; }
.ui-big { font: 800 26px var(--display); letter-spacing: -.04em; }
.ui-big small { font-size: 11px; color: var(--muted); font-weight: 500; letter-spacing: 0; }
.ui-line { height: 7px; border-radius: 6px; background: var(--screen-line); }
.ui-line.w60 { width: 60%; } .ui-line.w80 { width: 80%; } .ui-line.w40 { width: 40%; }
.ui-prog { height: 8px; border-radius: 8px; background: var(--screen-line); overflow: hidden; }
.ui-prog i { display: block; height: 100%; width: 64%; border-radius: inherit; background: linear-gradient(90deg, var(--accent), var(--accent-2)); animation: prog 4s var(--ease) infinite alternate; }
@keyframes prog { from { width: 30%; } to { width: 86%; } }
.ui-stars { display: flex; gap: 3px; color: var(--amber); font-size: 14px; letter-spacing: 1px; }
.ui-stars span { animation: star 3s infinite; display: inline-block; }
.ui-stars span:nth-child(2) { animation-delay: .1s; } .ui-stars span:nth-child(3) { animation-delay: .2s; } .ui-stars span:nth-child(4) { animation-delay: .3s; } .ui-stars span:nth-child(5) { animation-delay: .4s; }
@keyframes star { 0%, 70%, 100% { transform: none; } 80% { transform: scale(1.35) rotate(10deg); } }
.ui-btn { margin-top: auto; background: var(--screen-ink); color: var(--screen); border-radius: 12px; padding: 11px; text-align: center; font-weight: 700; font-size: 12px; }
.ui-avatars { display: flex; }
.ui-avatars i { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--card); margin-left: -7px; background: hsl(var(--h) 70% 65%); }
.ui-avatars i:first-child { margin-left: 0; }
.ui-bars { display: flex; align-items: end; gap: 6px; height: 70px; }
.ui-bars i { flex: 1; border-radius: 5px 5px 2px 2px; background: var(--accent-soft); height: var(--v); animation: bar 3.2s var(--ease) infinite alternate; transform-origin: bottom; }
.ui-bars i:nth-child(odd) { background: linear-gradient(var(--accent-2), var(--accent)); }
.ui-bars i:nth-child(2) { animation-delay: -.6s; } .ui-bars i:nth-child(3) { animation-delay: -1.2s; } .ui-bars i:nth-child(4) { animation-delay: -1.8s; } .ui-bars i:nth-child(5) { animation-delay: -2.4s; }
@keyframes bar { from { transform: scaleY(.5); } }
.ui-check { display: flex; align-items: center; gap: 8px; font-size: 11px; }
.ui-check i { width: 16px; height: 16px; border-radius: 5px; background: var(--mint); display: grid; place-items: center; flex: none; }
.ui-check i::after { content: ""; width: 7px; height: 4px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.ui-check.off i { background: var(--screen-line); } .ui-check.off i::after { display: none; }

/* floating chips */
.chip3d { position: absolute; transform-style: preserve-3d; }
.chip3d .inner {
  display: flex; align-items: center; gap: 10px; padding: 10px 14px 10px 10px; border-radius: 16px; white-space: nowrap;
  background: var(--glass); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid var(--line-2);
  box-shadow: var(--shadow-lg); font-size: 12px; animation: bob 6s ease-in-out infinite;
}
.chip3d .inner b { display: block; font: 700 14px var(--display); letter-spacing: -.01em; }
.chip3d .inner span { color: var(--muted); }
.chip3d .ic { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; flex: none; }
.chip3d .ic svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.ic.mint { background: var(--mint-soft); color: var(--mint); } .ic.coral { background: var(--coral-soft); color: var(--coral); } .ic.violet { background: var(--accent-soft); color: var(--accent); }
.c1 { left: 2%; top: 22%; transform: translateZ(150px); }
.c2 { right: -2%; top: 56%; transform: translateZ(120px); } .c2 .inner { animation-delay: -2s; }
.c3 { left: 10%; bottom: 8%; transform: translateZ(90px); } .c3 .inner { animation-delay: -4s; }

/* 3D coin */
.coin { position: absolute; right: 8%; top: 6%; width: 86px; height: 86px; transform: translateZ(200px); transform-style: preserve-3d; }
.coin .spin { position: absolute; inset: 0; transform-style: preserve-3d; animation: coin 6s linear infinite; }
.coin .face, .coin .edge { position: absolute; inset: 0; border-radius: 50%; }
.coin .face { background: radial-gradient(circle at 35% 30%, #ffe7a3, #f5a524 55%, #c77a0a); display: grid; place-items: center; font: 800 34px var(--display); color: #8a4f00; box-shadow: inset 0 0 0 5px rgba(255,255,255,.35), inset 0 0 0 7px rgba(160,90,0,.35); }
.coin .face.f { transform: translateZ(5px); } .coin .face.b { transform: rotateY(180deg) translateZ(5px); }
.coin .edge { background: #b26d06; transform: translateZ(var(--z)); }
@keyframes coin { to { transform: rotateY(360deg); } }
.sparkle { position: absolute; width: 14px; height: 14px; transform: translateZ(var(--z, 60px)); }
.sparkle::before, .sparkle::after { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; margin-left: -1px; border-radius: 2px; background: var(--accent); animation: twinkle 3s ease-in-out infinite; }
.sparkle::after { transform: rotate(90deg); }
@keyframes twinkle { 0%, 100% { opacity: .15; transform: scale(.4); } 50% { opacity: 1; transform: scale(1); } }
.sparkle::after { animation-name: twinkle2; } @keyframes twinkle2 { 0%, 100% { opacity: .15; transform: rotate(90deg) scale(.4); } 50% { opacity: 1; transform: rotate(90deg) scale(1); } }

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; min-height: 0; text-align: left; gap: 0; }
  .scene { height: 520px; margin: 0 -20px; transform: scale(.82); transform-origin: top center; margin-bottom: -60px; }
}
@media (max-width: 520px) {
  .scene { transform: scale(.66); height: 480px; margin-bottom: -150px; }
  .hero .proof { gap: 20px; }
}

/* ---------- marquee ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding: 18px 0; margin: 10px -20px 90px; 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; gap: 48px; width: max-content; animation: marquee 40s linear infinite; }
.marquee span { font: 600 15px var(--display); color: var(--muted); display: inline-flex; align-items: center; gap: 48px; white-space: nowrap; }
.marquee span::after { content: "✦"; color: var(--accent); font-size: 11px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.section { margin-bottom: 110px; }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(30px, 4.4vw, 52px); letter-spacing: -.045em; line-height: 1.02; }
.section-head p { color: var(--muted); font-size: 17px; margin: 0; }
.steps3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 900px) { .steps3 { grid-template-columns: 1fr; } }
.step { padding: 0; overflow: hidden; margin: 0; }
.step .art { height: 220px; display: grid; place-items: center; background: linear-gradient(180deg, var(--bg-2), transparent); border-bottom: 1px solid var(--line); position: relative; }
.step .art svg { width: 100%; height: 100%; overflow: visible; }
.step .txt { padding: 22px 24px 26px; }
.step .num { font: 600 12px var(--font); color: var(--accent); letter-spacing: .1em; }
.step h3 { margin: 6px 0 6px; font-size: 20px; }
.step p { margin: 0; color: var(--muted); font-size: 14px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }
.path { padding: 34px; margin: 0; min-height: 380px; display: flex; flex-direction: column; overflow: hidden; }
.path.dark { background: #0e0e12; color: #f3f3f6; border-color: #0e0e12; }
.path.dark .muted, .path.dark li { color: #a3a3b0; }
@media (prefers-color-scheme: dark) { .path.dark { background: linear-gradient(160deg, #0c3554, #0e0e12 70%); border-color: rgba(56,189,248,.25); } }
nav a.bal.active { color: var(--mint); }
.path h3 { font-size: 30px; letter-spacing: -.04em; margin: 14px 0 10px; }
.path ul { list-style: none; padding: 0; margin: 8px 0 28px; }
.path li { display: flex; gap: 12px; padding: 9px 0; color: var(--muted); border-bottom: 1px solid var(--line); }
.path.dark li { border-color: rgba(255,255,255,.08); }
.path li::before { content: ""; width: 18px; height: 18px; flex: none; margin-top: 2px; border-radius: 6px; background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.5l2.5 2.5L13 6.5' stroke='%230ea5e9' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat; }
.path .btn { margin-top: auto; align-self: flex-start; }
.path.dark .btn { background: #fff; color: #0e0e12; }
.path.dark .btn:hover { color: #fff; }
.path-art { position: absolute; right: -30px; top: -30px; width: 200px; height: 200px; opacity: .9; pointer-events: none; }

.cta-band {
  position: relative; overflow: hidden; border-radius: 32px; padding: clamp(40px, 7vw, 80px); text-align: center; margin-bottom: 40px;
  background: radial-gradient(120% 140% at 50% 0%, #0ea5e9 0%, #0369a1 45%, #062a47 100%); color: #fff;
}
.cta-band h2 { font-size: clamp(32px, 5vw, 60px); letter-spacing: -.05em; margin-bottom: 14px; }
.cta-band p { color: rgba(255,255,255,.75); margin: 0 auto 30px; max-width: 480px; }
.cta-band .btn { background: #fff; color: #062a47; }
.cta-band .btn:hover { color: #fff; }
.cta-band .grid-floor { position: absolute; inset: auto -20% -40% -20%; height: 300px; background-image: linear-gradient(rgba(255,255,255,.12) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.12) 1px, transparent 1px); background-size: 40px 40px; transform: perspective(500px) rotateX(60deg); mask-image: linear-gradient(transparent, #000); -webkit-mask-image: linear-gradient(transparent, #000); animation: floor 3s linear infinite; }
@keyframes floor { to { background-position: 0 40px; } }
.cta-band > *:not(.grid-floor) { position: relative; }

/* ---------- reveal on scroll ---------- */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal][data-tilt].in { transform: perspective(1000px) rotateX(var(--rx)) rotateY(var(--ry)); }

/* ---------- SVG illustration motion ---------- */
.ill * { transform-box: fill-box; transform-origin: center; }
.ill .float-y { animation: bob 5s ease-in-out infinite; }
.ill .float-y2 { animation: bob 6s ease-in-out -2s infinite; }
.ill .pop { animation: pop 3.6s var(--spring) infinite; }
@keyframes pop { 0%, 15% { transform: scale(0); } 30%, 85% { transform: scale(1); } 100% { transform: scale(0); } }
.ill .crawl { animation: crawl 6s ease-in-out infinite; }
@keyframes crawl { 0%, 100% { transform: translate(0, 0) rotate(0); } 25% { transform: translate(18px, -10px) rotate(20deg); } 50% { transform: translate(6px, 14px) rotate(-10deg); } 75% { transform: translate(-14px, 2px) rotate(-25deg); } }
.ill .scan { animation: scan 6s ease-in-out infinite; }
@keyframes scan { 0%, 100% { transform: translate(0, 0); } 25% { transform: translate(16px, -12px); } 50% { transform: translate(4px, 12px); } 75% { transform: translate(-14px, 0); } }
.ill .drop { animation: drop 2.8s var(--ease) infinite; }
@keyframes drop { 0% { transform: translateY(-50px); opacity: 0; } 20% { opacity: 1; } 55%, 100% { transform: translateY(0); opacity: 1; } }
.ill .rise-up { animation: riseUp 2.8s var(--ease) infinite; }
@keyframes riseUp { 0%, 50% { transform: translateY(6px); opacity: 0; } 70% { opacity: 1; } 100% { transform: translateY(-16px); opacity: 0; } }
.ill .type { animation: type 3s steps(1) infinite; }
@keyframes type { 0% { transform: scaleX(.2); } 33% { transform: scaleX(.6); } 66% { transform: scaleX(1); } }
.ill .type { transform-origin: left center; }
.ill .spin-slow { animation: spin 14s linear infinite; }

/* ---------- stats / tables / tabs ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-bottom: 24px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; position: relative; overflow: hidden; }
.stat span { font-size: 13px; color: var(--muted); }
.stat b { display: block; font: 700 30px var(--display); letter-spacing: -.04em; margin: 4px 0 2px; font-variant-numeric: tabular-nums; }
.stat::after { content: ""; position: absolute; right: -30px; top: -30px; width: 90px; height: 90px; border-radius: 50%; background: var(--accent-soft); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 14px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
tbody tr, table tr:not(:first-child) { transition: background .2s; }
table tr:not(:first-child):hover { background: var(--bg); }
th { font-size: 11px; text-transform: uppercase; color: var(--muted); letter-spacing: .08em; font-weight: 600; }
.table-wrap { overflow-x: auto; padding: 8px 14px; }
.tabs { display: inline-flex; gap: 4px; margin-bottom: 20px; padding: 4px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); flex-wrap: wrap; }
.tabs a { padding: 8px 18px; border-radius: 999px; color: var(--muted); font-weight: 600; font-size: 14px; transition: .25s var(--ease); }
.tabs a:hover { color: var(--ink); text-decoration: none; }
.tabs a.active { background: var(--ink); color: var(--bg); }
.pre { white-space: pre-wrap; word-break: break-word; }
.box { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 14px 16px; font-size: 14px; }
.box.accent { background: var(--accent-soft); border-color: transparent; }
.box.success { background: var(--mint-soft); border-color: transparent; }
.empty { text-align: center; padding: 50px 20px; color: var(--muted); }
.empty svg { width: 140px; height: 110px; display: block; margin: 0 auto 14px; }
.tag-row { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- campaign detail ---------- */
.detail-head { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.detail-head h1 { margin: 0 0 4px; font-size: clamp(28px, 4vw, 44px); letter-spacing: -.04em; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin: 24px 0; }
.kpi { background: var(--bg); border-radius: var(--r-sm); padding: 14px 16px; }
.kpi span { font-size: 12px; color: var(--muted); }
.kpi b { display: block; font: 700 22px var(--display); letter-spacing: -.03em; }
.step-label { display: flex; align-items: center; gap: 10px; font: 600 14px var(--display); margin-bottom: 10px; }
.step-label i { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--bg); font-style: normal; font-size: 12px; }
.tester { border: 1px solid var(--line); border-radius: var(--r-sm); padding: 16px; margin-top: 12px; }
.avatar { --h: 250; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font: 700 15px var(--display); color: #fff; flex: none; background: linear-gradient(145deg, hsl(var(--h) 75% 65%), hsl(calc(var(--h) + 40) 70% 50%)); }

/* ---------- auth ---------- */
.auth { display: grid; grid-template-columns: 1fr 1fr; gap: 0; max-width: 1040px; margin: 0 auto; background: var(--card); border: 1px solid var(--line); border-radius: 28px; overflow: hidden; box-shadow: var(--shadow); }
.auth-form { padding: clamp(28px, 5vw, 56px); }
.auth-form h1 { font-size: 34px; letter-spacing: -.04em; }
.auth-art { position: relative; background: radial-gradient(120% 120% at 30% 10%, #0ea5e9, #0369a1 55%, #062a47); color: #fff; padding: 48px; display: flex; flex-direction: column; justify-content: flex-end; min-height: 560px; overflow: hidden; perspective: 1000px; }
.auth-art h2 { font-size: 30px; letter-spacing: -.04em; position: relative; }
.auth-art p { color: rgba(255,255,255,.72); margin: 0; position: relative; }
.auth-art .mini-stage { position: absolute; inset: 0 0 35% 0; transform-style: preserve-3d; transform: rotateX(20deg) rotateY(-18deg); }
.auth-art .card3 { position: absolute; width: 220px; border-radius: 18px; padding: 16px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 30px 60px -20px rgba(0,0,0,.5); font-size: 13px; }
.auth-art .card3 .inner { animation: bob 6s ease-in-out infinite; }
.auth-art .card3 b { display: block; font: 700 22px var(--display); }
.auth-art .k1 { left: 14%; top: 18%; transform: translateZ(40px); }
.auth-art .k2 { left: 40%; top: 40%; transform: translateZ(120px); background: #fff; color: #0e0e12; }
.auth-art .k2 .muted { color: #6d6d78; }
.auth-art .k3 { left: 8%; top: 52%; transform: translateZ(80px); width: 180px; }
@media (max-width: 860px) { .auth { grid-template-columns: 1fr; } .auth-art { display: none; } }
.divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 12px; margin: 6px 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ---------- misc ---------- */
.toast {
  position: fixed; bottom: 24px; left: 50%; z-index: 100; max-width: 90vw; display: flex; align-items: center; gap: 10px;
  background: var(--ink); color: var(--bg); padding: 12px 18px 12px 14px; border-radius: 999px; box-shadow: var(--shadow-lg); font-weight: 500; font-size: 14px;
  transform: translateX(-50%); animation: toastIn .5s var(--spring);
}
.toast::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px rgba(18,184,134,.25); }
.toast.err::before { background: var(--coral); box-shadow: 0 0 0 4px rgba(255,106,77,.25); }
.toast[hidden] { display: none; }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 20px) scale(.9); } }
.loader { display: flex; gap: 8px; justify-content: center; padding: 120px 0; }
.loader span { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); animation: load 1s var(--ease) infinite alternate; }
.loader span:nth-child(2) { animation-delay: .15s; } .loader span:nth-child(3) { animation-delay: .3s; }
@keyframes load { from { transform: translateY(8px); opacity: .3; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
}

/* ==========================================================================
   Uploads & downloads
   ========================================================================== */
.uploader { display: grid; gap: 12px; }
.dropzone {
  position: relative; display: flex; align-items: center; gap: 18px; padding: 22px; cursor: pointer; overflow: hidden; isolation: isolate;
  border: 1.5px dashed var(--line-2); border-radius: var(--r); background: var(--bg); transition: border-color .3s, background .3s, transform .4s var(--spring), box-shadow .3s;
}
.dropzone::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(400px circle at 30% 50%, var(--accent-soft), transparent 60%); opacity: 0; transition: opacity .4s; }
.dropzone:hover, .dropzone:focus-visible { border-color: var(--accent); }
.dropzone:hover::before, .dropzone.over::before { opacity: 1; }
.dropzone.over { border-style: solid; border-color: var(--accent); transform: scale(1.015); box-shadow: 0 0 0 6px var(--accent-soft); }
.dropzone.dropped { animation: dzDrop .6s var(--spring); }
@keyframes dzDrop { 30% { transform: scale(.97); } 60% { transform: scale(1.02); } }
.dz-orb { position: relative; width: 56px; height: 56px; flex: none; display: grid; place-items: center; }
.dz-icon { width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; background: var(--ink); color: var(--bg); transition: transform .5s var(--spring), background .3s; position: relative; z-index: 1; }
.dz-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.dropzone:hover .dz-icon { transform: translateY(-3px) rotate(-6deg); }
.dropzone.over .dz-icon { transform: translateY(-6px) scale(1.08); background: var(--accent); color: #fff; }
.dropzone.over .dz-icon svg { animation: nudge .8s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateY(-3px); } }
.dz-orb i { position: absolute; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); opacity: 0; }
.dropzone.over .dz-orb i { animation: orbit 1.6s linear infinite; opacity: 1; }
.dropzone.over .dz-orb i:nth-child(3) { animation-delay: -.53s; background: var(--mint); }
.dropzone.over .dz-orb i:nth-child(4) { animation-delay: -1.06s; background: var(--amber); }
@keyframes orbit { from { transform: rotate(0) translateX(34px) rotate(0); } to { transform: rotate(360deg) translateX(34px) rotate(-360deg); } }
.dz-text b { display: block; font: 600 15px var(--display); }
.dz-text span { font-size: 13px; color: var(--muted); }
.dz-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.dz-actions svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.dz-actions .dz-count { margin-left: auto; }

.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.tiles:empty { display: none; }
.tile { position: relative; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--card); animation: tileIn .5s var(--spring) both; animation-delay: var(--d); }
.tile.wide { grid-column: 1 / -1; display: flex; align-items: center; }
.tile.leaving { animation: tileOut .35s var(--ease) forwards; }
@keyframes tileIn { from { opacity: 0; transform: scale(.7) translateY(12px); } }
@keyframes tileOut { to { opacity: 0; transform: scale(.8); } }
.tile.s-error { border-color: var(--coral); animation: shake .45s; }
@keyframes shake { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }
.tile-media { position: relative; aspect-ratio: 4 / 3; background: var(--bg-2); display: grid; place-items: center; overflow: hidden; }
.tile.wide .tile-media { width: 76px; aspect-ratio: 1; flex: none; }
.tile-media img, .tile-media video { width: 100%; height: 100%; object-fit: cover; transition: filter .4s, transform .6s var(--ease); }
.tile:not(.s-done) .tile-media img, .tile:not(.s-done) .tile-media video { filter: blur(2px) brightness(.7); transform: scale(1.05); }
.tile-icon { color: #12a150; }
.tile-icon svg, .tile-badge svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tile-badge { position: absolute; left: 6px; bottom: 6px; width: 24px; height: 24px; border-radius: 8px; background: rgba(0,0,0,.55); color: #fff; display: grid; place-items: center; }
.tile-badge svg { width: 14px; height: 14px; }
.ring { position: absolute; width: 46px; height: 46px; transform: rotate(-90deg); transition: opacity .3s, transform .4s var(--spring); }
.ring circle { fill: none; stroke-width: 3.5; }
.ring-bg { stroke: rgba(255,255,255,.25); }
.ring-fg { stroke: #fff; stroke-linecap: round; transition: stroke-dashoffset .2s linear; }
.s-compressing .ring, .s-queued .ring { animation: spinRing 1s linear infinite; }
.s-compressing .ring-fg, .s-queued .ring-fg { stroke-dashoffset: 80 !important; }
@keyframes spinRing { from { transform: rotate(-90deg); } to { transform: rotate(270deg); } }
.tile-pct { position: absolute; bottom: 8px; font: 700 11px var(--font); color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,.5); letter-spacing: .02em; }
.s-done .ring, .s-done .tile-pct, .s-error .ring, .s-error .tile-pct { opacity: 0; transform: rotate(-90deg) scale(.5); }
.tile.wide .ring-bg { stroke: var(--line-2); }
.tile.wide .ring-fg { stroke: var(--accent); }
.tile.wide .tile-pct { color: var(--ink); text-shadow: none; }
.tile-ok { position: absolute; right: 6px; top: 6px; width: 24px; height: 24px; border-radius: 50%; background: var(--mint); display: grid; place-items: center; transform: scale(0); transition: transform .5s var(--spring); }
.tile-ok svg { width: 14px; height: 14px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.tile-ok .draw { stroke-dasharray: 24; stroke-dashoffset: 24; }
.s-done .tile-ok { transform: scale(1); }
.s-done .tile-ok .draw { animation: draw .5s .2s var(--ease) forwards; }
.tile-meta { padding: 8px 10px; min-width: 0; flex: 1; }
.tile-meta b { display: block; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile-meta span { font-size: 11px; color: var(--muted); }
.s-error .tile-meta span { color: var(--coral); }
.tile-btns { position: absolute; top: 6px; left: 6px; display: flex; gap: 4px; opacity: 0; transition: opacity .2s; }
.tile.wide .tile-btns { position: static; opacity: 1; padding-right: 10px; }
.tile:hover .tile-btns, .tile:focus-within .tile-btns, .s-error .tile-btns, .s-uploading .tile-btns { opacity: 1; }
@media (pointer: coarse) { .tile-btns { opacity: 1; } }
.tile-btn { width: 28px; height: 28px; border-radius: 9px; border: 0; display: grid; place-items: center; cursor: pointer; background: rgba(14,14,18,.7); color: #fff; backdrop-filter: blur(6px); }
.tile.wide .tile-btn { background: var(--line); color: var(--ink); }
.tile-btn svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.tile-btn:hover { background: var(--accent); color: #fff; }

/* evidence gallery (developer view) */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; margin-top: 10px; }
.gallery .g-item { position: relative; display: block; border-radius: 12px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--bg-2); border: 1px solid var(--line); animation: tileIn .5s var(--spring) both; }
.gallery img, .gallery video { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); display: block; }
.gallery .g-item:hover img { transform: scale(1.06); }
.gallery .g-dl { position: absolute; right: 6px; bottom: 6px; width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; background: rgba(14,14,18,.72); color: #fff; border: 0; cursor: pointer; }
.gallery .g-dl svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.gallery .g-dl.busy { background: var(--accent); }
.gallery .g-dl.done { background: var(--mint); }

/* animated download button */
.dl-btn { --p: 0; overflow: hidden; min-width: 210px; }
.dl-btn .dl-fill { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transform-origin: left; transform: scaleX(var(--p)); transition: transform .15s linear; }
.dl-btn.busy::before, .dl-btn.done::before { opacity: 0; }
.dl-btn.busy { color: #fff; cursor: progress; }
.dl-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.dl-btn .dl-icon, .dl-btn .dl-done { display: grid; transition: transform .4s var(--spring), opacity .3s; }
.dl-btn:hover .dl-arrow, .dl-btn.busy .dl-arrow { animation: dlBounce .8s ease-in-out infinite; }
@keyframes dlBounce { 50% { transform: translateY(3px); } }
.dl-btn .dl-done { position: absolute; left: 22px; opacity: 0; transform: scale(.3); }
.dl-btn.done { background: var(--mint); color: #fff; }
.dl-btn.done .dl-icon { opacity: 0; transform: scale(.3); }
.dl-btn.done .dl-done { opacity: 1; transform: scale(1); }
.dl-btn.done .dl-done path { stroke-dasharray: 24; stroke-dashoffset: 24; animation: draw .5s var(--ease) forwards; }
.dl-btn.failed { animation: shake .45s; }
.dl-label { font-variant-numeric: tabular-nums; }
.build-box { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; padding: 16px; border-radius: var(--r-sm); background: var(--bg); border: 1px solid var(--line); }
.build-box .apk-ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: rgba(18,161,80,.12); color: #12a150; flex: none; }
.build-box .apk-ic svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ==========================================================================
   Sign-up: role chooser + sign-in methods
   ========================================================================== */
.roles { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; max-width: 980px; margin: 0 auto; }
@media (max-width: 760px) { .roles { grid-template-columns: 1fr; } }
.role { display: flex; flex-direction: column; gap: 10px; padding: 30px; margin: 0; color: inherit; min-height: 380px; overflow: hidden; }
.role:hover { text-decoration: none; }
.role .role-art { height: 150px; margin: -10px -10px 6px; display: grid; place-items: center; }
.role .role-art svg { width: 100%; height: 100%; overflow: visible; }
.role h2 { font-size: 28px; letter-spacing: -.04em; margin: 0; }
.role p { color: var(--muted); margin: 0; }
.role ul { list-style: none; padding: 0; margin: 6px 0 16px; display: grid; gap: 6px; font-size: 14px; }
.role li::before { content: "\2713"; color: var(--mint); font-weight: 700; margin-right: 8px; }
.role .btn { margin-top: auto; align-self: flex-start; }
.role.dev { background: #0e0e12; color: #f3f3f6; border-color: #0e0e12; }
.role.dev p, .role.dev li { color: #a3a3b0; }
.role.dev .btn { background: #fff; color: #0e0e12; }
.role.dev .btn:hover { color: #fff; }
@media (prefers-color-scheme: dark) { .role.dev { background: linear-gradient(160deg, #0c3554, #0e0e12 70%); border-color: rgba(56,189,248,.25); } }

.methods { display: grid; gap: 14px; margin: 22px 0 6px; }
.method-tabs { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); }
.method-tabs button { flex: 1; border: 0; background: transparent; padding: 9px 10px; border-radius: 999px; font: 600 13px var(--font); color: var(--muted); cursor: pointer; transition: .25s var(--ease); white-space: nowrap; }
.method-tabs button.on { background: var(--ink); color: var(--bg); box-shadow: var(--shadow-sm); }
.method-panel { animation: fadeUp .4s var(--ease); }
.g-wrap { min-height: 44px; display: flex; justify-content: center; }
.g-wrap.blocked { opacity: .45; pointer-events: none; filter: grayscale(1); }
.otp { display: flex; gap: 8px; justify-content: space-between; }
.otp input { width: 100%; max-width: 52px; height: 58px; padding: 0; text-align: center; font: 700 24px var(--display); border-radius: 14px; transition: transform .25s var(--spring), border-color .2s, box-shadow .2s; }
.otp input:focus { transform: translateY(-3px); }
.otp input.filled { border-color: var(--accent); }
.otp.bad input { border-color: var(--coral); animation: shake .45s; }
.otp.good input { border-color: var(--mint); background: var(--mint-soft); }
.sent-note { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.sent-note .plane { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); animation: fly .9s var(--spring); flex: none; }
.sent-note .plane svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
@keyframes fly { from { transform: translate(-20px, 14px) rotate(-20deg); opacity: 0; } }

/* ==========================================================================
   Closed-test packs, check-ins, dashboard
   ========================================================================== */
fieldset[hidden] { display: none !important; }
.packs { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin-top: 4px; }
.pack {
  position: relative; display: flex; flex-direction: column; gap: 4px; padding: 18px; border-radius: var(--r); cursor: pointer;
  border: 1.5px solid var(--line-2); background: var(--card); font-weight: 400; margin: 0; transition: border-color .25s, box-shadow .3s, background .3s;
}
.pack input { position: absolute; opacity: 0; pointer-events: none; }
.pack:hover { border-color: var(--muted); }
.pack.on { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft), var(--shadow); background: linear-gradient(180deg, var(--accent-soft), var(--card) 60%); }
.pack.on::after { content: "\2713"; position: absolute; right: 14px; top: 14px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; font-size: 13px; font-weight: 700; animation: popIn .4s var(--spring); }
.pack:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; }
.pack-tag { align-self: flex-start; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #fff; background: linear-gradient(120deg, var(--accent), var(--accent-2)); padding: 3px 9px; border-radius: 99px; margin-bottom: 4px; }
.pack-name { font: 600 14px var(--display); color: var(--muted); }
.pack-price { font: 800 30px var(--display); letter-spacing: -.04em; color: var(--ink); }
.pack-price.small-price { font-size: 22px; }
.pack-meta { font-size: 13px; color: var(--ink-2); }
.pack ul { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 4px; font-size: 12.5px; color: var(--muted); }
.pack li::before { content: "\2713"; color: var(--mint); font-weight: 700; margin-right: 6px; }
.pack.popular { border-color: var(--accent-2); }
.howto { border: 1px solid var(--line); border-radius: var(--r-sm); padding: 0 14px; margin-top: 10px; background: var(--bg); }
.howto summary { cursor: pointer; padding: 11px 0; font-size: 13px; font-weight: 600; color: var(--accent); }
.howto ol { margin: 0 0 12px; padding-left: 20px; font-size: 13.5px; display: grid; gap: 6px; }
.howto code { font-size: 12px; background: var(--card); padding: 1px 5px; border-radius: 5px; border: 1px solid var(--line); }

/* streak: one cell per test day */
.streak { display: grid; grid-template-columns: repeat(var(--n), 1fr); gap: 4px; max-width: 360px; flex: 1; min-width: 160px; }
.streak i { height: 10px; border-radius: 4px; background: var(--line); animation: tileIn .4s var(--spring) both; animation-delay: calc(var(--i) * 25ms); }
.streak i.done { background: var(--mint); }
.streak i.today { background: transparent; box-shadow: inset 0 0 0 2px var(--accent); animation: tileIn .4s var(--spring) both, todayPulse 1.6s ease-in-out infinite; }
.streak i.missed { background: var(--coral-soft); box-shadow: inset 0 0 0 1px rgba(255,106,77,.35); }
@keyframes todayPulse { 50% { box-shadow: inset 0 0 0 2px var(--accent), 0 0 0 4px var(--accent-soft); } }
.streak.big { max-width: 560px; gap: 6px; }
.streak.big i { height: 38px; border-radius: 10px; display: grid; place-items: center; font: 600 12px var(--font); font-style: normal; color: var(--muted); }
.streak.big i.done { color: #fff; }
.streak.big i.done::before { content: "\2713"; font-weight: 800; }
.streak.big i.done { font-size: 0; }
.streak.big i.done::before { font-size: 14px; }
.streak.big i.today { color: var(--accent); font-weight: 800; }
.checkin-box { padding: 18px; border-radius: var(--r); background: var(--bg); border: 1px solid var(--line); }
.checkin-btn { animation: breathe 2.4s ease-in-out infinite; }
@keyframes breathe { 50% { box-shadow: 0 0 0 6px var(--mint-soft), 0 10px 24px -10px var(--mint); } }
.checkin-btn.popping { animation: popIn .5s var(--spring); }
@keyframes popIn { 0% { transform: scale(.6); } 60% { transform: scale(1.12); } 100% { transform: scale(1); } }
.checked-pill { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 99px; background: var(--mint-soft); color: var(--mint); font-weight: 600; font-size: 14px; }
.checked-pill.sm { padding: 5px 10px; font-size: 12px; }
.tester-progress { margin-top: 12px; gap: 14px; }
.confetti { position: fixed; width: 8px; height: 8px; border-radius: 2px; pointer-events: none; z-index: 200; animation: confetti .9s var(--ease) forwards; }
@keyframes confetti { to { transform: translate(var(--x), var(--y)) rotate(320deg) scale(.4); opacity: 0; } }

/* daily-active chart */
.bars { display: flex; align-items: flex-end; gap: 6px; height: 120px; padding: 10px 4px 0; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.bars .bar { flex: 1; max-width: 34px; height: var(--h); min-height: 4px; border-radius: 8px 8px 3px 3px; background: linear-gradient(var(--accent-2), var(--accent)); position: relative; transform-origin: bottom; animation: grow-y .8s var(--ease) both; }
.bars .bar span { position: absolute; top: -18px; left: 0; right: 0; text-align: center; font-size: 11px; font-weight: 700; color: var(--muted); }
@keyframes grow-y { from { transform: scaleY(0); } }

.box.warn { background: rgba(245,165,36,.12); border-color: rgba(245,165,36,.35); color: var(--ink); }
.risk.strong { border-left: 4px solid var(--coral); }
.risk.allowed { opacity: .7; }
.risk-users { display: grid; gap: 8px; margin-top: 12px; }
.risk-user { padding: 8px 10px; border-radius: var(--r-sm); background: var(--bg); }

/* ==========================================================================
   TesterBay — brand, navigation, loading animations, dashboard
   ========================================================================== */

/* ---------- logo ---------- */
.wordmark { font: 800 19px var(--display); letter-spacing: -.03em; color: var(--ink); white-space: nowrap; }
.wordmark b { font-weight: 800; background: var(--brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.wordmark.big { font-size: 34px; }
.mark { display: block; flex: none; filter: drop-shadow(0 6px 14px rgba(14, 165, 233, .35)); transition: transform .5s var(--spring); }
.brand:hover .mark { transform: rotate(-8deg) scale(1.06); }
.mark .m-waves { animation: waves 3.2s linear infinite; }
@keyframes waves { to { transform: translateX(36px); } }
.mark .m-check { stroke-dasharray: 40; stroke-dashoffset: 0; }
.brand:hover .m-check { animation: drawCheck .7s var(--ease); }
@keyframes drawCheck { from { stroke-dashoffset: 40; } }
.footer .brand img { display: block; }

/* ---------- splash: animated first load ---------- */
.splash { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; background: var(--bg); transition: opacity .55s var(--ease), visibility .55s; }
.splash::before { content: ""; position: absolute; inset: 0; background: radial-gradient(600px circle at 50% 42%, rgba(14, 165, 233, .16), transparent 60%); }
.splash.gone { opacity: 0; visibility: hidden; }
.splash.gone .splash-inner { transform: scale(1.06); }
.splash-inner { position: relative; display: grid; justify-items: center; gap: 16px; transition: transform .55s var(--ease); }
.mark-anim .m-tile { transform-origin: 32px 32px; animation: tileIn .7s var(--spring) both; }
.mark-anim .m-check { stroke-dasharray: 40; stroke-dashoffset: 40; animation: drawCheck .6s .35s var(--ease) forwards; }
.mark-anim .m-sun { transform-origin: 50px 13px; animation: sunPop .5s .8s var(--spring) both; }
@keyframes sunPop { from { transform: scale(0); } }
.splash .wordmark { animation: fadeUp .6s .25s var(--ease) both; }
.splash-bar { width: 140px; height: 4px; border-radius: 99px; background: var(--line); overflow: hidden; animation: fadeUp .5s .4s var(--ease) both; }
.splash-bar i { display: block; height: 100%; width: 40%; border-radius: inherit; background: var(--brand); animation: slide 1.1s ease-in-out infinite; }
@keyframes slide { 0% { transform: translateX(-110%); } 100% { transform: translateX(260%); } }
body.booting { overflow: hidden; }

/* ---------- top progress bar between pages ---------- */
#routebar { position: fixed; left: 0; top: 0; height: 3px; width: 100%; z-index: 999; pointer-events: none; transform-origin: left; transform: scaleX(0); opacity: 0; background: var(--brand); box-shadow: 0 0 12px rgba(14, 165, 233, .7); }
#routebar.run { opacity: 1; animation: routeRun 2.5s cubic-bezier(.1, .7, .2, 1) forwards; }
#routebar.run.done { animation: none; transform: scaleX(1); opacity: 0; transition: transform .2s, opacity .4s .15s; }
@keyframes routeRun { from { transform: scaleX(0); } to { transform: scaleX(.85); } }

/* ---------- skeleton placeholders ---------- */
.sk-l, .sk-ic { display: block; border-radius: 8px; background: linear-gradient(90deg, var(--line) 25%, var(--bg-2) 45%, var(--line) 65%); background-size: 300% 100%; animation: shimmer-sk 1.3s ease-in-out infinite; }
.sk-l { height: 12px; margin: 10px 0; width: 100%; }
.sk-l.w20 { width: 20%; } .sk-l.w30 { width: 30%; } .sk-l.w40 { width: 40%; } .sk-l.w60 { width: 60%; } .sk-l.w80 { width: 80%; }
.sk-l.xl { height: 34px; border-radius: 12px; } .sk-l.tall { height: 28px; border-radius: 10px; margin-top: 18px; }
.sk-ic { width: 48px; height: 48px; border-radius: 15px; flex: none; }
.sk-row { display: flex; gap: 14px; align-items: center; padding: 8px 0; }
.sk-head { margin-bottom: 26px; }
.sk-card { min-height: 210px; }
@keyframes shimmer-sk { to { background-position: -150% 0; } }
.stat .sk-l { margin: 8px 0; }

/* ---------- button loading state ---------- */
.btn.loading { color: transparent !important; pointer-events: none; }
.btn.loading::after { content: ""; position: absolute; left: 50%; top: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; border: 2.5px solid rgba(255,255,255,.45); border-top-color: #fff; animation: spin .7s linear infinite; }
.btn.ghost.loading::after { border-color: var(--line-2); border-top-color: var(--accent); }
.loader span { background: var(--brand); }

/* ---------- icons ---------- */
.ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.btn .ic { width: 17px; height: 17px; }

/* ---------- header ---------- */
.menu-btn { display: none !important; }
.topbar { gap: 18px; padding: 8px 10px 8px 14px; }
.brand { gap: 10px; }
.mainnav { display: flex; gap: 2px; margin: 0 auto; }
.mainnav a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; color: var(--ink-2); font-weight: 600; font-size: 14px; position: relative; }
.mainnav a .ic { width: 18px; height: 18px; color: var(--muted); transition: color .2s, transform .3s var(--spring); }
.mainnav a:hover { background: var(--accent-soft); text-decoration: none; color: var(--ink); }
.mainnav a:hover .ic { color: var(--accent); transform: translateY(-1px) scale(1.08); }
.mainnav a.active { background: var(--ink); color: var(--bg); }
.mainnav a.active .ic { color: var(--accent-2); }
.nav-right { display: flex; align-items: center; gap: 8px; }
.nav-right .btn.ghost.active { box-shadow: inset 0 0 0 1.5px var(--accent); }
.wallet-chip { display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px; border-radius: 999px; background: var(--mint-soft); color: var(--mint); font: 700 14px var(--font); font-variant-numeric: tabular-nums; transition: transform .3s var(--spring); }
.wallet-chip:hover { text-decoration: none; transform: translateY(-1px); }
.wallet-chip .ic { width: 17px; height: 17px; }
.wallet-chip.active { box-shadow: inset 0 0 0 1.5px var(--mint); }
.usermenu { position: relative; }
.avatar-btn { display: flex; align-items: center; gap: 4px; padding: 3px 8px 3px 3px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); cursor: pointer; color: var(--muted); transition: border-color .2s; }
.avatar-btn:hover, .avatar-btn[aria-expanded="true"] { border-color: var(--accent); }
.avatar-btn .avatar { width: 32px; height: 32px; font-size: 13px; }
.avatar-btn .chev { width: 15px; height: 15px; transition: transform .3s var(--ease); }
.avatar-btn[aria-expanded="true"] .chev { transform: rotate(180deg); }
.menu {
  position: absolute; right: 0; top: calc(100% + 10px); width: 250px; padding: 8px; border-radius: 18px; background: var(--card); border: 1px solid var(--line);
  box-shadow: var(--shadow-lg); opacity: 0; transform: translateY(-6px) scale(.97); transform-origin: top right; pointer-events: none; transition: .22s var(--ease); z-index: 60;
}
.menu.open { opacity: 1; transform: none; pointer-events: auto; }
.menu-head { display: flex; gap: 10px; align-items: center; padding: 8px 8px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.menu-head div { min-width: 0; }
.menu-head b { display: block; font-size: 14px; }
.menu-head span { display: block; font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; color: var(--ink-2); font-size: 14px; font-weight: 500; }
.menu a .ic { width: 18px; height: 18px; color: var(--muted); }
.menu a:hover { background: var(--accent-soft); text-decoration: none; color: var(--ink); }
.menu a:hover .ic { color: var(--accent); }
.menu hr { border: 0; border-top: 1px solid var(--line); margin: 6px 0; }
.menu #logout:hover { background: var(--coral-soft); color: var(--coral); }
.menu #logout:hover .ic { color: var(--coral); }

/* ---------- phones: bottom tab bar ---------- */
.tabbar { display: none; }
@media (max-width: 860px) {
  nav#nav, .mainnav { display: none !important; }
  .nav-right .wallet-chip b { font-size: 13px; }
  .nav-right > .btn.ghost { display: none; }
  .tabbar {
    display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; z-index: 70; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom));
    padding: 6px; border-radius: 22px; background: var(--glass); backdrop-filter: saturate(1.6) blur(18px); -webkit-backdrop-filter: saturate(1.6) blur(18px);
    border: 1px solid var(--line); box-shadow: 0 10px 30px -10px rgba(5, 40, 70, .35);
  }
  .tabbar a { display: grid; justify-items: center; gap: 3px; padding: 7px 2px; border-radius: 16px; color: var(--muted); font-size: 11px; font-weight: 600; position: relative; }
  .tabbar a:hover { text-decoration: none; }
  .tabbar a .ic { width: 22px; height: 22px; transition: transform .35s var(--spring); }
  .tabbar a.active { color: var(--accent); background: var(--accent-soft); }
  .tabbar a.active .ic { transform: translateY(-2px) scale(1.1); }
  .tabbar a.active::after { content: ""; position: absolute; top: 3px; width: 5px; height: 5px; border-radius: 50%; background: var(--accent-2); animation: popIn .4s var(--spring); }
  body { padding-bottom: calc(90px + env(safe-area-inset-bottom)); }
  .toast { bottom: calc(96px + env(safe-area-inset-bottom)); }
}

/* ---------- background: the bay ---------- */
.o1 { background: #38bdf8; opacity: .32; }
.o2 { background: #2dd4bf; opacity: .24; }
.o3 { width: 360px; height: 360px; background: #ffb648; bottom: 10%; right: 15%; opacity: .09; animation-delay: -14s; }
.hero h1 .grad { animation: rise 1s .12s var(--ease) both, shimmer 7s 1.2s ease-in-out infinite; }
.hero-waves { position: absolute; left: -20px; right: -20px; bottom: -6px; height: 90px; pointer-events: none; overflow: hidden; z-index: 0; opacity: .9; }
.hero-waves svg { position: absolute; bottom: 0; width: 200%; height: 100%; }
.hero-waves .w1 { animation: waveX 14s linear infinite; }
.hero-waves .w2 { animation: waveX 22s linear infinite reverse; opacity: .6; }
@keyframes waveX { to { transform: translateX(-50%); } }
.hero { position: relative; }
.pill b { background: var(--brand); }

/* ---------- dashboard ---------- */
.dash-hero { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 26px; }
.dash-hero h1 { font-size: clamp(30px, 4.5vw, 46px); letter-spacing: -.04em; margin: 6px 0 4px; }
.dash-hero p { margin: 0; }
.dash-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.dash-stat { padding-top: 58px; }
.stat-ic { position: absolute; left: 18px; top: 16px; width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.stat-ic .ic { width: 18px; height: 18px; }
.stat::after { background: radial-gradient(circle, rgba(45, 212, 191, .16), transparent 70%); }
.dash-sec { margin: 36px 0; }
.dash-sec h2 { display: flex; align-items: center; gap: 10px; font-size: 22px; margin: 0 0 14px; }
.dash-sec h2 .ic { width: 22px; height: 22px; color: var(--accent); }
.today-list { display: grid; gap: 10px; }
.today-item { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); animation: tileIn .5s var(--spring) both; }
.today-item:nth-child(2) { animation-delay: .05s; } .today-item:nth-child(3) { animation-delay: .1s; }
.ti-main { flex: 1; min-width: 0; display: grid; gap: 2px; }
.ti-main .meter { margin-top: 6px; }
.dash-camp { display: grid; gap: 14px; color: inherit; margin: 0; }
.dash-camp:hover { text-decoration: none; }
.quick { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.quick-card { display: grid; gap: 4px; margin: 0; color: inherit; padding: 18px; }
.quick-card:hover { text-decoration: none; }
.q-ic { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; background: var(--brand); color: #fff; margin-bottom: 8px; box-shadow: 0 8px 18px -8px rgba(14, 165, 233, .8); transition: transform .4s var(--spring); }
.quick-card:hover .q-ic { transform: translateY(-3px) rotate(-6deg); }
.checked-pill .ic { width: 15px; height: 15px; }

/* ---------- footer ---------- */
.footer { padding: 48px 20px 28px; background: linear-gradient(180deg, transparent, var(--bg-2)); }
.footer-inner { display: grid; grid-template-columns: 1.2fr 2fr; gap: 40px; align-items: start; }
@media (max-width: 760px) { .footer-inner { grid-template-columns: 1fr; gap: 26px; } }
.footer-brand p { max-width: 320px; margin: 12px 0 0; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.footer-cols h4 { font: 700 13px var(--display); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 12px; }
.footer-cols a { display: block; color: var(--ink-2); padding: 4px 0; font-size: 14px; }
.footer-cols a:hover { color: var(--accent); }
.footer-bottom { width: min(1120px, 100%); margin: 30px auto 0; padding-top: 18px; border-top: 1px solid var(--line); font-size: 13px; }

/* ---------- small polish for the new look ---------- */
.card { border-radius: var(--r); }
.badge.both { color: var(--accent); }
.cta-band { background: radial-gradient(120% 140% at 50% 0%, #0ea5e9 0%, #0369a1 45%, #062a47 100%); }
.auth-art { background: radial-gradient(120% 120% at 30% 10%, #2dd4bf, #0284c7 50%, #062a47); }
.path.dark, .role.dev { background: linear-gradient(160deg, #0b2a45, #061a2c 70%); border-color: #0b2a45; }
.eyebrow::before { background: var(--brand); }
.tabs a.active, nav a.active { background: var(--ink); }
.app-icon { --h: 200; }

/* ---------- notifications bell ---------- */
.bellwrap { position: relative; }
.bell-btn { position: relative; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); color: var(--ink-2); display: grid; place-items: center; cursor: pointer; transition: border-color .2s, transform .3s var(--spring); }
.bell-btn:hover, .bell-btn[aria-expanded="true"] { border-color: var(--accent); color: var(--accent); }
.bell-btn:hover .ic { animation: ring .6s ease; }
@keyframes ring { 20% { transform: rotate(14deg); } 40% { transform: rotate(-12deg); } 60% { transform: rotate(8deg); } 80% { transform: rotate(-4deg); } }
.bell-count { position: absolute; top: -3px; right: -3px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: var(--coral); color: #fff; font: 700 10.5px/18px var(--font); font-style: normal; text-align: center; box-shadow: 0 0 0 2px var(--card); }
.bell-count.bump { animation: popIn .45s var(--spring); }
.bell-panel { width: min(360px, calc(100vw - 24px)); right: -60px; padding: 0; overflow: hidden; }
.bell-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.linkish { border: 0; background: none; color: var(--accent); font: 600 13px var(--font); cursor: pointer; padding: 0; }
.bell-list { max-height: min(420px, 60vh); overflow-y: auto; padding: 6px; }
.notif { display: flex; gap: 12px; padding: 10px; border-radius: 12px; color: var(--ink-2); animation: fadeUp .35s var(--ease) both; animation-delay: var(--d); position: relative; }
.notif:hover { background: var(--accent-soft); text-decoration: none; }
.notif.unread::after { content: ""; position: absolute; right: 10px; top: 14px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.n-ic { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); flex: none; }
.n-ic .ic { width: 17px; height: 17px; }
.n-main { display: grid; gap: 2px; min-width: 0; padding-right: 14px; }
.n-main b { font-size: 13.5px; color: var(--ink); line-height: 1.35; }
.n-main span { font-size: 12.5px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.n-main em { font-style: normal; font-size: 11.5px; color: var(--muted); }
.empty .ic { width: 28px; height: 28px; color: var(--muted); margin-bottom: 6px; }
@media (max-width: 860px) { .bell-panel { position: fixed; top: 76px; right: 12px; left: 12px; width: auto; } }

/* ---------- swap credits ---------- */
.reward.credit { color: var(--accent); display: inline-flex; align-items: center; gap: 6px; }
.reward.credit .ic { width: 20px; height: 20px; color: var(--sun); fill: var(--sun); }
.pack.free { border-style: dashed; }
.pack.free.on { border-style: solid; }
.free-tag { display: inline-flex; align-items: center; gap: 4px; background: linear-gradient(120deg, #f59e0b, #ffb648) !important; }
.free-tag .ic { width: 12px; height: 12px; fill: #fff; }
.credit-card .eyebrow .ic { width: 14px; height: 14px; color: var(--sun); fill: var(--sun); }
.tabs a .ic { width: 15px; height: 15px; vertical-align: -2px; }

/* ---------- production-access answers ---------- */
.answers-cta { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 18px; padding: 16px; border-radius: var(--r-sm); background: linear-gradient(120deg, rgba(45,212,191,.12), rgba(37,99,235,.10)); border: 1px solid var(--line); }
.answers-cta b { display: flex; align-items: center; gap: 8px; } .answers-cta b .ic { color: var(--accent); }
.answers-cta span { display: block; margin-top: 2px; }
.answers { display: grid; gap: 14px; margin-top: 16px; }
.answer { animation: fadeUp .4s var(--ease) both; animation-delay: var(--d); }
.answer textarea { margin-top: 8px; font-size: 14px; line-height: 1.55; }
/* ---------- WhatsApp help button ---------- */
.wa-fab { position: fixed; right: 18px; bottom: 18px; z-index: 65; display: inline-flex; align-items: center; gap: 8px; padding: 12px 16px 12px 13px; border-radius: 999px; background: #25d366; color: #fff; font-weight: 700; font-size: 14px; box-shadow: 0 12px 28px -10px rgba(37,211,102,.8); animation: popIn .5s 1.2s var(--spring) both; transition: transform .3s var(--spring); }
.wa-fab:hover { text-decoration: none; transform: translateY(-3px) scale(1.04); }
.wa-fab svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 1.8; }
@media (max-width: 860px) { .wa-fab { bottom: calc(96px + env(safe-area-inset-bottom)); right: 14px; padding: 12px; } .wa-fab span { display: none; } }
