/* ═══════════════════════════════════════════════
   KALMUN – Global Styles | Dark Blue Theme
   Kocaeli Anadolu Lisesi · Mavi & Beyaz
   ═══════════════════════════════════════════════ */

:root {
  /* Core Palette */
  --bg-base:        #050810;
  --bg-surface:     #080c18;
  --bg-card:        #0d1220;
  --bg-card-hover:  #111828;

  /* Accent – Okul Renkleri: Mavi & Beyaz */
  --gold:           #3b82f6;   /* primary blue  */
  --gold-light:     #93c5fd;   /* light blue    */
  --gold-dim:       rgba(59, 130, 246, 0.12);

  /* Text */
  --text-primary:   #f0f4ff;
  --text-secondary: #7e8fb8;
  --text-muted:     #3d4870;

  /* Borders */
  --border:         rgba(255, 255, 255, 0.06);
  --border-active:  rgba(59, 130, 246, 0.4);

  /* Effects */
  --glow-blue:     rgba(59, 130, 246, 0.25);
  --glow-gold:     rgba(59, 130, 246, 0.25);

  /* Typography */
  --font-display:  'Playfair Display', Georgia, serif;
  --font-body:     'Inter', system-ui, sans-serif;

  /* Layout */
  --max-w:          1200px;
  --section-gap:    100px;
  --radius:         12px;
  --radius-lg:      20px;

  /* Transitions */
  --ease:           cubic-bezier(.4, 0, .2, 1);
  --transition:     .3s var(--ease);
}

/* ════════════════════════════════
   LIGHT THEME
════════════════════════════════ */
[data-theme="light"] {
  --bg-base: #f8fafc;
  --bg-surface: #f1f5f9;
  --bg-card: #ffffff;
  --bg-card-hover: #f8fafc;
  --gold: #2563eb;
  --gold-light: #1d4ed8;
  --gold-dim: rgba(37, 99, 235, 0.07);
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --border: rgba(15, 23, 42, 0.08);
  --border-active: rgba(37, 99, 235, 0.3);
  --glow-blue: rgba(59, 130, 246, 0.1);
  --glow-gold: rgba(59, 130, 246, 0.1);
}

[data-theme="light"] ::-webkit-scrollbar-thumb { background: rgba(37, 99, 235, 0.2); }

/* Navbar – light */
[data-theme="light"] .navbar.scrolled {
  background: rgba(248, 250, 252, 0.92);
  box-shadow: 0 1px 3px rgba(0, 0, 0, .06);
}
[data-theme="light"] .nav-links a:hover { background: rgba(0, 0, 0, .04); }
[data-theme="light"] .hamburger:hover { background: rgba(0, 0, 0, .04); }

