/* ============================================================
   Aktieklub Viborg – Hoved-stylesheet
   Mørkt tema, glassmorphism, premium finansiel æstetik
   ============================================================ */

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

/* ── CSS Custom Properties – DARK (default) ── */
:root {
  --bg-primary: #0a0e1a;
  --bg-secondary: #0f1525;
  --bg-card: rgba(255,255,255,0.04);
  --bg-card-hover: rgba(255,255,255,0.07);
  --glass: rgba(255,255,255,0.06);
  --glass-border: rgba(255,255,255,0.1);

  --gold: #f0b429;
  --gold-light: #ffd166;
  --gold-dark: #c9921a;
  --accent: #3ecfcf;
  --accent2: #6c63ff;

  --positive: #22c55e;
  --negative: #ef4444;
  --neutral: #94a3b8;

  --text-primary: #f0f4ff;
  --text-secondary: #94a3b8;
  --text-muted: #5a6a8a;

  --border: rgba(255,255,255,0.08);
  --shadow: 0 8px 32px rgba(0,0,0,0.4);
  --shadow-gold: 0 0 30px rgba(240,180,41,0.2);
  --shadow-card: 0 4px 24px rgba(0,0,0,0.3);

  --radius: 16px;
  --radius-sm: 8px;
  --radius-lg: 24px;

  --nav-height: 72px;
  --transition: 0.25s ease;
}

/* ══════════════════════════════════════════
   LIGHT MODE
   ══════════════════════════════════════════ */
body.light-mode {
  --bg-primary: #f4f6fb;
  --bg-secondary: #ffffff;
  --bg-card: rgba(255,255,255,0.85);
  --bg-card-hover: rgba(255,255,255,1);
  --glass: rgba(0,0,0,0.03);
  --glass-border: rgba(0,0,0,0.1);

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;

  --border: rgba(0,0,0,0.1);
  --shadow: 0 8px 32px rgba(0,0,0,0.1);
  --shadow-card: 0 4px 24px rgba(0,0,0,0.08);
}

body.light-mode::before {
  background:
    radial-gradient(ellipse 80% 50% at 20% -10%, rgba(108,99,255,0.06) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 100%, rgba(240,180,41,0.05) 0%, transparent 55%);
}

body.light-mode #navbar {
  background: rgba(255,255,255,0.92);
  border-bottom-color: rgba(0,0,0,0.1);
}
body.light-mode #navbar nav a { color: var(--text-secondary); }
body.light-mode #navbar nav a:hover,
body.light-mode #navbar nav a.active { background: rgba(0,0,0,0.05); color: var(--text-primary); }
body.light-mode .modal { background: #ffffff; }
body.light-mode .form-control { background: rgba(0,0,0,0.04); color: var(--text-primary); }
body.light-mode .form-control::placeholder { color: var(--text-muted); }
body.light-mode thead { background: rgba(0,0,0,0.03); }
body.light-mode td { border-bottom-color: rgba(0,0,0,0.06); }
body.light-mode tr:hover td { background: rgba(0,0,0,0.02); }
body.light-mode ::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.15); }
body.light-mode footer { background: #ffffff; }
body.light-mode .admin-bar { background: rgba(240,180,41,0.12); }
body.light-mode .search-bar input { background: #fff; color: var(--text-primary); }
body.light-mode #login-gate { background: #eef1f8; }
body.light-mode .gate-card { background: #ffffff; box-shadow: 0 24px 64px rgba(0,0,0,0.12); }

/* ── Theme Toggle Button ── */
#theme-toggle {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 1rem;
  transition: all var(--transition);
  flex-shrink: 0;
}
#theme-toggle:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: rotate(20deg);
}

/* ══════════════════════════════════════════
   FULL-PAGE LOGIN GATE
   ══════════════════════════════════════════ */
#login-gate {
  position: fixed; inset: 0;
  background: var(--bg-primary);
  z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
  transition: opacity 0.3s ease;
}

