:root {
  --bg: #05060f;
  --bg-top: #0b1021;
  --bg-mid: #05060f;
  --panel: rgba(18, 23, 38, 0.86);
  --panel-border: rgba(120, 144, 176, 0.18);
  --muted: #a5b4cf;
  --text: #f5f7fb;
  --text-soft: rgba(230, 234, 246, 0.7);
  --accent: #f4b860;
  --accent-strong: #ffdc8f;
  --accent-glow: rgba(244, 184, 96, 0.45);
  --danger: #f87171;
  --warn: #facc15;
  --ok: #4ade80;
  --card: #11182a;
  --border: #1f2a44;
  --chip: #162036;
  --shadow: 0 26px 60px rgba(6, 7, 13, 0.65);
  --shadow-soft: 0 16px 38px rgba(10, 12, 20, 0.45);
  --radius: 20px;
  --ink: #090c18;
  --glass-edge-strong: rgba(255, 255, 255, 0.14);
  --glass-edge-soft: rgba(255, 255, 255, 0.05);
  --glass-etch: rgba(255, 255, 255, 0.01);
  --glass-prism-warm: rgba(255, 206, 154, 0.12);
  --glass-prism-cool: rgba(164, 215, 255, 0.14);
  --glass-bloom-cool: rgba(88, 132, 255, 0.08);
  --glass-bloom-warm: rgba(255, 196, 140, 0.06);
  --glass-parallax-distance: 3px;
  --gradient-royal: linear-gradient(
    135deg,
    #1c2744 0%,
    #10182c 55%,
    rgba(11, 15, 26, 0.92) 100%
  );
  --gradient-gold: linear-gradient(
    120deg,
    #f4b860 0%,
    #fcd79d 45%,
    #f6c169 100%
  );
  --gradient-emerald: linear-gradient(
    135deg,
    #1b3a4b 0%,
    #174541 55%,
    #0f2f2b 100%
  );
}
* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
  min-height: 100vh;
  padding: 0;
  margin: 0;
  background: var(--bg);
}
body {
  margin: 0;
  font-family: "Plus Jakarta Sans", "Segoe UI", Roboto, Inter, system-ui,
    sans-serif;
  background: radial-gradient(
      circle at 22% -10%,
      rgba(244, 184, 96, 0.16),
      transparent 42%
    ),
    radial-gradient(
      circle at 85% 12%,
      rgba(73, 110, 255, 0.18),
      transparent 55%
    ),
    linear-gradient(160deg, var(--bg-top) 0%, var(--bg-mid) 55%, #03040c 100%);
  color: var(--text);
  letter-spacing: 0.01em;
  overflow: auto;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
      circle at 15% 18%,
      rgba(244, 184, 96, 0.1),
      transparent 54%
    ),
    radial-gradient(
      circle at 88% 4%,
      rgba(107, 143, 255, 0.12),
      transparent 52%
    );
  mix-blend-mode: screen;
  opacity: 0.65;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border: 1px solid rgba(244, 184, 96, 0.28);
  background: linear-gradient(
    135deg,
    rgba(28, 39, 68, 0.98),
    rgba(16, 24, 40, 0.92)
  );
  color: var(--text);
  font-weight: 600;
  letter-spacing: 0.24px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.2s ease,
    border-color 0.2s ease, color 0.2s ease;
  border-radius: 14px;
  text-transform: uppercase;
  font-size: 12px;
  text-decoration: none;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(9, 12, 22, 0.48);
  border-color: rgba(244, 184, 96, 0.45);
}
.btn:focus-visible {
  outline: 3px solid rgba(244, 184, 96, 0.85);
  outline-offset: 3px;
  box-shadow: 0 0 0 3px rgba(244, 184, 96, 0.18),
    0 18px 36px rgba(9, 12, 22, 0.48);
}
.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
.btn.primary {
  background: var(--gradient-royal);
  border-color: rgba(109, 142, 255, 0.38);
  color: #f6f8ff;
}
.btn.accent {
  background: var(--gradient-gold);
  border-color: rgba(244, 184, 96, 0.6);
  color: #1b1204;
  box-shadow: 0 10px 22px rgba(244, 184, 96, 0.22);
}
.btn.danger {
  background: linear-gradient(135deg, #3b0f13, #1f080a);
  border-color: rgba(248, 113, 113, 0.42);
  color: #fee2e2;
}
.btn.ghost {
  background: rgba(13, 20, 32, 0.4);
  border-color: rgba(109, 127, 165, 0.3);
}
.btn.subtle {
  padding: 8px 14px;
  height: auto;
  font-size: 12px;
  text-transform: none;
  border-radius: 12px;
}
.btn.ghost.subtle {
  border-color: rgba(132, 152, 189, 0.25);
  background: rgba(16, 23, 36, 0.55);
}
.btn.ghost.subtle:hover {
  border-color: rgba(208, 220, 248, 0.35);
  box-shadow: 0 14px 24px rgba(7, 10, 18, 0.32);
}

.site-header {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1200;
  backdrop-filter: blur(12px);
  background: rgba(5, 7, 14, 0.82);
  border-bottom: 1px solid rgba(244, 184, 96, 0.25);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 0 28px;
}
.nav-brand {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.brand-title {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 14px;
}
.brand-sub {
  font-size: 11px;
  letter-spacing: 0.1em;
  color: rgba(235, 240, 255, 0.65);
  text-transform: uppercase;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 1;
  justify-content: center;
}
.nav-links a {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(235, 240, 255, 0.75);
  text-decoration: none;
  transition: color 0.2s ease;
}
.nav-links a:hover {
  color: var(--accent);
}
.nav-links a:focus-visible,
.nav-cta a:focus-visible {
  outline: 2px solid rgba(244, 184, 96, 0.85);
  outline-offset: 4px;
}
.nav-links .subtle-home {
  display: none;
}
.app-page .nav-links .subtle-home {
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(235, 240, 255, 0.75);
  opacity: 0.95;
}
.app-page .nav-links .subtle-home:hover {
  color: var(--accent);
}
.nav-cta {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-cta .btn {
  height: 38px;
  padding: 0 18px;
  border-radius: 999px;
}
.nav-cta .btn.primary {
  min-width: 132px;
}
.nav-cta .launch-link,
.nav-cta #logoutBtn {
  min-width: 0;
  padding: 0 14px;
  justify-content: center;
  text-align: center;
}
.nav-cta .btn.ghost {
  border: 1px solid rgba(244, 184, 96, 0.35);
}
.nav-user-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(244, 184, 96, 0.25);
  background: rgba(12, 18, 32, 0.65);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: rgba(235, 240, 255, 0.8);
}
.nav-user-chip .status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(120, 210, 120, 0.9);
  box-shadow: 0 0 6px rgba(120, 210, 120, 0.6);
}
.nav-user-chip[hidden] {
  display: none !important;
}
.app-page .nav-cta .launch-link {
  display: none;
}
.nav-sticky {
  position: sticky;
}
.site-footer {
  padding: 18px 24px 24px;
  font-size: 12px;
  color: var(--text-soft);
  text-align: center;
  opacity: 0.9;
}

.hidden {
  display: none !important;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