/* Hero – light */
[data-theme="light"] .hero-orb-1 { background: radial-gradient(circle, rgba(37, 99, 235, .12) 0%, transparent 70%); opacity: .5; }
[data-theme="light"] .hero-orb-2 { background: radial-gradient(circle, rgba(37, 99, 235, .08) 0%, transparent 70%); opacity: .4; }
[data-theme="light"] .hero-mun {
  background: linear-gradient(135deg, #1d4ed8 0%, #3b82f6 60%, #2563eb 100%);
  -webkit-background-clip: text;
  background-clip: text;
}
[data-theme="light"] .hero-stats { background: rgba(255, 255, 255, .7); backdrop-filter: blur(12px); }

/* Contest – light */
[data-theme="light"] .contest-promo {
  background:
    radial-gradient(circle at top left, rgba(59,130,246,.06), transparent 32%),
    radial-gradient(circle at bottom right, rgba(245,158,11,.06), transparent 30%),
    var(--bg-surface);
}
[data-theme="light"] .contest-promo-card { background: rgba(255,255,255,.8); }
[data-theme="light"] .contest-promo-card::before {
  background:
    linear-gradient(120deg, rgba(96,165,250,.04), transparent 42%),
    linear-gradient(300deg, rgba(245,158,11,.04), transparent 36%);
}
[data-theme="light"] .contest-winner-box { background: rgba(241,245,249,.9); border-color: rgba(0,0,0,.06); }
[data-theme="light"] .contest-chip { background: rgba(0,0,0,.03); border-color: rgba(0,0,0,.06); }

/* About – light */
[data-theme="light"] .visual-card::before { background: linear-gradient(90deg, transparent, rgba(37,99,235,.08), transparent); }

/* Cards – light */
[data-theme="light"] .card-topic { background: rgba(59,130,246,.04); }
[data-theme="light"] .committee-card:hover { border-color: rgba(37,99,235,.15); }

/* Timeline – light */
[data-theme="light"] .tl-dot { border-color: var(--bg-surface); }

/* Team – light */
[data-theme="light"] .team-card-cover { box-shadow: 0 2px 12px rgba(0,0,0,.06); }

/* Contact – light */
[data-theme="light"] .contact-map::before { opacity: .15; }

/* Footer – light */
[data-theme="light"] .footer-bottom { border-top-color: rgba(0,0,0,.06); }

/* Forms – light */
[data-theme="light"] .form-group input,
[data-theme="light"] .form-group select,
[data-theme="light"] .form-group textarea { background: #fff; }

/* Auth modal – light */
[data-theme="light"] .auth-modal { background: #fff; border-color: rgba(0,0,0,.08); }
[data-theme="light"] .auth-field input { background: #f8fafc; border-color: rgba(0,0,0,.1); color: #0f172a; }
[data-theme="light"] .auth-tabs { background: rgba(0,0,0,.03); }
[data-theme="light"] .auth-tab { color: #64748b; }

/* Board page – light */
[data-theme="light"] .board-hero { background: var(--bg-surface); }
[data-theme="light"] .board-tab.active { background: rgba(37,99,235,.1); color: #1d4ed8; border-color: rgba(37,99,235,.25); }
[data-theme="light"] .board-tab:hover:not(.active) { background: rgba(0,0,0,.03); }

/* Gallery – light */
[data-theme="light"] .gallery-item { box-shadow: 0 1px 4px rgba(0,0,0,.06); }
[data-theme="light"] .gallery-item:hover { box-shadow: 0 6px 20px rgba(0,0,0,.1); }
[data-theme="light"] .gallery-filters-bar { background: var(--bg-surface); }
[data-theme="light"] .filter-btn { border-color: rgba(0,0,0,.08); }
[data-theme="light"] .filter-btn.active { background: rgba(37,99,235,.08); border-color: rgba(37,99,235,.25); }
[data-theme="light"] .vote-sheet { background: #fff; border-color: rgba(0,0,0,.06); }
[data-theme="light"] .vote-sheet::before { background: rgba(0,0,0,.12); }
[data-theme="light"] .vote-header { border-bottom-color: rgba(0,0,0,.06); }
[data-theme="light"] .vote-card { background: rgba(0,0,0,.02); border-color: rgba(0,0,0,.05); }
[data-theme="light"] .vote-name { color: #0f172a; }
[data-theme="light"] .vote-subtitle { color: #64748b; }
[data-theme="light"] .vote-note { color: #94a3b8; }
[data-theme="light"] .my-vote-indicator { background: rgba(37,99,235,.05); border-color: rgba(37,99,235,.15); color: #475569; }

/* Upload modal – light */
[data-theme="light"] .up-modal { background: #fff; border-color: rgba(0,0,0,.08); }
[data-theme="light"] .up-modal-header { border-bottom-color: rgba(0,0,0,.06); }
[data-theme="light"] .up-modal-header h3 { color: #0f172a; }
[data-theme="light"] .up-modal-footer { border-top-color: rgba(0,0,0,.06); }
[data-theme="light"] .drop-zone { background: #f8fafc; border-color: rgba(37,99,235,.25); }
[data-theme="light"] .drop-zone:hover,
[data-theme="light"] .drop-zone.drag-over { background: rgba(37,99,235,.04); }
[data-theme="light"] .up-form-field input,
[data-theme="light"] .up-form-field select { background: #f8fafc; border-color: rgba(0,0,0,.1); color: #0f172a; }

/* Lightbox – light */
[data-theme="light"] .lightbox { background: rgba(255,255,255,.95); }
[data-theme="light"] .lb-close { background: rgba(0,0,0,.06); border-color: rgba(0,0,0,.1); color: #334155; }
[data-theme="light"] .lb-close:hover { background: rgba(0,0,0,.12); }
[data-theme="light"] .lb-nav { background: rgba(0,0,0,.05); border-color: rgba(0,0,0,.08); color: #334155; }
[data-theme="light"] .lb-nav:hover { background: rgba(0,0,0,.1); }
[data-theme="light"] .lb-caption { color: #0f172a; }
[data-theme="light"] .lb-meta { color: #64748b; }
[data-theme="light"] .lb-counter { color: #94a3b8; }
[data-theme="light"] .lb-download-btn { background: rgba(0,0,0,.04); border-color: rgba(0,0,0,.1); color: #334155; }
[data-theme="light"] .lb-download-btn:hover { background: rgba(0,0,0,.08); }

/* Selection bar – light */
[data-theme="light"] .selection-bar { background: #fff; border-top-color: rgba(37,99,235,.2); box-shadow: 0 -2px 12px rgba(0,0,0,.06); }

/* Register page – light */
[data-theme="light"] .reg-glow { background: radial-gradient(circle, rgba(37,99,235,.06) 0%, transparent 70%); }
[data-theme="light"] .register-box { background: #fff; }
[data-theme="light"] .step-bubble { border-color: rgba(0,0,0,.12); color: #94a3b8; }
[data-theme="light"] .step-item.active .step-bubble { color: var(--gold); border-color: var(--gold); }
[data-theme="light"] .step-connector { background: rgba(0,0,0,.08); }
[data-theme="light"] .step-lbl { color: #94a3b8; }
[data-theme="light"] .checkbox-custom { background: #fff; }

/* Mobile – light */
@media (max-width: 768px) {
  [data-theme="light"] .navbar {
    background: rgba(248, 250, 252, 0.97);
    border-bottom-color: rgba(0,0,0,.06);
  }
  [data-theme="light"] .navbar.scrolled { box-shadow: 0 1px 8px rgba(0,0,0,.06); }
  [data-theme="light"] .mob-drawer { background: #fff; border-left-color: rgba(0,0,0,.06); }
  [data-theme="light"] .mob-drawer-hd { border-bottom-color: rgba(0,0,0,.06); }
  [data-theme="light"] .mob-drawer-nav a { color: #475569; border-bottom-color: rgba(0,0,0,.04); }
  [data-theme="light"] .mob-drawer-nav a:hover { color: #0f172a; background: rgba(59,130,246,.04); }
  [data-theme="light"] .mob-backdrop { background: rgba(0,0,0,.2); }
  [data-theme="light"] .hero-stats .stat { background: rgba(255,255,255,.5); border-color: rgba(0,0,0,.04); }
  [data-theme="light"] .team-slide-card .team-card-cover { box-shadow: 0 8px 32px rgba(0,0,0,.1); }
}

/* ─── Reset ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: rgba(59, 130, 246, 0.25) transparent;
  /* Better mobile text size adjustment */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { border: none; background: none; cursor: pointer; font: inherit; }
select, input, textarea { font: inherit; }

/* ─── Scrollbar ─── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--gold-dim); border-radius: 99px; }

/* ─── Container ─── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── Sections ─── */
.section { padding: var(--section-gap) 0; }

.section-label {
  display: inline-block;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 540px;
}

.section-header { text-align: center; margin-bottom: 64px; }
.section-header .section-desc { margin: 0 auto; }

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 8px;
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .02em;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, #2563eb 0%, #3b82f6 60%, #60a5fa 100%);
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(59, 130, 246, 0.5);
}

.btn-ghost {
  border: 1px solid var(--border-active);
  color: var(--gold-light);
}
.btn-ghost:hover {
  background: var(--gold-dim);
  border-color: var(--gold);
}

.btn-sm {
  padding: 9px 20px;
  font-size: .82rem;
}

.btn-full { width: 100%; justify-content: center; }

/* ─── Reveal Animation ─── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .65s var(--ease), transform .65s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ════════════════════════════════
   NAVBAR
════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 18px 0;
  transition: background var(--transition), padding var(--transition), box-shadow var(--transition);
  background: transparent;
}

.navbar.scrolled {
  background: rgba(7, 8, 15, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 12px 0;
  box-shadow: 0 1px 0 var(--border);
}

.nav-container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: .08em;
  white-space: nowrap;
  flex-shrink: 0;
}
.logo-kal { color: var(--text-primary); }
.logo-mun { color: var(--gold); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a {
  font-size: .85rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 8px 14px;
  border-radius: 6px;
  transition: color var(--transition), background var(--transition);
}
.nav-links a:hover { color: var(--text-primary); background: rgba(255,255,255,.04); }

.nav-cta {
  background: var(--gold-dim) !important;
  color: var(--gold-light) !important;
  border: 1px solid var(--border-active) !important;
}
.nav-cta:hover {
  background: linear-gradient(135deg, var(--gold), var(--gold-light)) !important;
  color: #07080f !important;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 8px;
  border-radius: 8px;
  border: none;
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
  transition: background var(--transition);
}
.hamburger:hover { background: rgba(255,255,255,.06); }
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
  pointer-events: none;
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ════════════════════════════════
   HERO
════════════════════════════════ */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 120px 24px 80px;
  text-align: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 20%, transparent 100%);
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .35;
}
.hero-orb-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, #1e3a8a 0%, transparent 70%);
  top: -200px;
  left: -150px;
}
.hero-orb-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #1e3a6e 0%, transparent 70%);
  bottom: -100px;
  right: -100px;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border-active);
  background: var(--gold-dim);
  color: var(--gold-light);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 8px 20px;
  border-radius: 99px;
  margin-bottom: 36px;
}

.badge-dot {
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .5; transform: scale(.8); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(5rem, 14vw, 10rem);
  font-weight: 700;
  line-height: .95;
  letter-spacing: -.02em;
  margin-bottom: 8px;
}
.hero-kal { color: var(--text-primary); }
.hero-mun {
  background: linear-gradient(135deg, #2563eb 0%, #60a5fa 60%, #bfdbfe 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-year {
  display: block;
  font-size: clamp(1.2rem, 3vw, 2rem);
  font-weight: 400;
  letter-spacing: .4em;
  color: var(--text-muted);
  margin-top: 8px;
}

.hero-tagline {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.5vw, 1.6rem);
  font-style: italic;
  color: var(--gold-light);
  margin: 24px 0 16px;
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.75;
  max-width: 580px;
  margin: 0 auto 40px;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 64px;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255,255,255,.02);
  backdrop-filter: blur(8px);
  padding: 20px 40px;
  width: fit-content;
  margin: 0 auto;
}

.stat { text-align: center; padding: 0 32px; }
.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold-light);
  line-height: 1.1;
}
.stat-label {
  font-size: .75rem;
  color: var(--text-muted);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

.hero-scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: .7rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  animation: float 3s ease-in-out infinite;
}
.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--text-muted), transparent);
}
@keyframes float {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ════════════════════════════════
   PHOTO CONTEST
════════════════════════════════ */
.contest-promo {
  padding-top: 24px;
  background:
    radial-gradient(circle at top left, rgba(59,130,246,.12), transparent 32%),
    radial-gradient(circle at bottom right, rgba(245,158,11,.12), transparent 30%),
    var(--bg-surface);
}

.contest-promo-card {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(260px, .9fr);
  gap: 32px;
  align-items: center;
  background: linear-gradient(135deg, rgba(255,255,255,.035), rgba(255,255,255,.015));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 34px;
  position: relative;
  overflow: hidden;
}

.contest-promo-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(96,165,250,.08), transparent 42%),
    linear-gradient(300deg, rgba(245,158,11,.08), transparent 36%);
  pointer-events: none;
}

.contest-copy,
.contest-actions-wrap {
  position: relative;
  z-index: 1;
}

.contest-copy .section-title {
  margin-bottom: 14px;
}

.contest-copy .section-desc {
  margin-bottom: 0;
  max-width: 640px;
}

.contest-winner-box {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 20px;
  border-radius: 18px;
  background: rgba(8,12,24,.8);
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.03);
}

.contest-winner-label {
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.contest-winner-box strong {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.6vw, 1.9rem);
  color: var(--gold-light);
}

.contest-winner-note {
  font-size: .9rem;
  color: var(--text-secondary);
}

.contest-actions-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  justify-self: end;
}

.contest-badge-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.contest-chip {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.04);
  color: var(--text-primary);
  font-size: .8rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* ════════════════════════════════
   ABOUT
════════════════════════════════ */
.about { background: var(--bg-surface); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-text p {
  color: var(--text-secondary);
  margin-bottom: 16px;
  font-size: 1.02rem;
}

.about-features {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--transition), background var(--transition);
}
.feature-item:hover { border-color: var(--border-active); background: var(--bg-card-hover); }

.feature-icon { font-size: 1.4rem; flex-shrink: 0; margin-top: 2px; }

.feature-item strong {
  display: block;
  font-size: .9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}
.feature-item span { font-size: .82rem; color: var(--text-secondary); }

/* About Visual */
.about-visual { display: flex; justify-content: center; }

.visual-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  width: 100%;
  max-width: 400px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.visual-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-dim), transparent);
}

.visual-un-logo { margin-bottom: 24px; }
.un-circle {
  width: 80px;
  height: 80px;
  border: 2px solid var(--border-active);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--gold);
  background: var(--gold-dim);
}

.visual-lines {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}
.vl {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  animation: vl-anim 3s ease-in-out infinite;
}
.vl:nth-child(2) { animation-delay: .5s; }
.vl:nth-child(3) { animation-delay: 1s; }
@keyframes vl-anim {
  0%, 100% { opacity: .3; }
  50% { opacity: 1; }
}

.visual-quote blockquote {
  font-size: .82rem;
  color: var(--text-muted);
  font-style: italic;
  line-height: 1.7;
  margin-bottom: 10px;
}
.visual-quote cite { font-size: .75rem; color: var(--gold); }

/* ════════════════════════════════
   COMMITTEES
════════════════════════════════ */
.committees { background: var(--bg-base); }

.committees-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.committee-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: relative;
  overflow: hidden;
  transition: border-color var(--transition), transform var(--transition), background var(--transition);
  transition-delay: calc(var(--delay, 0) * 1ms);
}
.committee-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255,255,255,.12);
  transform: translateY(-4px);
}

.card-accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--color);
  opacity: .8;
}

.card-tag {
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.committee-card h3 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.card-full {
  font-size: .82rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.card-topic {
  font-size: .85rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 20px;
  padding: 12px;
  background: rgba(255,255,255,.03);
  border-radius: 8px;
  border-left: 2px solid var(--color);
}

.card-slots {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .8rem;
  color: var(--text-muted);
}

/* ════════════════════════════════
   SCHEDULE
════════════════════════════════ */
.schedule { background: var(--bg-surface); }

.timeline {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 111px;
  top: 16px;
  bottom: 16px;
  width: 1px;
  background: linear-gradient(to bottom, var(--border-active), var(--border), var(--border-active));
}

.tl-item {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding: 32px 0;
}

.tl-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gold);
  border: 2px solid var(--bg-surface);
  box-shadow: 0 0 0 4px rgba(59,130,246,.2);
  flex-shrink: 0;
  margin-top: 6px;
  position: relative;
  z-index: 1;
}

.tl-date {
  font-size: .8rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: .06em;
  text-transform: uppercase;
  width: 80px;
  flex-shrink: 0;
  text-align: right;
  padding-top: 4px;
}

.tl-body {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  transition: border-color var(--transition);
}
.tl-body:hover { border-color: var(--border-active); }

.tl-body h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.tl-body p { font-size: .87rem; color: var(--text-secondary); margin-bottom: 12px; }
.tl-time {
  font-size: .75rem;
  color: var(--gold);
  font-weight: 500;
  letter-spacing: .04em;
}

/* ════════════════════════════════
   TEAM
════════════════════════════════ */
.team { background: var(--bg-base); }

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.team-carousel-head {
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.team-carousel-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.team-nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-active);
  background: var(--bg-card);
  color: var(--gold-light);
  font-size: 1.1rem;
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
}

.team-nav-btn:hover:not(:disabled) {
  background: var(--gold-dim);
  border-color: var(--gold);
}

.team-nav-btn:disabled {
  opacity: .35;
  cursor: not-allowed;
}

.team-page-indicator {
  min-width: 62px;
  text-align: center;
  font-size: .76rem;
  letter-spacing: .08em;
  color: var(--text-muted);
}

/* ── Cover-style team cards (photo fills card) ── */
.team-card-cover {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: transform var(--transition), border-color var(--transition);
}
.team-card-cover:hover {
  border-color: var(--border-active);
  transform: translateY(-4px);
}

.card-cover-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: auto;
  -webkit-image-rendering: auto;
}

.card-cover-initials {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--gold-light);
  background: linear-gradient(145deg, var(--bg-card) 0%, color-mix(in srgb, var(--member-color, #3b82f6) 20%, var(--bg-base)) 100%);
}

.card-cover-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 48px 16px 16px;
  background: linear-gradient(to top, rgba(0,0,0,.88) 0%, rgba(0,0,0,.45) 55%, transparent 100%);
  color: #fff;
}

.card-cover-role {
  display: block;
  font-size: .7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: rgba(255,255,255,.65);
  margin-bottom: 4px;
}

.card-cover-name {
  font-family: var(--font-body);
  font-size: .95rem;
  font-weight: 600;
  line-height: 1.3;
  color: #fff;
}

/* Desktop card wrapper (used for slide animation) */
.team-card-wrap {
  will-change: transform, opacity;
}

/* ── Mobile slide viewport ── */
.team-slide-viewport {
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: center;
  min-height: 360px;
}
.team-slide-card {
  width: 100%;
  max-width: 320px;
  will-change: transform, opacity;
}

/* Legacy card styles (kept for board.html fallback) */
.team-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 20px;
  text-align: center;
  transition: border-color var(--transition), transform var(--transition);
}
.team-card:hover {
  border-color: var(--border-active);
  transform: translateY(-4px);
}

.team-avatar { margin-bottom: 20px; }
.avatar-placeholder {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--gold-dim);
  border: 2px solid var(--border-active);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--gold-light);
  margin: 0 auto;
}

.team-card h4 {
  font-size: .95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.team-card span {
  font-size: .78rem;
  color: var(--text-muted);
}

/* ════════════════════════════════
   REGISTER
════════════════════════════════ */
.register { background: var(--bg-surface); }

.register-box {
  max-width: 680px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}

.reg-glow {
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--glow-gold) 0%, transparent 70%);
  pointer-events: none;
}

