/* ============================================================
   Brandwind Spotlight — Design System
   Based on template.html visual language
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700;900&family=DM+Sans:wght@300;400;500&display=swap');

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

:root {
  --amber:       #EF9F27;
  --amber-light: #FAEEDA;
  --amber-dark:  #854F0B;
  --cream:       #FBF7F0;
  --cream-dark:  #F0E8D8;
  --ink:         #1A1208;
  --ink-soft:    #3D2E10;
  --ink-muted:   #7A6242;
  --border:      #E8D9BE;
  --border-soft: #F0E4CC;
  --red:         #D85A30;
  --green:       #3B6D11;
  --blue:        #185FA5;
  --teal:        #0F6E56;
  --purple:      #534AB7;
  --card:        #FFFFFF;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--ink);
  min-height: 100vh;
  line-height: 1.5;
}

h1, h2, h3, h4 { font-family: 'Playfair Display', serif; line-height: 1.15; }

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

img { max-width: 100%; height: auto; display: block; }

/* ---- Topbar ---------------------------------------------- */
.topbar {
  background: var(--ink);
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  position: sticky;
  top: 0;
  z-index: 100;
}
.topbar-logo {
  font-family: 'Playfair Display', serif;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
}
.topbar-logo span { color: var(--amber); }
.topbar-tabs { display: flex; gap: 4px; }
.topbar-tab {
  background: none;
  border: none;
  color: rgba(255,255,255,0.55);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 14px;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
.topbar-tab:hover { color: #fff; background: rgba(255,255,255,0.08); text-decoration: none; }
.topbar-tab.active { color: var(--amber); background: rgba(239,159,39,0.12); }

.topbar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.65);
  font-size: 0.82rem;
}
.topbar-user-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--amber);
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  flex-shrink: 0;
}
.topbar-logout {
  color: rgba(255,255,255,0.4);
  font-size: 0.75rem;
  text-decoration: none;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all 0.2s;
}
.topbar-logout:hover { color: var(--red); background: rgba(216,90,48,0.12); text-decoration: none; }

/* ---- Hero ------------------------------------------------- */
.hero {
  background: var(--ink);
  padding: 3.5rem 2rem 3rem;
  text-align: center;
  border-bottom: 3px solid var(--amber);
}
.hero-tag {
  display: inline-block;
  background: rgba(239,159,39,0.15);
  border: 1px solid rgba(239,159,39,0.4);
  color: var(--amber);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 2px;
  margin-bottom: 1.2rem;
}
.hero h1 {
  font-size: 2.8rem;
  color: #fff;
  line-height: 1.1;
  font-weight: 900;
  margin-bottom: 0.7rem;
}
.hero h1 em { color: var(--amber); font-style: normal; }
.hero-sub {
  color: rgba(255,255,255,0.55);
  font-size: 0.95rem;
  font-weight: 300;
  max-width: 480px;
  margin: 0 auto;
}
.quarter-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 1.5rem;
  background: rgba(255,255,255,0.05);
  border: 0.5px solid rgba(255,255,255,0.15);
  border-radius: 2px;
  padding: 6px 16px;
  color: rgba(255,255,255,0.7);
  font-size: 0.82rem;
}
.quarter-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber);
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }

/* Admin hero variant — compact */
.page-hero {
  background: var(--ink);
  padding: 2rem 2rem 1.8rem;
  border-bottom: 2px solid var(--amber);
}
.page-hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.page-hero-left {}
.page-hero-breadcrumb {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}
.page-hero-breadcrumb a { color: rgba(255,255,255,0.4); text-decoration: none; }
.page-hero-breadcrumb a:hover { color: var(--amber); }
.page-hero h2 {
  font-size: 1.9rem;
  color: #fff;
  font-weight: 900;
}
.page-hero h2 em { color: var(--amber); font-style: normal; }
.page-hero-sub {
  color: rgba(255,255,255,0.45);
  font-size: 0.84rem;
  margin-top: 0.3rem;
}
.page-hero-actions { display: flex; gap: 10px; align-items: center; flex-shrink: 0; }