#login-gate::before {
  content: '';
  position: fixed; inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 30% 20%, rgba(108,99,255,0.18) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 80% 80%, rgba(240,180,41,0.12) 0%, transparent 55%);
  pointer-events: none;
}

.gate-card {
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem;
  width: 100%; max-width: 440px;
  position: relative; z-index: 1;
  box-shadow: 0 24px 64px rgba(0,0,0,0.5);
  animation: fadeIn 0.4s ease;
}

.gate-logo { text-align: center; margin-bottom: 2rem; }
.gate-logo img {
  width: 80px; height: 80px;
  object-fit: contain; border-radius: var(--radius);
  margin-bottom: 1rem;
  box-shadow: 0 8px 24px rgba(240,180,41,0.3);
}
.gate-logo h1 { font-size: 1.5rem; margin-bottom: 0.25rem; }
.gate-logo h1 span { color: var(--gold); }
.gate-logo p { font-size: 0.85rem; }

.gate-divider {
  display: flex; align-items: center; gap: 1rem;
  margin: 1.25rem 0; color: var(--text-muted); font-size: 0.75rem;
}
.gate-divider::before, .gate-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}

.gate-footer {
  text-align: center; margin-top: 1.5rem;
  font-size: 0.78rem; color: var(--text-muted); line-height: 1.6;
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 20% -10%, rgba(108,99,255,0.12) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 100%, rgba(240,180,41,0.08) 0%, transparent 55%),
    radial-gradient(ellipse 50% 60% at 50% 50%, rgba(62,207,207,0.04) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ── Typography ── */
h1, h2, h3, h4 { font-family: 'Outfit', sans-serif; font-weight: 700; line-height: 1.2; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1rem; font-weight: 600; }
p { color: var(--text-secondary); }
a { color: var(--gold); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold-light); }

/* ── Navigation ── */
#navbar {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-height);
  background: rgba(10,14,26,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  display: flex;
  align-items: center;
  padding: 0 2rem;
  gap: 2rem;
  transition: background var(--transition);
}

#navbar .logo {
  display: flex; align-items: center; gap: 0.75rem;
  font-family: 'Outfit', sans-serif;
  font-size: 1.2rem; font-weight: 800;
  color: var(--text-primary);
  text-decoration: none;
  flex-shrink: 0;
}

#navbar .logo img { height: 40px; width: 40px; object-fit: contain; border-radius: 8px; }

#navbar .logo span { color: var(--gold); }

#navbar nav { display: flex; gap: 0.25rem; flex: 1; }

#navbar nav a {
  color: var(--text-secondary);
  font-size: 0.9rem; font-weight: 500;
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  white-space: nowrap;
}

#navbar nav a:hover, #navbar nav a.active {
  color: var(--text-primary);
  background: var(--glass);
}

#navbar nav a.active { color: var(--gold); }

#navbar .nav-actions {
  display: flex; align-items: center; gap: 0.75rem; margin-left: auto;
}

#login-btn {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #0a0e1a;
  border: none;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 600; font-size: 0.875rem;
  cursor: pointer;
  transition: all var(--transition);
}

#login-btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-gold);
}

#user-display {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.875rem; color: var(--text-secondary);
}

#user-display .avatar {
  width: 32px; height: 32px;
  background: linear-gradient(135deg, var(--gold), var(--accent2));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.75rem; color: #fff;
}

#logout-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem; cursor: pointer;
  transition: all var(--transition);
}
#logout-btn:hover { border-color: var(--negative); color: var(--negative); }

#hamburger { display: none; background: none; border: none; color: var(--text-primary); font-size: 1.5rem; cursor: pointer; }

/* ── Page Wrapper ── */
.page-wrapper {
  position: relative; z-index: 1;
  padding-top: var(--nav-height);
  min-height: 100vh;
}

/* ── Container ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.container-wide { max-width: 1400px; margin: 0 auto; padding: 0 1.5rem; }

/* ── Section ── */
.section { padding: 5rem 0; }
.section-sm { padding: 3rem 0; }

