:root {
  --bg: #F7F4F0;
  --card: #FFFFFF;
  --primary: #111111;
  --accent: #C8A070;
  --border: #E8E2D8;
  --grey: #888888;
  --grey-light: #B5AEA3;
  --success: #4CAF50;
  --error: #E53935;
  --shadow-sm: 0 2px 8px rgba(17, 17, 17, 0.04);
  --shadow-md: 0 4px 16px rgba(17, 17, 17, 0.06);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--primary);
  min-height: 100vh;
  display: flex;
  -webkit-font-smoothing: antialiased;
}

/* ─── SIDEBAR ──────────────────────────────────────── */
.sidebar {
  width: 240px;
  background: var(--card);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 0;
  position: fixed;
  height: 100vh;
  z-index: 10;
}

.sidebar-logo {
  padding: 0 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 90px;
}

.sidebar-logo img {
  width: 150px;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  margin: -18px 0;
}

.brand-block { line-height: 1.15; }
.brand {
  color: var(--primary);
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 3px;
}
.brand-sub {
  color: var(--grey-light);
  font-size: 10px;
  letter-spacing: 2.5px;
  margin-top: 5px;
  font-weight: 700;
}

.nav {
  margin-top: 12px;
  flex: 1;
  overflow-y: auto;
}
.nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 22px;
  color: var(--grey);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.15s;
  border-left: 2px solid transparent;
}
.nav a:hover {
  color: var(--primary);
  background: var(--bg);
}
.nav a.active {
  color: var(--primary);
  background: var(--bg);
  border-left-color: var(--accent);
  font-weight: 700;
}
.nav a .icon {
  font-size: 15px;
  width: 18px;
  text-align: center;
}

/* Sidebar nav item badge (canlı bildirim sayacı) */
.nav-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  margin-left: auto;
  background: #DC2626;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  border-radius: 10px;
  letter-spacing: 0;
  box-shadow: 0 2px 6px rgba(220, 38, 38, 0.3);
  animation: badgePulse 2s ease-in-out infinite;
}
.nav a { display: flex; align-items: center; }
@keyframes badgePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}
@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.kor-support-wrap {
  padding: 12px 18px 6px;
}
.kor-support {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: rgba(200, 160, 112, 0.10);
  border: 1px solid rgba(200, 160, 112, 0.40);
  border-radius: 10px;
  color: var(--primary);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  transition: all 0.2s;
}
.kor-support:hover { background: rgba(200, 160, 112, 0.20); }
.kor-support.active {
  background: rgba(200, 160, 112, 0.25);
  border-color: var(--accent);
}
.kor-support .kor-logo {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: var(--accent);
  color: #fff;
  font-weight: 900;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sidebar-footer {
  padding: 16px 22px;
  border-top: 1px solid var(--border);
}
.btn-logout {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--grey);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  width: 100%;
  transition: all 0.15s;
}
.btn-logout:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* ─── MOBILE HEADER (sadece mobilde görünür) ───────── */
.mobile-top { display: none; }
.mobile-top-logo { height: 32px; width: auto; object-fit: contain; }
.mobile-menu-btn {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--primary);
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  padding: 4px 12px;
  line-height: 1;
}
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 9;
  backdrop-filter: blur(2px);
}
.sidebar-overlay.open { display: block; }

/* ─── MAIN ─────────────────────────────────────────── */
.main {
  margin-left: 240px;
  flex: 1;
  padding: 32px 40px;
  max-width: calc(100vw - 240px);
}