.reg-content { padding: 56px 48px; position: relative; }

.reg-form { margin-top: 36px; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.form-group label {
  font-size: .8rem;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: .03em;
}

.form-group input,
.form-group select {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 16px;
  color: var(--text-primary);
  font-size: .9rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  -webkit-appearance: none;
  appearance: none;
}
.form-group input::placeholder { color: var(--text-muted); }
.form-group select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%234a4f6e'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 16px; padding-right: 40px; }

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-dim);
}

/* Form section titles */
.form-section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin: 28px 0 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.form-section-title:first-of-type { margin-top: 0; }

.form-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: var(--gold-dim);
  border: 1px solid var(--border-active);
  color: var(--gold-light);
  font-size: .72rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* Required asterisk */
.req { color: #f87171; font-weight: 600; }

/* Hint text */
.form-hint {
  font-size: .73rem;
  color: var(--text-muted);
  margin-top: 4px;
  display: block;
}
.char-counter { text-align: right; }

/* Textarea */
.form-group textarea {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 16px;
  color: var(--text-primary);
  font-size: .9rem;
  resize: vertical;
  min-height: 88px;
  transition: border-color var(--transition), box-shadow var(--transition);
  -webkit-appearance: none;
  appearance: none;
  font-family: var(--font-body);
}
.form-group textarea::placeholder { color: var(--text-muted); }
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-dim);
}

/* Form link */
.form-link {
  color: var(--gold-light);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Checkbox */
.form-checkbox-group { margin-bottom: 12px; }

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  font-size: .85rem;
  color: var(--text-secondary);
  line-height: 1.55;
}
.checkbox-label input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.checkbox-custom {
  width: 18px;
  height: 18px;
  min-width: 18px;
  border-radius: 5px;
  border: 1px solid var(--border-active);
  background: var(--bg-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
  transition: background var(--transition), border-color var(--transition);
}
.checkbox-label input:checked + .checkbox-custom {
  background: var(--gold);
  border-color: var(--gold);
}
.checkbox-label input:checked + .checkbox-custom::after {
  content: '';
  display: block;
  width: 5px;
  height: 9px;
  border: 2px solid #fff;
  border-top: none;
  border-left: none;
  transform: rotate(45deg) translate(-1px, -1px);
}

.form-success {
  display: none;
  text-align: center;
  padding: 48px 0;
}
.form-success.show { display: block; }

.success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--gold-dim);
  border: 2px solid var(--gold);
  color: var(--gold-light);
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}
.form-success h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 8px;
  color: var(--text-primary);
}
.form-success p { color: var(--text-secondary); }

/* ════════════════════════════════
   CONTACT
════════════════════════════════ */
.contact { background: var(--bg-base); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.contact-items {
  margin: 32px 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: .9rem;
  color: var(--text-secondary);
}
.contact-item a:hover { color: #93c5fd; }
.ci-icon {
  width: 36px;
  height: 36px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-btn {
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: var(--transition);
}
.social-btn svg { width: 18px; height: 18px; }
.social-btn:hover {
  border-color: var(--border-active);
  color: #93c5fd;
  background: rgba(59,130,246,.12);
}

.contact-map {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  position: relative;
  overflow: hidden;
}
.contact-map::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(0deg, var(--border) 0, var(--border) 1px, transparent 1px, transparent 40px),
    repeating-linear-gradient(90deg, var(--border) 0, var(--border) 1px, transparent 1px, transparent 40px);
  opacity: .5;
}
.map-pin { font-size: 2.5rem; position: relative; z-index: 1; }
.contact-map span { position: relative; z-index: 1; font-size: .9rem; color: var(--text-secondary); }

/* ════════════════════════════════
   FOOTER
════════════════════════════════ */
.footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  padding: 56px 0 32px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand .nav-logo { margin-bottom: 12px; font-size: 1.3rem; }
.footer-brand p { font-size: .82rem; color: var(--text-muted); line-height: 1.6; }

.footer-links { display: flex; gap: 60px; }

.fl-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.fl-col strong {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.fl-col a {
  font-size: .85rem;
  color: var(--text-secondary);
  transition: color var(--transition);
}
.fl-col a:hover { color: #93c5fd; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  font-size: .78rem;
  color: var(--text-muted);
}

/* ════════════════════════════════
   LANGUAGE TOGGLE
════════════════════════════════ */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: 10px;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--text-secondary);
  transition: color var(--transition), background var(--transition);
  flex-shrink: 0;
  cursor: pointer;
  border: none;
  background: transparent;
}
.lang-toggle:hover { background: rgba(255,255,255,.06); color: var(--text-primary); }
[data-theme="light"] .lang-toggle:hover { background: rgba(0,0,0,.05); }
.lang-icon { flex-shrink: 0; }
.lang-label { line-height: 1; }

/* ════════════════════════════════
   THEME TOGGLE
════════════════════════════════ */
.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: color var(--transition), background var(--transition);
  flex-shrink: 0;
}
.theme-toggle:hover { background: rgba(255,255,255,.06); color: var(--text-primary); }
[data-theme="light"] .theme-toggle:hover { background: rgba(0,0,0,.05); }
.theme-icon-moon { display: none; }
[data-theme="light"] .theme-icon-sun { display: none; }
[data-theme="light"] .theme-icon-moon { display: block; }