.section-header { margin-bottom: 3rem; }
.section-header h2 { margin-bottom: 0.5rem; }
.section-label {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--gold);
  margin-bottom: 0.5rem; display: block;
}

/* ── Glass Card ── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 1.75rem;
  backdrop-filter: blur(10px);
  transition: all var(--transition);
}
.card:hover { background: var(--bg-card-hover); border-color: rgba(255,255,255,0.15); }
.card-sm { padding: 1.25rem; border-radius: var(--radius-sm); }

/* ── Hero ── */
.hero {
  min-height: calc(100vh - var(--nav-height));
  display: flex; align-items: center;
  padding: 4rem 0 6rem;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(240,180,41,0.12);
  border: 1px solid rgba(240,180,41,0.3);
  padding: 0.4rem 1rem; border-radius: 100px;
  font-size: 0.8rem; font-weight: 600;
  color: var(--gold); margin-bottom: 1.5rem;
}

.hero-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: 0.5; transform: scale(1.4); }
}

.hero h1 { margin-bottom: 1.25rem; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero p.lead { font-size: 1.1rem; margin-bottom: 2rem; color: var(--text-secondary); }

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-sm);
  font-weight: 600; font-size: 0.95rem;
  cursor: pointer; border: none;
  transition: all var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #0a0e1a;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(240,180,41,0.35);
  color: #0a0e1a;
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-primary);
}
.btn-outline:hover {
  background: var(--glass);
  border-color: rgba(255,255,255,0.2);
  color: var(--text-primary);
}

.btn-sm { padding: 0.5rem 1.1rem; font-size: 0.85rem; }
.btn-danger { background: var(--negative); color: #fff; }
.btn-success { background: var(--positive); color: #fff; }

/* ── Next Meeting Card ── */
.meeting-card {
  background: linear-gradient(135deg, rgba(240,180,41,0.12), rgba(108,99,255,0.08));
  border: 1px solid rgba(240,180,41,0.25);
  border-radius: var(--radius);
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.meeting-card::before {
  content: '📅';
  position: absolute; top: -10px; right: -10px;
  font-size: 5rem; opacity: 0.08;
}

.meeting-label { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.75rem; }
.meeting-date { font-family: 'Outfit', sans-serif; font-size: 1.8rem; font-weight: 800; color: var(--text-primary); margin-bottom: 0.25rem; }
.meeting-sub { color: var(--text-secondary); font-size: 0.9rem; }

.countdown { display: flex; gap: 1rem; margin-top: 1.25rem; }
.countdown-unit { text-align: center; }
.countdown-num {
  font-family: 'Outfit', sans-serif;
  font-size: 1.75rem; font-weight: 800;
  color: var(--gold);
  display: block;
  background: rgba(240,180,41,0.1);
  border-radius: var(--radius-sm);
  padding: 0.25rem 0.6rem;
  min-width: 3rem;
}
.countdown-label { font-size: 0.65rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.1em; margin-top: 0.25rem; }

/* ── Stats Row ── */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1rem; }

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-align: center;
}

.stat-value {
  font-family: 'Outfit', sans-serif;
  font-size: 2rem; font-weight: 800;
  color: var(--text-primary);
  display: block;
}

.stat-value.positive { color: var(--positive); }
.stat-value.negative { color: var(--negative); }
.stat-label { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.25rem; }

/* ── Table ── */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); }

table {
  width: 100%; border-collapse: collapse;
  font-size: 0.9rem;
}

thead {
  background: rgba(255,255,255,0.04);
  border-bottom: 1px solid var(--border);
}

th {
  padding: 0.85rem 1rem;
  text-align: left; font-weight: 600;
  color: var(--text-secondary);
  font-size: 0.8rem; text-transform: uppercase;
  letter-spacing: 0.05em; white-space: nowrap;
}

td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  color: var(--text-primary);
  vertical-align: middle;
}

tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(255,255,255,0.03); }

