/* =============================================
   Mission Alpha DDG – Main Stylesheet
   Design: Sacred Gold & Deep Night, Mobile-First
   ============================================= */

:root {
  --gold: #c9a227;
  --gold-light: #e8c456;
  --gold-dim: #8a6e1a;
  --night: #0a0a16;
  --night-2: #0f0f1e;
  --night-3: #161626;
  --night-4: #1e1e32;
  --night-5: #252540;
  --white: #f5f0e8;
  --white-dim: rgba(245,240,232,0.7);
  --white-faint: rgba(245,240,232,0.15);
  --accent: #7b4fc5;
  --accent2: #3b82f6;
  --danger: #e53e3e;
  --success: #38a169;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 8px 32px rgba(0,0,0,0.5);
  --shadow-gold: 0 4px 24px rgba(201,162,39,0.2);
  --font-display: 'Cinzel', serif;
  --font-body: 'Crimson Pro', Georgia, serif;
  --font-mono: 'Space Mono', monospace;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--night);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Sacred Background */
.bg-sacred {
  position: fixed; inset: 0; z-index: 0;
  background: radial-gradient(ellipse at 20% 10%, rgba(201,162,39,0.08) 0%, transparent 50%),
              radial-gradient(ellipse at 80% 90%, rgba(123,79,197,0.08) 0%, transparent 50%),
              radial-gradient(ellipse at 50% 50%, rgba(15,15,30,0.9) 0%, var(--night) 100%);
  pointer-events: none;
}

.cross-pattern {
  position: fixed; inset: 0; z-index: 0;
  background-image: 
    linear-gradient(rgba(201,162,39,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,162,39,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

/* ===== HEADER ===== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10,10,22,0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(201,162,39,0.2);
  padding: 0 16px;
  height: 60px;
}

.header-inner {
  max-width: 1200px; margin: 0 auto;
  height: 100%;
  display: flex; align-items: center; justify-content: space-between;
}

.logo-area {
  display: flex; align-items: center; gap: 10px;
}

.logo-emblem {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dim));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 20px; font-weight: 900;
  color: var(--night);
  flex-shrink: 0;
}

.logo-text {
  display: flex; flex-direction: column;
}

.church-name {
  font-family: var(--font-display);
  font-size: 13px; font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.05em;
  line-height: 1.2;
}

.church-sub {
  font-size: 10px; color: var(--white-dim);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.header-nav {
  display: flex; gap: 20px;
}

.nav-link {
  font-family: var(--font-display);
  font-size: 11px; color: var(--white-dim);
  text-decoration: none; letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color .2s;
}
.nav-link:hover, .nav-link.active { color: var(--gold); }

.back-btn {
  font-family: var(--font-mono);
  font-size: 12px; color: var(--gold);
  text-decoration: none;
  display: flex; align-items: center; gap: 4px;
  transition: opacity .2s;
  white-space: nowrap;
}
.back-btn:hover { opacity: 0.7; }

/* ===== HERO ===== */
.hero {
  position: relative; z-index: 1;
  padding: 60px 20px 50px;
  text-align: center;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(201,162,39,0.15) 0%, transparent 70%);
  pointer-events: none;
}

.hero-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.2em;
  color: var(--gold);
  border: 1px solid var(--gold-dim);
  padding: 5px 16px;
  border-radius: 20px;
  margin-bottom: 20px;
  animation: pulse-border 2s infinite;
}

@keyframes pulse-border {
  0%,100% { border-color: var(--gold-dim); }
  50% { border-color: var(--gold); box-shadow: 0 0 20px rgba(201,162,39,0.3); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(24px, 6vw, 52px);
  font-weight: 900;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 16px;
  text-shadow: 0 0 60px rgba(201,162,39,0.3);
}

.hero-title span { color: var(--gold); }

.hero-verse {
  font-family: var(--font-body);
  font-size: 18px; font-style: italic;
  color: var(--gold-light);
  margin-bottom: 20px;
}

.hero-dates {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px; color: var(--white-dim);
  background: var(--white-faint);
  padding: 6px 16px; border-radius: 20px;
  margin-bottom: 28px;
}

.hero-cta {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 14px; font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--night);
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  padding: 14px 36px; border-radius: 30px;
  text-decoration: none;
  transition: transform .2s, box-shadow .2s;
  box-shadow: var(--shadow-gold);
}
.hero-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(201,162,39,0.4); }