/* ════════════════════════════════
   COUNTDOWN
════════════════════════════════ */
.hero-countdown {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 32px;
}
.cd-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 56px;
}
.cd-num {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
}
.cd-label {
  font-size: .65rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.cd-sep {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--text-muted);
  padding-bottom: 16px;
}

/* ════════════════════════════════
   FAQ
════════════════════════════════ */
.faq { background: var(--bg-surface); }
.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition);
}
.faq-item.open { border-color: var(--border-active); }
.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  font-size: .95rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  transition: color var(--transition);
}
.faq-q:hover { color: var(--gold); }
.faq-icon {
  flex-shrink: 0;
  transition: transform .3s var(--ease);
  color: var(--text-muted);
  font-size: 1.2rem;
}
.faq-item.open .faq-icon { transform: rotate(45deg); color: var(--gold); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s var(--ease);
}
.faq-item.open .faq-a { max-height: 300px; }
.faq-a-inner {
  padding: 0 22px 18px;
  font-size: .9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ════════════════════════════════
   MOBILE-FIRST RESPONSIVE
════════════════════════════════ */
.hide-sm { display: inline; }

/* ── Touch optimizations (all screen sizes) ── */
button, a, input, select {
  touch-action: manipulation;
}

/* ── Tablet ── */
@media (max-width: 1024px) {
  .committees-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-visual { display: none; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .contest-promo-card { grid-template-columns: 1fr; }
  .contest-actions-wrap { justify-self: start; }
}

/* ── Mobile (768px altı) ── */
@media (max-width: 768px) {
  :root {
    --section-gap: 64px;
    --radius-lg: 16px;
  }

  /* Container daha nefes alan */
  .container { padding: 0 16px; }

  /* ── Mobile Nav ── */
  .navbar {
    /* Always solid on mobile — no see-through issues */
    background: rgba(5, 8, 16, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 0;
    border-bottom: 1px solid var(--border);
  }
  .navbar.scrolled { padding: 0; box-shadow: 0 1px 12px rgba(0,0,0,.4); }
  .nav-container {
    padding: 0 16px;
    gap: 8px;
    height: 58px;  /* fixed height — nothing shifts on scroll */
  }
  .nav-logo { font-size: 1.3rem; }

  .nav-links {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(5, 8, 16, 0.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    gap: 0;
    transform: translateX(100%);
    transition: transform .3s cubic-bezier(.4,0,.2,1);
    z-index: 999;
    padding: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .nav-links.open { transform: translateX(0); }

  /* Spacer row for navbar height at top */
  .nav-links::before {
    content: '';
    display: block;
    height: 72px;
    flex-shrink: 0;
  }

  .nav-links li { width: 100%; text-align: left; }
  .nav-links a {
    display: flex;
    font-size: 1.15rem;
    font-weight: 500;
    padding: 16px 28px;
    color: var(--text-secondary);
    border-radius: 0;
    border-bottom: 1px solid rgba(255,255,255,.04);
    letter-spacing: .01em;
  }
  .nav-links a:hover, .nav-links a:active {
    color: var(--text-primary);
    background: rgba(59,130,246,.07);
  }
  .nav-links a.active-page { color: #3b82f6 !important; background: rgba(59,130,246,.06) !important; }
  .nav-cta {
    margin: 20px 24px 0 !important;
    background: linear-gradient(135deg, #2563eb, #3b82f6) !important;
    color: #fff !important;
    border: none !important;
    padding: 16px 24px !important;
    font-size: 1rem !important;
    border-radius: 14px !important;
    justify-content: center;
    text-align: center;
  }
  /* User chip at bottom of mobile overlay */
  #navUserLi {
    margin-top: 8px !important;
    border-top: 1px solid rgba(255,255,255,.08) !important;
    padding: 20px 24px 32px !important;
  }
  #navUserLi .nav-user-chip {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  #navUserLi .nav-user-name {
    font-size: 1.05rem;
    font-weight: 600;
    color: #e8ecf1;
  }
  #navUserLi .nav-user-name::before {
    content: '👤 ';
  }
  #navUserLi .nav-logout-btn {
    padding: 11px 28px;
    font-size: .9rem;
    border-radius: 10px;
    background: rgba(239,68,68,.1);
    border-color: rgba(239,68,68,.3);
    color: #f87171;
    font-weight: 500;
    align-self: flex-start;
  }
  .hamburger { display: flex; }

  /* Hide original desktop nav-links on mobile — drawer replaces it */
  .nav-links { display: none !important; }

  /* ─── Mobile Drawer ─────────────────────────────────────── */
  .mob-backdrop {
    display: none;
    position: fixed; inset: 0;
    background: rgba(0,0,0,.55);
    z-index: 1998;
  }
  .mob-backdrop.open { display: block; }

  .mob-drawer {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: min(300px, 82vw);
    background: #080b14;
    border-left: 1px solid rgba(255,255,255,.08);
    z-index: 1999;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform .3s cubic-bezier(.4,0,.2,1);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .mob-drawer.open { transform: translateX(0); }

  .mob-drawer-hd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    height: 64px;
    border-bottom: 1px solid rgba(255,255,255,.08);
    flex-shrink: 0;
  }
  .mob-drawer-x {
    width: 40px; height: 40px;
    border: none; border-radius: 8px;
    background: transparent;
    color: var(--text-secondary);
    font-size: 1.2rem;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background var(--transition);
  }
  .mob-drawer-x:hover { background: rgba(255,255,255,.08); color: var(--text-primary); }

  .mob-drawer-nav {
    list-style: none;
    padding: 8px 0;
    flex: 1;
  }
  .mob-drawer-nav li { width: 100%; }
  .mob-drawer-nav a {
    display: flex;
    font-size: 1.05rem;
    font-weight: 500;
    padding: 15px 24px;
    color: var(--text-secondary);
    border-bottom: 1px solid rgba(255,255,255,.04);
    letter-spacing: .01em;
    transition: color var(--transition), background var(--transition);
  }
  .mob-drawer-nav a:hover, .mob-drawer-nav a:active {
    color: var(--text-primary);
    background: rgba(59,130,246,.07);
  }
  .mob-drawer-nav a.active-page { color: #3b82f6; }
  .mob-drawer-nav .mob-cta {
    margin: 16px 20px;
    background: linear-gradient(135deg, #2563eb, #3b82f6) !important;
    color: #fff !important;
    border-radius: 12px !important;
    justify-content: center;
    border-bottom: none !important;
  }

  .mob-drawer-user {
    padding: 20px 24px 36px;
    border-top: 1px solid rgba(255,255,255,.08);
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  .mob-drawer-username {
    font-size: 1rem;
    font-weight: 600;
    color: #e8ecf1;
  }
  .mob-drawer-username::before { content: '👤 '; }
  .mob-drawer-logout {
    align-self: flex-start;
    padding: 10px 24px;
    font-size: .9rem;
    border-radius: 10px;
    background: rgba(239,68,68,.1);
    border: 1px solid rgba(239,68,68,.3);
    color: #f87171;
    font-weight: 500;
    cursor: pointer;
  }

  /* ── Hero mobile ── */
  .hero { padding: 90px 16px 60px; min-height: auto; }
  .hero-title { font-size: clamp(3rem, 16vw, 5rem); }
  .hero-tagline { font-size: .95rem; margin: 16px 0 10px; }
  .hero-sub { font-size: .88rem; line-height: 1.7; margin-bottom: 28px; }
  .hero-badge { font-size: .68rem; padding: 6px 14px; margin-bottom: 24px; }
  .hero-year { font-size: clamp(1rem, 2.5vw, 1.4rem); letter-spacing: .3em; }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-bottom: 40px;
  }
  .hero-actions .btn {
    width: 100%;
    justify-content: center;
    padding: 14px;
    font-size: .95rem;
    min-height: 48px;
  }

  .hero-scroll { display: none; }

  /* Stats: 2×2 grid for 4 items on mobile */
  .hero-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    padding: 0;
    border-radius: var(--radius);
    overflow: hidden;
    width: 100%;
    border: 1px solid var(--border);
  }
  .hero-stats .stat {
    padding: 18px 8px;
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: rgba(255,255,255,.02);
    box-sizing: border-box;
  }
  .hero-stats .stat:nth-of-type(2n) { border-right: none; }
  .hero-stats .stat:nth-of-type(n+3) { border-bottom: none; }
  .stat-num { font-size: 1.6rem; }
  .stat-divider { display: none; }

  /* ── Sections ── */
  .section-title { font-size: clamp(1.7rem, 6vw, 2.4rem); }

  /* ── About ── */
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .about-visual { display: none; }
  .about-features { gap: 12px; }
  .feature-item { padding: 14px 16px; }

  /* ── Committees: single column on mobile ── */
  .committees-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .committee-card {
    padding: 20px 18px;
  }
  .committee-card h3 { font-size: 1.1rem; }
  .card-full { font-size: .8rem; }
  .card-topic { font-size: .82rem; }

  /* ── Timeline ── */
  .timeline::before { left: 0; top: 0; bottom: 0; }
  .tl-item {
    flex-direction: column;
    gap: 12px;
    padding: 0 0 28px 24px;
    border-left: 1px solid var(--border-active);
    position: relative;
  }
  .tl-dot {
    position: absolute;
    left: -6px;
    top: 6px;
    margin-top: 0;
  }
  .tl-date {
    width: auto;
    text-align: left;
    padding-top: 0;
    font-size: .75rem;
  }
  .tl-body { padding: 16px 18px; }

  /* ── Team carousel controls mobile ── */
  .team-carousel-head {
    flex-direction: column;
    gap: 12px;
  }
  .team-carousel-controls {
    gap: 14px;
  }
  .team-nav-btn {
    width: 48px;
    height: 48px;
    font-size: 1.4rem;
    border-width: 2px;
  }
  .team-page-indicator {
    font-size: .85rem;
    min-width: 80px;
    font-weight: 500;
    color: var(--text-secondary);
  }

  /* ── Team – mobile slide carousel ── */
  .team-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .team-grid.team-mobile-carousel {
    display: block;
    padding: 0;
  }

  .team-slide-viewport {
    touch-action: pan-y;
    padding: 0 16px;
    min-height: 380px;
  }
  .team-slide-card {
    max-width: 280px;
    margin: 0 auto;
  }
  .team-slide-card .team-card-cover {
    aspect-ratio: 3 / 4;
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 32px rgba(0,0,0,.4);
  }
  .team-slide-card .card-cover-initials {
    font-size: 3.5rem;
  }
  .team-slide-card .card-cover-overlay {
    padding: 56px 20px 20px;
  }
  .team-slide-card .card-cover-name {
    font-size: 1.1rem;
  }
  .team-slide-card .card-cover-role {
    font-size: .75rem;
  }

  /* ── Register ── */
  .register-box { margin: 0; border-radius: var(--radius-lg); }
  .reg-content { padding: 32px 20px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .form-group input,
  .form-group select {
    min-height: 48px;
    font-size: 16px; /* Prevents iOS zoom */
    padding: 14px 16px;
  }
  .btn-full { min-height: 52px; font-size: 1rem; }

  /* ── Contact ── */
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-map { height: 200px; }

  /* ── Footer ── */
  .footer { padding: 40px 0 40px; }
  .footer-top { flex-direction: column; gap: 32px; }
  .footer-links { flex-wrap: wrap; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }

  /* ── Countdown mobile ── */
  .hero-countdown { gap: 4px; margin-bottom: 24px; }
  .cd-block { min-width: 44px; }
  .cd-num { font-size: 1.6rem; }
  .cd-sep { font-size: 1.3rem; padding-bottom: 12px; }

  /* ── FAQ mobile ── */
  .faq-q { padding: 16px 18px; font-size: .88rem; }
  .faq-a-inner { padding: 0 18px 16px; font-size: .85rem; }

  .hide-sm { display: none; }

  /* mobile sticky CTA removed */
}

/* ── Small phones ── */
@media (max-width: 400px) {
  .hero-title { font-size: clamp(2.6rem, 17vw, 4rem); }
  .hero-badge { font-size: .62rem; padding: 5px 12px; }
  .hero-sub { font-size: .82rem; }

  .team-slide-card { max-width: 240px; }
  .team-slide-card .card-cover-initials { font-size: 2.8rem; }

  .footer-links { flex-direction: column; gap: 24px; }
  .committees-grid { gap: 12px; }
  .committee-card { padding: 18px 16px; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .nav-container { padding: 0 12px; }
  .nav-logo { font-size: 1.2rem; }

  .contest-promo-card { padding: 20px 16px; }
  .contest-winner-box { padding: 14px 16px; }
}

/* ── Desktop ── */
@media (min-width: 769px) {
  .mob-backdrop, .mob-drawer { display: none !important; }
}

/* ════════════════════════════════
   REGISTER PAGE
════════════════════════════════ */
.reg-hero {
  padding: 120px 0 40px;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
}

.reg-hero-content {
  max-width: 680px;
  margin: 0 auto;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .83rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 8px 0;
  margin-bottom: 8px;
  transition: color var(--transition);
}
.back-link:hover { color: var(--gold-light); }

/* ── Map link ── */
.contact-map {
  position: relative;
}
.map-open-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
  font-size: .85rem;
  font-weight: 600;
  color: var(--gold-light);
  margin-top: 10px;
  padding: 10px 16px;
  border: 1px solid var(--border-active);
  border-radius: var(--radius);
  background: var(--gold-dim);
  transition: background var(--transition), color var(--transition);
  position: relative;
  z-index: 2;
}
.map-open-link:hover { background: rgba(212,175,55,.15); color: var(--gold-light); }

/* ── Field error ── */
.field-error {
  border-color: #f87171 !important;
  box-shadow: 0 0 0 3px rgba(248,113,113,.15) !important;
}

/* ── Mobile improvements ── */
@media (max-width: 768px) {
  .reg-hero { padding: 78px 0 28px; } /* 58px navbar + 20px */
  .contact-map iframe { border-radius: var(--radius) !important; height: 220px; }
}

/* ════════════════════════════════
   MULTI-STEP FORM
════════════════════════════════ */

/* Progress bar */
.step-progress-bar {
  width: 100%;
  height: 3px;
  background: rgba(255,255,255,0.07);
  border-radius: 99px;
  margin-bottom: 36px;
  overflow: hidden;
}
.step-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 99px;
  transition: width 0.45s cubic-bezier(0.4,0,0.2,1);
}

/* Steps indicator */
.steps-indicator {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  margin-bottom: 20px;
  gap: 0;
}
.step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 64px;
}
.step-bubble {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.3);
  background: transparent;
  transition: border-color 0.3s ease, background 0.3s ease, color 0.3s ease;
}
.step-check { display: none; }
.step-num-txt { display: block; }

.step-item.active .step-bubble {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(59,130,246,0.12);
  box-shadow: 0 0 0 4px rgba(59,130,246,0.1);
}
.step-item.completed .step-bubble {
  border-color: var(--gold);
  background: var(--gold);
  color: #fff;
}
.step-item.completed .step-check { display: block; }
.step-item.completed .step-num-txt { display: none; }

.step-lbl {
  font-size: 11px;
  font-weight: 500;
  color: rgba(255,255,255,0.28);
  transition: color 0.3s ease;
  text-align: center;
  white-space: nowrap;
}
.step-item.active .step-lbl    { color: var(--gold); }
.step-item.completed .step-lbl { color: rgba(255,255,255,0.6); }

.step-connector {
  flex: 1;
  height: 2px;
  background: rgba(255,255,255,0.1);
  margin: 0 4px;
  margin-top: 19px;
  border-radius: 99px;
  transition: background 0.4s ease;
}
.step-connector.filled { background: var(--gold); }

/* Step panels */
.step-panel { display: none; }
.step-panel.active { display: block; }

/* Slide animations */
@keyframes slideInRight  { from { opacity:0; transform:translateX(32px);  } to { opacity:1; transform:translateX(0); } }
@keyframes slideInLeft   { from { opacity:0; transform:translateX(-32px); } to { opacity:1; transform:translateX(0); } }
@keyframes slideOutLeft  { from { opacity:1; transform:translateX(0); } to { opacity:0; transform:translateX(-32px); } }
@keyframes slideOutRight { from { opacity:1; transform:translateX(0); } to { opacity:0; transform:translateX(32px);  } }

.step-panel.slide-in-right  { display:block; animation:slideInRight  0.3s ease forwards; }
.step-panel.slide-in-left   { display:block; animation:slideInLeft   0.3s ease forwards; }
.step-panel.slide-out-left  { display:block; animation:slideOutLeft  0.25s ease forwards; }
.step-panel.slide-out-right { display:block; animation:slideOutRight 0.25s ease forwards; }

/* Step navigation row */
.step-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 28px;
  gap: 12px;
}

@media (max-width: 480px) {
  .step-item { min-width: 44px; }
  .step-lbl  { font-size: 10px; }
  .step-bubble { width: 32px; height: 32px; font-size: 12px; }
  .step-connector { margin-top: 16px; }
}

/* ════════════════════════════════
   TEAM PHOTOS
════════════════════════════════ */
.avatar-photo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border-active);
  display: block;
  margin: 0 auto;
}

