/* =====================================================================
   ProvatSoft HackSphere — Premium Design System
   Luxury white glassmorphism. Inspired by Vision Pro / Linear / Vercel.
   Theming via CSS variables; dark mode flips them on [data-theme="dark"].
   ===================================================================== */

:root {
  /* Brand */
  --blue: #4f7cff;
  --blue-rgb: 79, 124, 255;
  --purple: #7c5cff;
  --purple-rgb: 124, 92, 255;
  --cyan: #22d3ee;
  --cyan-rgb: 34, 211, 238;
  --grad: linear-gradient(120deg, #4f7cff 0%, #7c5cff 50%, #22d3ee 100%);
  --grad-soft: linear-gradient(120deg, rgba(79,124,255,.16), rgba(124,92,255,.16) 55%, rgba(34,211,238,.14));

  /* Luxury white surfaces */
  --bg: #f4f6fc;
  --text: #0d1222;
  --heading: #070b17;
  --muted: #5a6479;

  /* Glass */
  --glass: rgba(255, 255, 255, 0.55);
  --glass-strong: rgba(255, 255, 255, 0.74);
  --glass-2: rgba(255, 255, 255, 0.4);
  --glass-border: rgba(255, 255, 255, 0.9);
  --hairline: rgba(13, 18, 34, 0.08);
  --blur: 22px;

  /* Shadows / glow */
  --shadow-sm: 0 4px 18px rgba(20, 30, 70, 0.06);
  --shadow: 0 18px 50px rgba(28, 39, 90, 0.10);
  --shadow-lg: 0 30px 80px rgba(28, 39, 90, 0.16);
  --glow: 0 0 0 1px rgba(255,255,255,.6), 0 20px 60px rgba(var(--purple-rgb), .22);

  --radius: 22px;
  --radius-sm: 14px;
  --radius-pill: 999px;
  --ease: cubic-bezier(.22, 1, .36, 1);

  /* Semantic theme aliases — resolve to the current theme automatically
     (they reference the vars above, which [data-theme="dark"] overrides). */
  --bg-primary: var(--bg);
  --bg-secondary: var(--glass);
  --text-primary: var(--text);
  --card-background: var(--glass-strong);
}

[data-theme="dark"] {
  --bg: #070a14;
  --text: #e7eaf3;
  --heading: #f6f8ff;
  --muted: #9aa3bd;
  --glass: rgba(20, 26, 46, 0.55);
  --glass-strong: rgba(20, 26, 46, 0.8);
  --glass-2: rgba(20, 26, 46, 0.4);
  --glass-border: rgba(150, 165, 220, 0.16);
  --hairline: rgba(255, 255, 255, 0.08);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 30px 80px rgba(0, 0, 0, 0.6);
  --shadow-sm: 0 4px 18px rgba(0, 0, 0, 0.4);
}

* { box-sizing: border-box; }
/* html carries the theme background too, so there is never a white gap behind
   <body> during the first paint or a page-transition fade. */
html { scroll-behavior: smooth; overflow-x: hidden; background: var(--bg); }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* Theme colour transition is enabled only AFTER first paint (darkmode.js adds
   .theme-ready). This keeps manual light/dark toggling smooth while guaranteeing
   the initial load renders the correct theme instantly — no white flash, no
   background animating from light to dark. */
html.theme-ready body {
  transition: background .4s var(--ease), color .4s var(--ease);
}

h1, h2, h3, h4, h5, .font-display {
  font-family: "Sora", "Inter", sans-serif;
  color: var(--heading);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

a { color: var(--blue); text-decoration: none; transition: color .2s; }
a:hover { color: var(--purple); }
.text-muted { color: var(--muted) !important; }
.page-main { flex: 1 0 auto; position: relative; z-index: 1; }

/* ── Premium page transitions ──────────────────────────────────── */
/* Enter: every page fades in with a slight upward settle. Fill-mode is the
   default (none) on purpose so the resting transform is `none` — otherwise a
   lingering translateY() would create a containing block and mis-position
   fixed-position modals inside <main>. */
@keyframes page-enter {
  from { opacity: 0; transform: translateY(15px); }
  to   { opacity: 1; transform: translateY(0); }
}
.page-main { animation: page-enter .42s cubic-bezier(.22, .61, .36, 1); }

/* Exit: fade + tiny lift just before the browser navigates away. Opacity only
   avoids any horizontal shift; the lift is minimal to prevent layout jump. */
body.is-leaving .page-main {
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity .2s ease, transform .2s ease;
}

/* Thin glass progress bar pinned to the very top edge. */
.page-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px;
  z-index: 2000; pointer-events: none;
  transform: scaleX(0); transform-origin: 0 50%;
  background: var(--grad); background-size: 200% 100%;
  box-shadow: 0 0 10px rgba(var(--purple-rgb), .55), 0 1px 0 rgba(255, 255, 255, .25) inset;
  opacity: 0;
  transition: transform .2s ease, opacity .25s ease;
}
.page-progress.active { opacity: 1; }
.page-progress.done   { opacity: 0; }

/* ── Ambient background atmosphere ─────────────────────────────── */
.bg-atmosphere {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
}
.bg-atmosphere .blob {
  position: absolute; border-radius: 50%; filter: blur(80px); opacity: .5;
  animation: drift 22s ease-in-out infinite;
}
.bg-atmosphere .b1 { width: 540px; height: 540px; top: -160px; left: -120px;
  background: radial-gradient(circle, rgba(var(--blue-rgb), .5), transparent 70%); }
.bg-atmosphere .b2 { width: 600px; height: 600px; top: 10%; right: -180px;
  background: radial-gradient(circle, rgba(var(--purple-rgb), .42), transparent 70%); animation-delay: -6s; }
.bg-atmosphere .b3 { width: 460px; height: 460px; bottom: -160px; left: 30%;
  background: radial-gradient(circle, rgba(var(--cyan-rgb), .35), transparent 70%); animation-delay: -12s; }
.bg-atmosphere .grid {
  position: absolute; inset: 0; opacity: .4;
  background-image:
    linear-gradient(var(--hairline) 1px, transparent 1px),
    linear-gradient(90deg, var(--hairline) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at 50% 0%, black, transparent 75%);
}
.bg-atmosphere .aurora {
  position: absolute; top: -25%; left: -10%; right: -10%; height: 90%;
  background:
    conic-gradient(from 120deg at 50% 50%,
      rgba(79,124,255,.0), rgba(124,92,255,.28), rgba(34,211,238,.22), rgba(255,110,196,.20), rgba(79,124,255,.0));
  filter: blur(70px); opacity: .55; animation: aurora 18s ease-in-out infinite alternate;
}
@keyframes aurora {
  0% { transform: translateX(-4%) rotate(0deg) scale(1); }
  100% { transform: translateX(4%) rotate(8deg) scale(1.1); }
}
@keyframes drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, 30px) scale(1.08); }
}

/* ── Glass primitives ──────────────────────────────────────────── */
.glass, .glass-card, .glass-navbar {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(var(--blur)) saturate(160%);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(160%);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  color: var(--text);
}
.glass-card { transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.glass-card.hover-lift:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

/* ── Buttons ───────────────────────────────────────────────────── */
.btn { border-radius: var(--radius-pill); font-weight: 600; letter-spacing: -.01em;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s; }
.btn-lg { padding: .8rem 1.7rem; font-size: 1.02rem; }
.btn-gradient, .btn-primary {
  --bs-btn-color: #fff; color: #fff; border: none;
  background: var(--grad); background-size: 180% 180%;
  box-shadow: 0 10px 30px rgba(var(--purple-rgb), .35);
}
.btn-gradient:hover, .btn-primary:hover {
  color: #fff; transform: translateY(-2px); background-position: 100% 0;
  box-shadow: 0 16px 40px rgba(var(--purple-rgb), .45);
}
.btn-ghost {
  color: var(--heading); background: var(--glass-strong);
  border: 1px solid var(--glass-border); backdrop-filter: blur(12px);
}
.btn-ghost:hover { color: var(--purple); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn-outline-primary { color: var(--purple); border: 1px solid rgba(var(--purple-rgb), .4); }
.btn-outline-primary:hover { background: rgba(var(--purple-rgb), .1); color: var(--purple); border-color: var(--purple); }
.btn-outline-secondary { color: var(--muted); border-color: var(--hairline); }
.btn-outline-secondary:hover { background: var(--glass-2); color: var(--heading); }

/* ── Floating pill navbar ──────────────────────────────────────── */
.nav-shell { position: sticky; top: 0; z-index: 1040; padding: 1rem; pointer-events: none; }
.nav-pill {
  pointer-events: auto;
  max-width: 1140px; margin: 0 auto;
  display: flex; align-items: center; gap: .5rem;
  padding: .5rem .5rem .5rem 1.1rem;
  background: var(--glass-strong);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow);
  transition: padding .35s var(--ease), max-width .35s var(--ease), box-shadow .35s var(--ease);
  position: relative;
}
.nav-pill::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: linear-gradient(120deg, rgba(var(--blue-rgb), .5), rgba(var(--purple-rgb), .3), rgba(var(--cyan-rgb), .4));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; opacity: .6; pointer-events: none;
}
.nav-shell.scrolled .nav-pill { max-width: 920px; box-shadow: var(--shadow-lg); }
.brand { display: flex; align-items: center; gap: .55rem; font-family: "Sora", sans-serif;
  font-weight: 700; font-size: 1.12rem; color: var(--heading); }
/* Brand icon (SVG logo mark). The SVG carries its own gradient tile, so the
   element just sizes/rounds it and adds the ambient glow. */
.logo-mark {
  width: 34px; height: 34px; border-radius: 11px; display: block; flex: none;
  box-shadow: 0 6px 16px rgba(var(--purple-rgb), .4);
}
.logo-mark img { width: 100%; height: 100%; display: block; border-radius: inherit; }
img.logo-mark { object-fit: contain; }
.nav-links { display: flex; align-items: center; gap: .15rem; margin: 0 auto; }
.nav-links a {
  color: var(--muted); font-weight: 500; font-size: .94rem;
  padding: .5rem .9rem; border-radius: var(--radius-pill); transition: all .2s;
}
.nav-links a:hover { color: var(--heading); background: var(--glass-2); }
.nav-links a.active { color: #fff; background: var(--grad); box-shadow: 0 6px 16px rgba(var(--purple-rgb), .35); }
.nav-actions { display: flex; align-items: center; gap: .35rem; }
.icon-btn {
  width: 42px; height: 42px; border-radius: var(--radius-pill);
  display: grid; place-items: center; border: 1px solid var(--glass-border);
  background: var(--glass-strong); color: var(--heading); cursor: pointer; position: relative;
  transition: transform .2s var(--ease), background .2s, color .2s, box-shadow .2s, border-color .2s;
  font-size: 1rem; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  box-shadow: var(--shadow-sm);
}
.icon-btn svg { width: 19px; height: 19px; stroke-width: 2; display: block; }
.icon-btn:hover { background: var(--grad-soft); color: var(--purple); transform: translateY(-2px);
  border-color: rgba(var(--purple-rgb), .5); box-shadow: 0 8px 22px rgba(var(--purple-rgb), .32); }
.icon-btn:active { transform: translateY(0) scale(.94); }
.icon-btn:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(var(--purple-rgb), .35); }
/* Theme toggle emoji sits a touch larger for balance */
#theme-toggle { font-size: 1.15rem; line-height: 1; }
.icon-btn .dot {
  position: absolute; top: 8px; right: 9px; width: 7px; height: 7px; border-radius: 50%;
  background: var(--cyan); box-shadow: 0 0 0 2px var(--glass-strong); animation: pulse 2s infinite;
}
/* Proper notification count badge — sits on the top-right corner, never covers the icon */
.icon-btn { position: relative; }
.badge-count {
  position: absolute; top: -3px; right: -3px;
  min-width: 17px; height: 17px; padding: 0 4px; border-radius: 999px;
  background: linear-gradient(120deg, #e11d48, #f43f5e); color: #fff;
  font-size: .62rem; font-weight: 700; line-height: 17px; text-align: center;
  box-shadow: 0 0 0 2px var(--glass-strong); pointer-events: none;
}
@keyframes pulse { 0%,100%{ transform: scale(1); opacity:1 } 50%{ transform: scale(1.4); opacity:.6 } }

/* ── Animated drawer sidebar ───────────────────────────────────── */
.drawer-backdrop {
  position: fixed; inset: 0; z-index: 1055; background: rgba(8, 12, 28, .35);
  backdrop-filter: blur(4px); opacity: 0; visibility: hidden; transition: opacity .35s var(--ease);
}
.drawer-backdrop.open { opacity: 1; visibility: visible; }
.app-drawer {
  position: fixed; top: 1rem; left: 1rem; bottom: 1rem; z-index: 1060;
  width: 290px; max-width: calc(100vw - 2rem);
  background: var(--glass-strong); border: 1px solid var(--glass-border);
  backdrop-filter: blur(26px) saturate(160%); -webkit-backdrop-filter: blur(26px) saturate(160%);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  transform: translateX(calc(-100% - 1.5rem)); transition: transform .45s var(--ease);
  display: flex; flex-direction: column; padding: 1.25rem 1rem;
}
.app-drawer.open { transform: translateX(0); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: .25rem .5rem 1rem; }
.drawer-nav { display: flex; flex-direction: column; gap: .2rem; overflow-y: auto; }
.drawer-link {
  display: flex; align-items: center; gap: .8rem; padding: .7rem .85rem;
  border-radius: var(--radius-sm); color: var(--muted); font-weight: 500;
  position: relative; transition: all .25s var(--ease);
}
.drawer-link .ic { width: 26px; text-align: center; font-size: 1.05rem; transition: transform .25s; }
.drawer-link:hover { color: var(--heading); background: var(--glass-2); transform: translateX(4px); }
.drawer-link:hover .ic { transform: scale(1.15); }
.drawer-link.active { color: var(--heading); background: var(--grad-soft); }
.drawer-link.active::before {
  content: ""; position: absolute; left: 0; top: 18%; bottom: 18%; width: 3px;
  border-radius: 3px; background: var(--grad);
}
.drawer-foot { margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--hairline); }

