@import url("https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600;700&family=Sora:wght@500;600;700;800&family=Source+Sans+3:wght@400;500;600;700;800;900&display=swap");

:root {
  color-scheme: dark;
  --bg: #051424;
  --bg-deep: #010f1f;
  --surface: rgba(13, 28, 45, 0.70);
  --surface-strong: rgba(28, 43, 60, 0.72);
  --surface-soft: rgba(18, 33, 49, 0.46);
  --surface-hover: rgba(34, 211, 238, 0.12);
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(138, 235, 255, 0.30);
  --text: #f8fafc;
  --text-soft: rgba(212, 228, 250, 0.78);
  --text-dim: rgba(255, 255, 255, 0.50);
  --primary: #8aebff;
  --primary-strong: #22d3ee;
  --primary-ink: #001f25;
  --secondary: #bcc7de;
  --success: #22d3ee;
  --warning: #f59e0b;
  --danger: #fb7185;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
  --shadow-soft: 0 16px 48px rgba(0, 0, 0, 0.34);
  --radius-sm: 8px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
}

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(circle at 50% -20%, rgba(34, 211, 238, 0.14), transparent 28rem),
    radial-gradient(circle at 85% 12%, rgba(138, 235, 255, 0.08), transparent 24rem),
    linear-gradient(180deg, #051424 0%, #010f1f 100%) !important;
  letter-spacing: 0.01em;
}

body::before {
  content: "" !important;
  position: fixed !important;
  inset: 0 !important;
  pointer-events: none !important;
  z-index: 0 !important;
  background:
    linear-gradient(rgba(138, 235, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(138, 235, 255, 0.045) 1px, transparent 1px),
    radial-gradient(circle at center, transparent 0, rgba(1, 15, 31, 0.40) 72%) !important;
  background-size: 20px 20px, 20px 20px, 100% 100% !important;
}

h1,
h2,
h3,
.brand-title,
.section-title,
.card-title {
  font-family: "Sora", "Source Sans 3", system-ui, sans-serif !important;
  letter-spacing: -0.02em !important;
  color: var(--text) !important;
}

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

.eyebrow,
.field-label,
.badge,
.pill,
.status-pill,
.role-badge,
.tag {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace !important;
  text-transform: uppercase;
  letter-spacing: 0.08em !important;
}

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

.nav-shell,
.card,
.hero-card,
.panel,
.surface,
.metric-card,
.booking-card,
.expert-card,
.empty-state,
.auth-card,
.form-card,
.admin-card,
.toast {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(13, 28, 45, 0.82), rgba(13, 28, 45, 0.54)) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: var(--radius-md) !important;
  box-shadow: var(--shadow), inset 0 1px 0 rgba(138, 235, 255, 0.08) !important;
  backdrop-filter: blur(20px) saturate(125%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(125%) !important;
}

.nav-shell::before,
.card::before,
.hero-card::before,
.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(138, 235, 255, 0.34), rgba(255, 255, 255, 0.06) 34%, rgba(138, 235, 255, 0.02) 68%, rgba(251, 113, 133, 0.12));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

.nav-shell::after,
.card::after,
.hero-card::after,
.panel::after {
  content: "";
  position: absolute;
  left: -20%;
  right: -20%;
  top: -1px;
  height: 1px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.55), transparent);
  opacity: 0.45;
}

.brand-title {
  font-family: "Sora", "Source Sans 3", sans-serif !important;
}

.brand-mark,
.brand-mark img {
  border-radius: var(--radius-sm) !important;
  background: rgba(1, 15, 31, 0.62) !important;
  border-color: rgba(138, 235, 255, 0.16) !important;
}

.btn,
.btn-ghost,
.nav-link,
button:not(.unstyled) {
  border-radius: var(--radius-sm) !important;
  border: 1px solid rgba(138, 235, 255, 0.18) !important;
  background: linear-gradient(180deg, rgba(13, 28, 45, 0.76), rgba(1, 15, 31, 0.62)) !important;
  color: var(--text-soft) !important;
  box-shadow: none !important;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}

.btn:hover,
.btn-ghost:hover,
.nav-link:hover,
button:not(.unstyled):hover {
  transform: translateY(-1px);
  background: linear-gradient(180deg, rgba(34, 211, 238, 0.16), rgba(13, 28, 45, 0.80)) !important;
  border-color: rgba(34, 211, 238, 0.62) !important;
  box-shadow: 0 0 24px rgba(34, 211, 238, 0.14) !important;
}

.btn-primary,
.btn.cta,
.nav-link.active,
.badge.success,
.status-pill.success {
  border-color: rgba(34, 211, 238, 0.78) !important;
  background: linear-gradient(180deg, rgba(34, 211, 238, 0.98), rgba(47, 217, 244, 0.78)) !important;
  color: var(--primary-ink) !important;
}

input,
select,
textarea,
.input,
.select {
  border-radius: var(--radius-sm) !important;
  border: 1px solid rgba(138, 235, 255, 0.12) !important;
  border-bottom-color: rgba(34, 211, 238, 0.34) !important;
  background: rgba(1, 15, 31, 0.68) !important;
  color: var(--text) !important;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.02) !important;
}

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

.badge,
.pill,
.status-pill,
.role-badge,
.tag {
  border: 1px solid rgba(138, 235, 255, 0.14) !important;
  background: rgba(13, 28, 45, 0.54) !important;
  color: var(--text-soft) !important;
  border-radius: 999px !important;
}

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

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

.progress,
.meter,
.progress-track {
  background:
    repeating-linear-gradient(90deg, rgba(138, 235, 255, 0.08) 0 1px, transparent 1px 5%),
    rgba(1, 15, 31, 0.70) !important;
  border-color: rgba(138, 235, 255, 0.10) !important;
}

.progress-bar,
.meter > span,
.progress-fill {
  background:
    repeating-linear-gradient(90deg, rgba(34, 211, 238, 0.98) 0 12px, rgba(34, 211, 238, 0.20) 12px 15px) !important;
}

@media (max-width: 760px) {
  body {
    letter-spacing: 0;
  }
}

/* UX fix: remove the moving scan line that could read as a vertical glitch. */
.nav-shell::after,
.card::after,
.hero-card::after,
.panel::after {
  display: none !important;
  content: none !important;
}
