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

:root {
  --bg: #f8fafc;
  --bg-card: #ffffff;
  --bg-header: #0f172a;
  --bg-nav: #1e293b;
  --text: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-light: rgba(37, 99, 235, 0.08);
  --accent: #f59e0b;
  --accent-hover: #d97706;
  --success: #16a34a;
  --danger: #dc2626;
  --whatsapp: #25d366;
  --telegram: #0088cc;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
  --radius: 0.5rem;
  --radius-lg: 0.75rem;
}

.dark {
  --bg: #0f172a;
  --bg-card: #1e293b;
  --bg-header: #020617;
  --bg-nav: #0f172a;
  --text: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --border: #334155;
  --border-light: #1e293b;
  --primary: #3b82f6;
  --primary-hover: #2563eb;
  --primary-light: rgba(59, 130, 246, 0.12);
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.2);
  --shadow: 0 1px 3px rgba(0,0,0,0.3), 0 1px 2px rgba(0,0,0,0.2);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.3), 0 2px 4px -2px rgba(0,0,0,0.2);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.3), 0 4px 6px -4px rgba(0,0,0,0.2);
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background-color 0.3s, color 0.3s;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

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

main {
  flex: 1;
}

/* ==================== HEADER ==================== */
.header {
  background: var(--bg-header);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem 1.5rem;
  max-width: 1280px;
  margin: 0 auto;
  gap: 0.75rem;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.header-logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--primary), #7c3aed);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
}

.header-logo h1 {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.025em;
}

.header-logo h1 .logo-toko {
  color: #f59e0b;
}

.header-logo h1 .logo-judi {
  color: #ffffff;
}

.header-logo h1 .logo-prediksi {
  color: #94a3b8;
  font-weight: 500;
  font-size: 0.85rem;
  margin-left: 0.25rem;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-contact {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  font-size: 0.8125rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-contact:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.btn-wa {
  background: var(--whatsapp);
  color: #fff;
}

.btn-tg {
  background: var(--telegram);
  color: #fff;
}

.btn-icon {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  color: #e2e8f0;
  padding: 0;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--radius);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  font-size: 1.1rem;
}

.btn-icon:hover {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.2);
}

.btn-hamburger {
  display: none;
}

/* ==================== NAVIGATION ==================== */
.nav-desktop {
  background: var(--bg-nav);
  border-top: 1px solid rgba(255,255,255,0.06);
}

.nav-desktop ul {
  display: flex;
  list-style: none;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 0.5rem;
}

.nav-desktop li a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.125rem;
  color: #94a3b8;
  font-size: 0.8125rem;
  font-weight: 500;
  transition: all 0.2s ease;
  border-bottom: 2px solid transparent;
  position: relative;
}

.nav-desktop li a .nav-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  opacity: 0.7;
}

.nav-desktop li a:hover {
  color: #e2e8f0;
  background: rgba(255,255,255,0.04);
}

.nav-desktop li a.active {
  color: #f1f5f9;
  border-bottom-color: var(--primary);
  background: rgba(255,255,255,0.04);
}

.nav-mobile {
  display: none;
  background: var(--bg-nav);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 0.5rem 0;
}

.nav-mobile.open {
  display: block;
}

.nav-mobile ul {
  list-style: none;
}

.nav-mobile li a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1.5rem;
  color: #94a3b8;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.nav-mobile li a .nav-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  opacity: 0.7;
}

.nav-mobile li a:hover,
.nav-mobile li a.active {
  color: #f1f5f9;
  background: rgba(255,255,255,0.06);
}

.nav-mobile li a.active {
  border-left: 3px solid var(--primary);
}

@media (max-width: 768px) {
  .btn-hamburger {
    display: flex;
  }
  .nav-desktop {
    display: none;
  }
  .btn-contact span {
    display: none;
  }
  .btn-contact {
    padding: 0;
    width: 2.25rem;
    height: 2.25rem;
    justify-content: center;
  }
  .header-top {
    padding: 0.75rem 1rem;
  }
}

/* ==================== ANNOUNCEMENT ==================== */
.announcement {
  background: linear-gradient(135deg, var(--primary), #7c3aed);
  color: #fff;
  text-align: center;
  padding: 0.625rem 1.5rem;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

/* ==================== CONTAINER ==================== */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }
}

/* ==================== BANNER ==================== */
.hero-banner {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #0f172a, #1e293b);
}

.hero-banner img {
  width: 100%;
  max-width: 1280px;
  display: block;
  margin: 0 auto;
  height: auto;
}

/* ==================== SECTION ==================== */
.section {
  padding: 2rem 0;
}

.section-header {
  margin-bottom: 1.5rem;
}

.section-header h2 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 0.375rem;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

