/* ============================================================
   VotewavePro Design System
   Color Palette: #FFC397 | #FFA998 | #18ACBA | #F76566
   ============================================================ */


/* ---- CSS Variables ---- */
:root {
  --primary: #18ACBA;
  --primary-light: #2fc4d4;
  --primary-dark: #1295a6;
  --primary-10: rgba(24, 172, 186, 0.10);
  --primary-20: rgba(24, 172, 186, 0.20);

  --accent: #F76566;
  --accent-light: #ff8788;
  --accent-dark: #e04b4c;
  --accent-10: rgba(247, 101, 102, 0.10);
  --accent-20: rgba(247, 101, 102, 0.20);

  --peach: #FFC397;
  --peach-light: #ffd4b5;
  --peach-dark: #ffad78;
  --peach-10: rgba(255, 195, 151, 0.15);

  --salmon: #FFA998;
  --salmon-light: #ffbeb0;
  --salmon-dark: #ff9180;
  --salmon-10: rgba(255, 169, 152, 0.15);

  --bg: #FFF8F4;
  --bg-card: #FFFFFF;
  --bg-dark: #0f1923;
  --bg-dark-2: #172230;
  --bg-dark-3: #1e2e40;

  --text-dark: #1a1a2e;
  --text-mid: #4a5568;
  --text-light: #718096;
  --text-muted: #a0aec0;
  --text-white: #FFFFFF;

  --border: rgba(24, 172, 186, 0.15);
  --border-dark: rgba(0, 0, 0, 0.08);
  --divider: #f0e8e3;

  --success: #10B981;
  --success-10: rgba(16, 185, 129, 0.10);
  --warning: #F59E0B;
  --warning-10: rgba(245, 158, 11, 0.10);
  --danger: #F76566;
  --danger-10: rgba(247, 101, 102, 0.10);
  --info: #18ACBA;
  --info-10: rgba(24, 172, 186, 0.10);

  --font-ui: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-display: Georgia, 'Times New Roman', Times, serif;

  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow: 0 4px 16px rgba(24, 172, 186, 0.08), 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 8px 32px rgba(24, 172, 186, 0.12), 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 16px 48px rgba(24, 172, 186, 0.15), 0 8px 24px rgba(0,0,0,0.10);
  --shadow-accent: 0 8px 32px rgba(247, 101, 102, 0.25);
  --shadow-primary: 0 8px 32px rgba(24, 172, 186, 0.30);

  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);

  --sidebar-width: 280px;
  --sidebar-collapsed: 72px;
  --header-height: 68px;

  --gradient-primary: linear-gradient(135deg, #18ACBA 0%, #2fc4d4 100%);
  --gradient-accent: linear-gradient(135deg, #F76566 0%, #ff8788 100%);
  --gradient-warm: linear-gradient(135deg, #FFC397 0%, #FFA998 100%);
  --gradient-hero: linear-gradient(135deg, #0f1923 0%, #172230 40%, #18ACBA 100%);
  --gradient-card: linear-gradient(145deg, #ffffff 0%, #fff8f4 100%);
  --gradient-teal-coral: linear-gradient(135deg, #18ACBA 0%, #F76566 100%);
  --gradient-overlay: linear-gradient(180deg, rgba(15,25,35,0) 0%, rgba(15,25,35,0.85) 100%);
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-ui);
  background: var(--bg);
  color: var(--text-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
body.sidebar-open { overflow: hidden; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-dark);
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; height: auto; display: block; }
button { font-family: var(--font-ui); cursor: pointer; border: none; outline: none; }
input, textarea, select { font-family: var(--font-ui); outline: none; }
ul, ol { list-style: none; }

/* ---- Utility Classes ---- */
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.container-sm { max-width: 960px; margin: 0 auto; padding: 0 24px; }
.container-xs { max-width: 640px; margin: 0 auto; padding: 0 24px; }

.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }
.gap-1 { gap: 4px; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.gap-6 { gap: 24px; }
.gap-8 { gap: 32px; }
.flex-1 { flex: 1; }
.flex-wrap { flex-wrap: wrap; }
.grid { display: grid; }
.w-full { width: 100%; }
.h-full { height: 100%; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-display { font-family: var(--font-display); }
.text-primary { color: var(--primary); }
.text-accent { color: var(--accent); }
.text-muted { color: var(--text-muted); }
.text-light { color: var(--text-light); }
.text-white { color: var(--text-white); }
.rounded { border-radius: var(--radius); }
.rounded-full { border-radius: var(--radius-full); }
.overflow-hidden { overflow: hidden; }
.relative { position: relative; }
.absolute { position: absolute; }
.inset-0 { inset: 0; }
.z-10 { z-index: 10; }
.z-50 { z-index: 50; }
.hidden { display: none !important; }
.block { display: block; }
.inline-block { display: inline-block; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition-bounce);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.15);
  opacity: 0;
  transition: var(--transition);
}

.btn:hover::after { opacity: 1; }

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: var(--shadow-primary);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(24,172,186,0.40); }
.btn-primary:active { transform: translateY(0); }

.btn-accent {
  background: var(--gradient-accent);
  color: white;
  box-shadow: var(--shadow-accent);
}
.btn-accent:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(247,101,102,0.40); }

.btn-warm {
  background: var(--gradient-warm);
  color: var(--text-dark);
}
.btn-warm:hover { transform: translateY(-2px); }

.btn-outline {
  background: transparent;
  border-color: var(--primary);
  color: var(--primary);
}
.btn-outline:hover { background: var(--primary); color: white; transform: translateY(-2px); }

.btn-outline-accent {
  background: transparent;
  border-color: var(--accent);
  color: var(--accent);
}
.btn-outline-accent:hover { background: var(--accent); color: white; }

.btn-ghost {
  background: transparent;
  color: var(--text-mid);
  border-color: var(--border-dark);
}
.btn-ghost:hover { background: var(--bg); border-color: var(--primary); color: var(--primary); }

.btn-dark {
  background: var(--text-dark);
  color: white;
}
.btn-dark:hover { background: var(--bg-dark-2); transform: translateY(-2px); }

.btn-sm { padding: 7px 16px; font-size: 0.8rem; }
.btn-lg { padding: 14px 32px; font-size: 1rem; border-radius: var(--radius); }
.btn-xl { padding: 18px 40px; font-size: 1.05rem; border-radius: var(--radius); }
.btn-icon { padding: 10px; width: 40px; height: 40px; border-radius: var(--radius-sm); }
.btn-icon-sm { padding: 6px; width: 32px; height: 32px; border-radius: 6px; }
.btn-loading { opacity: 0.7; pointer-events: none; }
.btn-loading::before {
  content: '';
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin-right: 8px;
}

/* ---- Cards ---- */
.card {
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: var(--transition);
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card-flat { background: var(--bg-card); border-radius: var(--radius); border: 1px solid var(--divider); }
.card-body { padding: 24px; }
.card-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--divider);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.card-header h3 { font-size: 1rem; font-weight: 600; font-family: var(--font-ui); }
.card-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--divider);
  background: rgba(255,248,244,0.5);
}

.card-gradient {
  background: var(--gradient-primary);
  color: white;
  border: none;
}
.card-gradient-accent {
  background: var(--gradient-accent);
  color: white;
  border: none;
}
.card-gradient-warm {
  background: var(--gradient-warm);
  border: none;
}

/* ---- Stats Cards ---- */
.stat-card {
  background: white;
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}
.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--gradient-primary);
}
.stat-card.accent::before { background: var(--gradient-accent); }
.stat-card.warm::before { background: var(--gradient-warm); }
.stat-card.teal-coral::before { background: var(--gradient-teal-coral); }
.stat-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.stat-card .stat-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 16px;
}
.stat-card .stat-icon svg { width: 24px; height: 24px; }
.stat-card .stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1;
  font-family: var(--font-ui);
  letter-spacing: -0.02em;
}
.stat-card .stat-label { font-size: 0.8rem; color: var(--text-light); margin-top: 4px; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 500; }
.stat-card .stat-change { font-size: 0.8rem; font-weight: 600; margin-top: 10px; display: flex; align-items: center; gap: 4px; }
.stat-card .stat-change.up { color: var(--success); }
.stat-card .stat-change.down { color: var(--danger); }

/* ---- Forms ---- */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 6px;
  letter-spacing: 0.01em;
}
.form-label.required::after { content: ' *'; color: var(--accent); }

.form-control {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--divider);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: var(--text-dark);
  background: white;
  transition: var(--transition);
  appearance: none;
}
.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-10);
  background: white;
}
.form-control.error { border-color: var(--accent); }
.form-control.error:focus { box-shadow: 0 0 0 3px var(--accent-10); }
.form-control::placeholder { color: var(--text-muted); }

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2318ACBA' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.form-error { font-size: 0.8rem; color: var(--accent); margin-top: 4px; display: flex; align-items: center; gap: 4px; }
.form-hint { font-size: 0.8rem; color: var(--text-muted); margin-top: 4px; }

