/* =========================================================
   GLOBAL & THEME
========================================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
}

:root {
  --bg-primary: #0b1020;
  --bg-secondary: #111827;
  --bg-tertiary: #1a202c;
  --text-primary: #e6e6e6;
  --text-secondary: #94a3b8;
  --accent-green: #22c55e;
  --accent-dark: #10b981;
  --border-color: rgba(255, 255, 255, 0.06);
}

body.light-mode {
  --bg-primary: #f8f9fa;
  --bg-secondary: #ffffff;
  --bg-tertiary: #f3f4f6;
  --text-primary: #1a202c;
  --text-secondary: #64748b;
  --accent-green: #16a34a;
  --border-color: rgba(0, 0, 0, 0.1);
}

html, body {
  height: 100%;
  overflow-x: hidden;
}

body {
  background:
    radial-gradient(circle at 20% 10%, rgba(34,197,94,0.12), transparent 40%),
    radial-gradient(circle at 80% 90%, rgba(99,102,241,0.10), transparent 45%),
    radial-gradient(circle at top, var(--bg-primary), #05070f);
  color: var(--text-primary);
  transition: background 0.3s ease;
}

body.light-mode {
  background:
    radial-gradient(circle at 20% 10%, rgba(22,163,74,0.08), transparent 40%),
    radial-gradient(circle at 80% 90%, rgba(99,102,241,0.06), transparent 45%),
    linear-gradient(to bottom, #f8f9fa, #f0f1f3);
}

/* =========================================================
   NAVBAR
========================================================= */
.navbar {
  background: rgba(17, 24, 39, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  padding: 15px 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: all 0.3s ease;
}

body.light-mode .navbar {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
}

.nav-brand {
  font-size: 24px;
  font-weight: 700;
  background: linear-gradient(135deg, #22c55e, #10b981);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 1px;
}

.nav-links {
  display: flex;
  gap: 15px;
}

.nav-btn {
  padding: 10px 18px;
  border-radius: 10px;
  text-decoration: none;
  color: #cbd5e1;
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
  display: inline-block;
}

.nav-btn:hover {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
  border-color: #22c55e;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(34, 197, 94, 0.2);
}

body.light-mode .nav-btn {
  background: rgba(249, 250, 251, 0.8);
  color: #334155;
  border-color: var(--border-color);
}

body.light-mode .nav-btn:hover {
  background: rgba(22, 163, 74, 0.1);
  color: #16a34a;
  border-color: #16a34a;
}

/* THEME TOGGLE */
.nav-theme-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
}

.theme-toggle {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  border: 2px solid var(--border-color);
  background: rgba(34, 197, 94, 0.1);
  color: #22c55e;
  font-size: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-toggle:hover {
  background: rgba(34, 197, 94, 0.2);
  border-color: #22c55e;
  transform: rotate(20deg) scale(1.1);
}

body.light-mode .theme-toggle {
  background: rgba(22, 163, 74, 0.1);
  color: #16a34a;
  border-color: #16a34a;
}

/* =========================================================
   HUB CONTAINER
========================================================= */
.hub-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px 30px;
}

/* =========================================================
   HERO SECTION
========================================================= */
.hero {
  text-align: center;
  padding: 60px 40px;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.08), rgba(16, 185, 129, 0.05));
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: 20px;
  margin-bottom: 60px;
  box-shadow: 0 20px 50px rgba(34, 197, 94, 0.1);
}

body.light-mode .hero {
  background: linear-gradient(135deg, rgba(22, 163, 74, 0.08), rgba(20, 184, 166, 0.05));
  border-color: rgba(22, 163, 74, 0.2);
}

