@import url('https://fonts.googleapis.com/css2?family=Syne:wght@600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* ─── Tokens ─────────────────────────────────────── */
:root {
  --bg:       #fbf8f1;
  --surface:  #ffffff;
  --card:     #ffffff;
  --border:   #eadfc8;
  --text:     #16243a;
  --muted:    #6f6670;
  --subtle:   #b6aa98;

  --violet:   #c89b46;   /* brand gold */
  --violet-d: #a8792d;
  --rose:     #16243a;   /* deep navy */
  --rose-d:   #0d1728;
  --cyan:     #d8b76a;
  --amber:    #c89b46;
  --emerald:  #1f5b4a;

  --gold:     #c89b46;
  --gold-d:   #a8792d;
  --navy:     #16243a;
  --cream:    #fbf8f1;

  --grad-hero:    linear-gradient(135deg, #0d1728 0%, #16243a 45%, #c89b46 100%);
  --grad-primary: linear-gradient(135deg, #16243a, #c89b46);
  --grad-rose:    linear-gradient(135deg, #16243a, #0d1728);
  --grad-cyan:    linear-gradient(135deg, #c89b46, #ead19a);
  --grad-emerald: linear-gradient(135deg, #1f5b4a, #5d8a73);
  --grad-amber:   linear-gradient(135deg, #a8792d, #e2c37c);

  --shadow-sm: 0 2px 8px rgba(22,36,58,.08);
  --shadow:    0 8px 32px rgba(22,36,58,.12);
  --shadow-lg: 0 20px 60px rgba(22,36,58,.16);

  --r:    16px;
  --r-sm:  10px;
  --r-xs:  8px;
}

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

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ─── Typography ─────────────────────────────────── */
h1, h2, h3 {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  color: var(--text);
  line-height: 1.1;
}
h1 { font-size: clamp(26px, 4vw, 34px); margin-bottom: 8px; }
h2 { font-size: clamp(20px, 3vw, 26px); margin-bottom: 14px; }
h3 { font-size: clamp(16px, 2vw, 20px); margin-bottom: 8px; }
p  { color: var(--muted); line-height: 1.7; }

/* ─── Layout ─────────────────────────────────────── */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 36px 24px;
}
.grid   { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }

/* ─── NAV ────────────────────────────────────────── */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 28px;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 20px rgba(22,36,58,.06);
}
.logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -.5px;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.logo-pill {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: var(--grad-primary);
  color: #fff;
  padding: 3px 8px;
  border-radius: 99px;
  margin-left: 8px;
  vertical-align: middle;
  -webkit-text-fill-color: #fff;
}
.nav-links { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.nav-user  { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 14px; font-weight: 600; }
.nav-avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--grad-primary);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 13px; font-weight: 800;
  box-shadow: 0 2px 8px rgba(200,155,70,.28);
}

/* ─── Buttons ────────────────────────────────────── */
.btn, .btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: none;
  border-radius: var(--r-sm);
  padding: 11px 22px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  transition: all .2s ease;
  white-space: nowrap;
}
.btn {
  background: var(--grad-primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(22,36,58,.26);
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(22,36,58,.34);
}
.btn-rose {
  background: var(--grad-rose);
  box-shadow: 0 4px 14px rgba(244,63,94,.35);
}
.btn-rose:hover { box-shadow: 0 8px 24px rgba(244,63,94,.45); }

.btn-ghost {
  background: #fff;
  color: var(--violet);
  border: 1.5px solid var(--border);
}
.btn-ghost:hover {
  border-color: var(--violet);
  background: #fbf6ea;
}
.btn-sm { padding: 7px 16px; font-size: 13px; border-radius: var(--r-xs); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  padding: 11px 22px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 14px;
  background: #fff;
  color: var(--text);
  cursor: pointer;
  text-decoration: none;
  transition: all .2s ease;
  white-space: nowrap;
}
.btn-outline:hover { border-color: var(--violet); color: var(--violet); }

button:not(.tab):not(.btn):not(.btn-outline):not(.btn-ghost):not(.btn-sm):not(.nav-toggle):not(.photo-lightbox-close) {
  display: block;
  width: 100%;
  border: none;
  border-radius: var(--r-sm);
  padding: 14px 24px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 15px;
  background: var(--grad-primary);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(22,36,58,.26);
  transition: all .2s ease;
}
button:not(.tab):not(.btn):not(.btn-outline):not(.btn-ghost):not(.btn-sm):not(.nav-toggle):not(.photo-lightbox-close):hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(22,36,58,.34);
}

/* ─── Cards & Panels ─────────────────────────────── */
.card, .panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: var(--shadow); }

/* colored top-border accent on cards */
.card-violet { border-top: 3px solid var(--violet); }
.card-rose   { border-top: 3px solid var(--rose); }
.card-cyan   { border-top: 3px solid var(--cyan); }

/* ─── STATS ─────────────────────────────────────── */
.stat {
  border-radius: var(--r);
  padding: 24px;
  color: #fff;
  position: relative;
  overflow: hidden;
  transition: transform .2s;
}
.stat:hover { transform: translateY(-3px); }
.stat::after {
  content: '';
  position: absolute;
  bottom: -20px; right: -20px;
  width: 100px; height: 100px;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
}
.stat-violet { background: var(--grad-primary); box-shadow: 0 8px 24px rgba(22,36,58,.26); }
.stat-rose   { background: var(--grad-rose);    box-shadow: 0 8px 24px rgba(244,63,94,.35); }
.stat-cyan   { background: var(--grad-cyan);    box-shadow: 0 8px 24px rgba(8,145,178,.35); }
.stat-amber  { background: var(--grad-amber);   box-shadow: 0 8px 24px rgba(217,119,6,.35); }
.stat-em     { background: var(--grad-emerald); box-shadow: 0 8px 24px rgba(5,150,105,.35); }

.stat-icon { font-size: 28px; margin-bottom: 12px; display: block; }
.stat strong {
  display: block;
  font-family: 'Syne', sans-serif;
  font-size: 40px;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 4px;
}
.stat label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; opacity: .85; }

/* ─── Forms ──────────────────────────────────────── */
.form { display: grid; gap: 18px; }
.form-group { display: grid; gap: 6px; }
label {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .7px;
}
input, select, textarea {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  padding: 13px 16px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 15px;
  background: #fff;
  color: var(--text);
  transition: all .2s ease;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--violet);
  box-shadow: 0 0 0 3px rgba(200,155,70,.18);
}
input::placeholder, textarea::placeholder { color: var(--subtle); }
textarea { min-height: 120px; resize: vertical; }
input[type="file"] { padding: 12px; cursor: pointer; color: var(--muted); }