.input-group { position: relative; }
.input-group .input-icon {
  position: absolute;
  left: 12px; top: 50%; transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
  display: flex; align-items: center;
}
.input-group .input-icon svg { width: 16px; height: 16px; }
.input-group .form-control { padding-left: 40px; }
.input-group .input-suffix {
  position: absolute;
  right: 12px; top: 50%; transform: translateY(-50%);
  color: var(--text-light);
  font-size: 0.85rem;
  display: flex; align-items: center;
}
.input-group .input-suffix svg { width: 16px; height: 16px; }

.form-check { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.form-check input[type="checkbox"],
.form-check input[type="radio"] {
  width: 18px; height: 18px;
  accent-color: var(--primary);
  cursor: pointer;
}

/* ---- Tables ---- */
.table-wrapper {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.table-wrapper table { width: 100%; border-collapse: collapse; }
.table-wrapper thead { background: linear-gradient(135deg, #f8fbfc, #f0f9fa); }
.table-wrapper thead th {
  padding: 14px 16px;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  border-bottom: 2px solid var(--primary-10);
  white-space: nowrap;
}
.table-wrapper tbody tr { border-bottom: 1px solid var(--divider); transition: var(--transition); }
.table-wrapper tbody tr:last-child { border-bottom: none; }
.table-wrapper tbody tr:hover { background: var(--primary-10); }
.table-wrapper tbody td { padding: 14px 16px; font-size: 0.875rem; color: var(--text-mid); vertical-align: middle; }
.table-wrapper tfoot { background: rgba(255,248,244,0.6); }
.table-wrapper tfoot td { padding: 12px 16px; font-size: 0.85rem; font-weight: 600; border-top: 2px solid var(--divider); }

/* ---- Badges ---- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.badge-primary { background: var(--primary-10); color: var(--primary); }
.badge-accent { background: var(--accent-10); color: var(--accent); }
.badge-peach { background: var(--peach-10); color: #b5620a; }
.badge-salmon { background: var(--salmon-10); color: #c05840; }
.badge-success { background: var(--success-10); color: var(--success); }
.badge-warning { background: var(--warning-10); color: #b45309; }
.badge-danger { background: var(--danger-10); color: var(--danger); }
.badge-dark { background: rgba(26,26,46,0.10); color: var(--text-dark); }

/* ---- Alerts ---- */
.alert {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border-left: 4px solid transparent;
  margin-bottom: 16px;
}
.alert-success { background: var(--success-10); border-color: var(--success); color: #065f46; }
.alert-danger { background: var(--danger-10); border-color: var(--danger); color: #7f1d1d; }
.alert-warning { background: var(--warning-10); border-color: var(--warning); color: #78350f; }
.alert-info { background: var(--info-10); border-color: var(--info); color: #155e75; }

/* ---- Navbar ---- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-height);
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  display: flex;
  align-items: center;
  transition: var(--transition);
}
.navbar.scrolled {
  box-shadow: 0 4px 24px rgba(24,172,186,0.12);
}
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0 24px;
}
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.35rem;
  font-weight: 800;
  font-family: var(--font-display);
  background: var(--gradient-teal-coral);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.navbar-brand .logo-icon {
  width: 40px; height: 40px;
  background: var(--gradient-primary);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 1.1rem; font-weight: 800;
  flex-shrink: 0;
  box-shadow: var(--shadow-primary);
}
.navbar-nav { display: flex; align-items: center; gap: 4px; }
.nav-link {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-mid);
  transition: var(--transition);
}
.nav-link:hover, .nav-link.active {
  background: var(--primary-10);
  color: var(--primary);
}
.navbar-actions { display: flex; align-items: center; gap: 10px; }

/* ---- Admin Sidebar ---- */
.admin-layout { display: flex; min-height: 100vh; min-height: 100dvh; background: #f5f8ff; }
.sidebar {
  width: var(--sidebar-width);
  background: var(--bg-dark);
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
/* sidebar collapsed width handled in media query */
.sidebar-mobile-topline {
  display: none;
  width: 56px;
  height: 5px;
  border-radius: 999px;
  background: rgba(255,255,255,0.25);
  margin: 12px auto 0;
  flex-shrink: 0;
}

.sidebar-header {
  padding: 20px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}
.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow: hidden;
  flex: 1;
  min-width: 0;
}
.sidebar-brand .brand-text {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  background: var(--gradient-warm);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  white-space: normal;
  line-height: 1.2;
  overflow-wrap: anywhere;
  min-width: 0;
  flex: 1;
}
.sidebar-logo {
  width: 36px; height: 36px;
  background: var(--gradient-primary);
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  color: white; font-weight: 800; font-size: 0.9rem;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(24,172,186,0.4);
}

.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 16px 12px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.1) transparent;
}
.sidebar-section-title {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  padding: 12px 8px 6px;
  white-space: nowrap;
  overflow: hidden;
}
.sidebar-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: rgba(255,255,255,0.6);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  position: relative;
}
.sidebar-item .item-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
  width: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sidebar-item .item-icon svg { width: 18px; height: 18px; }
.sidebar-toggle-btn svg { width: 20px; height: 20px; }
.sidebar-mobile-trigger {
  display: none;
  min-width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: white;
  color: var(--text-mid);
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}
.sidebar-mobile-trigger:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.sidebar-mobile-trigger-fallback {
  width: 16px;
  height: 12px;
  display: inline-block;
  position: relative;
  color: currentColor;
}
.sidebar-mobile-trigger-fallback::before,
.sidebar-mobile-trigger-fallback::after,
.sidebar-mobile-trigger-fallback span {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}
.sidebar-mobile-trigger-fallback::before { top: 0; }
.sidebar-mobile-trigger-fallback span { top: 5px; }
.sidebar-mobile-trigger-fallback::after { bottom: 0; }
.sidebar-mobile-trigger i[data-lucide] {
  display: none;
}
.sidebar-mobile-trigger.has-lucide-icon {
  min-width: 42px;
  width: 42px;
}
.sidebar-mobile-trigger.has-lucide-icon .sidebar-mobile-trigger-fallback {
  display: none;
}
.sidebar-mobile-trigger.has-lucide-icon i[data-lucide] {
  display: inline-flex;
}
.sidebar-mobile-trigger svg { width: 20px; height: 20px; }
/* (mobile-bottom-nav removed) */
.sidebar-item .item-badge {
  margin-left: auto;
  background: var(--accent);
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 10px;
  min-width: 18px;
  text-align: center;
  flex-shrink: 0;
}
.sidebar-item:hover {
  background: rgba(255,255,255,0.07);
  color: white;
}
.sidebar-item.active {
  background: var(--primary-20);
  color: var(--primary-light);
}
.sidebar-item.active::before {
  content: '';
  position: absolute;
  left: 0; top: 4px; bottom: 4px;
  width: 3px;
  background: var(--primary);
  border-radius: 0 4px 4px 0;
}

.sidebar-footer {
  padding: 16px 12px;
  border-top: 1px solid rgba(255,255,255,0.06);
  flex-shrink: 0;
}
.sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}
.sidebar-user:hover { background: rgba(255,255,255,0.06); }
.sidebar-user-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--gradient-warm);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.9rem; color: white;
  flex-shrink: 0;
}
.sidebar-user-info { overflow: hidden; flex: 1; }
.sidebar-user-name { font-size: 0.85rem; font-weight: 600; color: rgba(255,255,255,0.85); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-user-role { font-size: 0.72rem; color: rgba(255,255,255,0.4); white-space: nowrap; }

/* ---- Admin Main Content ---- */
.admin-content {
  flex: 1;
  margin-left: var(--sidebar-width);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.admin-content.collapsed { margin-left: var(--sidebar-collapsed); }

.admin-header {
  position: sticky;
  top: 0;
  background: rgba(245,248,255,0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0 32px;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  z-index: 50;
}
.admin-header-left { display: flex; align-items: center; gap: 16px; min-width: 0; }
.admin-page-title { font-size: 1.1rem; font-weight: 700; font-family: var(--font-ui); }
.admin-breadcrumb { font-size: 0.8rem; color: var(--text-muted); display: flex; align-items: center; gap: 6px; }
.admin-breadcrumb a { color: var(--primary); }

.admin-header-actions { display: flex; align-items: center; gap: 12px; min-width: 0; flex-wrap: wrap; }
.header-notif-btn {
  width: 38px; height: 38px;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  color: var(--text-mid);
}
.header-notif-btn:hover { border-color: var(--primary); color: var(--primary); }
.notif-dot {
  position: absolute;
  top: 7px; right: 7px;
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  border: 2px solid white;
}

.admin-main { padding: 32px; flex: 1; min-width: 0; }
.page-header { margin-bottom: 28px; }
.page-header h1 { font-size: 1.6rem; font-family: var(--font-display); }
.page-header p { color: var(--text-light); font-size: 0.9rem; margin-top: 4px; }
.page-header,
.page-header > * { min-width: 0; }

/* ---- Dashboard Grid ---- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 28px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 28px;
}

.dashboard-grid-3 {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
  margin-bottom: 28px;
}

/* ---- Charts ---- */
.chart-container {
  position: relative;
  width: 100%;
}
.chart-container canvas { max-width: 100%; }

/* ---- Leaderboard ---- */
.leaderboard-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--divider);
  transition: var(--transition);
}
.leaderboard-item:last-child { border-bottom: none; }
.leaderboard-item:hover { background: var(--primary-10); }
.leaderboard-rank {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 0.85rem;
  flex-shrink: 0;
}
.rank-1 { background: var(--gradient-warm); color: white; box-shadow: 0 4px 12px rgba(255,195,151,0.5); }
.rank-2 { background: rgba(255,169,152,0.2); color: var(--salmon-dark); }
.rank-3 { background: rgba(24,172,186,0.15); color: var(--primary); }
.rank-other { background: rgba(0,0,0,0.06); color: var(--text-muted); }
.leaderboard-photo {
  width: 44px; height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
  flex-shrink: 0;
}
.leaderboard-photo-placeholder {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--gradient-warm);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1rem; color: white;
  flex-shrink: 0;
}
.leaderboard-info { flex: 1; min-width: 0; }
.leaderboard-name { font-weight: 600; font-size: 0.9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.leaderboard-number { font-size: 0.75rem; color: var(--text-muted); }
.leaderboard-votes { text-align: right; flex-shrink: 0; }
.leaderboard-votes .vote-count { font-weight: 800; font-size: 1rem; color: var(--primary); }
.leaderboard-votes .vote-label { font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; }
.vote-bar-wrap { height: 4px; background: var(--divider); border-radius: 99px; margin-top: 6px; overflow: hidden; }
.vote-bar { height: 100%; background: var(--gradient-primary); border-radius: 99px; transition: width 1s cubic-bezier(0.4, 0, 0.2, 1); }
.rank-1 .vote-bar { background: var(--gradient-warm); }
.rank-2-bar .vote-bar { background: var(--gradient-accent); }

/* ---- Contestant Cards ---- */
.contestant-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.contestant-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: var(--transition-slow);
  cursor: pointer;
  position: relative;
}
.contestant-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.contestant-photo-wrap {
  position: relative;
  height: 280px;
  overflow: hidden;
}
.contestant-photo-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.contestant-card:hover .contestant-photo-wrap img { transform: scale(1.05); }
.contestant-photo-overlay {
  position: absolute;
  inset: 0;
  background: var(--gradient-overlay);
  opacity: 0;
  transition: var(--transition);
}
.contestant-card:hover .contestant-photo-overlay { opacity: 1; }
.contestant-number-badge {
  position: absolute;
  top: 14px; left: 14px;
  background: var(--gradient-primary);
  color: white;
  font-weight: 800;
  font-size: 0.8rem;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 12px rgba(24,172,186,0.4);
}
.contestant-rank-badge {
  position: absolute;
  top: 14px; right: 14px;
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 0.8rem;
  background: var(--gradient-warm);
  color: white;
  box-shadow: 0 4px 12px rgba(255,195,151,0.5);
}
.contestant-body { padding: 18px; }
.contestant-name { font-weight: 700; font-size: 1rem; margin-bottom: 2px; }
.contestant-category { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 10px; display: flex; align-items: center; gap: 4px; }
.contestant-slogan { font-size: 0.82rem; color: var(--text-light); font-style: italic; margin-bottom: 14px; line-height: 1.5; }
.contestant-stats { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.contestant-points { font-size: 1.4rem; font-weight: 800; color: var(--primary); line-height: 1; }
.contestant-points span { font-size: 0.75rem; font-weight: 500; color: var(--text-muted); display: block; }
.vote-progress { margin-bottom: 14px; }
.vote-progress-bar { height: 6px; background: var(--divider); border-radius: 99px; overflow: hidden; }
.vote-progress-fill { height: 100%; background: var(--gradient-primary); border-radius: 99px; transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1); }

/* ---- Vote Modal ---- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15,25,35,0.7);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.modal-overlay.active { opacity: 1; pointer-events: all; }
.modal {
  background: white;
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 32px 80px rgba(0,0,0,0.25);
  transform: translateY(30px) scale(0.96);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.modal-overlay.active .modal { transform: translateY(0) scale(1); }
.modal-header {
  padding: 24px 24px 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}
.modal-close {
  width: 32px; height: 32px;
  background: var(--bg);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: var(--text-muted);
  transition: var(--transition);
  font-size: 1.1rem;
  flex-shrink: 0;
  border: none;
}
.modal-close:hover { background: var(--accent-10); color: var(--accent); }
.modal-body { padding: 20px 24px 24px; }

/* ---- Vote Ticker ---- */
.vote-ticker {
  position: fixed;
  bottom: 16px;
  right: 16px;
  z-index: 500;
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 260px;
  pointer-events: none;
}
.ticker-item {
  background: white;
  border-radius: 8px;
  padding: 8px 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  border: 1px solid rgba(0,0,0,0.06);
  display: flex;
  align-items: center;
  gap: 8px;
  animation: tickerSlideIn 0.3s ease forwards;
  transform-origin: right center;
  min-height: 36px;
}
.ticker-item.removing {
  animation: tickerSlideOut 0.25s ease forwards;
}
@keyframes tickerSlideIn {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes tickerSlideOut {
  from { opacity: 1; transform: translateX(0); }
  to { opacity: 0; transform: translateX(20px); }
}
.ticker-item .ticker-icon {
  width: 24px;
  height: 24px;
  background: var(--primary-10);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--primary);
}
.ticker-item .ticker-icon svg {
  width: 14px;
  height: 14px;
  stroke-width: 2.5;
}
.ticker-item .ticker-content {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  overflow: hidden;
}
.ticker-item .ticker-votes {
  font-weight: 700;
  color: var(--primary);
  font-size: 0.8rem;
}
.ticker-item .ticker-name {
  color: var(--text-dark);
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---- Countdown Timer ---- */
.countdown-wrap { display: flex; gap: 16px; justify-content: center; }
.countdown-unit {
  text-align: center;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius);
  padding: 16px 20px;
  min-width: 70px;
}
.countdown-value {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  font-family: var(--font-ui);
  color: white;
  display: block;
}
.countdown-label { font-size: 0.65rem; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.6); margin-top: 4px; display: block; }

/* ---- Section Headers ---- */
.section-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-eyebrow::before {
  content: '';
  width: 24px; height: 3px;
  background: var(--gradient-primary);
  border-radius: 99px;
  display: inline-block;
}
.section-title { font-size: 2.25rem; font-weight: 800; line-height: 1.2; margin-bottom: 12px; }
.section-subtitle { font-size: 1rem; color: var(--text-light); max-width: 560px; }
.section-subtitle.center { text-align: center; margin: 0 auto; }

/* ---- Hero Section ---- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  background: var(--bg-dark);
  overflow: hidden;
  padding-top: var(--header-height);
}
.hero-bg-gradient {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 70% 50%, rgba(24,172,186,0.25) 0%, transparent 70%),
              radial-gradient(ellipse 50% 40% at 20% 80%, rgba(247,101,102,0.15) 0%, transparent 60%),
              radial-gradient(ellipse 60% 50% at 90% 20%, rgba(255,195,151,0.10) 0%, transparent 60%);
}
.hero-particles {
  position: absolute; inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.hero-content { position: relative; z-index: 2; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(24,172,186,0.15);
  border: 1px solid rgba(24,172,186,0.3);
  border-radius: var(--radius-full);
  padding: 6px 16px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--primary-light);
  margin-bottom: 24px;
  backdrop-filter: blur(10px);
}
.hero-badge span.dot {
  width: 6px; height: 6px;
  background: var(--primary-light);
  border-radius: 50%;
  animation: pulse 2s ease infinite;
}
.hero-title {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 800;
  color: white;
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}
.hero-title .highlight {
  background: var(--gradient-warm);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.7;
  max-width: 520px;
  margin-bottom: 36px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.hero-stat-value {
  font-size: 1.8rem;
  font-weight: 800;
  color: white;
  font-family: var(--font-display);
  display: block;
}
.hero-stat-label { font-size: 0.78rem; color: rgba(255,255,255,0.5); text-transform: uppercase; letter-spacing: 0.08em; }

/* ---- Feature Cards ---- */
.feature-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: var(--transition-slow);
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: var(--transition);
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.feature-card:hover::before { opacity: 1; }
.feature-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 18px;
}
.feature-icon.teal { background: var(--primary-10); color: var(--primary); }
.feature-icon.coral { background: var(--accent-10); color: var(--accent); }
.feature-icon.peach { background: var(--peach-10); color: #b5620a; }
.feature-icon.salmon { background: var(--salmon-10); color: #c05840; }
.feature-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; font-family: var(--font-ui); }
.feature-card p { font-size: 0.875rem; color: var(--text-light); line-height: 1.65; }

/* ---- Pricing ---- */
.pricing-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow);
  border: 2px solid var(--border);
  transition: var(--transition-slow);
  position: relative;
  overflow: hidden;
}
.pricing-card.popular {
  border-color: var(--primary);
  transform: scale(1.04);
  box-shadow: var(--shadow-primary);
}
.pricing-card.popular::before {
  content: 'Most Popular';
  position: absolute;
  top: 16px; right: -28px;
  background: var(--gradient-primary);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 36px;
  transform: rotate(45deg);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.pricing-price { font-size: 2.5rem; font-weight: 800; color: var(--text-dark); font-family: var(--font-display); }
.pricing-price sup { font-size: 1rem; vertical-align: super; }
.pricing-price sub { font-size: 0.9rem; font-weight: 400; color: var(--text-muted); font-family: var(--font-ui); }
.pricing-features { list-style: none; margin: 24px 0; display: flex; flex-direction: column; gap: 12px; }
.pricing-features li { display: flex; align-items: center; gap: 10px; font-size: 0.875rem; }
.pricing-features li .check { color: var(--success); font-size: 1rem; }
.pricing-features li .cross { color: var(--text-muted); font-size: 1rem; }

/* ---- Dropzone ---- */
.dropzone {
  border: 2px dashed var(--primary);
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  background: var(--primary-10);
}
.dropzone:hover, .dropzone.dragover { background: var(--primary-20); border-color: var(--primary-dark); }
.dropzone .dz-icon { font-size: 2.5rem; color: var(--primary); margin-bottom: 12px; display:flex;justify-content:center; }
.dropzone .dz-icon svg { width: 40px; height: 40px; }
.dropzone .dz-text { color: var(--text-mid); font-size: 0.9rem; }
.dropzone .dz-hint { color: var(--text-muted); font-size: 0.78rem; margin-top: 6px; }

/* ---- Progress ---- */
.progress {
  height: 8px;
  background: var(--divider);
  border-radius: 99px;
  overflow: hidden;
}
.progress-bar {
  height: 100%;
  background: var(--gradient-primary);
  border-radius: 99px;
  transition: width 1s ease;
}
.progress-bar.accent { background: var(--gradient-accent); }
.progress-bar.warm { background: var(--gradient-warm); }
.progress-sm { height: 4px; }
.progress-lg { height: 12px; }

/* ---- Tabs ---- */
.tabs { display: flex; gap: 4px; background: var(--divider); padding: 4px; border-radius: var(--radius-sm); }
.tab {
  padding: 8px 18px;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-light);
  cursor: pointer;
  transition: var(--transition);
  border: none;
  background: transparent;
}
.tab.active { background: white; color: var(--primary); font-weight: 600; box-shadow: var(--shadow-sm); }
.tab:hover:not(.active) { color: var(--text-dark); }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* ---- Pagination ---- */
.pagination { display: flex; align-items: center; gap: 4px; }
.page-btn {
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  border: 1.5px solid var(--border-dark);
  background: white;
  color: var(--text-mid);
  transition: var(--transition);
}
.page-btn:hover { border-color: var(--primary); color: var(--primary); }
.page-btn.active { background: var(--primary); border-color: var(--primary); color: white; }
.page-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* ---- Toast Notifications ---- */
.toast-container {
  position: fixed;
  top: 24px; right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 320px;
}
.toast {
  background: white;
  border-radius: 10px;
  padding: 12px 14px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border: 1px solid rgba(0,0,0,0.06);
  animation: toastIn 0.35s cubic-bezier(0.175,0.885,0.32,1.275) forwards;
  backdrop-filter: blur(10px);
}
.toast.removing { animation: toastOut 0.25s ease forwards; }
.toast.success { border-left: 3px solid var(--success); }
.toast.error { border-left: 3px solid var(--accent); }
.toast.warning { border-left: 3px solid var(--warning); }
.toast-icon {
  width: 28px; height: 28px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 0.95rem;
}
.toast.success .toast-icon { background: rgba(16,185,129,0.1); color: var(--success); }
.toast.error .toast-icon { background: rgba(247,101,102,0.1); color: var(--accent); }
.toast.warning .toast-icon { background: rgba(251,191,36,0.1); color: var(--warning); }
.toast-body { flex: 1; min-width: 0; }
.toast-title { font-weight: 600; font-size: 0.85rem; color: var(--text-dark); margin-bottom: 2px; }
.toast-msg { font-size: 0.8rem; color: var(--text-light); line-height: 1.4; word-wrap: break-word; }
.toast-close {
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.8rem;
  padding: 2px 6px;
  border-radius: 4px;
  transition: all 0.2s;
  flex-shrink: 0;
}
.toast-close:hover { color: var(--text-dark); background: rgba(0,0,0,0.04); }
@keyframes toastIn {
  from { opacity: 0; transform: translateX(20px) scale(0.95); }
  to { opacity: 1; transform: translateX(0) scale(1); }
}
@keyframes toastOut {
  from { opacity: 1; transform: translateX(0) scale(1); }
  to { opacity: 0; transform: translateX(20px) scale(0.95); }
}