/* ===== SECTIONS ===== */
.main-content {
  position: relative; z-index: 1;
  max-width: 900px; margin: 0 auto;
  padding: 0 16px 60px;
}

.section-header {
  text-align: center;
  padding: 40px 0 24px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(20px, 4vw, 32px);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}

.section-sub {
  font-size: 15px; color: var(--white-dim);
  font-style: italic;
}

/* ===== SEMINAIRE CARDS ===== */
.seminaires-grid {
  display: flex; flex-direction: column; gap: 16px;
}

.sem-card {
  background: var(--night-3);
  border: 1px solid rgba(201,162,39,0.15);
  border-radius: var(--radius);
  padding: 24px 20px;
  cursor: pointer;
  transition: transform .2s, border-color .2s, box-shadow .2s;
  text-decoration: none; color: inherit;
  display: block;
  animation: fadeUp .4s ease both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: none; }
}

.sem-card:hover {
  transform: translateY(-3px);
  border-color: var(--gold-dim);
  box-shadow: var(--shadow-gold);
}

.sem-card-top {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 12px;
}

.sem-status {
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.15em;
  padding: 3px 10px; border-radius: 10px;
}
.sem-status.publie { background: rgba(56,161,105,0.2); color: #68d391; border: 1px solid rgba(56,161,105,0.3); }
.sem-status.brouillon { background: rgba(160,160,160,0.15); color: #a0aec0; border: 1px solid rgba(160,160,160,0.2); }
.sem-status.archive { background: rgba(201,162,39,0.15); color: var(--gold); border: 1px solid rgba(201,162,39,0.3); }

.sem-card-dates {
  font-family: var(--font-mono);
  font-size: 11px; color: var(--white-dim);
  text-align: right;
}

.sem-card-title {
  font-family: var(--font-display);
  font-size: clamp(15px, 3vw, 22px);
  font-weight: 700; color: var(--white);
  margin-bottom: 6px;
  line-height: 1.3;
}

.sem-card-theme {
  font-size: 14px; color: var(--gold);
  font-style: italic;
  margin-bottom: 12px;
}

.sem-card-desc {
  font-size: 14px; color: var(--white-dim);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sem-card-footer {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 16px; padding-top: 12px;
  border-top: 1px solid var(--white-faint);
}

.sem-card-count {
  font-family: var(--font-mono);
  font-size: 11px; color: var(--white-dim);
}

.sem-card-arrow {
  color: var(--gold); font-size: 18px;
  transition: transform .2s;
}
.sem-card:hover .sem-card-arrow { transform: translateX(4px); }

/* ===== SEMINARY DETAIL HEADER ===== */
.sem-detail-header {
  position: relative; z-index: 1;
  padding: 40px 20px 40px;
  background: linear-gradient(180deg, rgba(201,162,39,0.08) 0%, transparent 100%);
  border-bottom: 1px solid rgba(201,162,39,0.15);
  text-align: center;
}

.sdh-inner { max-width: 700px; margin: 0 auto; }

.sdh-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.2em;
  color: var(--gold); border: 1px solid var(--gold-dim);
  padding: 4px 14px; border-radius: 20px;
  margin-bottom: 16px;
}

.sdh-title {
  font-family: var(--font-display);
  font-size: clamp(20px, 5vw, 38px);
  font-weight: 900; color: var(--white);
  margin-bottom: 12px;
  text-shadow: 0 0 40px rgba(201,162,39,0.2);
}

.sdh-verse {
  font-size: 18px; font-style: italic;
  color: var(--gold-light); margin-bottom: 16px;
}

.sdh-meta {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-mono);
  font-size: 11px; color: var(--white-dim);
  background: var(--white-faint);
  padding: 6px 16px; border-radius: 20px;
}

.sem-description {
  background: var(--night-3);
  border: 1px solid rgba(201,162,39,0.1);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 24px;
  font-size: 16px;
  color: var(--white-dim);
  line-height: 1.7;
}

/* ===== SOUS-THEMES LIST ===== */
.sous-themes-list {
  display: flex; flex-direction: column; gap: 12px;
}

.st-card {
  background: var(--night-3);
  border: 1px solid rgba(201,162,39,0.12);
  border-radius: var(--radius);
  padding: 20px 18px;
  cursor: pointer;
  text-decoration: none; color: inherit;
  display: flex; align-items: center; gap: 16px;
  transition: transform .2s, border-color .2s, box-shadow .2s;
  animation: fadeUp .3s ease both;
}

.st-card:hover {
  transform: translateY(-2px);
  border-color: var(--gold-dim);
  box-shadow: var(--shadow-gold);
}

.st-num {
  font-family: var(--font-display);
  font-size: 28px; font-weight: 900;
  color: var(--gold-dim);
  min-width: 40px;
  line-height: 1;
}

.st-info { flex: 1; }

.st-title {
  font-family: var(--font-display);
  font-size: 16px; font-weight: 700;
  color: var(--white); margin-bottom: 4px;
  line-height: 1.3;
}

.st-auteur {
  font-size: 13px; color: var(--gold);
  margin-bottom: 4px;
}

.st-verset {
  font-size: 12px; color: var(--white-dim);
  font-style: italic;
}

.st-has-audio {
  font-size: 18px; flex-shrink: 0;
  color: var(--gold);
}

/* ===== SUB-THEME DETAIL ===== */
.st-detail .main-content {
  padding-top: 20px;
}

.std-hero {
  text-align: center;
  padding: 30px 20px 24px;
  background: linear-gradient(180deg, rgba(201,162,39,0.08) 0%, transparent 100%);
  border-radius: var(--radius);
  margin-bottom: 20px;
  border: 1px solid rgba(201,162,39,0.12);
}

.std-num {
  font-family: var(--font-mono);
  font-size: 48px; font-weight: 700;
  color: rgba(201,162,39,0.2);
  line-height: 1;
  margin-bottom: 8px;
}

.std-title {
  font-family: var(--font-display);
  font-size: clamp(18px, 4vw, 30px);
  font-weight: 900; color: var(--white);
  margin-bottom: 16px; line-height: 1.25;
}

.std-auteur {
  display: inline-flex; flex-direction: column;
  gap: 2px;
}

.auteur-label {
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.15em;
  color: var(--white-dim); text-transform: uppercase;
}

.auteur-name {
  font-family: var(--font-display);
  font-size: 16px; color: var(--gold); font-weight: 600;
}

/* Verse Box */
.std-verset-box {
  background: linear-gradient(135deg, rgba(201,162,39,0.1), rgba(201,162,39,0.05));
  border: 1px solid rgba(201,162,39,0.3);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 20px;
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}

.verset-icon { font-size: 20px; color: var(--gold); }

.verset-ref {
  font-family: var(--font-display);
  font-size: 18px; color: var(--gold-light);
  font-style: italic; font-weight: 600;
}

/* ===== AUDIO PLAYER ===== */
.audio-player-card {
  background: var(--night-4);
  border: 1px solid rgba(201,162,39,0.25);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-gold);
}