.tag-positive {
  display: inline-flex; align-items: center; gap: 0.3rem;
  background: rgba(34,197,94,0.12);
  border: 1px solid rgba(34,197,94,0.25);
  color: var(--positive);
  padding: 0.2rem 0.6rem;
  border-radius: 100px; font-size: 0.8rem; font-weight: 600;
}

.tag-negative {
  display: inline-flex; align-items: center; gap: 0.3rem;
  background: rgba(239,68,68,0.12);
  border: 1px solid rgba(239,68,68,0.25);
  color: var(--negative);
  padding: 0.2rem 0.6rem;
  border-radius: 100px; font-size: 0.8rem; font-weight: 600;
}

.tag-neutral {
  background: rgba(148,163,184,0.12);
  border: 1px solid rgba(148,163,184,0.2);
  color: var(--neutral);
  padding: 0.2rem 0.6rem;
  border-radius: 100px; font-size: 0.8rem; font-weight: 600;
}

/* ── Member Cards ── */
.member-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.25rem; }

.member-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex; gap: 1.25rem; align-items: flex-start;
  transition: all var(--transition);
}

.member-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(240,180,41,0.2);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.member-avatar {
  width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--accent2));
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.2rem; color: #fff;
  flex-shrink: 0;
}

.member-info h3 { font-size: 1rem; margin-bottom: 0.25rem; }
.member-role { font-size: 0.75rem; color: var(--gold); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.6rem; }

.member-detail {
  display: flex; align-items: center; gap: 0.4rem;
  font-size: 0.8rem; color: var(--text-secondary);
  margin-top: 0.3rem;
}
.member-detail svg { width: 14px; height: 14px; color: var(--text-muted); flex-shrink: 0; }

/* ── Stock Cards ── */
.stock-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 1.25rem; margin-bottom: 3rem; }

.stock-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: all var(--transition);
  cursor: pointer;
}

.stock-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(240,180,41,0.25);
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}

.stock-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 1rem; }

.stock-ticker {
  font-family: 'Outfit', sans-serif;
  font-size: 1.4rem; font-weight: 800;
  color: var(--text-primary);
}

.stock-name { font-size: 0.85rem; color: var(--text-secondary); }

.stock-price {
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem; font-weight: 700;
  text-align: right;
}

.stock-member {
  display: flex; align-items: center; gap: 0.4rem;
  font-size: 0.8rem; color: var(--text-muted);
  margin-top: 0.75rem; padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}

/* ── Mini Chart ── */
.mini-chart { height: 48px; margin: 0.75rem 0; }

/* ── Performance table ── */
.perf-table th, .perf-table td { padding: 0.6rem 0.75rem; font-size: 0.82rem; }
.perf-table th { background: rgba(255,255,255,0.03); }

/* ── Minutes ── */
.minutes-list { display: flex; flex-direction: column; gap: 1rem; }

.minute-item {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex; gap: 1.25rem; align-items: flex-start;
  cursor: pointer; transition: all var(--transition);
}

.minute-item:hover {
  background: var(--bg-card-hover);
  border-color: rgba(240,180,41,0.2);
}

.minute-date-badge {
  background: rgba(240,180,41,0.1);
  border: 1px solid rgba(240,180,41,0.2);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.75rem;
  text-align: center; flex-shrink: 0;
  min-width: 64px;
}

.minute-date-badge .day { font-family: 'Outfit', sans-serif; font-size: 1.4rem; font-weight: 800; color: var(--gold); line-height: 1; }
.minute-date-badge .mon { font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; }

.minute-body h3 { font-size: 1rem; margin-bottom: 0.4rem; }
.minute-body p { font-size: 0.85rem; }

.minute-meta { display: flex; gap: 1rem; margin-top: 0.5rem; }
.minute-tag {
  font-size: 0.75rem; padding: 0.2rem 0.6rem;
  border-radius: 100px; background: var(--glass);
  border: 1px solid var(--border); color: var(--text-muted);
}