/* ---- Dropdown ---- */
.dropdown { position: relative; }
.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  min-width: 200px;
  z-index: 200;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: all 0.2s ease;
}
.dropdown.open .dropdown-menu { opacity: 1; pointer-events: all; transform: translateY(0); }
.dropdown-item {
  padding: 10px 16px;
  font-size: 0.875rem;
  color: var(--text-mid);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: var(--transition);
  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
}
.dropdown-item:hover { background: var(--primary-10); color: var(--primary); }
.dropdown-item.danger:hover { background: var(--danger-10); color: var(--danger); }
.dropdown-item svg { width: 15px; height: 15px; flex-shrink: 0; }
.header-notif-btn svg { width: 19px; height: 19px; }
.dropdown-divider { height: 1px; background: var(--divider); margin: 4px 0; }

/* ---- Shared Responsive Helpers ---- */
.table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.table-wrapper table {
  min-width: 100%;
}

@media (hover: none), (pointer: coarse) {
  .btn:hover,
  .btn-primary:hover,
  .btn-accent:hover,
  .btn-warm:hover,
  .btn-outline:hover,
  .btn-dark:hover,
  .card:hover,
  .stat-card:hover,
  .contestant-card:hover,
  .feature-card:hover {
    transform: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---- Search Bar ---- */
.search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: white;
  border: 1.5px solid var(--divider);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  transition: var(--transition);
}
.search-bar:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-10); }
.search-bar input { border: none; background: transparent; font-size: 0.875rem; flex: 1; color: var(--text-dark); }
.search-bar input::placeholder { color: var(--text-muted); }
.search-bar .search-icon { color: var(--text-muted); font-size: 0.9rem; display:flex;align-items:center; }
.search-bar .search-icon svg { width: 16px; height: 16px; }