/* ════════════════════════════════
   GALLERY PAGE
════════════════════════════════ */

/* Active nav link */
.nav-links a.active-page { color: var(--gold-light) !important; }

/* Filter bar */
.gallery-filters-bar {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 70px;
  z-index: 20;
}
.gallery-filters {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.gallery-filters::-webkit-scrollbar { display: none; }
.filter-btn {
  padding: 6px 18px;
  border-radius: 99px;
  border: 1px solid var(--border);
  font-size: .81rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition);
  background: transparent;
  font-family: var(--font-body);
  flex-shrink: 0;
  white-space: nowrap;
}
.filter-btn:hover { border-color: var(--border-active); color: var(--gold-light); }
.filter-btn.active { background: var(--gold-dim); border-color: var(--gold); color: var(--gold-light); }
.filter-count {
  font-size: .76rem;
  color: var(--text-muted);
  margin-left: 4px;
}

/* Gallery grid – CSS columns masonry */
.gallery-section { padding: 36px 0 80px; }
.gallery-grid {
  columns: 3 260px;
  column-gap: 14px;
}
.gallery-item {
  break-inside: avoid;
  margin-bottom: 14px;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  position: relative;
  background: var(--bg-card);
  display: block;
  border: 1px solid var(--border);
  transition: transform .3s ease, box-shadow .3s ease;
}
.gallery-item:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(0,0,0,.4); }
.gallery-item img {
  width: 100%;
  display: block;
  transition: transform .5s ease;
  line-height: 0;
}
.gallery-item:hover img { transform: scale(1.04); }
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(5,8,20,.88) 0%, rgba(5,8,20,.1) 55%, transparent 100%);
  opacity: 0;
  transition: opacity .3s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 14px;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-caption {
  font-size: .82rem;
  font-weight: 500;
  color: #fff;
  line-height: 1.4;
  margin-bottom: 6px;
}
.gallery-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .72rem;
  color: rgba(255,255,255,.6);
}
.gallery-day-badge {
  background: rgba(59,130,246,.25);
  border: 1px solid rgba(59,130,246,.35);
  color: #93c5fd;
  padding: 2px 8px;
  border-radius: 99px;
  font-size: .68rem;
  font-weight: 600;
}

