:root {
  color-scheme: dark;
  --bg: #0e1416;
  --bg-deep: #090f11;
  --surface: rgba(22, 29, 30, 0.65);
  --surface-strong: rgba(36, 43, 45, 0.78);
  --surface-soft: rgba(255, 255, 255, 0.035);
  --surface-hover: rgba(47, 54, 56, 0.72);
  --line: rgba(255, 255, 255, 0.05);
  --line-strong: rgba(138, 235, 255, 0.22);
  --text: #f8fafc;
  --text-soft: rgba(248, 250, 252, 0.78);
  --text-dim: rgba(255, 255, 255, 0.60);
  --primary: #8aebff;
  --primary-strong: #22d3ee;
  --primary-ink: #0e1416;
  --secondary: #c0c1ff;
  --success: #22c55e;
  --warning: #f59e0b;
  --danger: #fb7185;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
  --shadow-soft: 0 14px 38px rgba(0, 0, 0, 0.24);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
}

html {
  background: var(--bg);
}

body {
  font-family: "Source Sans 3", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(900px 460px at 80% -12%, rgba(34, 211, 238, 0.08), transparent 58%),
    linear-gradient(180deg, #0e1416 0%, #090f11 100%) !important;
}

body::before {
  background:
    linear-gradient(180deg, rgba(14, 20, 22, 0.18), rgba(9, 15, 17, 0.78)),
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.018) 0,
      rgba(255, 255, 255, 0.018) 1px,
      transparent 1px,
      transparent 96px
    ) !important;
}

a:hover {
  color: var(--primary);
}

.nav-shell,
.card,
.hero-card,
.panel,
.surface,
.metric-card,
.booking-card,
.expert-card,
.empty-state,
.auth-card,
.form-card,
.admin-card,
.toast {
  background: var(--surface) !important;
  border: 1px solid var(--line) !important;
  border-radius: var(--radius-md) !important;
  box-shadow: var(--shadow) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
}

.nav-shell {
  position: relative;
}

.brand-mark,
.brand-mark img {
  border-radius: var(--radius-sm) !important;
  background: rgba(9, 15, 17, 0.52) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

h1,
h2,
h3,
.brand-title,
.section-title,
.card-title {
  color: var(--text) !important;
  letter-spacing: 0 !important;
}

p,
.lead,
.subtitle,
.muted,
.field-help,
.brand-kicker,
.meta,
.empty-copy {
  color: var(--text-dim) !important;
}

.eyebrow,
.field-label {
  color: var(--primary) !important;
}

.btn,
button,
.nav-link {
  border-radius: var(--radius-sm) !important;
}

.btn,
.btn-ghost,
.nav-link,
button:not(.unstyled) {
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  background: rgba(22, 29, 30, 0.52) !important;
  color: var(--text) !important;
  box-shadow: none !important;
  transition: transform 150ms ease, background-color 150ms ease, border-color 150ms ease, color 150ms ease;
}

.btn:hover,
.btn-ghost:hover,
.nav-link:hover,
button:not(.unstyled):hover {
  transform: translateY(-1px);
  background: var(--surface-hover) !important;
  border-color: rgba(138, 235, 255, 0.24) !important;
}

.btn-primary,
.btn.cta,
.nav-link.active,
.badge.success,
.status-pill.success {
  border-color: rgba(34, 211, 238, 0.42) !important;
  background: var(--primary-strong) !important;
  color: var(--primary-ink) !important;
}

input,
select,
textarea,
.input,
.select {
  border-radius: var(--radius-sm) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  background: rgba(9, 15, 17, 0.72) !important;
  color: var(--text) !important;
  box-shadow: none !important;
}

input:focus,
select:focus,
textarea:focus,
.input:focus,
.select:focus {
  border-color: rgba(34, 211, 238, 0.56) !important;
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.12) !important;
  outline: none !important;
}

.badge,
.pill,
.status-pill,
.role-badge,
.tag {
  border: 1px solid rgba(255, 255, 255, 0.07) !important;
  background: rgba(22, 29, 30, 0.54) !important;
  color: var(--text-soft) !important;
  border-radius: 999px !important;
}

.badge.warning,
.status-pill.warning {
  border-color: rgba(245, 158, 11, 0.36) !important;
  background: rgba(245, 158, 11, 0.12) !important;
  color: #fde68a !important;
}

.badge.danger,
.status-pill.danger {
  border-color: rgba(251, 113, 133, 0.36) !important;
  background: rgba(251, 113, 133, 0.12) !important;
  color: #fecdd3 !important;
}

.progress,
.meter,
.progress-track {
  background: rgba(9, 15, 17, 0.86) !important;
  border-color: rgba(255, 255, 255, 0.06) !important;
}

.progress-bar,
.meter > span,
.progress-fill {
  background: linear-gradient(90deg, var(--primary-strong), var(--success)) !important;
}

@media (max-width: 760px) {
  .nav-shell,
  .card,
  .hero-card,
  .panel {
    border-radius: 10px !important;
  }
}