/* ---- Main Layout ------------------------------------------ */
.main {
  max-width: 860px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
}
.main-wide {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
}

/* ---- Step Indicator --------------------------------------- */
.steps { display: flex; align-items: center; margin-bottom: 2.5rem; }
.step-item { display: flex; align-items: center; gap: 0; }
.step-circle {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.78rem; font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}
.step-circle.done   { background: var(--ink); color: #fff; }
.step-circle.active { background: var(--amber); color: var(--ink); font-weight: 700; }
.step-circle.idle   { background: var(--border-soft); color: var(--ink-muted); border: 1.5px solid var(--border); }
.step-label { font-size: 0.75rem; color: var(--ink-muted); letter-spacing: 0.04em; margin-left: 8px; white-space: nowrap; }
.step-label.active  { color: var(--ink); font-weight: 500; }
.step-connector { flex: 1; height: 1px; background: var(--border); margin: 0 10px; min-width: 16px; }

/* ---- Cards ------------------------------------------------ */
.card {
  background: var(--card);
  border: 0.5px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.2rem;
}
.card-title { font-family: 'Playfair Display', serif; font-size: 1.2rem; color: var(--ink); margin-bottom: 0.3rem; }
.card-sub   { font-size: 0.84rem; color: var(--ink-muted); margin-bottom: 1.2rem; }

.card-dark {
  background: var(--ink);
  border-color: rgba(255,255,255,0.08);
  color: #fff;
}
.card-dark .card-title { color: #fff; }
.card-dark .card-sub   { color: rgba(255,255,255,0.5); }

/* Stat cards for dashboard */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; margin-bottom: 2rem; }
.stat-card {
  background: var(--card);
  border: 0.5px solid var(--border);
  border-radius: 10px;
  padding: 1.2rem 1.4rem;
  position: relative;
  overflow: hidden;
}
.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--amber);
  border-radius: 10px 10px 0 0;
}
.stat-number {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 0.2rem;
}
.stat-label { font-size: 0.78rem; color: var(--ink-muted); letter-spacing: 0.06em; text-transform: uppercase; }
.stat-icon { position: absolute; top: 1.2rem; right: 1.2rem; font-size: 1.4rem; opacity: 0.2; }

/* ---- Form Elements ---------------------------------------- */
label {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 6px;
  font-weight: 500;
}
input[type=text],
input[type=email],
input[type=password],
input[type=number],
input[type=date],
input[type=datetime-local],
textarea,
select {
  width: 100%;
  border: 0.5px solid var(--border);
  border-radius: 6px;
  padding: 9px 12px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.92rem;
  background: #fff;
  color: var(--ink);
  outline: none;
  transition: border 0.2s, box-shadow 0.2s;
  appearance: none;
  -webkit-appearance: none;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(239,159,39,0.12);
}
textarea { resize: vertical; min-height: 80px; line-height: 1.6; }
.field   { margin-bottom: 1.1rem; }

.field-hint { font-size: 0.76rem; color: var(--ink-muted); margin-top: 4px; }
.field-error { font-size: 0.76rem; color: var(--red); margin-top: 4px; }

.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }

/* Toggle switch */
.toggle-label { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.toggle-label input[type=checkbox] { display: none; }
.toggle-track {
  width: 36px; height: 20px;
  background: var(--border);
  border-radius: 10px;
  position: relative;
  transition: background 0.2s;
  flex-shrink: 0;
}
.toggle-label input:checked + .toggle-track { background: var(--amber); }
.toggle-track::after {
  content: '';
  width: 14px; height: 14px;
  border-radius: 50%;
  background: #fff;
  position: absolute;
  top: 3px; left: 3px;
  transition: transform 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.toggle-label input:checked + .toggle-track::after { transform: translateX(16px); }
.toggle-text { font-size: 0.88rem; color: var(--ink-soft); }

/* Photo upload */
.photo-upload {
  border: 1.5px dashed var(--border);
  border-radius: 8px;
  padding: 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.photo-upload:hover { border-color: var(--amber); background: rgba(239,159,39,0.03); }
.photo-upload input[type=file] { display: none; }
.photo-preview {
  width: 80px; height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 0.8rem;
  border: 2px solid var(--border);
}
.photo-placeholder {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: var(--cream-dark);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 0.8rem;
  font-size: 1.8rem;
  color: var(--ink-muted);
}
.photo-hint { font-size: 0.78rem; color: var(--ink-muted); }

/* ---- Checkbox Group --------------------------------------- */
.check-group {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 8px;
  margin-top: 4px;
}
.check-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border: 0.5px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s;
  font-size: 0.86rem;
  color: var(--ink-soft);
  user-select: none;
}
.check-item:hover  { border-color: var(--amber); background: rgba(239,159,39,0.04); }
.check-item.selected { border-color: var(--amber); background: rgba(239,159,39,0.09); color: var(--ink); }
.check-item input { display: none; }
.check-dot {
  width: 14px; height: 14px;
  border-radius: 3px;
  border: 1.5px solid var(--border);
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.15s;
}
.check-item.selected .check-dot { background: var(--amber); border-color: var(--amber); }
.check-dot::after { content: '✓'; color: #fff; font-size: 10px; display: none; }
.check-item.selected .check-dot::after { display: block; }

/* ---- Buttons --------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 6px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: all 0.18s;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--ink-soft); }
.btn-amber  { background: var(--amber); color: var(--ink); font-weight: 700; }
.btn-amber:hover { background: #d8900f; }
.btn-outline { background: transparent; border: 0.5px solid var(--border); color: var(--ink-soft); }
.btn-outline:hover { border-color: var(--ink-muted); background: var(--cream-dark); }
.btn-danger { background: transparent; border: 0.5px solid #f0b0b0; color: var(--red); font-size: 0.82rem; padding: 6px 14px; }
.btn-danger:hover { background: #fdf0f0; }
.btn-sm { padding: 6px 14px; font-size: 0.82rem; }
.btn-xs { padding: 4px 10px; font-size: 0.75rem; }
.btn-row { display: flex; gap: 10px; margin-top: 1.5rem; justify-content: flex-end; }

/* ---- Nominee / People Cards ------------------------------ */
.nominee-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 1.2rem; }
.nominee-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: var(--cream);
  border: 0.5px solid var(--border);
  border-radius: 8px;
  transition: border-color 0.15s;
}
.nominee-card:hover { border-color: var(--amber); }
.nominee-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--ink);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 0.82rem;
  font-family: 'Playfair Display', serif;
  flex-shrink: 0;
  overflow: hidden;
}
.nominee-avatar img { width: 100%; height: 100%; object-fit: cover; }
.nominee-info { flex: 1; min-width: 0; }
.nominee-name { font-weight: 500; font-size: 0.95rem; color: var(--ink); }
.nominee-dept { font-size: 0.78rem; color: var(--ink-muted); }
.nominee-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }

.tag {
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 3px;
  background: var(--amber-light);
  color: var(--amber-dark);
  font-weight: 500;
}

/* ---- Score Table ----------------------------------------- */
.score-table { width: 100%; border-collapse: collapse; }
.score-table th {
  font-size: 0.72rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-muted);
  padding: 8px 10px;
  text-align: left;
  border-bottom: 0.5px solid var(--border);
  font-weight: 500;
}
.score-table th:last-child { text-align: center; }
.score-table td {
  padding: 10px 10px;
  border-bottom: 0.5px solid var(--border-soft);
  vertical-align: middle;
  font-size: 0.88rem;
}
.score-table tr:last-child td { border-bottom: none; }
.criteria-name { font-weight: 500; color: var(--ink); }
.criteria-pts {
  font-size: 0.75rem;
  color: var(--amber-dark);
  background: var(--amber-light);
  padding: 2px 7px;
  border-radius: 3px;
  display: inline-block;
  margin-left: 6px;
}
.criteria-desc { font-size: 0.76rem; color: var(--ink-muted); margin-top: 2px; }
.score-input {
  width: 72px;
  border: 0.5px solid var(--border);
  border-radius: 5px;
  padding: 5px 8px;
  text-align: center;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem;
  background: #fff;
  color: var(--ink);
  outline: none;
}
.score-input:focus { border-color: var(--amber); box-shadow: 0 0 0 2px rgba(239,159,39,0.12); }
.total-row td { background: var(--cream); font-weight: 500; font-size: 0.92rem; }