/* ── Modal ── */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
  opacity: 0; pointer-events: none;
  transition: opacity var(--transition);
}

.modal-overlay.open { opacity: 1; pointer-events: all; }

.modal {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  max-width: 560px; width: 100%;
  max-height: 90vh; overflow-y: auto;
  transform: translateY(20px) scale(0.97);
  transition: transform var(--transition);
}

.modal-overlay.open .modal { transform: translateY(0) scale(1); }

.modal h2 { margin-bottom: 1.5rem; font-size: 1.4rem; }

.modal-close {
  position: absolute; top: 1rem; right: 1rem;
  background: none; border: none;
  color: var(--text-muted); font-size: 1.5rem;
  cursor: pointer; padding: 0.25rem;
  transition: color var(--transition);
}
.modal-close:hover { color: var(--text-primary); }

/* ── Form ── */
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 0.4rem; color: var(--text-secondary); }

.form-control {
  width: 100%;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  color: var(--text-primary);
  font-size: 0.9rem; font-family: 'Inter', sans-serif;
  transition: border-color var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(240,180,41,0.05);
}

.form-control::placeholder { color: var(--text-muted); }

textarea.form-control { resize: vertical; min-height: 120px; }

/* ── Login Modal ── */
.login-logo { text-align: center; margin-bottom: 1.75rem; }
.login-logo .logo-icon {
  width: 64px; height: 64px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; margin: 0 auto 0.75rem;
}
.login-logo h2 { font-size: 1.3rem; }
.login-logo p { font-size: 0.85rem; }

/* ── Alert ── */
.alert {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem; margin-bottom: 1rem;
  display: none;
}
.alert.show { display: block; }
.alert-error { background: rgba(239,68,68,0.12); border: 1px solid rgba(239,68,68,0.3); color: #fca5a5; }
.alert-success { background: rgba(34,197,94,0.12); border: 1px solid rgba(34,197,94,0.3); color: #86efac; }

/* ── Search Bar ── */
.search-bar {
  position: relative;
  max-width: 400px;
}

.search-bar input {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 0.65rem 1rem 0.65rem 2.5rem;
  color: var(--text-primary); font-size: 0.9rem;
  transition: border-color var(--transition);
}

.search-bar input:focus { outline: none; border-color: var(--gold); }
.search-bar::before {
  content: '🔍';
  position: absolute; left: 0.8rem; top: 50%; transform: translateY(-50%);
  font-size: 0.85rem;
}

/* ── Page Header ── */
.page-header {
  padding: 3rem 0 2rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 3rem;
}

.page-header .container { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 1rem; }

/* ── Debate Cards ── */
.debate-grid { display: flex; flex-direction: column; gap: 1.5rem; }

.debate-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: all var(--transition);
}

.debate-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(108,99,255,0.3);
}

.debate-meta { display: flex; gap: 0.75rem; align-items: center; margin-bottom: 0.75rem; flex-wrap: wrap; }
.debate-tag {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; padding: 0.2rem 0.6rem;
  border-radius: 100px;
  background: rgba(108,99,255,0.15); color: #a78bfa;
  border: 1px solid rgba(108,99,255,0.25);
}
.debate-date { font-size: 0.8rem; color: var(--text-muted); }

.debate-card h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.debate-card p { font-size: 0.9rem; line-height: 1.7; }

.debate-author { display: flex; align-items: center; gap: 0.5rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.debate-author .mini-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent2), var(--accent));
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem; font-weight: 700; color: #fff;
}
.debate-author span { font-size: 0.82rem; color: var(--text-secondary); }

/* ── Footer ── */
footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 3rem 0 1.5rem;
  margin-top: 5rem;
}

