body {
  margin: 0;
  font-family: "Inter", Arial, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(14, 165, 233, 0.16), transparent 30%),
    radial-gradient(circle at bottom right, rgba(168, 85, 247, 0.16), transparent 28%),
    #0f172a;
  color: #e2e8f0;
}

* {
  box-sizing: border-box;
}

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

.shell {
  min-height: 100vh;
  padding: 24px;
}

.container {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.glass {
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 80px rgba(2, 6, 23, 0.35);
}

.topbar,
.card,
.table-wrap,
.panel,
.login-card {
  border-radius: 24px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 22px;
  margin-bottom: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.1rem;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0ea5e9, #a855f7);
  color: white;
}

.topnav {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.chip,
.button,
.nav-link {
  border-radius: 999px;
}

.nav-link,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  font-weight: 600;
}

.nav-link {
  color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-link.active,
.nav-link:hover {
  color: white;
  background: rgba(255, 255, 255, 0.08);
}

.button {
  border: 0;
  cursor: pointer;
  color: #020617;
  background: linear-gradient(135deg, #38bdf8, #a855f7);
}

.button.secondary {
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.button.full {
  width: 100%;
}

.page-title {
  margin: 0 0 6px;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.subtle {
  color: #94a3b8;
}

.hero {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 20px;
  margin-bottom: 24px;
}

.panel,
.card,
.table-wrap,
.login-card {
  padding: 24px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.card h3,
.panel h3 {
  margin: 0 0 10px;
  font-size: 1rem;
}

.metric {
  font-size: 2rem;
  font-weight: 800;
  color: white;
}

.two-col {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 20px;
}

.table-wrap {
  overflow: hidden;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  text-align: left;
  padding: 14px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  vertical-align: top;
  font-size: 0.94rem;
}

th {
  color: #94a3b8;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

tr:last-child td {
  border-bottom: 0;
}

.muted-cell {
  color: #94a3b8;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.12);
  color: #7dd3fc;
  font-size: 0.78rem;
  font-weight: 700;
}

.list {
  display: grid;
  gap: 12px;
}

.list-item {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
}

.list-item strong {
  display: block;
  margin-bottom: 4px;
}

.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.login-card {
  width: min(460px, 100%);
}

.form-grid {
  display: grid;
  gap: 16px;
}

.field {
  display: grid;
  gap: 8px;
}

.field label {
  font-size: 0.92rem;
  font-weight: 600;
}

.field input,
.field select {
  width: 100%;
  min-height: 48px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
  color: #f8fafc;
  padding: 0 14px;
  font: inherit;
}

.field input:focus,
.field select:focus {
  outline: none;
  border-color: rgba(56, 189, 248, 0.7);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.12);
}

.flash {
  margin-bottom: 16px;
  padding: 14px 16px;
  border-radius: 16px;
  font-weight: 600;
}

.flash.error {
  background: rgba(239, 68, 68, 0.14);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.flash.success {
  background: rgba(34, 197, 94, 0.14);
  color: #86efac;
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.split-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

@media (max-width: 980px) {
  .hero,
  .stats,
  .two-col {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 720px) {
  .shell {
    padding: 14px;
  }

  .panel,
  .card,
  .table-wrap,
  .login-card,
  .topbar {
    padding: 18px;
    border-radius: 20px;
  }

  .topnav {
    width: 100%;
  }

  .nav-link,
  .button {
    width: 100%;
  }

  th,
  td {
    padding: 12px 10px;
    font-size: 0.9rem;
  }

  .table-wrap {
    overflow-x: auto;
  }
}