/* Empty state */
.gallery-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  color: var(--text-muted);
  text-align: center;
}
.gallery-empty svg { opacity: .18; margin-bottom: 20px; }
.gallery-empty h3 { font-size: 1.1rem; color: var(--text-secondary); margin-bottom: 8px; }
.gallery-empty p  { font-size: .85rem; }

/* Vote FAB */
.vote-fab-wrap { position: fixed; bottom: 32px; left: 32px; z-index: 30; display: flex; align-items: center; gap: 12px; flex-direction: row-reverse; }
.vote-fab {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #92400e, #d97706);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(217,119,6,.4);
  transition: transform .2s ease, box-shadow .2s ease;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.vote-fab:hover { transform: scale(1.1); box-shadow: 0 6px 28px rgba(217,119,6,.6); }
.vote-fab-label {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 6px 12px;
  font-size: .78rem;
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity .2s, transform .2s;
  pointer-events: none;
}
.vote-fab-wrap:hover .vote-fab-label { opacity: 1; transform: translateX(0); }

/* Upload FAB */
.upload-fab-wrap { position: fixed; bottom: 32px; right: 32px; z-index: 30; display: flex; align-items: center; gap: 12px; }
.upload-fab {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(59,130,246,.4);
  transition: transform .2s ease, box-shadow .2s ease;
  color: #fff;
  flex-shrink: 0;
}
.upload-fab:hover { transform: scale(1.1); box-shadow: 0 6px 28px rgba(59,130,246,.55); }
.upload-fab-label {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 6px 12px;
  font-size: .78rem;
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
  opacity: 0;
  transform: translateX(8px);
  transition: opacity .2s, transform .2s;
  pointer-events: none;
}
.upload-fab-wrap:hover .upload-fab-label { opacity: 1; transform: translateX(0); }

/* Upload modal */
.up-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.65);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
}
.up-modal-backdrop.open { opacity: 1; pointer-events: all; }
.up-modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(20px);
  transition: transform .25s;
}
.up-modal-backdrop.open .up-modal { transform: translateY(0); }
.up-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}
.up-modal-header h3 { font-size: 1rem; font-weight: 700; color: var(--text-primary); }
.up-close-btn {
  padding: 6px;
  border-radius: 6px;
  color: var(--text-secondary);
  transition: color var(--transition), background var(--transition);
}
.up-close-btn:hover { color: var(--text-primary); background: rgba(255,255,255,.06); }
.up-modal-body   { padding: 24px; }
.up-modal-footer { padding: 16px 24px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 10px; }

/* Drop zone */
.drop-zone {
  border: 2px dashed var(--border-active);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  cursor: pointer;
  transition: background .2s, border-color .2s;
  position: relative;
  background: var(--bg-surface);
  overflow: hidden;
}
.drop-zone:hover, .drop-zone.drag-over { background: var(--gold-dim); border-color: var(--gold); }
.drop-zone input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.dz-icon { font-size: 2rem; margin-bottom: 8px; line-height: 1; }
.dz-text p { font-size: .85rem; color: var(--text-secondary); }
.dz-text strong { color: var(--gold-light); }
.dz-preview { display: none; position: relative; margin-top: 4px; }
.dz-preview img {
  max-height: 180px;
  object-fit: contain;
  border-radius: var(--radius);
  margin: 0 auto;
  display: block;
}
.dz-remove {
  position: absolute;
  top: -8px; right: calc(50% - 52px);
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: .75rem; color: var(--text-secondary);
}
.up-form-field { display: flex; flex-direction: column; gap: 6px; margin-top: 16px; }
.up-form-field label { font-size: .78rem; font-weight: 600; color: var(--text-secondary); }
.up-form-field input, .up-form-field select {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  color: var(--text-primary);
  font-size: .88rem;
  font-family: inherit;
  transition: border-color var(--transition);
}
.up-form-field input:focus, .up-form-field select:focus { outline: none; border-color: var(--gold); }
.up-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 16px; }
.btn-upload {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  color: #fff;
  border: none;
  font-size: .85rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: opacity .2s;
}
.btn-upload:hover { opacity: .88; }
.btn-upload:disabled { opacity: .4; cursor: not-allowed; }
.btn-cancel-up {
  display: inline-flex; align-items: center; padding: 10px 18px;
  border-radius: var(--radius); border: 1px solid var(--border-active);
  color: var(--gold-light); background: none; font-size: .85rem; font-weight: 600;
  font-family: inherit; cursor: pointer; transition: background .2s;
}
.btn-cancel-up:hover { background: var(--gold-dim); }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.93);
  z-index: 400;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
}
.lightbox.open { opacity: 1; pointer-events: all; }
.lb-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: #fff; transition: background .2s;
}
.lb-close:hover { background: rgba(255,255,255,.2); }
.lb-img-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 56px 80px 16px;
  min-height: 0;
  position: relative;
}
.lb-img-wrap img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: var(--radius);
  display: block;
}
.lb-nav {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: #fff; transition: background .2s;
}
.lb-nav:hover { background: rgba(255,255,255,.22); }
.lb-nav.lb-prev { left: 16px; }
.lb-nav.lb-next { right: 16px; }
.lb-info {
  width: 100%;
  padding: 14px 24px 24px;
  text-align: center;
}
.lb-caption { font-size: .98rem; font-weight: 500; color: #fff; margin-bottom: 8px; min-height: 1.5em; }
.lb-meta { display: flex; align-items: center; justify-content: center; gap: 16px; font-size: .76rem; color: rgba(255,255,255,.45); }
.lb-counter { font-size: .73rem; color: rgba(255,255,255,.3); margin-top: 4px; }

/* Lightbox download button */
.lb-download-btn {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 12px; padding: 7px 18px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18);
  border-radius: 99px; color: rgba(255,255,255,.85); font-size: .78rem;
  font-family: inherit; cursor: pointer; transition: background .18s, border-color .18s;
}
.lb-download-btn:hover { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.35); }

/* Mobile drag-down handle */
.lb-handle {
  display: none;
  width: 40px; height: 5px;
  border-radius: 99px;
  background: rgba(255,255,255,.25);
  margin: 14px auto 0;
  cursor: pointer;
  flex-shrink: 0;
  align-self: flex-start;
  position: absolute;
  top: 0; left: 50%; transform: translateX(-50%);
}

