/* =========================================================
   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: 8px 24px;
  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;
  gap: 14px;
  justify-content: space-between;
  align-items: center;
  max-width: 1480px;
  margin: 0 auto;
  min-width: 0;
}

.nav-brand {
  align-items: center;
  display: flex;
  flex: 0 0 auto;
  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;
  min-width: 0;
}

.nav-brand img {
  flex: 0 0 auto;
}

.nav-brand span {
  line-height: 1.1;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: nowrap;
  gap: 10px;
  justify-content: center;
  min-width: 0;
}

.nav-btn {
  padding: 9px 15px;
  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;
  white-space: nowrap;
}

.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;
  flex: 0 0 auto;
  gap: 8px;
}

.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: left;
  padding: 30px;
  background: rgba(10, 16, 30, 0.82);
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: 8px;
  margin-bottom: 24px;
  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 {
  display: grid;
  gap: 22px;
}

.hero-copy {
  align-items: center;
  display: grid;
  gap: 20px;
  grid-template-columns: 150px minmax(0, 1fr);
  margin: 0 auto;
  max-width: 920px;
  width: 100%;
}

.hero-copy img {
  display: block;
  height: auto;
  max-width: 150px;
  width: 100%;
}

.hero-kicker,
.panel-kicker {
  color: #86efac;
  display: inline-flex;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  margin-bottom: 7px;
  text-transform: uppercase;
}

.hero-content h1 {
  font-size: 48px;
  margin-bottom: 8px;
  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: 0;
  max-width: 660px;
}

.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;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.hero-metrics div {
  background: rgba(15, 23, 42, 0.58);
  border: 1px solid rgba(34, 197, 94, 0.18);
  border-radius: 8px;
  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.secondary {
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(34, 197, 94, 0.24);
  color: #bbf7d0;
  box-shadow: none;
}

.hero-btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(34, 197, 94, 0.3);
}

.weekly-bonus {
  align-items: center;
  background: rgba(15, 23, 42, 0.82);
  border: 1px solid rgba(96, 165, 250, 0.26);
  border-radius: 8px;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.22);
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin: -20px 0 34px;
  padding: 20px 22px;
}

.dashboard-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.85fr) minmax(240px, 0.7fr);
  margin: 0 0 34px;
}

.dashboard-panel,
.quick-launch {
  background: rgba(10, 16, 30, 0.78);
  border: 1px solid rgba(34, 197, 94, 0.18);
  border-radius: 8px;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.22);
  padding: 18px;
}

.dashboard-panel h2,
.quick-launch h2 {
  color: #f8fafc;
  font-size: 22px;
  margin: 0;
}

.panel-title-row,
.section-title-row {
  align-items: start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 14px;
}

.panel-title-row a {
  border: 1px solid rgba(96, 165, 250, 0.28);
  border-radius: 999px;
  background: rgba(96, 165, 250, 0.1);
  color: #bfdbfe;
  font-size: 12px;
  font-weight: 900;
  padding: 7px 10px;
  text-decoration: none;
}

.home-search {
  display: grid;
  gap: 7px;
}

.home-search span {
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.home-search input {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.86);
  color: #e5e7eb;
  min-height: 46px;
  padding: 12px 13px;
}

.home-search-results,
.action-list,
.today-list {
  display: grid;
  gap: 9px;
}

.home-search-results {
  margin-top: 12px;
}

.home-search-results a,
.action-card,
.today-row,
.quick-launch-card {
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.64);
  color: var(--text-primary);
  min-width: 0;
  text-decoration: none;
}

.home-search-results a,
.action-card {
  display: grid;
  gap: 4px;
  padding: 12px;
}

.home-search-results strong,
.action-card strong,
.quick-launch-card strong {
  color: #f8fafc;
  overflow-wrap: anywhere;
}

.home-search-results span,
.action-card span,
.quick-launch-card span,
.search-empty {
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.45;
}

.action-card {
  border-left: 3px solid rgba(148, 163, 184, 0.28);
}

.action-danger {
  border-left-color: #ef4444;
}

.action-success {
  border-left-color: #22c55e;
}

.action-info {
  border-left-color: #60a5fa;
}

.today-row {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
}

.today-row span {
  color: var(--text-secondary);
}

.today-row strong {
  color: #86efac;
  font-size: 20px;
}

.quick-launch {
  margin: 0 0 34px;
}

.quick-launch-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.quick-launch-card {
  display: grid;
  gap: 7px;
  padding: 14px;
}

.quick-launch-card:hover,
.home-search-results a:hover,
.action-card:hover,
.today-row:hover {
  border-color: rgba(34, 197, 94, 0.42);
  background: rgba(34, 197, 94, 0.09);
}

body.light-mode .dashboard-panel,
body.light-mode .quick-launch,
body.light-mode .home-search-results a,
body.light-mode .action-card,
body.light-mode .today-row,
body.light-mode .quick-launch-card {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(15, 23, 42, 0.1);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

body.light-mode .dashboard-panel h2,
body.light-mode .quick-launch h2,
body.light-mode .home-search-results strong,
body.light-mode .action-card strong,
body.light-mode .quick-launch-card strong {
  color: #0f172a;
}

body.light-mode .home-search input {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.16);
  color: #0f172a;
}

.weekly-bonus[hidden] {
  display: none;
}

.weekly-bonus span {
  color: #93c5fd;
  display: block;
  font-size: 12px;
  font-weight: 900;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.weekly-bonus h2 {
  color: #f8fafc;
  font-size: 24px;
  margin-bottom: 6px;
}

.weekly-bonus p {
  color: #cbd5e1;
  line-height: 1.5;
}

.weekly-bonus-period {
  min-width: 210px;
  border: 1px solid rgba(34, 197, 94, 0.24);
  border-radius: 8px;
  background: rgba(34, 197, 94, 0.09);
  padding: 12px;
  text-align: right;
}

.weekly-bonus-period strong {
  color: #86efac;
  display: block;
  font-size: 18px;
  margin-bottom: 4px;
}

.weekly-bonus-period span {
  color: #94a3b8;
  margin: 0;
}

.command-strip {
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1.1fr) repeat(2, minmax(150px, 0.75fr)) minmax(0, 1.15fr);
  margin: -18px 0 34px;
}

.command-card {
  align-content: center;
  background: rgba(10, 16, 30, 0.8);
  border: 1px solid rgba(34, 197, 94, 0.18);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18);
  color: var(--text-primary);
  display: grid;
  gap: 5px;
  min-height: 104px;
  min-width: 0;
  padding: 15px;
  text-decoration: none;
}

.command-card span {
  color: #86efac;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.command-card strong {
  color: #f8fafc;
  font-size: 19px;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.command-card small {
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.4;
}

.command-card-sync {
  border-color: rgba(96, 165, 250, 0.24);
}

.command-card-sync span {
  color: #93c5fd;
}

.command-card-action {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.18), rgba(20, 184, 166, 0.08));
  border-color: rgba(34, 197, 94, 0.34);
}

.command-card-action:hover {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.24), rgba(20, 184, 166, 0.12));
  border-color: rgba(34, 197, 94, 0.55);
}

body.light-mode .weekly-bonus {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(37, 99, 235, 0.16);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

body.light-mode .weekly-bonus h2 {
  color: #111827;
}

body.light-mode .weekly-bonus p {
  color: #475569;
}

body.light-mode .command-card {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(15, 23, 42, 0.1);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.07);
}

body.light-mode .command-card strong {
  color: #0f172a;
}

body.light-mode .command-card span {
  color: #15803d;
}

body.light-mode .command-card-sync span {
  color: #2563eb;
}

body.light-mode .command-card-action {
  background: linear-gradient(135deg, rgba(22, 163, 74, 0.13), rgba(20, 184, 166, 0.07));
  border-color: rgba(22, 163, 74, 0.22);
}

/* =========================================================
   SEARCH INTRO & FAQ
========================================================= */
.seo-intro {
  align-items: center;
  background: rgba(10, 16, 30, 0.72);
  border: 1px solid rgba(34, 197, 94, 0.16);
  border-radius: 8px;
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.2);
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.8fr);
  margin: -24px 0 34px;
  padding: 22px;
}