/* ---- Action Toolbar ---- */
.action-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  border: 1.5px solid var(--border-dark);
  background: white;
  color: var(--text-mid);
  cursor: pointer;
  transition: var(--transition);
}
.filter-chip:hover, .filter-chip.active { border-color: var(--primary); color: var(--primary); background: var(--primary-10); }

/* ---- Reveal Overlay ---- */
.reveal-overlay {
  position: fixed;
  inset: 0;
  background: var(--bg-dark);
  z-index: 9000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.reveal-countdown {
  font-size: 8rem;
  font-weight: 900;
  font-family: var(--font-display);
  background: var(--gradient-teal-coral);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: revealPulse 1s ease infinite;
}
.winner-card {
  background: white;
  border-radius: var(--radius-xl);
  padding: 48px;
  text-align: center;
  max-width: 480px;
  box-shadow: 0 32px 80px rgba(0,0,0,0.4);
  animation: winnerReveal 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
.winner-crown { font-size: 4rem; margin-bottom: 16px; animation: crownBounce 1s ease 0.5s infinite; }
.winner-photo {
  width: 120px; height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--peach);
  box-shadow: 0 12px 40px rgba(255,195,151,0.5);
  margin: 0 auto 20px;
}
.winner-name { font-size: 1.8rem; font-weight: 800; color: var(--text-dark); margin-bottom: 6px; }
.winner-votes { font-size: 1rem; color: var(--text-light); }
.winner-points { font-size: 2.5rem; font-weight: 900; background: var(--gradient-teal-coral); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; margin: 12px 0; }

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(24,172,186,0.3); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* ---- Animations ---- */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.92); }
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInDown { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideInLeft { from { opacity: 0; transform: translateX(-30px); } to { opacity: 1; transform: translateX(0); } }
@keyframes slideInRight { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: translateX(0); } }
@keyframes scaleIn { from { opacity: 0; transform: scale(0.88); } to { opacity: 1; transform: scale(1); } }
@keyframes tickerSlideIn { from { opacity: 0; transform: translateX(100%); } to { opacity: 1; transform: translateX(0); } }
@keyframes tickerSlideOut { to { opacity: 0; transform: translateX(100%); height: 0; padding: 0; margin: 0; } }
@keyframes toastIn { from { opacity: 0; transform: translateX(100%); } to { opacity: 1; transform: translateX(0); } }
@keyframes toastOut { to { opacity: 0; transform: translateX(100%); max-height: 0; margin: 0; padding: 0; } }
@keyframes revealPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }
@keyframes winnerReveal { from { opacity: 0; transform: scale(0.5) rotate(-6deg); } to { opacity: 1; transform: scale(1) rotate(0deg); } }
@keyframes crownBounce { 0%, 100% { transform: translateY(0) rotate(-8deg); } 50% { transform: translateY(-12px) rotate(8deg); } }
@keyframes float { 0%, 100% { transform: translateY(0px); } 50% { transform: translateY(-12px); } }
@keyframes shimmer { from { background-position: -200% center; } to { background-position: 200% center; } }
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes confettiFall {
  0% { transform: translateY(-100vh) rotate(0deg); opacity: 1; }
  100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}