.ap-header {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 18px;
}

.ap-icon {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: var(--night);
  flex-shrink: 0;
}

.ap-info { flex: 1; }
.ap-label {
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.15em;
  color: var(--white-dim);
  text-transform: uppercase; display: block;
}
.ap-filename {
  font-size: 14px; color: var(--white);
  display: block;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  max-width: 200px;
}

.ap-controls {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 16px;
}

.ap-btn {
  width: 48px; height: 48px;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  border: none; border-radius: 50%;
  color: var(--night); font-size: 16px;
  cursor: pointer; flex-shrink: 0;
  transition: transform .15s, box-shadow .15s;
  display: flex; align-items: center; justify-content: center;
}
.ap-btn:hover { transform: scale(1.08); box-shadow: 0 4px 20px rgba(201,162,39,0.4); }
.ap-btn.playing { background: linear-gradient(135deg, var(--accent), #6b3fb5); color: white; }

.ap-progress-wrap { flex: 1; }

.ap-progress-bar {
  height: 6px; background: var(--night-5);
  border-radius: 3px; position: relative;
  cursor: pointer; margin-bottom: 6px;
}

.ap-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold-light), var(--gold));
  border-radius: 3px; width: 0%;
  transition: width .1s linear;
}

.ap-thumb {
  width: 14px; height: 14px;
  background: var(--gold-light);
  border-radius: 50%;
  position: absolute; top: 50%;
  transform: translate(-50%, -50%);
  left: 0%; transition: left .1s linear;
}