/* ─── MOBİL RESPONSIVE ─────────────────────────────── */
@media (max-width: 768px) {
  body { -webkit-font-smoothing: antialiased; }

  /* Mobile top bar */
  .mobile-top {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--card);
    border-bottom: 1px solid var(--border);
    padding: 12px 16px;
    padding-top: calc(12px + env(safe-area-inset-top));
    align-items: center;
    gap: 14px;
    z-index: 11;
    height: auto;
  }
  .mobile-top-logo { display: none; } /* küçük logo gizli — drawer'da büyüğü var */

  /* Sidebar slide-out drawer */
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    width: 280px;
    z-index: 12;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
  }
  .sidebar.open { transform: translateX(0); }

  /* Main content full-width */
  .main {
    margin-left: 0;
    max-width: 100vw;
    padding: calc(64px + env(safe-area-inset-top)) 16px 40px;
  }

  /* Sayfa başlığını sıkıştır + ortala */
  .page-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
    margin-bottom: 20px;
  }
  .page-title { font-size: 20px; }
  .page-sub { font-size: 12px; }

  /* Stat grid */
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .stat-card { padding: 14px 14px; }
  .stat-value { font-size: 22px; }
  .stat-label { font-size: 9px; }

  /* Cards spacing */
  .card { padding: 16px; }

  /* Modals: mobilde tam ekrana yakın */
  .modal { width: 94vw !important; max-width: 94vw; padding: 20px; max-height: 86vh; }
  .modal-title { font-size: 16px; }
  .modal-actions { flex-direction: column-reverse; gap: 8px; }
  .modal-actions button { width: 100%; padding: 12px; }

  /* Tablolar mobilde yatay scroll */
  .table-wrap { overflow-x: auto; }
  table { min-width: 600px; }

  /* Tabs */
  .tabs { overflow-x: auto; white-space: nowrap; }
  .tab { font-size: 11px; padding: 8px 14px; }

  /* Reports grid → tek sütun */
  .reports-grid, .reports-grid-2 { grid-template-columns: 1fr; }

  /* Day chips wrap better */
  .day-chip {
    padding: 6px 10px;
    font-size: 10px;
    letter-spacing: 0.5px;
    border-radius: 8px;
  }

  /* Form alanları daha kompakt */
  .input, .select, .textarea {
    font-size: 14px;
    padding: 9px 12px;
  }
  input[type="time"], input[type="date"], input[type="number"] {
    -webkit-appearance: none;
    appearance: none;
    min-height: 38px;
  }
  .label {
    font-size: 9px;
    letter-spacing: 1px;
    margin-bottom: 5px;
  }
  .field { margin-bottom: 12px; }

  /* Card padding'ini sıkıştır */
  .card h2 { font-size: 13px !important; margin-bottom: 14px !important; }

  /* Page-specific: filtre barı vs */
  .table-row.table-header { display: none; } /* mobilde header satırı saklı */
}

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}
.page-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--primary);
}
.page-sub {
  color: var(--grey);
  font-size: 13px;
  margin-top: 4px;
}

/* ─── BUTTONS ──────────────────────────────────────── */
.btn-primary {
  background: var(--primary);
  border: none;
  border-radius: 10px;
  color: white;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 11px 22px;
  cursor: pointer;
  transition: opacity 0.15s;
}
.btn-primary:hover { opacity: 0.85; }
.btn-primary:disabled { opacity: 0.4; cursor: not-allowed; }

.btn-accent {
  background: var(--accent);
  border: none;
  border-radius: 10px;
  color: white;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 11px 22px;
  cursor: pointer;
  transition: opacity 0.15s;
}
.btn-accent:hover { opacity: 0.9; }

.btn-ghost {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  padding: 9px 16px;
  cursor: pointer;
  transition: all 0.15s;
}
.btn-ghost:hover { background: var(--bg); }

.btn-danger {
  background: var(--error);
  border: none;
  border-radius: 10px;
  color: white;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 14px;
  cursor: pointer;
}

/* ─── CARDS / TABLES ───────────────────────────────── */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 28px;
}
.stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 20px;
  position: relative;
  overflow: hidden;
  transition: all 0.15s;
  box-shadow: var(--shadow-sm);
}
.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--accent);
}
.stat-card:hover { box-shadow: var(--shadow-md); }
.stat-value {
  font-size: 28px;
  font-weight: 800;
  color: var(--primary);
}
.stat-label {
  font-size: 10px;
  color: var(--grey);
  letter-spacing: 1.5px;
  margin-top: 4px;
  font-weight: 600;
}

