/* ============================================================
   Home Tuition Platform - Main Stylesheet
   Palette: Blue (#1a56db), White, Light bg (#f5f8fc), Accent (#0ea5e9)
   ============================================================ */

:root {
  --primary: #1a56db;
  --primary-dark: #0f3fa8;
  --primary-light: #e8f0fe;
  --accent: #0ea5e9;
  --accent-light: #e0f2fe;
  --success: #16a34a;
  --warning: #d97706;
  --danger: #dc2626;
  --dark: #111827;
  --gray-600: #4b5563;
  --gray-500: #6b7280;
  --gray-400: #9ca3af;
  --gray-300: #d1d5db;
  --gray-200: #e5e7eb;
  --gray-100: #f3f4f6;
  --bg-light: #f5f8fc;
  --white: #ffffff;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 2px 8px rgba(17, 24, 39, 0.08);
  --shadow-lg: 0 10px 30px rgba(17, 24, 39, 0.12);
  --font: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

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

body {
  font-family: var(--font);
  color: var(--dark);
  background: var(--bg-light);
  line-height: 1.6;
  font-size: 16px;
}

a { text-decoration: none; color: var(--primary); }
ul { list-style: none; }
img { max-width: 100%; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  background: var(--gray-100);
  color: var(--dark);
}
.btn:hover { opacity: 0.92; transform: translateY(-1px); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: #0284c7; }
.btn-outline-primary { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline-primary:hover { background: var(--primary); color: #fff; }
.btn-success { background: var(--success); color: #fff; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-warning { background: var(--warning); color: #fff; }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-lg { padding: 15px 32px; font-size: 17px; }
.btn-block { width: 100%; }
.btn-outline { background: transparent; border: 1.5px solid var(--gray-300); color: var(--gray-600); }

/* ============ Header / Nav ============ */
.site-header {
  background: #fff;
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}
.topbar {
  background: var(--primary);
  color: #fff;
  font-size: 13px;
  padding: 6px 0;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; }
.topbar a { color: #fff; margin-left: 18px; }
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo {
  width: 42px; height: 42px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 20px;
}
.brand-name { font-size: 22px; font-weight: 800; color: var(--dark); }
.brand-name span { color: var(--primary); }
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a {
  color: var(--gray-600);
  font-weight: 500;
  font-size: 15px;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}
.nav-actions { display: flex; align-items: center; gap: 12px; }
.hamburger { display: none; background: none; border: none; font-size: 28px; cursor: pointer; color: var(--dark); }

/* ============ Hero ============ */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: #fff;
  padding: 80px 0 120px;
  text-align: center;
}
.hero h1 {
  font-size: 46px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}
.hero p {
  font-size: 19px;
  opacity: 0.95;
  max-width: 650px;
  margin: 0 auto 36px;
}
.search-box {
  background: #fff;
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-lg);
  max-width: 860px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr) auto;
  gap: 12px;
}
.search-box select, .search-box input {
  padding: 13px 14px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 15px;
  color: var(--dark);
  background: var(--bg-light);
  outline: none;
  width: 100%;
}
.search-box select:focus, .search-box input:focus { border-color: var(--primary); background: #fff; }
.search-box .btn { padding: 13px 30px; border-radius: var(--radius-sm); white-space: nowrap; }
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 60px;
  margin-top: 50px;
}
.hero-stat { text-align: center; }
.hero-stat .num { font-size: 36px; font-weight: 800; }
.hero-stat .label { opacity: 0.9; font-size: 14px; }

/* ============ Sections ============ */
.section { padding: 70px 0; }
.section-light { background: #fff; }
.section-heading {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 48px;
}
.section-heading h2 { font-size: 34px; font-weight: 800; margin-bottom: 12px; }
.section-heading p { color: var(--gray-500); font-size: 17px; }

/* ============ Cards ============ */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: all 0.25s ease;
  border: 1px solid var(--gray-100);
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }

.av-card { text-align: center; padding: 28px 22px; }
.av-card .avatar-wrap {
  width: 100px; height: 100px;
  border-radius: 50%;
  margin: 0 auto 16px;
  overflow: hidden;
  border: 3px solid var(--primary-light);
  background: var(--primary-light);
  display: flex; align-items: center; justify-content: center;
}
.av-card .avatar-wrap img { width: 100%; height: 100%; object-fit: cover; }
.av-card .avatar-wrap .noimg { font-size: 40px; color: var(--primary); font-weight: 700; }
.av-card h3 { font-size: 19px; margin-bottom: 4px; }
.av-card .title { color: var(--primary); font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.av-card .subjects {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 6px;
  margin: 12px 0;
}
.av-card .subjects span {
  background: var(--primary-light);
  color: var(--primary);
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 20px;
  font-weight: 500;
}
.av-card .meta { color: var(--gray-500); font-size: 13px; margin-bottom: 8px; }
.av-card .about {
  color: var(--gray-600);
  font-size: 14px;
  margin: 10px 0 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.av-card .card-actions { display: flex; gap: 10px; justify-content: center; }

/* Rating */
.rating .star {
  color: #f59e0b;
  font-size: 16px;
}
.rating .star.empty { color: var(--gray-300); }
.rating-text { color: var(--gray-500); font-size: 14px; }

/* ============ How it works ============ */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.step { text-align: center; padding: 30px 20px; }
.step .icon {
  width: 70px; height: 70px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 30px;
  margin: 0 auto 18px;
}
.step h4 { font-size: 18px; margin-bottom: 8px; }
.step p { color: var(--gray-500); font-size: 15px; }

/* ============ Features ============ */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.feature {
  background: #fff;
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--accent);
}
.feature .icon { font-size: 28px; margin-bottom: 12px; }
.feature h4 { font-size: 18px; margin-bottom: 8px; }
.feature p { color: var(--gray-500); font-size: 15px; }

/* ============ CTA ============ */
.cta {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  padding: 60px 0;
  text-align: center;
}
.cta h2 { font-size: 34px; margin-bottom: 12px; }
.cta p { font-size: 18px; opacity: 0.95; margin-bottom: 28px; }
.cta .btn { background: #fff; color: var(--primary); }

/* ============ Footer ============ */
.site-footer {
  background: var(--dark);
  color: var(--gray-400);
  padding: 60px 0 0;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
.footer-grid h4 { color: #fff; margin-bottom: 18px; font-size: 17px; }
.footer-grid a { color: var(--gray-400); display: block; margin-bottom: 10px; font-size: 14px; }
.footer-grid a:hover { color: #fff; }
.footer-about p { font-size: 14px; margin-bottom: 16px; }
.footer-bottom {
  border-top: 1px solid #1f2937;
  padding: 18px 0;
  font-size: 13px;
  text-align: center;
}

/* ============ Forms ============ */
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 14px; }
.form-control {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-family: var(--font);
  background: #fff;
  outline: none;
  transition: border 0.2s;
}
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-light); }
textarea.form-control { min-height: 100px; resize: vertical; }
select.form-control { appearance: auto; }
.form-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.form-row-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.form-inline-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.auth-card {
  max-width: 440px;
  margin: 60px auto;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 40px;
}
.auth-card h2 { text-align: center; margin-bottom: 6px; }
.auth-card .sub { text-align: center; color: var(--gray-500); margin-bottom: 28px; }

/* ============ Alerts ============ */
.alert {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  margin-bottom: 18px;
  font-size: 15px;
}
.alert-success { background: #dcfce7; color: #15803d; border: 1px solid #bbf7d0; }
.alert-danger { background: #fee2e2; color: #b91c1c; border: 1px solid #fecaca; }
.alert-warning { background: #fef3c7; color: #b45309; border: 1px solid #fde68a; }
.alert-info { background: var(--primary-light); color: var(--primary-dark); border: 1px solid #bfdbfe; }

/* ============ Breadcrumb & Page header ============ */
.page-hero {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  padding: 50px 0;
  text-align: center;
}
.page-hero h1 { font-size: 36px; margin-bottom: 8px; }
.page-hero p { opacity: 0.95; font-size: 17px; max-width: 600px; margin: 0 auto; }

/* ============ Filter bar ============ */
.filter-bar {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  margin-bottom: 30px;
}
.filter-bar form { display: grid; grid-template-columns: repeat(5, 1fr) auto; gap: 12px; align-items: end; }
.filter-bar .form-group { margin-bottom: 0; }

/* ============ Tables ============ */
.table-wrap { overflow-x: auto; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
table.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--gray-100); }
.table th { background: var(--gray-100); font-weight: 600; color: var(--gray-600); font-size: 13px; text-transform: uppercase; letter-spacing: 0.5px; }
.table tr:last-child td { border-bottom: none; }
.table tr:hover td { background: var(--bg-light); }

.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}
.badge-success { background: #dcfce7; color: #15803d; }
.badge-danger { background: #fee2e2; color: #b91c1c; }
.badge-warning { background: #fef3c7; color: #b45309; }
.badge-info { background: var(--primary-light); color: var(--primary-dark); }
.badge-gray { background: var(--gray-200); color: var(--gray-600); }

/* ============ Dashboard Layout ============ */
.dashboard { display: flex; min-height: 100vh; }
.sidebar {
  width: 250px;
  background: var(--dark);
  color: #fff;
  flex-shrink: 0;
  transition: all 0.3s;
}
.sidebar-brand {
  padding: 20px;
  display: flex; align-items: center; gap: 10px;
  border-bottom: 1px solid #1f2937;
}
.sidebar-brand .brand-name { color: #fff; font-size: 18px; }
.sidebar nav { padding: 14px 0; }
.sidebar nav .nav-group {
  padding: 10px 20px 6px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gray-500);
}
.sidebar nav a {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 20px;
  color: var(--gray-400);
  font-size: 14px;
  border-left: 3px solid transparent;
  transition: all 0.2s;
}
.sidebar nav a:hover, .sidebar nav a.active {
  background: rgba(255,255,255,0.06);
  color: #fff;
  border-left-color: var(--accent);
}
.sidebar nav a .icon { font-size: 17px; width: 20px; text-align: center; }
.main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.dash-topbar {
  background: #fff;
  box-shadow: var(--shadow);
  padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.dash-topbar h3 { font-size: 18px; }
.user-chip { display: flex; align-items: center; gap: 10px; }
.user-chip .avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.user-chip .avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.dash-content { padding: 26px; flex: 1; }

/* Stat cards */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 26px; }
.stat-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
  display: flex; align-items: center; gap: 16px;
}
.stat-card .stat-icon {
  width: 54px; height: 54px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}
.stat-card .stat-info .num { font-size: 26px; font-weight: 800; }
.stat-card .stat-info .label { color: var(--gray-500); font-size: 13px; }
.icon-blue { background: var(--primary-light); color: var(--primary); }
.icon-green { background: #dcfce7; color: var(--success); }
.icon-orange { background: #fef3c7; color: var(--warning); }
.icon-red { background: #fee2e2; color: var(--danger); }
.icon-cyan { background: var(--accent-light); color: var(--accent); }
.icon-purple { background: #ede9fe; color: #7c3aed; }

.dash-grid { display: grid; gap: 24px; }
.dash-grid-2 { grid-template-columns: repeat(2, 1fr); }
.dash-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
}
.dash-card h4 { margin-bottom: 16px; font-size: 17px; }

/* ============ Detail rows ============ */
.detail-list { display: grid; gap: 12px; }
.detail-row { display: flex; justify-content: space-between; padding-bottom: 10px; border-bottom: 1px solid var(--gray-100); font-size: 15px; }
.detail-row .k { color: var(--gray-500); font-weight: 500; }
.detail-row .v { font-weight: 600; }

/* ============ Profile header ============ */
.profile-header {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px;
  display: flex; gap: 26px;
  align-items: center;
  margin-bottom: 24px;
}
.profile-avatar {
  width: 130px; height: 130px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--primary-light);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  border: 3px solid var(--primary);
}
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-avatar .noimg { font-size: 52px; color: var(--primary); font-weight: 700; }
.profile-info h2 { font-size: 26px; }
.profile-info .title { color: var(--primary); font-weight: 600; margin-bottom: 6px; }
.profile-info .meta { color: var(--gray-500); display: flex; gap: 18px; flex-wrap: wrap; font-size: 14px; }
.profile-actions { margin-left: auto; display: flex; gap: 12px; flex-direction: column; }

/* ============ FAQ ============ */
.faq-item {
  background: #fff;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-q {
  padding: 18px 20px;
  cursor: pointer;
  font-weight: 600;
  display: flex; justify-content: space-between; align-items: center;
  background: #fff;
}
.faq-q .arrow { transition: transform 0.3s; color: var(--primary); }
.faq-item.open .faq-q .arrow { transform: rotate(180deg); }
.faq-a { padding: 0 20px; max-height: 0; overflow: hidden; transition: max-height 0.3s ease; color: var(--gray-600); }
.faq-item.open .faq-a { max-height: 300px; padding-bottom: 18px; }

/* ============ Reviews ============ */
.review-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  margin-bottom: 14px;
}
.review-card .review-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.review-card .reviewer { font-weight: 600; }
.review-card .review-date { color: var(--gray-400); font-size: 13px; }
.review-card .review-text { color: var(--gray-600); font-size: 15px; }

/* ============ Modal ============ */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 999;
  align-items: center; justify-content: center;
  padding: 20px;
}
.modal-overlay.active { display: flex; }
.modal {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 28px;
}
.modal h3 { margin-bottom: 18px; }
.modal-close { float: right; background: none; border: none; font-size: 24px; cursor: pointer; color: var(--gray-500); }

/* ============ Tabs ============ */
.tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--gray-200); margin-bottom: 24px; }
.tab {
  padding: 12px 20px;
  cursor: pointer;
  font-weight: 600;
  color: var(--gray-500);
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  font-size: 15px;
}
.tab.active { color: var(--primary); border-bottom-color: var(--primary); }

/* ============ Utility ============ */
.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.flex { display: flex; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.gap-2 { gap: 16px; }
.text-muted { color: var(--gray-500); }
.text-danger { color: var(--danger); }
.text-success { color: var(--success); }
.text-primary { color: var(--primary); }
.font-bold { font-weight: 700; }

/* ============ Mobile ============ */
@media (max-width: 992px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .filter-bar form { grid-template-columns: repeat(3, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .dash-grid-2 { grid-template-columns: 1fr; }
  .search-box { grid-template-columns: repeat(2, 1fr); }
  .form-row-3 { grid-template-columns: repeat(2, 1fr); }
  .sidebar { margin-left: -250px; position: fixed; height: 100%; z-index: 200; }
  .sidebar.open { margin-left: 0; }
  .main { margin-left: 0; }
}

@media (max-width: 600px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .filter-bar form { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .form-inline-2 { grid-template-columns: 1fr; }
  .search-box { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-links.open { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: #fff; padding: 20px; box-shadow: var(--shadow-lg); align-items: flex-start; }
  .hamburger { display: block; }
  .hero h1 { font-size: 32px; }
  .hero p { font-size: 16px; }
  .hero-stats { gap: 24px; flex-wrap: wrap; }
  .profile-header { flex-direction: column; text-align: center; }
  .profile-actions { margin-left: 0; flex-direction: row; flex-wrap: wrap; justify-content: center; }
  .profile-info .meta { justify-content: center; }
  .form-row-3 { grid-template-columns: 1fr; }
}

/* Star rating input */
.star-input { display: flex; gap: 6px; flex-direction: row-reverse; justify-content: flex-start; }
.star-input input { display: none; }
.star-input label { font-size: 32px; color: var(--gray-300); cursor: pointer; transition: color 0.2s; }
.star-input label:hover, .star-input label:hover ~ label { color: #f59e0b; }
.star-input input:checked ~ label { color: #f59e0b; }

.star-display { color: #f59e0b; font-size: 18px; }

.empty-state {
  text-align: center;
  padding: 50px 20px;
  color: var(--gray-500);
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.empty-state .icon { font-size: 48px; margin-bottom: 12px; }

.loading { text-align: center; padding: 30px; color: var(--gray-500); }
.spinner {
  display: inline-block;
  width: 30px; height: 30px;
  border: 3px solid var(--gray-200);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.chart-box { height: 260px; position: relative; }
