:root {
  --bg: #0c1218;
  --surface: #141c23;
  --surface-strong: #0f1922;
  --surface-muted: #1b252f;
  --text: #eef6fb;
  --text-soft: #93a7b5;
  --line: rgba(255, 255, 255, 0.08);
  --brand: #67eeff;
  --brand-strong: #1fd9ef;
  --accent: #67eeff;
  --success: #37c98f;
  --danger: #ff7f73;
  --radius-xl: 22px;
  --radius-lg: 14px;
  --radius-md: 10px;
  --shadow: 0 10px 24px rgba(17, 35, 56, 0.08);
  --shell-width: 1140px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(103, 238, 255, 0.14), transparent 24%),
    radial-gradient(circle at bottom right, rgba(103, 238, 255, 0.08), transparent 22%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    var(--bg);
  background-size: auto, 24px 24px, auto;
  color: var(--text);
}

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

img {
  max-width: 100%;
  display: block;
}

.site-shell {
  min-height: 100vh;
}

.site-header,
.site-footer,
main {
  width: min(var(--shell-width), calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
  background: rgba(12, 18, 24, 0.86);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-lockup img {
  width: 46px;
  height: 46px;
  object-fit: contain;
  border-radius: 10px;
  background: #fff;
  padding: 5px;
  box-shadow: 0 6px 14px rgba(16, 37, 63, 0.08);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.nav-link {
  padding: 9px 10px;
  border-radius: 10px;
  color: var(--text-soft);
}

.nav-button {
  background: transparent;
  border: 0;
  font: inherit;
  cursor: pointer;
}

.nav-link:hover,
.nav-link.is-active {
  background: rgba(103, 238, 255, 0.1);
  color: var(--text);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.button-primary {
  background: linear-gradient(180deg, var(--brand), var(--brand-strong));
  color: #081219;
  box-shadow: 0 10px 22px rgba(31, 217, 239, 0.18);
}

.button-secondary {
  background: rgba(103, 238, 255, 0.08);
  color: var(--text);
  border: 1px solid rgba(103, 238, 255, 0.14);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  color: var(--brand);
  font-weight: 700;
  margin: 0 0 10px;
}

h1,
h2,
h3 {
  font-family: "Space Grotesk", sans-serif;
  line-height: 1.05;
  margin: 0;
}

p {
  line-height: 1.6;
}

.section-heading {
  margin: 30px 0 18px;
}

.site-footer {
  padding: 32px 0 64px;
  color: var(--text-soft);
}

.footer-box {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-box a {
  color: var(--brand);
}

.dashboard-page {
  padding-bottom: 48px;
}

.dashboard-grid {
  display: grid;
  gap: 18px;
}

.dashboard-grid.two-columns {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: start;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow);
  position: relative;
}

.panel::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  border-radius: 14px 0 0 14px;
  background: linear-gradient(180deg, var(--brand), rgba(103, 238, 255, 0.12));
  opacity: 0.5;
}

.panel h2 {
  font-size: 1.4rem;
  margin-bottom: 14px;
}

.empty-state {
  color: var(--text-soft);
}

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

.list-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.list-row:first-child {
  border-top: 0;
  padding-top: 0;
}

.list-row:last-child {
  padding-bottom: 0;
}

.list-row strong,
.list-row span {
  display: block;
}

.list-row span {
  color: var(--text-soft);
  font-size: 0.95rem;
}

.panel-form,
.stack-form {
  display: grid;
  gap: 14px;
}

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

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

label span,
.field-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 8px;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  font: inherit;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
}

input::placeholder,
textarea::placeholder {
  color: var(--text-soft);
}

input:focus,
select:focus,
textarea:focus {
  outline: 0;
  border-color: rgba(103, 238, 255, 0.3);
  box-shadow: 0 0 0 3px rgba(103, 238, 255, 0.08);
}

textarea {
  min-height: 120px;
  resize: vertical;
}

.actions-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(103, 238, 255, 0.08);
  color: var(--text);
  font-size: 0.9rem;
}

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

.metric-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.72);
}

.metric-card strong {
  display: block;
  font-size: 1.6rem;
  font-family: "Fraunces", serif;
  margin-bottom: 6px;
}

.message {
  padding: 14px 16px;
  border-radius: 14px;
  margin-bottom: 16px;
}

.message.info {
  background: rgba(14, 107, 168, 0.12);
  color: var(--brand-strong);
}

.message.error {
  background: rgba(196, 75, 63, 0.12);
  color: var(--danger);
}

.message.success {
  background: rgba(21, 143, 98, 0.12);
  color: var(--success);
}

@media (max-width: 900px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .dashboard-grid.two-columns,
  .form-grid.two,
  .metric-grid {
    grid-template-columns: 1fr;
  }
}
