/* ============================================================================
   LOKO REVIEW — Design System
   Palette: #0A0A0A bg, #1A1A1A surface, #00EA6A accent, #F5F5F5 text
   Font: Poppins
   ============================================================================ */

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

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

:root {
  --bg: #0A0A0A;
  --surface: #1A1A1A;
  --surface-hover: #242424;
  --accent: #00EA6A;
  --accent-dim: #00EA6A33;
  --text: #F5F5F5;
  --text-secondary: #6B7280;
  --text-tertiary: #9CA3AF;
  --danger: #EF4444;
  --danger-dim: #EF444433;
  --warning: #F59E0B;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-xs: 6px;
}

html, body {
  font-family: 'Poppins', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100dvh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ============================================================================
   LAYOUT
   ============================================================================ */

.app {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: 0 20px;
  position: relative;
}

.screen {
  display: none;
  flex-direction: column;
  flex: 1;
  animation: fadeIn 0.3s ease;
}

.screen.active {
  display: flex;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(60px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes slideOutLeft {
  from { opacity: 1; transform: translateX(0); }
  to { opacity: 0; transform: translateX(-60px); }
}

@keyframes trashPulse {
  0% { transform: scale(1); }
  50% { transform: scale(0.9); background: var(--danger); }
  100% { transform: scale(1); }
}

/* ============================================================================
   HEADER
   ============================================================================ */

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0 12px;
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 100;
}

.logo {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -1px;
}

.logo span {
  color: var(--accent);
}

.header-btn {
  background: var(--surface);
  border: 1px solid #2A2A2A;
  color: var(--text);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.header-btn:hover {
  background: var(--surface-hover);
}

.header-btn.accent {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
}

.info-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid #2A2A2A;
  color: var(--text-tertiary);
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  margin-left: 8px;
  vertical-align: middle;
  transition: all 0.2s;
}

.info-btn:hover {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
}

/* ============================================================================
   LOGIN SCREEN
   ============================================================================ */

.login-screen {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 32px;
}

.login-title {
  font-size: 32px;
  font-weight: 700;
  text-align: center;
  line-height: 1.2;
}

.login-subtitle {
  color: var(--text-secondary);
  font-size: 15px;
  text-align: center;
  margin-top: 8px;
}

.login-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.input {
  width: 100%;
  background: var(--surface);
  border: 2px solid #2A2A2A;
  color: var(--text);
  padding: 16px 20px;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  outline: none;
  transition: border-color 0.2s;
}

.input:focus {
  border-color: var(--accent);
}

.input::placeholder {
  color: var(--text-tertiary);
}

.btn {
  width: 100%;
  padding: 16px;
  border: none;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary {
  background: var(--accent);
  color: #000;
}

.btn-primary:hover {
  filter: brightness(1.1);
}

.btn-primary:active {
  transform: scale(0.98);
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid #2A2A2A;
}

.btn-secondary:hover {
  background: var(--surface-hover);
}

/* ============================================================================
   SUGGESTIONS (duplicate name)
   ============================================================================ */

.suggestions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.suggestion-label {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.suggestion-btn {
  width: 100%;
  padding: 14px 20px;
  background: var(--surface);
  border: 2px solid #2A2A2A;
  border-radius: var(--radius);
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s;
}

.suggestion-btn:hover {
  border-color: var(--accent);
  background: var(--accent-dim);
}

.suggestion-btn .sub {
  display: block;
  font-size: 12px;
  color: var(--text-tertiary);
  font-weight: 400;
  margin-top: 2px;
}

/* ============================================================================
   PROGRESS BAR
   ============================================================================ */

.progress-wrap {
  padding: 8px 0;
}

.progress-info {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-tertiary);
  margin-bottom: 6px;
  font-weight: 500;
}

.progress-bar {
  width: 100%;
  height: 4px;
  background: var(--surface);
  border-radius: 2px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.4s ease;
}

/* ============================================================================
   CHALLENGE CARD
   ============================================================================ */

/* --- Context tiles (above card) --- */

.card-group {
  width: 100%;
}

.context-tiles {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

.context-tile {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 10px 6px;
  border-radius: var(--radius) var(--radius) 0 0;
  border: 1px solid #2A2A2A;
  border-bottom: none;
  text-align: center;
}

.context-tile-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.context-tile-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.7;
}

.context-tile-value {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
}

/* Bank tile colors */
.tile-bank { background: #00EA6A0D; }
.tile-bank .context-tile-icon { background: #00EA6A20; color: var(--accent); }
.tile-bank .context-tile-value { color: var(--accent); }

/* Type tile */
.tile-defi { background: #3B82F60D; }
.tile-defi .context-tile-icon { background: #3B82F620; color: #60A5FA; }
.tile-defi .context-tile-value { color: #60A5FA; }

.tile-pouvoir { background: #A855F70D; }
.tile-pouvoir .context-tile-icon { background: #A855F720; color: #C084FC; }
.tile-pouvoir .context-tile-value { color: #C084FC; }

/* Target tile */
.tile-everyone { background: #10B9810D; }
.tile-everyone .context-tile-icon { background: #10B98120; color: #34D399; }
.tile-everyone .context-tile-value { color: #34D399; }

.tile-only { background: #F59E0B0D; }
.tile-only .context-tile-icon { background: #F59E0B20; color: #FBBF24; }
.tile-only .context-tile-value { color: #FBBF24; }

.tile-everyoneExceptX { background: #EF44440D; }
.tile-everyoneExceptX .context-tile-icon { background: #EF444420; color: #F87171; }
.tile-everyoneExceptX .context-tile-value { color: #F87171; }

/* --- Card --- */

.card-container {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  position: relative;
  overflow: hidden;
}

.card {
  width: 100%;
  background: var(--surface);
  border: 1px solid #2A2A2A;
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.card.exiting {
  animation: slideOutLeft 0.25s ease forwards;
}

.card.entering {
  animation: slideInRight 0.25s ease forwards;
}

/* Small inline badges (for admin, kept for compatibility) */
.card-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-bank { background: var(--accent-dim); color: var(--accent); }
.badge-defi { background: #3B82F620; color: #60A5FA; }
.badge-pouvoir { background: #A855F720; color: #C084FC; }
.badge-target-everyone { background: #10B98120; color: #34D399; }
.badge-target-only { background: #F59E0B20; color: #FBBF24; }
.badge-target-everyoneExceptX { background: #EF444420; color: #F87171; }

.card-power-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.card-emoji {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}

.card-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
}

.card-text {
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  font-weight: 400;
}

.card-bonus {
  font-size: 13px;
  color: var(--accent);
  font-weight: 500;
  padding: 8px 12px;
  background: var(--accent-dim);
  border-radius: var(--radius-xs);
}

.card-meta {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: var(--text-tertiary);
  font-weight: 500;
}

.card-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ============================================================================
   VOTE AREA
   ============================================================================ */

.vote-area {
  padding: 12px 0 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.vote-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.trash-btn {
  width: 56px;
  height: 56px;
  border-radius: var(--radius);
  background: var(--danger-dim);
  border: 2px solid transparent;
  color: var(--danger);
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
}

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

.trash-btn:active {
  animation: trashPulse 0.3s ease;
}

.stars-row {
  flex: 1;
  display: flex;
  gap: 4px;
  justify-content: center;
}

.star-btn {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 2px solid #2A2A2A;
  color: var(--text-tertiary);
  font-size: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
  font-family: inherit;
}

.star-btn:hover {
  background: var(--surface-hover);
  border-color: var(--warning);
}

.star-btn.active {
  background: #F59E0B20;
  border-color: var(--warning);
  color: var(--warning);
}

.comment-area {
  display: flex;
  gap: 8px;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
}

.comment-area.visible {
  opacity: 1;
  max-height: 120px;
}

.comment-input {
  flex: 1;
  background: var(--surface);
  border: 2px solid #2A2A2A;
  color: var(--text);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 14px;
  resize: none;
  outline: none;
  height: 48px;
}

.comment-input:focus {
  border-color: var(--accent);
}

.submit-btn {
  padding: 12px 24px;
  background: var(--accent);
  color: #000;
  border: none;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.submit-btn:hover {
  filter: brightness(1.1);
}

.submit-btn:active {
  transform: scale(0.96);
}

.submit-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* ============================================================================
   DONE SCREEN
   ============================================================================ */

.done-screen {
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 24px;
  padding-bottom: 20vh;
}

.done-emoji {
  font-size: 72px;
}

.done-title {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.3;
}

.done-subtitle {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.done-accent {
  color: var(--accent);
  font-weight: 700;
}

/* ============================================================================
   PROPOSE MODAL
   ============================================================================ */

.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  z-index: 1000;
  align-items: flex-end;
  justify-content: center;
  animation: fadeIn 0.2s;
}

.modal-overlay.active {
  display: flex;
}

.modal {
  background: var(--surface);
  width: 100%;
  max-width: 480px;
  max-height: 90dvh;
  border-radius: var(--radius) var(--radius) 0 0;
  padding: 24px 20px 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow-y: auto;
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.modal-title {
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg);
  border: none;
  color: var(--text);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-select {
  background: var(--bg);
  border: 2px solid #2A2A2A;
  color: var(--text);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 14px;
  outline: none;
  appearance: none;
  cursor: pointer;
}

.form-select:focus {
  border-color: var(--accent);
}

.form-textarea {
  background: var(--bg);
  border: 2px solid #2A2A2A;
  color: var(--text);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 14px;
  outline: none;
  resize: vertical;
  min-height: 80px;
}

.form-textarea:focus {
  border-color: var(--accent);
}

.form-input-sm {
  background: var(--bg);
  border: 2px solid #2A2A2A;
  color: var(--text);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 14px;
  outline: none;
}

.form-input-sm:focus {
  border-color: var(--accent);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* ============================================================================
   TARGET TYPE EXPLAINER
   ============================================================================ */

/* ============================================================================
   WELCOME MODAL
   ============================================================================ */

.welcome-modal {
  border-radius: var(--radius);
  margin: 20px;
  max-width: 400px;
  padding: 32px 24px;
}

.welcome-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}

.welcome-emoji {
  font-size: 56px;
}

.welcome-title {
  font-size: 26px;
  font-weight: 700;
}

.welcome-text {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.welcome-text strong {
  color: var(--text);
}

.welcome-text-small {
  font-size: 13px;
  color: var(--text-tertiary);
  line-height: 1.5;
}

.welcome-actions {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}

/* ============================================================================
   INFO MODAL CONTENT
   ============================================================================ */

.info-modal {
  max-height: 92dvh;
}

.info-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.info-hero {
  background: linear-gradient(135deg, #00EA6A15 0%, #00EA6A05 100%);
  border: 1px solid #00EA6A30;
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
}

.info-hero-text {
  font-size: 20px;
  line-height: 1.4;
  color: var(--text);
}

.info-hero-text strong {
  color: var(--accent);
}

.info-pitch {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-secondary);
}

.info-pitch strong {
  color: var(--text);
}

.info-section {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.info-section-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.info-section-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
}

.info-section-desc {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.info-section-desc strong {
  color: var(--text);
}

.info-highlights {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.info-highlight {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  background: var(--bg);
  border-radius: var(--radius-sm);
}

.info-highlight-icon {
  font-size: 22px;
  flex-shrink: 0;
  width: 36px;
  text-align: center;
}

.info-highlight-text {
  font-size: 13px;
  line-height: 1.4;
}

.info-highlight-text strong {
  font-size: 14px;
}

.info-highlight-text span {
  color: var(--text-secondary);
}

.info-cta-text {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
  text-align: center;
  padding: 8px 0;
}

.target-explain {
  font-size: 12px;
  color: var(--text-tertiary);
  line-height: 1.4;
  padding: 8px;
  background: var(--bg);
  border-radius: var(--radius-xs);
}

/* ============================================================================
   ADMIN
   ============================================================================ */

.admin-app {
  max-width: 960px;
  margin: 0 auto;
  padding: 20px;
}

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0 24px;
  flex-wrap: wrap;
  gap: 12px;
}

.admin-title {
  font-size: 24px;
  font-weight: 700;
}

.admin-actions {
  display: flex;
  gap: 8px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 32px;
}

.stat-card {
  background: var(--surface);
  border: 1px solid #2A2A2A;
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
}

.stat-value {
  font-size: 32px;
  font-weight: 700;
  color: var(--accent);
}

.stat-label {
  font-size: 12px;
  color: var(--text-tertiary);
  font-weight: 500;
  margin-top: 4px;
}

.admin-section {
  margin-bottom: 32px;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 8px;
}

.section-title {
  font-size: 18px;
  font-weight: 700;
}

.filter-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid #2A2A2A;
  background: var(--surface);
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-btn.active {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
}

.filter-btn:hover:not(.active) {
  background: var(--surface-hover);
}

/* Admin challenge list */
.challenge-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.challenge-item {
  background: var(--surface);
  border: 1px solid #2A2A2A;
  border-radius: var(--radius-sm);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.challenge-item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.challenge-item-text {
  flex: 1;
  font-size: 14px;
  line-height: 1.4;
}

.challenge-item-score {
  font-size: 24px;
  font-weight: 700;
  min-width: 60px;
  text-align: right;
}

.score-great { color: var(--accent); }
.score-good { color: #34D399; }
.score-mid { color: var(--warning); }
.score-bad { color: #F87171; }
.score-trash { color: var(--danger); }
.score-none { color: var(--text-tertiary); }

.rating-bar {
  display: flex;
  height: 6px;
  border-radius: 3px;
  overflow: hidden;
  background: var(--bg);
}

.rating-bar-segment {
  height: 100%;
  transition: width 0.3s;
}

.seg-trash { background: var(--danger); }
.seg-1 { background: #F87171; }
.seg-2 { background: #FBBF24; }
.seg-3 { background: #F59E0B; }
.seg-4 { background: #34D399; }
.seg-5 { background: var(--accent); }

.challenge-item-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.mini-badge {
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 600;
}

.votes-count {
  font-size: 11px;
  color: var(--text-tertiary);
}

.challenge-inactive {
  opacity: 0.5;
  border-style: dashed;
}

.challenge-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.action-btn {
  padding: 4px 12px;
  border-radius: var(--radius-xs);
  border: 1px solid #2A2A2A;
  background: var(--bg);
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.action-btn:hover {
  background: var(--surface-hover);
  color: var(--text);
}

.action-edit:hover { border-color: var(--accent); color: var(--accent); }
.action-archive:hover { border-color: var(--warning); color: var(--warning); }
.action-delete:hover { border-color: var(--danger); color: var(--danger); }
.action-restore:hover { border-color: var(--accent); color: var(--accent); }
.action-history:hover { border-color: #60A5FA; color: #60A5FA; }

.challenge-comments {
  margin-top: 4px;
  padding-top: 8px;
  border-top: 1px solid #2A2A2A;
}

.comment-item {
  font-size: 12px;
  color: var(--text-secondary);
  padding: 4px 0;
  line-height: 1.4;
}

.comment-item strong {
  color: var(--text);
}

/* Voters table */
.voters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 8px;
}

.voter-card {
  background: var(--surface);
  border: 1px solid #2A2A2A;
  border-radius: var(--radius-sm);
  padding: 14px;
}

.voter-name {
  font-weight: 600;
  font-size: 14px;
}

.voter-stats {
  font-size: 12px;
  color: var(--text-tertiary);
  margin-top: 4px;
}

.voter-progress {
  height: 3px;
  background: var(--bg);
  border-radius: 2px;
  margin-top: 8px;
  overflow: hidden;
}

.voter-progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
}

/* Sort toggle */
.sort-toggle {
  display: flex;
  gap: 4px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 3px;
}

.sort-btn {
  padding: 5px 12px;
  border: none;
  border-radius: var(--radius-xs);
  background: transparent;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.sort-btn.active {
  background: var(--surface);
  color: var(--text);
}

/* ============================================================================
   SCROLLBAR
   ============================================================================ */

::-webkit-scrollbar {
  width: 4px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 2px;
}

/* ============================================================================
   RESPONSIVE
   ============================================================================ */

@media (max-width: 480px) {
  .star-btn {
    width: 44px;
    height: 44px;
    font-size: 20px;
  }

  .trash-btn {
    width: 50px;
    height: 50px;
  }

  .card {
    padding: 20px;
  }
}