.seo-intro h2,
.seo-faq h2 {
  color: #22c55e;
  font-size: 26px;
  margin-bottom: 12px;
}

.seo-intro p,
.seo-faq p {
  color: var(--text-secondary);
  line-height: 1.65;
}

.seo-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.seo-tags span {
  background: rgba(96, 165, 250, 0.1);
  border: 1px solid rgba(96, 165, 250, 0.26);
  border-radius: 999px;
  color: #bfdbfe;
  font-size: 12px;
  font-weight: 900;
  padding: 8px 11px;
  text-transform: uppercase;
}

.seo-faq {
  margin: 0 0 42px;
}

.seo-faq-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
}

.seo-faq article {
  background: rgba(15, 23, 42, 0.62);
  border: 1px solid rgba(34, 197, 94, 0.16);
  border-radius: 8px;
  padding: 18px;
}

.seo-faq h3 {
  color: #f8fafc;
  font-size: 17px;
  margin-bottom: 8px;
}

body.light-mode .seo-intro,
body.light-mode .seo-faq article {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(15, 23, 42, 0.1);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

body.light-mode .seo-faq h3 {
  color: #111827;
}

body.light-mode .seo-tags span {
  background: rgba(37, 99, 235, 0.08);
  border-color: rgba(37, 99, 235, 0.18);
  color: #1d4ed8;
}

/* =========================================================
   STATS SECTION
========================================================= */
.stats-section {
  margin-bottom: 42px;
}

.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(min(100%, 300px), 1fr));
  gap: 14px;
}