/* Utility animation classes */
.animate-fade-in { animation: fadeIn 0.5s ease forwards; }
.animate-fade-in-up { animation: fadeInUp 0.5s ease forwards; }
.animate-slide-left { animation: slideInLeft 0.5s ease forwards; }
.animate-slide-right { animation: slideInRight 0.5s ease forwards; }
.animate-scale-in { animation: scaleIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards; }
.animate-float { animation: float 4s ease-in-out infinite; }

.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }

.shimmer {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% auto;
  animation: shimmer 1.5s linear infinite;
}

/* ---- Gradient Text ---- */
.gradient-text-primary {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.gradient-text-accent {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.gradient-text-warm {
  background: var(--gradient-warm);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.gradient-text-teal-coral {
  background: var(--gradient-teal-coral);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---- Skeleton Loading ---- */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
  background-size: 200% auto;
  animation: shimmer 1.5s linear infinite;
  border-radius: var(--radius-sm);
}

/* ---- Overlay Patterns ---- */
.pattern-dots {
  background-image: radial-gradient(rgba(24,172,186,0.12) 1.5px, transparent 1.5px);
  background-size: 24px 24px;
}
.pattern-grid {
  background-image:
    linear-gradient(rgba(24,172,186,0.05) 1px, transparent 1px),
    linear-gradient(to right, rgba(24,172,186,0.05) 1px, transparent 1px);
  background-size: 28px 28px;
}

/* ---- Responsive ---- */
@media (max-width: 1400px) {
  .dashboard-grid { grid-template-columns: repeat(2, 1fr); }
  .dashboard-grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1025px) and (max-width: 1200px) and (pointer: fine) {
  .admin-layout { grid-template-columns: var(--sidebar-collapsed) 1fr; }
  .sidebar { width: var(--sidebar-collapsed); }
}
@media (max-width: 1024px), (max-width: 1366px) and (pointer: coarse) {
  .sidebar-toggle-btn { display: block !important; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .dashboard-grid-3 { grid-template-columns: 1fr; }
  .table-wrapper { overflow-x: auto; }
  .table { min-width: 700px; }
  .admin-layout { grid-template-columns: var(--sidebar-collapsed) minmax(0, 1fr); }
  .admin-main {
    padding: 20px 12px 108px;
    margin-left: 0;
  }
  .sidebar {
    width: var(--sidebar-collapsed);
    position: static;
    transform: none;
    z-index: 100;
  }
  .sidebar.open {
    width: var(--sidebar-width);
    position: absolute;
    z-index: 1200;
    height: 100%;
    box-shadow: 0 0 40px rgba(0,0,0,0.1);
  }
  .sidebar.open .brand-text,
  .sidebar.open .item-text,
  .sidebar.open .sidebar-section-title,
  .sidebar.open .sidebar-user-info { display: initial; }
  .sidebar.open .item-badge { display: inline-flex; }
  .sidebar-mobile-trigger {
    display: none !important;
  }
  .card {
    border-radius: 22px;
    max-width: 100%;
  }
  .table-wrapper {
    max-width: 100%;
  }
  .dropdown-menu { max-width: calc(100vw - 32px); }
}

@media (max-width: 900px) {
  #voting-layout { grid-template-columns: 1fr !important; }
  #voting-layout > div:last-child { position: static !important; }
  .scoring-grid { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .container { padding: 0 16px; }
  .admin-header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 64px;
    padding: 12px 14px;
  }
  .admin-header-left {
    width: auto;
    flex: 1;
    min-width: 0;
    gap: 10px;
  }
  .admin-header-actions {
    width: auto;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
    margin-left: auto;
  }
  .admin-page-title {
    font-size: 1.1rem;
    line-height: 1.2;
    white-space: normal;
  }
  .admin-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    font-size: 0.75rem;
    margin-top: 4px;
  }
  .admin-header-actions .badge {
    display: inline-flex;
  }
  .admin-main { padding: 20px 16px 108px; }
  .stats-grid { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)) !important; }
  div.stats-grid[style*="grid-template-columns"] { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)) !important; }
  .dashboard-grid,
  .dashboard-grid-3 { grid-template-columns: 1fr !important; }
  
  /* Remove aggressive 1fr inline grid override so custom 2-column layouts still work */
  
  [style*="display:grid"] {
    max-width: 100%;
  }
  .contestant-grid { grid-template-columns: repeat(2, 1fr); }
  .section-title { font-size: 1.6rem; }
  .hero-title { font-size: 2rem; }
  .hero-stats { flex-wrap: wrap; gap: 20px; }
  .countdown-wrap { gap: 8px; }
  .countdown-unit { padding: 12px 14px; min-width: 60px; }
  .countdown-value { font-size: 1.5rem; }
  .page-header { flex-direction: column; align-items: flex-start; }
  .page-header > div:last-child { width: 100%; }
  .page-header .btn,
  .action-toolbar .btn { width: 100%; justify-content: center; }
  .admin-header-actions .btn,
  .admin-header-actions .btn-sm,
  .admin-header-actions .header-notif-btn,
  .admin-header-actions .sidebar-user-avatar { width: auto; }
  .admin-header-actions > .btn,
  .admin-header-actions > .dropdown,
  .admin-header-actions > .badge {
    flex-shrink: 0;
  }
  .card,
  .modal,
  .table-wrapper,
  .dropdown-menu {
    max-width: 100%;
  }
  .form-row { flex-direction: column; }
  .form-row > * { width: 100%; }
  .modal-content { margin: 16px; max-height: calc(100vh - 32px); }
  .tabs { overflow-x: auto; white-space: nowrap; }
  .dropdown-menu { position: fixed !important; left: 16px !important; right: 16px !important; width: auto !important; }
}

