/* ============================================================
   CONNECT – Main Stylesheet
   Modern Glassmorphism + Gradient + Inter Font
   ============================================================ */

/* ── Variables ────────────────────────────────────────────── */
:root {
  --primary:    #FF6B00;
  --primary-dark: #E05A00;
  --primary-light: #FF8C40;
  --secondary:  #121212;
  --accent:     #2563EB;
  --success:    #10B981;
  --warning:    #F59E0B;
  --danger:     #EF4444;
  --info:       #06B6D4;
  --purple:     #8B5CF6;

  --bg:         #F8FAFC;
  --bg-2:       #EAEFF5;
  --card-bg:    #FFFFFF;
  --card-border:#E2E8F0;
  --text-main:  #1E293B;
  --text-muted: #64748B;
  --text-light: #94A3B8;

  --sidebar-bg: #FFFFFF;
  --sidebar-width: 260px;
  --topbar-h:   64px;
  --radius-sm:  8px;
  --radius:     12px;
  --radius-lg:  20px;
  --radius-xl:  28px;
  --shadow-sm:  0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.04);
  --shadow:     0 4px 16px rgba(0,0,0,.08);
  --shadow-lg:  0 8px 32px rgba(0,0,0,.12);
  --shadow-xl:  0 20px 60px rgba(0,0,0,.14);
  --glass-bg:   rgba(255,255,255,0.7);
  --glass-border: rgba(255,255,255,0.5);
  --transition: all .25s cubic-bezier(.4,0,.2,1);
  --font:       'Inter', system-ui, sans-serif;
}

/* ── Dark Mode ──────────────────────────────────────────────── */
[data-theme="dark"] {
  --bg:         #0F172A;
  --bg-2:       #1E293B;
  --card-bg:    #1E293B;
  --card-border:#334155;
  --text-main:  #F1F5F9;
  --text-muted: #94A3B8;
  --text-light: #64748B;
  --sidebar-bg: #1E293B;
  --glass-bg:   rgba(30,41,59,0.7);
  --glass-border: rgba(51,65,85,0.5);
  --shadow:     0 4px 16px rgba(0,0,0,.3);
  --shadow-lg:  0 8px 32px rgba(0,0,0,.4);
}

/* ── Reset & Base ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text-main);
  font-size: 15px;
  line-height: 1.6;
  transition: background .3s, color .3s;
  margin: 0;
}

/* ── Typography ─────────────────────────────────────────────── */
h1,h2,h3,h4,h5,h6 { font-weight: 700; line-height: 1.3; }
a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dark); }
code {
  background: var(--bg-2);
  color: var(--primary);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: .85em;
}

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

/* ── Custom Button ──────────────────────────────────────────── */
.btn-primary-custom {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  border: none;
  border-radius: var(--radius);
  padding: 10px 22px;
  font-weight: 600;
  font-family: var(--font);
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(255,107,0,.25);
}
.btn-primary-custom:hover, .btn-primary-custom:focus {
  background: linear-gradient(135deg, var(--primary-dark), #C84E00);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255,107,0,.35);
}
.btn-primary-custom:active { transform: translateY(0); }
.bg-primary-custom { background: var(--primary) !important; }
.text-primary { color: var(--primary) !important; }

.btn-icon-only {
  width: 34px; height: 34px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  color: var(--text-muted);
  transition: var(--transition);
}
.btn-icon-only:hover { background: var(--bg-2); color: var(--primary); border-color: var(--primary); }

.btn-xs {
  padding: 3px 8px;
  font-size: 12px;
  border-radius: 6px;
}

/* ── Glass Card ─────────────────────────────────────────────── */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 28px;
}

/* ── Modern Card ────────────────────────────────────────────── */
.card-modern {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: var(--transition);
}
.card-modern:hover { box-shadow: var(--shadow); }
.card-modern-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--card-border);
  background: var(--bg);
  gap: 12px;
}
.card-modern-header h5 {
  font-size: 15px;
  font-weight: 600;
  margin: 0;
  color: var(--text-main);
  display: flex;
  align-items: center;
}
.card-modern-body { padding: 20px; }

/* ── Landing Page ───────────────────────────────────────────── */
.landing-page { min-height: 100vh; overflow-x: hidden; }