/* ─── Table ──────────────────────────────────────── */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--r);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.table { width: 100%; border-collapse: collapse; min-width: 560px; }
.table th, .table td {
  text-align: left;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.table th {
  background: #fbf6ea;
  color: var(--violet);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  white-space: nowrap;
}
.table tr:last-child td { border-bottom: 0; }
.table tbody tr { background: #fff; transition: background .15s; }
.table tbody tr:hover td { background: #fffaf0; }
.table td b { color: var(--text); font-weight: 700; }
.table td small { color: var(--subtle); font-size: 12px; display: block; margin-top: 2px; }
.actions { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }

/* ─── Notices ────────────────────────────────────── */
.notice {
  padding: 14px 18px;
  border-radius: var(--r-sm);
  border: 1.5px solid var(--border);
  background: #fff;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
}
.success { border-color: #a7f3d0; background: #ecfdf5; color: #065f46; }
.danger  { border-color: #fca5a5; background: #fef2f2; color: #991b1b; }

/* ─── Status badges ──────────────────────────────── */
.status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 700;
}
.status-yes    { background: #ecfdf5; color: #059669; border: 1px solid #a7f3d0; }
.status-no     { background: #fef2f2; color: #dc2626; border: 1px solid #fca5a5; }
.status-maybe  { background: #fffbeb; color: #d97706; border: 1px solid #fde68a; }

/* ─── Badge / chip ───────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border-radius: 99px;
  background: rgba(200,155,70,.12);
  color: var(--violet);
  font-size: 13px;
  font-weight: 700;
  border: 1px solid rgba(200,155,70,.28);
}

/* ─── HERO ───────────────────────────────────────── */
.hero {
  background: var(--grad-hero);
  border-radius: 28px;
  padding: 72px 60px;
  margin-bottom: 32px;
  position: relative;
  overflow: hidden;
  color: #fff;
}
.hero::before {
  content: '';
  position: absolute;
  top: -100px; right: -80px;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -120px; left: 20%;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: 99px;
  background: rgba(255,255,255,.2);
  border: 1px solid rgba(255,255,255,.35);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 22px;
  backdrop-filter: blur(8px);
}
.hero h1 {
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.02;
  letter-spacing: -2px;
  color: #fff;
  margin-bottom: 18px;
}
.hero p {
  font-size: 18px;
  color: rgba(255,255,255,.82);
  line-height: 1.7;
  margin-bottom: 32px;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.btn-white {
  background: #fff;
  color: var(--violet);
  border: none;
  border-radius: var(--r-sm);
  padding: 13px 28px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,.15);
  transition: all .2s;
}
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(0,0,0,.2); }
.btn-ghost-white {
  background: rgba(255,255,255,.18);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,.4);
  border-radius: var(--r-sm);
  padding: 13px 24px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  backdrop-filter: blur(8px);
  transition: all .2s;
}
.btn-ghost-white:hover { background: rgba(255,255,255,.28); }

/* Hero how-it-works card */
.hero-card {
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 20px;
  padding: 28px;
  backdrop-filter: blur(14px);
}
.hero-card h3 {
  color: rgba(255,255,255,.75);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 18px;
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.step {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,.15);
}
.step:last-child { border-bottom: 0; padding-bottom: 0; }
.step-num {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,.25);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 14px; color: #fff;
  flex-shrink: 0;
}
.step-info strong { display: block; color: #fff; font-weight: 700; font-size: 14px; margin-bottom: 2px; }
.step-info span   { color: rgba(255,255,255,.7); font-size: 13px; }

/* ─── Event cover ────────────────────────────────── */
.event-cover {
  background: var(--grad-hero);
  border-radius: 24px;
  padding: 48px 44px;
  color: #fff;
  position: relative;
  overflow: hidden;
  margin-bottom: 8px;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.event-cover::before {
  content: '';
  position: absolute;
  top: -80px; right: -60px;
  width: 280px; height: 280px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
}
.event-cover .badge {
  background: rgba(255,255,255,.2);
  color: #fff;
  border-color: rgba(255,255,255,.35);
  margin-bottom: 16px;
  position: relative; z-index: 1;
}
.event-cover h1 {
  font-size: clamp(28px, 5vw, 50px);
  color: #fff;
  margin-bottom: 8px;
  position: relative; z-index: 1;
  letter-spacing: -1px;
}
.event-cover-meta {
  display: flex; gap: 20px; flex-wrap: wrap;
  position: relative; z-index: 1;
}
.event-cover-meta span {
  display: flex; align-items: center; gap: 6px;
  font-size: 14px; color: rgba(255,255,255,.85); font-weight: 600;
}

/* ─── Tabs ───────────────────────────────────────── */
.tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 24px 0 0;
  border-bottom: 2px solid var(--border);
  padding-bottom: 0;
}
.tab {
  padding: 11px 22px;
  border-radius: var(--r-sm) var(--r-sm) 0 0;
  background: transparent;
  border: 1.5px solid transparent;
  border-bottom: none;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: var(--muted);
  cursor: pointer;
  transition: all .2s;
  text-decoration: none;
  display: inline-block;
  position: relative;
  bottom: -2px;
}
.tab:hover { color: var(--violet); }
.tab.active {
  background: #fff;
  border-color: var(--border);
  border-bottom-color: #fff;
  color: var(--violet);
}
.tab-content { padding-top: 28px; }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ─── QR Box ─────────────────────────────────────── */
.qrbox { text-align: center; padding: 16px; }
.qrbox img {
  max-width: 220px;
  width: 100%;
  background: #fff;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  margin: 0 auto;
}

/* ─── Gallery ────────────────────────────────────── */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.gallery-item {
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.gallery-item img {
  width: 100%; height: 190px;
  object-fit: cover;
  display: block;
  transition: transform .3s;
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 10px 12px;
  background: linear-gradient(0deg, rgba(26,16,64,.75), transparent);
  color: #fff;
  font-size: 12px; font-weight: 600;
  transform: translateY(100%);
  transition: transform .22s;
  border-radius: 0 0 14px 14px;
}
.gallery-item:hover .gallery-caption { transform: translateY(0); }

/* ─── URL box ────────────────────────────────────── */
.url-box {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px;
  background: #fbf6ea;
  border: 1.5px solid rgba(200,155,70,.28);
  border-radius: var(--r-sm);
  font-size: 14px; color: var(--muted);
  word-break: break-all;
  margin: 14px 0;
}
.url-box a { color: var(--violet); font-weight: 700; }

/* ─── Misc ───────────────────────────────────────── */
.section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px; gap: 12px; flex-wrap: wrap;
}
.section-header h2 { margin-bottom: 0; }

.divider { height: 1.5px; background: var(--border); margin: 24px 0; }

.empty { text-align: center; padding: 60px 20px; color: var(--subtle); }
.empty-icon { font-size: 48px; margin-bottom: 14px; opacity: .5; }


/* ─── Sponsors ───────────────────────────────────── */
.sponsors-section {
  margin-top: 34px;
  padding: 40px;
  border: 1px solid var(--border);
  border-radius: 28px;
  background:
    radial-gradient(circle at top left, rgba(200,155,70,.14), transparent 30%),
    linear-gradient(135deg, #fff 0%, #fbf8f1 100%);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}
.sponsors-section::after {
  content: '';
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  right: -90px;
  top: -90px;
  background: rgba(22,36,58,.05);
}
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  margin-bottom: 8px;
}
.section-kicker::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--gold);
}
.section-lead {
  max-width: 680px;
  margin-bottom: 22px;
}
.sponsor-card {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 26px;
  align-items: center;
  background: rgba(255,255,255,.86);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 22px;
  box-shadow: 0 12px 34px rgba(22,36,58,.08);
}
.sponsor-logo-wrap {
  border-radius: 18px;
  overflow: hidden;
  background: #f3eef0;
  border: 1px solid rgba(200,155,70,.28);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.45);
}
.sponsor-logo {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
.sponsor-content h3 {
  font-size: clamp(24px, 3vw, 34px);
  margin: 12px 0 8px;
  color: var(--navy);
}
.sponsor-content p {
  margin-bottom: 16px;
}
.sponsor-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.sponsor-links a {
  display: inline-flex;
  align-items: center;
  padding: 9px 14px;
  border-radius: 999px;
  background: #fff;
  color: var(--navy);
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 700;
  transition: all .2s ease;
}
.sponsor-links a:hover {
  color: var(--gold);
  border-color: var(--gold);
  transform: translateY(-1px);
}

/* ─── Footer ─────────────────────────────────────── */
.footer {
  text-align: center;
  padding: 44px 24px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  border-top: 1px solid var(--border);
  margin-top: 72px;
}
.footer a { color: var(--violet); }

/* ─── Animations ─────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-in   { animation: fadeUp .45s ease both; }
.fade-in-2 { animation: fadeUp .45s .07s ease both; }
.fade-in-3 { animation: fadeUp .45s .14s ease both; }
.fade-in-4 { animation: fadeUp .45s .21s ease both; }

/* ─── Scrollbar ──────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--violet); }

/* ─── Responsive ─────────────────────────────────── */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero { padding: 48px 32px; }
  .hero h1 { font-size: 40px; letter-spacing: -1.5px; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .container { padding: 20px 16px; }
  .hero { padding: 36px 24px; border-radius: 20px; }
  .hero h1 { font-size: 32px; letter-spacing: -1px; }
  .hero p { font-size: 16px; }
  .grid, .grid-2 { grid-template-columns: 1fr; }
  .panel, .card { padding: 20px; }
  .event-cover { padding: 32px 24px; }
  .event-cover h1 { font-size: 28px; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .tab { padding: 9px 14px; font-size: 13px; }
  .nav { padding: 14px 18px; flex-wrap: wrap; gap: 12px; }
  .table th, .table td { padding: 12px 14px; font-size: 13px; }
  .stat strong { font-size: 32px; }
}


@media (max-width: 760px) {
  .sponsors-section { padding: 26px 18px; border-radius: 22px; }
  .sponsor-card { grid-template-columns: 1fr; gap: 18px; }
  .sponsor-logo-wrap { max-width: 220px; margin: 0 auto; }
  .sponsor-links { flex-direction: column; }
  .sponsor-links a { justify-content: center; }
}

/* ─── Responsive hamburger navigation ───────────────── */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  box-shadow: var(--shadow-sm);
  padding: 0;
}
.nav-toggle span {
  width: 20px;
  height: 2px;
  background: var(--navy);
  border-radius: 99px;
  transition: transform .22s ease, opacity .22s ease;
}
.nav.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── Photo open/download UI ───────────────────────── */
.gallery-link {
  display: block;
  position: relative;
  color: inherit;
}
.gallery-actions {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  gap: 6px;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity .2s ease, transform .2s ease;
  z-index: 2;
}
.gallery-item:hover .gallery-actions { opacity: 1; transform: translateY(0); }
.photo-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.94);
  color: var(--navy);
  border: 1px solid rgba(255,255,255,.8);
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 6px 18px rgba(0,0,0,.16);
}
.photo-chip:hover { background: var(--gold); color: #fff; }
.photo-card-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:16px; }
.admin-photo-link { display:block; position:relative; overflow:hidden; }
.admin-photo-link::after, .gallery-link::after {
  content: 'Open photo';
  position:absolute;
  left:50%; top:50%;
  transform:translate(-50%,-50%) scale(.96);
  background:rgba(22,36,58,.82);
  color:#fff;
  padding:8px 13px;
  border-radius:99px;
  font-size:12px;
  font-weight:800;
  opacity:0;
  transition:.2s ease;
  pointer-events:none;
  white-space:nowrap;
}
.admin-photo-link:hover::after, .gallery-link:hover::after { opacity:1; transform:translate(-50%,-50%) scale(1); }
.photo-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(8, 14, 26, .86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.photo-lightbox.active { display: flex; }
.photo-lightbox-inner {
  width: min(1100px, 100%);
  max-height: 92vh;
  background: #fff;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 30px 90px rgba(0,0,0,.36);
  border: 1px solid rgba(255,255,255,.35);
}
.photo-lightbox-top {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding: 12px 14px;
  border-bottom:1px solid var(--border);
}
.photo-lightbox-title { font-weight:800; color:var(--navy); font-size:14px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.photo-lightbox-buttons { display:flex; gap:8px; align-items:center; }
.photo-lightbox-img {
  width:100%;
  max-height: calc(92vh - 64px);
  object-fit: contain;
  background:#0d1728;
}
.photo-lightbox-close {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--navy);
  font-size: 22px;
  font-weight: 800;
  cursor: pointer;
}

@media (max-width: 760px) {
  .nav { position: sticky; padding: 12px 16px; flex-wrap: nowrap; gap: 10px; }
  .logo { font-size: 20px; }
  .nav-toggle { display: inline-flex; margin-left: auto; flex-shrink: 0; }
  .nav-links {
    position: absolute;
    left: 12px;
    right: 12px;
    top: calc(100% + 8px);
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: rgba(255,255,255,.98);
    box-shadow: var(--shadow-lg);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .22s ease, transform .22s ease;
    max-height: calc(100vh - 84px);
    overflow-y: auto;
  }
  .nav.nav-open .nav-links { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .nav-links a, .nav-links .btn, .nav-links .btn-outline, .nav-links .btn-ghost { width: 100%; justify-content: center; }
  .nav-user { width: 100%; justify-content: center; flex-wrap: wrap; padding: 8px 0 2px; }
  .photo-card-grid { grid-template-columns: 1fr; }
  .gallery-actions { opacity: 1; transform: none; }
  .photo-lightbox { padding: 12px; }
  .photo-lightbox-inner { border-radius: 16px; }
}