.stat-card {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: 8px;
  padding: 16px;
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  position: relative;
  overflow: hidden;
  min-width: 0;
}

.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(-4px);
  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: 78px;
  height: 78px;
  background: transparent;
  border-radius: 0;
  overflow: visible;
}

.stat-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.22));
}

.stat-content {
  flex: 1;
  min-width: 0;
}

.stat-content h3 {
  font-size: 17px;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.stat-number {
  font-size: 34px;
  font-weight: 700;
  color: #22c55e;
  margin: 0;
  line-height: 1;
}

.stat-label {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 4px 0 8px;
}

.stat-progress {
  font-size: 12px;
  color: var(--text-secondary);
  background: rgba(34, 197, 94, 0.08);
  padding: 7px 10px;
  border-radius: 6px;
  border-left: 3px solid #22c55e;
  width: fit-content;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.stat-link {
  text-decoration: none;
  color: #22c55e;
  font-weight: 600;
  font-size: 14px;
  transition: 0.3s ease;
  align-self: center;
  border: 1px solid rgba(34, 197, 94, 0.28);
  border-radius: 8px;
  padding: 8px 10px;
  background: rgba(34, 197, 94, 0.08);
  white-space: nowrap;
}

.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: 42px;
}

.management-panel {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(34, 197, 94, 0.18);
  border-radius: 8px;
  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: 8px;
  padding: 12px 14px;
  min-width: 0;
}

.focus-item strong,
.focus-item span {
  overflow-wrap: anywhere;
}

.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: 8px;
  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: 1280px) {
  .navbar {
    padding-left: 14px;
    padding-right: 14px;
  }

  .nav-container {
    gap: 8px;
  }

  .nav-brand {
    font-size: 20px;
    letter-spacing: 0;
  }

  .nav-brand img {
    height: 34px !important;
  }

  .nav-links {
    gap: 7px;
  }

  .nav-btn {
    font-size: 14px;
    padding: 8px 11px;
  }

  .theme-toggle {
    height: 42px;
    width: 42px;
  }
}

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

  .dashboard-search-panel {
    grid-column: 1 / -1;
  }

  .quick-launch-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .nav-links {
    gap: 10px;
  }

  .nav-btn {
    padding: 8px 12px;
    font-size: 12px;
  }

  .hero {
    padding: 18px;
  }

  .hero-copy {
    gap: 12px;
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .hero-copy img {
    max-width: 72px;
  }

  .hero-content h1 {
    font-size: 30px;
  }

  .hero-content p {
    font-size: 15px;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-btn {
    text-align: center;
    width: 100%;
  }

  .dashboard-grid,
  .quick-launch-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-panel,
  .quick-launch {
    padding: 14px;
  }

  .panel-title-row,
  .section-title-row {
    align-items: stretch;
    display: grid;
  }

  .quick-launch-card {
    padding: 13px;
  }

  .weekly-bonus {
    align-items: stretch;
    flex-direction: column;
    margin-top: -22px;
  }

  .weekly-bonus-period {
    min-width: 0;
    text-align: left;
  }

  .command-strip {
    grid-template-columns: 1fr 1fr;
    margin-top: -18px;
  }

  .command-card {
    min-height: 86px;
    padding: 12px;
  }

  .command-card strong {
    font-size: 17px;
  }

  .seo-intro {
    grid-template-columns: 1fr;
    margin-top: -20px;
    padding: 18px;
  }

  .seo-tags {
    justify-content: flex-start;
  }

  .stat-card {
    grid-template-columns: 66px minmax(0, 1fr) auto;
    padding: 14px;
    gap: 12px;
  }

  .stat-icon {
    width: 66px;
    height: 66px;
    font-size: 32px;
  }

  .stat-number {
    font-size: 30px;
  }

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

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

@media (max-width: 520px) {
  .command-strip {
    gap: 8px;
  }

  .command-card {
    min-height: 78px;
    padding: 10px;
  }

  .command-card strong {
    font-size: 15px;
  }

  .command-card small {
    font-size: 11px;
  }

  .command-card-action {
    grid-column: 1 / -1;
  }

  .stat-card {
    grid-template-columns: 58px minmax(0, 1fr);
  }

  .stat-icon {
    width: 58px;
    height: 58px;
  }

  .stat-link {
    grid-column: 2;
    justify-self: start;
    margin-top: -2px;
  }
}

/* =========================================================
   FIRST VISIT GUIDED HOME
========================================================= */
.home-hero-guided {
  margin-bottom: 16px;
}

.home-hero-guided .hero-content {
  gap: 18px;
}

.home-hero-guided .hero-copy {
  max-width: 980px;
}

.primary-entry-actions .hero-btn {
  min-width: 180px;
  text-align: center;
}

.guide-entry-btn {
  background: linear-gradient(135deg, #f8fafc, #d1fae5);
  border-color: rgba(255, 255, 255, 0.72);
  color: #052e16;
  cursor: pointer;
  font: inherit;
  font-weight: 950;
  order: -1;
  position: relative;
}

.guide-entry-btn::before {
  content: "?";
  align-items: center;
  background: #15803d;
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  font-size: 13px;
  height: 24px;
  justify-content: center;
  margin-right: 8px;
  width: 24px;
}

.guide-entry-btn:hover {
  filter: brightness(1.04);
  transform: translateY(-2px);
}

.starter-panel {
  align-items: stretch;
  background:
    radial-gradient(circle at 8% 12%, rgba(34, 197, 94, 0.11), transparent 34%),
    radial-gradient(circle at 92% 88%, rgba(99, 102, 241, 0.09), transparent 32%),
    rgba(10, 16, 30, 0.82);
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: 18px;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.24);
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(260px, 0.82fr) minmax(0, 1.18fr);
  margin: 0 0 18px;
  padding: 20px;
}

.starter-copy h2 {
  color: #f8fafc;
  font-size: 26px;
  line-height: 1.15;
  margin: 0 0 10px;
}

.starter-copy p {
  color: var(--text-secondary);
  line-height: 1.55;
  max-width: 520px;
}

.starter-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.starter-card {
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.9), rgba(9, 15, 28, 0.76));
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 14px;
  color: var(--text-primary);
  display: grid;
  gap: 6px;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  min-height: 150px;
  padding: 16px;
  position: relative;
  text-decoration: none;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.starter-card-label {
  align-self: center;
  color: #86efac;
  font-size: 12px;
  font-weight: 900;
  grid-column: 2;
  text-transform: uppercase;
}

.starter-card-icon {
  align-items: center;
  align-self: start;
  background: rgba(34, 197, 94, 0.13);
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: 12px;
  color: #bbf7d0;
  display: inline-flex;
  font-size: 17px;
  font-weight: 950;
  grid-row: 1 / 4;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.starter-card strong {
  color: #f8fafc;
  font-size: 19px;
  grid-column: 2 / 4;
  line-height: 1.18;
}

.starter-card small {
  color: var(--text-secondary);
  font-size: 13px;
  grid-column: 2 / 4;
  line-height: 1.45;
}

.starter-card i {
  color: rgba(134, 239, 172, 0.7);
  font-size: 18px;
  font-style: normal;
  grid-column: 3;
  grid-row: 1;
}

.starter-card[data-tool="census"] .starter-card-icon {
  background: rgba(56, 189, 248, 0.13);
  border-color: rgba(56, 189, 248, 0.24);
  color: #bae6fd;
}

.starter-card[data-tool="goals"] .starter-card-icon {
  background: rgba(168, 85, 247, 0.13);
  border-color: rgba(168, 85, 247, 0.24);
  color: #e9d5ff;
}

.starter-card[data-tool="calculator"] .starter-card-icon {
  background: rgba(245, 158, 11, 0.13);
  border-color: rgba(245, 158, 11, 0.24);
  color: #fde68a;
}

.starter-card[data-tool="settings"] .starter-card-icon {
  background: rgba(99, 102, 241, 0.13);
  border-color: rgba(99, 102, 241, 0.24);
  color: #c7d2fe;
}

.starter-card:hover {
  background: rgba(34, 197, 94, 0.09);
  border-color: rgba(34, 197, 94, 0.5);
  transform: translateY(-2px);
}

.starter-card-featured {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.18), rgba(20, 184, 166, 0.08));
  border-color: rgba(34, 197, 94, 0.34);
}