.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding: 80px 0;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #FFF5EE 0%, #F8FAFC 40%, #EEF2FF 100%);
  z-index: 0;
}
[data-theme="dark"] .hero-bg {
  background: linear-gradient(135deg, #1a0f05 0%, #0F172A 40%, #0F1729 100%);
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  animation: float 8s ease-in-out infinite;
}
.orb-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(255,107,0,.3), transparent);
  top: -200px; right: -100px;
}
.orb-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(37,99,235,.25), transparent);
  bottom: -100px; left: -100px;
  animation-delay: -4s;
}
.orb-3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(139,92,246,.2), transparent);
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  animation-delay: -2s;
}
@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50%       { transform: translateY(-30px) scale(1.05); }
}

.hero-content { position: relative; z-index: 1; }

.hero-brand { margin-bottom: 40px; }

.brand-badge {
  display: inline-flex;
  align-items: center;
  background: linear-gradient(135deg, rgba(255,107,0,.12), rgba(255,107,0,.06));
  border: 1px solid rgba(255,107,0,.2);
  border-radius: 50px;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 20px;
}

.hero-title {
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 900;
  line-height: 1;
  margin-bottom: 16px;
  letter-spacing: -2px;
}

.text-gradient {
  background: linear-gradient(135deg, var(--primary) 0%, #FF9A3E 50%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 16px;
}
.hero-desc {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

/* ── Action Cards ───────────────────────────────────────────── */
.action-card {
  text-align: center;
  transition: var(--transition);
  cursor: default;
}
.action-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-xl); }

.card-icon-wrap {
  width: 72px; height: 72px;
  border-radius: var(--radius-lg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 16px;
}
.participant-icon {
  background: linear-gradient(135deg, rgba(37,99,235,.15), rgba(37,99,235,.05));
  color: var(--accent);
}
.admin-icon {
  background: linear-gradient(135deg, rgba(255,107,0,.15), rgba(255,107,0,.05));
  color: var(--primary);
}

.action-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 8px; }
.action-card p { color: var(--text-muted); font-size: .9rem; margin-bottom: 0; }

.event-code-input {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-align: center;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}

.btn-outline-participant {
  color: var(--accent);
  border-color: var(--accent);
  border-radius: var(--radius-sm);
  font-size: .85rem;
  padding: 6px 14px;
}
.btn-outline-participant:hover {
  background: var(--accent);
  color: #fff;
}