.table-wrap {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
table { width: 100%; border-collapse: collapse; font-size: 13px; }
thead th {
  padding: 14px 20px;
  text-align: left;
  color: var(--grey);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
tbody td {
  padding: 14px 20px;
  color: var(--primary);
  border-bottom: 1px solid var(--border);
}
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: var(--bg); }

/* ─── FORM CONTROLS ────────────────────────────────── */
.input, .select, .textarea {
  width: 100%;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 11px 14px;
  color: var(--primary);
  font-size: 13px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s;
  box-sizing: border-box;
  line-height: 1.4;
}
.input:focus, .select:focus, .textarea:focus { border-color: var(--primary); }
.input::placeholder { color: var(--grey-light); }
.textarea { resize: vertical; min-height: 80px; }

/* iOS tarzı toggle switch */
.toggle {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  cursor: pointer;
  flex-shrink: 0;
}
.toggle input {
  opacity: 0;
  width: 0;
  height: 0;
  margin: 0;
  position: absolute;
}
.toggle .slider {
  position: absolute;
  inset: 0;
  background: var(--border);
  border-radius: 24px;
  transition: background 0.2s;
}
.toggle .slider::before {
  content: '';
  position: absolute;
  height: 18px;
  width: 18px;
  left: 3px;
  top: 3px;
  background: #FFFFFF;
  border-radius: 50%;
  transition: transform 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.toggle input:checked + .slider {
  background: var(--accent);
}
.toggle input:checked + .slider::before {
  transform: translateX(20px);
}
.toggle:hover .slider { opacity: 0.9; }

/* select için native stili kaldır + özel dropdown oku */
.select, select.input {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%23888888' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px 8px;
  cursor: pointer;
}
.select option, select.input option {
  font-size: 13px;
  color: var(--primary);
  background: var(--card);
}

.label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--grey);
  margin-bottom: 6px;
}

.field { margin-bottom: 16px; }

/* ─── BADGES ───────────────────────────────────────── */
.badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 4px 10px;
  border-radius: 20px;
}
.badge.success { background: rgba(76, 175, 80, 0.12); color: #2e7d32; }
.badge.error   { background: rgba(229, 57, 53, 0.12); color: #c62828; }
.badge.accent  { background: rgba(200, 160, 112, 0.18); color: #8d6a3f; }
.badge.grey    { background: var(--bg); color: var(--grey); border: 1px solid var(--border); }

/* ─── MODAL ────────────────────────────────────────── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(17, 17, 17, 0.45);
  z-index: 100;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--card);
  border-radius: 18px;
  padding: 28px;
  width: 480px;
  max-width: 90vw;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.18);
}
.modal-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 6px;
}
.modal-sub {
  font-size: 12px;
  color: var(--grey);
  margin-bottom: 20px;
}
.modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 20px;
}

/* ─── EMPTY STATE ──────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--grey);
}
.empty-state .icon { font-size: 40px; margin-bottom: 12px; opacity: 0.3; }
.empty-state .title { font-size: 15px; font-weight: 600; color: var(--primary); margin-bottom: 6px; }
.empty-state .sub { font-size: 13px; }

/* ─── TOAST ────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--primary);
  color: white;
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  z-index: 200;
  animation: slideUp 0.25s;
}
.toast.error { background: var(--error); }
.toast.success { background: var(--success); }
@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* ─── LOADING ──────────────────────────────────────── */
.loader {
  width: 24px;
  height: 24px;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin: 40px auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── LOGIN SAYFASI ────────────────────────────────── */
.login-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px;
  margin-left: 0 !important;
}
.login-card {
  background: var(--card);
  border-radius: 22px;
  border: 1px solid var(--border);
  box-shadow: 0 20px 60px rgba(0,0,0,0.08);
  padding: 40px;
  width: 100%;
  max-width: 400px;
}
.login-logo {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  border-radius: 18px;
  border: 1px solid var(--border);
  padding: 8px;
  display: block;
  object-fit: contain;
}

/* ─── DAY CHIP (gün seçici) ────────────────────────── */
.day-chip {
  display: inline-block;
  padding: 7px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  user-select: none;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--grey);
  background: var(--card);
  transition: all 0.15s;
}
.day-chip:hover { border-color: var(--primary); color: var(--primary); }
.day-chip.selected {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

/* ─── SLOT CHIP (saatler) ──────────────────────────── */
.slot-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  margin: 3px 3px 3px 0;
  border: 1px solid var(--accent);
  background: rgba(200, 160, 112, 0.08);
  color: #8d6a3f;
  cursor: default;
  user-select: none;
}
.slot-chip.full {
  background: var(--bg);
  color: var(--grey);
  text-decoration: line-through;
  border-color: var(--border);
}
.slot-chip .x {
  cursor: pointer;
  font-size: 10px;
  color: var(--grey-light);
  margin-left: 4px;
  padding: 0 3px;
  border-radius: 4px;
  transition: all 0.15s;
}
.slot-chip .x:hover { color: white; background: var(--error); }

/* ─── TABS ──────────────────────────────────────────── */
.tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 18px;
}
.tab {
  padding: 10px 18px;
  cursor: pointer;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 1.5px;
  color: var(--grey);
  border-bottom: 2px solid transparent;
  transition: all 0.15s;
  margin-bottom: -1px;
}
.tab:hover { color: var(--primary); }
.tab.active {
  color: var(--primary);
  border-bottom-color: var(--accent);
}

/* ─── DAY-GROUP (availability listesi) ─────────────── */
.day-group {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 20px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
}
.day-group-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.day-group-title { font-weight: 800; font-size: 14px; color: var(--primary); }
.day-group-sub { font-size: 10px; color: var(--grey); margin-top: 4px; letter-spacing: 1.5px; font-weight: 700; }
.day-group-meta { font-size: 10px; color: var(--grey); font-weight: 700; letter-spacing: 1.5px; }

/* ─── PREVIEW BOX (modal içi özet) ─────────────────── */
.preview-box {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  margin-top: 16px;
  font-size: 12px;
  color: var(--primary);
  line-height: 1.5;
}
.preview-box .count {
  font-weight: 800;
  color: var(--accent);
  font-size: 15px;
}
.preview-box .muted { color: var(--grey); font-size: 11px; }

/* Modal genişletme — width override gerekli */
.modal.wide { width: 760px; max-width: 92vw; }
.modal .table-wrap { overflow-x: auto; }

/* ─── REPORTS / CHARTS ─────────────────────────────── */
.reports-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.reports-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
@media (max-width: 900px) {
  .reports-grid, .reports-grid-2 { grid-template-columns: 1fr; }
}

.card-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 18px;
}
.card-title {
  font-size: 12px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 1.5px;
}
.card-sub {
  font-size: 11px;
  color: var(--grey);
  margin-top: 4px;
}