.ap-times {
  display: flex; justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px; color: var(--white-dim);
}

.ap-actions {
  display: flex; gap: 10px;
}

.ap-action-btn {
  flex: 1; padding: 10px;
  background: var(--night-5);
  border: 1px solid rgba(201,162,39,0.2);
  border-radius: var(--radius-sm);
  color: var(--white); font-family: var(--font-display);
  font-size: 13px; font-weight: 600;
  cursor: pointer; text-align: center;
  text-decoration: none; display: block;
  transition: background .2s, border-color .2s;
}
.ap-action-btn:hover {
  background: rgba(201,162,39,0.15);
  border-color: var(--gold-dim);
}

/* ===== SECTIONS CONTENT ===== */
.std-section {
  background: var(--night-3);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
}

.std-section-title {
  font-family: var(--font-display);
  font-size: 14px; font-weight: 700;
  color: var(--gold); letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(201,162,39,0.2);
}

.std-resume {
  font-size: 16px; color: var(--white-dim);
  line-height: 1.8; white-space: pre-wrap;
}

.versets-list {
  display: flex; flex-direction: column; gap: 10px;
}

.verset-item {
  background: var(--night-5);
  border-left: 3px solid var(--gold-dim);
  padding: 12px 14px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 15px; color: var(--white);
  font-style: italic; line-height: 1.6;
}

/* ===== SHARE BOTTOM ===== */
.share-bottom {
  background: var(--night-3);
  border: 1px solid rgba(201,162,39,0.15);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  margin-top: 24px;
}

.share-label {
  font-family: var(--font-display);
  font-size: 13px; font-weight: 600;
  color: var(--white-dim); letter-spacing: 0.1em;
  text-transform: uppercase; margin-bottom: 12px;
}

.share-btns {
  display: flex; gap: 10px;
}

.share-btn {
  flex: 1; padding: 12px;
  border: none; border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-size: 14px; font-weight: 700;
  cursor: pointer; transition: transform .15s, opacity .15s;
}
.share-btn:hover { transform: scale(1.02); opacity: 0.9; }

.share-btn.whatsapp {
  background: #25d366; color: white;
}

.share-btn.copy {
  background: var(--night-5);
  border: 1px solid rgba(201,162,39,0.25);
  color: var(--white);
}

/* ===== TOAST ===== */
.toast {
  position: fixed; bottom: 24px; left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--night-4);
  border: 1px solid var(--gold-dim);
  color: var(--gold-light);
  font-family: var(--font-display);
  font-size: 14px; font-weight: 600;
  padding: 12px 24px; border-radius: 30px;
  z-index: 999;
  transition: transform .3s cubic-bezier(.175,.885,.32,1.275), opacity .3s;
  opacity: 0; pointer-events: none;
  white-space: nowrap;
}
.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ===== LOADING ===== */
.loading-pulse { display: flex; flex-direction: column; gap: 12px; }
.pulse-card {
  height: 120px; background: var(--night-3);
  border-radius: var(--radius);
  animation: shimmer 1.5s infinite;
}
@keyframes shimmer {
  0%,100% { opacity: 0.4; }
  50% { opacity: 0.7; }
}