.btn-admin {
  background: linear-gradient(135deg, var(--secondary), #2D2D2D);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  padding: 12px 24px;
  font-weight: 600;
  transition: var(--transition);
  display: block;
  width: 100%;
  text-align: center;
}
[data-theme="dark"] .btn-admin { background: linear-gradient(135deg, #334155, #475569); }
.btn-admin:hover { transform: translateY(-1px); box-shadow: var(--shadow); color: #fff; }

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
  font-size: .85rem;
  color: var(--text-muted);
}
.feature-list span { display: flex; align-items: center; gap: 6px; }

/* ── Features Section ───────────────────────────────────────── */
.features-section {
  padding: 80px 0;
  background: var(--card-bg);
}
[data-theme="dark"] .features-section { background: var(--bg-2); }

.section-badge {
  display: inline-block;
  background: linear-gradient(135deg, rgba(255,107,0,.12), rgba(37,99,235,.08));
  color: var(--primary);
  border: 1px solid rgba(255,107,0,.2);
  border-radius: 50px;
  padding: 4px 14px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.section-title {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.section-desc {
  color: var(--text-muted);
  font-size: 1rem;
}

.feature-item {
  text-align: center;
  padding: 20px 12px;
  border-radius: var(--radius);
  transition: var(--transition);
}
.feature-item:hover { background: var(--bg-2); transform: translateY(-4px); }

.feature-icon {
  width: 56px; height: 56px;
  border-radius: var(--radius);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: #fff;
  margin-bottom: 12px;
}
.feature-item h6 { font-weight: 700; font-size: 14px; margin-bottom: 4px; }
.feature-item p  { font-size: 12px; color: var(--text-muted); margin: 0; }

/* ── Landing Footer ─────────────────────────────────────────── */
.landing-footer {
  padding: 24px 0;
  background: var(--bg);
  border-top: 1px solid var(--card-border);
  color: var(--text-muted);
  font-size: 14px;
}

/* ── Auth Page ──────────────────────────────────────────────── */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.auth-container { position: relative; width: 100%; display: flex; justify-content: center; }
.auth-bg { position: fixed; inset: 0; z-index: 0;
  background: linear-gradient(135deg, #FFF5EE 0%, #F8FAFC 40%, #EEF2FF 100%); }
[data-theme="dark"] .auth-bg {
  background: linear-gradient(135deg, #1a0f05 0%, #0F172A 100%);
}
.auth-card { position: relative; z-index: 1; max-width: 440px; width: 100%; }

.auth-header { margin-bottom: 28px; }
.auth-brand-icon {
  width: 64px; height: 64px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: #fff;
  margin-bottom: 16px;
  box-shadow: 0 8px 24px rgba(255,107,0,.35);
}
.auth-title { font-size: 2rem; font-weight: 900; letter-spacing: -1px; margin-bottom: 4px; }
.auth-subtitle { color: var(--text-muted); font-size: .95rem; }

.form-control, .form-select {
  background: var(--card-bg);
  border: 1.5px solid var(--card-border);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-family: var(--font);
  padding: 10px 14px;
  transition: var(--transition);
}
.form-control:focus, .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255,107,0,.15);
  background: var(--card-bg);
  color: var(--text-main);
  outline: none;
}
.form-floating .form-control:focus + label,
.form-floating .form-control:not(:placeholder-shown) + label { color: var(--primary); }

.btn-eye {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer; color: var(--text-muted); z-index: 5;
  padding: 4px;
}
.btn-eye:hover { color: var(--primary); }

.forgot-link { font-size: .85rem; color: var(--primary); }
.back-link { font-size: .9rem; color: var(--text-muted); }
.back-link:hover { color: var(--primary); }
.auth-footer { padding-top: 20px; border-top: 1px solid var(--card-border); }

/* ── Theme Float Button ─────────────────────────────────────── */
.theme-float-btn {
  position: fixed;
  top: 16px; right: 16px;
  z-index: 9999;
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1.5px solid var(--card-border);
  background: var(--card-bg);
  color: var(--text-muted);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow);
  font-size: 1rem;
}
.theme-float-btn:hover { border-color: var(--primary); color: var(--primary); }

/* ── Event Preview (Join Page) ──────────────────────────────── */
.event-preview-card {
  background: linear-gradient(135deg, rgba(255,107,0,.08), rgba(37,99,235,.05));
  border: 1px solid rgba(255,107,0,.2);
  border-radius: var(--radius);
  padding: 16px;
}
.ep-type { font-size: 12px; font-weight: 600; color: var(--primary); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 6px; }
.ep-title { font-weight: 700; margin-bottom: 4px; }
.ep-code {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  padding: 3px 12px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.15em;
  margin-top: 8px;
}

/* ── Table Modern ───────────────────────────────────────────── */
.table-modern {
  margin: 0;
  font-size: 14px;
  width: 100%;
  border-collapse: collapse;
}
.table-modern thead tr {
  background: var(--bg);
}
.table-modern thead th {
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-muted);
  padding: 12px 16px;
  border-bottom: 1px solid var(--card-border);
  white-space: nowrap;
}
.table-modern tbody tr {
  transition: background .15s;
  border-bottom: 1px solid var(--card-border);
}
.table-modern tbody tr:hover { background: var(--bg-2); }
.table-modern tbody tr:last-child { border-bottom: none; }
.table-modern td { padding: 12px 16px; vertical-align: middle; color: var(--text-main); }

/* ── Event Code Badge ───────────────────────────────────────── */
.event-code-badge {
  background: linear-gradient(135deg, rgba(255,107,0,.12), rgba(255,107,0,.06));
  color: var(--primary);
  border: 1px solid rgba(255,107,0,.2);
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

/* ── Status Badges ──────────────────────────────────────────── */
.bg-primary-soft { background: rgba(255,107,0,.1); color: var(--primary); }
.bg-success-soft { background: rgba(16,185,129,.1); color: var(--success); }
.bg-warning-soft { background: rgba(245,158,11,.1); color: var(--warning); }
.bg-danger-soft  { background: rgba(239,68,68,.1); color: var(--danger); }

/* ── Online Indicator ───────────────────────────────────────── */
.online-indicator {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
}
.online-indicator.online { color: var(--success); }
.online-indicator.offline { color: var(--text-light); }
.online-indicator .bi { font-size: 8px; }

.online-dot {
  font-size: 8px;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.5; }
}

/* ── Form Styles ────────────────────────────────────────────── */
.form-label { font-size: 14px; color: var(--text-main); margin-bottom: 6px; }
.form-check-input:checked { background-color: var(--primary); border-color: var(--primary); }
.form-check-input:focus { box-shadow: 0 0 0 3px rgba(255,107,0,.15); border-color: var(--primary); }
.form-switch .form-check-input:checked { background-color: var(--primary); }

/* ── Pagination ─────────────────────────────────────────────── */
.page-link {
  color: var(--text-muted);
  border-color: var(--card-border);
  border-radius: var(--radius-sm) !important;
  margin: 0 2px;
  background: var(--card-bg);
}
.page-item.active .page-link {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.page-link:hover { background: var(--bg-2); color: var(--primary); }

/* ── Q&A Cards ──────────────────────────────────────────────── */
.question-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 12px;
  transition: var(--transition);
}
.question-card:hover { box-shadow: var(--shadow); }
.question-card.pinned {
  border-color: var(--warning);
  background: linear-gradient(135deg, rgba(245,158,11,.04), var(--card-bg));
}
.question-card.highlighted {
  border-color: var(--info);
  background: linear-gradient(135deg, rgba(6,182,212,.04), var(--card-bg));
}
.q-badges { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.q-content { margin-bottom: 12px; }
.q-text { font-size: 15px; font-weight: 500; color: var(--text-main); line-height: 1.6; margin-bottom: 8px; }
.q-meta { display: flex; flex-wrap: wrap; gap: 12px; font-size: 12px; color: var(--text-muted); }
.q-meta span { display: flex; align-items: center; gap: 4px; }
.q-actions { display: flex; gap: 6px; flex-wrap: wrap; }

/* ── Peer Mode Toggle (Admin) ────────────────────────────────── */
.peer-mode-toggle {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px; border-radius: var(--radius);
  border: 2px solid var(--card-border); cursor: pointer;
  transition: var(--transition); user-select: none;
  background: var(--card-bg);
}
.peer-mode-toggle:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.peer-mode-toggle.mode-on {
  border-color: var(--success);
  background: linear-gradient(135deg, rgba(16,185,129,.08), var(--card-bg));
}
.peer-mode-toggle.mode-off { border-color: var(--card-border); opacity: .85; }
.pmt-icon { font-size: 1.3rem; }
.peer-mode-toggle.mode-on  .pmt-icon { color: var(--success); }
.peer-mode-toggle.mode-off .pmt-icon { color: var(--text-muted); }
.pmt-label  { font-size: 11px; color: var(--text-muted); line-height: 1; }
.pmt-status { font-size: 13px; font-weight: 700; line-height: 1.4; }
.peer-mode-toggle.mode-on  .pmt-status { color: var(--success); }
.peer-mode-toggle.mode-off .pmt-status { color: var(--text-muted); }

/* ── Poll Cards ─────────────────────────────────────────────── */
.poll-card { transition: var(--transition); }
.poll-stats { display: flex; gap: 16px; font-size: 13px; color: var(--text-muted); }
.poll-stats span { display: flex; align-items: center; gap: 4px; }
.poll-option-result .progress-bar { transition: width .6s ease; }

.star-display { font-size: 1.2rem; }

/* ── Quiz Items ─────────────────────────────────────────────── */
.quiz-question-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  border-bottom: 1px solid var(--card-border);
}
.quiz-question-item:last-child { border-bottom: none; }
.qq-number {
  width: 28px; height: 28px;
  min-width: 28px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 13px;
}
.qq-text { font-weight: 600; margin-bottom: 8px; font-size: 14px; }
.option-chip {
  display: inline-block;
  background: var(--bg-2);
  border: 1px solid var(--card-border);
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 12px;
  margin: 2px;
}
.option-chip.correct {
  background: rgba(16,185,129,.12);
  border-color: var(--success);
  color: var(--success);
  font-weight: 600;
}

/* ── Leaderboard ────────────────────────────────────────────── */
.leaderboard-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--card-border);
  transition: background .15s;
}
.leaderboard-item:hover { background: var(--bg-2); }
.leaderboard-item:last-child { border-bottom: none; }
.lb-rank {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 14px;
  background: var(--bg-2);
  color: var(--text-muted);
}
.lb-rank.rank-1 { background: linear-gradient(135deg, #FFD700, #FFA500); color: #fff; }
.lb-rank.rank-2 { background: linear-gradient(135deg, #C0C0C0, #A0A0A0); color: #fff; }
.lb-rank.rank-3 { background: linear-gradient(135deg, #CD7F32, #A0522D); color: #fff; }
.lb-name { font-weight: 500; font-size: 14px; }

/* ── Mini Stats ─────────────────────────────────────────────── */
.mini-stat { padding: 8px; }
.ms-value { font-size: 1.4rem; font-weight: 800; color: var(--primary); line-height: 1; }
.ms-label { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }

/* ── Word Cloud ─────────────────────────────────────────────── */
.word-cloud-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  padding: 16px;
}
.cloud-word {
  display: inline-block;
  cursor: default;
  transition: var(--transition);
  font-weight: 700;
  line-height: 1.2;
}
.cloud-word:hover { transform: scale(1.15) rotate(-3deg); filter: brightness(1.1); }

/* ── Word Moderation ────────────────────────────────────────── */
.word-mod-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--card-border);
  transition: background .15s;
}
.word-mod-item:hover { background: var(--bg-2); }
.word-mod-item.pending { background: rgba(245,158,11,.04); }
.word-mod-text { flex: 1; }
.word-mod-actions { display: flex; gap: 4px; }

/* ── Export Cards ───────────────────────────────────────────── */
.export-card { transition: var(--transition); }
.export-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.export-icon {
  width: 64px; height: 64px;
  border-radius: var(--radius-lg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto;
}

/* ── Activity Log ───────────────────────────────────────────── */
.activity-log-list { padding: 8px; }
.log-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: var(--radius-sm);
  transition: background .15s;
}
.log-item:hover { background: var(--bg-2); }
.log-icon {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-2);
  font-size: .9rem;
  flex-shrink: 0;
}
.log-body { flex: 1; min-width: 0; }
.log-action { font-size: 12px; font-weight: 600; color: var(--text-main); }
.log-time { font-size: 11px; white-space: nowrap; }

/* ── Quick Stats ────────────────────────────────────────────── */
.quick-stat-list { display: flex; flex-direction: column; gap: 4px; }
.quick-stat-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: var(--radius-sm);
  transition: background .15s;
}
.quick-stat-item:hover { background: var(--bg-2); }
.qs-icon {
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.bg-quiz    { background: rgba(139,92,246,.12); color: var(--purple); }
.bg-poll    { background: rgba(37,99,235,.12);  color: var(--accent); }
.bg-question{ background: rgba(255,107,0,.12);  color: var(--primary); }
.bg-event   { background: rgba(16,185,129,.12); color: var(--success); }
.qs-info { flex: 1; }
.qs-value { font-size: 1.1rem; font-weight: 800; line-height: 1; display: block; }
.qs-label { font-size: 12px; color: var(--text-muted); }
.qs-badge {
  font-size: 11px;
  color: var(--text-muted);
  background: var(--bg-2);
  padding: 2px 8px;
  border-radius: 50px;
  white-space: nowrap;
}

/* ── Nav Tabs Modern ────────────────────────────────────────── */
.nav-tabs-modern {
  border-bottom: 2px solid var(--card-border);
  gap: 4px;
}
.nav-tabs-modern .nav-link {
  color: var(--text-muted);
  border: none;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  padding: 10px 18px;
  font-weight: 500;
  font-size: 14px;
  transition: var(--transition);
}
.nav-tabs-modern .nav-link:hover { color: var(--primary); background: rgba(255,107,0,.06); }
.nav-tabs-modern .nav-link.active {
  color: var(--primary);
  background: var(--card-bg);
  border-bottom: 2px solid var(--primary);
  font-weight: 600;
}

/* ── QR Image ───────────────────────────────────────────────── */
.qr-img {
  border: 4px solid var(--card-border);
  box-shadow: var(--shadow);
}
.event-code-display { text-align: center; }
.ec-label { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); margin-bottom: 4px; }
.ec-code {
  font-size: 2.5rem;
  font-weight: 900;
  letter-spacing: 0.3em;
  color: var(--primary);
  background: linear-gradient(135deg, rgba(255,107,0,.08), transparent);
  border-radius: var(--radius);
  padding: 8px 20px;
  display: inline-block;
}

/* ── Alert ──────────────────────────────────────────────────── */
.alert {
  border-radius: var(--radius);
  font-size: 14px;
  border: none;
}
.alert-success { background: rgba(16,185,129,.1); color: #065f46; }
.alert-danger   { background: rgba(239,68,68,.1);  color: #991b1b; }
.alert-warning  { background: rgba(245,158,11,.1); color: #92400e; }
[data-theme="dark"] .alert-success { color: #6ee7b7; }
[data-theme="dark"] .alert-danger  { color: #fca5a5; }
[data-theme="dark"] .alert-warning { color: #fde68a; }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 576px) {
  .glass-card { padding: 20px 16px; }
  .hero-title { font-size: 2.5rem; letter-spacing: -1px; }
  .card-modern-body { padding: 16px; }
  .card-modern-header { padding: 14px 16px; }
}
