/* ─── Reset & Base ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #c0392b;
  --primary-dark: #96281b;
  --primary-light: #e74c3c;
  --bg: #f8f5f2;
  --bg-card: #ffffff;
  --text: #222222;
  --text-muted: #666666;
  --border: #e0d8d0;
  --success: #27ae60;
  --warning: #f39c12;
  --danger: #e74c3c;
  --radius: 8px;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --nav-h: 60px;
}

html { font-size: 16px; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

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

/* ─── Navigation ────────────────────────────────────────────────────────────── */
.nav-public, .nav-admin {
  height: var(--nav-h);
  background: #1a0a0a;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-logo {
  color: #fff;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-decoration: none;
}
.nav-logo-bn {
  font-size: 0.85rem;
  font-weight: 400;
  opacity: 0.7;
  margin-left: 4px;
  letter-spacing: 0;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.nav-links a, .nav-links .btn-link {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 0.9rem;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.9rem;
}

.nav-links a:hover, .nav-links .btn-link:hover { color: #fff; }

/* ─── Layout ────────────────────────────────────────────────────────────────── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.admin-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.page-title {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: var(--text);
}

/* ─── Flash Messages ─────────────────────────────────────────────────────────── */
.flash {
  padding: 0.75rem 1rem;
  margin: 0 0 1rem 0;
  border-radius: var(--radius);
  font-size: 0.9rem;
}

.flash-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.flash-error { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

/* ─── Buttons ────────────────────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
  font-family: inherit;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.15s, opacity 0.15s;
  line-height: 1.4;
}

.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); text-decoration: none; color: #fff; }

.btn-outline { background: transparent; color: var(--primary); border: 1px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; text-decoration: none; }

.btn-success { background: var(--success); color: #fff; }
.btn-success:hover { background: #219a52; }

.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #c0392b; }

.btn-sm { padding: 0.3rem 0.7rem; font-size: 0.8rem; }
.btn-full { width: 100%; text-align: center; }

/* ─── Badges ────────────────────────────────────────────────────────────────── */
.badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.badge-open { background: #d4edda; color: #155724; }
.badge-closed { background: #f8d7da; color: #721c24; }
.badge-paid { background: #d4edda; color: #155724; }
.badge-pending { background: #fff3cd; color: #856404; }
.badge-approved { background: #d4edda; color: #155724; }
.badge-rejected { background: #f8d7da; color: #721c24; }

/* ─── Home – Hero ────────────────────────────────────────────────────────────── */
.home-hero {
  position: relative;
  min-height: 520px;
  background-color: #1a1a2e;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
}
.home-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.72) 100%);
}
.home-hero-content {
  position: relative;
  z-index: 1;
  padding: 3rem 2rem 3.5rem;
  max-width: 800px;
  color: #fff;
}
.home-hero-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 0.5rem;
}
.home-hero-title {
  font-size: clamp(1.8rem, 5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}
.home-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  font-size: 1rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 1.75rem;
}
.btn-hero {
  padding: 0.85rem 2.2rem;
  font-size: 1.05rem;
}
.btn-hero-badge {
  font-size: 1rem;
  padding: 0.6rem 1.4rem;
}

/* ─── Home – Body Layout ─────────────────────────────────────────────────────── */
.home-body {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 2rem;
  align-items: start;
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.home-main { min-width: 0; }

/* ─── Home – About ───────────────────────────────────────────────────────────── */
.home-about {
  padding: 1.5rem;
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 2rem;
}
.home-about h2 { margin-bottom: 0.75rem; }
.home-about p { color: var(--text-muted); line-height: 1.8; }

/* ─── Home – Sidebar Ads ─────────────────────────────────────────────────────── */
.home-sidebar {
  position: sticky;
  top: calc(var(--nav-h) + 1rem);
}

.sidebar-ads-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.ads-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
}
.ad-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  display: block;
  transition: box-shadow 0.15s;
}
.ad-card:hover { box-shadow: 0 4px 14px rgba(0,0,0,0.1); }
.ad-card-img { width: 100%; height: auto; display: block; }
.ad-card-placeholder {
  width: 100%;
  height: 120px;
  background: linear-gradient(135deg, #e9ecef, #dee2e6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #aaa;
  font-size: 0.85rem;
  letter-spacing: 1px;
}
.ad-card-body { padding: 0.75rem 1rem; }
.ad-card-body strong { font-size: 0.95rem; }
.ad-card-body p { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.25rem; }

/* ─── Home – Other Events ────────────────────────────────────────────────────── */
.home-other-events { }
.home-other-events h2 { margin-bottom: 1.25rem; }

/* ─── Home – Event Cards ─────────────────────────────────────────────────────── */
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.event-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: var(--text);
  display: block;
  transition: transform 0.15s, box-shadow 0.15s;
}

.event-card:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.12); text-decoration: none; }

.event-card-banner {
  height: 180px;
  background-color: #c0392b;
  background-size: cover;
  background-position: center;
}

.event-card-banner--placeholder {
  background: linear-gradient(135deg, #c0392b 0%, #8e44ad 100%);
}

.event-card-body {
  padding: 1rem 1.2rem 1.2rem;
}

.event-card-body h2 { font-size: 1.1rem; margin-bottom: 0.4rem; }
.event-meta { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 0.2rem; }

/* ─── Event Detail Page ──────────────────────────────────────────────────────── */
.event-page { background-size: cover !important; }
.event-overlay {
  min-height: 100vh;
  background: rgba(0,0,0,0.55);
}

.event-detail-card {
  background: rgba(255,255,255,0.97);
  border-radius: var(--radius);
  padding: 2rem;
  max-width: 700px;
  margin: 0 auto;
  box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}

.event-detail-card h1 { font-size: 1.8rem; margin-bottom: 1rem; color: var(--primary); }
.event-info { margin-bottom: 1.2rem; }
.event-info p { margin-bottom: 0.3rem; }
.event-description { margin: 1rem 0; color: var(--text); }
.event-actions-row { margin: 1rem 0; }

.registration-section, .volunteer-section {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.registration-section h2, .volunteer-section h2 { margin-bottom: 1rem; }

.paypal-section { margin-bottom: 1.5rem; text-align: center; }
.paypal-qr-img { max-width: 200px; border: 1px solid var(--border); border-radius: var(--radius); padding: 0.5rem; }

.registration-closed {
  padding: 1rem;
  background: #f8d7da;
  border-radius: var(--radius);
  color: #721c24;
  margin-top: 1rem;
}

/* ─── Forms ──────────────────────────────────────────────────────────────────── */
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; margin-bottom: 0.3rem; font-weight: 500; font-size: 0.9rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-row--align { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }

input[type="text"], input[type="email"], input[type="password"],
input[type="number"], input[type="tel"], input[type="datetime-local"],
input[type="date"], textarea, select {
  width: 100%;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: inherit;
  background: #fff;
  transition: border-color 0.15s;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--primary);
}

input[type="file"] { padding: 0.3rem 0; border: none; }
textarea { resize: vertical; }
small { color: var(--text-muted); font-size: 0.8rem; }

.checkbox-label { display: flex; align-items: center; gap: 0.5rem; cursor: pointer; font-weight: 500; }
.checkbox-label input[type="checkbox"] { width: auto; }

.register-form { max-width: 480px; }
.admin-form { max-width: 700px; }

.option-input { margin-bottom: 0.5rem; }

/* ─── Registration Success ───────────────────────────────────────────────────── */
.success-card {
  max-width: 600px;
  margin: 0 auto;
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  text-align: center;
}

.success-icon {
  width: 64px; height: 64px;
  background: var(--success);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
  margin: 0 auto 1rem;
}

.qr-section { margin: 1.5rem 0; }
.qr-code-img { max-width: 220px; border: 1px solid var(--border); padding: 0.5rem; border-radius: var(--radius); }
.qr-hint { color: var(--text-muted); font-size: 0.85rem; margin-top: 0.5rem; }

.registration-details { text-align: left; margin: 1.5rem 0; }
.detail-table { width: 100%; border-collapse: collapse; }
.detail-table td { padding: 0.5rem 0.75rem; border-bottom: 1px solid var(--border); }
.detail-table td:first-child { font-weight: 500; color: var(--text-muted); width: 40%; }

/* ─── Admin ──────────────────────────────────────────────────────────────────── */
.admin-page { background: #f0ece8; }

.subnav {
  display: flex;
  gap: 0;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid var(--border);
  flex-wrap: wrap;
}

.subnav a {
  padding: 0.5rem 1rem;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color 0.15s;
}

.subnav a:hover { color: var(--primary); }
.subnav a.active { color: var(--primary); border-bottom-color: var(--primary); }

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.section-header h1, .section-header h2 { margin: 0; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 1.2rem;
  text-align: center;
  box-shadow: var(--shadow);
}

.stat-number { font-size: 2rem; font-weight: 700; color: var(--primary); }
.stat-label { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.25rem; }

/* ─── Admin Table ────────────────────────────────────────────────────────────── */
.admin-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  font-size: 0.9rem;
}

.admin-table th {
  background: #2c2c2c;
  color: #fff;
  padding: 0.75rem 1rem;
  text-align: left;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.admin-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.admin-table .action-cell { vertical-align: top; }

.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: #faf8f5; }
.action-cell { white-space: nowrap; }
.action-cell .btn, .action-cell button { margin: 0 2px; }
.action-cell--wrap { white-space: normal; min-width: 220px; }
.action-cell--wrap .btn, .action-cell--wrap button { margin: 2px; }
.task-assign-form { display: flex; gap: 4px; margin-top: 4px; }
.task-assign-form .inline-input { flex: 1; min-width: 0; }

.total-row td { font-weight: 700; background: #faf8f5; }

/* ─── Login Page ─────────────────────────────────────────────────────────────── */
.login-page { background: linear-gradient(135deg, #1a0a0a 0%, #3d1010 100%); }

.login-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.login-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 2.5rem;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.3);
}

.login-title { font-size: 1.5rem; margin-bottom: 1.5rem; text-align: center; color: var(--primary); }
.login-form { display: flex; flex-direction: column; gap: 0; }
.login-form .form-group { margin-bottom: 1rem; }

/* ─── QR Scanner ─────────────────────────────────────────────────────────────── */
.scanner-card {
  max-width: 500px;
  margin: 0 auto;
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  text-align: center;
}

.scanner-card h1 { margin-bottom: 0.5rem; }
.scanner-card > p { color: var(--text-muted); margin-bottom: 1.5rem; }

#reader { width: 100%; max-width: 400px; margin: 0 auto; }

.result-box {
  padding: 2rem;
  border-radius: var(--radius);
  margin-top: 1rem;
}

.result-box--hidden { display: none; }
.result-box--valid { background: #d4edda; border: 2px solid var(--success); }
.result-box--invalid { background: #f8d7da; border: 2px solid var(--danger); }

.result-icon {
  font-size: 3rem;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.result-box--valid .result-icon { color: var(--success); }
.result-box--invalid .result-icon { color: var(--danger); }

.result-name { font-size: 1.4rem; font-weight: 700; }
.result-event { color: var(--text-muted); margin-bottom: 0.5rem; }
.result-status { font-size: 1.1rem; font-weight: 700; }
.result-paid { color: var(--success); }
.result-unpaid { color: var(--warning); }
.result-message { font-size: 1.1rem; }

.or-divider { color: var(--text-muted); margin: 1.5rem 0 0.75rem; font-size: 0.85rem; }
.manual-form { display: flex; gap: 0.5rem; }
.manual-input { flex: 1; }

/* ─── Misc Components ────────────────────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 3rem;
  color: var(--text-muted);
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.error-card, .content-card {
  max-width: 700px;
  margin: 2rem auto;
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.error-card h1 { margin-bottom: 1rem; color: var(--danger); }
.content-card h1 { margin-bottom: 1.5rem; }
.content-card h2 { margin: 1.5rem 0 0.5rem; }
.content-card ul { padding-left: 1.5rem; }
.content-card li { margin-bottom: 0.25rem; }

.upload-section {
  margin-top: 1.5rem;
  padding: 1.5rem;
  background: #faf8f5;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.upload-section h2 { margin-bottom: 1rem; }
.preview-img { max-width: 300px; display: block; margin-bottom: 1rem; border-radius: var(--radius); border: 1px solid var(--border); }
.preview-img--qr { max-width: 150px; }

.danger-zone {
  margin-top: 2rem;
  padding: 1.5rem;
  border: 2px solid var(--danger);
  border-radius: var(--radius);
}

.danger-zone h2 { color: var(--danger); margin-bottom: 1rem; }

.poll-card, .poll-admin-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow);
}

.poll-card h2, .poll-admin-card h2 { margin-bottom: 1rem; }

.poll-options { margin: 1rem 0; }
.poll-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 0.5rem;
  cursor: pointer;
}

.poll-option:hover { background: #faf8f5; }
.poll-option input { width: auto; }
.vote-count { margin-left: auto; color: var(--text-muted); font-size: 0.85rem; }

.poll-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap; }
.poll-actions { display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; }

.stalls-summary, .reg-summary {
  display: flex;
  gap: 2rem;
  padding: 0.75rem 1rem;
  background: var(--bg-card);
  border-radius: var(--radius);
  margin-bottom: 1rem;
  box-shadow: var(--shadow);
  font-size: 0.9rem;
}

.inline-form { display: inline-flex; gap: 0.25rem; vertical-align: middle; }
.inline-input { padding: 0.3rem 0.5rem; font-size: 0.8rem; width: 140px; }

.info-box { background: #e8f4fd; border: 1px solid #b8daff; border-radius: var(--radius); padding: 1rem; margin-bottom: 1.5rem; font-size: 0.9rem; }
.info-box .warning { color: var(--warning); font-weight: 500; margin-top: 0.5rem; }

.total-banner {
  background: #faf8f5;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  font-size: 1rem;
}

.bar-chart-bar {
  height: 8px;
  background: var(--primary);
  border-radius: 4px;
  margin-top: 4px;
  display: inline-block;
}

.back-link { color: var(--text-muted); font-size: 0.9rem; display: inline-block; margin-bottom: 0.5rem; }
.page-header { margin-bottom: 1.5rem; }
.page-header h1 { margin: 0; }

/* ─── Reports ────────────────────────────────────────────────────────────────── */
.report-section { margin: 2rem 0; }
.report-section h2 { margin-bottom: 1rem; font-size: 1.15rem; border-bottom: 2px solid var(--border); padding-bottom: 0.4rem; }
.chart-container { position: relative; max-width: 100%; height: 300px; background: var(--bg-card); border-radius: var(--radius); padding: 1rem; box-shadow: var(--shadow); margin-bottom: 0.5rem; }
.chart-hint { font-size: 0.78rem; color: var(--text-muted); margin-top: 0.25rem; }
.suggestion-list { list-style: none; padding: 0; }
.suggestion-list li { background: #fff8e1; border-left: 4px solid var(--warning); padding: 0.6rem 1rem; margin-bottom: 0.5rem; border-radius: 0 var(--radius) var(--radius) 0; font-size: 0.9rem; }
.stats-grid-sm { grid-template-columns: repeat(4, 1fr); }
.poll-result-block { background: var(--bg-card); border-radius: var(--radius); padding: 1.25rem; margin-bottom: 1rem; box-shadow: var(--shadow); }
.poll-result-block h3 { margin-bottom: 0.25rem; font-size: 1rem; }
.poll-total-votes { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 0.75rem; }
.poll-option-bar { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.5rem; }
.poll-opt-label { flex: 0 0 140px; font-size: 0.85rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.poll-bar-track { flex: 1; background: var(--bg); border-radius: 4px; height: 18px; overflow: hidden; }
.poll-bar-fill { height: 100%; background: var(--primary); border-radius: 4px; transition: width 0.4s ease; }
.poll-opt-count { flex: 0 0 80px; font-size: 0.8rem; color: var(--text-muted); text-align: right; }
.info-box { background: #e8f4fd; border-left: 4px solid #2980b9; padding: 0.75rem 1rem; border-radius: 0 var(--radius) var(--radius) 0; margin: 1rem 0; font-size: 0.9rem; }
.paypal-placeholder { background: #f5f5f5; border: 2px dashed var(--border); border-radius: var(--radius); padding: 2rem; text-align: center; color: var(--text-muted); min-height: 120px; display: flex; align-items: center; justify-content: center; }
.ticket-price-banner { display: flex; align-items: center; gap: 1rem; background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff; border-radius: var(--radius); padding: 1rem 1.5rem; margin-bottom: 0.5rem; }
.ticket-tier-label { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; opacity: 0.85; }
.ticket-price { font-size: 2rem; font-weight: 700; margin-left: auto; }
.ticket-deadline { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 1rem; }
.ticket-tiers { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin-bottom: 1rem; }
.tier-row { display: flex; align-items: center; gap: 1rem; padding: 0.6rem 1rem; border-bottom: 1px solid var(--border); font-size: 0.9rem; }
.tier-row:last-child { border-bottom: none; }
.tier-row span:last-of-type { font-weight: 600; margin-left: auto; }
.tier-row small { color: var(--text-muted); }
.section-hint { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 1rem; }
.btn-success { background: var(--success); color: #fff; border: none; }
.btn-success:hover { background: #219150; }

/* ─── Import ─────────────────────────────────────────────────────────────────── */
.admin-form-card { background: var(--bg-card); border-radius: var(--radius); padding: 1.5rem 2rem; box-shadow: var(--shadow); }
.import-spec { margin: 1.25rem 0; }
.import-spec h3 { font-size: 0.95rem; margin-bottom: 0.5rem; color: var(--text-muted); }
.import-spec code { background: #f0f0f0; padding: 0.1em 0.35em; border-radius: 4px; font-size: 0.9em; }

/* ─── Footer ──────────────────────────────────────────────────────────────────── */
.footer {
  text-align: center;
  padding: 2rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 3rem;
  border-top: 1px solid var(--border);
}

/* ─── Responsive ─────────────────────────────────────────────────────────────── */
@media (max-width: 860px) {
  .home-body { grid-template-columns: 1fr; }
  .home-sidebar { position: static; }
}

@media (max-width: 640px) {
  .form-row { grid-template-columns: 1fr; }
  .events-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .section-header { flex-direction: column; align-items: flex-start; }
  .subnav { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .admin-table { display: block; overflow-x: auto; }
  .nav-links { gap: 0.75rem; }
  .nav-links a, .nav-links .btn-link { font-size: 0.8rem; }
  .manual-form { flex-direction: column; }
  .poll-header { flex-direction: column; }
  .inline-form { flex-direction: column; }
  .inline-input { width: 100%; }
}


/* ─── Star Rating ────────────────────────────────────────────────────────────── */
.star-rating { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 2px; margin: 0.25rem 0; }
.star-rating input[type="radio"] { display: none; }
.star-rating label { font-size: 1.6rem; color: #ddd; cursor: pointer; line-height: 1; padding: 0 1px; transition: color 0.1s; }
.star-rating input:checked ~ label,
.star-rating label:hover,
.star-rating label:hover ~ label { color: #f5b301; }
.star-display { color: #f5b301; font-size: 1rem; letter-spacing: 1px; }
.star-display .empty { color: #ddd; }