/* Team show-more button */
.show-more-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 28px;
  border-radius: 99px;
  border: 1px solid var(--border-active);
  background: transparent;
  color: var(--gold-light);
  font-family: var(--font-body);
  font-size: .85rem;
  font-weight: 500;
  cursor: pointer;
  transition: background .2s, border-color .2s;
}
.show-more-btn:hover { background: var(--gold-dim); border-color: var(--gold); }

/* Select mode button in filter bar */
.select-mode-btn {
  margin-left: auto;
  border-color: var(--gold-dim) !important;
  color: var(--text-2) !important;
  font-size: .73rem !important;
}
.select-mode-btn.active {
  background: rgba(248,113,113,.15) !important;
  border-color: rgba(248,113,113,.4) !important;
  color: #f87171 !important;
}

/* Gallery item – selected state */
.gallery-item.selected { outline: 3px solid var(--gold); outline-offset: -3px; }

/* Checkbox indicator on gallery items */
.gallery-select-check {
  position: absolute; top: 8px; left: 8px; z-index: 3;
  width: 22px; height: 22px; border-radius: 50%;
  background: rgba(255,255,255,.15); border: 2px solid rgba(255,255,255,.6);
  display: flex; align-items: center; justify-content: center;
  transition: background .15s, border-color .15s;
}
.gallery-select-check.checked {
  background: var(--gold); border-color: var(--gold);
}

/* Selection bar */
.selection-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 900;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px; gap: 12px;
  background: #0d1220; border-top: 1px solid var(--border-active);
  transform: translateY(100%); transition: transform .25s cubic-bezier(.4,0,.2,1);
  box-shadow: 0 -4px 24px rgba(0,0,0,.5);
}
.selection-bar.visible { transform: translateY(0); }
#selectionCount { font-size: .85rem; color: var(--text); font-weight: 500; }
.selection-actions { display: flex; align-items: center; gap: 10px; }
.btn-dl-sel {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 20px; border-radius: 99px;
  background: var(--gold); border: none; color: #fff;
  font-family: inherit; font-size: .82rem; font-weight: 600; cursor: pointer;
  transition: opacity .15s;
}
.btn-dl-sel:disabled { opacity: .45; cursor: not-allowed; }
.btn-dl-sel:not(:disabled):hover { opacity: .88; }
.btn-cancel-sel {
  padding: 9px 16px; border-radius: 99px;
  background: transparent; border: 1px solid var(--border); color: var(--text-2);
  font-family: inherit; font-size: .82rem; cursor: pointer; transition: border-color .15s;
}
.btn-cancel-sel:hover { border-color: var(--text-2); }

/* Multi-file queue strip */
.dz-queue {
  display: flex;
  flex-direction: row;
  gap: 10px;
  overflow-x: auto;
  padding: 8px 4px 4px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.dz-queue::-webkit-scrollbar { display: none; }
.dz-queue-item {
  position: relative;
  flex-shrink: 0;
  width: 80px;
  height: 80px;
}
.dz-q-img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
  border: 2px solid var(--border);
}
.dz-q-remove {
  position: absolute;
  top: -7px; right: -7px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: #ef4444;
  border: 2px solid var(--bg-card);
  cursor: pointer;
  color: #fff;
  font-size: .65rem;
  display: flex; align-items: center; justify-content: center;
  line-height: 1;
}

/* Add more button */
.dz-add-more {
  display: none;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding: 7px 14px;
  border-radius: 99px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-family: inherit;
  font-size: .78rem;
  cursor: pointer;
  transition: border-color .15s, color .15s;
}
.dz-add-more:hover { border-color: var(--gold); color: var(--gold-light); }

/* ─────────────────────────────────────────────
   RESPONSIVE — MOBILE FIRST
───────────────────────────────────────────── */

/* On touch devices: always show overlay (no hover state) */
@media (hover: none) {
  .gallery-overlay { opacity: 1; }
  .gallery-item:hover { transform: none; }
  .gallery-item:hover img { transform: none; }
  .upload-fab-label { display: none; }
}

@media (max-width: 768px) {
  /* Gallery grid */
  .gallery-grid    { columns: 2 140px; column-gap: 8px; }
  .gallery-item    { margin-bottom: 8px; }
  .gallery-section { padding: 20px 0 120px; }

  /* Filter bar */
  .gallery-filters-bar { top: 60px; }
  .gallery-filters { padding: 10px 0; gap: 6px; }
  .filter-btn { padding: 5px 14px; font-size: .77rem; }
  .filter-count { display: none; }
  .vote-trigger-btn { display: none; } /* replaced by vote FAB on mobile */

  /* Upload FAB */
  .upload-fab-wrap { bottom: 24px; right: 16px; }
  .upload-fab { width: 60px; height: 60px; }

  /* Vote FAB */
  .vote-fab-wrap { bottom: 24px; left: 16px; }
  .vote-fab { width: 60px; height: 60px; font-size: 1.5rem; }
  .vote-fab-label { display: none; }

  /* Upload modal: bottom sheet */
  .up-modal-backdrop { align-items: flex-end; padding: 0; }
  .up-modal {
    max-width: 100%; width: 100%;
    border-radius: 20px 20px 0 0;
    max-height: 92dvh;
    transform: translateY(100%);
  }
  .up-modal-backdrop.open .up-modal { transform: translateY(0); }
  .up-modal-header { padding: 16px 20px; }
  .up-modal-body   { padding: 16px 20px; }
  .up-modal-footer { padding: 12px 20px 28px; }

  /* Prevent iOS auto-zoom */
  .up-form-field input,
  .up-form-field select { font-size: 16px; }

  .drop-zone { padding: 24px 16px; }

  /* Thumbnails */
  .dz-queue-item,
  .dz-q-img { width: 72px; height: 72px; }

  /* Lightbox */
  .lb-handle { display: block; }
  .lb-img-wrap { padding: 52px 0 8px; }
  .lb-nav { width: 52px; height: 52px; background: rgba(0,0,0,.01); border-color: transparent; }
  .lb-nav.lb-prev { left: 4px; }
  .lb-nav.lb-next { right: 4px; }
  .lb-info { padding: 10px 16px 20px; }
  .lb-caption { font-size: .88rem; }
  .lb-close { width: 44px; height: 44px; top: 12px; right: 12px; }

  /* Selection bar */
  .selection-bar { padding: 12px 16px 28px; }
  .btn-dl-sel { padding: 9px 16px; font-size: .78rem; }
  .btn-cancel-sel { padding: 9px 12px; font-size: .78rem; }
}

@media (max-width: 420px) {
  .gallery-grid { columns: 2 100px; column-gap: 6px; }
  .up-form-row  { grid-template-columns: 1fr; }
  .selection-actions { gap: 6px; }
}

