/* =====================================================================
   The Future Genius — shared design system
   Same colours, logo, spacing and motion as the homepage (index.html)
   ===================================================================== */
:root {
  --blue: #1261ff;
  --blue-dark: #0a48c7;
  --blue-light: #4da3ff;
  --blue-pale: #8fb8ff;
  --blue-tint: #edf4ff;
  --navy: #0a1e3f;
  --navy-2: #071a38;
  --navy-3: #06142c;
  --ink: #142033;
  --ink-2: #10203a;
  --muted: #68778b;
  --muted-2: #8a96a8;
  --line: #e4ebf4;
  --line-2: #d8e2ed;
  --bg: #f7faff;
  --card: #ffffff;
  --gold: #f5b83d;
  --gold-2: #ffd977;
  --green: #12a36a;
  --green-tint: #e7f8f0;
  --amber: #d98a00;
  --amber-tint: #fff5e0;
  --red: #e5484d;
  --red-tint: #fdecec;
  --violet: #6b4dff;
  --radius: 20px;
  --shadow-sm: 0 6px 18px rgba(31, 59, 91, 0.06);
  --shadow: 0 15px 35px rgba(31, 59, 91, 0.10);
  --shadow-lg: 0 24px 60px rgba(18, 47, 99, 0.16);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}
main { flex: 1; }
a, button { cursor: pointer; }
a { color: inherit; }
img, svg { display: block; }
button { font: inherit; }
::selection { background: rgba(18, 97, 255, 0.18); }

/* ---------- reading progress bar ---------- */
.scroll-bar {
  position: fixed; top: 0; left: 0; width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--blue-light));
  transform-origin: left; transform: scaleX(0); z-index: 1100; pointer-events: none;
}

/* ---------- announcement ribbon ---------- */
.announce {
  background: linear-gradient(90deg, var(--navy-2), var(--blue-dark), var(--navy-2));
  background-size: 200% 100%;
  animation: ribbon 12s linear infinite;
  color: #fff; font-size: 13px; font-weight: 700;
  padding: 10px 48px 10px 6%; position: relative; text-align: center; line-height: 1.5;
}
.announce b { color: var(--gold-2); }
.announce button {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.12); border: 0; color: #fff; width: 26px; height: 26px; border-radius: 8px;
}

/* ---------- navbar (same as homepage) ---------- */
.navbar {
  height: 76px; background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid #e7edf5;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 6%; position: sticky; top: 0; z-index: 1000;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand-logo {
  width: 46px; height: 46px; border-radius: 14px; position: relative; overflow: hidden; flex-shrink: 0;
  box-shadow: 0 10px 24px rgba(18, 97, 255, 0.30), 0 2px 6px rgba(10, 44, 128, 0.25);
  transition: transform 0.35s var(--ease), box-shadow 0.35s ease;
}
.brand-logo svg { display: block; width: 100%; height: 100%; }
.brand:hover .brand-logo { transform: rotate(-6deg) scale(1.06); box-shadow: 0 14px 30px rgba(18, 97, 255, 0.42), 0 2px 6px rgba(10, 44, 128, 0.25); }
.brand-logo::after {
  content: ""; position: absolute; top: 0; left: -80%; width: 45%; height: 100%;
  background: linear-gradient(110deg, transparent, rgba(255, 255, 255, 0.38), transparent);
  transform: skewX(-20deg); animation: logoShine 6s ease-in-out infinite; pointer-events: none;
}
.logo-halo { transform-box: fill-box; transform-origin: center; animation: haloPulse 2.8s ease-in-out infinite; }
.brand-name { font-size: 21px; font-weight: 800; letter-spacing: -0.6px; color: var(--ink-2); white-space: nowrap; }
.brand-name em {
  font-style: normal; background: linear-gradient(90deg, var(--blue), var(--blue-light));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a {
  text-decoration: none; color: #5b687b; font-size: 14px; font-weight: 700; transition: color 0.2s ease; position: relative;
}
.nav-links a:not(.nav-login):not(.nav-user)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -8px; height: 2px; border-radius: 2px;
  background: var(--blue); transform: scaleX(0); transition: transform 0.25s var(--ease);
}
.nav-links a:hover, .nav-links a.active { color: var(--blue); }
.nav-links a.active::after, .nav-links a:hover::after { transform: scaleX(1); }
.nav-login {
  padding: 11px 18px; border-radius: 10px; background: var(--blue); color: #fff !important;
  box-shadow: 0 8px 20px rgba(18, 97, 255, 0.25); position: relative; overflow: hidden;
}
.nav-login:hover { background: var(--blue-dark); }
.nav-user {
  display: inline-flex; align-items: center; gap: 9px; padding: 5px 12px 5px 5px; border-radius: 999px;
  border: 1px solid var(--line); background: #fff; color: var(--ink) !important;
}
.nav-user .avatar { width: 30px; height: 30px; font-size: 12px; }
.nav-burger {
  display: none; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line); background: #fff;
  align-items: center; justify-content: center; flex-direction: column; gap: 4px;
}
.nav-burger i { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--ink); transition: 0.25s var(--ease); }
.nav-open .nav-burger i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-burger i:nth-child(2) { opacity: 0; }
.nav-open .nav-burger i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.avatar {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0;
  background: linear-gradient(135deg, var(--blue), var(--navy)); color: #fff; font-weight: 800; letter-spacing: 0.5px;
}