/* ── Search overlay ────────────────────────────────────────────── */
.search-overlay {
  position: fixed; inset: 0; z-index: 1070; display: grid; place-items: start center;
  padding-top: 18vh; background: rgba(8, 12, 28, .4); backdrop-filter: blur(8px);
  opacity: 0; visibility: hidden; transition: opacity .3s var(--ease);
}
.search-overlay.open { opacity: 1; visibility: visible; }
.search-box {
  width: min(620px, 92vw); background: var(--glass-strong); border: 1px solid var(--glass-border);
  border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 1rem 1.25rem;
  transform: translateY(-12px); transition: transform .3s var(--ease);
}
.search-overlay.open .search-box { transform: translateY(0); }
.search-box input {
  width: 100%; border: none; background: transparent; outline: none; color: var(--heading);
  font-size: 1.2rem; padding: .5rem 0; font-family: "Sora", sans-serif;
}
.search-ic { display: grid; place-items: center; color: var(--purple); }
.search-ic [data-lucide] { width: 20px; height: 20px; }
.search-ic.loading { animation: spin .7s linear infinite; }
.search-results { margin-top: .75rem; border-top: 1px solid var(--hairline); padding-top: .5rem;
  max-height: 60vh; overflow-y: auto; display: flex; flex-direction: column; gap: .15rem; }
.sr-item { display: flex; align-items: center; gap: .8rem; padding: .7rem .6rem; border-radius: var(--radius-sm);
  color: var(--text); transition: background .18s var(--ease); }
.sr-item:hover { background: var(--glass-2); color: var(--text); }
.sr-ic { flex: none; width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center;
  background: var(--grad-soft); color: var(--purple); }
.sr-ic [data-lucide] { width: 18px; height: 18px; }
.sr-main { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.sr-title { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sr-meta { font-size: .78rem; color: var(--muted); }
.sr-status { font-size: .72rem; font-weight: 600; color: var(--purple); background: var(--grad-soft);
  padding: .2rem .6rem; border-radius: 999px; flex: none; }
.sr-empty { padding: 1.2rem .6rem; color: var(--muted); font-size: .9rem; text-align: center; }

/* ── Hero ──────────────────────────────────────────────────────── */
.hero { position: relative; padding: 5rem 1rem 4rem; text-align: center; overflow: hidden; }
.hero-eyebrow, .eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .76rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--purple); background: var(--glass-strong); border: 1px solid var(--glass-border);
  padding: .4rem 1rem; border-radius: var(--radius-pill); box-shadow: var(--shadow-sm);
}
.hero-title {
  font-size: clamp(2.6rem, 7vw, 5.2rem); font-weight: 700; margin: 1.5rem auto 1.2rem;
  max-width: 16ch;
}
.grad-text, .hero-title .grad {
  background: var(--grad); background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  animation: grad-flow 6s linear infinite;
}
@keyframes grad-flow { to { background-position: 200% center; } }
.hero-subtitle { font-size: clamp(1.05rem, 2.2vw, 1.3rem); color: var(--muted); max-width: 58ch; margin: 0 auto 2.2rem; }
.hero-actions { display: flex; gap: .9rem; justify-content: center; flex-wrap: wrap; }

/* Floating 3D glass orbs */
.hero-orbs { position: absolute; inset: 0; pointer-events: none; z-index: -1; }
.hero-orb {
  position: absolute; border-radius: 50%; will-change: transform;
  background: radial-gradient(circle at 30% 25%, rgba(255,255,255,.9), rgba(var(--blue-rgb), .35) 45%, rgba(var(--purple-rgb), .25));
  box-shadow: inset 0 0 40px rgba(255,255,255,.5), 0 30px 60px rgba(var(--purple-rgb), .25);
  border: 1px solid rgba(255,255,255,.6); animation: float 8s ease-in-out infinite;
}
.hero-orb.o1 { width: 120px; height: 120px; top: 14%; left: 12%; }
.hero-orb.o2 { width: 76px; height: 76px; top: 26%; right: 14%; animation-delay: -2s;
  background: radial-gradient(circle at 30% 25%, rgba(255,255,255,.9), rgba(var(--cyan-rgb), .4) 45%, rgba(var(--blue-rgb), .25)); }
.hero-orb.o3 { width: 54px; height: 54px; bottom: 16%; left: 22%; animation-delay: -4s; }
.hero-orb.o4 { width: 92px; height: 92px; bottom: 10%; right: 20%; animation-delay: -1s;
  background: radial-gradient(circle at 30% 25%, rgba(255,255,255,.9), rgba(var(--purple-rgb), .4) 45%, rgba(var(--cyan-rgb), .22)); }
@keyframes float { 0%,100%{ transform: translateY(0) } 50%{ transform: translateY(-22px) } }

/* Particles canvas */
#particles { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }

/* ── Sections / headings ───────────────────────────────────────── */
.section { padding-block: 4.5rem; position: relative; }
.section-heading { font-weight: 700; font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.section-subtitle { color: var(--muted); max-width: 56ch; margin-inline: auto; }

/* ── Feature cards ─────────────────────────────────────────────── */
.feature-icon {
  width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center;
  font-size: 1.6rem; margin-bottom: 1rem; background: var(--grad-soft);
  border: 1px solid var(--glass-border); box-shadow: var(--shadow-sm);
}

/* ── Stats ─────────────────────────────────────────────────────── */
.stat-number { font-family: "Sora", sans-serif; font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 700;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat-label { color: var(--muted); font-size: .92rem; font-weight: 500; }

/* ── Premium hackathon cards ───────────────────────────────────── */
.hcard {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background: var(--glass); border: 1px solid var(--glass-border);
  backdrop-filter: blur(var(--blur)); box-shadow: var(--shadow);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
  transform-style: preserve-3d; height: 100%; display: flex; flex-direction: column;
}
.hcard::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; opacity: 0;
  background: linear-gradient(130deg, rgba(var(--blue-rgb),.7), rgba(var(--purple-rgb),.5), rgba(var(--cyan-rgb),.6));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; transition: opacity .4s; pointer-events: none; z-index: 3;
}
.hcard:hover { transform: translateY(-10px); box-shadow: var(--shadow-lg); }
.hcard:hover::before { opacity: 1; }
.hcard-banner {
  height: 168px; position: relative; overflow: hidden;
  background: var(--grad); background-size: 200% 200%;
}
.hcard-banner img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.hcard:hover .hcard-banner img { transform: scale(1.08); }
.hcard-banner .glow { position: absolute; inset: 0; opacity: 0; transition: opacity .4s;
  background: radial-gradient(circle at 50% 120%, rgba(255,255,255,.5), transparent 60%); }
.hcard:hover .hcard-banner .glow { opacity: 1; }
.hcard-banner .pattern { position: absolute; inset: 0; opacity: .25; mix-blend-mode: overlay;
  background-image: radial-gradient(rgba(255,255,255,.7) 1px, transparent 1px); background-size: 18px 18px; }
.hcard-body { padding: 1.4rem; display: flex; flex-direction: column; flex: 1; }
.hcard-status {
  position: absolute; top: 14px; right: 14px; z-index: 4;
  font-size: .7rem; font-weight: 600; padding: .3rem .7rem; border-radius: var(--radius-pill);
  background: rgba(255,255,255,.85); color: #0d1222; backdrop-filter: blur(8px); text-transform: capitalize;
}
.chip {
  display: inline-flex; align-items: center; gap: .35rem; font-size: .78rem; font-weight: 500;
  padding: .32rem .7rem; border-radius: var(--radius-pill);
  background: var(--glass-2); border: 1px solid var(--hairline); color: var(--muted);
}

/* ── Countdown ─────────────────────────────────────────────────── */
.countdown {
  display: inline-flex; align-items: center; gap: .4rem; font-family: "Sora", sans-serif;
  font-weight: 600; font-variant-numeric: tabular-nums; color: var(--purple);
  background: var(--grad-soft); border: 1px solid var(--glass-border);
  padding: .4rem .85rem; border-radius: var(--radius-pill); font-size: .92rem;
}
.countdown::before { content: "⏳"; }
.countdown.urgent { color: #e11d48; background: rgba(225, 29, 72, .12); }
.countdown.urgent::before { content: "🔥"; }
.countdown.expired { color: var(--muted); background: rgba(107, 114, 128, .14); }
.countdown.expired::before { content: "🔒"; }

/* ── Timeline ──────────────────────────────────────────────────── */
.timeline { position: relative; max-width: 760px; margin: 0 auto; padding-left: 2rem; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px;
  background: linear-gradient(var(--blue), var(--purple), var(--cyan)); opacity: .5; }
.tl-item { position: relative; padding: 0 0 2rem 1.5rem; }
.tl-item::before { content: ""; position: absolute; left: -1.55rem; top: 4px; width: 16px; height: 16px;
  border-radius: 50%; background: var(--grad); box-shadow: 0 0 0 4px var(--bg), 0 0 14px rgba(var(--purple-rgb), .6); }

/* ── Badges / status pills ─────────────────────────────────────── */
.badge { font-weight: 600; border-radius: var(--radius-pill); padding: .4em .7em; }
.status-pill { display: inline-block; font-size: .74rem; font-weight: 600; padding: .26rem .72rem;
  border-radius: var(--radius-pill); text-transform: capitalize; }
.status-draft, .status-pending { background: rgba(234, 179, 8, .18); color: #a16207; }
.status-published, .status-approved, .status-registration_open { background: rgba(16, 185, 129, .18); color: #047857; }
.status-completed, .status-reviewed { background: rgba(var(--blue-rgb), .18); color: #1d4ed8; }
.status-archived, .status-rejected { background: rgba(107, 114, 128, .2); color: #4b5563; }
.status-coming_soon { background: rgba(var(--cyan-rgb), .2); color: #0e7490; }
.status-live { background: rgba(225, 29, 72, .16); color: #be123c; }
.status-live::before { content: "● "; animation: pulse 1.6s infinite; }
.status-results_published { background: var(--grad); color: #fff; }
[data-theme="dark"] .status-pill { filter: brightness(1.4); }

/* ── Premium segmented countdown ───────────────────────────────── */
.countdown-block { text-align: center; }
.cd-label { font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); margin-bottom: .6rem; }
.countdown.premium { display: inline-flex; align-items: center; gap: .35rem; background: none; border: none; padding: 0; }
.countdown.premium .cd-seg { display: flex; flex-direction: column; align-items: center;
  background: var(--glass-strong); border: 1px solid var(--glass-border); border-radius: 14px;
  padding: .6rem .55rem; min-width: 62px; box-shadow: var(--shadow-sm); }
.countdown.premium .cd-num { font-family: "Sora", sans-serif; font-weight: 800; font-size: 1.7rem; line-height: 1;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  font-variant-numeric: tabular-nums; }
.countdown.premium .cd-unit { font-size: .62rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-top: .25rem; }
.countdown.premium .cd-colon { font-weight: 800; color: var(--muted); align-self: flex-start; margin-top: .5rem; }
.countdown.premium .cd-num.flip { animation: cdflip .4s var(--ease); }
@keyframes cdflip { 0% { transform: translateY(-30%); opacity: .3; } 100% { transform: translateY(0); opacity: 1; } }
.countdown.premium.urgent .cd-num { background: linear-gradient(120deg, #e11d48, #f59e0b);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.countdown.premium .cd-done { font-family: "Sora", sans-serif; font-weight: 700; color: var(--purple); }
@media (max-width: 575.98px) {
  .countdown.premium .cd-seg { min-width: 52px; padding: .5rem .4rem; }
  .countdown.premium .cd-num { font-size: 1.35rem; }
}

/* ── Tables / forms ────────────────────────────────────────────── */
.table { color: var(--text); --bs-table-bg: transparent; margin-bottom: 0; }
.table > :not(caption) > * > * { background: transparent; color: var(--text); border-color: var(--hairline); }
.table thead th { text-transform: uppercase; font-size: .72rem; letter-spacing: .06em; color: var(--muted);
  border-bottom: 1px solid var(--hairline); font-weight: 700; }
.table-hover > tbody > tr:hover > * { background: var(--glass-2); }

.form-label { font-weight: 600; font-size: .9rem; margin-bottom: .4rem; color: var(--heading); }
.form-control, .form-select {
  background: var(--glass-strong); border: 1px solid var(--glass-border); color: var(--text);
  border-radius: var(--radius-sm); padding: .65rem .9rem;
}
.form-control:focus, .form-select:focus {
  background: var(--glass-strong); color: var(--text); border-color: var(--purple);
  box-shadow: 0 0 0 .22rem rgba(var(--purple-rgb), .2);
}
.form-control::placeholder { color: var(--muted); opacity: .7; }
[data-theme="dark"] .form-select option { background: #141a2e; color: var(--text); }
.required-star { color: #e11d48; }
/* Disabled/readonly inputs must stay on-theme (Bootstrap's :disabled rule forces
   a white background otherwise — the cause of the white email field in dark mode). */
.form-control:disabled, .form-control[readonly],
.form-control:disabled:focus, .form-control[readonly]:focus {
  background: var(--glass-2); color: var(--muted); opacity: 1; cursor: not-allowed;
  -webkit-text-fill-color: var(--muted); box-shadow: none; border-color: var(--glass-border);
}

/* ── Profile page ──────────────────────────────────────────────── */
.profile-hero { position: relative; overflow: hidden; padding: 1.9rem; display: flex; gap: 1.4rem;
  align-items: center; flex-wrap: wrap; }
.profile-hero::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 120px; pointer-events: none;
  background: radial-gradient(120% 100% at 15% 0%, rgba(var(--purple-rgb), .18), transparent 60%); }
.ph-avatar { position: relative; z-index: 1; flex: none; width: 92px; height: 92px; border-radius: 50%;
  display: grid; place-items: center; font-family: "Sora", sans-serif; font-weight: 800; font-size: 2rem;
  color: #fff; background: var(--grad); object-fit: cover;
  box-shadow: 0 0 0 3px var(--bg), 0 0 0 6px rgba(var(--purple-rgb), .5), 0 12px 30px rgba(var(--purple-rgb), .45);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.ph-avatar:hover { transform: translateY(-3px) scale(1.04);
  box-shadow: 0 0 0 3px var(--bg), 0 0 0 6px rgba(var(--cyan-rgb), .65), 0 16px 40px rgba(var(--purple-rgb), .55); }
.ph-id { position: relative; z-index: 1; min-width: 0; flex: 1 1 220px; }
.ph-id h2 { font-family: "Sora", sans-serif; font-weight: 800; font-size: 1.5rem; margin: 0 0 .2rem;
  letter-spacing: -.02em; }
.ph-email { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; color: var(--muted);
  font-size: .92rem; word-break: break-word; }
.ph-meta { margin-top: .5rem; font-size: .82rem; color: var(--muted); display: flex; align-items: center; gap: .4rem; }
.ph-achievements { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .9rem; }
.ph-chip { display: inline-flex; align-items: center; gap: .35rem; font-size: .75rem; font-weight: 600;
  padding: .3rem .7rem; border-radius: var(--radius-pill); background: var(--grad-soft);
  border: 1px solid var(--glass-border); color: var(--heading); }
.ph-stats { position: relative; z-index: 1; display: flex; gap: .6rem; flex-wrap: wrap; }
.ph-stat { flex: 1 1 84px; min-width: 84px; text-align: center; padding: .8rem .6rem; border-radius: var(--radius-sm);
  background: var(--glass-2); border: 1px solid var(--glass-border); }
.ph-stat b { display: block; font-family: "Sora", sans-serif; font-weight: 800; font-size: 1.4rem; line-height: 1;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.ph-stat span { display: block; margin-top: .25rem; font-size: .72rem; color: var(--muted); }

/* Email verification badge */
.verify-badge { display: inline-flex; align-items: center; gap: .3rem; font-size: .72rem; font-weight: 700;
  padding: .2rem .6rem; border-radius: var(--radius-pill); white-space: nowrap; }
.verify-badge svg { width: 13px; height: 13px; }
.verify-badge.ok { background: rgba(16,185,129,.16); color: #059669; }
.verify-badge.no { background: rgba(245,158,11,.16); color: #b45309; }
[data-theme="dark"] .verify-badge.ok { color: #34d399; }
[data-theme="dark"] .verify-badge.no { color: #fbbf24; }

/* Form section label + hint */
.form-section-label { font-family: "Sora", sans-serif; font-size: .78rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted); margin: 0 0 1.1rem; }
.form-hint { font-size: .78rem; color: var(--muted); margin-top: .3rem; }
.btn-save { position: relative; }
.btn-save .spinner { vertical-align: -2px; }

@media (max-width: 575.98px) {
  .profile-hero { padding: 1.4rem; gap: 1rem; }
  .ph-avatar { width: 74px; height: 74px; font-size: 1.6rem; }
  .ph-id h2 { font-size: 1.3rem; }
  .ph-stats { width: 100%; }
}

/* ── States ────────────────────────────────────────────────────── */
.empty-state { text-align: center; padding: 3.5rem 1rem; color: var(--muted); }
.empty-state .empty-icon { font-size: 2.8rem; display: block; margin-bottom: .6rem; opacity: .8; }
.spinner { width: 1.1rem; height: 1.1rem; border-radius: 50%; border: 2px solid rgba(255,255,255,.5);
  border-top-color: #fff; display: inline-block; animation: spin .7s linear infinite; vertical-align: -2px; }
@keyframes spin { to { transform: rotate(360deg); } }
.btn.is-loading { pointer-events: none; opacity: .85; }
.btn:disabled, .btn.disabled { opacity: .55; cursor: not-allowed; transform: none !important;
  box-shadow: none !important; filter: grayscale(.15); }
.btn .spinner { vertical-align: -2px; margin-right: .1rem; }

/* ── Welcome banner ────────────────────────────────────────────── */
.welcome-banner { background: var(--grad); color: #fff; text-align: center; padding: .6rem 1rem; font-weight: 600;
  position: relative; z-index: 2; }

/* ═══ Premium footer (SaaS-grade: glass, grid, glow, animated separator) ═══ */
.site-footer {
  flex-shrink: 0; margin-top: 5rem; position: relative; z-index: 1; overflow: hidden;
  background: linear-gradient(180deg, #0a0e1c 0%, #080b16 55%, #06080f 100%);
  color: #c2c9de; isolation: isolate;
}
.site-footer::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 1px; z-index: 2;
  background: linear-gradient(90deg, transparent, rgba(var(--purple-rgb), .85), rgba(var(--cyan-rgb), .6), transparent); }

/* Background effects (lightweight, GPU-cheap) */
.footer-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.fb-grid { position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 20%, transparent 75%); }
.fb-orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5; }
.fb-orb-1 { width: 420px; height: 420px; top: -160px; left: -80px;
  background: radial-gradient(circle, rgba(var(--purple-rgb), .55), transparent 70%); animation: fb-float 16s ease-in-out infinite; }
.fb-orb-2 { width: 360px; height: 360px; bottom: -180px; right: -60px;
  background: radial-gradient(circle, rgba(var(--cyan-rgb), .4), transparent 70%); animation: fb-float 20s ease-in-out infinite reverse; }
@keyframes fb-float { 0%,100% { transform: translate(0,0); } 50% { transform: translate(26px, -22px); } }

.footer-inner { position: relative; z-index: 1; max-width: 1200px; margin: 0 auto;
  padding: 3.4rem 1.25rem 1.75rem; }

/* Newsletter — full-width, centered, glass card with gradient border + glow */
.footer-news { position: relative; margin: 3.2rem 0 0; padding: 2.6rem 1.6rem;
  border-radius: calc(var(--radius) + 4px); text-align: center; overflow: hidden;
  background: rgba(255,255,255,.05); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 26px 70px rgba(0,0,0,.4), 0 0 60px rgba(var(--purple-rgb), .12) inset;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
/* Gradient border ring (mask trick keeps the glass blur intact) */
.footer-news::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px;
  background: linear-gradient(120deg, rgba(var(--blue-rgb), .8), rgba(var(--purple-rgb), .8) 50%, rgba(var(--cyan-rgb), .75));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
/* Soft glow orb behind the card */
.footer-news::after { content: ""; position: absolute; left: 50%; top: -40%; width: 460px; height: 300px;
  transform: translateX(-50%); border-radius: 50%; pointer-events: none; z-index: -1;
  background: radial-gradient(circle, rgba(var(--purple-rgb), .28), transparent 70%); filter: blur(30px); }
.footer-news:hover { transform: translateY(-4px);
  box-shadow: 0 34px 84px rgba(var(--purple-rgb), .28), 0 0 70px rgba(var(--cyan-rgb), .12) inset; }
.fn-inner { position: relative; max-width: 620px; margin: 0 auto; }
.fn-inner h3 { color: #fff; font-family: "Sora", sans-serif; font-weight: 800; font-size: 1.7rem;
  letter-spacing: -.02em; margin: 0 0 .5rem; }
.fn-inner > p { margin: 0 auto; font-size: .96rem; color: #9aa2bd; max-width: 52ch; line-height: 1.6; }

.newsletter-form { display: flex; align-items: center; justify-content: center; gap: .6rem;
  flex-wrap: wrap; position: relative; max-width: 500px; margin: 1.6rem auto 0; }
.news-field { display: flex; align-items: center; gap: .55rem; flex: 1 1 240px; min-width: 0;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--radius-pill); padding: .1rem .3rem .1rem 1rem; transition: border-color .2s, box-shadow .2s; }
.news-field:focus-within { border-color: rgba(var(--purple-rgb), .7); box-shadow: 0 0 0 3px rgba(var(--purple-rgb), .2); }
.news-field [data-lucide] { width: 18px; height: 18px; color: #8b93ad; flex: none; }
.newsletter-input { flex: 1 1 auto; min-width: 0; background: transparent; border: 0; color: #fff;
  padding: .72rem .2rem; font-size: .94rem; }
.newsletter-input::placeholder { color: #8b93ad; }
.newsletter-input:focus { outline: none; }
.news-btn { position: relative; white-space: nowrap; flex: none; padding-inline: 1.6rem; }
.news-btn .nb-spin { position: absolute; inset: 0; margin: auto; width: 18px; height: 18px; display: none;
  border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: nb-rot .7s linear infinite; }
@keyframes nb-rot { to { transform: rotate(360deg); } }
.news-btn.is-loading .nb-label { opacity: 0; }
.news-btn.is-loading .nb-spin { display: block; }
.news-success { flex-basis: 100%; margin: .2rem 0 0; display: flex; align-items: center; justify-content: center; gap: .4rem;
  color: #34d399; font-size: .9rem; font-weight: 600; animation: news-pop .4s var(--ease); }
.news-success [data-lucide] { width: 18px; height: 18px; }
@keyframes news-pop { from { opacity: 0; transform: translateY(6px) scale(.96); } to { opacity: 1; transform: none; } }

/* Columns grid (self-contained — resilient if the Bootstrap CDN fails) */
.footer-cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1.6fr; gap: 2.4rem 1.8rem; }
.fcol { min-width: 0; }
.site-footer h6 { color: #fff; font-family: "Sora", sans-serif; font-size: .8rem; letter-spacing: .12em;
  text-transform: uppercase; margin: 0 0 1.1rem; }
.fcol-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .1rem; }
.site-footer a { color: #a2aac2; font-size: .92rem; text-decoration: none; transition: color .2s, transform .2s; }
.site-footer a:hover { color: #fff; }
.fcol-list a { display: inline-block; padding: .32rem 0; }
.fcol-list a:hover { color: #fff; transform: translateX(4px); }

/* Brand column */
.footer-brand { display: inline-flex; align-items: center; gap: .6rem; margin-bottom: 1rem; }
.footer-brand .logo-mark { width: 40px; height: 40px; border-radius: 12px; }
.fb-name { font-family: "Sora", sans-serif; font-size: 1.3rem; color: #fff; letter-spacing: -.01em; }
.fb-name .bt-hack { font-weight: 500; } .fb-name .bt-sphere { font-weight: 800; }
.fb-powered { display: flex; align-items: center; gap: 10px; font-size: .9rem; color: #b8c0d8; margin: 0 0 .7rem; }
.fb-powered .ps-logo { height: 30px; width: auto; flex: none; display: block; }
.fb-powered span { min-width: 0; }
.fb-powered strong { color: #fff; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.fb-about { font-size: .9rem; color: #8f97b2; max-width: 40ch; margin: 0 0 1.2rem; line-height: 1.6; }

/* Social — circular glass with hover glow */
.footer-social { display: flex; gap: .6rem; }
.footer-social a { width: 42px; height: 42px; border-radius: 50%; display: inline-grid; place-items: center;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); color: #fff;
  transition: transform .25s var(--ease), background .25s var(--ease), box-shadow .25s var(--ease), border-color .25s; }
.footer-social a:hover { background: var(--grad); border-color: transparent; transform: translateY(-4px) scale(1.06);
  box-shadow: 0 10px 26px rgba(var(--purple-rgb), .5); color: #fff; }

/* Contact list */
.contact-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1rem; }
.contact-list li { display: flex; align-items: flex-start; gap: .7rem; }
.ci-ic { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: var(--grad-soft); border: 1px solid rgba(255,255,255,.1); color: #fff; }
.ci-ic [data-lucide] { width: 17px; height: 17px; }
.ci-body { display: flex; flex-direction: column; gap: .12rem; font-size: .9rem; color: #a2aac2; min-width: 0; }
.ci-body a { padding: 0; font-size: .88rem; overflow-wrap: anywhere; }
.ci-addr { line-height: 1.55; color: #8f97b2; }

/* Animated separator */
.footer-sep { height: 1px; margin: 2.6rem 0 1.5rem; border: 0;
  background: linear-gradient(90deg, transparent, rgba(var(--purple-rgb), .55), rgba(var(--cyan-rgb), .55), transparent);
  background-size: 200% 100%; animation: sep-flow 7s linear infinite; }
@keyframes sep-flow { to { background-position: 200% 0; } }

/* Bottom bar */
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem;
  color: #7f879f; font-size: .85rem; }
.fb-legal { display: flex; align-items: center; gap: .5rem; }
.fb-legal a { font-size: .85rem; }
.fb-dot { color: #4b5570; }

/* Responsive */
@media (max-width: 992px) {
  .footer-cols { grid-template-columns: 1fr 1fr; gap: 2.2rem 1.6rem; }
  .fcol-brand { grid-column: 1 / -1; }
  .fcol-contact { grid-column: 1 / -1; }
}
@media (max-width: 575.98px) {
  .footer-inner { padding: 2.6rem 1.1rem 1.5rem; }
  .footer-cols { grid-template-columns: 1fr; gap: 1.9rem; }
  .footer-news { padding: 2rem 1.1rem; }
  .fn-inner { max-width: 100%; }
  .fn-inner h3 { font-size: 1.45rem; }
  /* Stack input + button, each exactly full width of the card — no overflow. */
  .newsletter-form { flex-direction: column; align-items: stretch; flex-wrap: nowrap;
    width: 100%; max-width: 100%; margin: 1.4rem 0 0; gap: .7rem; }
  .news-field { width: 100%; max-width: 100%; flex: 0 0 auto; }
  .newsletter-input { width: 100%; }
  .news-btn { width: 100%; max-width: 100%; padding-block: .82rem; }
  .footer-bottom { justify-content: center; text-align: center; }
}

/* ── Confetti / detail / misc ──────────────────────────────────── */
#confetti-canvas { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1090; }
.detail-hero { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 300px;
  background: var(--grad); background-size: 200% 200%; display: flex; align-items: flex-end;
  padding: 2.5rem; box-shadow: var(--shadow-lg); }
.detail-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.detail-hero .scrim { position: absolute; inset: 0; background: linear-gradient(180deg, transparent, rgba(5,8,20,.7)); }
.detail-hero .inner { position: relative; z-index: 2; color: #fff; }
.detail-hero .inner h1 { color: #fff; }
.rank-medal { font-size: 1.3rem; }

/* ── 3D tilt helper ────────────────────────────────────────────── */
.tilt { transform-style: preserve-3d; transition: transform .2s var(--ease); }

/* ── Lucide icon sizing ────────────────────────────────────────── */
[data-lucide] { width: 1.15em; height: 1.15em; stroke-width: 2; vertical-align: -2px; }
.icon-btn [data-lucide] { width: 18px; height: 18px; }

/* ── Nav avatar ────────────────────────────────────────────────── */
.nav-avatar {
  width: 42px; height: 42px; border-radius: var(--radius-pill); display: grid; place-items: center;
  font-weight: 700; color: #fff; background: var(--grad); font-size: .95rem; cursor: pointer;
  border: 2px solid transparent;
  /* Gradient ring + soft glow via layered box-shadows (no layout shift). */
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px rgba(var(--purple-rgb), .55), 0 6px 18px rgba(var(--purple-rgb), .4);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.nav-avatar:hover { transform: translateY(-2px) scale(1.06);
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px rgba(var(--cyan-rgb), .7), 0 10px 26px rgba(var(--purple-rgb), .55); }
.nav-avatar:active { transform: scale(.96); }
.user-panel { min-width: 220px; }

/* ── Button ripple ─────────────────────────────────────────────── */
.btn-gradient, .btn-primary { position: relative; overflow: hidden; }
.ripple-ink { position: absolute; border-radius: 50%; transform: scale(0); pointer-events: none;
  background: rgba(255,255,255,.5); animation: ripple .6s var(--ease); }
@keyframes ripple { to { transform: scale(2.4); opacity: 0; } }

/* ── KPI cards (dashboards) ────────────────────────────────────── */
.kpi {
  position: relative; border-radius: var(--radius); padding: 1.4rem;
  background: var(--glass); border: 1px solid var(--glass-border);
  backdrop-filter: blur(var(--blur)); box-shadow: var(--shadow);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease); overflow: hidden;
}
.kpi::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; opacity: 0;
  background: linear-gradient(130deg, rgba(var(--blue-rgb),.7), rgba(var(--purple-rgb),.5), rgba(var(--cyan-rgb),.6));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; transition: opacity .4s; pointer-events: none;
}
.kpi:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.kpi:hover::after { opacity: 1; }
.kpi-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: .6rem; }
.kpi-icon {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
  background: var(--grad-soft); color: var(--purple); border: 1px solid var(--glass-border);
}
.kpi-icon [data-lucide] { width: 22px; height: 22px; }
.kpi-value { font-family: "Sora", sans-serif; font-size: 2.1rem; font-weight: 700; line-height: 1;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.kpi-label { color: var(--muted); font-size: .9rem; font-weight: 500; }
.kpi-trend { font-size: .78rem; color: #16a34a; }

/* progress meter */
.meter { height: 8px; border-radius: 999px; background: var(--glass-2); overflow: hidden; }
.meter > span { display: block; height: 100%; border-radius: 999px; background: var(--grad);
  width: 0; transition: width 1.1s var(--ease); }

/* ── Filter bar / chips ────────────────────────────────────────── */
.filter-bar { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; }
.filter-search {
  flex: 1 1 240px; min-width: 200px; display: flex; align-items: center; gap: .5rem;
  background: var(--glass-strong); border: 1px solid var(--glass-border);
  border-radius: var(--radius-pill); padding: .55rem 1rem; color: var(--text);
}
.filter-search input { border: none; background: transparent; outline: none; color: var(--text); width: 100%; }
.fchip {
  cursor: pointer; user-select: none; font-size: .85rem; font-weight: 500;
  padding: .5rem 1rem; border-radius: var(--radius-pill);
  background: var(--glass-2); border: 1px solid var(--hairline); color: var(--muted); transition: all .2s;
}
.fchip:hover { color: var(--heading); }
.fchip.active { color: #fff; background: var(--grad); border-color: transparent; box-shadow: 0 6px 16px rgba(var(--purple-rgb), .3); }

/* ── Image upload guidance / drag-drop zone (admin) ────────────── */
.upload-specs { list-style: none; margin: 0 0 .6rem; padding: 0; font-size: .8rem; color: var(--muted); }
.upload-specs li { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .5rem; padding: .12rem 0; }
.ug-chip { flex: none; font-family: "Sora", sans-serif; font-weight: 700; font-size: .72rem;
  color: var(--purple); background: var(--grad-soft); border: 1px solid var(--glass-border);
  padding: .12rem .55rem; border-radius: 999px; }
.upload-status { min-height: 1em; font-weight: 500; }
.upload-status.us-ok { color: #16a34a; }
.upload-status.us-warn { color: #b45309; }
.upload-status.us-error { color: #e11d48; }

.image-drop {
  position: relative; display: block; cursor: pointer; text-align: center;
  border: 1.5px dashed rgba(var(--purple-rgb), .4); border-radius: var(--radius-sm);
  background: var(--glass-2); padding: 1.4rem 1rem; overflow: hidden;
  transition: border-color .25s var(--ease), background .25s var(--ease), box-shadow .25s var(--ease); }
.image-drop:hover, .image-drop.dragging { border-color: var(--purple); background: var(--grad-soft); box-shadow: var(--shadow-sm); }
.image-drop.has-image { border-style: solid; border-color: rgba(var(--purple-rgb), .35); background: var(--glass); padding: .9rem; }
.image-drop.is-invalid { border-color: #e11d48; background: rgba(225, 29, 72, .06); }
.image-drop-input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; }
.idz-empty { pointer-events: none; }
.idz-icon { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 14px;
  background: var(--grad-soft); color: var(--purple); margin-bottom: .5rem; }
.idz-icon [data-lucide] { width: 22px; height: 22px; }
.idz-text { font-weight: 600; color: var(--heading); font-size: .92rem; }
.idz-hint { font-size: .78rem; color: var(--muted); margin-top: .15rem; }
.idz-preview { position: relative; z-index: 2; }
.idz-preview img { max-height: 150px; max-width: 100%; border-radius: 10px; object-fit: cover;
  border: 1px solid var(--hairline); box-shadow: var(--shadow-sm); }
.image-drop-square .idz-preview img { max-height: 130px; aspect-ratio: 1/1; object-fit: contain; background: var(--glass-2); }
.idz-meta { font-size: .76rem; color: var(--muted); margin-top: .4rem; }
.idz-change { margin-top: .5rem; font-size: .78rem; font-weight: 600; color: var(--purple);
  background: var(--glass-strong); border: 1px solid var(--glass-border); border-radius: 999px;
  padding: .3rem .9rem; cursor: pointer; transition: all .2s; }
.idz-change:hover { background: var(--grad-soft); }
.idz-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: transparent; }
.idz-progress span { display: block; height: 100%; width: 0; background: var(--grad); border-radius: 0 3px 3px 0; }
.current-media { display: flex; align-items: center; gap: .6rem; }
.current-media img { max-height: 54px; border-radius: 8px; border: 1px solid var(--hairline); }
.form-control.is-invalid { border-color: #e11d48; }

/* ── Dropzone ──────────────────────────────────────────────────── */
.dropzone {
  position: relative; border: 1.5px dashed rgba(var(--purple-rgb), .4); border-radius: var(--radius-sm);
  background: var(--glass-2); padding: 1.8rem 1rem; text-align: center; cursor: pointer;
  transition: all .25s var(--ease);
}
.dropzone:hover, .dropzone.dragging { border-color: var(--purple); background: var(--grad-soft); }
.dropzone.has-file { border-style: solid; border-color: #16a34a; }
.dropzone input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dropzone .dz-icon { font-size: 1.8rem; color: var(--purple); }
.dropzone .dz-label { color: var(--muted); font-size: .92rem; margin-top: .3rem; }
.dz-bar { height: 6px; border-radius: 999px; background: var(--glass-2); overflow: hidden; margin-top: .8rem; }
.dz-bar span { display: block; height: 100%; width: 0; background: var(--grad); transition: width .8s var(--ease); }

/* ── Podium / winner cards (results) ───────────────────────────── */
.podium { display: grid; grid-template-columns: 1fr 1.2fr 1fr; gap: 1rem; align-items: end; max-width: 760px; margin: 0 auto 2rem; }
.podium-card { border-radius: var(--radius); padding: 1.4rem 1rem; text-align: center; position: relative;
  background: var(--glass); border: 1px solid var(--glass-border); box-shadow: var(--shadow); }
.podium-card .medal { font-size: 2rem; }
.podium-card .pteam { font-weight: 700; font-family: "Sora", sans-serif; }
.podium-card .pscore { color: var(--muted); font-size: .9rem; }
.podium-1 { transform: translateY(-18px); border-color: rgba(var(--purple-rgb), .5);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(var(--purple-rgb), .3); }
.podium-1 .crown { position: absolute; top: -18px; left: 50%; transform: translateX(-50%); font-size: 1.6rem;
  animation: float 3s ease-in-out infinite; }
.podium-card { overflow: hidden; }
.podium-rank-1::before, .podium-rank-2::before, .podium-rank-3::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; }
.podium-rank-1::before { background: linear-gradient(120deg, #f59e0b, #fbbf24, #f59e0b); height: 5px; }
.podium-rank-2::before { background: linear-gradient(120deg, #94a3b8, #e2e8f0, #94a3b8); }
.podium-rank-3::before { background: linear-gradient(120deg, #b45309, #f59e0b, #b45309); }
@media (max-width: 600px) { .podium { grid-template-columns: 1fr; } .podium-1 { transform: none; } }

/* ── Admin layout (kept; themed by tokens) ─────────────────────── */
.admin-body { display: block; background: var(--bg); }
.admin-topbar { display: flex; align-items: center; gap: .75rem; padding: .7rem 1.1rem; position: sticky;
  top: 0; z-index: 1030; border-radius: 0 0 var(--radius) var(--radius); }
.admin-layout { display: flex; gap: 1.25rem; padding: 1.25rem; align-items: flex-start; }
.admin-sidebar { padding: .5rem; }
.admin-sidebar .nav-link { color: var(--text); border-radius: var(--radius-sm); padding: .6rem .9rem;
  font-weight: 500; transition: all .2s; }
.admin-sidebar .nav-link:hover { background: var(--glass-2); }
.admin-sidebar .nav-link.active { background: var(--grad-soft); color: var(--purple); }
.admin-main { flex: 1 1 auto; min-width: 0; width: 100%; }
/* Desktop only: sidebar is a sticky column. Below lg it's a Bootstrap
   offcanvas (toggled by the ☰ button) and must NOT occupy layout space. */
@media (min-width: 992px) {
  .admin-sidebar { width: 240px; flex: 0 0 240px; position: sticky; top: 80px; align-self: flex-start; }
}
.page-header { display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  flex-wrap: wrap; margin-bottom: 1.5rem; }
.page-header h1 { margin: 0; }
.stat-tile { display: flex; flex-direction: column; gap: .15rem; }
.stat-tile .tile-value { font-size: 1.9rem; font-weight: 700; font-family: "Sora", sans-serif; }
.pagination .page-link { color: var(--purple); background: var(--glass-2); border-color: var(--hairline); border-radius: 10px; margin: 0 2px; }
.pagination .active .page-link { background: var(--grad); border-color: transparent; color: #fff; }

/* ── Premium header refinements ────────────────────────────────── */
.nav-pill { gap: .4rem; }
.brand .logo-mark { animation: logo-glow 3.5s ease-in-out infinite; }
@keyframes logo-glow {
  0%,100% { box-shadow: 0 6px 16px rgba(var(--purple-rgb), .4); }
  50% { box-shadow: 0 6px 22px rgba(var(--cyan-rgb), .6); }
}
.brand-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; letter-spacing: -.01em; }
.brand-text .bt-hack { font-weight: 500; }
.brand-text .bt-sphere { font-weight: 800; }
.nav-links a { position: relative; }
.nav-links a:not(.active)::after {
  content: ""; position: absolute; left: 50%; right: 50%; bottom: 4px; height: 2px; border-radius: 2px;
  background: var(--grad); transition: left .25s var(--ease), right .25s var(--ease);
}
.nav-links a:not(.active):hover::after { left: 22%; right: 22%; }

/* ── Nav dropdowns (notifications + mobile menu) ───────────────── */
.notif-wrap { position: relative; }
.nav-dropdown {
  position: absolute; top: calc(100% + 12px); right: 0; min-width: 280px; z-index: 1050;
  background: var(--glass-strong); border: 1px solid var(--glass-border);
  backdrop-filter: blur(22px) saturate(160%); -webkit-backdrop-filter: blur(22px) saturate(160%);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  transform: translateY(-8px) scale(.98); opacity: 0; transform-origin: top right;
  transition: opacity .22s var(--ease), transform .22s var(--ease);
}
.nav-dropdown.show { opacity: 1; transform: translateY(0) scale(1); }
.notif-panel { padding: .5rem; }
.nd-head { display: flex; justify-content: space-between; align-items: center; padding: .6rem .7rem; }
.nd-count { font-size: .72rem; font-weight: 700; color: #fff; background: var(--grad); padding: .1rem .55rem; border-radius: 999px; }
.nd-body { max-height: 340px; overflow-y: auto; }
.nd-item { display: flex; gap: .7rem; align-items: center; padding: .65rem .7rem; border-radius: var(--radius-sm);
  color: var(--text); transition: background .2s; }
.nd-item:hover { background: var(--glass-2); color: var(--text); }
.nd-ic { width: 34px; height: 34px; flex: none; border-radius: 10px; display: grid; place-items: center;
  background: var(--grad-soft); color: var(--purple); }
.nd-ic [data-lucide] { width: 17px; height: 17px; }
.nd-text { font-size: .9rem; line-height: 1.3; }
.nd-empty { padding: 1.4rem; text-align: center; color: var(--muted); font-size: .9rem; }
.icon-btn .dot { display: grid; place-items: center; }

.mobile-menu { left: 0; right: 0; padding: .5rem; display: flex; flex-direction: column; gap: .15rem; }
.mobile-menu a { color: var(--text); font-weight: 500; padding: .7rem .9rem; border-radius: var(--radius-sm); }
.mobile-menu a:hover { background: var(--glass-2); }
.mobile-menu a.active { color: #fff; background: var(--grad); }

/* ── Premium mobile drawer (glass slide-in + backdrop) ─────────────── */
.mobile-drawer-backdrop {
  position: fixed; inset: 0; z-index: 1058; background: rgba(8, 12, 28, .45);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  opacity: 0; transition: opacity .35s var(--ease);
}
.mobile-drawer-backdrop.show { opacity: 1; }
.mobile-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 1060;
  width: min(86vw, 340px);
  display: flex; flex-direction: column; gap: .2rem;
  padding: 1rem 1rem 1.4rem;
  background: var(--glass-strong); border-left: 1px solid var(--glass-border);
  backdrop-filter: blur(26px) saturate(160%); -webkit-backdrop-filter: blur(26px) saturate(160%);
  box-shadow: var(--shadow-lg);
  transform: translateX(105%); transition: transform .38s var(--ease);
  overflow-y: auto; overscroll-behavior: contain;
}
.mobile-drawer.show { transform: translateX(0); }
.md-brand { display: flex; align-items: center; gap: .5rem; padding: .1rem .1rem .9rem; font-family: "Sora", sans-serif;
  font-size: 1.15rem; text-decoration: none; }
.md-brand .logo-mark { width: 30px; height: 30px; border-radius: 10px; }
.md-head { display: flex; align-items: center; gap: .7rem; padding: .3rem .1rem 1rem;
  border-bottom: 1px solid var(--hairline); margin-bottom: .3rem; }
.md-profile { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--heading); flex: 1; min-width: 0; }
.md-avatar { width: 44px; height: 44px; flex: none; border-radius: 50%; display: grid; place-items: center;
  font-weight: 700; color: #fff; background: var(--grad); box-shadow: 0 6px 16px rgba(var(--purple-rgb), .35); font-size: 1.05rem; }
.md-guest .md-avatar { background: var(--grad-soft); }
.md-id { display: flex; flex-direction: column; min-width: 0; }
.md-id strong { font-family: "Sora", sans-serif; font-size: .96rem; line-height: 1.2; color: var(--heading);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.md-id .md-sub { font-size: .75rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.md-close { width: 36px; height: 36px; flex: none; border-radius: 12px; display: grid; place-items: center;
  border: 1px solid var(--glass-border); background: var(--glass-2); color: var(--heading); cursor: pointer; transition: all .2s; }
.md-close:hover { background: var(--grad-soft); color: var(--purple); }
.md-close [data-lucide] { width: 18px; height: 18px; }
.md-section-label { font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); padding: .8rem .4rem .3rem; }
.md-nav { display: flex; flex-direction: column; gap: .1rem; }
.md-link { display: flex; align-items: center; gap: .8rem; padding: .72rem .7rem; border-radius: var(--radius-sm);
  color: var(--text); font-weight: 500; transition: background .2s var(--ease), transform .2s var(--ease); }
.md-link [data-lucide] { width: 19px; height: 19px; color: var(--muted); transition: color .2s; }
.md-link:hover { background: var(--glass-2); transform: translateX(3px); }
.md-link:hover [data-lucide] { color: var(--purple); }
.md-link.active { color: #fff; background: var(--grad); box-shadow: 0 6px 16px rgba(var(--purple-rgb), .3); }
.md-link.active [data-lucide] { color: #fff; }
.md-cta { display: flex; flex-direction: column; gap: .5rem; margin-top: auto; padding-top: 1.2rem; }
.md-cta .btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; }
.md-cta .btn [data-lucide] { width: 18px; height: 18px; }

/* ── Sparkle welcome ───────────────────────────────────────────── */
.sparkle-layer { position: absolute; inset: 0; pointer-events: none; z-index: 1; overflow: hidden; }
.sparkle { position: absolute; color: var(--c, #7c5cff); text-shadow: 0 0 8px var(--c, #7c5cff);
  animation: sparkle 2s ease-in-out forwards; }
@keyframes sparkle {
  0% { opacity: 0; transform: scale(0) rotate(0deg); }
  40% { opacity: 1; transform: scale(1.2) rotate(90deg); }
  100% { opacity: 0; transform: scale(0) translateY(-26px) rotate(180deg); }
}
.welcome-note {
  display: inline-flex; align-items: center; gap: .5rem; margin-bottom: 1rem;
  font-weight: 600; color: var(--purple); background: var(--glass-strong);
  border: 1px solid var(--glass-border); padding: .45rem 1.1rem; border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
}
.welcome-note .wave { animation: wave 1.6s ease-in-out infinite; transform-origin: 70% 70%; display: inline-block; }
@keyframes wave { 0%,60%,100%{ transform: rotate(0) } 15%{ transform: rotate(16deg) } 30%{ transform: rotate(-8deg) } 45%{ transform: rotate(12deg) } }

/* ── Hackathon card upgrades ───────────────────────────────────── */
.hcard-banner .hcard-initial {
  position: absolute; right: 12px; bottom: -14px; font-family: "Sora", sans-serif; font-weight: 800;
  font-size: 5rem; line-height: 1; color: rgba(255,255,255,.22); z-index: 1; user-select: none;
}
.hcard-banner::after {
  content: ""; position: absolute; top: 0; left: -60%; width: 50%; height: 100%; z-index: 2;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.45), transparent);
  transform: skewX(-20deg); transition: left .7s var(--ease);
}
.hcard:hover .hcard-banner::after { left: 130%; }
.hcard .chip [data-lucide] { width: 14px; height: 14px; }

/* ── Hackathon card grid — self-contained (works even if the Bootstrap CDN
   grid fails to load), equal-height, responsive 3 → 2 → 1 columns. ────── */
.hackathon-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  align-items: stretch;
}
.hackathon-grid > * { min-width: 0; display: flex; }
@media (max-width: 991.98px) { .hackathon-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575.98px) { .hackathon-grid { grid-template-columns: 1fr; } }

/* Card internals resilient to missing Bootstrap utilities (d-block/mt-auto/…) */
.hcard { color: var(--text); text-decoration: none; width: 100%; }
.hcard:hover { color: var(--text); }
.hcard-body h4 {
  font-size: 1.15rem; line-height: 1.3; margin-bottom: .5rem; color: var(--heading);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 2.6em;
}
.hcard-desc {
  color: var(--muted); font-size: .9rem; margin-bottom: 1rem;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 2.6em;
}
.hcard-meta { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }
.hcard-cd { margin-bottom: 1rem; }
.hcard-body .btn { margin-top: auto; }   /* pin CTA to the bottom regardless of Bootstrap */

/* ── Featured section ──────────────────────────────────────────── */
.featured-wrap { position: relative; }
.featured-banner {
  min-height: 280px; border-radius: var(--radius); position: relative; overflow: hidden;
  background: var(--grad); background-size: 220% 220%; animation: grad-flow 8s ease infinite;
  display: flex; align-items: flex-end; padding: 1.6rem; box-shadow: var(--shadow-lg);
}
.featured-banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.featured-banner .scrim { position: absolute; inset: 0; background: linear-gradient(180deg, transparent, rgba(6,9,20,.65)); }
.featured-badge { position: absolute; top: 16px; left: 16px; z-index: 3;
  background: rgba(255,255,255,.9); color: #0d1222; font-weight: 700; font-size: .72rem;
  padding: .35rem .8rem; border-radius: 999px; }
.featured-info { display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem; margin: 1.2rem 0; }
.fi-cell { background: var(--glass-2); border: 1px solid var(--hairline); border-radius: var(--radius-sm); padding: .8rem 1rem; }
.fi-cell .fi-k { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.fi-cell .fi-v { font-family: "Sora", sans-serif; font-weight: 700; }

/* ── FAQ premium accordion ─────────────────────────────────────── */
.faq-item { border: 1px solid var(--glass-border); background: var(--glass); border-radius: var(--radius-sm) !important;
  margin-bottom: .75rem; overflow: hidden; transition: box-shadow .3s var(--ease); }
.faq-item:hover { box-shadow: var(--shadow-sm); }
.faq-q { display: flex; align-items: center; gap: .8rem; width: 100%; text-align: left; border: none;
  background: transparent; color: var(--heading); font-weight: 600; font-family: "Sora", sans-serif;
  padding: 1.1rem 1.2rem; cursor: pointer; font-size: 1rem; }
.faq-q .faq-num { width: 30px; height: 30px; flex: none; border-radius: 9px; display: grid; place-items: center;
  font-size: .85rem; background: var(--grad-soft); color: var(--purple); }
.faq-q .faq-chev { margin-left: auto; transition: transform .3s var(--ease); color: var(--muted); }
.faq-item.open .faq-chev { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s var(--ease); }
.faq-item.open .faq-a { max-height: 320px; }
.faq-a-inner { padding: 0 1.2rem 1.1rem 3.4rem; color: var(--muted); }

/* ── Timeline premium ──────────────────────────────────────────── */
.timeline.premium { padding-left: 2.5rem; }
.timeline.premium::before { left: 12px; width: 3px; background: linear-gradient(var(--blue), var(--purple), var(--cyan));
  opacity: .35; }
.timeline.premium .tl-item { padding: 0 0 2.2rem 1.8rem; }
.timeline.premium .tl-item::before { left: -1.95rem; width: 28px; height: 28px; display: grid; place-items: center;
  background: var(--glass-strong); border: 2px solid transparent;
  background-image: linear-gradient(var(--glass-strong), var(--glass-strong)), var(--grad);
  background-origin: border-box; background-clip: padding-box, border-box;
  box-shadow: 0 0 0 5px var(--bg), 0 0 18px rgba(var(--purple-rgb), .5); }
.tl-card { background: var(--glass); border: 1px solid var(--glass-border); border-radius: var(--radius-sm);
  padding: 1.1rem 1.3rem; box-shadow: var(--shadow-sm); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.tl-card:hover { transform: translateX(6px); box-shadow: var(--shadow); }
.tl-card .tl-step { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--purple); }

@media (max-width: 991.98px) {
  .nav-links { display: none; }
  .admin-layout { padding: .75rem; gap: 0; }
  /* Sidebar is an offcanvas here (Bootstrap handles hide/show) — no overrides. */
}
@media (min-width: 992px) { .mobile-menu { display: none !important; } }
@media (max-width: 575.98px) { .featured-info { grid-template-columns: 1fr; } }

/* ── Hero rotating tagline ─────────────────────────────────────── */
.hero-rotate { margin-top: 1.4rem; color: var(--muted); font-weight: 500; }
.hero-rotate .rot {
  display: inline-block; min-width: 9ch; text-align: left; font-family: "Sora", sans-serif; font-weight: 700;
}
.hero-rotate .rot .cursor { color: var(--purple); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ── Marquee keyword band ──────────────────────────────────────── */
.marquee {
  position: relative; overflow: hidden; padding: .9rem 0; margin-top: 1rem;
  border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline);
  -webkit-mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track { display: inline-flex; gap: 2.5rem; white-space: nowrap; will-change: transform;
  animation: marquee 26s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item { font-family: "Sora", sans-serif; font-weight: 600; color: var(--muted);
  display: inline-flex; align-items: center; gap: .5rem; font-size: 1.05rem; }
.marquee-item .dotsep { width: 7px; height: 7px; border-radius: 50%; background: var(--grad); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ── Premium hero — MOBILE-FIRST (single column, centered) ─────────
   Desktop two-column layout is opted into at >=992px further below. This
   ordering guarantees small screens never fall back to the wide layout. */
.hero { text-align: center; padding: 2.25rem 1rem 3rem; overflow: hidden; }
.hero-title { overflow-wrap: break-word; }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 1.75rem; align-items: center; }
/* Prevent grid/flex blow-out on mobile: without min-width:0 a 1fr track grows
   to its content's min-content (long title word / 440px mockup), pushing the
   column past the viewport where .hero overflow:hidden silently clips it. */
.hero-grid > * { min-width: 0; }
.hero-left { display: flex; flex-direction: column; align-items: center; width: 100%; max-width: 100%; }
.hero-left > * { max-width: 100%; }
.hero-left .welcome-note { margin-bottom: 1.1rem; }
.hero-left .hero-title { margin: 0 auto 1rem; max-width: 16ch; text-align: center; font-size: clamp(2rem, 8vw, 2.7rem); }
.hero-left .hero-subtitle { margin: 0 auto 1.6rem; text-align: center; max-width: 52ch; }
.hero-left .hero-actions { justify-content: center; }
.hero-left .hero-rotate { margin-top: 1.2rem; }
.hero-orbs { display: none; }
.hero-trust { display: flex; gap: 1.2rem; flex-wrap: wrap; margin-top: 1.6rem; justify-content: center; }
.hero-trust .ht { display: flex; flex-direction: column; }
.hero-trust .ht-v { font-family: "Sora", sans-serif; font-weight: 800; font-size: 1.45rem;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero-trust .ht-k { font-size: .8rem; color: var(--muted); }
.hero-trust .ht + .ht { border-left: 1px solid var(--hairline); padding-left: 1.2rem; }

/* social proof */
.social-proof { display: flex; align-items: center; gap: .8rem; margin-top: 1.4rem; justify-content: center; }
.avatar-stack { display: flex; }
.avatar-stack span { width: 34px; height: 34px; border-radius: 50%; margin-left: -10px; color: #fff;
  display: grid; place-items: center; font-size: .8rem; font-weight: 700; border: 2px solid var(--bg);
  background: var(--grad); }
.avatar-stack span:first-child { margin-left: 0; }
.social-proof .sp-txt { font-size: .85rem; color: var(--muted); }
.social-proof .stars { color: #f5a623; letter-spacing: 1px; }

/* Right column: dashboard mockup + floating cards */
.hero-stage { position: relative; display: grid; place-items: center; }
.dash-mock {
  position: relative; z-index: 2; width: 100%; max-width: min(440px, 100%); border-radius: var(--radius);
  background: var(--glass-strong); border: 1px solid var(--glass-border);
  backdrop-filter: blur(var(--blur)) saturate(160%); box-shadow: var(--shadow-lg);
  padding: 1.1rem; overflow: hidden;
  transform: none; transform-origin: center;
  transition: transform .6s var(--ease);
}
.dash-mock::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(135deg, rgba(255,255,255,.35), transparent 40%); }
.mock-bar { display: flex; align-items: center; gap: .4rem; margin-bottom: .9rem; }
.mock-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--hairline); }
.mock-dot.r { background: #ff6b6b; } .mock-dot.y { background: #ffd166; } .mock-dot.g { background: #06d6a0; }
.mock-title { margin-left: auto; font-size: .72rem; color: var(--muted); font-family: "Sora", sans-serif; }
.mock-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; margin-bottom: .9rem; }
.mock-kpi { background: var(--glass-2); border: 1px solid var(--hairline); border-radius: 12px; padding: .6rem .7rem; }
.mock-kpi .k { font-size: .62rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.mock-kpi .v { font-family: "Sora", sans-serif; font-weight: 700; font-size: 1.1rem;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.mock-chart { display: flex; align-items: flex-end; gap: .45rem; height: 92px; padding: .6rem;
  background: var(--glass-2); border: 1px solid var(--hairline); border-radius: 12px; margin-bottom: .8rem; }
.mock-chart i { flex: 1; border-radius: 6px 6px 0 0; background: var(--grad); opacity: .85;
  animation: growbar 1.1s var(--ease) both; }
@keyframes growbar { from { height: 0 !important; } }
.mock-row { display: flex; align-items: center; gap: .6rem; padding: .5rem .2rem; border-top: 1px solid var(--hairline); }
.mock-row .ava { width: 26px; height: 26px; border-radius: 8px; background: var(--grad); flex: none; }
.mock-row .ln { height: 8px; border-radius: 6px; background: var(--glass-2); }

/* Floating glass stat cards + icon chips — hidden by default; shown only at
   >=1200px (the desktop block) where there's room to "pop out" safely. */
.float-stat {
  display: none;
  position: absolute; z-index: 3; background: var(--glass-strong); border: 1px solid var(--glass-border);
  backdrop-filter: blur(16px); border-radius: 16px; padding: .65rem .85rem; box-shadow: var(--shadow);
  align-items: center; gap: .55rem; animation: float 7s ease-in-out infinite;
}
.float-stat .fs-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: var(--grad-soft); color: var(--purple); flex: none; }
.float-stat .fs-v { font-family: "Sora", sans-serif; font-weight: 700; font-size: .95rem; line-height: 1; }
.float-stat .fs-k { font-size: .68rem; color: var(--muted); }
.float-stat .fs-v { white-space: nowrap; }
.fs-1 { top: -4%; left: 2%; } .fs-2 { top: 22%; right: -2%; animation-delay: -2s; }
.fs-3 { bottom: -2%; left: -2%; animation-delay: -4s; } .fs-4 { bottom: 16%; right: 0; animation-delay: -1s; }
.float-chip {
  display: none;
  position: absolute; z-index: 4; width: 46px; height: 46px; border-radius: 14px; place-items: center;
  background: var(--glass-strong); border: 1px solid var(--glass-border); backdrop-filter: blur(14px);
  box-shadow: var(--shadow); color: var(--purple); animation: float 6s ease-in-out infinite; will-change: transform;
}
.float-chip [data-lucide] { width: 22px; height: 22px; }
.fc-1 { top: -5%; right: 22%; } .fc-2 { top: 40%; left: -6%; animation-delay: -2s; color: var(--blue); }
.fc-3 { bottom: -5%; right: 30%; animation-delay: -3s; color: #06b6d4; }
.fc-4 { bottom: 34%; left: 4%; animation-delay: -1.5s; color: #ff6ec4; }
.fc-5 { top: 14%; left: -3%; animation-delay: -4s; color: #f59e0b; }

/* ── Horizontal timeline ───────────────────────────────────────── */
.htimeline { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; position: relative; }
.htimeline::before { content: ""; position: absolute; left: 8%; right: 8%; top: 26px; height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--purple), var(--cyan)); opacity: .35; border-radius: 3px; }
.htl { text-align: center; position: relative; }
.htl .node { width: 54px; height: 54px; margin: 0 auto .9rem; border-radius: 16px; display: grid; place-items: center;
  background: var(--glass-strong); border: 1px solid var(--glass-border); color: var(--purple);
  box-shadow: var(--shadow-sm), 0 0 0 5px var(--bg); position: relative; z-index: 1; transition: transform .35s var(--ease); }
.htl:hover .node { transform: translateY(-6px) scale(1.06); color: #fff; background: var(--grad); border-color: transparent; }
.htl .node [data-lucide] { width: 24px; height: 24px; }
.htl .step { font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.htl h6 { margin: .15rem 0 .25rem; }
@media (max-width: 767.98px) {
  .htimeline { grid-template-columns: 1fr 1fr; }
  .htimeline::before { display: none; }
}

/* ── Leaderboard preview ───────────────────────────────────────── */
.lb-card { display: flex; align-items: center; gap: 1rem; padding: .9rem 1.1rem; border-radius: var(--radius-sm);
  background: var(--glass); border: 1px solid var(--glass-border); margin-bottom: .7rem;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.lb-card:hover { transform: translateX(6px); box-shadow: var(--shadow); }
.lb-rank { width: 42px; height: 42px; flex: none; border-radius: 12px; display: grid; place-items: center;
  font-family: "Sora", sans-serif; font-weight: 800; background: var(--glass-2); color: var(--muted); }
.lb-card.top .lb-rank { background: var(--grad); color: #fff; }
.lb-name { font-weight: 600; }
.lb-score { margin-left: auto; font-family: "Sora", sans-serif; font-weight: 700; color: var(--purple); }

/* ── Results: champion banner + score bars ─────────────────────── */
.champion-banner { position: relative; overflow: hidden; padding: 0; border: 1px solid var(--glass-border); }
.champ-glow { position: absolute; inset: 0; background:
  radial-gradient(600px 200px at 20% 0%, rgba(var(--purple-rgb), .25), transparent 60%),
  radial-gradient(500px 200px at 100% 100%, rgba(var(--cyan-rgb), .22), transparent 60%); }
.champ-inner { position: relative; display: flex; align-items: center; gap: 1.4rem; padding: 1.8rem 2rem; flex-wrap: wrap; }
.champ-trophy { font-size: 3.2rem; animation: float 3s ease-in-out infinite; }
.champ-eyebrow { font-size: .76rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--purple); }
.champ-team { font-family: "Sora", sans-serif; font-weight: 800; font-size: 1.8rem; line-height: 1.1; }
.champ-project { color: var(--muted); }
.champ-tag { margin-top: .4rem; font-weight: 600; }
.champ-score { margin-left: auto; text-align: center; background: var(--grad); color: #fff;
  border-radius: var(--radius); padding: 1rem 1.4rem; box-shadow: 0 10px 30px rgba(var(--purple-rgb), .4); }
.champ-score .cs-num { font-family: "Sora", sans-serif; font-weight: 800; font-size: 2.2rem; line-height: 1; }
.champ-score .cs-unit { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; opacity: .9; }

.score-bars { text-align: left; }
.sb-row { display: flex; align-items: center; gap: .5rem; font-size: .72rem; color: var(--muted); margin-bottom: .25rem; }
.sb-row > span:first-child { width: 70px; flex: none; }
.sb-track { flex: 1; height: 6px; border-radius: 999px; background: var(--glass-2); overflow: hidden; }
.sb-track > span { display: block; height: 100%; background: var(--grad); border-radius: 999px; }
.sb-val { width: 22px; text-align: right; font-weight: 700; color: var(--heading); }
.judge-note { margin-top: .7rem; font-style: italic; font-size: .82rem; color: var(--muted);
  border-left: 2px solid var(--purple); padding-left: .6rem; text-align: left; }
@media (max-width: 575.98px) {
  .champ-inner { padding: 1.4rem; }
  .champ-score { margin-left: 0; width: 100%; }
}

/* ── Community cards ───────────────────────────────────────────── */
.comm-card { text-align: center; padding: 1.8rem 1rem; }
.comm-emoji { font-size: 2.2rem; display: block; margin-bottom: .5rem; }
.comm-card .num { font-family: "Sora", sans-serif; font-weight: 800; font-size: 1.4rem;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

/* ── Hero: opt into the two-column desktop layout at >=992px ──────── */
@media (min-width: 992px) {
  .hero { text-align: left; padding: 3rem 1rem 3.5rem; }
  .hero-grid { grid-template-columns: 1.08fr .92fr; gap: 3rem; }
  .hero-left { align-items: flex-start; }
  .hero-left .hero-title { text-align: left; margin-left: 0; font-size: clamp(2.8rem, 4.5vw, 5rem); }
  .hero-left .hero-subtitle { text-align: left; margin-left: 0; }
  .hero-left .hero-actions, .hero-trust, .social-proof { justify-content: flex-start; }
  .dash-mock { transform: perspective(1500px) rotateY(-8deg) rotateX(5deg); }
  .hero-stage:hover .dash-mock { transform: perspective(1500px) rotateY(-3deg) rotateX(2deg); }
  .hero-orbs { display: block; }
}
/* Floating accent cards only where there's room to pop out without clipping. */
@media (min-width: 1200px) {
  .float-stat { display: flex; }
  .float-chip { display: grid; }
}
@media (max-width: 575.98px) {
  .hero-left .hero-title { font-size: clamp(1.85rem, 8.5vw, 2.35rem); }
  .hero-subtitle { font-size: 1rem; }
  .hero-trust { gap: 1rem; }
  .hero-trust .ht + .ht { padding-left: 1rem; }
  .section { padding-block: 3rem; }
}

/* ── Mobile header: solid full-width bar (no content bleed-through) ── */
@media (max-width: 991.98px) {
  .nav-shell {
    padding: .55rem .7rem;
    background: var(--glass-strong);
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: var(--shadow-sm);
  }
  .nav-pill {
    max-width: 100%;
    background: transparent;
    border: none;
    box-shadow: none;
    backdrop-filter: none; -webkit-backdrop-filter: none;
    padding: .15rem .25rem;
  }
  .nav-pill::after { display: none; }     /* drop the gradient ring on mobile */
  .nav-actions { margin-left: auto; gap: .25rem; }
  .icon-btn { width: 38px; height: 38px; }
  .nav-dropdown { right: .25rem; left: auto; min-width: 240px; }
  .mobile-menu { left: .25rem; right: .25rem; }
}

/* ── Admin tabs ────────────────────────────────────────────────── */
.admin-tabs { gap: .3rem; flex-wrap: wrap; border: none; background: var(--glass);
  padding: .35rem; border-radius: var(--radius-pill); display: inline-flex; box-shadow: var(--shadow-sm); }
.admin-tabs .nav-link { border: none; color: var(--muted); font-weight: 600; font-size: .9rem;
  padding: .5rem 1.1rem; border-radius: var(--radius-pill); }
.admin-tabs .nav-link:hover { color: var(--heading); background: var(--glass-2); }
.admin-tabs .nav-link.active { color: #fff; background: var(--grad); box-shadow: 0 6px 16px rgba(var(--purple-rgb), .3); }

/* ── Evaluation round rail ─────────────────────────────────────── */
.round-rail { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; }
.round-chip { border-radius: var(--radius-sm); padding: 1rem; background: var(--glass-2);
  border: 1px solid var(--hairline); transition: box-shadow .3s var(--ease); }
.round-chip:hover { box-shadow: var(--shadow-sm); }
.round-chip.active { border-color: rgba(var(--purple-rgb), .4); background: var(--grad-soft); }
.round-chip.inactive { opacity: .7; }

/* ── Folder cards (hackathon management) ───────────────────────── */
.folder-card { position: relative; transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.folder-icon { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center;
  background: var(--grad-soft); color: var(--purple); }
.folder-icon [data-lucide] { width: 26px; height: 26px; }
.folder-card .small [data-lucide] { width: 14px; height: 14px; }

/* ── Evaluation criteria builder ───────────────────────────────── */
.crit-list { display: flex; flex-direction: column; gap: .75rem; }
.crit-item { display: grid; grid-template-columns: auto 1fr auto; gap: .9rem; align-items: center;
  padding: .9rem 1rem; border-radius: var(--radius-sm); background: var(--glass-2);
  border: 1px solid var(--hairline); transition: box-shadow .25s var(--ease), transform .25s var(--ease); }
.crit-item:hover { box-shadow: var(--shadow-sm); }
.crit-reorder { display: flex; flex-direction: column; gap: .15rem; }
.crit-arrow { width: 26px; height: 22px; border-radius: 7px; border: 1px solid var(--hairline);
  background: var(--glass-strong); color: var(--muted); cursor: pointer; font-size: .7rem; line-height: 1; padding: 0; transition: all .2s; }
.crit-arrow:hover:not(:disabled) { color: var(--purple); background: var(--grad-soft); }
.crit-arrow:disabled { opacity: .3; cursor: default; }
.crit-reorder form { margin: 0; }
.crit-main { min-width: 0; }
.crit-head { display: flex; align-items: center; gap: .5rem; }
.crit-name { font-weight: 700; font-family: "Sora", sans-serif; }
.crit-desc { margin-top: .2rem; }
.crit-weight { display: flex; align-items: center; gap: .6rem; margin-top: .5rem; }
.crit-weight .meter { flex: 1; max-width: 220px; }
.crit-actions { display: flex; align-items: center; gap: .4rem; }
.crit-actions form { margin: 0; }
.crit-edit { grid-column: 1 / -1; border-top: 1px solid var(--hairline); padding-top: .8rem; margin-top: .2rem; }
@media (max-width: 575.98px) {
  .crit-item { grid-template-columns: auto 1fr; }
  .crit-actions { grid-column: 2; justify-content: flex-start; }
}

/* ── Score breakdown / evaluation ──────────────────────────────── */
.score-badge { font-family: "Sora", sans-serif; font-weight: 700; color: var(--purple);
  background: var(--grad-soft); border-radius: 8px; padding: .1rem .6rem; min-width: 42px; text-align: center; }
.form-range { accent-color: var(--purple); }
.total-box { display: flex; justify-content: space-between; align-items: center; padding: .9rem 1.2rem;
  border-radius: var(--radius-sm); background: var(--grad); color: #fff; font-weight: 600; }
.total-box .total-value { font-family: "Sora", sans-serif; font-size: 1.3rem; font-weight: 800; }

/* ── KPI trend ─────────────────────────────────────────────────── */
.kpi-trend.up { color: #16a34a; } .kpi-trend.down { color: #e11d48; }

/* ── Registration wizard ───────────────────────────────────────── */
.wizard-progress { display: flex; align-items: center; gap: .35rem; flex-wrap: wrap; margin: 1rem 0 1.5rem; }
.wz-dot { display: inline-flex; align-items: center; gap: .5rem; cursor: pointer; }
.wz-dot .wz-num { width: 30px; height: 30px; flex: none; border-radius: 50%; display: grid; place-items: center;
  font-weight: 700; font-size: .85rem; background: var(--glass-2); border: 1px solid var(--hairline); color: var(--muted); transition: all .25s var(--ease); }
.wz-dot .wz-label { font-size: .82rem; color: var(--muted); font-weight: 500; }
.wz-dot.active .wz-num { background: var(--grad); color: #fff; border-color: transparent; box-shadow: 0 6px 16px rgba(var(--purple-rgb), .35); }
.wz-dot.active .wz-label { color: var(--heading); font-weight: 700; }
.wz-dot.done .wz-num { background: rgba(16,185,129,.18); color: #047857; border-color: transparent; }
.wz-dot.done .wz-num::after { content: "✓"; }
.wz-dot.done .wz-num { font-size: 0; }
.wz-dot.done .wz-num::after { font-size: .85rem; }
.wz-line { flex: 1; min-width: 12px; height: 2px; background: var(--hairline); border-radius: 2px; }
@media (max-width: 575.98px) { .wz-dot .wz-label { display: none; } .wz-line { min-width: 8px; } }

/* ── Payment status banner ─────────────────────────────────────── */
.pay-status { border-radius: var(--radius-sm); padding: .8rem 1rem; font-weight: 600; font-size: .92rem; }
.pay-status.pay-approved { background: rgba(16,185,129,.15); color: #047857; }
.pay-status.pay-pending { background: rgba(234,179,8,.16); color: #a16207; }
.pay-status.pay-rejected { background: rgba(225,29,72,.14); color: #be123c; }
.pay-status.pay-none { background: var(--grad-soft); color: var(--purple); }
.form-switch .form-check-input:checked { background-color: var(--purple); border-color: var(--purple); }

/* ── Login badge ───────────────────────────────────────────────── */
.login-badge { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center;
  font-size: 1.5rem; color: #fff; background: var(--grad); box-shadow: 0 10px 26px rgba(var(--purple-rgb), .4); }
.auth-logo { border-radius: 15px; box-shadow: 0 10px 26px rgba(var(--purple-rgb), .38); }

/* ── Email OTP verification ─────────────────────────────────────── */
.otp-wrap { display: flex; justify-content: center; gap: clamp(6px, 2.4vw, 12px); }
.otp-box {
  width: clamp(40px, 13vw, 54px); height: clamp(48px, 15vw, 62px);
  text-align: center; font-family: "Sora", sans-serif; font-weight: 700;
  font-size: clamp(1.15rem, 5vw, 1.5rem); color: var(--heading);
  background: var(--glass-2); border: 1.5px solid var(--hairline);
  border-radius: var(--radius-sm); transition: border-color .15s, box-shadow .15s, background .15s;
  caret-color: var(--purple); -moz-appearance: textfield;
}
.otp-box::-webkit-outer-spin-button, .otp-box::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.otp-box:focus { outline: none; border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(var(--purple-rgb), .22); background: var(--glass-strong); }
.otp-box.filled { border-color: rgba(var(--purple-rgb), .55); background: var(--grad-soft); }

.otp-submit { position: relative; }
.otp-submit .ob-spin { position: absolute; inset: 0; margin: auto; width: 18px; height: 18px; display: none;
  border: 2px solid rgba(255,255,255,.45); border-top-color: #fff; border-radius: 50%; animation: nb-rot .7s linear infinite; }
.otp-submit.is-loading { pointer-events: none; }
.otp-submit.is-loading .ob-label { opacity: 0; }
.otp-submit.is-loading .ob-spin { display: block; }

/* Error state: red boxes + a quick shake to draw the eye (disabled under
   prefers-reduced-motion by the global rule). */
.otp-wrap.otp-error .otp-box { border-color: #ef4444; background: rgba(239,68,68,.08); }
.otp-wrap.otp-error { animation: otp-shake .4s var(--ease); }
@keyframes otp-shake {
  0%,100% { transform: translateX(0); }
  20% { transform: translateX(-7px); } 40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); } 80% { transform: translateX(3px); }
}

.otp-link { background: none; border: 0; padding: 0; cursor: pointer; font-weight: 600;
  color: var(--purple); font-size: .85rem; transition: opacity .2s; }
.otp-link:hover:not(:disabled) { text-decoration: underline; }
.otp-link:disabled { color: var(--muted); cursor: not-allowed; opacity: .7; text-decoration: none; }
.otp-meta { color: var(--muted); }
/* "Check your spam folder" nudge — the single most common reason a code appears
   never to arrive. Set apart from the plain muted text so it reads as guidance. */
.otp-hint { font-size: .78rem; line-height: 1.55; color: var(--muted);
  padding: .6rem .8rem; border-radius: var(--radius-sm);
  background: rgba(124, 92, 255, .06); border: 1px solid rgba(124, 92, 255, .16); }
.otp-hint strong { color: var(--text); font-weight: 600; }

/* Unverified banner on the login page */
.verify-alert { display: flex; gap: .8rem; padding: 1rem 1.1rem; border-radius: var(--radius-sm);
  background: rgba(245, 158, 11, .1); border: 1px solid rgba(245, 158, 11, .35); }
.verify-alert .va-icon { flex: none; width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
  background: rgba(245, 158, 11, .18); color: #d97706; }
.verify-alert .va-body { min-width: 0; font-size: .9rem; }
.verify-alert .va-body p { margin: .15rem 0 0; color: var(--muted); font-size: .85rem; }
.verify-alert .va-actions { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
[data-theme="dark"] .verify-alert .va-icon { color: #fbbf24; }

/* ── Testimonials ──────────────────────────────────────────────── */
.quote-card { height: 100%; }
.quote-card .quote-mark { font-family: "Sora", sans-serif; font-size: 2.4rem; line-height: .6;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.quote-card .who { display: flex; align-items: center; gap: .7rem; margin-top: 1rem; }
.quote-card .ava { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  color: #fff; font-weight: 700; background: var(--grad); flex: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ===== Results showcase ===== */
/* Initials avatars */
.av { width: 38px; height: 38px; border-radius: 50%; display: inline-grid; place-items: center;
  font-size: .82rem; font-weight: 700; color: #fff; border: 2px solid var(--bg);
  background: linear-gradient(135deg, hsl(var(--av-h,260deg) 70% 58%), hsl(calc(var(--av-h,260deg) + 40deg) 75% 50%));
  flex: 0 0 auto; }
.av-lg { width: 56px; height: 56px; font-size: 1.1rem; }
.av-stack { display: inline-flex; }
.av-stack .av { margin-left: -10px; }
.av-stack .av:first-child { margin-left: 0; }
.av-more { background: var(--glass-2); color: var(--muted); }

.chip { display: inline-flex; align-items: center; padding: .25rem .7rem; border-radius: 999px;
  font-size: .76rem; font-weight: 600; background: var(--glass-2); color: var(--text); border: 1px solid var(--hairline); }
.chip-on-media { position: absolute; top: .7rem; left: .7rem; background: rgba(10,12,24,.55); color: #fff; border: none; backdrop-filter: blur(6px); }
.badge-latest { display: inline-flex; align-items: center; padding: .25rem .7rem; border-radius: 999px;
  font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #fff; background: var(--grad); }

.results-filters .form-label { color: var(--muted); }

/* Latest result hero */
.result-hero { display: grid; grid-template-columns: 1.1fr 1fr; overflow: hidden; padding: 0; }
.result-hero-media { position: relative; min-height: 320px; }
.result-hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.result-hero-media .scrim { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5,8,20,.1), rgba(5,8,20,.5)); }
.result-hero-body { padding: 2rem; display: flex; flex-direction: column; justify-content: center; }
.rh-title { font-family: "Sora", sans-serif; font-weight: 800; font-size: 1.8rem; margin: .2rem 0 .4rem; }
.rh-congrats { color: var(--muted); margin-bottom: 1rem; }
.rh-stats { display: flex; gap: 1.6rem; }
.rh-stats > div { display: flex; flex-direction: column; }
.rh-stats strong { font-size: 1.5rem; font-family: "Sora", sans-serif; }
.rh-stats span { font-size: .78rem; color: var(--muted); }
.rh-stats-col { flex-direction: column; gap: 1rem; }
.rh-stats-col > div { flex-direction: row; align-items: baseline; justify-content: space-between; }

/* Winner cards */
.winner-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.winner-card { background: var(--glass); border: 1px solid var(--hairline); border-radius: var(--radius);
  padding: 1.4rem; backdrop-filter: blur(12px); position: relative; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.winner-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.winner-1 { border-color: rgba(var(--purple-rgb), .55); box-shadow: 0 0 0 1px rgba(var(--purple-rgb), .25), var(--shadow-lg); }
.wc-rankbar { display: flex; align-items: center; gap: .5rem; margin-bottom: 1rem; }
.wc-medal { font-size: 1.5rem; }
.wc-rank { font-weight: 700; font-family: "Sora", sans-serif; }
.wc-score { margin-left: auto; font-weight: 800; font-family: "Sora", sans-serif; font-size: 1.2rem; color: var(--purple); }
.wc-score small { font-size: .6rem; color: var(--muted); font-weight: 600; }
.wc-team { display: flex; align-items: center; gap: .8rem; margin-bottom: .9rem; }
.wc-team-name { font-weight: 700; font-size: 1.05rem; }
.wc-members { margin-top: .3rem; }
.wc-project { border-top: 1px solid var(--hairline); padding-top: .8rem; }
.wc-proj-title { font-weight: 600; }
.wc-tech { font-size: .76rem; color: var(--muted); margin-bottom: .3rem; }
.wc-desc { font-size: .84rem; color: var(--muted); margin-bottom: 0; }
.wc-note { margin-top: .8rem; font-style: italic; color: var(--muted); font-size: .85rem; }

/* Premium winner card upgrades */
.winner-card { position: relative; overflow: hidden; }
.winner-card::after { /* soft top sheen */
  content: ""; position: absolute; inset: 0 0 auto 0; height: 60%; pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,.10), transparent); opacity: .6; }
.winner-1 { transform: translateY(-6px) scale(1.015); animation: champ-aura 3.6s ease-in-out infinite; }
@keyframes champ-aura {
  0%, 100% { box-shadow: 0 0 0 1px rgba(var(--purple-rgb), .3), 0 22px 55px rgba(var(--purple-rgb), .34); }
  50% { box-shadow: 0 0 0 1px rgba(245, 158, 11, .45), 0 26px 75px rgba(245, 158, 11, .40); }
}
/* Victory shimmer sweep across the champion card */
.winner-1 .wc-team::before {
  content: ""; position: absolute; top: 0; left: -60%; width: 45%; height: 100%; z-index: 1; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.35), transparent);
  transform: skewX(-20deg); animation: champ-sweep 4.5s ease-in-out infinite; }
@keyframes champ-sweep { 0%, 60% { left: -60%; } 85%, 100% { left: 160%; } }
.winner-1::before { /* champion gradient ribbon */
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 5px;
  background: linear-gradient(120deg, #f59e0b, #fbbf24, #f59e0b); z-index: 2; }
/* Silver / bronze tier accents */
.wc-rank-2 { border-color: rgba(148, 163, 184, .5); }
.wc-rank-2::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(120deg, #94a3b8, #e2e8f0, #94a3b8); z-index: 2; }
.wc-rank-3 { border-color: rgba(180, 83, 9, .45); }
.wc-rank-3::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(120deg, #b45309, #f59e0b, #b45309); z-index: 2; }
.wc-crown { position: absolute; top: 6px; right: 16px; font-size: 1.5rem; z-index: 3;
  animation: float 3s ease-in-out infinite; filter: drop-shadow(0 6px 10px rgba(245,158,11,.45)); }
.wc-rank-1 .wc-medal { display: inline-block; transform-origin: center bottom; animation: trophy-bounce 2.6s ease-in-out infinite; }
@keyframes trophy-bounce { 0%,100%{ transform: translateY(0) rotate(0); } 25%{ transform: translateY(-4px) rotate(-7deg); } 75%{ transform: translateY(-4px) rotate(7deg); } }
.wc-badge { display: inline-flex; align-items: center; gap: .3rem; font-size: .72rem; font-weight: 700;
  letter-spacing: .02em; padding: .3rem .75rem; border-radius: 999px; margin-bottom: 1rem;
  background: var(--glass-2); color: var(--muted); border: 1px solid var(--hairline); }
.wc-badge-1 { background: linear-gradient(120deg, #f59e0b, #fbbf24); color: #3a2400; border-color: transparent;
  box-shadow: 0 6px 18px rgba(245,158,11,.35); }
.wc-badge-2 { background: linear-gradient(120deg, #94a3b8, #cbd5e1); color: #1f2430; border-color: transparent; }
.wc-badge-3 { background: linear-gradient(120deg, #b45309, #d97706); color: #fff; border-color: transparent; }
.winner-card:hover { transform: translateY(-8px) scale(1.01); }
.winner-1:hover { transform: translateY(-10px) scale(1.01); }
/* Count-aware layout so 1–2 winners stay centered instead of stranded in a 3-col grid */
.winner-grid.wg-1 { grid-template-columns: minmax(300px, 460px); justify-content: center; }
.winner-grid.wg-2 { grid-template-columns: repeat(2, minmax(260px, 380px)); justify-content: center; }

/* Count-aware podium centering (detail page) */
.podium.pod-1 { grid-template-columns: minmax(240px, 340px); justify-content: center; }
.podium.pod-1 .podium-1 { transform: none; }
.podium.pod-2 { grid-template-columns: repeat(2, minmax(200px, 300px)); justify-content: center; }
.podium.pod-2 .podium-1 { transform: translateY(-12px); }

/* Archive grid */
.archive-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.archive-card { display: block; overflow: hidden; padding: 0; text-decoration: none; color: inherit;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.archive-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); color: inherit; }
.archive-media { position: relative; height: 150px; overflow: hidden; }
.archive-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.archive-card:hover .archive-media img { transform: scale(1.07); }
.archive-media .scrim { position: absolute; inset: 0; background: linear-gradient(180deg, transparent, rgba(5,8,20,.45)); }
.archive-media::after { content: ""; position: absolute; top: 0; left: -70%; width: 45%; height: 100%; z-index: 2;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.4), transparent); transform: skewX(-20deg);
  transition: left .7s var(--ease); }
.archive-card:hover .archive-media::after { left: 130%; }
.archive-body { padding: 1.1rem; }
.archive-title { font-weight: 700; font-family: "Sora", sans-serif; margin-bottom: .25rem; }
.archive-meta { font-size: .78rem; color: var(--muted); }
.archive-winner { display: flex; align-items: center; gap: .5rem; margin-top: .7rem; font-size: .88rem; }

/* Premium empty state */
.results-empty { padding: 3.5rem 1rem; }
.results-empty-art { font-size: 4rem; filter: drop-shadow(0 10px 20px rgba(var(--purple-rgb), .3)); }

@media (max-width: 900px) {
  .winner-grid, .archive-grid { grid-template-columns: 1fr 1fr; }
  .winner-grid.wg-1 { grid-template-columns: minmax(0, 460px); }
  .winner-grid.wg-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .result-hero { grid-template-columns: 1fr; }
  .result-hero-media { min-height: 200px; }
}
@media (max-width: 600px) {
  .winner-grid, .archive-grid,
  .winner-grid.wg-1, .winner-grid.wg-2 { grid-template-columns: 1fr; }
  .podium.pod-1, .podium.pod-2 { grid-template-columns: 1fr; }
  .podium.pod-2 .podium-1 { transform: none; }
  .rh-stats { gap: 1.1rem; }
}