/* ---- Admin Data Table ------------------------------------ */
.data-table { width: 100%; border-collapse: collapse; }
.data-table th {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-weight: 500;
  white-space: nowrap;
}
.data-table td {
  padding: 12px 14px;
  border-bottom: 0.5px solid var(--border-soft);
  font-size: 0.88rem;
  vertical-align: middle;
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: rgba(239,159,39,0.03); }
.data-table-wrap { overflow-x: auto; }

/* ---- Results / Rankings ---------------------------------- */
.result-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 0.5px solid var(--border);
  border-radius: 8px;
  margin-bottom: 8px;
  background: #fff;
  transition: border-color 0.15s;
}
.result-row:hover { border-color: var(--amber); }
.result-rank {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--cream-dark);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ink-muted);
  flex-shrink: 0;
}
.result-rank.gold   { background: var(--amber); color: var(--ink); }
.result-rank.silver { background: #C0C0C0; color: #fff; }
.result-rank.bronze { background: #CD7F32; color: #fff; }
.result-bar-bg { flex: 1; height: 6px; background: var(--border-soft); border-radius: 3px; overflow: hidden; }
.result-bar-fill { height: 100%; background: var(--amber); border-radius: 3px; transition: width 0.6s ease; }
.result-score { font-size: 0.9rem; font-weight: 500; color: var(--ink); min-width: 60px; text-align: right; }

/* ---- Winner Banner --------------------------------------- */
.winner-banner {
  background: var(--ink);
  border-radius: 12px;
  padding: 2.5rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  margin-bottom: 1.5rem;
  border: 0.5px solid rgba(239,159,39,0.2);
}
.winner-banner::before {
  content: '★';
  position: absolute;
  font-size: 10rem;
  color: rgba(239,159,39,0.05);
  top: -30px; right: -20px;
  line-height: 1;
  pointer-events: none;
}
.winner-crown { font-size: 2.2rem; margin-bottom: 0.5rem; }
.winner-label {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 0.4rem;
}
.winner-name {
  font-family: 'Playfair Display', serif;
  font-size: 2.4rem;
  color: #fff;
  font-weight: 900;
  line-height: 1.1;
}
.winner-dept   { color: var(--amber); font-size: 0.9rem; margin-top: 0.3rem; }
.winner-reason {
  color: rgba(255,255,255,0.6);
  font-size: 0.86rem;
  margin: 1rem auto 0;
  line-height: 1.7;
  max-width: 520px;
  font-style: italic;
}
.winner-score-badge {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  background: rgba(239,159,39,0.15);
  border: 1px solid rgba(239,159,39,0.3);
  border-radius: 4px;
  padding: 6px 18px;
  margin-top: 1.2rem;
}
.winner-score-num  { font-family: 'Playfair Display', serif; font-size: 2rem; color: var(--amber); font-weight: 700; line-height: 1; }
.winner-score-denom { color: rgba(255,255,255,0.4); font-size: 0.9rem; }

/* ---- Countdown ------------------------------------------- */
.countdown-wrap { display: flex; justify-content: center; gap: 1.5rem; margin: 2rem 0; }
.countdown-unit { text-align: center; }
.countdown-num {
  font-family: 'Playfair Display', serif;
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--amber);
  line-height: 1;
  display: block;
  min-width: 70px;
}
.countdown-lbl { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.4); margin-top: 6px; }
.countdown-sep {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  color: rgba(255,255,255,0.2);
  line-height: 1;
  padding-top: 4px;
  align-self: flex-start;
}