/* ---------- layout ---------- */
.wrap { width: min(1200px, 88%); margin: 0 auto; }
.wrap-narrow { width: min(880px, 88%); margin: 0 auto; }
.section { padding: 90px 0; }
.section-sm { padding: 50px 0; }
.stack > * + * { margin-top: 18px; }
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.between { justify-content: space-between; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.tiny { font-size: 12px; }
.center { text-align: center; }
.hidden { display: none !important; }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 36px; }
.mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 800;
  letter-spacing: 2px; color: var(--blue); text-transform: uppercase; margin-bottom: 16px;
}
.eyebrow::before { content: ""; width: 30px; height: 2px; background: currentColor; }
.section-heading { max-width: 680px; margin-bottom: 44px; }
.section-heading.center { margin-left: auto; margin-right: auto; }
.section-heading.center .eyebrow::after { content: ""; width: 30px; height: 2px; background: currentColor; }
.section-heading h2, h2.title {
  font-size: clamp(30px, 4vw, 48px); line-height: 1.08; letter-spacing: -2px; margin-bottom: 16px; color: var(--ink-2);
}
.section-heading p { color: #718096; font-size: 16px; line-height: 1.7; }
.grad-text {
  background: linear-gradient(90deg, var(--blue) 0%, var(--blue-light) 45%, var(--blue) 90%); background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; animation: shimmer 5s linear infinite;
}

/* ---------- dark page hero (matches competitions / dashboard banners) ---------- */
.page-hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(circle at var(--gx, 70%) var(--gy, 30%), rgba(77, 163, 255, 0.28), transparent 38%),
    radial-gradient(circle at 10% 90%, rgba(18, 97, 255, 0.35), transparent 40%),
    linear-gradient(135deg, var(--navy-2) 0%, #0b2f6b 55%, #0c4fb8 100%);
  padding: 80px 0 90px;
}
.page-hero.compact { padding: 56px 0 64px; }
.page-hero.boxed { border-radius: 28px; box-shadow: var(--shadow-lg); padding: 56px 48px; }
.page-hero .wrap, .page-hero > .hero-inner { position: relative; z-index: 2; }
.page-hero .eyebrow { color: var(--blue-pale); }
.page-hero h1 {
  font-size: clamp(36px, 5.4vw, 68px); line-height: 1.02; letter-spacing: -3px; margin-bottom: 18px; max-width: 900px;
}
.page-hero h1 .soft { color: #a9cbff; }
.page-hero p.lead { color: rgba(255, 255, 255, 0.78); font-size: 17px; line-height: 1.75; max-width: 640px; }
.page-hero.center-text { text-align: center; }
.page-hero.center-text h1, .page-hero.center-text p.lead { margin-left: auto; margin-right: auto; }
.hero-grid-lines {
  position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0.35;
  background-image: linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at 50% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 30%, transparent 75%);
}
.hero-gear { position: absolute; z-index: 1; pointer-events: none; opacity: 0.9; translate: calc(var(--mx, 0) * 18px) calc(var(--my, 0) * 18px); }
.hero-gear .gear path { fill: rgba(143, 184, 255, 0.06); stroke: rgba(143, 184, 255, 0.35); stroke-width: 1.4; }
.hero-gear.g1 { right: -70px; bottom: -90px; width: 300px; }
.hero-gear.g2 { right: 210px; top: -60px; width: 130px; opacity: 0.6; }
.hero-chip {
  position: absolute; z-index: 1; width: 50px; height: 50px; border-radius: 15px; display: grid; place-items: center;
  background: rgba(255,255,255,0.10); border: 1px solid rgba(255,255,255,0.18); color: #cfe1ff;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); box-shadow: 0 14px 30px rgba(0,0,0,0.18);
  animation: floaty var(--dur, 6s) ease-in-out infinite; animation-delay: var(--delay, 0s);
  translate: calc(var(--mx, 0) * var(--p, 24) * 1px) calc(var(--my, 0) * var(--p, 24) * 1px);
}
.hero-chip svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hero-sym {
  position: absolute; left: var(--x); bottom: -40px; z-index: 1; font-size: var(--s, 24px); font-weight: 800;
  color: rgba(169, 203, 255, 0.18); pointer-events: none; user-select: none;
  animation: rise var(--d, 20s) linear infinite; animation-delay: var(--delay, 0s);
}

/* ---------- buttons ---------- */
.btn {
  min-height: 48px; padding: 0 22px; border-radius: 12px; border: 1px solid transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  text-decoration: none; font-size: 14px; font-weight: 800; letter-spacing: 0.1px;
  transition: transform 0.2s var(--ease), box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  position: relative; overflow: hidden; white-space: nowrap; user-select: none;
}
.btn:active { transform: translateY(0) scale(0.98); }
.btn[disabled], .btn.is-disabled { opacity: 0.55; pointer-events: none; }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn-primary { background: linear-gradient(135deg, var(--blue), var(--blue-dark)); color: #fff; box-shadow: 0 12px 28px rgba(18, 97, 255, 0.22); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(18, 97, 255, 0.32); }
.btn-primary::after, .btn-shine::after {
  content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transform: skewX(-20deg); animation: shine 3.8s ease-in-out infinite; pointer-events: none;
}
.btn-ghost { background: #fff; border-color: var(--line-2); color: #263852; }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-1px); }
.btn-white { background: #fff; color: var(--blue); box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18); }
.btn-white:hover { transform: translateY(-2px); }
.btn-glass { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.25); color: #fff; }
.btn-glass:hover { background: rgba(255,255,255,0.18); }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: #102c5a; transform: translateY(-1px); }
.btn-success { background: var(--green); color: #fff; }
.btn-success:hover { filter: brightness(1.06); transform: translateY(-1px); }
.btn-danger { background: #fff; color: var(--red); border-color: #f4c7c8; }
.btn-danger:hover { background: var(--red); color: #fff; border-color: var(--red); }
.btn-danger-solid { background: var(--red); color: #fff; }
.btn-gold { background: linear-gradient(135deg, #ffd977, #f5b83d 55%, #e39a14); color: #3b2500; box-shadow: 0 12px 28px rgba(245, 184, 61, 0.35); }
.btn-gold:hover { transform: translateY(-2px); }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: 13px; border-radius: 10px; }
.btn-xs { min-height: 30px; padding: 0 10px; font-size: 12px; border-radius: 8px; gap: 6px; }
.btn-lg { min-height: 56px; padding: 0 28px; font-size: 15px; border-radius: 14px; }
.btn-block { width: 100%; }
.btn .spin { width: 16px; height: 16px; border: 2px solid rgba(255,255,255,0.4); border-top-color: #fff; border-radius: 50%; animation: spin 0.8s linear infinite; }
.btn-ghost .spin { border-color: rgba(18,97,255,0.25); border-top-color: var(--blue); }
.ripple { position: absolute; border-radius: 50%; background: rgba(255,255,255,0.45); transform: scale(0); animation: rippleOut 0.6s ease-out forwards; pointer-events: none; }

/* ---------- cards ---------- */
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
  box-shadow: var(--shadow-sm); position: relative;
}
.card-hover { transition: transform 0.3s var(--ease), box-shadow 0.3s ease, border-color 0.3s ease; }
.card-hover:hover { transform: translateY(-5px); box-shadow: 0 22px 48px rgba(31, 59, 91, 0.12); border-color: #cfdcf0; }
.card-title { font-size: 19px; font-weight: 800; color: var(--ink-2); letter-spacing: -0.3px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.card-flush { padding: 0; overflow: hidden; }
.card-flush > .card-head { padding: 22px 26px; margin: 0; border-bottom: 1px solid var(--line); }
.tilt { transform-style: preserve-3d; transition: transform 0.25s ease, box-shadow 0.3s ease; will-change: transform; }

.feature-icon, .icon-box {
  width: 50px; height: 50px; border-radius: 15px; background: var(--blue-tint); color: var(--blue);
  display: grid; place-items: center; font-weight: 900; flex-shrink: 0;
  transition: background 0.25s ease, color 0.25s ease, transform 0.3s var(--ease);
}
.icon-box svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.card-hover:hover .icon-box { background: var(--blue); color: #fff; transform: rotate(-6deg) scale(1.05); }

/* ---------- stat tiles ---------- */
.stat {
  background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 22px 24px; box-shadow: var(--shadow-sm);
  position: relative; overflow: hidden;
}
.stat::before {
  content: ""; position: absolute; right: -30px; top: -30px; width: 110px; height: 110px; border-radius: 50%;
  background: radial-gradient(circle, rgba(18,97,255,0.10), transparent 70%);
}
.stat .label { font-size: 11px; font-weight: 800; letter-spacing: 1.6px; color: var(--muted-2); text-transform: uppercase; }
.stat .value { font-size: 34px; font-weight: 900; letter-spacing: -1.5px; color: var(--ink-2); margin: 10px 0 4px; }
.stat .hint { font-size: 13px; color: var(--muted); }
.stat .value small { font-size: 15px; letter-spacing: 0; color: var(--muted); font-weight: 700; }

/* ---------- badges ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px;
  font-size: 11px; font-weight: 800; letter-spacing: 0.4px; white-space: nowrap; line-height: 1.3;
  background: var(--blue-tint); color: var(--blue);
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.plain::before { display: none; }
.badge.pending { background: var(--amber-tint); color: var(--amber); }
.badge.approved, .badge.ok { background: var(--green-tint); color: var(--green); }
.badge.rejected, .badge.bad { background: var(--red-tint); color: var(--red); }
.badge.live { background: #ffe9ea; color: #e11d2e; }
.badge.live::before { animation: livePulse 1.4s ease-in-out infinite; }
.badge.ended, .badge.gray { background: #eef2f7; color: #627086; }
.badge.gold { background: #fff4d6; color: #a76a00; }
.badge.dark { background: rgba(255,255,255,0.14); color: #fff; }
/* UPDATE-20 */
.badge.soon { background: linear-gradient(135deg, #ffe08a, #f5b83d); color: #4d3300; }
.badge.soon::before { animation: livePulse 1.8s ease-in-out infinite; }
.pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px;
  background: #f1f5fb; color: #4a5a70; font-size: 12px; font-weight: 700;
}
.pill svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.form-grid .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label, .label { font-size: 13px; font-weight: 800; color: #26354d; }
.field .help { font-size: 12px; color: var(--muted); line-height: 1.5; }
.input, .field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 0 16px; border-radius: 12px; border: 1px solid #dfe7f1;
  background: #f8fbff; color: var(--ink); font: inherit; font-size: 15px; outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.field textarea, textarea.input { padding: 14px 16px; min-height: 120px; resize: vertical; line-height: 1.6; }
.field select, select.input { appearance: none; -webkit-appearance: none; padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235b687b' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 16px; }
.input:focus, .field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px rgba(18, 97, 255, 0.12);
}
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--red); background: #fffafa; }
.field .err { font-size: 12px; color: var(--red); font-weight: 700; }
.input-sm { min-height: 40px; font-size: 14px; border-radius: 10px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: #556479; line-height: 1.55; }
.check input { width: 18px; height: 18px; margin-top: 1px; accent-color: var(--blue); flex-shrink: 0; }
.form-msg { font-size: 14px; font-weight: 700; padding: 12px 14px; border-radius: 12px; display: none; line-height: 1.5; }
.form-msg.show { display: block; animation: fadeUp 0.35s var(--ease); }
.form-msg.error { background: var(--red-tint); color: #b42328; }
.form-msg.success { background: var(--green-tint); color: #0c7a4f; }
.switch { position: relative; display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; color: #26354d; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch .track { width: 44px; height: 26px; border-radius: 99px; background: #d6deea; position: relative; transition: 0.25s ease; flex-shrink: 0; }
.switch .track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,0.15); transition: 0.25s var(--ease); }
.switch input:checked + .track { background: var(--blue); }
.switch input:checked + .track::after { transform: translateX(18px); }
.switch input:focus-visible + .track { box-shadow: 0 0 0 4px rgba(18,97,255,0.2); }

/* ---------- tables ---------- */
.table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th {
  text-align: left; font-size: 11px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted-2);
  padding: 13px 16px; background: #f8fbff; border-bottom: 1px solid var(--line); white-space: nowrap;
}
.table td { padding: 15px 16px; border-bottom: 1px solid #eef2f7; vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background 0.15s ease; }
.table tbody tr:hover { background: #fafcff; }
.table .me td { background: #eef5ff; }
.table .num { font-variant-numeric: tabular-nums; }

/* ---------- empty / loading ---------- */
.empty { text-align: center; padding: 56px 20px; color: var(--muted); }
.empty .icon-box { margin: 0 auto 16px; width: 64px; height: 64px; border-radius: 20px; animation: iconFloat 4s ease-in-out infinite; }
.empty .icon-box svg { width: 30px; height: 30px; }
.empty h3 { color: var(--ink-2); font-size: 19px; margin-bottom: 8px; }
.empty p { max-width: 420px; margin: 0 auto; line-height: 1.6; font-size: 14px; }
.skeleton {
  border-radius: 12px; background: linear-gradient(90deg, #eef3fa 0%, #f7faff 40%, #eef3fa 80%);
  background-size: 200% 100%; animation: skeleton 1.3s ease-in-out infinite;
}
.loader { display: flex; justify-content: center; padding: 60px 0; }
.loader i { width: 10px; height: 10px; border-radius: 50%; background: var(--blue); margin: 0 4px; animation: dots 1s ease-in-out infinite; }
.loader i:nth-child(2) { animation-delay: 0.15s; } .loader i:nth-child(3) { animation-delay: 0.3s; }

/* ---------- countdown ---------- */
.countdown { display: flex; gap: 10px; flex-wrap: wrap; }
.countdown .unit {
  min-width: 76px; padding: 14px 10px 10px; border-radius: 16px; text-align: center;
  background: rgba(255,255,255,0.10); border: 1px solid rgba(255,255,255,0.18);
}
.countdown .unit b { display: block; font-size: 34px; font-weight: 900; letter-spacing: -1px; font-variant-numeric: tabular-nums; line-height: 1; }
.countdown .unit span { display: block; font-size: 10px; font-weight: 800; letter-spacing: 1.6px; text-transform: uppercase; opacity: 0.7; margin-top: 8px; }
.countdown.light .unit { background: #f3f7ff; border-color: var(--line); color: var(--ink-2); }
.countdown .unit b.tick { animation: tickPop 0.4s var(--ease); }
.countdown.sm .unit { min-width: 54px; padding: 9px 6px 7px; border-radius: 12px; }
.countdown.sm .unit b { font-size: 20px; }
.countdown.sm .unit span { font-size: 9px; margin-top: 5px; }

/* ---------- modal ---------- */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 2000; background: rgba(6, 20, 44, 0.55);
  backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px);
  display: flex; align-items: flex-start; justify-content: center; padding: 6vh 16px; overflow-y: auto;
  animation: fadeIn 0.25s ease;
}
.modal {
  width: min(620px, 100%); background: #fff; border-radius: 24px; box-shadow: 0 40px 100px rgba(0,0,0,0.3);
  animation: modalIn 0.4s var(--ease); position: relative; overflow: hidden;
}
.modal.wide { width: min(920px, 100%); }
.modal-head { padding: 24px 28px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.modal-head h3 { font-size: 21px; letter-spacing: -0.5px; color: var(--ink-2); }
.modal-head p { font-size: 13px; color: var(--muted); margin-top: 4px; line-height: 1.5; }
.modal-body { padding: 24px 28px; }
.modal-foot { padding: 18px 28px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 10px; background: #fafcff; flex-wrap: wrap; }
.modal-x { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--muted); font-size: 20px; line-height: 1; flex-shrink: 0; }
.modal-x:hover { color: var(--ink); border-color: var(--line-2); }
body.modal-open { overflow: hidden; }

/* ---------- toasts ---------- */
.toasts { position: fixed; right: 18px; bottom: 18px; z-index: 3000; display: flex; flex-direction: column; gap: 10px; max-width: min(380px, calc(100vw - 36px)); }
.toast {
  display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; background: var(--navy);
  color: #fff; box-shadow: 0 18px 40px rgba(6, 20, 44, 0.35); font-size: 14px; font-weight: 700; line-height: 1.45;
  animation: toastIn 0.4s var(--ease);
}
.toast.out { animation: toastOut 0.3s ease forwards; }
.toast i { width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; font-style: normal; font-size: 13px; background: var(--blue); }
.toast.success i { background: var(--green); }
.toast.error i { background: var(--red); }

/* ---------- tabs / segmented ---------- */
.tabs { display: inline-flex; gap: 4px; padding: 5px; border-radius: 14px; background: #eef3fa; flex-wrap: wrap; }
.tabs button {
  border: 0; background: transparent; padding: 9px 16px; border-radius: 10px; font-size: 13px; font-weight: 800; color: #5b687b;
  transition: 0.2s ease; display: inline-flex; align-items: center; gap: 7px;
}
.tabs button.active { background: #fff; color: var(--blue); box-shadow: 0 4px 12px rgba(31, 59, 91, 0.10); }
.tabs button .count { background: var(--blue); color: #fff; border-radius: 99px; font-size: 10px; padding: 2px 7px; }
.tabs.dark { background: rgba(255,255,255,0.08); }
.tabs.dark button { color: rgba(255,255,255,0.7); }
.tabs.dark button.active { background: #fff; color: var(--blue); }

/* ---------- class chips ---------- */
.class-chips { display: flex; gap: 10px; flex-wrap: wrap; }
.class-chip {
  min-width: 64px; height: 64px; border-radius: 18px; border: 1px solid var(--line); background: #fff; color: var(--ink-2);
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center; text-decoration: none;
  font-weight: 900; font-size: 22px; letter-spacing: -0.5px; transition: 0.25s var(--ease); padding: 0 12px;
}
.class-chip small { font-size: 9px; letter-spacing: 1.4px; color: var(--muted-2); font-weight: 800; margin-bottom: 2px; }
.class-chip:hover { border-color: var(--blue); transform: translateY(-3px); box-shadow: 0 12px 26px rgba(18,97,255,0.15); }
.class-chip.active { background: linear-gradient(135deg, var(--blue), var(--blue-dark)); border-color: transparent; color: #fff; box-shadow: 0 14px 30px rgba(18,97,255,0.30); }
.class-chip.active small { color: rgba(255,255,255,0.75); }

/* ---------- competition cards ---------- */
.comp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
.comp-card {
  background: #fff; border: 1px solid var(--line); border-radius: 24px; overflow: hidden; display: flex; flex-direction: column;
  text-decoration: none; color: inherit; box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s ease, border-color 0.3s;
}
.comp-card:hover { transform: translateY(-6px); box-shadow: 0 26px 56px rgba(18, 47, 99, 0.16); border-color: #cddcf3; }
.comp-top {
  position: relative; padding: 22px 22px 26px; color: #fff; overflow: hidden; min-height: 150px;
  background: radial-gradient(circle at 85% 20%, rgba(77,163,255,0.45), transparent 45%), linear-gradient(135deg, var(--navy-2), #0b3a85 70%, var(--blue));
}
.comp-top .gear-deco { position: absolute; right: -40px; bottom: -50px; width: 150px; opacity: 0.8; }
.comp-top .gear-deco .gear path { fill: rgba(255,255,255,0.05); stroke: rgba(255,255,255,0.25); stroke-width: 1.3; }
.comp-top .class-tag {
  position: absolute; right: 18px; top: 18px; text-align: center; padding: 8px 12px; border-radius: 14px;
  background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.22); backdrop-filter: blur(6px);
}
.comp-top .class-tag small { display: block; font-size: 9px; letter-spacing: 1.5px; font-weight: 800; opacity: 0.75; }
.comp-top .class-tag b { font-size: 22px; font-weight: 900; }
.comp-top h3 { font-size: 22px; line-height: 1.2; letter-spacing: -0.6px; margin-top: 14px; max-width: 78%; position: relative; z-index: 1; }
.comp-top .subject { font-size: 12px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; color: var(--blue-pale); margin-top: 6px; position: relative; z-index: 1; }
.comp-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 16px; flex: 1; }
.comp-body p { font-size: 14px; color: var(--muted); line-height: 1.6; }
.comp-meta { display: flex; gap: 8px; flex-wrap: wrap; }
.prize-strip, .token-strip { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px; font-size: 12.5px; font-weight: 700; }
.prize-strip { background: linear-gradient(135deg, #fff8e6, #ffefc7); border: 1px solid #f6dfae; color: #8a5a00; }
.prize-strip svg, .token-strip svg { width: 18px; height: 18px; flex: none; }
.prize-strip span { font-size: 10.5px; font-weight: 900; letter-spacing: 1.2px; text-transform: uppercase; }
.prize-strip b { margin-left: auto; font-size: 14.5px; color: #5a3d00; letter-spacing: -0.2px; }
.token-strip { background: #e8fbf3; border: 1px solid #bdeed8; color: #0c6b45; }
.comp-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 16px; border-top: 1px dashed var(--line); }
.fee-from { font-size: 12px; color: var(--muted); font-weight: 700; }
.fee-from b { display: block; font-size: 20px; color: var(--ink-2); letter-spacing: -0.5px; }
.tier-dots { display: flex; gap: 6px; }
.tier-dots span { font-size: 10px; font-weight: 900; letter-spacing: 0.8px; padding: 5px 8px; border-radius: 8px; background: var(--blue-tint); color: var(--blue); text-transform: uppercase; }
.tier-dots span:nth-child(2) { background: #ece8ff; color: var(--violet); }
.tier-dots span:nth-child(3) { background: #fff4d6; color: #a76a00; }

/* ---------- version (tier) cards ---------- */
.tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; }
.tier {
  position: relative; border-radius: 24px; padding: 28px 24px 24px; background: #fff; border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 14px; transition: transform 0.3s var(--ease), box-shadow 0.3s ease; overflow: hidden;
}
.tier:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.tier .tier-name { font-size: 13px; font-weight: 900; letter-spacing: 2px; text-transform: uppercase; color: var(--blue); }
.tier .tier-fee { font-size: 44px; font-weight: 900; letter-spacing: -2px; color: var(--ink-2); line-height: 1; }
.tier .tier-fee small { font-size: 26px; letter-spacing: 0; color: var(--muted); font-weight: 800; margin-right: 3px; vertical-align: 12px; }
.tier .tier-perks { font-size: 14px; color: var(--muted); line-height: 1.65; white-space: pre-line; flex: 1; }
.tier.t-1 { border-color: #d9d1ff; }
.tier.t-1 .tier-name { color: var(--violet); }
.tier.t-2 { background: radial-gradient(circle at 90% 0%, rgba(245,184,61,0.35), transparent 45%), linear-gradient(150deg, var(--navy-2), #0d3b8f); border: 0; color: #fff; }
.tier.t-2 .tier-name { color: var(--gold-2); }
.tier.t-2 .tier-fee { color: #fff; }
.tier.t-2 .tier-fee small, .tier.t-2 .tier-perks { color: rgba(255,255,255,0.75); }
.tier .ribbon { position: absolute; top: 16px; right: -34px; transform: rotate(45deg); background: var(--gold); color: #3b2500; font-size: 10px; font-weight: 900; letter-spacing: 1.5px; padding: 5px 40px; }

/* ---------- rich text (descriptions) ---------- */
.rich { font-size: 15px; line-height: 1.8; color: #3b4a60; }
.rich p + p, .rich ul + p, .rich p + ul { margin-top: 12px; }
.rich ul { padding-left: 22px; }
.rich li { margin: 4px 0; }
.rich h4 { font-size: 16px; color: var(--ink-2); margin: 18px 0 6px; }
.rich strong { color: var(--ink-2); }

/* ---------- timeline / steps ---------- */
.steps { display: grid; gap: 0; }
.step { display: grid; grid-template-columns: 44px 1fr; gap: 16px; position: relative; padding-bottom: 26px; }
.step:last-child { padding-bottom: 0; }
.step::before { content: ""; position: absolute; left: 21px; top: 44px; bottom: 0; width: 2px; background: var(--line); }
.step:last-child::before { display: none; }
.step .dot { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: #f1f5fb; color: var(--muted-2); font-weight: 900; font-size: 14px; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line); z-index: 1; }
.step.done .dot { background: var(--green); color: #fff; box-shadow: none; }
.step.done::before { background: var(--green); }
.step.now .dot { background: var(--blue); color: #fff; box-shadow: 0 0 0 6px rgba(18,97,255,0.15); animation: nodePulse 2.4s ease-in-out infinite; }
.step h4 { font-size: 15px; color: var(--ink-2); margin-top: 3px; }
.step p { font-size: 13px; color: var(--muted); margin-top: 4px; line-height: 1.55; }

/* ---------- footer ---------- */
.site-footer { background: var(--navy-3); color: rgba(255,255,255,0.65); padding: 64px 0 28px; position: relative; overflow: hidden; }
.site-footer::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 85% 0%, rgba(18,97,255,0.25), transparent 40%); pointer-events: none; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; position: relative; }
.site-footer .brand-name { color: #fff; }
.site-footer h5 { color: #fff; font-size: 13px; letter-spacing: 1.6px; text-transform: uppercase; margin-bottom: 16px; }
.site-footer a { text-decoration: none; color: rgba(255,255,255,0.65); font-size: 14px; transition: color 0.2s; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; display: grid; gap: 10px; }
.site-footer p { font-size: 14px; line-height: 1.7; }
.footer-bottom { margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,0.08); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px; position: relative; }
.contact-line { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; margin-bottom: 10px; word-break: break-word; }
.contact-line svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; fill: none; stroke: var(--blue-pale); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- reveal on scroll ---------- */
.js .reveal { opacity: 0; }
.js .reveal.in { opacity: 1; animation: revealUp 0.8s var(--ease) backwards; animation-delay: calc(var(--i, 0) * 0.1s); }

/* ---------- confetti canvas ---------- */
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 2500; }

/* ---------- gears (drawn by fg.js) ---------- */
.gear { transform-box: view-box; animation: spin var(--spd, 18s) linear infinite; }
.gear.rev { animation-direction: reverse; }
.gear path { fill: rgba(18, 97, 255, 0.10); fill-rule: evenodd; stroke: var(--blue); stroke-width: 2; stroke-linejoin: round; stroke-opacity: 0.55; }

/* ---------- keyframes ---------- */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes revealUp { from { opacity: 0; transform: translateY(32px); } to { opacity: 1; transform: none; } }
@keyframes modalIn { from { opacity: 0; transform: translateY(30px) scale(0.97); } to { opacity: 1; transform: none; } }
@keyframes toastIn { from { opacity: 0; transform: translateY(16px) scale(0.96); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateX(30px); } }
@keyframes shimmer { from { background-position: 0% center; } to { background-position: 200% center; } }
@keyframes shine { 0%, 60% { left: -60%; } 100% { left: 130%; } }
@keyframes logoShine { 0%, 62% { left: -80%; } 100% { left: 150%; } }
@keyframes haloPulse { 0%, 100% { transform: scale(0.75); opacity: 0.55; } 50% { transform: scale(1.5); opacity: 0.12; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes floaty { 0%, 100% { transform: translateY(0) rotate(var(--rot, 0deg)); } 50% { transform: translateY(-14px) rotate(calc(var(--rot, 0deg) * -1)); } }
@keyframes iconFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes rise { 0% { transform: translateY(0) rotate(0deg); opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { transform: translateY(-640px) rotate(40deg); opacity: 0; } }
@keyframes skeleton { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@keyframes dots { 0%, 100% { transform: translateY(0); opacity: 0.4; } 50% { transform: translateY(-8px); opacity: 1; } }
@keyframes livePulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(225, 29, 46, 0.5); } 50% { box-shadow: 0 0 0 5px rgba(225, 29, 46, 0); } }
@keyframes nodePulse { 0%, 100% { box-shadow: 0 0 0 6px rgba(18, 97, 255, 0.12); } 50% { box-shadow: 0 0 0 12px rgba(18, 97, 255, 0.05), 0 0 18px rgba(18, 97, 255, 0.4); } }
@keyframes tickPop { from { transform: translateY(-6px); opacity: 0.4; } to { transform: none; opacity: 1; } }
@keyframes rippleOut { to { transform: scale(4); opacity: 0; } }
@keyframes ribbon { from { background-position: 0% 0; } to { background-position: 200% 0; } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes popIn { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: none; } }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1180px) {
  .nav-burger { display: inline-flex; }
  .nav-links {
    position: fixed; top: 76px; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; gap: 0;
    padding: 10px 6% 20px; border-bottom: 1px solid var(--line); box-shadow: 0 30px 50px rgba(6,20,44,0.15);
    transform: translateY(-12px); opacity: 0; pointer-events: none; transition: 0.25s var(--ease); max-height: calc(100vh - 76px); overflow-y: auto;
  }
  .nav-open .nav-links { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links a { padding: 14px 4px; border-bottom: 1px solid #f0f4f9; font-size: 15px; }
  .nav-links a::after { display: none; }
  .nav-links .nav-login { margin-top: 12px; text-align: center; border-bottom: 0; padding: 14px; }
  .nav-links .nav-user { border-radius: 14px; padding: 10px; margin-top: 10px; }
}
@media (max-width: 860px) {
  .grid-2 { grid-template-columns: 1fr; }
  .page-hero.boxed { padding: 40px 26px; border-radius: 22px; }
}
@media (max-width: 640px) {
  .navbar { height: 68px; padding: 0 16px; }
  .nav-links { top: 68px; padding: 6px 16px 18px; }
  .brand-name { font-size: 17px; }
  .brand-logo { width: 40px; height: 40px; border-radius: 12px; }
  .wrap, .wrap-narrow { width: calc(100% - 32px); }
  .section { padding: 64px 0; }
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .grid-4.keep-2 { grid-template-columns: 1fr 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .card { padding: 22px; }
  .page-hero { padding: 56px 0 64px; }
  .page-hero h1 { letter-spacing: -1.8px; }
  .hero-chip, .hero-gear.g2 { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .comp-grid { grid-template-columns: 1fr; }
  .countdown .unit { min-width: 64px; }
  .countdown .unit b { font-size: 28px; }
  .modal-head, .modal-body { padding: 20px; }
  .modal-foot { padding: 14px 20px; }
  .modal-foot .btn { flex: 1; }
  .stat .value { font-size: 28px; }
  .announce { padding-left: 16px; text-align: left; }
}

.lite .hero-sym { display: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1 !important; }
}

/* ---------- Get the app ---------- */
.app-modal { display: grid; grid-template-columns: 150px 1fr; gap: 22px; align-items: center; }
.app-phone { width: 150px; height: 270px; border-radius: 30px; padding: 9px; background: linear-gradient(160deg, #1b2d4d, #050d1f); box-shadow: 0 24px 50px rgba(6,20,44,0.35), inset 0 0 0 2px rgba(255,255,255,0.08); animation: floatY 5s ease-in-out infinite; }
.app-phone-screen { height: 100%; border-radius: 22px; background: radial-gradient(circle at 30% 10%, #2f7bff, #0a2c80 60%, #06142c); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: #fff; text-align: center; }
.app-phone-icon { width: 62px; height: 62px; border-radius: 18px; overflow: hidden; box-shadow: 0 12px 26px rgba(0,0,0,0.35); animation: appPulse 2.4s ease-in-out infinite; }
.app-phone-icon svg { width: 100%; height: 100%; display: block; }
.app-phone-screen b { font-size: 13px; }
.app-phone-screen span { font-size: 10px; opacity: 0.7; }
.app-steps { margin: 0; padding-left: 20px; display: grid; gap: 10px; color: #33445c; font-size: 14px; line-height: 1.55; }
@keyframes appPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.07); } }
@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.in-app [data-get-app] { display: none !important; }
@media (max-width: 560px) { .app-modal { grid-template-columns: 1fr; justify-items: center; } .app-phone { width: 120px; height: 216px; } }
.app-button {
  min-height: 52px; padding: 0 20px 0 8px; border-radius: 14px; display: inline-flex; align-items: center; gap: 12px;
  text-decoration: none; color: #fff; background: linear-gradient(135deg, #0a1e3f, #13305f); position: relative; overflow: hidden;
  box-shadow: 0 14px 28px rgba(10, 30, 63, 0.28); transition: transform 0.25s var(--ease), box-shadow 0.25s ease; isolation: isolate;
}
.app-button::before {
  content: ""; position: absolute; inset: -2px; z-index: -1; border-radius: inherit; padding: 2px;
  background: conic-gradient(from var(--ang, 0deg), #f5b83d, #4da3ff, #1261ff, #f5b83d);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  animation: appRing 4s linear infinite;
}
.app-button::after {
  content: ""; position: absolute; top: 0; left: -70%; width: 40%; height: 100%;
  background: linear-gradient(110deg, transparent, rgba(255,255,255,0.28), transparent); transform: skewX(-20deg); animation: logoShine 5s ease-in-out infinite;
}
.app-button:hover { transform: translateY(-2px); box-shadow: 0 20px 36px rgba(10, 30, 63, 0.36); }
.app-button-icon { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: linear-gradient(135deg, #f5b83d, #ffd977); color: #3b2500; flex-shrink: 0; }
.app-button-icon svg { width: 20px; height: 20px; }
.app-button-text { display: flex; flex-direction: column; line-height: 1.1; font-size: 15px; font-weight: 900; letter-spacing: 0.6px; }
.app-button-text small { font-size: 9px; font-weight: 800; letter-spacing: 1.2px; color: #ffd977; margin-bottom: 3px; }
.app-button-light { background: rgba(255,255,255,0.1); box-shadow: none; }
@property --ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes appRing { to { --ang: 360deg; } }
@media (prefers-reduced-motion: reduce) { .app-button::before, .app-button::after { animation: none; } }

/* ---------- pop-up notice (after login) ---------- */
.fg-notice {
  position: fixed; right: 24px; bottom: 24px; z-index: 1500; width: min(380px, calc(100vw - 32px)); max-height: min(78vh, 640px);
  display: flex; flex-direction: column; background: #fff; border-radius: 22px; overflow: hidden;
  box-shadow: 0 30px 70px rgba(6, 20, 44, 0.32), 0 0 0 1px rgba(10, 30, 63, 0.06);
  transform: translateY(40px) scale(0.96); opacity: 0; transition: transform 0.55s var(--ease), opacity 0.45s ease;
}
.fg-notice.in { transform: none; opacity: 1; }
.fg-notice.out { transform: translateY(30px) scale(0.96); opacity: 0; }
.fg-notice-img { flex-shrink: 0; max-height: 210px; overflow: hidden; background: #0a1e3f; }
.fg-notice-img img { width: 100%; height: 100%; max-height: 210px; object-fit: cover; display: block; }
.fg-notice-band { height: 8px; flex-shrink: 0; background: linear-gradient(90deg, var(--blue), var(--blue-light), var(--gold)); background-size: 200% 100%; animation: ribbon 6s linear infinite; }
.fg-notice-body { padding: 18px 20px 18px; overflow-y: auto; }
.fg-notice-kind { display: inline-block; font-size: 10.5px; font-weight: 900; letter-spacing: 1.4px; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; background: var(--blue-tint); color: var(--blue); }
.fg-notice-kind.k-ad, .fg-notice-kind.k-offer { background: #fff3d6; color: #8a5a00; }
.fg-notice-kind.k-update { background: var(--green-tint); color: #0b6b45; }
.fg-notice h4 { font-size: 19px; letter-spacing: -0.5px; color: var(--ink-2); margin: 10px 46px 6px 0; line-height: 1.3; }
.fg-notice-img + .fg-notice-body h4 { margin-right: 0; }
.fg-notice-text { color: #4a5a70; font-size: 14px; line-height: 1.65; }
.fg-notice-text p + p, .fg-notice-text ul { margin-top: 8px; }
.fg-notice-text ul { padding-left: 18px; }
.fg-notice-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.fg-notice-pager { display: flex; align-items: center; gap: 8px; margin-left: auto; font-size: 12px; font-weight: 800; color: var(--muted); }
.fg-notice-pager button { width: 30px; height: 30px; border-radius: 9px; border: 1px solid var(--line-2); background: #fff; font-size: 18px; line-height: 1; color: var(--ink-2); }
.fg-notice-pager button[disabled] { opacity: 0.35; }
.fg-notice-close { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; z-index: 2; border-radius: 50%; background: rgba(255,255,255,0.92); box-shadow: 0 6px 16px rgba(6,20,44,0.18); }
.fg-notice-close svg { position: absolute; inset: 0; width: 36px; height: 36px; transform: rotate(-90deg); }
.fg-notice-close circle { fill: none; stroke-width: 3; }
.fg-notice-close .trk { stroke: #e4ebf4; }
.fg-notice-close .arc { stroke: var(--blue); stroke-linecap: round; transition: stroke-dashoffset 1s linear; }
.fg-notice-close b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 13px; font-weight: 900; color: var(--ink-2); }
.fg-notice-x { position: absolute; inset: 0; border: 0; border-radius: 50%; background: var(--navy); color: #fff; font-size: 22px; line-height: 1; opacity: 0; transform: scale(0.4) rotate(-90deg); pointer-events: none; transition: 0.35s var(--ease); }
.fg-notice.can-close .fg-notice-x { opacity: 1; transform: none; pointer-events: auto; }
.fg-notice.can-close .fg-notice-close svg, .fg-notice.can-close .fg-notice-close b { opacity: 0; transition: opacity 0.2s; }
.fg-notice-x:hover { background: var(--blue); }
@media (max-width: 560px) { .fg-notice { right: 12px; left: 12px; bottom: 12px; width: auto; max-height: 70vh; } .fg-notice-img, .fg-notice-img img { max-height: 170px; } }
@media (prefers-reduced-motion: reduce) { .fg-notice { transition: none; } }
.site-footer .foot-help { font-size: 14px; line-height: 1.6; }
.cta-help { font-weight: 800; font-size: 15px; border-bottom: 1px solid rgba(255,255,255,0.4); padding-bottom: 2px; }
.cta-help:hover { border-bottom-color: #fff; }
.site-footer .btn-glass, .site-footer .btn-glass:hover { color: #fff; }

/* ---------- achievement level badges ---------- */
.lvl { display: inline-flex; align-items: center; gap: 6px; vertical-align: middle; white-space: nowrap; }
.lvl .hex {
  --c1: #8a96a8; --c2: #5b687b;
  width: 22px; height: 24px; display: inline-grid; place-items: center; font-style: normal; font-weight: 900; font-size: 11px; color: #fff;
  background: linear-gradient(160deg, var(--c1), var(--c2)); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  text-shadow: 0 1px 2px rgba(0,0,0,0.3); flex-shrink: 0;
}
.lvl em { font-style: normal; font-size: 11px; font-weight: 800; letter-spacing: 0.3px; color: var(--c2, #5b687b); }
.lvl-1 .hex, .lvl-1 { --c1: #a3adbd; --c2: #5b687b; }
.lvl-2 .hex, .lvl-2 { --c1: #3fd6c2; --c2: #0f8a7a; }
.lvl-3 .hex, .lvl-3 { --c1: #5edc8a; --c2: #12a36a; }
.lvl-4 .hex, .lvl-4 { --c1: #4da3ff; --c2: #1261ff; }
.lvl-5 .hex, .lvl-5 { --c1: #8c98ff; --c2: #3a47d5; }
.lvl-6 .hex, .lvl-6 { --c1: #b48cff; --c2: #6b4dff; }
.lvl-7 .hex, .lvl-7 { --c1: #ff86de; --c2: #c2188f; }
.lvl-8 .hex, .lvl-8 { --c1: #ffb46b; --c2: #e0660f; }
.lvl-9 .hex, .lvl-9 { --c1: #ffe08a; --c2: #d98a00; }
.lvl-10 .hex { background: conic-gradient(from var(--ang, 0deg), #ffd977, #4da3ff, #b48cff, #ffd977); animation: appRing 3s linear infinite; }
.lvl-10 { --c2: #b07d12; }
.lvl-big .hex { width: 96px; height: 106px; font-size: 40px; box-shadow: none; filter: drop-shadow(0 14px 26px rgba(10,30,63,0.35)); }
.lvl-big { position: relative; }
.lvl-big::after { content: ""; position: absolute; inset: -14px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--c1) 45%, transparent), transparent 70%); z-index: -1; animation: breatheLv 3s ease-in-out infinite; }
@keyframes breatheLv { 50% { transform: scale(1.12); opacity: 0.6; } }
.page-hero .lvl em, .pod .lvl em { color: #ffe7a3; }
@media (prefers-reduced-motion: reduce) { .lvl-10 .hex, .lvl-big::after { animation: none; } }

/* video lessons badge on competition cards */
.pill.pill-video { color: #c4002a; background: #fff1f3; border-color: #ffd3da; }
.pill.pill-video svg { fill: currentColor; stroke: none; width: 11px; height: 11px; }

/* notifications box */
.push-card { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px; background: linear-gradient(135deg, #f3f7ff, #eef2ff); border: 1px solid #dbe6ff; text-align: left; }
.push-card.on { background: #f2fbf6; border-color: #bfe8d2; }
.push-card .push-ico { width: 42px; height: 42px; flex: none; border-radius: 13px; display: grid; place-items: center; background: #fff; color: var(--blue); box-shadow: 0 6px 16px rgba(18,97,255,.12); }
.push-card.on .push-ico { color: #0b8a4f; }
.push-card .push-ico svg { width: 21px; height: 21px; }
.push-card b { color: var(--ink-2); font-size: 15px; }
.push-card p { margin: 3px 0 0; font-size: 13px; color: var(--muted); line-height: 1.5; }
.push-card .btn { flex: none; }
@media (max-width: 520px) { .push-card { flex-wrap: wrap; } .push-card .grow { flex: 1 1 calc(100% - 60px); } .push-card .btn { width: 100%; } }

.push-preview { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 16px; background: #1f2633; color: #fff; max-width: 420px; box-shadow: 0 10px 30px rgba(10,20,40,.25); }
.push-preview img { width: 36px; height: 36px; border-radius: 9px; flex: none; }
.push-preview b { font-size: 14px; display: block; word-break: break-word; }
.push-preview p { margin: 2px 0 4px; font-size: 13px; color: #d5dbe6; line-height: 1.4; word-break: break-word; }
.push-preview span { font-size: 11px; color: #9aa6b8; }

/* admin chess monitor */
.live-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.live-game { display: block; text-decoration: none; color: inherit; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 12px; transition: transform .2s, box-shadow .2s; }
.live-game:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(10,30,70,.12); }
.lg-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.lg-p { display: flex; justify-content: space-between; align-items: center; font-size: 13px; padding: 6px 2px; }
.lg-p b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 70%; color: var(--ink-2); }
.lg-p span { font-variant-numeric: tabular-nums; font-weight: 900; background: #f1f4f9; border-radius: 8px; padding: 2px 8px; }
.lg-watch { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 6px; font-size: 13px; font-weight: 800; color: var(--blue); }
.lg-watch svg { width: 16px; height: 16px; }
.mini-board { display: grid; grid-template-columns: repeat(8, 1fr); aspect-ratio: 1; border-radius: 10px; overflow: hidden; }
.mini-board i { display: grid; place-items: center; }
.mini-board i.l { background: #e9eef8; } .mini-board i.d { background: #7f98c9; }
.mini-board svg { width: 90%; height: 90%; stroke-width: 1.5; stroke-linejoin: round; }
.mini-board svg.w { fill: #fff; stroke: #1b2335; } .mini-board svg.b { fill: #232b3d; stroke: #0b0f18; }

.app-already { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; margin-bottom: 12px; border-radius: 14px; background: #f2fbf6; border: 1px solid #bfe8d2; font-size: 13px; line-height: 1.5; color: #24543c; }
.app-already .ok { flex: none; width: 22px; height: 22px; border-radius: 50%; background: #12b76a; color: #fff; display: grid; place-items: center; font-weight: 900; font-size: 13px; }

/* =====================================================================
   MOTION v2 — page transitions, word reveals, spotlight cards, magnetic
   buttons, varied entrances, springy modals. Everything uses transform /
   opacity only, pauses when scrolled away, and calms down on low-end
   phones (.fx-lite) or when the phone asks for less motion.
   ===================================================================== */
html, body { overflow-x: clip; }
/* keep the whole top bar (and its phone menu) above page content */
#fg-header { position: relative; z-index: 1000; }

/* ---------- page to page (Chrome, Edge, Android app, Safari 18+) ---------- */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  #fg-header { view-transition-name: fg-header; }
  ::view-transition-old(fg-header) { display: none; }
  ::view-transition-new(fg-header) { animation: none; }
  ::view-transition-group(fg-header) { animation-duration: 0s; }
  ::view-transition-old(root) { animation: fgPageOut 0.26s cubic-bezier(0.4, 0, 1, 1) both; }
  ::view-transition-new(root) { animation: fgPageIn 0.55s cubic-bezier(0.16, 1, 0.3, 1) 0.05s both; }
  html.vt-back::view-transition-old(root) { animation-name: fgPageOutBack; }
  html.vt-back::view-transition-new(root) { animation-name: fgPageInBack; }
  html.fx-lite::view-transition-old(root) { animation-name: fgFadeOut; }
  /* older browsers: gentle fade instead */
  html.no-vt body { animation: fgFadeIn 0.4s ease both; }
  html.no-vt.fx-leaving body { opacity: 0; transform: translateY(-8px); transition: opacity 0.17s ease, transform 0.17s ease; }
}
@keyframes fgPageOut { to { opacity: 0; transform: translateY(-16px) scale(0.985); filter: blur(3px); } }
@keyframes fgPageIn { from { opacity: 0; transform: translateY(30px) scale(0.985); } }
@keyframes fgPageOutBack { to { opacity: 0; transform: translateY(16px) scale(0.985); filter: blur(3px); } }
@keyframes fgPageInBack { from { opacity: 0; transform: translateY(-26px) scale(0.985); } }
@keyframes fgFadeOut { to { opacity: 0; } }
@keyframes fgFadeIn { from { opacity: 0; } }

/* loading line under the header while the next page is on its way */
.fx-navload { position: fixed; left: 0; top: 0; height: 3px; width: 100%; z-index: 5000; pointer-events: none; transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, #2f7bff, #7a5cff, #2fd0ff); box-shadow: 0 0 12px rgba(47, 123, 255, 0.7); opacity: 0; }
.fx-navload.on { opacity: 1; animation: navLoad 2.8s cubic-bezier(0.1, 0.7, 0.2, 1) forwards; }
@keyframes navLoad { 0% { transform: scaleX(0.05); } 100% { transform: scaleX(0.86); } }

/* ---------- stop endless animations that are scrolled out of view ---------- */
.fx-off, .fx-off *, .fx-off *::before, .fx-off *::after { animation-play-state: paused !important; }

/* ---------- headings appear word by word ---------- */
.words .w { display: inline-block; will-change: transform; animation: wordIn 0.85s cubic-bezier(0.16, 1, 0.3, 1) both; animation-delay: calc(var(--wi, 0) * 55ms + 90ms); }
.reveal:not(.in) .words .w { animation-name: none; opacity: 0; }
@keyframes wordIn { from { opacity: 0; transform: translateY(0.55em) rotate(2.5deg); filter: blur(8px); } }
html.fx-lite .words .w { animation-name: wordInLite; }
@keyframes wordInLite { from { opacity: 0; transform: translateY(0.45em); } }

/* ---------- spotlight that follows the mouse / finger on cards ---------- */
.fx-spot::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 1; opacity: 0; transition: opacity 0.35s ease;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(64, 138, 255, 0.16), rgba(122, 92, 255, 0.06) 40%, transparent 70%); }
.fx-spot:hover::after, .fx-spot.fx-press::after { opacity: 1; }
.fx-spot { transition: transform 0.35s var(--ease), box-shadow 0.35s ease, border-color 0.35s ease; }
@media (hover: hover) {
  .card.fx-spot:hover, .reg-item.fx-spot:hover { box-shadow: 0 18px 40px rgba(16, 42, 90, 0.10); }
}

/* ---------- buttons: springy press, magnetic pull (computer) ---------- */
.btn, .app-button, .primary-button, .secondary-button { transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease; }
.btn:active, .app-button:active, .primary-button:active, .secondary-button:active { transform: scale(0.95); transition-duration: 0.08s; }
.fx-magnet { transition: transform 0.18s ease-out !important; }

/* ---------- varied entrances ---------- */
.js .reveal.in.fx-pop { animation-name: revealPop; animation-duration: 0.75s; animation-timing-function: cubic-bezier(0.34, 1.4, 0.64, 1); }
.js .reveal.in.fx-right { animation-name: revealRight; }
.js .reveal.in.fx-left { animation-name: revealLeft; }
.js .reveal.in.fx-blur { animation-name: revealBlur; animation-duration: 0.9s; }
@keyframes revealPop { from { opacity: 0; transform: translateY(26px) scale(0.92); } }
@keyframes revealRight { from { opacity: 0; transform: translateX(46px); } }
@keyframes revealLeft { from { opacity: 0; transform: translateX(-46px); } }
@keyframes revealBlur { from { opacity: 0; transform: translateY(16px); filter: blur(10px); } }
html.fx-lite .js .reveal.in.fx-blur, html.fx-lite .reveal.in.fx-blur { animation-name: revealUp; }

/* ---------- modals: spring in, glide out ---------- */
.modal-backdrop { animation: backIn 0.3s ease both; }
.modal { animation: modalSpring 0.55s cubic-bezier(0.2, 1.25, 0.35, 1) both; }
.modal-backdrop.fx-out { animation: backOut 0.22s ease forwards; pointer-events: none; }
.modal-backdrop.fx-out .modal { animation: modalOut 0.22s ease forwards; }
@keyframes backIn { from { opacity: 0; } }
@keyframes backOut { to { opacity: 0; } }
@keyframes modalSpring { from { opacity: 0; transform: translateY(36px) scale(0.94); } }
@keyframes modalOut { to { opacity: 0; transform: translateY(18px) scale(0.97); } }
@media (max-width: 640px) {
  .modal { animation-name: sheetUp; }
  @keyframes sheetUp { from { opacity: 0.4; transform: translateY(70px); } }
}

/* ---------- toasts: bouncy, with a time line ---------- */
.toast { position: relative; overflow: hidden; animation: toastSpring 0.5s cubic-bezier(0.2, 1.3, 0.35, 1) both; }
@keyframes toastSpring { from { opacity: 0; transform: translateY(24px) scale(0.9); } }
.toast .toast-time { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; transform-origin: 0 50%; background: rgba(255, 255, 255, 0.35); animation: toastTime linear forwards; }
@keyframes toastTime { from { transform: scaleX(1); } to { transform: scaleX(0); } }

/* ---------- menu on phones: items slide in one after another ---------- */
@media (max-width: 960px) {
  .nav-open .nav-links > a, .nav-open .nav-links > span > a { animation: navItemIn 0.45s cubic-bezier(0.16, 1, 0.3, 1) both; animation-delay: calc(var(--n, 0) * 40ms + 40ms); }
}
@keyframes navItemIn { from { opacity: 0; transform: translateX(-18px); } }

/* ---------- header gets a soft shadow once you scroll ---------- */
.navbar { transition: box-shadow 0.3s ease, background 0.3s ease; }
.navbar.fx-scrolled { box-shadow: 0 10px 30px rgba(16, 42, 90, 0.08); }
.navbar.fx-scrolled .brand-logo { transform: scale(0.92); }

/* ---------- forms: the label lights up with the field you are typing in ---------- */
.field label { transition: color 0.2s ease; }
.field:focus-within > label { color: var(--blue); }
.field input, .field select, .field textarea { transition: border-color 0.2s ease, box-shadow 0.25s ease, background 0.2s ease; }

/* ---------- active tab pops ---------- */
.tabs > .active, .tabs > button.active { animation: tabPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1); }
@keyframes tabPop { 50% { transform: scale(1.06); } }

/* ---------- admin: each section glides in ---------- */
#view[data-anim] > * { animation: fadeUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) both; }
#view[data-anim] > *:nth-child(2) { animation-delay: 0.06s; }
#view[data-anim] > *:nth-child(3) { animation-delay: 0.12s; }
#view[data-anim] > *:nth-child(4) { animation-delay: 0.18s; }
#view[data-anim] > *:nth-child(n+5) { animation-delay: 0.24s; }

/* ---------- back to top, with a ring showing how far you scrolled ---------- */
.fx-top { position: fixed; right: 18px; bottom: 18px; z-index: 900; width: 50px; height: 50px; border-radius: 50%; border: 0; padding: 0; cursor: pointer;
  background: #fff; color: var(--blue); box-shadow: 0 12px 30px rgba(16, 42, 90, 0.18); display: grid; place-items: center;
  opacity: 0; transform: translateY(20px) scale(0.8); pointer-events: none; transition: opacity 0.3s ease, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1); }
.fx-top.show { opacity: 1; transform: none; pointer-events: auto; }
.fx-top:hover { transform: translateY(-3px); }
.fx-top svg.ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.fx-top svg.ring circle { fill: none; stroke-width: 3; }
.fx-top svg.ring .bg { stroke: #e6edf7; }
.fx-top svg.ring .fg { stroke: url(#fxTopGrad); stroke-linecap: round; }
.fx-top .arrow { width: 20px; height: 20px; position: relative; }
html.fx-top-on .toasts { bottom: 80px; }

/* ---------- low-end phones: same look, lighter work ---------- */
html.fx-lite .navbar { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(255, 255, 255, 0.98); }
html.fx-lite .fx-spot::after { display: none; }

@media (prefers-reduced-motion: reduce) {
  .words .w, .modal, .modal-backdrop, .toast, .nav-open .nav-links a { animation: none !important; }
  .fx-top { transition: opacity 0.2s; }
}

/* moving light in the dark page banners (moved with transform = cheap) */
.hero-glow { position: absolute; left: 0; top: 0; width: 620px; height: 620px; border-radius: 50%; pointer-events: none; z-index: 0; will-change: transform;
  background: radial-gradient(circle, rgba(77, 163, 255, 0.24), rgba(77, 163, 255, 0.08) 40%, transparent 68%); transform: translate3d(40vw, -120px, 0); }
.page-hero > .wrap { position: relative; z-index: 2; }

/* ---------- UPDATE-14: social icons, subscribe button, referrals ---------- */
.foot-social { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.site-footer .foot-social a { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12); color: #fff; transition: background 0.2s, transform 0.2s; }
.site-footer .foot-social a:hover { background: var(--blue); transform: translateY(-2px); }
.foot-social svg { width: 18px; height: 18px; }
.yt-sub { display: inline-flex; align-items: center; gap: 10px; background: #ff0033; color: #fff !important; font-weight: 800; font-size: 14px; padding: 11px 18px; border-radius: 999px; text-decoration: none; box-shadow: 0 8px 22px rgba(255,0,51,0.28); transition: transform 0.2s, box-shadow 0.2s; }
.yt-sub:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(255,0,51,0.36); }
.yt-sub svg { width: 20px; height: 20px; }
.ref-wallet { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.ref-wallet > div { background: var(--bg-soft, #f4f7fd); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; }
.ref-wallet span { display: block; font-size: 12px; font-weight: 800; color: var(--muted); }
.ref-wallet b { display: block; font-size: 26px; letter-spacing: -0.8px; color: var(--ink-2); margin-top: 2px; }
.ref-meter { height: 10px; border-radius: 999px; background: var(--line); overflow: hidden; margin-top: 12px; }
.ref-meter i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #ffd977, #f5b83d); transition: width 0.6s var(--ease); }
.ref-link { display: flex; gap: 8px; margin-top: 14px; }
.ref-link input { flex: 1; min-width: 0; font-weight: 700; }
.ref-friends { display: grid; gap: 8px; margin-top: 14px; }
.ref-friend { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 14px; }
.ref-friend .avatar { flex: none; }
.ref-friend .grow { flex: 1; min-width: 0; }
@media (max-width: 560px) { .ref-wallet { grid-template-columns: 1fr 1fr 1fr; gap: 8px; } .ref-wallet b { font-size: 20px; } .ref-wallet > div { padding: 10px; } .ref-link { flex-wrap: wrap; } }
/* more menu items now (Referral, About): keep one tidy line on laptop screens */
.nav-links a { white-space: nowrap; }
@media (min-width: 1181px) and (max-width: 1480px) {
  .nav-links { gap: 15px; }
  .nav-links a { font-size: 13.5px; }
  .nav-links .nav-user .tiny { display: none; }
}
.navbar .brand { flex: none; margin-right: 18px; }
@media (min-width: 1181px) and (max-width: 1300px) { .nav-links { gap: 12px; } }

/* ---------- UPDATE-20: rich notifications (inside the website + admin preview) ---------- */
#fg-np-stack { position: fixed; top: 84px; right: 18px; z-index: 9999; display: grid; gap: 10px; width: min(380px, calc(100vw - 24px)); }
.np-pop { position: relative; cursor: pointer; transform: translateY(-14px) scale(.98); opacity: 0; transition: transform .35s var(--ease), opacity .3s ease; }
.np-pop.in { transform: none; opacity: 1; }
.np-x { position: absolute; top: -9px; right: -9px; width: 26px; height: 26px; border: 2px solid #fff; border-radius: 50%; background: #1f2633; box-shadow: 0 4px 10px rgba(0,0,0,.25); color: #fff; font-size: 17px; line-height: 1; cursor: pointer; z-index: 2; }
.np { background: #1f2633; color: #fff; border-radius: 18px; overflow: hidden; box-shadow: 0 18px 44px rgba(10,20,40,.32); }
.np-main { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; }
.np-logo { width: 38px; height: 38px; border-radius: 10px; flex: none; }
.np-txt { flex: 1; min-width: 0; padding-right: 18px; }
.np-app { font-size: 11px; color: #9aa6b8; font-weight: 700; margin-bottom: 2px; }
.np-txt b { display: block; font-size: 14px; word-break: break-word; }
.np-txt p { margin: 2px 0 0; font-size: 13px; color: #d5dbe6; line-height: 1.4; word-break: break-word; }
.np-pic { display: block; width: 100%; object-fit: cover; background: #2a3344; }
.np-mini .np-pic { width: 64px; height: 64px; border-radius: 10px; flex: none; }
.np-mini .np-txt { padding-right: 4px; }
.np-banner .np-pic { aspect-ratio: 2 / 1; }
.np-poster .np-pic { max-height: 62vh; object-fit: contain; background: #0f1622; }
.np-preview { max-width: 420px; }
.np-preview .np-txt { padding-right: 0; }
.push-styles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.push-styles label { cursor: pointer; border: 1.5px solid var(--line); border-radius: 14px; padding: 10px 8px; text-align: center; font-size: 12px; font-weight: 800; color: var(--ink-2); background: #fff; display: grid; gap: 6px; justify-items: center; transition: border-color .2s, background .2s; }
.push-styles label i { display: block; width: 46px; height: 32px; border-radius: 6px; background: #1f2633; position: relative; overflow: hidden; }
.push-styles label i::before { content: ""; position: absolute; left: 5px; top: 5px; width: 9px; height: 9px; border-radius: 3px; background: #4da3ff; }
.push-styles label i::after { content: ""; position: absolute; left: 17px; top: 6px; width: 20px; height: 3px; border-radius: 2px; background: #9aa6b8; box-shadow: 0 5px 0 #5f6b80; }
.push-styles label.s-mini i b { position: absolute; right: 4px; top: 4px; width: 12px; height: 12px; border-radius: 3px; background: #f5b83d; }
.push-styles label.s-banner i b { position: absolute; left: 0; right: 0; bottom: 0; height: 13px; background: linear-gradient(90deg, #f5b83d, #ff7a59); }
.push-styles label.s-poster i { height: 40px; }
.push-styles label.s-poster i b { position: absolute; left: 0; right: 0; top: 0; height: 22px; background: linear-gradient(135deg, #f5b83d, #ff7a59); }
.push-styles label.s-poster i::before { top: 26px; } .push-styles label.s-poster i::after { top: 27px; }
.push-styles input { position: absolute; opacity: 0; pointer-events: none; }
.push-styles label.on { border-color: var(--blue); background: var(--blue-tint); }
.push-styles span { font-size: 10.5px; font-weight: 700; color: var(--muted); }
@media (max-width: 640px) { .push-styles { grid-template-columns: repeat(2, 1fr); } #fg-np-stack { top: 70px; right: 12px; } }