body.is-empty-dashboard .hero-metrics,
body.is-empty-dashboard .stats-section,
body.is-empty-dashboard .management-grid {
  display: none;
}

body.is-empty-dashboard .command-strip {
  margin-top: 0;
}

body.is-empty-dashboard .dashboard-grid {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.72fr);
}

body.is-empty-dashboard .dashboard-search-panel {
  grid-column: auto;
}

body.is-empty-dashboard .quick-launch {
  margin-top: 0;
}

.today-row-guide strong {
  color: #bbf7d0;
}

body.light-mode .starter-panel,
body.light-mode .starter-card {
  background: rgba(255, 255, 255, 0.93);
  border-color: rgba(15, 23, 42, 0.1);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

body.light-mode .starter-copy h2,
body.light-mode .starter-card strong {
  color: #0f172a;
}

body.light-mode .starter-card-featured {
  background: linear-gradient(135deg, rgba(22, 163, 74, 0.13), rgba(20, 184, 166, 0.07));
  border-color: rgba(22, 163, 74, 0.22);
}

@media (max-width: 980px) {
  .starter-panel,
  body.is-empty-dashboard .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .starter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .starter-card {
    min-height: auto;
  }
}

@media (max-width: 768px) {
  .starter-panel {
    padding: 16px;
  }

  .starter-copy h2 {
    font-size: 22px;
  }

  .primary-entry-actions .hero-btn {
    min-width: 0;
  }
}

/* =========================================================
   MINIMAL PUBLIC HOME
========================================================= */
.hub-container {
  max-width: 1120px;
  padding-top: 28px;
}

.home-hero-guided {
  background:
    radial-gradient(circle at 18% 12%, rgba(34, 197, 94, 0.18), transparent 32%),
    radial-gradient(circle at 82% 88%, rgba(59, 130, 246, 0.13), transparent 34%),
    linear-gradient(145deg, rgba(10, 17, 32, 0.97), rgba(6, 10, 22, 0.98));
  border: 1px solid rgba(134, 239, 172, 0.16);
  border-radius: 20px;
  box-shadow: 0 24px 65px rgba(0, 0, 0, 0.28);
  overflow: hidden;
  padding: 24px;
  position: relative;
}

.home-hero-guided .hero-content {
  justify-items: center;
  text-align: center;
}

.home-hero-guided .hero-copy {
  grid-template-columns: 96px minmax(0, 620px);
  justify-content: center;
  text-align: left;
}

.home-hero-guided .hero-copy img {
  max-width: 96px;
}

.home-hero-guided .hero-content h1 {
  font-size: clamp(34px, 5vw, 46px);
}

.home-hero-guided .hero-content p {
  max-width: 620px;
}

.primary-entry-actions {
  align-items: center;
  justify-content: center;
  width: 100%;
}

.primary-entry-actions .hero-btn {
  align-items: center;
  display: inline-flex;
  justify-content: center;
  min-height: 48px;
  min-width: 178px;
  padding: 13px 22px;
  text-align: center;
}

.starter-panel {
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  padding: 18px;
}

.starter-card {
  align-content: center;
  min-height: 122px;
}

.seo-intro {
  margin: 0 0 18px;
}

.weekly-bonus-compact {
  align-items: center;
  gap: 12px;
  margin: 0 0 20px;
  padding: 12px 14px;
}

.weekly-bonus-compact h2 {
  font-size: 18px;
  margin-bottom: 3px;
}

.weekly-bonus-compact p {
  font-size: 13px;
  line-height: 1.4;
}

.weekly-bonus-compact .weekly-bonus-period {
  min-width: 150px;
  padding: 9px 10px;
}

.weekly-bonus-compact .weekly-bonus-period strong {
  font-size: 15px;
}

.seo-faq {
  margin-top: 22px;
}

.seo-faq h2 {
  text-align: center;
}

.seo-faq-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hub-footer {
  margin-top: 28px;
}

@media (max-width: 820px) {
  .hub-container {
    padding: 20px 14px;
  }

  .home-hero-guided .hero-copy {
    grid-template-columns: 72px minmax(0, 1fr);
    text-align: left;
  }

  .home-hero-guided .primary-entry-actions {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  .home-hero-guided .primary-entry-actions .hero-btn {
    display: flex !important;
    min-height: 50px;
    min-width: 0;
    padding: 10px 8px;
    width: 100%;
  }

  .guide-entry-btn {
    grid-column: 1 / -1 !important;
    min-height: 56px !important;
    font-size: 16px;
    box-shadow: 0 10px 28px rgba(34, 197, 94, 0.2);
  }

  .home-quick-action {
    flex-direction: column;
    font-size: 11px;
    gap: 4px;
    line-height: 1.15;
  }

  .home-quick-action::before {
    font-size: 17px;
    line-height: 1;
  }

  .home-quick-action[data-action="builds"]::before {
    content: "★";
  }

  .home-quick-action[data-action="characters"]::before {
    content: "P";
    font-weight: 950;
  }

  .home-quick-action[data-action="census"]::before {
    content: "⌕";
    font-weight: 950;
  }

  .starter-panel,
  .seo-intro,
  .seo-faq-grid {
    grid-template-columns: 1fr;
  }

  .weekly-bonus-compact {
    align-items: stretch;
  }

  .weekly-bonus-compact .weekly-bonus-period {
    min-width: 0;
    text-align: left;
  }
}

@media (max-width: 520px) {
  .hub-container {
    padding-inline: 8px;
  }

  .home-hero-guided {
    border-radius: 18px;
    padding: 16px 12px;
  }

  .home-hero-guided .hero-copy {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .home-hero-guided .hero-copy img {
    max-width: 76px;
  }

  .starter-panel,
  .seo-intro,
  .seo-faq article {
    padding: 13px;
  }

  .starter-panel {
    border-radius: 18px;
    gap: 14px;
  }

  .starter-copy {
    text-align: center;
  }

  .starter-copy h2 {
    font-size: 20px;
  }

  .starter-copy p {
    font-size: 13px;
    margin-inline: auto;
  }

  .starter-grid {
    gap: 9px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .starter-card {
    align-content: start;
    gap: 7px;
    grid-template-columns: 36px minmax(0, 1fr) auto;
    min-height: 154px;
    padding: 11px;
  }

  .starter-card-icon {
    border-radius: 10px;
    font-size: 15px;
    height: 36px;
    width: 36px;
  }

  .starter-card-label {
    font-size: 10px;
  }

  .starter-card strong {
    font-size: 14px;
    line-height: 1.2;
  }

  .starter-card small {
    font-size: 11px;
    line-height: 1.35;
  }

  .starter-card i {
    font-size: 15px;
  }
}