/* ==================== CARDS ==================== */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.card:hover {
  box-shadow: var(--shadow);
}

.card-header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  font-weight: 600;
  font-size: 0.9375rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.card-header .card-icon {
  color: var(--primary);
}

.card-body {
  padding: 1.25rem;
}

/* ==================== PREDICTION TABLE ==================== */
.table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.prediction-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem;
}

.prediction-table thead {
  background: linear-gradient(135deg, var(--primary), #4f46e5);
}

.prediction-table th {
  color: #fff;
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.prediction-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.prediction-table tbody tr {
  transition: background 0.15s ease;
}

.prediction-table tbody tr:last-child td {
  border-bottom: none;
}

.prediction-table tbody tr:hover {
  background: var(--primary-light);
}

.match-teams {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.match-teams .team-home,
.match-teams .team-away {
  font-weight: 600;
  font-size: 0.8125rem;
}

.match-teams .vs-text {
  color: var(--text-muted);
  font-weight: 400;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.match-time {
  color: var(--text-muted);
  font-size: 0.75rem;
}

.league-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.625rem;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 9999px;
  font-size: 0.6875rem;
  font-weight: 600;
  white-space: nowrap;
  border: 1px solid rgba(37, 99, 235, 0.15);
}

.dark .league-badge {
  border-color: rgba(59, 130, 246, 0.2);
}

.score-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.5rem;
  background: linear-gradient(135deg, var(--accent), #d97706);
  color: #fff;
  border-radius: var(--radius);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.025em;
}

/* ==================== DATE NAVIGATOR ==================== */
.date-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1.25rem 0;
}

.date-nav .btn {
  font-size: 0.8125rem;
}

.date-nav .date-display {
  font-size: 1rem;
  font-weight: 700;
  min-width: 180px;
  text-align: center;
  padding: 0.5rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

/* ==================== BUTTONS ==================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5625rem 1.25rem;
  border-radius: var(--radius);
  font-size: 0.8125rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  text-decoration: none;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), #4f46e5);
  color: #fff;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}

.btn-primary:hover {
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.35);
}

.btn-success {
  background: linear-gradient(135deg, var(--success), #059669);
  color: #fff;
}

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

.btn-outline {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-lg {
  padding: 0.75rem 2rem;
  font-size: 0.9375rem;
  border-radius: var(--radius-lg);
}

/* ==================== PAGE TITLE ==================== */
.page-title {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 0.25rem;
}

.page-subtitle {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  margin-bottom: 1.75rem;
}

/* ==================== INFO CARDS ==================== */
.info-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.info-card:hover {
  box-shadow: var(--shadow);
}

.info-card h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.info-card h3 .icon {
  color: var(--primary);
  flex-shrink: 0;
}

.info-card p, .info-card li {
  color: var(--text-secondary);
  line-height: 1.75;
  font-size: 0.875rem;
}

.info-card ol, .info-card ul {
  padding-left: 1.5rem;
}

.info-card li {
  margin-bottom: 0.5rem;
}

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

/* ==================== STAT CARDS (Homepage) ==================== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.stat-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.stat-card .stat-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 0.75rem;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-card .stat-icon.blue {
  background: rgba(37, 99, 235, 0.1);
  color: var(--primary);
}

.stat-card .stat-icon.green {
  background: rgba(22, 163, 74, 0.1);
  color: var(--success);
}

.stat-card .stat-icon.amber {
  background: rgba(245, 158, 11, 0.1);
  color: var(--accent);
}

.stat-card h3 {
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.stat-card p {
  color: var(--text-secondary);
  font-size: 0.75rem;
}

@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
}

/* ==================== PROMO CARDS ==================== */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

@media (max-width: 768px) {
  .grid-2, .grid-3 {
    grid-template-columns: 1fr;
  }
}

.promo-card {
  background: linear-gradient(135deg, var(--primary), #7c3aed);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.2);
  position: relative;
  overflow: hidden;
}

.promo-card::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -20%;
  width: 200px;
  height: 200px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
}

.promo-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.3);
}

.promo-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  position: relative;
}

.promo-card p {
  font-size: 0.8125rem;
  opacity: 0.9;
  line-height: 1.7;
  position: relative;
}

/* ==================== FEATURE CARDS ==================== */
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.feature-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.feature-card .feature-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-light);
  color: var(--primary);
}

.feature-card h4 {
  font-size: 0.9375rem;
  font-weight: 700;
  margin-bottom: 0.375rem;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.8125rem;
  line-height: 1.6;
}