/* ---- Status Badges --------------------------------------- */
.status-badge {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 3px;
  font-weight: 500;
}
.status-active   { background: rgba(59,109,17,0.12); color: var(--green); }
.status-upcoming { background: rgba(24,95,165,0.12); color: var(--blue); }
.status-closed   { background: rgba(122,98,66,0.12); color: var(--ink-muted); }
.status-winner   { background: rgba(239,159,39,0.15); color: var(--amber-dark); }
.status-reveal   { background: rgba(83,74,183,0.12); color: var(--purple); }
.status-disabled { background: rgba(122,98,66,0.08); color: #aaa; }

/* ---- Alert Messages -------------------------------------- */
.alert {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 0.88rem;
  margin-bottom: 1.2rem;
  line-height: 1.6;
}
.alert-success { background: rgba(59,109,17,0.1);  border-left: 3px solid var(--green); color: var(--green); }
.alert-error   { background: rgba(216,90,48,0.1);  border-left: 3px solid var(--red);   color: var(--red); }
.alert-info    { background: rgba(239,159,39,0.1); border-left: 3px solid var(--amber); color: var(--amber-dark); }
.alert a       { color: inherit; font-weight: 600; }

/* ---- Inner Tabs ------------------------------------------ */
.inner-tabs {
  display: flex;
  gap: 6px;
  border-bottom: 0.5px solid var(--border);
  padding-bottom: 0;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.inner-tab {
  padding: 6px 14px;
  font-size: 0.82rem;
  cursor: pointer;
  color: var(--ink-muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: all 0.15s;
  background: none;
  border-top: none; border-left: none; border-right: none;
  font-family: 'DM Sans', sans-serif;
  text-decoration: none;
  display: inline-block;
}
.inner-tab:hover { color: var(--ink); text-decoration: none; }
.inner-tab.active { color: var(--ink); border-bottom-color: var(--amber); font-weight: 500; }

/* ---- Section Label --------------------------------------- */
.section-label {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 0.8rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-label::after { content: ''; flex: 1; height: 0.5px; background: var(--border); }

/* ---- Empty State ----------------------------------------- */
.empty {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--ink-muted);
  font-size: 0.9rem;
}
.empty-icon { font-size: 2.5rem; margin-bottom: 0.6rem; opacity: 0.3; }
.empty h3   { font-size: 1rem; color: var(--ink); margin-bottom: 0.3rem; }

/* ---- Toast Notification ---------------------------------- */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  background: var(--ink);
  color: #fff;
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 0.85rem;
  opacity: 0;
  transition: transform 0.3s, opacity 0.3s;
  z-index: 9999;
  white-space: nowrap;
  pointer-events: none;
}
.toast.show   { transform: translateX(-50%) translateY(0); opacity: 1; }
.toast.success { border-left: 3px solid var(--amber); }
.toast.error   { border-left: 3px solid var(--red); }

/* ---- Search Bar ------------------------------------------ */
.search-bar-wrap { position: relative; margin-bottom: 1.2rem; }
.search-bar-wrap input { padding-left: 36px; }
.search-icon {
  position: absolute;
  left: 10px; top: 50%;
  transform: translateY(-50%);
  color: var(--ink-muted);
  font-size: 1rem;
  pointer-events: none;
}

/* ---- Nomination Reason Block ----------------------------- */
.reason-block {
  padding: 0.8rem 1rem;
  background: var(--cream);
  border-radius: 6px;
  border-left: 2.5px solid var(--amber);
  margin-bottom: 0.7rem;
}
.reason-by   { font-size: 0.76rem; color: var(--ink-muted); margin-bottom: 3px; }
.reason-text { font-size: 0.87rem; color: var(--ink-soft); line-height: 1.6; }
.reason-example { font-size: 0.82rem; color: var(--amber-dark); margin-top: 5px; font-style: italic; }

/* ---- Score Breakdown Row --------------------------------- */
.score-admin-row {
  padding: 1rem 1.2rem;
  border: 0.5px solid var(--border);
  border-radius: 8px;
  margin-bottom: 8px;
  background: #fff;
}
.score-admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.6rem;
}
.score-admin-name { font-weight: 500; font-size: 0.92rem; color: var(--ink); }
.score-admin-date { font-size: 0.76rem; color: var(--ink-muted); }
.score-admin-total {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--amber-dark);
}