@media (max-width: 640px) {
  .stats-grid { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)) !important; }
  div.stats-grid[style*="grid-template-columns"] { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)) !important; }
  .contestant-grid { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .tabs { flex-wrap: wrap; }
  .sidebar,
  .sidebar.collapsed {
    width: min(92vw, 360px);
    max-width: none;
  }
  .sidebar-mobile-trigger {
    width: 40px;
    height: 40px;
  }
  .admin-header {
    margin: 8px 8px 0;
    padding-left: 14px;
    padding-right: 14px;
  }
  .admin-page-title { font-size: 1rem; }
  .page-header h1 { font-size: 1.35rem; }
  .table-wrapper table,
  .table {
    min-width: 640px;
  }
  .header-notif-btn,
  .sidebar-user-avatar,
  .sidebar-mobile-trigger {
    width: 38px !important;
    min-width: 38px;
    height: 38px !important;
  }
  .admin-header-actions {
    gap: 6px;
  }
  [style*="display:flex"] {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .hero-title { font-size: 1.5rem; }
  .section-title { font-size: 1.4rem; }
  .section-subtitle { font-size: 0.9rem; }
  .btn { padding: 10px 16px; font-size: 0.9rem; }
  .form-control { padding: 10px 12px; font-size: 0.9rem; }
  .badge { font-size: 0.65rem; padding: 4px 8px; }
  .countdown-unit { padding: 8px 10px; min-width: 50px; }
  .countdown-value { font-size: 1.2rem; }
  .countdown-label { font-size: 0.7rem; }
}

@media (max-width: 360px) {
  .container { padding: 0 12px; }
  .admin-main { padding: 14px 8px 104px; }
  .card { padding: 16px; }
  .stats-grid { gap: 12px; }
}

/* ================================================
   CONTESTANT CARDS
   ================================================ */
.contestant-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}
.contestant-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.contestant-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.contestant-photo-wrap {
  position: relative;
  height: 280px;
  overflow: hidden;
  background: var(--bg);
}
.contestant-photo-wrap img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.4s ease;
}
.contestant-card:hover .contestant-photo-wrap img {
  transform: scale(1.04);
}
.contestant-photo-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.5) 100%);
}
.contestant-number-badge {
  position: absolute; top: 10px; left: 10px;
  background: rgba(0,0,0,0.5); color: white;
  font-size: 0.68rem; font-weight: 700;
  padding: 3px 8px; border-radius: 99px;
  backdrop-filter: blur(8px);
}
.contestant-rank-badge {
  position: absolute; top: 10px; right: 10px;
  font-size: 1.4rem; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.4));
}
.contestant-body { padding: 14px 16px; }
.contestant-name {
  font-weight: 700; font-size: 1rem;
  margin-bottom: 4px; color: var(--text-dark);
}
.contestant-category {
  font-size: 0.72rem; color: var(--text-muted);
  display: flex; align-items: center; gap: 4px;
  margin-bottom: 6px;
}
.contestant-slogan {
  font-size: 0.78rem; color: var(--text-light);
  font-style: italic; margin-bottom: 8px;
  line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2;
  line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.contestant-stats {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 8px;
}
.contestant-points {
  font-size: 1.3rem; font-weight: 800; color: var(--primary);
  display: flex; align-items: baseline; gap: 4px;
}
.contestant-points span {
  font-size: 0.7rem; font-weight: 500; color: var(--text-muted);
}
.vote-progress { margin-bottom: 10px; }
.vote-progress-bar {
  height: 5px; background: var(--divider);
  border-radius: 99px; overflow: hidden;
}
.vote-progress-fill {
  height: 100%; border-radius: 99px;
  background: var(--gradient-primary);
  transition: width 1s ease;
}

/* ================================================
   LEADERBOARD
   ================================================ */
.leaderboard-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px; border-bottom: 1px solid var(--divider);
  transition: background 0.15s ease;
}
.leaderboard-item:last-child { border-bottom: none; }
.leaderboard-item:hover { background: var(--bg); }
.leaderboard-item.leaderboard-pulse { animation: pulseGreen 0.8s ease; }
@keyframes pulseGreen {
  0%,100% { background: transparent; }
  50% { background: rgba(16,185,129,0.08); }
}
.leaderboard-rank {
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 0.78rem; flex-shrink: 0;
}
.leaderboard-rank.rank-1 { background: linear-gradient(135deg,#FFD700,#FFA500); color: #1a1a1a; }
.leaderboard-rank.rank-2 { background: linear-gradient(135deg,#C0C0C0,#A8A8A8); color: #1a1a1a; }
.leaderboard-rank.rank-3 { background: linear-gradient(135deg,#CD7F32,#A0522D); color: white; }
.leaderboard-rank.rank-other { background: var(--bg); color: var(--text-muted); }
.leaderboard-photo {
  width: 34px; height: 34px; border-radius: 50%;
  object-fit: cover; flex-shrink: 0;
  border: 2px solid var(--border);
}
.leaderboard-photo-placeholder {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--gradient-warm);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: white; font-size: 0.85rem; flex-shrink: 0;
}
.leaderboard-info { flex: 1; min-width: 0; }
.leaderboard-name {
  font-size: 0.82rem; font-weight: 600; color: var(--text-dark);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.leaderboard-number { font-size: 0.68rem; color: var(--text-muted); }
.vote-bar-wrap {
  height: 4px; background: var(--divider); border-radius: 99px;
  overflow: hidden; margin-top: 4px;
}
.vote-bar {
  height: 100%; border-radius: 99px;
  background: var(--gradient-primary); transition: width 0.8s ease;
}
.leaderboard-votes { text-align: right; flex-shrink: 0; }
.vote-count { font-size: 0.9rem; font-weight: 800; color: var(--primary); }
.vote-label { font-size: 0.65rem; color: var(--text-muted); }

/* ================================================
   VOTE TICKER
   ================================================ */
.vote-ticker {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(80px);
  background: var(--bg-dark); color: white;
  padding: 12px 20px; border-radius: 99px;
  font-size: 0.85rem; font-weight: 500;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255,255,255,0.1);
  z-index: 200; opacity: 0; pointer-events: none;
  transition: transform 0.4s cubic-bezier(0.175,0.885,0.32,1.275), opacity 0.4s ease;
  white-space: nowrap; max-width: 90vw; overflow: hidden; text-overflow: ellipsis;
}
.vote-ticker.visible {
  opacity: 1; transform: translateX(-50%) translateY(0);
}

/* ================================================
   COUNTDOWN
   ================================================ */
.countdown-wrap {
  display: flex; align-items: center; gap: 10px;
  flex-wrap: wrap;
}
.countdown-unit {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 10px; padding: 10px 16px;
  text-align: center; min-width: 64px;
  backdrop-filter: blur(8px);
}
.countdown-value {
  font-size: 1.8rem; font-weight: 800; color: white;
  font-family: var(--font-display); display: block; line-height: 1;
}
.countdown-label {
  font-size: 0.62rem; color: rgba(255,255,255,0.5);
  text-transform: uppercase; letter-spacing: 0.08em;
  display: block; margin-top: 4px;
}

/* ================================================
   PAGE HEADER
   ================================================ */
.page-header { margin-bottom: 24px; }
.page-header h1 {
  font-size: 1.6rem; font-weight: 800;
  color: var(--text-dark); font-family: var(--font-ui);
}
.page-header p { color: var(--text-muted); font-size: 0.875rem; margin-top: 4px; }

/* ================================================
   ACTION TOOLBAR
   ================================================ */
.action-toolbar {
  display: flex; align-items: center; gap: 10px;
  flex-wrap: wrap; margin-bottom: 18px;
  padding: 12px 16px;
  background: white; border-radius: var(--radius);
  border: 1px solid var(--border);
}

/* ================================================
   SEARCH BAR
   ================================================ */
.search-bar {
  position: relative; display: flex; align-items: center;
}
.search-bar .search-icon {
  position: absolute; left: 10px; font-size: 0.85rem;
  color: var(--text-muted); pointer-events: none;
}
.search-bar input {
  padding: 8px 12px 8px 32px;
  border: 1.5px solid var(--divider);
  border-radius: var(--radius-sm);
  font-size: 0.85rem; background: var(--bg);
  transition: var(--transition);
  width: 100%;
}
.search-bar input:focus {
  outline: none; border-color: var(--primary);
  background: white;
}

/* ================================================
   FILTER CHIPS
   ================================================ */
.filter-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; border-radius: 99px;
  font-size: 0.78rem; font-weight: 600;
  border: 1.5px solid var(--divider);
  background: white; color: var(--text-mid);
  cursor: pointer; transition: var(--transition);
  text-decoration: none;
}
.filter-chip:hover { border-color: var(--primary); color: var(--primary); }
.filter-chip.active {
  background: var(--primary-10); border-color: var(--primary);
  color: var(--primary);
}

/* ================================================
   BADGE VARIANTS
   ================================================ */
.badge-peach { background: var(--peach-10); color: #b5620a; }
.badge-salmon { background: var(--salmon-10); color: #c05840; }
.badge-accent { background: var(--accent-10); color: var(--accent); }

/* ================================================
   PROGRESS
   ================================================ */
.progress {
  height: 8px; background: var(--divider);
  border-radius: 99px; overflow: hidden;
}
.progress-sm { height: 5px; }
.progress-bar {
  height: 100%; border-radius: 99px;
  background: var(--gradient-primary);
  transition: width 0.6s ease;
}

/* ================================================
   STATS CARDS VARIANTS
   ================================================ */
.stat-card.accent .stat-value { color: var(--accent); }
.stat-card.warm .stat-value { color: #b5620a; }
.stat-card.teal-coral .stat-value { color: #c05840; }
.stat-change { font-size: 0.72rem; color: var(--text-muted); margin-top: 4px; }
.stat-change.up { color: var(--success); }
.stat-change.down { color: var(--accent); }

/* ================================================
   PAGINATION
   ================================================ */
.pagination { display: flex; gap: 4px; align-items: center; }
.page-btn {
  width: 36px; height: 36px; display: flex; align-items: center;
  justify-content: center; border-radius: var(--radius-sm);
  border: 1.5px solid var(--divider); font-size: 0.85rem;
  font-weight: 600; color: var(--text-mid);
  text-decoration: none; transition: var(--transition);
  background: white;
}
.page-btn:hover { border-color: var(--primary); color: var(--primary); }
.page-btn.active { background: var(--primary); border-color: var(--primary); color: white; }

/* ================================================
   LANDING PAGE COMPONENTS
   ================================================ */
.feature-card {
  background: white; border-radius: var(--radius-lg);
  padding: 28px 24px; border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.feature-card:hover {
  transform: translateY(-4px); box-shadow: var(--shadow-md);
}
.feature-icon {
  width: 52px; height: 52px; border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; margin-bottom: 14px;
}
.feature-icon.teal { background: var(--primary-10); }
.feature-icon.coral { background: var(--accent-10); }
.feature-icon.peach { background: var(--peach-10); }
.feature-icon.salmon { background: var(--salmon-10); }
.feature-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.feature-card p { font-size: 0.875rem; color: var(--text-light); line-height: 1.65; }

.pricing-card {
  background: white; border-radius: var(--radius-lg);
  padding: 28px 24px; border: 1.5px solid var(--border);
  position: relative; transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.pricing-card.popular {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-10), var(--shadow-md);
}
.pricing-card.popular::before {
  content: 'Most Popular';
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--primary); color: white;
  font-size: 0.65rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; padding: 4px 14px; border-radius: 99px;
}
.pricing-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.pricing-price { font-size: 2.4rem; font-weight: 800; line-height: 1; margin-bottom: 4px; }
.pricing-price sup { font-size: 1rem; font-weight: 600; vertical-align: super; }
.pricing-price sub { font-size: 0.85rem; font-weight: 500; color: var(--text-muted); }
.pricing-features { display: flex; flex-direction: column; gap: 10px; margin: 20px 0; }
.pricing-features li {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.875rem;
}

/* ================================================
   FORM CHECK / RADIO
   ================================================ */
.form-check {
  display: flex; align-items: flex-start; gap: 10px;
  cursor: pointer;
}
.form-check input[type=checkbox],
.form-check input[type=radio] {
  width: 16px; height: 16px; margin-top: 2px; flex-shrink: 0;
  accent-color: var(--primary); cursor: pointer;
}

/* ================================================
   SIDEBAR COLLAPSED STATE (Universal)
   ================================================ */
.sidebar.collapsed { width: var(--sidebar-collapsed); }
.sidebar.collapsed .brand-text,
.sidebar.collapsed .item-text,
.sidebar.collapsed .sidebar-section-title,
.sidebar.collapsed .sidebar-user-info { display: none; }
.sidebar.collapsed .item-badge { display: none; }
.admin-content.sidebar-collapsed { margin-left: 0; }

@media (min-width: 1025px) {
  .admin-content.sidebar-collapsed { margin-left: var(--sidebar-collapsed); }
}

@media (max-width: 1024px) {
  .sidebar { width: var(--sidebar-collapsed); }
  .sidebar .brand-text,
  .sidebar .item-text,
  .sidebar .sidebar-section-title,
  .sidebar .sidebar-user-info { display: none; }
  .sidebar .item-badge { display: none; }
}

/* ================================================
   MISC UTILITIES
   ================================================ */
.w-full { width: 100%; }
.flex-1 { flex: 1; }
.hidden { display: none; }
.text-center { text-align: center; }

/* ================================================
   VOTING LAYOUT RESPONSIVE
   ================================================ */
@media (max-width: 900px) {
  #voting-layout { grid-template-columns: 1fr !important; }
  #voting-layout > div:last-child { position: static !important; }
}
@media (max-width: 768px) {
  #main-grid { grid-template-columns: 1fr !important; }
}

/* ---- Mobile Sidebar Toggle ---- */
.sidebar-overlay {
  display: none;
}

/* ================================================
   ADMIN RESPONSIVE SHELL REBUILD
   ================================================ */
.btn,
.form-control,
.form-select,
.header-notif-btn,
.sidebar-mobile-trigger,
.sidebar-toggle-btn,
.sidebar-mobile-close {
  min-height: 44px;
}

.admin-page-title {
  font-size: clamp(1rem, 1vw + 0.8rem, 1.25rem);
}

.page-header h1 {
  font-size: clamp(1.35rem, 2vw + 0.9rem, 1.9rem);
}

.card-header h3 {
  font-size: clamp(0.95rem, 0.5vw + 0.85rem, 1.1rem);
}

.stat-card .stat-value {
  font-size: clamp(1.5rem, 2vw + 1rem, 2.2rem);
}

.admin-layout,
.admin-content,
.admin-main,
.card,
.card-body,
.card-header,
.page-header,
.table-wrapper,
.table-wrapper table {
  min-width: 0;
}

.table-wrapper {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}

.table-wrapper table,
.table {
  width: 100%;
}

.modal-content {
  width: min(720px, calc(100vw - 32px));
  max-width: 100%;
  max-height: min(88vh, calc(100dvh - 32px));
  overflow: auto;
  border-radius: 24px;
}

.sidebar-toggle-btn,
.sidebar-mobile-close {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  min-width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.75);
  transition: var(--transition);
}

.sidebar-toggle-btn:hover,
.sidebar-mobile-close:hover {
  background: rgba(255,255,255,0.1);
  color: white;
}

.sidebar-toggle-btn svg,
.sidebar-mobile-close svg {
  width: 18px;
  height: 18px;
}

.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(9, 14, 22, 0.58);
  backdrop-filter: blur(3px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  z-index: 1100;
}

.sidebar-overlay.active {
  display: block;
  opacity: 1;
  visibility: visible;
}

body.sidebar-open {
  overflow: hidden;
}

@media (min-width: 1280px) {
  .dashboard-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-grid-3 {
    grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr);
  }
}

@media (min-width: 1025px) {
  body[data-sidebar-mode="desktop"] .sidebar {
    width: var(--sidebar-width);
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    transform: none !important;
    box-shadow: none;
  }

  body[data-sidebar-mode="desktop"] .admin-content {
    margin-left: var(--sidebar-width);
  }

  body[data-sidebar-mode="desktop"] .sidebar-mobile-trigger,
  body[data-sidebar-mode="desktop"] .sidebar-mobile-close,
  body[data-sidebar-mode="desktop"] .sidebar-toggle-btn,
  body[data-sidebar-mode="desktop"] .sidebar-overlay {
    display: none !important;
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  body[data-sidebar-mode="tablet"] .sidebar {
    width: var(--sidebar-collapsed);
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    transform: none !important;
    z-index: 100;
    box-shadow: 0 0 0 rgba(0,0,0,0);
  }

  body[data-sidebar-mode="tablet"] .admin-content {
    margin-left: var(--sidebar-collapsed) !important;
  }

  body[data-sidebar-mode="tablet"] .admin-content.sidebar-hidden {
    margin-left: 0 !important;
  }

  body[data-sidebar-mode="tablet"] .admin-main {
    padding: 24px 20px 28px;
  }

  body[data-sidebar-mode="tablet"] .sidebar-toggle-btn {
    display: inline-flex !important;
  }

  body[data-sidebar-mode="tablet"] .sidebar-mobile-trigger,
  body[data-sidebar-mode="tablet"] .sidebar-mobile-close {
    display: none !important;
  }

  body[data-sidebar-mode="tablet"].sidebar-tablet-hidden .sidebar-mobile-trigger {
    display: inline-flex !important;
  }

  body[data-sidebar-mode="tablet"] .sidebar.collapsed {
    width: var(--sidebar-collapsed);
  }

  body[data-sidebar-mode="tablet"] .sidebar.hidden {
    transform: translateX(calc(-100% - 18px)) !important;
    opacity: 0;
    pointer-events: none;
    box-shadow: none;
  }

  body[data-sidebar-mode="tablet"] .sidebar.open,
  body[data-sidebar-mode="tablet"] .sidebar.collapsed:hover {
    width: var(--sidebar-width);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.18);
  }

  body[data-sidebar-mode="tablet"] .sidebar.collapsed .brand-text,
  body[data-sidebar-mode="tablet"] .sidebar.collapsed .item-text,
  body[data-sidebar-mode="tablet"] .sidebar.collapsed .sidebar-section-title,
  body[data-sidebar-mode="tablet"] .sidebar.collapsed .sidebar-user-info,
  body[data-sidebar-mode="tablet"] .sidebar.collapsed .item-badge {
    opacity: 0;
    visibility: hidden;
    width: 0;
    min-width: 0;
    margin: 0;
    pointer-events: none;
  }

  body[data-sidebar-mode="tablet"] .sidebar.collapsed:hover .brand-text,
  body[data-sidebar-mode="tablet"] .sidebar.collapsed:hover .item-text,
  body[data-sidebar-mode="tablet"] .sidebar.collapsed:hover .sidebar-section-title,
  body[data-sidebar-mode="tablet"] .sidebar.collapsed:hover .sidebar-user-info,
  body[data-sidebar-mode="tablet"] .sidebar.collapsed:hover .item-badge,
  body[data-sidebar-mode="tablet"] .sidebar.open .brand-text,
  body[data-sidebar-mode="tablet"] .sidebar.open .item-text,
  body[data-sidebar-mode="tablet"] .sidebar.open .sidebar-section-title,
  body[data-sidebar-mode="tablet"] .sidebar.open .sidebar-user-info,
  body[data-sidebar-mode="tablet"] .sidebar.open .item-badge {
    opacity: 1;
    visibility: visible;
    width: auto;
    min-width: unset;
    pointer-events: auto;
  }

  body[data-sidebar-mode="tablet"] .sidebar.collapsed .sidebar-item {
    justify-content: center;
    padding-inline: 10px;
  }

  body[data-sidebar-mode="tablet"] .sidebar.collapsed .sidebar-brand {
    justify-content: center;
  }

  body[data-sidebar-mode="tablet"] .sidebar.collapsed .sidebar-user {
    justify-content: center;
  }

  body[data-sidebar-mode="tablet"] .dashboard-grid,
  body[data-sidebar-mode="tablet"] .dashboard-grid-3 {
    grid-template-columns: 1fr !important;
  }

  body[data-sidebar-mode="tablet"] [style*="grid-template-columns:2fr 1fr"],
  body[data-sidebar-mode="tablet"] [style*="grid-template-columns: 2fr 1fr"],
  body[data-sidebar-mode="tablet"] [style*="grid-template-columns:1.35fr 0.85fr"],
  body[data-sidebar-mode="tablet"] [style*="grid-template-columns: 1.35fr 0.85fr"],
  body[data-sidebar-mode="tablet"] [style*="grid-template-columns:minmax(300px,390px) minmax(0,1fr)"],
  body[data-sidebar-mode="tablet"] [style*="grid-template-columns:minmax(280px,380px) minmax(0,1fr)"] {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  body[data-sidebar-mode="tablet"] [style*="grid-template-columns:1fr 1fr"],
  body[data-sidebar-mode="tablet"] [style*="grid-template-columns: 1fr 1fr"],
  body[data-sidebar-mode="tablet"] [style*="grid-template-columns:repeat(3,1fr)"],
  body[data-sidebar-mode="tablet"] [style*="grid-template-columns: repeat(3,1fr)"],
  body[data-sidebar-mode="tablet"] [style*="grid-template-columns:repeat(4,1fr)"],
  body[data-sidebar-mode="tablet"] [style*="grid-template-columns: repeat(4,1fr)"],
  body[data-sidebar-mode="tablet"] [style*="grid-template-columns:repeat(4,minmax(0,1fr))"],
  body[data-sidebar-mode="tablet"] [style*="grid-template-columns: repeat(4,minmax(0,1fr))"] {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) !important;
  }
}

@media (max-width: 767px) {
  body[data-sidebar-mode="mobile"] .sidebar {
    width: min(86vw, 320px);
    max-width: 320px;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    transform: translateX(-104%);
    transition: transform 0.28s ease;
    border-radius: 0 24px 24px 0;
    box-shadow: 0 20px 48px rgba(9, 14, 22, 0.34);
    z-index: 1200;
  }

  body[data-sidebar-mode="mobile"] .sidebar.open {
    transform: translateX(0);
  }

  body[data-sidebar-mode="mobile"] .sidebar .brand-text,
  body[data-sidebar-mode="mobile"] .sidebar .item-text,
  body[data-sidebar-mode="mobile"] .sidebar .sidebar-section-title,
  body[data-sidebar-mode="mobile"] .sidebar .sidebar-user-info,
  body[data-sidebar-mode="mobile"] .sidebar .item-badge {
    opacity: 1;
    visibility: visible;
    width: auto;
    min-width: unset;
  }

  body[data-sidebar-mode="mobile"] .admin-content {
    margin-left: 0 !important;
  }

  body[data-sidebar-mode="mobile"] .admin-main {
    padding: 18px 16px 24px;
  }

  body[data-sidebar-mode="mobile"] .sidebar-mobile-trigger,
  body[data-sidebar-mode="mobile"] .sidebar-mobile-close {
    display: inline-flex !important;
  }

  body[data-sidebar-mode="mobile"] .sidebar-toggle-btn {
    display: none !important;
  }

  body[data-sidebar-mode="mobile"] .sidebar-mobile-topline {
    display: block;
  }

  body[data-sidebar-mode="mobile"] .admin-header {
    padding: 12px 16px;
    min-height: 72px;
    height: auto;
  }

  body[data-sidebar-mode="mobile"] .admin-header-left,
  body[data-sidebar-mode="mobile"] .admin-header-actions {
    min-width: 0;
  }

  body[data-sidebar-mode="mobile"] .dashboard-grid,
  body[data-sidebar-mode="mobile"] .dashboard-grid-3,
  body[data-sidebar-mode="mobile"] .card-grid,
  body[data-sidebar-mode="mobile"] .analytics-grid {
    grid-template-columns: 1fr !important;
  }

  body[data-sidebar-mode="mobile"] .stats-grid,
  body[data-sidebar-mode="mobile"] div.stats-grid[style*="grid-template-columns"] {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)) !important;
  }

  body[data-sidebar-mode="mobile"] [style*="grid-template-columns:2fr 1fr"],
  body[data-sidebar-mode="mobile"] [style*="grid-template-columns: 2fr 1fr"],
  body[data-sidebar-mode="mobile"] [style*="grid-template-columns:1fr 1fr"],
  body[data-sidebar-mode="mobile"] [style*="grid-template-columns: 1fr 1fr"],
  body[data-sidebar-mode="mobile"] [style*="grid-template-columns:1fr 1fr auto auto"],
  body[data-sidebar-mode="mobile"] [style*="grid-template-columns: 1fr 1fr auto auto"],
  body[data-sidebar-mode="mobile"] [style*="grid-template-columns:repeat(3,1fr)"],
  body[data-sidebar-mode="mobile"] [style*="grid-template-columns: repeat(3,1fr)"],
  body[data-sidebar-mode="mobile"] [style*="grid-template-columns:repeat(4,1fr)"],
  body[data-sidebar-mode="mobile"] [style*="grid-template-columns: repeat(4,1fr)"],
  body[data-sidebar-mode="mobile"] [style*="grid-template-columns:repeat(3,minmax(0,1fr))"],
  body[data-sidebar-mode="mobile"] [style*="grid-template-columns: repeat(3,minmax(0,1fr))"],
  body[data-sidebar-mode="mobile"] [style*="grid-template-columns:repeat(4,minmax(0,1fr))"],
  body[data-sidebar-mode="mobile"] [style*="grid-template-columns: repeat(4,minmax(0,1fr))"],
  body[data-sidebar-mode="mobile"] [style*="grid-template-columns:minmax(300px,390px) minmax(0,1fr)"],
  body[data-sidebar-mode="mobile"] [style*="grid-template-columns:minmax(280px,380px) minmax(0,1fr)"],
  body[data-sidebar-mode="mobile"] [style*="grid-template-columns:minmax(220px,260px) 1fr"] {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  body[data-sidebar-mode="mobile"] .table-wrapper table,
  body[data-sidebar-mode="mobile"] .table {
    min-width: 640px;
  }

  body[data-sidebar-mode="mobile"] .modal-overlay {
    align-items: flex-end;
    padding: 12px;
  }

  body[data-sidebar-mode="mobile"] .modal-content {
    width: 100%;
    max-height: calc(100dvh - 12px);
    border-radius: 24px 24px 0 0;
    margin: 0 !important;
  }
}

@media (max-width: 480px) {
  body[data-sidebar-mode="mobile"] .admin-header {
    padding: 10px 12px;
  }

  body[data-sidebar-mode="mobile"] .admin-main {
    padding: 14px 12px 24px;
  }

  body[data-sidebar-mode="mobile"] .stats-grid,
  body[data-sidebar-mode="mobile"] div.stats-grid[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }

  body[data-sidebar-mode="mobile"] .btn,
  body[data-sidebar-mode="mobile"] .form-control,
  body[data-sidebar-mode="mobile"] .form-select {
    font-size: 0.92rem;
  }

  body[data-sidebar-mode="mobile"] .card-header,
  body[data-sidebar-mode="mobile"] .card-body {
    padding-inline: 16px;
  }
}
