:root {
  --bg-0: #050506;
  --bg-1: #0b0b0f;
  --bg-2: #111118;
  --surface: #14141c;
  --surface-strong: #1b1b24;
  --surface-muted: #101015;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text-strong: #f5f5f7;
  --text-muted: #c1c3cf;
  --text-faint: #8e90a3;
  --accent-primary: #2f74c0;
  --accent-primary-hover: #245d97;
  --accent-ember: #c0702a;
  --accent-plum: #5d2c7e;
  --shadow-soft: 0 24px 60px rgba(0, 0, 0, 0.45);
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Manrope", "Inter", "Helvetica Neue", sans-serif;
  color: var(--text-strong);
  background: var(--bg-0);
  min-height: 100vh;
}

a {
  color: var(--text-strong);
  text-decoration: none;
}

a:hover {
  color: #ffffff;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
}

.page::before {
  content: "";
  position: fixed;
  inset: 0;
  background: var(--bg-0);
  opacity: 1;
  pointer-events: none;
  z-index: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 20px 48px;
  background: rgba(8, 8, 12, 0.92);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: "Manrope", "Inter", sans-serif;
  font-size: 13px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.brand-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, #f0c37a, var(--accent-ember));
  box-shadow: 0 0 14px rgba(240, 195, 122, 0.5);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  flex: 1;
  justify-content: center;
}

.nav-links a {
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--text-strong);
}

.user-chip {
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  font-size: 12px;
  color: var(--text-muted);
  background: rgba(18, 18, 24, 0.7);
}

.content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 48px 24px 140px;
}

.hero-shell {
  position: relative;
  margin: 0 0 40px;
  padding: 0;
  background: transparent;
  border-bottom: none;
}

.hero {
  margin-bottom: 36px;
}

.hero-band {
  position: relative;
  margin: 0 0 40px;
  padding: 40px 36px;
  background:
    radial-gradient(circle at 20% 0%, rgba(93, 44, 126, 0.25), transparent 45%),
    radial-gradient(circle at 85% 0%, rgba(192, 112, 42, 0.2), transparent 40%),
    linear-gradient(180deg, #0c0c12 0%, #101017 60%, #0a0a0f 100%);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.hero-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 28px;
  align-items: center;
}

.hero-copy {
  grid-column: span 7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.hero-card {
  grid-column: span 5;
  background: rgba(14, 14, 18, 0.9);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 22px;
  box-shadow: var(--shadow-soft);
}

.hero-card-title {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin: 0 0 12px;
}

.hero-card-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 14px;
}

.hero-card-row:first-of-type {
  border-top: none;
}

.hero-card-label {
  color: var(--text-faint);
}

.hero-card-value {
  color: var(--text-strong);
  font-weight: 500;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.4em;
  font-size: 11px;
  color: var(--text-faint);
  margin: 0 0 12px;
}

.page-title {
  font-family: "Manrope", "Inter", sans-serif;
  font-weight: 500;
  font-size: 44px;
  margin: 0 0 12px;
  color: var(--text-strong);
}

.page-subtitle {
  color: var(--text-muted);
  margin: 0;
  max-width: 640px;
  line-height: 1.6;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 34px;
}

.stat-card {
  position: relative;
  overflow: hidden;
  padding: 18px 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: rgba(15, 15, 20, 0.92);
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
}

.stat-card--amber {
  border-color: rgba(226, 179, 90, 0.4);
}

.stat-card--rose {
  border-color: rgba(167, 77, 99, 0.35);
}

.stat-card--plum {
  border-color: rgba(93, 44, 126, 0.35);
}

.stat-label {
  display: flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 10px;
  color: var(--text-faint);
  margin-bottom: 12px;
}

.stat-value {
  font-size: 26px;
  font-weight: 600;
  color: var(--text-strong);
}

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

.panel {
  background: rgba(16, 16, 22, 0.92);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 28px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.panel:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.4);
}

.panel-dark {
  background: rgba(15, 15, 20, 0.92);
  border-color: var(--border);
}

.panel-dark .panel-title,
.panel-dark .panel-subtitle,
.panel-dark label {
  color: var(--text-muted);
}

.panel-dark .panel-subtitle {
  color: var(--text-faint);
}

.panel-dark .form-control {
  background-color: rgba(18, 18, 26, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-strong);
}

.panel-light {
  background: #ffffff;
  color: #1b1b1f;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
}

.panel-light .panel-title,
.panel-light .panel-subtitle,
.panel-light label {
  color: #1b1b1f;
}

.panel-light .panel-subtitle {
  opacity: 0.7;
}

.panel-title {
  font-size: 20px;
  margin: 0 0 6px;
  font-weight: 600;
}

.panel-subtitle {
  color: var(--text-muted);
  margin: 0 0 18px;
  font-size: 14px;
}

.form-group label {
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.form-control {
  background-color: rgba(18, 16, 24, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-strong);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  height: auto;
}

.form-control:focus {
  border-color: rgba(47, 116, 192, 0.6);
  box-shadow: 0 0 0 3px rgba(47, 116, 192, 0.2);
}

.panel-light .form-control {
  background-color: #f7f7fa;
  border: 1px solid #d7d7dd;
  color: #1b1b1f;
}

.btn-primary {
  background: var(--accent-primary);
  border: none;
  color: #fff;
  padding: 10px 18px;
  border-radius: 8px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 600;
  transition: background 0.2s ease, transform 0.2s ease;
}

.btn-primary:hover,
.btn-primary:focus {
  background: var(--accent-primary-hover);
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-muted);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.table-card {
  background: rgba(12, 12, 18, 0.92);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 18px 18px 6px;
  box-shadow: var(--shadow-soft);
}

.table {
  color: var(--text-strong);
}

.table-striped > tbody > tr:nth-of-type(odd) {
  background-color: rgba(255, 255, 255, 0.04);
}

.table > thead > tr > th,
.table > tbody > tr > td {
  border-top: none;
}

.alert {
  background: rgba(47, 116, 192, 0.16);
  border: 1px solid rgba(47, 116, 192, 0.4);
  color: var(--text-strong);
  border-radius: 12px;
  margin-bottom: 18px;
}

.footer {
  position: relative;
  z-index: 1;
  padding: 32px 48px 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-faint);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer strong {
  color: var(--text-strong);
  font-weight: 600;
}

.footer .footer-meta {
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 4, 6, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 1000;
}

.modal-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  width: min(520px, 90vw);
  background: rgba(14, 14, 18, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
}

.modal-title {
  font-size: 20px;
  margin: 0 0 10px;
}

.modal-body {
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
}

.modal-meta {
  color: var(--text-faint);
  font-size: 12px;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 20px;
}

@media (max-width: 980px) {
  .topbar {
    flex-direction: column;
    gap: 12px;
    padding: 18px 24px;
  }

  .hero-shell {
    margin: -48px -24px 32px;
  }

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

  .hero-copy,
  .hero-card {
    grid-column: span 1;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
  }

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

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

  .page-title {
    font-size: 36px;
  }

  .footer {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
}

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

  .page-title {
    font-size: 30px;
  }
}