.hero-content h1 {
  font-size: 48px;
  margin-bottom: 15px;
  background: linear-gradient(135deg, #22c55e, #10b981);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

body.light-mode .hero-content h1 {
  -webkit-text-fill-color: transparent;
  background: linear-gradient(135deg, #16a34a, #14b8a6);
}

.hero-content p {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 30px;
}

.hero-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

/* =========================================================
   THEME REFINEMENT
========================================================= */
body {
  background:
    linear-gradient(180deg, rgba(34, 197, 94, 0.08), transparent 280px),
    #05070f;
}

body.light-mode {
  background:
    linear-gradient(180deg, rgba(22, 163, 74, 0.08), transparent 280px),
    #f6f8fb;
}

.navbar,
.hero,
.stat-card,
.management-panel,
.hero-metrics div,
.focus-item {
  backdrop-filter: blur(16px);
}

.navbar {
  background: rgba(5, 7, 15, 0.92);
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

body.light-mode .navbar {
  background: rgba(255, 255, 255, 0.94);
  border-bottom-color: rgba(15, 23, 42, 0.12);
}

.theme-toggle {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  font-size: 21px;
  line-height: 1;
  background: #0b1220;
  border-color: rgba(34, 197, 94, 0.42);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04), 0 10px 24px rgba(0, 0, 0, 0.22);
}

body.light-mode .theme-toggle {
  background: #ffffff;
  border-color: rgba(22, 163, 74, 0.38);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.12);
}

.hero,
.stat-card,
.management-panel,
.hero-metrics div {
  background: rgba(10, 16, 30, 0.82);
  border-color: rgba(34, 197, 94, 0.22);
}

body.light-mode .hero,
body.light-mode .stat-card,
body.light-mode .management-panel,
body.light-mode .hero-metrics div,
body.light-mode .focus-item {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(15, 23, 42, 0.1);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

body.light-mode .stat-progress {
  background: rgba(22, 163, 74, 0.08);
  color: #475569;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  max-width: 760px;
  margin: 0 auto 28px;
}

.hero-metrics div {
  background: rgba(15, 23, 42, 0.58);
  border: 1px solid rgba(34, 197, 94, 0.18);
  border-radius: 10px;
  padding: 14px;
}

.hero-metrics strong {
  display: block;
  color: #22c55e;
  font-size: 28px;
}

.hero-metrics span {
  color: var(--text-secondary);
  font-size: 12px;
  text-transform: uppercase;
}

.hero-btn {
  padding: 15px 30px;
  border-radius: 12px;
  text-decoration: none;
  background: linear-gradient(135deg, #22c55e, #10b981);
  color: black;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-block;
  box-shadow: 0 10px 30px rgba(34, 197, 94, 0.2);
}

.hero-btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(34, 197, 94, 0.3);
}

/* =========================================================
   STATS SECTION
========================================================= */
.stats-section {
  margin-bottom: 60px;
}

.stats-section h2 {
  font-size: 28px;
  margin-bottom: 30px;
  color: #22c55e;
  letter-spacing: 0.5px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 25px;
}

.stat-card {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: 16px;
  padding: 30px;
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 25px;
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(34, 197, 94, 0.1), transparent 60%);
  opacity: 0;
  transition: 0.3s ease;
  pointer-events: none;
}

.stat-card:hover {
  transform: translateY(-10px);
  border-color: #22c55e;
  box-shadow: 0 15px 45px rgba(34, 197, 94, 0.2);
}

.stat-card:hover::before {
  opacity: 1;
}

body.light-mode .stat-card {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(22, 163, 74, 0.2);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.stat-icon {
  font-size: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  background: rgba(34, 197, 94, 0.1);
  border-radius: 12px;
  flex-shrink: 0;
}

.stat-content {
  flex: 1;
}

.stat-content h3 {
  font-size: 18px;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.stat-number {
  font-size: 42px;
  font-weight: 700;
  color: #22c55e;
  margin: 5px 0;
}

.stat-label {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.stat-progress {
  font-size: 12px;
  color: var(--text-secondary);
  background: rgba(34, 197, 94, 0.08);
  padding: 8px 12px;
  border-radius: 6px;
  border-left: 3px solid #22c55e;
}

.stat-link {
  text-decoration: none;
  color: #22c55e;
  font-weight: 600;
  font-size: 14px;
  transition: 0.3s ease;
}

.stat-link:hover {
  transform: translateX(5px);
}

/* =========================================================
   QUICK ACCESS
========================================================= */
.quick-access {
  margin-bottom: 60px;
}

.quick-access h2 {
  font-size: 28px;
  margin-bottom: 30px;
  color: #22c55e;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.quick-btn {
  padding: 25px;
  border-radius: 14px;
  border: 2px solid rgba(34, 197, 94, 0.3);
  background: rgba(34, 197, 94, 0.05);
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  font-size: 14px;
  color: var(--text-primary);
  font-weight: 600;
}

.quick-btn:hover {
  border-color: #22c55e;
  background: rgba(34, 197, 94, 0.15);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(34, 197, 94, 0.2);
}

.quick-icon {
  font-size: 32px;
}

.quick-zones:hover { border-color: #3b82f6; background: rgba(59, 130, 246, 0.1); }
.quick-feats:hover { border-color: #f59e0b; background: rgba(245, 158, 11, 0.1); }
.quick-chars:hover { border-color: #8b5cf6; background: rgba(139, 92, 246, 0.1); }

.management-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
  gap: 24px;
  margin-bottom: 60px;
}

.management-panel {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(34, 197, 94, 0.18);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.24);
}

.management-panel h2 {
  color: #22c55e;
  margin-bottom: 18px;
  font-size: 22px;
}

.focus-list {
  display: grid;
  gap: 10px;
}

.focus-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  text-decoration: none;
  color: var(--text-primary);
  background: rgba(17, 24, 39, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 12px 14px;
}

.focus-item span,
.focus-empty {
  color: var(--text-secondary);
  font-size: 13px;
}

.data-actions {
  display: grid;
  gap: 12px;
}

.data-actions button,
.import-btn {
  display: block;
  width: 100%;
  border: 1px solid rgba(34, 197, 94, 0.32);
  border-radius: 10px;
  background: rgba(34, 197, 94, 0.1);
  color: #22c55e;
  padding: 12px;
  text-align: center;
  font-weight: 700;
  cursor: pointer;
}

.import-btn input {
  display: none;
}

body.light-mode .hero-metrics div,
body.light-mode .management-panel,
body.light-mode .focus-item {
  background: rgba(255, 255, 255, 0.8);
}

/* =========================================================
   FOOTER
========================================================= */
.hub-footer {
  text-align: center;
  padding: 30px;
  color: var(--text-secondary);
  font-size: 14px;
  border-top: 1px solid var(--border-color);
  margin-top: 60px;
}

/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width: 768px) {
  .nav-links {
    gap: 10px;
  }

  .nav-btn {
    padding: 8px 12px;
    font-size: 12px;
  }

  .hero {
    padding: 40px 20px;
  }

  .hero-content h1 {
    font-size: 32px;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .hero-btn {
    width: 100%;
  }

  .stat-card {
    padding: 20px;
    gap: 15px;
  }

  .stat-icon {
    width: 60px;
    height: 60px;
    font-size: 32px;
  }

  .stat-number {
    font-size: 28px;
  }

  .management-grid {
    grid-template-columns: 1fr;
  }

  .focus-item {
    align-items: flex-start;
    flex-direction: column;
  }
}