.kpi-sub {
  font-size: 11px;
  color: var(--grey);
  margin-top: 4px;
}
.kpi-sub .up   { color: var(--success); font-weight: 700; }
.kpi-sub .down { color: var(--error);   font-weight: 700; }

/* Bar chart */
.bars {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  height: 180px;
  padding: 8px 4px 0;
}
.bar-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
}
.bar-wrap {
  flex: 1;
  width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.bar {
  width: 70%;
  background: linear-gradient(to top, rgba(200,160,112,0.25), rgba(200,160,112,0.6));
  border-radius: 6px 6px 0 0;
  position: relative;
  min-height: 4px;
  transition: background 0.2s;
}
.bar:hover { background: linear-gradient(to top, rgba(200,160,112,0.4), rgba(200,160,112,0.85)); }
.bar.green { background: linear-gradient(to top, rgba(76,175,80,0.25), rgba(76,175,80,0.6)); }
.bar.green:hover { background: linear-gradient(to top, rgba(76,175,80,0.4), rgba(76,175,80,0.85)); }
.bar-value {
  position: absolute;
  top: -22px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  color: var(--primary);
  font-weight: 700;
  white-space: nowrap;
}
.bar-label {
  font-size: 10px;
  color: var(--grey);
  margin-top: 8px;
  letter-spacing: 0.5px;
  font-weight: 600;
}

/* Donut */
.donut-wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 8px 0;
}
.donut { width: 130px; height: 130px; flex-shrink: 0; }
.donut-legend { flex: 1; }
.donut-legend-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 0;
  border-bottom: 1px solid var(--border);
}
.donut-legend-row:last-child { border-bottom: none; }
.donut-legend-left { display: flex; align-items: center; gap: 10px; }
.dot { width: 11px; height: 11px; border-radius: 50%; }
.donut-legend-label { font-size: 12px; color: var(--grey); font-weight: 600; }
.donut-legend-value { font-size: 13px; color: var(--primary); font-weight: 700; }
.donut-legend-pct { font-size: 10px; color: var(--grey-light); margin-left: 4px; }

/* Rank list */
.rank-list { display: flex; flex-direction: column; gap: 8px; }
.rank-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.rank-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--border);
  color: var(--grey);
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.rank-item.top1 .rank-num { background: #facc15; color: #333; }
.rank-item.top2 .rank-num { background: #d4d4d8; color: #333; }
.rank-item.top3 .rank-num { background: #b45309; color: #fff; }
.rank-name { flex: 1; font-size: 13px; font-weight: 600; color: var(--primary); }
.rank-value { font-size: 12px; color: var(--grey); font-weight: 700; }

.big-pct {
  font-size: 56px;
  font-weight: 900;
  color: var(--primary);
  letter-spacing: -2px;
  text-align: center;
  margin: 18px 0 8px;
}
.big-pct-sub {
  text-align: center;
  font-size: 12px;
  color: var(--grey);
  line-height: 1.6;
}