.empty-state {
  text-align: center; padding: 60px 20px;
  color: var(--white-dim);
}
.empty-state .empty-icon { font-size: 48px; margin-bottom: 16px; }
.empty-state p { font-size: 16px; }

/* ===== FOOTER ===== */
.site-footer {
  position: relative; z-index: 1;
  text-align: center;
  padding: 40px 20px 30px;
  border-top: 1px solid rgba(201,162,39,0.1);
}

.footer-alpha {
  font-family: var(--font-display);
  font-size: 36px; font-weight: 900;
  color: var(--gold-dim);
  margin-bottom: 10px;
}

.footer-text {
  font-size: 13px; color: var(--white-dim);
  font-family: var(--font-mono);
  margin-bottom: 6px;
}

.footer-verse {
  font-size: 14px; color: var(--gold-dim);
  font-style: italic;
}

/* ===== ADMIN STYLES ===== */
.admin-layout {
  display: flex; min-height: 100vh;
}

.admin-sidebar {
  width: 260px; flex-shrink: 0;
  background: var(--night-2);
  border-right: 1px solid rgba(201,162,39,0.15);
  padding: 24px 0;
  position: fixed; top: 0; left: 0; bottom: 0;
  z-index: 200;
  overflow-y: auto;
  transition: transform .3s;
}

.admin-main {
  flex: 1;
  margin-left: 260px;
  padding: 30px 24px;
  min-height: 100vh;
}

.sidebar-logo {
  padding: 0 20px 24px;
  border-bottom: 1px solid rgba(201,162,39,0.15);
  margin-bottom: 20px;
}

.sidebar-logo .logo-emblem { width: 44px; height: 44px; font-size: 24px; }

.sidebar-nav { padding: 0 12px; }

.sidebar-link {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 14px; border-radius: var(--radius-sm);
  color: var(--white-dim); text-decoration: none;
  font-family: var(--font-display);
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.05em;
  transition: background .2s, color .2s;
  margin-bottom: 4px;
}
.sidebar-link:hover, .sidebar-link.active {
  background: rgba(201,162,39,0.12);
  color: var(--gold);
}
.sidebar-link .icon { font-size: 16px; }

.admin-top-bar {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 28px; padding-bottom: 20px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.admin-page-title {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 900;
  color: var(--white);
}

/* Forms */
.form-card {
  background: var(--night-3);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 24px;
}

.form-title {
  font-family: var(--font-display);
  font-size: 16px; font-weight: 700;
  color: var(--gold); margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(201,162,39,0.2);
}

.form-group { margin-bottom: 18px; }

.form-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.12em;
  color: var(--white-dim); text-transform: uppercase;
  margin-bottom: 7px;
}

.form-input, .form-textarea, .form-select {
  width: 100%;
  background: var(--night-5);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  transition: border-color .2s;
  -webkit-appearance: none;
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
  outline: none;
  border-color: var(--gold-dim);
}
.form-textarea { resize: vertical; min-height: 120px; }
.form-select option { background: var(--night-3); }

.form-row {
  display: grid; gap: 16px;
}
@media (min-width: 600px) {
  .form-row.cols-2 { grid-template-columns: 1fr 1fr; }
}

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-size: 14px; font-weight: 700;
  cursor: pointer; border: none;
  transition: transform .15s, opacity .15s;
  text-decoration: none;
}
.btn:hover { opacity: 0.88; }
.btn:active { transform: scale(0.97); }