/* ---- Modal ----------------------------------------------- */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(26,18,8,0.7);
  display: flex; align-items: center; justify-content: center;
  z-index: 500;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal {
  background: var(--card);
  border-radius: 14px;
  padding: 2rem;
  max-width: 520px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(20px);
  transition: transform 0.2s;
}
.modal-overlay.open .modal { transform: translateY(0); }
.modal-title { font-size: 1.3rem; margin-bottom: 0.3rem; }
.modal-sub   { font-size: 0.84rem; color: var(--ink-muted); margin-bottom: 1.4rem; }

/* ---- Analytics ------------------------------------------- */
.analytics-bar-wrap { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.analytics-bar-label {
  font-size: 0.82rem; color: var(--ink-soft); min-width: 120px; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}
.analytics-bar-track { flex: 1; height: 8px; background: var(--border); border-radius: 4px; overflow: hidden; }
.analytics-bar-bg { height: 8px; background: var(--border); border-radius: 4px; overflow: hidden; }
.analytics-bar-fill { height: 100%; width: 0; background: var(--amber); border-radius: 4px; transition: width 0.8s ease; }
.analytics-bar-val { font-size: 0.82rem; color: var(--ink-muted); min-width: 28px; text-align: right; }

/* ---- Dept Color Dot ------------------------------------- */
.dept-color-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }

/* ---- Table Row Selected --------------------------------- */
tr.row-selected td { background: var(--amber-light); }

/* ---- Pagination ------------------------------------------ */
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 1.5rem; }
.page-btn {
  width: 34px; height: 34px;
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem;
  cursor: pointer;
  background: var(--card);
  border: 0.5px solid var(--border);
  color: var(--ink-soft);
  text-decoration: none;
  transition: all 0.15s;
}
.page-btn:hover  { border-color: var(--amber); color: var(--amber-dark); text-decoration: none; }
.page-btn.active { background: var(--amber); border-color: var(--amber); color: var(--ink); font-weight: 700; }

/* ---- Public Reveal Animation ----------------------------- */
@keyframes revealIn {
  from { opacity: 0; transform: scale(0.9) translateY(20px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes glow {
  0%, 100% { box-shadow: 0 0 30px rgba(239,159,39,0.3); }
  50%       { box-shadow: 0 0 60px rgba(239,159,39,0.6); }
}
@keyframes confettiFall {
  to { transform: translateY(110vh) rotate(720deg); opacity: 0; }
}
.reveal-anim { animation: revealIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards; }
.glow-anim   { animation: glow 2.5s ease-in-out infinite; }

.confetti-piece {
  position: fixed;
  width: 8px; height: 8px;
  border-radius: 2px;
  pointer-events: none;
  animation: confettiFall linear forwards;
}

/* ---- Utilities ------------------------------------------- */
.scroll-x { overflow-x: auto; }
.text-muted  { color: var(--ink-muted); }
.text-amber  { color: var(--amber-dark); }
.text-sm     { font-size: 0.82rem; }
.text-xs     { font-size: 0.74rem; }
.text-center { text-align: center; }
.mt-0  { margin-top: 0; }
.mt-1  { margin-top: 0.5rem; }
.mt-2  { margin-top: 1rem; }
.mb-0  { margin-bottom: 0; }
.mb-1  { margin-bottom: 0.5rem; }
.mb-2  { margin-bottom: 1rem; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.flex-1 { flex: 1; }

/* ---- Responsive ------------------------------------------ */
@media (max-width: 768px) {
  .hero h1 { font-size: 2rem; }
  .page-hero h2 { font-size: 1.5rem; }
  .form-grid-2, .form-grid-3 { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .score-table { font-size: 0.8rem; }
  .topbar-tabs { display: none; }
  .topbar { padding: 0 1rem; }
  .main, .main-wide { padding: 1.5rem 1rem; }
  .countdown-num { font-size: 2.5rem; min-width: 50px; }
  .page-hero-inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
  .stat-grid { grid-template-columns: 1fr; }
  .winner-name { font-size: 1.8rem; }
  .countdown-wrap { gap: 1rem; }
}