/* ═══════════════════════════════════════════════
   GALLERY AUTH MODAL
═══════════════════════════════════════════════ */
.auth-modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.72);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  z-index: 1100;
  opacity: 0; pointer-events: none;
  transition: opacity .25s;
  padding: 16px;
}
.auth-modal-backdrop.open { opacity: 1; pointer-events: all; }
.auth-modal {
  background: #0d1117;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 20px;
  width: 100%; max-width: 400px;
  padding: 36px 32px 28px;
  position: relative;
  transform: translateY(18px);
  transition: transform .32s cubic-bezier(.2,.8,.3,1);
}
.auth-modal-backdrop.open .auth-modal { transform: translateY(0); }
.auth-logo {
  font-family: 'Playfair Display', serif;
  font-size: 2rem; font-weight: 700;
  text-align: center; margin-bottom: 4px;
}
.auth-logo .logo-kal { color: #e8ecf1; }
.auth-logo .logo-mun { color: #3b82f6; }
.auth-subtitle {
  text-align: center;
  font-size: .72rem; letter-spacing: .1em; text-transform: uppercase;
  color: rgba(255,255,255,.35); margin-bottom: 26px;
}
.auth-tabs {
  display: flex; gap: 4px;
  background: rgba(255,255,255,.05);
  border-radius: 10px; padding: 4px;
  margin-bottom: 22px;
}
.auth-tab {
  flex: 1; padding: 9px;
  border: none; background: transparent;
  color: rgba(255,255,255,.4);
  font-size: .84rem; font-weight: 500; font-family: inherit;
  border-radius: 8px; cursor: pointer;
  transition: all .2s;
}
.auth-tab.active { background: #3b82f6; color: #fff; }
.auth-field { margin-bottom: 12px; }
.auth-field label {
  display: block; font-size: .74rem;
  color: rgba(255,255,255,.4);
  margin-bottom: 6px; font-weight: 500;
}
.auth-field input {
  width: 100%; padding: 12px 14px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 10px; color: #e8ecf1;
  font-size: 16px; font-family: inherit;
  outline: none; transition: border-color .2s;
  box-sizing: border-box;
}
.auth-field input:focus { border-color: #3b82f6; }
.auth-error {
  font-size: .78rem; color: #ef4444;
  min-height: 16px; margin-bottom: 6px;
}
.auth-btn {
  width: 100%; padding: 13px;
  background: #3b82f6; color: #fff;
  border: none; border-radius: 10px;
  font-size: .9rem; font-weight: 600; font-family: inherit;
  cursor: pointer; transition: opacity .2s;
}
.auth-btn:hover { opacity: .88; }
.auth-separator {
  display: flex; align-items: center; gap: 12px;
  margin: 18px 0 14px; color: rgba(255,255,255,.25);
  font-size: .76rem;
}
.auth-separator::before, .auth-separator::after {
  content: ''; flex: 1; height: 1px;
  background: rgba(255,255,255,.08);
}
.auth-anon-btn {
  width: 100%; padding: 11px;
  background: transparent;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px; color: rgba(255,255,255,.45);
  font-size: .84rem; font-family: inherit; cursor: pointer;
  transition: all .2s;
}
.auth-anon-btn:hover { background: rgba(255,255,255,.05); color: #e8ecf1; }
.auth-close {
  position: absolute; top: 14px; right: 14px;
  width: 32px; height: 32px;
  background: rgba(255,255,255,.06);
  border: none; border-radius: 8px; cursor: pointer;
  color: rgba(255,255,255,.4);
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.auth-close:hover { background: rgba(255,255,255,.11); }
/* Bottom sheet on mobile */
@media (max-width: 540px) {
  .auth-modal-backdrop { align-items: flex-end; padding: 0; }
  .auth-modal {
    max-height: 93dvh; overflow-y: auto;
    padding: 8px 24px max(env(safe-area-inset-bottom, 24px), 28px);
    transform: translateY(100%);
  }
  .auth-modal::before {
    content: ''; display: block; width: 36px; height: 4px;
    border-radius: 99px; background: rgba(255,255,255,.15);
    margin: 10px auto 18px;
  }
  .auth-logo { font-size: 1.6rem; }
  .auth-modal-backdrop.open .auth-modal { transform: translateY(0); }
}

/* Nav user chip (inside nav-links) */
.nav-user-chip {
  display: flex; align-items: center; gap: 8px;
}
.nav-user-name {
  font-size: .82rem; font-weight: 500;
  color: #e8ecf1;
}
.nav-logout-btn {
  padding: 5px 10px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 6px; color: rgba(255,255,255,.45);
  font-size: .74rem; font-family: inherit; cursor: pointer;
  transition: all .2s;
}
.nav-logout-btn:hover { background: rgba(255,255,255,.1); color: #e8ecf1; }

/* Gallery item per-user delete button */
.gal-own-del {
  position: absolute; top: 8px; right: 8px;
  width: 28px; height: 28px;
  background: rgba(15,10,10,.82);
  border: 1px solid rgba(239,68,68,.5);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 3;
  opacity: 0; transition: opacity .2s;
  color: #ef4444;
}
.gallery-item:hover .gal-own-del { opacity: 1; }
@media (hover: none) { .gal-own-del { opacity: 1; } }

/* Lightbox action bar */
.lb-actions {
  display: flex; align-items: center; justify-content: center;
  gap: 8px; margin-top: 12px; flex-wrap: wrap;
}
.lb-delete-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 16px;
  background: rgba(239,68,68,.12); border: 1px solid rgba(239,68,68,.3);
  border-radius: 99px; color: #ef4444;
  font-size: .78rem; font-family: inherit; cursor: pointer;
  transition: background .18s, border-color .18s;
}
.lb-delete-btn:hover { background: rgba(239,68,68,.22); border-color: rgba(239,68,68,.5); }

/* ═══════════════════════════════════════════════
   VOTING / LEADERBOARD PANEL
═══════════════════════════════════════════════ */
.vote-trigger-btn {
  background: linear-gradient(135deg, rgba(251,191,36,.12), rgba(245,158,11,.08)) !important;
  border: 1px solid rgba(251,191,36,.3) !important;
  color: #fbbf24 !important;
  font-weight: 600 !important;
  white-space: nowrap;
}
.vote-trigger-btn:hover { background: rgba(251,191,36,.18) !important; }

/* Bottom-sheet backdrop */
.vote-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.7);
  backdrop-filter: blur(6px);
  z-index: 1050;
  display: flex; align-items: flex-end;
  opacity: 0; pointer-events: none;
  transition: opacity .28s;
}
.vote-backdrop.open { opacity: 1; pointer-events: all; }

/* Sheet */
.vote-sheet {
  width: 100%; max-width: 600px; margin: 0 auto;
  background: #0e1117;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 22px 22px 0 0;
  max-height: 88dvh; overflow-y: auto;
  transform: translateY(100%);
  transition: transform .32s cubic-bezier(.2,.8,.3,1);
  padding-bottom: max(env(safe-area-inset-bottom, 16px), 24px);
}
.vote-backdrop.open .vote-sheet { transform: translateY(0); }

/* Drag handle */
.vote-sheet::before {
  content: ''; display: block; width: 36px; height: 4px;
  border-radius: 99px; background: rgba(255,255,255,.15);
  margin: 14px auto 0;
}

.vote-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px 12px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.vote-header h3 { font-size: 1.05rem; font-weight: 700; margin: 0; }
.vote-close {
  width: 32px; height: 32px; border-radius: 8px;
  background: rgba(255,255,255,.06); border: none;
  color: rgba(255,255,255,.5); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem; transition: background .2s;
}
.vote-close:hover { background: rgba(255,255,255,.12); }

.vote-subtitle {
  font-size: .8rem; color: rgba(255,255,255,.4);
  padding: 10px 20px 0; line-height: 1.5;
}

/* Winner banner */
.winner-banner {
  margin: 14px 20px;
  background: linear-gradient(135deg, rgba(251,191,36,.15), rgba(245,158,11,.08));
  border: 1px solid rgba(251,191,36,.35);
  border-radius: 14px; padding: 16px 18px;
  text-align: center;
}
.winner-banner .wb-crown { font-size: 2rem; }
.winner-banner .wb-name { font-size: 1.1rem; font-weight: 700; color: #fbbf24; margin: 4px 0; }
.winner-banner .wb-msg { font-size: .82rem; color: rgba(255,255,255,.6); }

/* My vote indicator */
.my-vote-indicator {
  margin: 14px 20px 0;
  background: rgba(59,130,246,.08);
  border: 1px solid rgba(59,130,246,.2);
  border-radius: 10px; padding: 10px 14px;
  font-size: .82rem; color: rgba(255,255,255,.6);
  display: flex; align-items: center; gap: 8px;
}
.my-vote-indicator strong { color: #60a5fa; }
.vote-retract-btn {
  margin-left: auto;
  padding: 4px 10px;
  font-size: .75rem;
  border-radius: 6px;
  background: rgba(239,68,68,.12);
  border: 1px solid rgba(239,68,68,.25);
  color: #f87171;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}
.vote-retract-btn:hover { background: rgba(239,68,68,.22); }

/* Leaderboard list */
.vote-list {
  list-style: none; padding: 14px 20px 0;
  display: flex; flex-direction: column; gap: 8px;
}
.vote-card {
  display: flex; align-items: center; gap: 12px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 12px; padding: 12px 14px;
  transition: background .2s;
}
.vote-card.is-winner {
  border-color: rgba(251,191,36,.4);
  background: rgba(251,191,36,.06);
}
.vote-card.my-voted { border-color: rgba(59,130,246,.35); background: rgba(59,130,246,.07); }
.vote-rank {
  font-size: .95rem; font-weight: 800;
  width: 28px; text-align: center; flex-shrink: 0;
  color: rgba(255,255,255,.3);
}
.vote-rank.top3 { color: #fbbf24; }
.vote-info { flex: 1; min-width: 0; }
.vote-name { font-size: .93rem; font-weight: 600; color: #e8ecf1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vote-count { font-size: .74rem; color: rgba(255,255,255,.4); margin-top: 2px; }
.vote-bar-wrap {
  height: 3px; background: rgba(255,255,255,.06);
  border-radius: 99px; margin-top: 6px;
}
.vote-bar { height: 100%; border-radius: 99px; background: #3b82f6; transition: width .4s; }
.vote-btn {
  flex-shrink: 0;
  padding: 7px 14px; border-radius: 99px;
  font-size: .79rem; font-weight: 600; font-family: inherit;
  cursor: pointer; transition: all .2s; white-space: nowrap;
  border: 1px solid rgba(59,130,246,.4);
  background: rgba(59,130,246,.1); color: #60a5fa;
}
.vote-btn:hover { background: rgba(59,130,246,.2); border-color: #3b82f6; }
.vote-btn.voted {
  background: rgba(59,130,246,.2); border-color: #3b82f6; color: #93c5fd;
  cursor: default;
}
.vote-btn:disabled { opacity: .4; cursor: not-allowed; }
.vote-note {
  font-size: .74rem; color: rgba(255,255,255,.28);
  text-align: center; padding: 18px 20px 4px;
  line-height: 1.5;
}
