/* ══ FLA v4.5 design system — tokens / fonts / utilities / components ══ */
@font-face { font-family: 'Inter'; src: url('/assets/fonts/Inter.woff2') format('woff2'); font-weight: 100 900; font-display: swap; font-style: normal; }
@font-face { font-family: 'Space Grotesk'; src: url('/assets/fonts/SpaceGrotesk.woff2') format('woff2'); font-weight: 300 700; font-display: swap; font-style: normal; }

:root {
  --font-sans: 'Inter', -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Space Grotesk', 'Inter', -apple-system, sans-serif;
  /* brand scale */
  --brand-50: #eef2ff; --brand-100: #e0e7ff; --brand-500: #4f46e5; --brand-600: #4338ca; --brand-700: #3730a3; --brand-900: #1e1b4b;
  /* medals / accents */
  --gold: #eab308; --silver: #94a3b8; --bronze: #b45309;
  --accent-ai: #a855f7; --accent-vote: #3b82f6; --accent-success: #059669;
  /* spacing */
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-6: 24px; --sp-8: 32px; --sp-10: 40px; --sp-12: 48px; --sp-16: 64px;
  /* radii */
  --radius-sm: 6px; --radius-md: 12px; --radius-lg: 18px; --radius-xl: 28px;
  /* shadows */
  --shadow-sm: 0 1px 3px rgba(15,23,42,.06);
  --shadow-lg: 0 12px 32px rgba(15,23,42,.12);
  --shadow-xl: 0 20px 48px rgba(30,27,75,.18);
  --shadow-brand: 0 8px 28px rgba(79,70,229,.28);
  /* motion */
  --ease-out: cubic-bezier(.16,1,.3,1);
  --ease-spring: cubic-bezier(.34,1.56,.64,1);
  --dur-fast: 120ms; --dur: 220ms; --dur-slow: 400ms;
}
body { font-family: var(--font-sans); font-feature-settings: 'cv02','cv03','cv04','cv11'; -webkit-font-smoothing: antialiased; }
h1,h2,h3,.font-display { font-family: var(--font-display); letter-spacing: -.02em; line-height: 1.1; }
h1 { font-size: clamp(2.2rem, 5.4vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }

/* ─── utilities ─── */
.u-eyebrow { color: var(--brand-500); font-weight: 700; text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; margin: 0 0 10px; }
.u-hero { position: relative; overflow: hidden; border-radius: var(--radius-xl); margin: 0 0 var(--sp-8); color: #fff; min-height: 420px; display: flex; flex-direction: column; justify-content: center; text-align: center;
  background: linear-gradient(rgba(15,23,42,.72), rgba(30,27,75,.86)), var(--hero-bg, none) center/cover; }
.u-hero::before { content:''; position:absolute; inset:0; background: radial-gradient(ellipse at 50% 110%, rgba(234,179,8,.22), transparent 55%); pointer-events:none; }
.u-hero h1 { text-shadow: 0 3px 18px rgba(0,0,0,.45); margin: 6px 0 10px; }
.u-hero .sub { color: #cbd5e1; font-size: 1.15rem; max-width: 640px; margin: 0 auto; }
.u-hero .cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 26px; }
.u-hero .btn-outline { border-color: rgba(255,255,255,.7); color: #fff; }
.u-hero .btn-quiet { color: #cbd5e1; }
.u-hero-bg--home { --hero-bg: url('/assets/img/generated/hero-stage.webp'); }
.u-hero-bg--crowd { --hero-bg: url('/assets/img/generated/crowd.webp'); }
.u-hero-bg--score { --hero-bg: url('/assets/img/generated/about-scoring.webp'); }
.u-hero-bg--hall  { --hero-bg: url('/assets/img/generated/hall-of-fame.webp'); }
.u-hero-bg--speakers { --hero-bg: url('/assets/img/generated/speakers-stage.webp'); }
.u-hero-bg--login { --hero-bg: url('/assets/img/generated/login-abstract.webp'); }

/* stat strip */
.stat-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin: var(--sp-8) 0; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px 20px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.stat::after { content:''; position:absolute; top:0; left:0; right:0; height:3px; background: var(--bar, var(--brand-500)); }
.stat .n { font-size: 1.9rem; font-weight: 800; font-family: var(--font-display); line-height: 1.1; }
.stat .l { color: var(--muted); font-size: .85rem; margin-top: 2px; }
.stat--brand { --bar: var(--brand-500); } .stat--gold { --bar: var(--gold); } .stat--ai { --bar: var(--accent-ai); } .stat--vote { --bar: var(--accent-vote); } .stat--success { --bar: var(--accent-success); }

/* section header */
.sec-head { margin: var(--sp-10) 0 var(--sp-5); }
.sec-head h2 { margin: 0; }
.sec-head p { color: var(--muted); margin: 6px 0 0; max-width: 640px; }

/* feature / category cards v2 */
.f-card { position: relative; overflow: hidden; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out), border-color var(--dur); }
.f-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--brand-500) 55%, transparent); text-decoration: none; }
.f-card .f-icon { width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center; color: #fff; margin-bottom: 14px; background: var(--f-tint, var(--brand-500)); box-shadow: var(--shadow-brand); }
.f-card[data-tint="ai"] { --f-tint: var(--accent-ai); } .f-card[data-tint="vote"] { --f-tint: var(--accent-vote); } .f-card[data-tint="gold"] { --f-tint: #d97706; } .f-card[data-tint="success"] { --f-tint: var(--accent-success); }
.f-card h3 { margin: 0 0 6px; }

/* category card with realistic image rail */
.cat-card { display: grid; grid-template-columns: 1fr 120px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; min-height: 132px; transition: transform var(--dur), box-shadow var(--dur), border-color var(--dur); }
.cat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--brand-500); text-decoration: none; }
.cat-card .cat-body { padding: 16px 18px; }
.cat-card .cat-img { background: var(--cat-img, none) center/cover; min-height: 100%; }
.cat-card .cat-title { font-weight: 700; font-family: var(--font-display); font-size: 1.05rem; }

/* timeline */
.timeline { position: relative; margin: var(--sp-6) 0; padding: 0; list-style: none; }
.timeline::before { content:''; position: absolute; left: 23px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--brand-500), var(--accent-ai), var(--accent-vote), var(--accent-success), var(--gold)); border-radius: 2px; }
.timeline li { position: relative; padding: 0 0 26px 64px; counter-increment: step; }
.timeline li:last-child { padding-bottom: 0; }
.timeline .t-num { position: absolute; left: 0; top: 0; width: 48px; height: 48px; border-radius: 50%; background: var(--card); border: 2px solid var(--brand-500); color: var(--brand-500); font-weight: 800; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); box-shadow: var(--shadow); }
.timeline .t-title { font-weight: 700; }

/* buttons v2 */
.btn { transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast), opacity var(--dur-fast); }
.btn:active { transform: scale(.97); }
.btn-gold { background: linear-gradient(135deg, #f59e0b, #d97706); color: #1c1005; }
.btn-block { display: block; width: 100%; text-align: center; }
.btn-lg { padding: 14px 26px; font-size: 1.05rem; }

/* featured event card */
.featured-event { display: grid; grid-template-columns: 1.2fr 1fr; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-lg); }
.featured-event .fe-body { padding: 30px 28px; }
.featured-event .fe-media { background: var(--fe-bg, none) center/cover; min-height: 260px; position: relative; }
.featured-event .fe-media::after { content:''; position:absolute; inset:0; background: linear-gradient(90deg, var(--card), transparent 40%); }
@media (max-width: 800px) { .featured-event { grid-template-columns: 1fr; } .featured-event .fe-media::after { display:none; } }

/* footer v2 — 4 columns */
.site-footer { background: var(--card); border-top: 1px solid var(--line); padding: 40px 0 26px; margin-top: var(--sp-12); position: relative; overflow: hidden; }
.site-footer::before { content:''; position:absolute; inset:0; background: url('/assets/img/generated/footer-texture.webp') center/cover; opacity:.05; pointer-events:none; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 28px; position: relative; }
.foot-grid h4 { margin: 0 0 10px; font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink); }
.foot-grid ul { list-style: none; margin: 0; padding: 0; }
.foot-grid li { margin: 6px 0; }
.foot-grid a { color: var(--muted); }
.foot-grid a:hover { color: var(--brand-500); }
.foot-bottom { border-top: 1px solid var(--line); margin-top: 26px; padding-top: 16px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: .82rem; color: var(--muted); }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } }

/* admin grouped nav */
.nav-group { display: grid; gap: 2px; }
.nav-group-label { color: #64748b; font-size: .68rem; text-transform: uppercase; letter-spacing: .12em; padding: 14px 12px 4px; font-weight: 700; }
.nav-group:first-child .nav-group-label { padding-top: 0; }

/* page fade-in */
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.fade-up { animation: fadeUp .5s var(--ease-out) both; }
.fade-up.d1 { animation-delay: .08s; } .fade-up.d2 { animation-delay: .16s; } .fade-up.d3 { animation-delay: .24s; } .fade-up.d4 { animation-delay: .32s; }
body { animation: fadeUp .3s var(--ease-out); }

/* status colors */
.status-chip { text-transform: capitalize; }
.status-chip[data-status="draft"] { background: var(--line); color: var(--muted); }
.status-chip[data-status="announced"] { background: #eff6ff; color: #1d4ed8; }
.status-chip[data-status="registration_open"] { background: #fef3c7; color: #92400e; }
.status-chip[data-status="live"] { background: #e0f2fe; color: #0369a1; }
.status-chip[data-status="voting_open"] { background: #f5f3ff; color: #6d28d9; }
.status-chip[data-status="judging"] { background: #cffafe; color: #155e75; }
.status-chip[data-status="finished"] { background: #dcfce7; color: #166534; }

/* icon inline */
.icon { width: 1.25em; height: 1.25em; vertical-align: -0.25em; }

/* ═══════════════════════════════════════════════════════════
   FLA Event & Awards Platform — Complete UI Pack v3.5.0
   Dark/light mode · toasts · badges · skeletons · tooltips
   Mobile tabs · breadcrumbs · empty states · animations
   ═══════════════════════════════════════════════════════════ */

:root {
  --brand: #4f46e5;
  --ink: #17202a;
  --muted: #64748b;
  --bg: #f5f7fb;
  --card: #ffffff;
  --line: #e2e8f0;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(15, 23, 42, .07);
  --success: #059669;
  --warning: #d97706;
  --danger: #dc2626;
  --info: #2563eb;
  --toast-bg: #0f172a;
  --toast-text: #f1f5f9;
  --skel: #e2e8f0;
  --skel-shine: #f8fafc;
}

[data-theme="dark"] {
  --ink: #e2e8f0;
  --muted: #94a3b8;
  --bg: #0f172a;
  --card: #1e293b;
  --line: #334155;
  --shadow: 0 6px 24px rgba(0, 0, 0, .4);
  --skel: #334155;
  --skel-shine: #475569;
  --toast-bg: #f1f5f9;
  --toast-text: #0f172a;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg); color: var(--ink); line-height: 1.55;
  transition: background .2s ease, color .2s ease;
}
.container { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.main { padding: 32px 20px 80px; min-height: 60vh; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
code, .mono { font-family: "DejaVu Sans Mono", ui-monospace, monospace; font-size: .92em; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.center { text-align: center; }
.flex { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.spread { justify-content: space-between; }
.mt { margin-top: 18px; } .mb { margin-bottom: 18px; }
.hidden { display: none !important; }

/* ─── Header ─── */
.site-header { background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.header-inner { display: flex; align-items: center; gap: 16px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; font-size: 1.1rem; }
.brand:hover { text-decoration: none; }
.brand-mark { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 10px; background: var(--brand); color: #fff; font-weight: 800; }
.brand-mark img { width: 100%; height: 100%; border-radius: 10px; object-fit: cover; }
.site-nav { margin-left: auto; display: flex; gap: 18px; align-items: center; }
.site-nav a { color: var(--ink); font-weight: 500; padding: 6px 2px; border-bottom: 2px solid transparent; }
.site-nav a.active { color: var(--brand); border-bottom-color: var(--brand); }
.site-nav a:hover { text-decoration: none; color: var(--brand); }
.nav-toggle { display: none; margin-left: auto; font-size: 1.3rem; background: none; border: 0; cursor: pointer; color: var(--ink); }

/* ─── Theme toggle ─── */
.theme-toggle { background: none; border: 1px solid var(--line); border-radius: 10px; padding: 6px 10px; cursor: pointer; font-size: 1.1rem; color: var(--ink); transition: transform .1s ease; }
.theme-toggle:hover { transform: scale(1.1); }

/* ─── Notification badge ─── */
.notif-dot { position: absolute; top: -4px; right: -6px; background: var(--danger); color: #fff; font-size: .7rem; font-weight: 700; min-width: 18px; height: 18px; border-radius: 9px; display: flex; align-items: center; justify-content: center; padding: 0 4px; }
.nav-item { position: relative; }

/* ─── Buttons ─── */
.btn { display: inline-block; padding: 11px 20px; border-radius: 10px; font-weight: 600; border: 1px solid transparent; cursor: pointer; transition: transform .06s ease, opacity .15s; text-decoration: none; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-outline { border-color: var(--brand); color: var(--brand); background: transparent; }
.btn-quiet { background: transparent; color: var(--muted); border-color: var(--line); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-success { background: var(--success); color: #fff; }
.btn.small { padding: 5px 10px; font-size: .85rem; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.pill { display: inline-block; background: color-mix(in srgb, var(--brand) 10%, transparent); color: var(--brand); font-size: .75rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; text-transform: uppercase; letter-spacing: .06em; }

/* ─── Cards & panels ─── */
.grid { display: grid; gap: 16px; margin: 28px 0; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 16px; margin: 28px 0; }
.card, .panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.card h3 { margin-top: 0; }
a.card { color: inherit; display: block; }
a.card:hover { text-decoration: none; border-color: var(--brand); }
.panel { margin: 28px 0; }

/* ─── Hero ─── */
.hero { text-align: center; padding: 56px 16px 40px; }
.hero.slim { padding: 24px 16px 8px; }
.hero h1 { font-size: clamp(2rem, 5vw, 3rem); margin: 8px 0; letter-spacing: -.02em; }
.hero-kicker { color: var(--brand); font-weight: 700; text-transform: uppercase; font-size: .8rem; letter-spacing: .12em; }
.hero-sub { font-size: 1.15rem; color: var(--muted); max-width: 560px; margin: 0 auto; }
.hero-actions { display: flex; gap: 12px; justify-content: center; margin-top: 26px; flex-wrap: wrap; }

/* ─── Countdown ─── */
.countdown { display: flex; gap: 12px; justify-content: center; margin: 20px 0; }
.countdown .cd-unit { text-align: center; background: var(--card); border: 2px solid var(--brand); border-radius: var(--radius); padding: 12px 16px; min-width: 80px; }
.countdown .cd-num { font-size: 2rem; font-weight: 800; color: var(--brand); line-height: 1; }
.countdown .cd-label { font-size: .75rem; color: var(--muted); text-transform: uppercase; margin-top: 4px; }

/* ─── Badges & chips ─── */
.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; background: color-mix(in srgb, var(--brand) 12%, transparent); color: var(--brand); }
.badge.green { background: #dcfce7; color: #166534; }
.badge.red { background: #fee2e2; color: #991b1b; }
.badge.amber { background: #fef3c7; color: #92400e; }
.badge.gray { background: var(--line); color: var(--muted); }
[data-theme="dark"] .badge.green { background: #064e3b; color: #34d399; }
[data-theme="dark"] .badge.red { background: #7f1d1d; color: #f87171; }
[data-theme="dark"] .badge.amber { background: #78350f; color: #fbbf24; }
.chip { display: inline-block; padding: 4px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: .85rem; background: var(--card); }
.chip.active { background: var(--brand); color: #fff; border-color: var(--brand); }

/* ─── Forms ─── */
.form { display: grid; gap: 14px; text-align: left; margin: 18px 0; }
.form label { font-weight: 600; display: grid; gap: 6px; font-size: .95rem; }
.form input[type="text"], .form input[type="email"], .form input[type="password"],
.form input[type="number"], .form input[type="date"], .form input[type="color"],
.form input[type="url"], .form select, .form textarea {
  padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font: inherit; width: 100%; background: var(--card); color: var(--ink);
}
.form textarea { min-height: 96px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form .check { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.form .check input { width: auto; }
.form-hint { font-size: .82rem; color: var(--muted); font-weight: 400; }
input[type="file"] { font: inherit; }

/* ─── Alerts ─── */
.alert { border-radius: 10px; padding: 10px 14px; margin: 10px 0; border: 1px solid; }
.alert.error { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.alert.ok, .alert.success { background: #f0fdf4; border-color: #bbf7d0; color: #166534; }
.alert.info { background: #eff6ff; border-color: #bfdbfe; color: #1e40af; }
[data-theme="dark"] .alert.error { background: #450a0a; border-color: #991b1b; color: #fca5a5; }
[data-theme="dark"] .alert.ok { background: #052e16; border-color: #166534; color: #86efac; }
[data-theme="dark"] .alert.info { background: #0c1a3a; border-color: #1e40af; color: #93c5fd; }

/* ─── Tables ─── */
.data-table { width: 100%; border-collapse: collapse; background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); font-size: .95rem; }
.data-table th, .data-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.data-table th { background: color-mix(in srgb, var(--muted) 8%, var(--card)); font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.data-table tr:last-child td { border-bottom: 0; }
.table-wrap-scroll { overflow-x: auto; }

/* ─── KPI cards ─── */
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin: 18px 0; }
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); position: relative; }
.kpi .kpi-value { font-size: 1.7rem; font-weight: 800; line-height: 1.1; }
.kpi .kpi-label { color: var(--muted); font-size: .85rem; margin-top: 4px; }
.kpi .kpi-trend { font-size: .8rem; margin-top: 4px; }
.kpi .kpi-trend.up { color: var(--success); }
.kpi .kpi-trend.down { color: var(--danger); }
.kpi .kpi-tip { position: absolute; top: 8px; right: 10px; color: var(--muted); font-size: .75rem; cursor: help; }

/* ─── Sparklines ─── */
.sparkline { width: 100%; height: 32px; margin-top: 6px; }

/* ─── Admin shell ─── */
.admin-body { background: var(--bg); }
.admin-shell { display: grid; grid-template-columns: 230px 1fr; min-height: 100vh; }
.admin-side { background: #0f172a; color: #cbd5e1; padding: 20px 14px; display: flex; flex-direction: column; gap: 18px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.admin-brand { color: #fff; display: flex; gap: 10px; align-items: center; font-weight: 700; }
.admin-brand:hover { text-decoration: none; }
.admin-nav { display: grid; gap: 2px; }
.admin-nav a { color: #cbd5e1; padding: 8px 12px; border-radius: 8px; font-size: .92rem; }
.admin-nav a:hover { background: #1e293b; text-decoration: none; color: #fff; }
.admin-nav a.active { background: var(--brand); color: #fff; }
.admin-side-foot { margin-top: auto; font-size: .85rem; }
.admin-side-foot a { color: #94a3b8; }
.admin-main { padding: 26px; max-width: 1200px; width: 100%; }

/* ─── Breadcrumbs ─── */
.breadcrumb { display: flex; gap: 8px; align-items: center; margin: 0 0 16px; font-size: .85rem; color: var(--muted); flex-wrap: wrap; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb .sep { opacity: .5; }
.breadcrumb .current { color: var(--ink); font-weight: 600; }

/* ─── Filters ─── */
.filterbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; margin: 14px 0 18px; padding: 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.filterbar label { font-size: .8rem; color: var(--muted); display: grid; gap: 4px; font-weight: 600; }
.filterbar input, .filterbar select { padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; font: inherit; background: var(--card); color: var(--ink); }

/* ─── Skeletons ─── */
.skel { position: relative; overflow: hidden; background: var(--skel); border-radius: 8px; }
.skel::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, var(--skel-shine), transparent); animation: shimmer 1.5s infinite; }
@keyframes shimmer { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
.skel-card { height: 120px; border-radius: var(--radius); }
.skel-line { height: 16px; margin: 8px 0; }
.skel-line.w-60 { width: 60%; } .skel-line.w-40 { width: 40%; } .skel-line.w-80 { width: 80%; }
.skel-kpi { height: 90px; border-radius: var(--radius); }

/* ─── Toasts ─── */
#toast-container { position: fixed; bottom: 20px; right: 20px; z-index: 999; display: flex; flex-direction: column; gap: 8px; max-width: 360px; }
.toast { background: var(--toast-bg); color: var(--toast-text); padding: 12px 16px; border-radius: 12px; box-shadow: 0 8px 30px rgba(0,0,0,.3); display: flex; align-items: center; gap: 10px; font-size: .92rem; animation: toastIn .3s ease; }
.toast.success { border-left: 4px solid var(--success); }
.toast.error { border-left: 4px solid var(--danger); }
.toast.info { border-left: 4px solid var(--info); }
.toast.warning { border-left: 4px solid var(--warning); }
.toast .toast-close { background: none; border: none; color: inherit; cursor: pointer; font-size: 1rem; padding: 0 0 0 8px; opacity: .7; }
@keyframes toastIn { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes toastOut { from { transform: translateY(0); opacity: 1; } to { transform: translateY(10px); opacity: 0; } }
.toast.leaving { animation: toastOut .3s ease forwards; }

/* ─── Empty states ─── */
.empty { text-align: center; color: var(--muted); padding: 48px 20px; background: var(--card); border-radius: var(--radius); border: 2px dashed var(--line); }
.empty .empty-icon { font-size: 3rem; margin-bottom: 8px; opacity: .5; }
.empty .empty-title { font-weight: 700; color: var(--ink); margin: 8px 0 4px; font-size: 1.05rem; }
.empty .empty-hint { font-size: .9rem; max-width: 400px; margin: 0 auto 12px; }

/* ─── Tooltips ─── */
[data-tip] { position: relative; }
[data-tip]::after {
  content: attr(data-tip);
  position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%);
  background: #0f172a; color: #f1f5f9; padding: 6px 10px; border-radius: 8px;
  font-size: .78rem; white-space: nowrap; max-width: 280px; overflow: hidden; text-overflow: ellipsis;
  opacity: 0; pointer-events: none; transition: opacity .15s ease; z-index: 100;
}
[data-tip]:hover::after { opacity: 1; }

/* ─── Search autocomplete ─── */
.search-suggest { position: absolute; top: 100%; left: 0; right: 0; background: var(--card); border: 1px solid var(--line); border-radius: 0 0 12px 12px; box-shadow: var(--shadow); z-index: 50; max-height: 320px; overflow-y: auto; }
.search-suggest .sug-group { padding: 6px 12px; font-size: .72rem; font-weight: 700; text-transform: uppercase; color: var(--muted); background: color-mix(in srgb, var(--muted) 6%, var(--card)); }
.search-suggest .sug-item { padding: 8px 14px; font-size: .9rem; cursor: pointer; }
.search-suggest .sug-item:hover { background: color-mix(in srgb, var(--brand) 6%, var(--card)); }
.search-suggest .sug-item .sub { font-size: .8rem; color: var(--muted); }

/* ─── Live vote counter ─── */
.live-vote-count { font-size: 1.6rem; font-weight: 800; transition: all .3s ease; }
.live-vote-count.pulse { transform: scale(1.15); color: var(--success); }
.live-indicator { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; color: var(--danger); font-weight: 700; }
.live-indicator .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--danger); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .3; } }

/* ─── Anomaly dashboard ─── */
.anomaly-card { border-left: 4px solid var(--danger); }
.anomaly-card.warn { border-left-color: var(--warning); }
.anomaly-card.ok { border-left-color: var(--success); }
.heat-row { display: grid; grid-template-columns: 80px 1fr 60px; gap: 10px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: .88rem; }
.heat-bar { height: 20px; border-radius: 10px; background: linear-gradient(90deg, var(--success), var(--warning), var(--danger)); opacity: .8; }

/* ─── Comparison view ─── */
.compare-table { width: 100%; border-collapse: collapse; }
.compare-table th { text-align: center; padding: 12px; background: color-mix(in srgb, var(--brand) 6%, var(--card)); }
.compare-table td { text-align: center; padding: 10px; border: 1px solid var(--line); }
.compare-table td.label { text-align: left; font-weight: 600; color: var(--muted); width: 160px; }
.compare-table .winner-cell { background: color-mix(in srgb, var(--success) 10%, transparent); }

/* ─── Mobile bottom tabs ─── */
.mobile-tabs { display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 90; background: var(--card); border-top: 1px solid var(--line); padding: 8px 0 max(8px, env(safe-area-inset-bottom)); }
.mobile-tabs .tab-grid { display: grid; grid-template-columns: repeat(5, 1fr); max-width: 480px; margin: 0 auto; }
.mobile-tabs a { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: .78rem; font-weight: 500; color: var(--muted); text-decoration: none; padding: 7px 4px; min-height: 44px; justify-content: center; }
.mobile-tabs a.active { color: var(--brand); }
.mobile-tabs a .tab-icon { font-size: 1.3rem; }

/* ─── Docs viewer ─── */
.docs-group { margin: 30px 0 4px; font-size: 1.15rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.doc-card h3 { margin-bottom: 6px; }
.docs-layout { display: grid; grid-template-columns: 1fr 240px; gap: 28px; align-items: start; }
.docs-content { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); overflow-wrap: break-word; }
.docs-content h1 { margin-top: 0; font-size: 1.7rem; }
.docs-content h2 { border-bottom: 1px solid var(--line); padding-bottom: 6px; margin-top: 34px; }
.docs-content h3 { margin-top: 26px; }
.docs-content pre { background: #0f172a; color: #e2e8f0; padding: 14px; border-radius: 10px; overflow-x: auto; }
.docs-content pre.mermaid { background: var(--card); color: inherit; text-align: center; border: 1px dashed var(--line); }
.docs-content code:not(pre code) { background: color-mix(in srgb, var(--muted) 10%, transparent); padding: 2px 6px; border-radius: 6px; }
.table-wrap { overflow-x: auto; margin: 14px 0; }
table { border-collapse: collapse; width: 100%; font-size: .95rem; }
th, td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
th { background: color-mix(in srgb, var(--muted) 8%, var(--card)); }
.docs-content blockquote { border-left: 3px solid var(--brand); margin: 14px 0; padding: 8px 14px; background: color-mix(in srgb, var(--brand) 4%, transparent); }
.docs-content img { max-width: 100%; }
.docs-toc { position: sticky; top: 76px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; font-size: .9rem; max-height: 80vh; overflow: auto; }
.docs-toc .toc-title { font-weight: 700; margin: 4px 0 10px; }
.docs-toc ul { list-style: none; margin: 0; padding: 0; }
.docs-toc li { margin: 6px 0; }
.docs-toc li.lvl-2 { padding-left: 14px; }
.docs-toc li.lvl-3 { padding-left: 28px; }

/* ─── Chart cards ─── */
.chart-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); margin-bottom: 18px; }

/* ─── Footer ─── */
.site-footer { border-top: 1px solid var(--line); background: var(--card); padding: 22px 0; font-size: .9rem; color: var(--muted); }
.site-footer p { margin: 4px 0; }

/* ─── Avatar ─── */
.avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: var(--line); }
.avatar.lg { width: 88px; height: 88px; }

/* ─── Assistant ─── */
.assistant-layout { display:grid; grid-template-columns: 230px 1fr; gap:16px; align-items:start; }
.assistant-side { padding:14px; }
.assistant-chat-item { padding:6px 8px; border-radius:8px; font-size:.9rem; }
.assistant-chat-item.active { background: color-mix(in srgb, var(--brand) 12%, transparent); }
.assistant-chat-item a { color:inherit; text-decoration:none; }
.assistant-main { min-height:420px; display:flex; flex-direction:column; }
.assistant-msgs { flex:1; overflow-y:auto; max-height:52vh; display:flex; flex-direction:column; gap:10px; padding:4px; }
.msg { display:flex; }
.msg.me { justify-content:flex-end; }
.bubble { max-width:78%; padding:10px 14px; border-radius:14px; white-space:pre-wrap; word-break:break-word; }
.msg.me .bubble { background:var(--brand); color:#fff; border-bottom-right-radius:4px; }
.msg.ai .bubble { background: color-mix(in srgb, var(--muted) 12%, var(--card)); border-bottom-left-radius:4px; }

/* ─── Footer spacing for mobile tabs ─── */
body { padding-bottom: 0; }
@media (max-width: 640px) { body { padding-bottom: 70px; } }

/* ─── Responsive ─── */
@media (max-width: 900px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .docs-layout { grid-template-columns: 1fr; }
  .docs-toc { position: static; order: -1; }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-side { position: static; height: auto; }
  .form .row { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; top: 60px; left: 0; right: 0; flex-direction: column; background: var(--card); padding: 12px 20px 18px; border-bottom: 1px solid var(--line); }
  .site-nav.open { display: flex; }
  .mobile-tabs { display: block; }
  .compare-table { font-size: .8rem; }
  .compare-table td.label { width: 100px; }
}
/* — v4.1: touch targets + admin mobile nav — */
.site-foot a, footer a { display: inline-block; padding: 4px 2px; min-height: 24px; }
.card p a, .panel p a, p.small a { display: inline-block; padding: 2px 1px; }
.skip-link:focus { min-height: 24px; }
input[type="search"], input[type="text"], input[type="email"], input[type="url"], input:not([type]), select { min-height: 40px; }
.admin-side-foot a { display: inline-block; padding: 5px 3px; min-height: 26px; }
.data-table a.btn, table a { display: inline-flex; align-items: center; min-height: 26px; }
input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--brand); }
form.flex.gap select { max-width: 260px; }
summary.btn { min-height: 32px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }

/* admin mobile: burger + collapsible sidebar */
.admin-burger { display: none; position: fixed; top: 10px; right: 12px; z-index: 120; font-size: 1.3rem; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; cursor: pointer; }
@media (max-width: 900px) {
  .admin-burger { display: block; }
  .admin-shell { padding-top: 52px; }
  .admin-side { position: fixed; top: 0; right: 0; width: 230px; z-index: 110; transform: translateX(105%); transition: transform .2s ease; box-shadow: -4px 0 24px rgba(0,0,0,.25); }
  body.admin-nav-open .admin-side { transform: translateX(0); }
  body.admin-nav-open::after { content: ''; position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 100; }
}

/* — v4: landscape phones + reduced motion + focus visibility — */
@media (max-height: 480px) and (orientation: landscape) {
  .hero { min-height: 0; padding: 22px 18px; }
  .hero h1 { font-size: 1.6rem; }
  .hero-actions { flex-wrap: wrap; gap: 8px; }
  .grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
  .card { padding: 12px; }
  .kpi-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid var(--brand, #4f46e5);
  outline-offset: 2px;
  border-radius: 4px;
}
.skip-link:focus { position: fixed !important; top: 8px; left: 8px; z-index: 9999 !important; background: #fff; color: #111; padding: 10px 16px; border-radius: 8px; box-shadow: 0 4px 16px rgba(0,0,0,.25); }
table caption { caption-side: top; text-align: left; padding: 6px 0; font-weight: 600; }

/* guided tour */
#tour-overlay { position: fixed; inset: 0; z-index: 200; background: rgba(15,23,42,.45); backdrop-filter: blur(1px); }
#tour-spot { position: fixed; border-radius: 12px; box-shadow: 0 0 0 4000px rgba(15,23,42,.55); border: 2px solid var(--brand); pointer-events: none; transition: all .25s ease; }
#tour-card { position: fixed; z-index: 210; width: 300px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; box-shadow: 0 12px 40px rgba(0,0,0,.25); }

/* kpi icons (v4.5) */
.kpi { padding-left: 18px; }
.kpi .kpi-ico { position: absolute; right: 14px; top: 14px; color: var(--brand-500); opacity: .35; }
.kpi .kpi-ico .icon, .kpi .kpi-ico img { width: 22px; height: 22px; }

/* — LinkedIn OAuth entry points (branded) — */
.btn.btn-li { display: inline-flex; align-items: center; justify-content: center; gap: 10px; background: #0a66c2; color: #fff !important; border-color: #0a66c2; border-radius: var(--radius-md); padding: 11px 20px; font-weight: 600; text-decoration: none; }
.btn.btn-li:hover { background: #084e96; border-color: #084e96; text-decoration: none; }
.btn-li .li-glyph { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 5px; background: #fff; color: #0a66c2; font-weight: 800; font-size: .9rem; line-height: 1; }
.btn-li.block { display: flex; width: 100%; }
.auth-choice { max-width: 460px; margin: 0 auto; text-align: center; }
.auth-choice .or-divider { display: flex; align-items: center; gap: 12px; margin: 18px 0; color: var(--muted); font-size: .85rem; }
.auth-choice .or-divider::before, .auth-choice .or-divider::after { content: ''; flex: 1; border-top: 1px solid var(--line); }
.li-verified-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px; background: #dcfce7; color: #166534; border: 1px solid #86efac; font-size: .85rem; font-weight: 600; }

/* ══ v5.0.1 responsive refinement ══ */
/* u-hero on smaller screens: reduce height, tighter padding, smaller display text */
@media (max-width: 900px) {
  .u-hero { min-height: 300px; }
  .u-hero h1 { font-size: clamp(1.7rem, 7vw, 2.3rem); }
  .u-hero .sub { font-size: 1rem; }
  .u-hero .cta-row .btn-lg { width: 100%; justify-content: center; display: flex; }
}
@media (max-width: 560px) {
  .u-hero { min-height: 260px; border-radius: var(--radius-lg); padding: 22px 16px; }
  .u-eyebrow { letter-spacing: .10em; }
  .cta-row { display: grid; gap: 10px; width: 100%; max-width: 300px; margin-left: auto; margin-right: auto; }
  .cta-row .btn { width: 100%; justify-content: center; display: flex; }
  /* stat-strip: 2×2 grid on phone */
  .stat-strip { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat { padding: 14px 16px; }
  .stat .n { font-size: 1.5rem; }
  /* featured event: body before media (photo bottom) */
  .featured-event .fe-body { padding: 20px 18px; }
  .featured-event .fe-media { min-height: 160px; order: -1; }
  /* category rail: collapse into single column without image rail */
  .cat-card { grid-template-columns: 1fr 90px; min-height: 104px; }
  .cat-card .cat-body { padding: 12px 14px; }
  /* timeline tighter */
  .timeline::before { left: 17px; }
  .timeline li { padding-left: 52px; padding-bottom: 20px; }
  .timeline .t-num { width: 36px; height: 36px; font-size: .9rem; }
  /* breadcrumbs centered on event page */
  .u-hero .breadcrumb { font-size: .74rem; flex-wrap: wrap; }
  /* brand header: let brand text truncate, keep burger reachable */
  .brand-text { max-width: 46vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  /* section head on small screens */
  .sec-head h2 { line-height: 1.2; }
  /* hall of fame pager */
  .pager { justify-content: center; }
  /* compare grid */
  .compare-table th, .compare-table td { padding: 6px 7px; }
  /* registration forms */
  .form .row { grid-template-columns: 1fr; }
  /* timeline bubble wrap */
  .foot-bottom { flex-direction: column; gap: 6px; }
}
/* tablet: 2-col category cards still fit, feature grid 2-col */
@media (min-width: 561px) and (max-width: 900px) {
  .cat-card { grid-template-columns: 1fr 110px; }
  .stat-strip { grid-template-columns: 1fr 1fr; }
  .grid-2 { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)) !important; }
  .grid-3 { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)) !important; }
}
/* dense admin nav in drawer (mobile) — keep labels compact */
@media (max-width: 900px) {
  .nav-group-label { padding: 10px 12px 3px; font-size: .66rem; }
  .admin-side .nav-group { margin-bottom: 6px; }
  .kpi .kpi-value { font-size: 1.35rem; }
}
/* honor big phones in landscape: restore moderate hero height */
@media (max-height: 480px) and (orientation: landscape) {
  .u-hero { min-height: 220px; }
}

/* ══ v5.0.1 fixes ══ */
/* Buttons in site-nav: keep button's own color (Join-now was inheriting nav-link ink) */
.site-nav .btn { color: #fff; padding: 8px 16px; border-bottom: 0; }
.site-nav .btn:hover { text-decoration: none; transform: translateY(-1px); }
.site-nav .btn.btn-li { color: #fff !important; }
/* Nav collapse earlier: burger at ≤900px (was 640px), tablet-safe */
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; top: 60px; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--card); padding: 14px 20px 20px; border-bottom: 1px solid var(--line); box-shadow: 0 12px 28px rgba(15,23,42,.14); z-index: 60; }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 10px 4px; border-bottom: 1px solid var(--line); }
  .site-nav a:last-of-type { border-bottom: 0; }
  .site-nav .btn { margin-top: 6px; }
  .theme-toggle { margin-top: 10px; align-self: flex-start; }
}
/* breadcrumb link min target */
.breadcrumb a { display: inline-flex; align-items: center; min-height: 24px; padding: 2px 1px; }
/* hamburger icon contrast on dark or light */
.nav-toggle { color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; font-size: 1.2rem; }

@media (max-width: 560px) {
  .u-hero { margin-bottom: 16px; }
  .u-hero + .panel, .u-hero + .grid { margin-top: 0; }
  .panel { margin: 20px 0; }
}

/* chips inside dark heroes get a readable translucent surface */
.u-hero .chip, .u-hero .status-chip { background: rgba(255,255,255,.16) !important; color: #fff !important; border: 1px solid rgba(255,255,255,.3); backdrop-filter: blur(4px); }
.u-hero .chip a { color: #fff !important; }

/* ══ v5.0.2 theme fits ══ */
[data-theme="dark"] .status-chip[data-status="announced"] { background: #0c2b4d; color: #93c5fd; }
[data-theme="dark"] .status-chip[data-status="registration_open"] { background: #3b2f14; color: #fbbf24; }
[data-theme="dark"] .status-chip[data-status="live"] { background: #0a2e3d; color: #7dd3fc; }
[data-theme="dark"] .status-chip[data-status="voting_open"] { background: #2a1b52; color: #c4b5fd; }
[data-theme="dark"] .status-chip[data-status="judging"] { background: #093036; color: #67e8f9; }
[data-theme="dark"] .status-chip[data-status="finished"] { background: #08331d; color: #86efac; }
[data-theme="dark"] .stat::after { opacity: .85; }
[data-theme="dark"] .f-icon { box-shadow: none; }
/* gold button legibility on dark */
.btn-gold { color: #241604; }
/* print: clean exports of certificates/cert cards */
@media print {
  .site-header, .site-footer, .mobile-tabs, .theme-toggle, .admin-burger, #toast-container, .cookie-bar, .no-print { display: none !important; }
  .u-hero { background: none !important; color: #000 !important; min-height: 0; padding: 10px; border: none; box-shadow: none; }
  .u-hero .sub, .u-hero p { color: #333 !important; }
  body { padding-bottom: 0 !important; }
  .card, .panel, .stat { box-shadow: none !important; border: 1px solid #ddd; page-break-inside: avoid; }
}

@media (max-width: 900px) {
  .spk-grid { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .spk-grid { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); }
}
/* ══ FLA v4.5 design system — tokens / fonts / utilities / components ══ */
@font-face { font-family: 'Inter'; src: url('/assets/fonts/Inter.woff2') format('woff2'); font-weight: 100 900; font-display: swap; font-style: normal; }
@font-face { font-family: 'Space Grotesk'; src: url('/assets/fonts/SpaceGrotesk.woff2') format('woff2'); font-weight: 300 700; font-display: swap; font-style: normal; }

:root {
  --font-sans: 'Inter', -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Space Grotesk', 'Inter', -apple-system, sans-serif;
  /* brand scale */
  --brand-50: #eef2ff; --brand-100: #e0e7ff; --brand-500: #4f46e5; --brand-600: #4338ca; --brand-700: #3730a3; --brand-900: #1e1b4b;
  /* medals / accents */
  --gold: #eab308; --silver: #94a3b8; --bronze: #b45309;
  --accent-ai: #a855f7; --accent-vote: #3b82f6; --accent-success: #059669;
  /* spacing */
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-6: 24px; --sp-8: 32px; --sp-10: 40px; --sp-12: 48px; --sp-16: 64px;
  /* radii */
  --radius-sm: 6px; --radius-md: 12px; --radius-lg: 18px; --radius-xl: 28px;
  /* shadows */
  --shadow-sm: 0 1px 3px rgba(15,23,42,.06);
  --shadow-lg: 0 12px 32px rgba(15,23,42,.12);
  --shadow-xl: 0 20px 48px rgba(30,27,75,.18);
  --shadow-brand: 0 8px 28px rgba(79,70,229,.28);
  /* motion */
  --ease-out: cubic-bezier(.16,1,.3,1);
  --ease-spring: cubic-bezier(.34,1.56,.64,1);
  --dur-fast: 120ms; --dur: 220ms; --dur-slow: 400ms;
}
body { font-family: var(--font-sans); font-feature-settings: 'cv02','cv03','cv04','cv11'; -webkit-font-smoothing: antialiased; }
h1,h2,h3,.font-display { font-family: var(--font-display); letter-spacing: -.02em; line-height: 1.1; }
h1 { font-size: clamp(2.2rem, 5.4vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }

/* ─── utilities ─── */
.u-eyebrow { color: var(--brand-500); font-weight: 700; text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; margin: 0 0 10px; }
.u-hero { position: relative; overflow: hidden; border-radius: var(--radius-xl); margin: 0 0 var(--sp-8); color: #fff; min-height: 420px; display: flex; flex-direction: column; justify-content: center; text-align: center;
  background: linear-gradient(rgba(15,23,42,.72), rgba(30,27,75,.86)), var(--hero-bg, none) center/cover; }
.u-hero::before { content:''; position:absolute; inset:0; background: radial-gradient(ellipse at 50% 110%, rgba(234,179,8,.22), transparent 55%); pointer-events:none; }
.u-hero h1 { text-shadow: 0 3px 18px rgba(0,0,0,.45); margin: 6px 0 10px; }
.u-hero .sub { color: #cbd5e1; font-size: 1.15rem; max-width: 640px; margin: 0 auto; }
.u-hero .cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 26px; }
.u-hero .btn-outline { border-color: rgba(255,255,255,.7); color: #fff; }
.u-hero .btn-quiet { color: #cbd5e1; }
.u-hero-bg--home { --hero-bg: url('/assets/img/generated/hero-stage.webp'); }
.u-hero-bg--crowd { --hero-bg: url('/assets/img/generated/crowd.webp'); }
.u-hero-bg--score { --hero-bg: url('/assets/img/generated/about-scoring.webp'); }
.u-hero-bg--hall  { --hero-bg: url('/assets/img/generated/hall-of-fame.webp'); }
.u-hero-bg--speakers { --hero-bg: url('/assets/img/generated/speakers-stage.webp'); }
.u-hero-bg--login { --hero-bg: url('/assets/img/generated/login-abstract.webp'); }

/* stat strip */
.stat-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin: var(--sp-8) 0; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px 20px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.stat::after { content:''; position:absolute; top:0; left:0; right:0; height:3px; background: var(--bar, var(--brand-500)); }
.stat .n { font-size: 1.9rem; font-weight: 800; font-family: var(--font-display); line-height: 1.1; }
.stat .l { color: var(--muted); font-size: .85rem; margin-top: 2px; }
.stat--brand { --bar: var(--brand-500); } .stat--gold { --bar: var(--gold); } .stat--ai { --bar: var(--accent-ai); } .stat--vote { --bar: var(--accent-vote); } .stat--success { --bar: var(--accent-success); }

/* section header */
.sec-head { margin: var(--sp-10) 0 var(--sp-5); }
.sec-head h2 { margin: 0; }
.sec-head p { color: var(--muted); margin: 6px 0 0; max-width: 640px; }

/* feature / category cards v2 */
.f-card { position: relative; overflow: hidden; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out), border-color var(--dur); }
.f-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--brand-500) 55%, transparent); text-decoration: none; }
.f-card .f-icon { width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center; color: #fff; margin-bottom: 14px; background: var(--f-tint, var(--brand-500)); box-shadow: var(--shadow-brand); }
.f-card[data-tint="ai"] { --f-tint: var(--accent-ai); } .f-card[data-tint="vote"] { --f-tint: var(--accent-vote); } .f-card[data-tint="gold"] { --f-tint: #d97706; } .f-card[data-tint="success"] { --f-tint: var(--accent-success); }
.f-card h3 { margin: 0 0 6px; }

/* category card with realistic image rail */
.cat-card { display: grid; grid-template-columns: 1fr 120px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; min-height: 132px; transition: transform var(--dur), box-shadow var(--dur), border-color var(--dur); }
.cat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--brand-500); text-decoration: none; }
.cat-card .cat-body { padding: 16px 18px; }
.cat-card .cat-img { background: var(--cat-img, none) center/cover; min-height: 100%; }
.cat-card .cat-title { font-weight: 700; font-family: var(--font-display); font-size: 1.05rem; }

/* timeline */
.timeline { position: relative; margin: var(--sp-6) 0; padding: 0; list-style: none; }
.timeline::before { content:''; position: absolute; left: 23px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--brand-500), var(--accent-ai), var(--accent-vote), var(--accent-success), var(--gold)); border-radius: 2px; }
.timeline li { position: relative; padding: 0 0 26px 64px; counter-increment: step; }
.timeline li:last-child { padding-bottom: 0; }
.timeline .t-num { position: absolute; left: 0; top: 0; width: 48px; height: 48px; border-radius: 50%; background: var(--card); border: 2px solid var(--brand-500); color: var(--brand-500); font-weight: 800; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); box-shadow: var(--shadow); }
.timeline .t-title { font-weight: 700; }

/* buttons v2 */
.btn { transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast), opacity var(--dur-fast); }
.btn:active { transform: scale(.97); }
.btn-gold { background: linear-gradient(135deg, #f59e0b, #d97706); color: #1c1005; }
.btn-block { display: block; width: 100%; text-align: center; }
.btn-lg { padding: 14px 26px; font-size: 1.05rem; }

/* featured event card */
.featured-event { display: grid; grid-template-columns: 1.2fr 1fr; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-lg); }
.featured-event .fe-body { padding: 30px 28px; }
.featured-event .fe-media { background: var(--fe-bg, none) center/cover; min-height: 260px; position: relative; }
.featured-event .fe-media::after { content:''; position:absolute; inset:0; background: linear-gradient(90deg, var(--card), transparent 40%); }
@media (max-width: 800px) { .featured-event { grid-template-columns: 1fr; } .featured-event .fe-media::after { display:none; } }

/* footer v2 — 4 columns */
.site-footer { background: var(--card); border-top: 1px solid var(--line); padding: 40px 0 26px; margin-top: var(--sp-12); position: relative; overflow: hidden; }
.site-footer::before { content:''; position:absolute; inset:0; background: url('/assets/img/generated/footer-texture.webp') center/cover; opacity:.05; pointer-events:none; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 28px; position: relative; }
.foot-grid h4 { margin: 0 0 10px; font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink); }
.foot-grid ul { list-style: none; margin: 0; padding: 0; }
.foot-grid li { margin: 6px 0; }
.foot-grid a { color: var(--muted); }
.foot-grid a:hover { color: var(--brand-500); }
.foot-bottom { border-top: 1px solid var(--line); margin-top: 26px; padding-top: 16px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: .82rem; color: var(--muted); }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } }

/* admin grouped nav */
.nav-group { display: grid; gap: 2px; }
.nav-group-label { color: #64748b; font-size: .68rem; text-transform: uppercase; letter-spacing: .12em; padding: 14px 12px 4px; font-weight: 700; }
.nav-group:first-child .nav-group-label { padding-top: 0; }

/* page fade-in */
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.fade-up { animation: fadeUp .5s var(--ease-out) both; }
.fade-up.d1 { animation-delay: .08s; } .fade-up.d2 { animation-delay: .16s; } .fade-up.d3 { animation-delay: .24s; } .fade-up.d4 { animation-delay: .32s; }
body { animation: fadeUp .3s var(--ease-out); }

/* status colors */
.status-chip { text-transform: capitalize; }
.status-chip[data-status="draft"] { background: var(--line); color: var(--muted); }
.status-chip[data-status="announced"] { background: #eff6ff; color: #1d4ed8; }
.status-chip[data-status="registration_open"] { background: #fef3c7; color: #92400e; }
.status-chip[data-status="live"] { background: #e0f2fe; color: #0369a1; }
.status-chip[data-status="voting_open"] { background: #f5f3ff; color: #6d28d9; }
.status-chip[data-status="judging"] { background: #cffafe; color: #155e75; }
.status-chip[data-status="finished"] { background: #dcfce7; color: #166534; }

/* icon inline */
.icon { width: 1.25em; height: 1.25em; vertical-align: -0.25em; }

/* ═══════════════════════════════════════════════════════════
   FLA Event & Awards Platform — Complete UI Pack v3.5.0
   Dark/light mode · toasts · badges · skeletons · tooltips
   Mobile tabs · breadcrumbs · empty states · animations
   ═══════════════════════════════════════════════════════════ */

:root {
  --brand: #4f46e5;
  --ink: #17202a;
  --muted: #64748b;
  --bg: #f5f7fb;
  --card: #ffffff;
  --line: #e2e8f0;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(15, 23, 42, .07);
  --success: #059669;
  --warning: #d97706;
  --danger: #dc2626;
  --info: #2563eb;
  --toast-bg: #0f172a;
  --toast-text: #f1f5f9;
  --skel: #e2e8f0;
  --skel-shine: #f8fafc;
}

[data-theme="dark"] {
  --ink: #e2e8f0;
  --muted: #94a3b8;
  --bg: #0f172a;
  --card: #1e293b;
  --line: #334155;
  --shadow: 0 6px 24px rgba(0, 0, 0, .4);
  --skel: #334155;
  --skel-shine: #475569;
  --toast-bg: #f1f5f9;
  --toast-text: #0f172a;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg); color: var(--ink); line-height: 1.55;
  transition: background .2s ease, color .2s ease;
}
.container { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.main { padding: 32px 20px 80px; min-height: 60vh; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
code, .mono { font-family: "DejaVu Sans Mono", ui-monospace, monospace; font-size: .92em; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.center { text-align: center; }
.flex { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.spread { justify-content: space-between; }
.mt { margin-top: 18px; } .mb { margin-bottom: 18px; }
.hidden { display: none !important; }

/* ─── Header ─── */
.site-header { background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.header-inner { display: flex; align-items: center; gap: 16px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; font-size: 1.1rem; }
.brand:hover { text-decoration: none; }
.brand-mark { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 10px; background: var(--brand); color: #fff; font-weight: 800; }
.brand-mark img { width: 100%; height: 100%; border-radius: 10px; object-fit: cover; }
.site-nav { margin-left: auto; display: flex; gap: 18px; align-items: center; }
.site-nav a { color: var(--ink); font-weight: 500; padding: 6px 2px; border-bottom: 2px solid transparent; }
.site-nav a.active { color: var(--brand); border-bottom-color: var(--brand); }
.site-nav a:hover { text-decoration: none; color: var(--brand); }
.nav-toggle { display: none; margin-left: auto; font-size: 1.3rem; background: none; border: 0; cursor: pointer; color: var(--ink); }

/* ─── Theme toggle ─── */
.theme-toggle { background: none; border: 1px solid var(--line); border-radius: 10px; padding: 6px 10px; cursor: pointer; font-size: 1.1rem; color: var(--ink); transition: transform .1s ease; }
.theme-toggle:hover { transform: scale(1.1); }

/* ─── Notification badge ─── */
.notif-dot { position: absolute; top: -4px; right: -6px; background: var(--danger); color: #fff; font-size: .7rem; font-weight: 700; min-width: 18px; height: 18px; border-radius: 9px; display: flex; align-items: center; justify-content: center; padding: 0 4px; }
.nav-item { position: relative; }

/* ─── Buttons ─── */
.btn { display: inline-block; padding: 11px 20px; border-radius: 10px; font-weight: 600; border: 1px solid transparent; cursor: pointer; transition: transform .06s ease, opacity .15s; text-decoration: none; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-outline { border-color: var(--brand); color: var(--brand); background: transparent; }
.btn-quiet { background: transparent; color: var(--muted); border-color: var(--line); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-success { background: var(--success); color: #fff; }
.btn.small { padding: 5px 10px; font-size: .85rem; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.pill { display: inline-block; background: color-mix(in srgb, var(--brand) 10%, transparent); color: var(--brand); font-size: .75rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; text-transform: uppercase; letter-spacing: .06em; }

/* ─── Cards & panels ─── */
.grid { display: grid; gap: 16px; margin: 28px 0; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 16px; margin: 28px 0; }
.card, .panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.card h3 { margin-top: 0; }
a.card { color: inherit; display: block; }
a.card:hover { text-decoration: none; border-color: var(--brand); }
.panel { margin: 28px 0; }

/* ─── Hero ─── */
.hero { text-align: center; padding: 56px 16px 40px; }
.hero.slim { padding: 24px 16px 8px; }
.hero h1 { font-size: clamp(2rem, 5vw, 3rem); margin: 8px 0; letter-spacing: -.02em; }
.hero-kicker { color: var(--brand); font-weight: 700; text-transform: uppercase; font-size: .8rem; letter-spacing: .12em; }
.hero-sub { font-size: 1.15rem; color: var(--muted); max-width: 560px; margin: 0 auto; }
.hero-actions { display: flex; gap: 12px; justify-content: center; margin-top: 26px; flex-wrap: wrap; }

/* ─── Countdown ─── */
.countdown { display: flex; gap: 12px; justify-content: center; margin: 20px 0; }
.countdown .cd-unit { text-align: center; background: var(--card); border: 2px solid var(--brand); border-radius: var(--radius); padding: 12px 16px; min-width: 80px; }
.countdown .cd-num { font-size: 2rem; font-weight: 800; color: var(--brand); line-height: 1; }
.countdown .cd-label { font-size: .75rem; color: var(--muted); text-transform: uppercase; margin-top: 4px; }

/* ─── Badges & chips ─── */
.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; background: color-mix(in srgb, var(--brand) 12%, transparent); color: var(--brand); }
.badge.green { background: #dcfce7; color: #166534; }
.badge.red { background: #fee2e2; color: #991b1b; }
.badge.amber { background: #fef3c7; color: #92400e; }
.badge.gray { background: var(--line); color: var(--muted); }
[data-theme="dark"] .badge.green { background: #064e3b; color: #34d399; }
[data-theme="dark"] .badge.red { background: #7f1d1d; color: #f87171; }
[data-theme="dark"] .badge.amber { background: #78350f; color: #fbbf24; }
.chip { display: inline-block; padding: 4px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: .85rem; background: var(--card); }
.chip.active { background: var(--brand); color: #fff; border-color: var(--brand); }

/* ─── Forms ─── */
.form { display: grid; gap: 14px; text-align: left; margin: 18px 0; }
.form label { font-weight: 600; display: grid; gap: 6px; font-size: .95rem; }
.form input[type="text"], .form input[type="email"], .form input[type="password"],
.form input[type="number"], .form input[type="date"], .form input[type="color"],
.form input[type="url"], .form select, .form textarea {
  padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font: inherit; width: 100%; background: var(--card); color: var(--ink);
}
.form textarea { min-height: 96px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form .check { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.form .check input { width: auto; }
.form-hint { font-size: .82rem; color: var(--muted); font-weight: 400; }
input[type="file"] { font: inherit; }

/* ─── Alerts ─── */
.alert { border-radius: 10px; padding: 10px 14px; margin: 10px 0; border: 1px solid; }
.alert.error { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.alert.ok, .alert.success { background: #f0fdf4; border-color: #bbf7d0; color: #166534; }
.alert.info { background: #eff6ff; border-color: #bfdbfe; color: #1e40af; }
[data-theme="dark"] .alert.error { background: #450a0a; border-color: #991b1b; color: #fca5a5; }
[data-theme="dark"] .alert.ok { background: #052e16; border-color: #166534; color: #86efac; }
[data-theme="dark"] .alert.info { background: #0c1a3a; border-color: #1e40af; color: #93c5fd; }

/* ─── Tables ─── */
.data-table { width: 100%; border-collapse: collapse; background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); font-size: .95rem; }
.data-table th, .data-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.data-table th { background: color-mix(in srgb, var(--muted) 8%, var(--card)); font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.data-table tr:last-child td { border-bottom: 0; }
.table-wrap-scroll { overflow-x: auto; }

/* ─── KPI cards ─── */
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin: 18px 0; }
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); position: relative; }
.kpi .kpi-value { font-size: 1.7rem; font-weight: 800; line-height: 1.1; }
.kpi .kpi-label { color: var(--muted); font-size: .85rem; margin-top: 4px; }
.kpi .kpi-trend { font-size: .8rem; margin-top: 4px; }
.kpi .kpi-trend.up { color: var(--success); }
.kpi .kpi-trend.down { color: var(--danger); }
.kpi .kpi-tip { position: absolute; top: 8px; right: 10px; color: var(--muted); font-size: .75rem; cursor: help; }

/* ─── Sparklines ─── */
.sparkline { width: 100%; height: 32px; margin-top: 6px; }

/* ─── Admin shell ─── */
.admin-body { background: var(--bg); }
.admin-shell { display: grid; grid-template-columns: 230px 1fr; min-height: 100vh; }
.admin-side { background: #0f172a; color: #cbd5e1; padding: 20px 14px; display: flex; flex-direction: column; gap: 18px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.admin-brand { color: #fff; display: flex; gap: 10px; align-items: center; font-weight: 700; }
.admin-brand:hover { text-decoration: none; }
.admin-nav { display: grid; gap: 2px; }
.admin-nav a { color: #cbd5e1; padding: 8px 12px; border-radius: 8px; font-size: .92rem; }
.admin-nav a:hover { background: #1e293b; text-decoration: none; color: #fff; }
.admin-nav a.active { background: var(--brand); color: #fff; }
.admin-side-foot { margin-top: auto; font-size: .85rem; }
.admin-side-foot a { color: #94a3b8; }
.admin-main { padding: 26px; max-width: 1200px; width: 100%; }

/* ─── Breadcrumbs ─── */
.breadcrumb { display: flex; gap: 8px; align-items: center; margin: 0 0 16px; font-size: .85rem; color: var(--muted); flex-wrap: wrap; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb .sep { opacity: .5; }
.breadcrumb .current { color: var(--ink); font-weight: 600; }

/* ─── Filters ─── */
.filterbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; margin: 14px 0 18px; padding: 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.filterbar label { font-size: .8rem; color: var(--muted); display: grid; gap: 4px; font-weight: 600; }
.filterbar input, .filterbar select { padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; font: inherit; background: var(--card); color: var(--ink); }

/* ─── Skeletons ─── */
.skel { position: relative; overflow: hidden; background: var(--skel); border-radius: 8px; }
.skel::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, var(--skel-shine), transparent); animation: shimmer 1.5s infinite; }
@keyframes shimmer { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
.skel-card { height: 120px; border-radius: var(--radius); }
.skel-line { height: 16px; margin: 8px 0; }
.skel-line.w-60 { width: 60%; } .skel-line.w-40 { width: 40%; } .skel-line.w-80 { width: 80%; }
.skel-kpi { height: 90px; border-radius: var(--radius); }

/* ─── Toasts ─── */
#toast-container { position: fixed; bottom: 20px; right: 20px; z-index: 999; display: flex; flex-direction: column; gap: 8px; max-width: 360px; }
.toast { background: var(--toast-bg); color: var(--toast-text); padding: 12px 16px; border-radius: 12px; box-shadow: 0 8px 30px rgba(0,0,0,.3); display: flex; align-items: center; gap: 10px; font-size: .92rem; animation: toastIn .3s ease; }
.toast.success { border-left: 4px solid var(--success); }
.toast.error { border-left: 4px solid var(--danger); }
.toast.info { border-left: 4px solid var(--info); }
.toast.warning { border-left: 4px solid var(--warning); }
.toast .toast-close { background: none; border: none; color: inherit; cursor: pointer; font-size: 1rem; padding: 0 0 0 8px; opacity: .7; }
@keyframes toastIn { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes toastOut { from { transform: translateY(0); opacity: 1; } to { transform: translateY(10px); opacity: 0; } }
.toast.leaving { animation: toastOut .3s ease forwards; }

/* ─── Empty states ─── */
.empty { text-align: center; color: var(--muted); padding: 48px 20px; background: var(--card); border-radius: var(--radius); border: 2px dashed var(--line); }
.empty .empty-icon { font-size: 3rem; margin-bottom: 8px; opacity: .5; }
.empty .empty-title { font-weight: 700; color: var(--ink); margin: 8px 0 4px; font-size: 1.05rem; }
.empty .empty-hint { font-size: .9rem; max-width: 400px; margin: 0 auto 12px; }

/* ─── Tooltips ─── */
[data-tip] { position: relative; }
[data-tip]::after {
  content: attr(data-tip);
  position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%);
  background: #0f172a; color: #f1f5f9; padding: 6px 10px; border-radius: 8px;
  font-size: .78rem; white-space: nowrap; max-width: 280px; overflow: hidden; text-overflow: ellipsis;
  opacity: 0; pointer-events: none; transition: opacity .15s ease; z-index: 100;
}
[data-tip]:hover::after { opacity: 1; }

/* ─── Search autocomplete ─── */
.search-suggest { position: absolute; top: 100%; left: 0; right: 0; background: var(--card); border: 1px solid var(--line); border-radius: 0 0 12px 12px; box-shadow: var(--shadow); z-index: 50; max-height: 320px; overflow-y: auto; }
.search-suggest .sug-group { padding: 6px 12px; font-size: .72rem; font-weight: 700; text-transform: uppercase; color: var(--muted); background: color-mix(in srgb, var(--muted) 6%, var(--card)); }
.search-suggest .sug-item { padding: 8px 14px; font-size: .9rem; cursor: pointer; }
.search-suggest .sug-item:hover { background: color-mix(in srgb, var(--brand) 6%, var(--card)); }
.search-suggest .sug-item .sub { font-size: .8rem; color: var(--muted); }

/* ─── Live vote counter ─── */
.live-vote-count { font-size: 1.6rem; font-weight: 800; transition: all .3s ease; }
.live-vote-count.pulse { transform: scale(1.15); color: var(--success); }
.live-indicator { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; color: var(--danger); font-weight: 700; }
.live-indicator .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--danger); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .3; } }

/* ─── Anomaly dashboard ─── */
.anomaly-card { border-left: 4px solid var(--danger); }
.anomaly-card.warn { border-left-color: var(--warning); }
.anomaly-card.ok { border-left-color: var(--success); }
.heat-row { display: grid; grid-template-columns: 80px 1fr 60px; gap: 10px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: .88rem; }
.heat-bar { height: 20px; border-radius: 10px; background: linear-gradient(90deg, var(--success), var(--warning), var(--danger)); opacity: .8; }

/* ─── Comparison view ─── */
.compare-table { width: 100%; border-collapse: collapse; }
.compare-table th { text-align: center; padding: 12px; background: color-mix(in srgb, var(--brand) 6%, var(--card)); }
.compare-table td { text-align: center; padding: 10px; border: 1px solid var(--line); }
.compare-table td.label { text-align: left; font-weight: 600; color: var(--muted); width: 160px; }
.compare-table .winner-cell { background: color-mix(in srgb, var(--success) 10%, transparent); }

/* ─── Mobile bottom tabs ─── */
.mobile-tabs { display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 90; background: var(--card); border-top: 1px solid var(--line); padding: 8px 0 max(8px, env(safe-area-inset-bottom)); }
.mobile-tabs .tab-grid { display: grid; grid-template-columns: repeat(5, 1fr); max-width: 480px; margin: 0 auto; }
.mobile-tabs a { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: .78rem; font-weight: 500; color: var(--muted); text-decoration: none; padding: 7px 4px; min-height: 44px; justify-content: center; }
.mobile-tabs a.active { color: var(--brand); }
.mobile-tabs a .tab-icon { font-size: 1.3rem; }

/* ─── Docs viewer ─── */
.docs-group { margin: 30px 0 4px; font-size: 1.15rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.doc-card h3 { margin-bottom: 6px; }
.docs-layout { display: grid; grid-template-columns: 1fr 240px; gap: 28px; align-items: start; }
.docs-content { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); overflow-wrap: break-word; }
.docs-content h1 { margin-top: 0; font-size: 1.7rem; }
.docs-content h2 { border-bottom: 1px solid var(--line); padding-bottom: 6px; margin-top: 34px; }
.docs-content h3 { margin-top: 26px; }
.docs-content pre { background: #0f172a; color: #e2e8f0; padding: 14px; border-radius: 10px; overflow-x: auto; }
.docs-content pre.mermaid { background: var(--card); color: inherit; text-align: center; border: 1px dashed var(--line); }
.docs-content code:not(pre code) { background: color-mix(in srgb, var(--muted) 10%, transparent); padding: 2px 6px; border-radius: 6px; }
.table-wrap { overflow-x: auto; margin: 14px 0; }
table { border-collapse: collapse; width: 100%; font-size: .95rem; }
th, td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
th { background: color-mix(in srgb, var(--muted) 8%, var(--card)); }
.docs-content blockquote { border-left: 3px solid var(--brand); margin: 14px 0; padding: 8px 14px; background: color-mix(in srgb, var(--brand) 4%, transparent); }
.docs-content img { max-width: 100%; }
.docs-toc { position: sticky; top: 76px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; font-size: .9rem; max-height: 80vh; overflow: auto; }
.docs-toc .toc-title { font-weight: 700; margin: 4px 0 10px; }
.docs-toc ul { list-style: none; margin: 0; padding: 0; }
.docs-toc li { margin: 6px 0; }
.docs-toc li.lvl-2 { padding-left: 14px; }
.docs-toc li.lvl-3 { padding-left: 28px; }

/* ─── Chart cards ─── */
.chart-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); margin-bottom: 18px; }

/* ─── Footer ─── */
.site-footer { border-top: 1px solid var(--line); background: var(--card); padding: 22px 0; font-size: .9rem; color: var(--muted); }
.site-footer p { margin: 4px 0; }

/* ─── Avatar ─── */
.avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: var(--line); }
.avatar.lg { width: 88px; height: 88px; }

/* ─── Assistant ─── */
.assistant-layout { display:grid; grid-template-columns: 230px 1fr; gap:16px; align-items:start; }
.assistant-side { padding:14px; }
.assistant-chat-item { padding:6px 8px; border-radius:8px; font-size:.9rem; }
.assistant-chat-item.active { background: color-mix(in srgb, var(--brand) 12%, transparent); }
.assistant-chat-item a { color:inherit; text-decoration:none; }
.assistant-main { min-height:420px; display:flex; flex-direction:column; }
.assistant-msgs { flex:1; overflow-y:auto; max-height:52vh; display:flex; flex-direction:column; gap:10px; padding:4px; }
.msg { display:flex; }
.msg.me { justify-content:flex-end; }
.bubble { max-width:78%; padding:10px 14px; border-radius:14px; white-space:pre-wrap; word-break:break-word; }
.msg.me .bubble { background:var(--brand); color:#fff; border-bottom-right-radius:4px; }
.msg.ai .bubble { background: color-mix(in srgb, var(--muted) 12%, var(--card)); border-bottom-left-radius:4px; }

/* ─── Footer spacing for mobile tabs ─── */
body { padding-bottom: 0; }
@media (max-width: 640px) { body { padding-bottom: 70px; } }

/* ─── Responsive ─── */
@media (max-width: 900px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .docs-layout { grid-template-columns: 1fr; }
  .docs-toc { position: static; order: -1; }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-side { position: static; height: auto; }
  .form .row { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; top: 60px; left: 0; right: 0; flex-direction: column; background: var(--card); padding: 12px 20px 18px; border-bottom: 1px solid var(--line); }
  .site-nav.open { display: flex; }
  .mobile-tabs { display: block; }
  .compare-table { font-size: .8rem; }
  .compare-table td.label { width: 100px; }
}
/* — v4.1: touch targets + admin mobile nav — */
.site-foot a, footer a { display: inline-block; padding: 4px 2px; min-height: 24px; }
.card p a, .panel p a, p.small a { display: inline-block; padding: 2px 1px; }
.skip-link:focus { min-height: 24px; }
input[type="search"], input[type="text"], input[type="email"], input[type="url"], input:not([type]), select { min-height: 40px; }
.admin-side-foot a { display: inline-block; padding: 5px 3px; min-height: 26px; }
.data-table a.btn, table a { display: inline-flex; align-items: center; min-height: 26px; }
input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--brand); }
form.flex.gap select { max-width: 260px; }
summary.btn { min-height: 32px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }

/* admin mobile: burger + collapsible sidebar */
.admin-burger { display: none; position: fixed; top: 10px; right: 12px; z-index: 120; font-size: 1.3rem; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; cursor: pointer; }
@media (max-width: 900px) {
  .admin-burger { display: block; }
  .admin-shell { padding-top: 52px; }
  .admin-side { position: fixed; top: 0; right: 0; width: 230px; z-index: 110; transform: translateX(105%); transition: transform .2s ease; box-shadow: -4px 0 24px rgba(0,0,0,.25); }
  body.admin-nav-open .admin-side { transform: translateX(0); }
  body.admin-nav-open::after { content: ''; position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 100; }
}

/* — v4: landscape phones + reduced motion + focus visibility — */
@media (max-height: 480px) and (orientation: landscape) {
  .hero { min-height: 0; padding: 22px 18px; }
  .hero h1 { font-size: 1.6rem; }
  .hero-actions { flex-wrap: wrap; gap: 8px; }
  .grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
  .card { padding: 12px; }
  .kpi-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid var(--brand, #4f46e5);
  outline-offset: 2px;
  border-radius: 4px;
}
.skip-link:focus { position: fixed !important; top: 8px; left: 8px; z-index: 9999 !important; background: #fff; color: #111; padding: 10px 16px; border-radius: 8px; box-shadow: 0 4px 16px rgba(0,0,0,.25); }
table caption { caption-side: top; text-align: left; padding: 6px 0; font-weight: 600; }

/* guided tour */
#tour-overlay { position: fixed; inset: 0; z-index: 200; background: rgba(15,23,42,.45); backdrop-filter: blur(1px); }
#tour-spot { position: fixed; border-radius: 12px; box-shadow: 0 0 0 4000px rgba(15,23,42,.55); border: 2px solid var(--brand); pointer-events: none; transition: all .25s ease; }
#tour-card { position: fixed; z-index: 210; width: 300px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; box-shadow: 0 12px 40px rgba(0,0,0,.25); }

/* kpi icons (v4.5) */
.kpi { padding-left: 18px; }
.kpi .kpi-ico { position: absolute; right: 14px; top: 14px; color: var(--brand-500); opacity: .35; }
.kpi .kpi-ico .icon, .kpi .kpi-ico img { width: 22px; height: 22px; }

/* — LinkedIn OAuth entry points (branded) — */
.btn.btn-li { display: inline-flex; align-items: center; justify-content: center; gap: 10px; background: #0a66c2; color: #fff !important; border-color: #0a66c2; border-radius: var(--radius-md); padding: 11px 20px; font-weight: 600; text-decoration: none; }
.btn.btn-li:hover { background: #084e96; border-color: #084e96; text-decoration: none; }
.btn-li .li-glyph { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 5px; background: #fff; color: #0a66c2; font-weight: 800; font-size: .9rem; line-height: 1; }
.btn-li.block { display: flex; width: 100%; }
.auth-choice { max-width: 460px; margin: 0 auto; text-align: center; }
.auth-choice .or-divider { display: flex; align-items: center; gap: 12px; margin: 18px 0; color: var(--muted); font-size: .85rem; }
.auth-choice .or-divider::before, .auth-choice .or-divider::after { content: ''; flex: 1; border-top: 1px solid var(--line); }
.li-verified-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px; background: #dcfce7; color: #166534; border: 1px solid #86efac; font-size: .85rem; font-weight: 600; }

/* ══ v5.0.1 responsive refinement ══ */
/* u-hero on smaller screens: reduce height, tighter padding, smaller display text */
@media (max-width: 900px) {
  .u-hero { min-height: 300px; }
  .u-hero h1 { font-size: clamp(1.7rem, 7vw, 2.3rem); }
  .u-hero .sub { font-size: 1rem; }
  .u-hero .cta-row .btn-lg { width: 100%; justify-content: center; display: flex; }
}
@media (max-width: 560px) {
  .u-hero { min-height: 260px; border-radius: var(--radius-lg); padding: 22px 16px; }
  .u-eyebrow { letter-spacing: .10em; }
  .cta-row { display: grid; gap: 10px; width: 100%; max-width: 300px; margin-left: auto; margin-right: auto; }
  .cta-row .btn { width: 100%; justify-content: center; display: flex; }
  /* stat-strip: 2×2 grid on phone */
  .stat-strip { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat { padding: 14px 16px; }
  .stat .n { font-size: 1.5rem; }
  /* featured event: body before media (photo bottom) */
  .featured-event .fe-body { padding: 20px 18px; }
  .featured-event .fe-media { min-height: 160px; order: -1; }
  /* category rail: collapse into single column without image rail */
  .cat-card { grid-template-columns: 1fr 90px; min-height: 104px; }
  .cat-card .cat-body { padding: 12px 14px; }
  /* timeline tighter */
  .timeline::before { left: 17px; }
  .timeline li { padding-left: 52px; padding-bottom: 20px; }
  .timeline .t-num { width: 36px; height: 36px; font-size: .9rem; }
  /* breadcrumbs centered on event page */
  .u-hero .breadcrumb { font-size: .74rem; flex-wrap: wrap; }
  /* brand header: let brand text truncate, keep burger reachable */
  .brand-text { max-width: 46vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  /* section head on small screens */
  .sec-head h2 { line-height: 1.2; }
  /* hall of fame pager */
  .pager { justify-content: center; }
  /* compare grid */
  .compare-table th, .compare-table td { padding: 6px 7px; }
  /* registration forms */
  .form .row { grid-template-columns: 1fr; }
  /* timeline bubble wrap */
  .foot-bottom { flex-direction: column; gap: 6px; }
}
/* tablet: 2-col category cards still fit, feature grid 2-col */
@media (min-width: 561px) and (max-width: 900px) {
  .cat-card { grid-template-columns: 1fr 110px; }
  .stat-strip { grid-template-columns: 1fr 1fr; }
  .grid-2 { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)) !important; }
  .grid-3 { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)) !important; }
}
/* dense admin nav in drawer (mobile) — keep labels compact */
@media (max-width: 900px) {
  .nav-group-label { padding: 10px 12px 3px; font-size: .66rem; }
  .admin-side .nav-group { margin-bottom: 6px; }
  .kpi .kpi-value { font-size: 1.35rem; }
}
/* honor big phones in landscape: restore moderate hero height */
@media (max-height: 480px) and (orientation: landscape) {
  .u-hero { min-height: 220px; }
}

/* ══ v5.0.1 fixes ══ */
/* Buttons in site-nav: keep button's own color (Join-now was inheriting nav-link ink) */
.site-nav .btn { color: #fff; padding: 8px 16px; border-bottom: 0; }
.site-nav .btn:hover { text-decoration: none; transform: translateY(-1px); }
.site-nav .btn.btn-li { color: #fff !important; }
/* Nav collapse earlier: burger at ≤900px (was 640px), tablet-safe */
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; top: 60px; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--card); padding: 14px 20px 20px; border-bottom: 1px solid var(--line); box-shadow: 0 12px 28px rgba(15,23,42,.14); z-index: 60; }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 10px 4px; border-bottom: 1px solid var(--line); }
  .site-nav a:last-of-type { border-bottom: 0; }
  .site-nav .btn { margin-top: 6px; }
  .theme-toggle { margin-top: 10px; align-self: flex-start; }
}
/* breadcrumb link min target */
.breadcrumb a { display: inline-flex; align-items: center; min-height: 24px; padding: 2px 1px; }
/* hamburger icon contrast on dark or light */
.nav-toggle { color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; font-size: 1.2rem; }

@media (max-width: 560px) {
  .u-hero { margin-bottom: 16px; }
  .u-hero + .panel, .u-hero + .grid { margin-top: 0; }
  .panel { margin: 20px 0; }
}

/* chips inside dark heroes get a readable translucent surface */
.u-hero .chip, .u-hero .status-chip { background: rgba(255,255,255,.16) !important; color: #fff !important; border: 1px solid rgba(255,255,255,.3); backdrop-filter: blur(4px); }
.u-hero .chip a { color: #fff !important; }

/* ══ v5.0.2 theme fits ══ */
[data-theme="dark"] .status-chip[data-status="announced"] { background: #0c2b4d; color: #93c5fd; }
[data-theme="dark"] .status-chip[data-status="registration_open"] { background: #3b2f14; color: #fbbf24; }
[data-theme="dark"] .status-chip[data-status="live"] { background: #0a2e3d; color: #7dd3fc; }
[data-theme="dark"] .status-chip[data-status="voting_open"] { background: #2a1b52; color: #c4b5fd; }
[data-theme="dark"] .status-chip[data-status="judging"] { background: #093036; color: #67e8f9; }
[data-theme="dark"] .status-chip[data-status="finished"] { background: #08331d; color: #86efac; }
[data-theme="dark"] .stat::after { opacity: .85; }
[data-theme="dark"] .f-icon { box-shadow: none; }
/* gold button legibility on dark */
.btn-gold { color: #241604; }
/* print: clean exports of certificates/cert cards */
@media print {
  .site-header, .site-footer, .mobile-tabs, .theme-toggle, .admin-burger, #toast-container, .cookie-bar, .no-print { display: none !important; }
  .u-hero { background: none !important; color: #000 !important; min-height: 0; padding: 10px; border: none; box-shadow: none; }
  .u-hero .sub, .u-hero p { color: #333 !important; }
  body { padding-bottom: 0 !important; }
  .card, .panel, .stat { box-shadow: none !important; border: 1px solid #ddd; page-break-inside: avoid; }
}

@media (max-width: 900px) {
  .spk-grid { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .spk-grid { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); }
}

/* speakers grid definite behavior */
.spk-grid { --spk-min: 280px; }
.spk-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(var(--spk-min), 1fr)); }
@media (max-width: 640px) { .spk-grid { --spk-min: 0; grid-template-columns: 1fr; } }


/* form progress steppers */
.stepper-nav { position: sticky; top: 0; z-index: 50; background: var(--card); border-bottom: 1px solid var(--line); padding: 10px 0; margin-bottom: 18px; border-radius: var(--radius); }
.stepper-nav ol { display: flex; gap: 0; list-style: none; margin: 0; padding: 0; }
.stepper-nav .step { flex: 1; text-align: center; padding: 8px 12px; position: relative; color: var(--muted); font-size: .82rem; font-weight: 600; }
.stepper-nav .step::before { content: ''; position: absolute; top: 50%; left: -50%; width: 100%; height: 2px; background: var(--line); z-index: -1; }
.stepper-nav .step:first-child::before { display: none; }
.stepper-nav .step.current { color: var(--brand-500); }
.stepper-nav .step.current::before { background: var(--brand-500); }

/* ─── FLA theme: winner-card & photo galleries ─── */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin: 14px 0 22px; }
.gallery-grid a { display: block; border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--line); background: var(--card); }
.gallery-grid img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; transition: transform var(--dur) var(--ease-out); }
.gallery-grid a:hover img { transform: scale(1.05); }
.gallery-grid a:hover { text-decoration: none; border-color: var(--brand-500); }
@media (max-width: 560px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } }
/* founder blockquote on small screens */
@media (max-width: 640px) { .card[style*="grid-template-columns:auto 1fr"] { grid-template-columns: 1fr !important; text-align: center; } }
