@import url('https://fonts.googleapis.com/css2?family=Barlow:wght@400;600;700;800;900&display=swap');

/* ─── Variables & Reset ──────────────────────────────────────────────────── */
:root {
  --gold:          #D4AF37;
  --silver:        #C0C0C0;
  --bronze:        #CD7F32;
  --primary:       #D4AF37;
  --primary-light: #E8C84A;
  --accent:        #f0d060;
  --bg:            #0a0720;
  --bg2:           #0f0b1e;
  --card:          #1a1035;
  --text:          #f0eaff;
  --text-muted:    #9478b8;
  --border:        rgba(212,175,55,0.18);
  --radius:        12px;
  --shadow:        0 4px 24px rgba(0,0,0,0.5);
  --transition:    0.2s ease;
  --input-bg:      #120929;
}

/* ─── Thème clair ────────────────────────────────────────────────────────── */
[data-theme="light"] {
  --primary:       #B8860B;
  --primary-light: #D4AF37;
  --bg:            #fdf8f0;
  --bg2:           #f5ede0;
  --card:          #ffffff;
  --text:          #1a0e2e;
  --text-muted:    #6b5580;
  --border:        rgba(184,134,11,0.22);
  --shadow:        0 4px 20px rgba(180,140,30,0.10);
  --input-bg:      #ffffff;
}
[data-theme="light"] body { background: var(--bg); color: var(--text); }
[data-theme="light"] .card { background: var(--card); border-color: var(--border); }
[data-theme="light"] .form-control,
[data-theme="light"] select,
[data-theme="light"] textarea { background: var(--input-bg); color: var(--text); border-color: var(--border); }
[data-theme="light"] .modal { background: var(--card); color: var(--text); }
[data-theme="light"] .modal-header { border-color: var(--border); }
[data-theme="light"] .modal-footer { border-color: var(--border); }
[data-theme="light"] .list-item { background: var(--card); border-color: var(--border); }
[data-theme="light"] .table-wrap { background: var(--card); border-color: var(--border); }
[data-theme="light"] table th { background: #f5ede0; color: var(--text-muted); border-color: var(--border); }
[data-theme="light"] table td { border-color: var(--border); }
[data-theme="light"] table tr:hover td { background: #fdf0d5; }
[data-theme="light"] .badge { background: #f5ede0; color: var(--text-muted); }
[data-theme="light"] .tab-btn { color: var(--text-muted); border-color: var(--border); }
[data-theme="light"] .tab-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }
[data-theme="light"] .btn { background: #f5ede0; color: var(--text); border-color: var(--border); }
[data-theme="light"] .btn:hover { background: var(--border); }
[data-theme="light"] .btn-primary { background: var(--primary); color: #fff; }
[data-theme="light"] .section-title { color: var(--primary); }
[data-theme="light"] footer { background: #1a0e2e; border-color: var(--border); color: rgba(255,255,255,0.7); }
[data-theme="light"] .empty-state { color: var(--text-muted); }
[data-theme="light"] .nav-links { background: #1a0e2e; }
[data-theme="light"] tbody tr:hover { background: #fdf0d5; }

/* ─── Thème sombre (même que défaut) ─────────────────────────────────────── */
[data-theme="dark"] {
  --primary:       #D4AF37;
  --primary-light: #E8C84A;
  --bg:            #0a0720;
  --bg2:           #0f0b1e;
  --card:          #1a1035;
  --text:          #f0eaff;
  --text-muted:    #9478b8;
  --border:        rgba(212,175,55,0.18);
  --shadow:        0 4px 24px rgba(0,0,0,0.5);
  --input-bg:      #120929;
}

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

body {
  font-family: 'Barlow', 'Segoe UI', system-ui, -apple-system, sans-serif;
  background-color: var(--bg);
  background-image: radial-gradient(circle, rgba(212,175,55,0.07) 1px, transparent 1px);
  background-size: 28px 28px;
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

[data-theme="light"] body {
  background-image: radial-gradient(circle, rgba(184,134,11,0.09) 1px, transparent 1px);
}

/* ─── Texture sur les sections à fond opaque ─────────────────────────────── */
.hero,
nav,
footer {
  background-image: radial-gradient(circle, rgba(212,175,55,0.06) 1px, transparent 1px);
  background-size: 28px 28px;
}

[data-theme="light"] .hero,
[data-theme="light"] nav,
[data-theme="light"] footer {
  background-image: radial-gradient(circle, rgba(184,134,11,0.08) 1px, transparent 1px);
  background-size: 28px 28px;
}

/* ─── Shimmer doré ───────────────────────────────────────────────────────── */
@keyframes gold-shimmer {
  0%   { background-position: -200% center; }
  100% { background-position:  200% center; }
}

.section-title,
.hero h1 span,
.hero-big-title {
  background: linear-gradient(
    90deg,
    var(--gold) 0%,
    #fff8dc 35%,
    #f0d060 50%,
    #fff8dc 65%,
    var(--gold) 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gold-shimmer 4s linear infinite;
}

[data-theme="light"] .section-title,
[data-theme="light"] .hero h1 span,
[data-theme="light"] .hero-big-title {
  background: linear-gradient(
    90deg,
    #B8860B 0%,
    #D4AF37 35%,
    #8B6914 50%,
    #D4AF37 65%,
    #B8860B 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gold-shimmer 4s linear infinite;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; }

/* ─── Scrollbar dorée ────────────────────────────────────────────────────── */
::-webkit-scrollbar              { width: 6px; height: 6px; }
::-webkit-scrollbar-track        { background: var(--bg); }
::-webkit-scrollbar-thumb        { background: rgba(212,175,55,0.35); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover  { background: rgba(212,175,55,0.65); }
* { scrollbar-width: thin; scrollbar-color: rgba(212,175,55,0.35) transparent; }

[data-theme="light"] ::-webkit-scrollbar-track       { background: #fdf8f0; }
[data-theme="light"] ::-webkit-scrollbar-thumb        { background: rgba(184,134,11,0.3); }
[data-theme="light"] ::-webkit-scrollbar-thumb:hover  { background: rgba(184,134,11,0.55); }
[data-theme="light"] * { scrollbar-color: rgba(184,134,11,0.3) transparent; }

/* ─── Nav ────────────────────────────────────────────────────────────────── */
nav {
  background: #0a0720;
  border-bottom: 1px solid rgba(212,175,55,0.2);
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 16px rgba(0,0,0,0.4);
}

.nav-logo {
  color: var(--gold);
  font-size: 1.3rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  letter-spacing: 0.04em;
}
.nav-logo span { color: #f0eaff; font-weight: 400; }

.nav-links {
  display: flex;
  gap: 0.25rem;
  list-style: none;
}
.nav-links a {
  color: rgba(240,234,255,0.75);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  transition: background var(--transition), color var(--transition);
  text-decoration: none;
}
.nav-links a:hover,
.nav-links a.active {
  background: rgba(212,175,55,0.12);
  color: var(--gold);
}

.nav-admin-btn {
  background: rgba(212,175,55,0.15) !important;
  color: var(--gold) !important;
  font-weight: 700 !important;
  border: 1px solid rgba(212,175,55,0.3) !important;
  padding: 0.5rem 1.1rem !important;
}
.nav-admin-btn:hover { background: rgba(212,175,55,0.25) !important; }
.nav-jury-btn {
  background: rgba(30,120,210,0.15) !important;
  color: #64b5f6 !important;
  font-weight: 700 !important;
  border: 1px solid rgba(30,120,210,0.3) !important;
  padding: 0.5rem 1.1rem !important;
}
.nav-jury-btn:hover { background: rgba(30,120,210,0.25) !important; }

/* ─── Hero ───────────────────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, #0f0b1e 0%, #1a1035 50%, #0a0720 100%);
  color: #fff;
  padding: 4rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(212,175,55,0.15);
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(212,175,55,0.08) 0%, transparent 70%);
}
.hero-content { position: relative; max-width: 700px; margin: 0 auto; }
.hero h1 { font-size: 2.8rem; font-weight: 900; margin-bottom: 0.5rem; letter-spacing: 0.02em; }
.hero h1 span { color: var(--gold); }
.hero-meta { margin: 1rem 0; opacity: 0.8; font-size: 1.05rem; display: flex; justify-content: center; gap: 2rem; flex-wrap: wrap; }
.hero-meta span { display: flex; align-items: center; gap: 0.4rem; }
.hero p { font-size: 1.1rem; opacity: 0.85; max-width: 500px; margin: 0 auto 1.5rem; }

/* ─── Rings décoratifs ───────────────────────────────────────────────────── */
.rings {
  display: flex;
  justify-content: center;
  gap: -10px;
  margin: 0.4rem 0;
}
.ring {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 5px solid;
  margin: 0 -4px;
}
.ring:nth-child(1) { border-color: #4FC3F7; }
.ring:nth-child(2) { border-color: #D4AF37; margin-top: 20px; }
.ring:nth-child(3) { border-color: #f0eaff; }
.ring:nth-child(4) { border-color: #4CAF50; margin-top: 20px; }
.ring:nth-child(5) { border-color: #CD7F32; }

/* ─── Main / Container ───────────────────────────────────────────────────── */
main { flex: 1; max-width: 1100px; margin: 0 auto; width: 100%; padding: 2rem 1.5rem; }

/* ─── Cards ──────────────────────────────────────────────────────────────── */
.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  border: 1px solid var(--border);
  transition: box-shadow 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
}
.card:hover {
  box-shadow: 0 0 0 1px rgba(212,175,55,0.3), 0 4px 32px rgba(212,175,55,0.12);
  border-color: rgba(212,175,55,0.35);
  transform: translateY(-2px);
}
[data-theme="light"] .card:hover {
  box-shadow: 0 0 0 1px rgba(184,134,11,0.25), 0 4px 24px rgba(184,134,11,0.10);
  border-color: rgba(184,134,11,0.4);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(212,175,55,0.12);
  border: 1px solid rgba(212,175,55,0.25);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.card-title { font-size: 1.1rem; font-weight: 700; }
.card-subtitle { font-size: 0.85rem; color: var(--text-muted); }

/* ─── Section title ──────────────────────────────────────────────────────── */
.section-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--gold);
  margin-bottom: 0.25rem;
  letter-spacing: 0.02em;
}
.section-desc {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

/* ─── Badges & Tags ──────────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 700;
}
.badge-or     { background: rgba(212,175,55,0.15); color: #D4AF37; border: 1px solid rgba(212,175,55,0.35); }
.badge-argent { background: rgba(192,192,192,0.12); color: #C0C0C0; border: 1px solid rgba(192,192,192,0.3); }
.badge-bronze { background: rgba(205,127,50,0.12); color: #CD7F32; border: 1px solid rgba(205,127,50,0.3); }
.badge-primary{ background: rgba(212,175,55,0.1); color: var(--gold); border: 1px solid rgba(212,175,55,0.25); }
.badge-success{ background: rgba(76,175,80,0.12); color: #4caf50; border: 1px solid rgba(76,175,80,0.3); }
.badge-warning{ background: rgba(255,152,0,0.12); color: #ff9800; border: 1px solid rgba(255,152,0,0.3); }

/* ─── Tableau ────────────────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; background: var(--card); }
thead { background: rgba(212,175,55,0.1); border-bottom: 1px solid rgba(212,175,55,0.3); }
thead th { padding: 0.85rem 1rem; text-align: left; font-size: 0.9rem; font-weight: 700; color: var(--gold); }
tbody tr { border-bottom: 1px solid var(--border); transition: background var(--transition); }
tbody tr:last-child { border-bottom: none; }
tbody tr:hover { background: rgba(212,175,55,0.04); }
tbody td { padding: 0.85rem 1rem; font-size: 0.95rem; }

.rank-1 td:first-child { color: var(--gold); font-weight: 800; font-size: 1.1rem; }
.rank-2 td:first-child { color: var(--silver); font-weight: 800; }
.rank-3 td:first-child { color: var(--bronze); font-weight: 800; }

.medal-cell { display: flex; gap: 0.5rem; align-items: center; }
.medal { width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.8rem; }
.medal-or     { background: var(--gold); color: #2a1a00; }
.medal-argent { background: var(--silver); color: #1a1a1a; }
.medal-bronze { background: var(--bronze); color: #fff; }

/* ─── Boutons ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1.2rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid var(--border);
  transition: all var(--transition);
  text-decoration: none;
  background: var(--bg2);
  color: var(--text);
}
.btn:hover { background: rgba(212,175,55,0.08); border-color: rgba(212,175,55,0.35); color: var(--gold); text-decoration: none; }
.btn-primary { background: var(--gold); color: #0a0720; border-color: var(--gold); }
.btn-primary:hover { background: var(--primary-light); color: #0a0720; border-color: var(--primary-light); text-decoration: none; }
.btn-gold    { background: rgba(212,175,55,0.12); color: var(--gold); border-color: rgba(212,175,55,0.3); }
.btn-gold:hover { background: rgba(212,175,55,0.2); }
.btn-danger  { background: rgba(198,40,40,0.12); color: #ef9a9a; border-color: rgba(198,40,40,0.25); }
.btn-danger:hover { background: rgba(198,40,40,0.2); }
.btn-sm { padding: 0.35rem 0.8rem; font-size: 0.82rem; }
.btn-outline { background: transparent; border: 1.5px solid var(--gold); color: var(--gold); }
.btn-outline:hover { background: rgba(212,175,55,0.12); }

/* ─── Formulaires ────────────────────────────────────────────────────────── */
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-weight: 600; margin-bottom: 0.4rem; font-size: 0.9rem; color: var(--text-muted); }
.form-control {
  width: 100%;
  padding: 0.6rem 0.9rem;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color var(--transition);
  background: var(--input-bg);
  color: var(--text);
}
.form-control:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(212,175,55,0.12); }
.form-control::placeholder { color: var(--text-muted); opacity: 0.6; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* ─── Modal ──────────────────────────────────────────────────────────────── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
  animation: modalIn 0.2s ease;
}
@keyframes modalIn { from { opacity: 0; transform: scale(0.95) translateY(-10px); } }
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; border-bottom: 1px solid var(--border); padding-bottom: 1rem; }
.modal-title { font-size: 1.2rem; font-weight: 800; color: var(--gold); }
.modal-close { background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--text-muted); line-height: 1; }
.modal-close:hover { color: var(--text); }
.modal-footer { display: flex; justify-content: flex-end; gap: 0.75rem; margin-top: 1.5rem; border-top: 1px solid var(--border); padding-top: 1rem; }

/* ─── Toast ──────────────────────────────────────────────────────────────── */
#toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.toast {
  background: #1a1035;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  font-size: 0.9rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
  animation: toastIn 0.3s ease;
}
.toast.success { background: #0d2e12; border-color: rgba(76,175,80,0.4); color: #81c784; }
.toast.error   { background: #2d0a0a; border-color: rgba(239,83,80,0.4); color: #ef9a9a; }
@keyframes toastIn { from { opacity: 0; transform: translateX(20px); } }

/* ─── Stats bar (accueil) ────────────────────────────────────────────────── */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}
.stat-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.stat-number { font-size: 2.5rem; font-weight: 900; color: var(--gold); line-height: 1; }
.stat-label  { font-size: 0.85rem; color: var(--text-muted); margin-top: 0.3rem; }

/* ─── Couleur équipe ─────────────────────────────────────────────────────── */
.team-color {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  display: inline-block;
  vertical-align: middle;
  margin-right: 6px;
  border: 1px solid rgba(255,255,255,0.15);
}

/* ─── Empty state ────────────────────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-muted);
}
.empty-state-icon { font-size: 3rem; margin-bottom: 1rem; opacity: 0.4; }
.empty-state p { font-size: 1rem; }

/* ─── Footer ─────────────────────────────────────────────────────────────── */
footer {
  background: #0a0720;
  border-top: 1px solid rgba(212,175,55,0.15);
  color: var(--text-muted);
  text-align: center;
  padding: 1.25rem;
  font-size: 0.85rem;
  margin-top: auto;
}
footer strong { color: var(--gold); }

/* ─── Theme toggle pill ──────────────────────────────────────────────────── */
.theme-toggle {
  position: relative;
  width: 64px;
  height: 30px;
  border-radius: 15px;
  background: rgba(212,175,55,0.1);
  border: 1.5px solid rgba(212,175,55,0.25);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 3px 6px;
  flex-shrink: 0;
  margin-left: 1rem;
  transition: background 0.2s, border-color 0.2s;
  outline: none;
}
.theme-toggle:hover { background: rgba(212,175,55,0.18); border-color: rgba(212,175,55,0.45); }
.theme-toggle .tt-sun,
.theme-toggle .tt-moon {
  font-size: 0.8rem;
  line-height: 1;
  transition: opacity 0.25s;
  position: relative;
  z-index: 1;
  pointer-events: none;
}
.theme-toggle .tt-thumb {
  position: absolute;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--gold);
  top: 50%;
  left: 4px;
  transform: translateY(-50%) translateX(0);
  transition: transform 0.28s cubic-bezier(0.34, 1.4, 0.64, 1);
  box-shadow: 0 1px 5px rgba(0,0,0,0.4);
  pointer-events: none;
}

[data-theme="light"] .theme-toggle .tt-thumb { transform: translateY(-50%) translateX(0); }
[data-theme="light"] .theme-toggle .tt-sun   { opacity: 1; }
[data-theme="light"] .theme-toggle .tt-moon  { opacity: 0.35; }

[data-theme="dark"] .theme-toggle .tt-thumb  { transform: translateY(-50%) translateX(32px); }
[data-theme="dark"] .theme-toggle .tt-sun    { opacity: 0.35; }
[data-theme="dark"] .theme-toggle .tt-moon   { opacity: 1; }

/* Défaut sombre : thumb à droite */
.theme-toggle .tt-thumb { transform: translateY(-50%) translateX(32px); }
.theme-toggle .tt-sun   { opacity: 0.35; }
.theme-toggle .tt-moon  { opacity: 1; }

/* ─── Hamburger button ───────────────────────────────────────────────────── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  border-radius: 8px;
  transition: background 0.2s;
  flex-shrink: 0;
}
.nav-hamburger:hover { background: rgba(212,175,55,0.1); }
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
  transform-origin: center;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── Hero plain (pages intérieures) ────────────────────────────────────── */
.hero-bg-plain {
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
}

/* ─── List items ─────────────────────────────────────────────────────────── */
.list-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}
.list-item:hover {
  border-color: rgba(212,175,55,0.35);
  box-shadow: 0 0 0 1px rgba(212,175,55,0.2), 0 2px 16px rgba(212,175,55,0.08);
}

/* ─── Tab buttons ────────────────────────────────────────────────────────── */
.tab-btn {
  padding: 0.45rem 1rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  font-family: inherit;
}
.tab-btn:hover { color: var(--gold); border-color: rgba(212,175,55,0.3); }
.tab-btn.active { background: rgba(212,175,55,0.12); color: var(--gold); border-color: rgba(212,175,55,0.4); }

/* ─── Select ─────────────────────────────────────────────────────────────── */
select {
  background: var(--input-bg);
  color: var(--text);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 0.6rem 0.9rem;
  font-family: inherit;
  font-size: 0.95rem;
}
select:focus { outline: none; border-color: var(--gold); }

textarea {
  background: var(--input-bg);
  color: var(--text);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 0.6rem 0.9rem;
  font-family: inherit;
  font-size: 0.95rem;
  resize: vertical;
}
textarea:focus { outline: none; border-color: var(--gold); }

/* ─── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 700px) {
  .form-row { grid-template-columns: 1fr; }
  nav { padding: 0 1rem; }
  main { padding: 1.25rem 1rem; }

  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0; right: 0;
    background: #0a0720;
    border-bottom: 1px solid rgba(212,175,55,0.2);
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 0 0.75rem;
    box-shadow: 0 6px 20px rgba(0,0,0,0.5);
    z-index: 99;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a {
    display: block;
    padding: 0.75rem 1.5rem;
    border-radius: 0;
    font-size: 1rem;
    border-bottom: 1px solid rgba(212,175,55,0.08);
  }
  .nav-links a:last-child { border-bottom: none; }
  .nav-hamburger { display: flex; }
}