.btn-gold {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: var(--night);
}
.btn-outline {
  background: transparent;
  border: 1px solid rgba(201,162,39,0.4);
  color: var(--gold);
}
.btn-danger {
  background: rgba(229,62,62,0.2);
  border: 1px solid rgba(229,62,62,0.4);
  color: #fc8181;
}
.btn-sm { padding: 8px 16px; font-size: 12px; }

/* Tables */
.data-table {
  width: 100%; border-collapse: collapse;
  font-size: 14px;
}
.data-table th {
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.12em;
  color: var(--white-dim); text-transform: uppercase;
  padding: 10px 14px; text-align: left;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.data-table td {
  padding: 14px; color: var(--white);
  border-bottom: 1px solid rgba(255,255,255,0.04);
  vertical-align: middle;
}
.data-table tr:hover td { background: rgba(255,255,255,0.02); }

/* Stats cards */
.stats-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px; margin-bottom: 28px;
}

.stat-card {
  background: var(--night-3);
  border: 1px solid rgba(201,162,39,0.12);
  border-radius: var(--radius);
  padding: 20px;
}

.stat-num {
  font-family: var(--font-display);
  font-size: 36px; font-weight: 900;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.12em;
  color: var(--white-dim); text-transform: uppercase;
}

/* Login */
.login-wrap {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}

.login-card {
  background: var(--night-3);
  border: 1px solid rgba(201,162,39,0.2);
  border-radius: var(--radius);
  padding: 40px 32px;
  width: 100%; max-width: 380px;
  box-shadow: var(--shadow);
}

.login-title {
  font-family: var(--font-display);
  font-size: 24px; font-weight: 900;
  color: var(--white); text-align: center;
  margin-bottom: 8px;
}

.login-sub {
  font-size: 14px; color: var(--white-dim);
  text-align: center; margin-bottom: 28px;
}

.alert {
  padding: 12px 16px; border-radius: var(--radius-sm);
  font-size: 14px; margin-bottom: 16px;
}
.alert-error { background: rgba(229,62,62,0.15); border: 1px solid rgba(229,62,62,0.3); color: #fc8181; }
.alert-success { background: rgba(56,161,105,0.15); border: 1px solid rgba(56,161,105,0.3); color: #68d391; }

/* Upload area */
.upload-area {
  border: 2px dashed rgba(201,162,39,0.3);
  border-radius: var(--radius);
  padding: 30px 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color .2s, background .2s;
}
.upload-area:hover {
  border-color: var(--gold-dim);
  background: rgba(201,162,39,0.05);
}
.upload-area input { display: none; }
.upload-icon { font-size: 36px; margin-bottom: 10px; }
.upload-text { font-size: 15px; color: var(--white-dim); }
.upload-hint { font-size: 12px; color: rgba(245,240,232,0.4); margin-top: 6px; }
.upload-current {
  background: rgba(201,162,39,0.1);
  border: 1px solid rgba(201,162,39,0.25);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 13px; color: var(--gold);
  display: flex; align-items: center; gap: 8px;
  margin-top: 12px;
}

/* Mobile sidebar toggle */
.sidebar-toggle {
  display: none;
  background: none; border: none;
  color: var(--gold); font-size: 22px;
  cursor: pointer; padding: 4px;
}

.sidebar-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 199;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .admin-sidebar {
    transform: translateX(-100%);
  }
  .admin-sidebar.open {
    transform: none;
  }
  .sidebar-overlay.show { display: block; }
  .sidebar-toggle { display: flex; }
  .admin-main {
    margin-left: 0;
    padding: 20px 16px;
  }
  .header-nav { display: none; }
  .data-table { display: block; overflow-x: auto; }
}

@media (max-width: 480px) {
  .hero { padding: 40px 16px 36px; }
  .form-card { padding: 20px 16px; }
  .login-card { padding: 28px 20px; }
}

/* ===== ANIMATIONS ===== */
.fade-in { animation: fadeIn .4s ease; }
@keyframes fadeIn {
  from { opacity: 0; } to { opacity: 1; }
}

.spin {
  animation: spin .8s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