.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem; margin-bottom: 2rem; }
.footer-brand .logo { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; font-family: 'Outfit', sans-serif; font-weight: 800; font-size: 1.1rem; }
.footer-brand .logo img { height: 36px; border-radius: 6px; }
.footer-brand p { font-size: 0.875rem; }
.footer-col h4 { font-size: 0.85rem; font-weight: 700; color: var(--text-primary); margin-bottom: 1rem; text-transform: uppercase; letter-spacing: 0.08em; }
.footer-col a { display: block; color: var(--text-secondary); font-size: 0.875rem; margin-bottom: 0.5rem; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 1.5rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.footer-bottom p { font-size: 0.8rem; }

/* ── Mini Sparkline SVG ── */
.sparkline { width: 100%; height: 48px; }

/* ── Tabs ── */
.tabs { display: flex; gap: 0.25rem; margin-bottom: 1.5rem; background: var(--bg-card); border-radius: var(--radius-sm); padding: 0.25rem; width: fit-content; }
.tab-btn {
  background: none; border: none; color: var(--text-secondary);
  padding: 0.5rem 1rem; border-radius: 6px; font-size: 0.875rem; font-weight: 500;
  cursor: pointer; transition: all var(--transition);
}
.tab-btn.active { background: rgba(240,180,41,0.15); color: var(--gold); }

/* ── Admin panel ── */
.admin-bar {
  background: rgba(240,180,41,0.08);
  border-bottom: 1px solid rgba(240,180,41,0.2);
  padding: 0.6rem 1.5rem;
  display: flex; align-items: center; gap: 1rem;
  font-size: 0.82rem; color: var(--gold);
  display: none;
}
.admin-bar.show { display: flex; }
.admin-bar span { opacity: 0.7; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-actions { justify-content: center; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .member-grid { grid-template-columns: 1fr; }
  .stock-grid { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  #navbar nav { display: none; }
  #navbar nav.open { display: flex; flex-direction: column; position: fixed; top: var(--nav-height); left: 0; right: 0; background: var(--bg-secondary); border-bottom: 1px solid var(--border); padding: 1rem; gap: 0.25rem; z-index: 999; }
  #hamburger { display: block; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .section { padding: 3.5rem 0; }
  .page-header .container { flex-direction: column; align-items: flex-start; }
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius: 100px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.2); }

/* ── Protected Content ── */
.protected-content { display: none; }
.protected-content.unlocked { display: block; }

.locked-notice {
  text-align: center; padding: 5rem 2rem;
}
.lock-icon { font-size: 4rem; margin-bottom: 1rem; opacity: 0.5; }
.locked-notice h3 { margin-bottom: 0.75rem; }
.locked-notice p { margin-bottom: 1.5rem; }

/* ── Utility ── */
.text-gold { color: var(--gold); }
.text-positive { color: var(--positive); }
.text-negative { color: var(--negative); }
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-sm { gap: 0.5rem; }
.gap { gap: 1rem; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.fw-bold { font-weight: 700; }
.badge { display: inline-block; padding: 0.15rem 0.5rem; border-radius: 100px; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }
.badge-gold { background: rgba(240,180,41,0.15); color: var(--gold); }
.badge-blue { background: rgba(62,207,207,0.12); color: var(--accent); }
.w-full { width: 100%; }
.hidden { display: none !important; }

/* ── Fade-in Animation ── */
.fade-in { animation: fadeIn 0.5s ease forwards; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }

.stagger > * {
  opacity: 0; animation: fadeIn 0.5s ease forwards;
}
.stagger > *:nth-child(1) { animation-delay: 0.05s; }
.stagger > *:nth-child(2) { animation-delay: 0.1s; }
.stagger > *:nth-child(3) { animation-delay: 0.15s; }
.stagger > *:nth-child(4) { animation-delay: 0.2s; }
.stagger > *:nth-child(5) { animation-delay: 0.25s; }
.stagger > *:nth-child(6) { animation-delay: 0.3s; }

/* ── Facebook Link Styling ── */
.fb-nav-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--glass);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  transition: all var(--transition);
  flex-shrink: 0;
}
.fb-nav-link:hover {
  color: var(--gold);
  border-color: rgba(240,180,41,0.4);
  background: rgba(240,180,41,0.08);
}
.fb-nav-link svg {
  display: block;
}