/* ==================== CTA SECTION ==================== */
.cta-section {
  background: linear-gradient(135deg, var(--primary), #7c3aed);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  text-align: center;
  color: #fff;
  margin: 1.5rem 0;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -25%;
  width: 400px;
  height: 400px;
  background: rgba(255,255,255,0.03);
  border-radius: 50%;
}

.cta-section h3 {
  font-size: 1.375rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  position: relative;
}

.cta-section p {
  opacity: 0.9;
  font-size: 0.875rem;
  margin-bottom: 1.25rem;
  position: relative;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  position: relative;
}

.cta-buttons .btn-contact {
  padding: 0.625rem 1.5rem;
  font-size: 0.875rem;
  border-radius: var(--radius);
}

/* ==================== FILTER ==================== */
.filter-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.filter-row label {
  font-size: 0.8125rem;
  font-weight: 600;
}

.filter-row select {
  padding: 0.5rem 2rem 0.5rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  color: var(--text);
  font-size: 0.8125rem;
  font-family: inherit;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
}

.filter-row select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* ==================== STATUS BADGES ==================== */
.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.1875rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.status-win {
  background: rgba(22, 163, 74, 0.1);
  color: var(--success);
  border: 1px solid rgba(22, 163, 74, 0.2);
}

.status-lose {
  background: rgba(220, 38, 38, 0.1);
  color: var(--danger);
  border: 1px solid rgba(220, 38, 38, 0.2);
}

.status-draw {
  background: rgba(245, 158, 11, 0.1);
  color: var(--accent);
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.status-pending {
  background: rgba(148, 163, 184, 0.1);
  color: var(--text-muted);
  border: 1px solid rgba(148, 163, 184, 0.2);
}

/* ==================== EMPTY STATE ==================== */
.empty-state {
  text-align: center;
  padding: 4rem 1.5rem;
  color: var(--text-muted);
}

.empty-state .empty-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  opacity: 0.6;
}

.empty-state h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.375rem;
}

.empty-state p {
  font-size: 0.8125rem;
  max-width: 320px;
  margin: 0 auto;
}

/* ==================== FOOTER ==================== */
.footer {
  background: var(--bg-header);
  color: #94a3b8;
  padding: 2rem 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.06);
  margin-top: auto;
}

.footer-content {
  max-width: 1280px;
  margin: 0 auto;
  text-align: center;
}

.footer-content p {
  font-size: 0.8125rem;
  margin-bottom: 0.5rem;
}

.footer-content .footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.footer-content .footer-links a {
  color: #64748b;
  font-size: 0.8125rem;
  transition: color 0.2s;
}

.footer-content .footer-links a:hover {
  color: #e2e8f0;
}

.footer-content .footer-copy {
  color: #475569;
  font-size: 0.75rem;
}

/* ==================== FORMS ==================== */
.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 0.375rem;
  color: var(--text);
}

.form-control {
  width: 100%;
  padding: 0.5625rem 0.875rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.8125rem;
  font-family: inherit;
  background: var(--bg);
  color: var(--text);
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* ==================== LOGIN PAGE ==================== */
.login-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 200px);
  padding: 2rem 1rem;
}

.login-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow-lg);
}

.login-card h2 {
  text-align: center;
  font-size: 1.375rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.login-card .login-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8125rem;
  margin-bottom: 1.75rem;
}

/* ==================== MODAL ==================== */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

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

.modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  animation: modalIn 0.2s ease;
}

@keyframes modalIn {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.modal h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

/* ==================== TOAST ==================== */
.toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  padding: 0.875rem 1.5rem;
  border-radius: var(--radius-lg);
  font-size: 0.8125rem;
  font-weight: 600;
  z-index: 9999;
  animation: toastIn 0.3s ease;
  max-width: 360px;
  box-shadow: var(--shadow-lg);
}

.toast-success {
  background: var(--success);
  color: #fff;
}

.toast-error {
  background: var(--danger);
  color: #fff;
}

@keyframes toastIn {
  from { transform: translateY(1rem); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* ==================== ADMIN ==================== */
.admin-layout {
  display: flex;
  min-height: calc(100vh - 120px);
}

.admin-content {
  flex: 1;
  padding: 1.5rem;
}

/* ==================== UTILITIES ==================== */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.text-center { text-align: center; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.p-4 { padding: 1rem; }
.w-full { width: 100%; }
.font-bold { font-weight: 700; }
.text-sm { font-size: 0.8125rem; }
.text-xs { font-size: 0.75rem; }

/* ==================== RESPONSIVE TABLE ==================== */
@media (max-width: 640px) {
  .prediction-table th,
  .prediction-table td {
    padding: 0.625rem 0.5rem;
    font-size: 0.75rem;
  }

  .page-title {
    font-size: 1.375rem;
  }
}

/* ==================== LOADING ==================== */
.loading {
  text-align: center;
  padding: 3rem;
  color: var(--text-muted);
}

.loading-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  margin: 0 auto 1rem;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}
