/* Atlas — dark base + glowing blue, calm + visual-first.
   Same design vocabulary as Argus's orange palette, shifted to cyan-blue.
   Principles for Frank's dyslexic 3D-thinker brain:
   - Big visual first, dense text last
   - Every section has an icon + colour code, not just words
   - Cards are the unit of meaning; one decision per card
   - Subtle motion communicates "live" without distracting
*/

:root {
  --bg-base:      #06060a;   /* near-black with hint of blue */
  --bg-elevated:  #0d1018;   /* card surface */
  --bg-deep:      #03040a;   /* darker recess */

  --primary:      #5dd6e8;   /* glowing cyan — the Atlas signature */
  --primary-2:    #4a8aff;   /* deeper sapphire */
  --primary-3:    #7b9bff;   /* lighter periwinkle for accents */
  --gold:         #ffd14d;   /* milestones / caps reached */
  --green:        #5dd6a8;   /* positive deltas */
  --red:          #ff5e6c;   /* warnings */
  --amber:        #ff8a3d;   /* attention */
  --violet:       #b18cff;   /* meta / wrappers */

  --text-1:       #eaf3ff;
  --text-2:       #b6c4d8;
  --text-3:       #6b7a90;
  --text-mute:    #4a5566;

  --border:       rgba(93, 214, 232, 0.15);
  --glow:         rgba(93, 214, 232, 0.45);
  --glow-soft:    rgba(93, 214, 232, 0.18);

  --radius-sm:    6px;
  --radius:       12px;
  --radius-lg:    20px;

  --space-1:      4px;
  --space-2:      8px;
  --space-3:      12px;
  --space-4:      16px;
  --space-5:      24px;
  --space-6:      32px;
  --space-7:      48px;

  --font-display: 'Cinzel', 'Inter', -apple-system, sans-serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono:    'JetBrains Mono', 'SF Mono', Menlo, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--bg-base);
  color: var(--text-1);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

body {
  background:
    radial-gradient(circle at 15% 0%, rgba(74, 138, 255, 0.10) 0%, transparent 35%),
    radial-gradient(circle at 85% 100%, rgba(93, 214, 232, 0.08) 0%, transparent 40%),
    var(--bg-base);
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-3); }

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  background: var(--bg-deep);
  border: 1px solid var(--border);
  color: var(--text-1);
  border-radius: var(--radius-sm);
  padding: var(--space-3);
  width: 100%;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--glow-soft);
}
input[type="checkbox"] { width: auto; }

/* ── App shell ───────────────────────────────────────────────────── */

.shell {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
}

.sidebar {
  background:
    linear-gradient(180deg,
      rgba(74, 138, 255, 0.06) 0%,
      transparent 50%),
    var(--bg-deep);
  border-right: 1px solid var(--border);
  padding: var(--space-5);
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-7);
  text-decoration: none;
  color: var(--text-1);
}
.sidebar-brand-mark {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  filter: drop-shadow(0 0 12px var(--glow));
}
.sidebar-brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.08em;
  color: var(--primary);
  text-shadow: 0 0 16px var(--glow-soft);
}

.sidebar-nav { display: flex; flex-direction: column; gap: var(--space-1); }
.sidebar-link {
  display: flex; align-items: center; gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-sm);
  color: var(--text-2);
  transition: background 0.18s, color 0.18s, transform 0.18s;
}
.sidebar-link:hover {
  background: rgba(93, 214, 232, 0.06);
  color: var(--text-1);
}
.sidebar-link.active {
  background: linear-gradient(90deg, var(--glow-soft), transparent);
  color: var(--primary);
  border-left: 3px solid var(--primary);
  padding-left: calc(var(--space-4) - 3px);
}
.sidebar-link-icon { width: 20px; text-align: center; opacity: 0.85; }

.main {
  padding: var(--space-6);
  max-width: 1400px;
}

h1.page-title {
  font-family: var(--font-display);
  font-size: 32px;
  letter-spacing: 0.04em;
  color: var(--primary);
  text-shadow: 0 0 24px var(--glow);
  margin-bottom: var(--space-2);
  animation: glow-breathe 5s ease-in-out infinite;
}

@keyframes glow-breathe {
  0%, 100% { text-shadow: 0 0 18px var(--glow); }
  50%      { text-shadow: 0 0 32px var(--glow), 0 0 64px var(--glow-soft); }
}

p.page-sub {
  color: var(--text-3);
  margin-bottom: var(--space-6);
  font-size: 14px;
}

/* ── Cards ────────────────────────────────────────────────────────── */

.card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-5);
  position: relative;
  transition: border-color 0.25s, transform 0.25s;
  margin-bottom: var(--space-5);
}
.card:hover { border-color: rgba(93, 214, 232, 0.30); }

.card-title {
  display: flex; align-items: center; gap: var(--space-3);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-2);
  margin-bottom: var(--space-4);
}
.card-title-icon { font-size: 18px; }

/* Headline card — net worth top of dashboard */
.headline-card {
  background:
    radial-gradient(circle at 70% 0%,
      rgba(93, 214, 232, 0.14) 0%,
      transparent 60%),
    var(--bg-elevated);
  padding: var(--space-6);
}
.headline-value {
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--primary);
  text-shadow: 0 0 32px var(--glow);
  font-variant-numeric: tabular-nums;
  display: flex; align-items: baseline; gap: var(--space-3);
}
.headline-meta {
  display: flex; flex-wrap: wrap; gap: var(--space-6);
  margin-top: var(--space-4);
}
.headline-meta-item label {
  font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--text-3);
}
.headline-meta-item strong {
  display: block;
  font-size: 18px;
  font-weight: 500;
  color: var(--text-1);
  font-variant-numeric: tabular-nums;
}

.headline-pip {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  padding: 3px 8px;
  border-radius: 10px;
  text-transform: uppercase;
  background: rgba(93, 214, 168, 0.10);
  color: var(--green);
  border: 1px solid rgba(93, 214, 168, 0.35);
}
.headline-pip .live-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--green);
  animation: live-pulse 1.6s ease-in-out infinite;
}
@keyframes live-pulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(93, 214, 168, 0.6); transform: scale(1); }
  70%     { box-shadow: 0 0 0 10px rgba(93, 214, 168, 0); transform: scale(1.1); }
}

/* ── Milestone strip ───────────────────────────────────────────── */

.milestones {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-3);
  margin-top: var(--space-4);
}
.milestone {
  background: rgba(93, 214, 232, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: var(--space-3);
  transition: border-color 0.2s;
}
.milestone:hover { border-color: rgba(93, 214, 232, 0.30); }
.milestone-label {
  font-size: 11px; letter-spacing: 0.06em;
  color: var(--text-3); margin-bottom: 2px;
}
.milestone-years {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}
.milestone-years .unit { font-size: 12px; color: var(--text-3); margin-left: 4px; }

/* ── Grids ─────────────────────────────────────────────────────── */

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }
.grid-auto {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-5);
}

/* ── Pot / account row ─────────────────────────────────────────── */

.pot-row {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: var(--bg-elevated);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--primary-2);
  margin-bottom: var(--space-2);
}
.pot-row.mode-auto      { border-left-color: var(--green); }
.pot-row.mode-advisor   { border-left-color: var(--gold); }
.pot-row.mode-passive   { border-left-color: var(--text-3); }
.pot-row.mode-tracker   { border-left-color: var(--violet); }

.pot-icon { font-size: 18px; opacity: 0.8; }
.pot-meta { display: flex; flex-direction: column; gap: 2px; }
.pot-label { font-weight: 600; }
.pot-sub { font-size: 11px; color: var(--text-3); }
.pot-balance {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}
.pot-mode-pill {
  font-size: 9px; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 2px 8px; border-radius: 8px;
  border: 1px solid currentColor;
}

/* ── Buttons ───────────────────────────────────────────────────── */

.btn {
  display: inline-flex; align-items: center; gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.04em;
  transition: background 0.2s, color 0.2s, transform 0.15s;
  border: 1px solid var(--border);
  background: var(--bg-deep);
  color: var(--text-1);
}
.btn:hover { border-color: var(--primary); color: var(--primary); }
.btn:active { transform: scale(0.97); }
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: var(--bg-base);
  border: none;
  box-shadow: 0 0 18px var(--glow-soft);
}
.btn-primary:hover {
  filter: brightness(1.1);
  color: var(--bg-base);
  box-shadow: 0 0 28px var(--glow);
}

/* ── Decision tile ──────────────────────────────────────────────── */

.decision {
  display: flex; gap: var(--space-3); align-items: flex-start;
  padding: var(--space-4);
  border-radius: var(--radius-sm);
  background: rgba(93, 214, 232, 0.04);
  border-left: 3px solid var(--primary-2);
  margin-bottom: var(--space-3);
  transition: background 0.2s;
}
.decision.urgency-high   { border-left-color: var(--red); }
.decision.urgency-medium { border-left-color: var(--gold); }
.decision.urgency-low    { border-left-color: var(--text-3); }
.decision:hover { background: rgba(93, 214, 232, 0.10); }
.decision-body { flex: 1; }
.decision-title { font-weight: 600; }
.decision-meta { font-size: 11px; color: var(--text-3); margin-top: 4px; }

/* ── Intake form ───────────────────────────────────────────────── */

.intake-progress {
  display: flex; gap: var(--space-2); flex-wrap: wrap;
  margin-bottom: var(--space-5);
}
.intake-section-pill {
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex; align-items: center; gap: var(--space-2);
}
.intake-section-pill.completed {
  background: rgba(93, 214, 168, 0.10);
  border-color: rgba(93, 214, 168, 0.40);
  color: var(--green);
}
.intake-section-pill.active {
  background: var(--glow-soft);
  border-color: var(--primary);
  color: var(--primary);
}

.intake-form .form-row {
  margin-bottom: var(--space-4);
}
.intake-form label.field-label {
  display: block;
  font-size: 13px;
  color: var(--text-2);
  margin-bottom: var(--space-2);
  letter-spacing: 0.02em;
}
.intake-form .field-help {
  font-size: 11px;
  color: var(--text-3);
  margin-top: 4px;
}

.intake-list-item {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
  padding: var(--space-3);
  background: var(--bg-deep);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-3);
  position: relative;
}
.intake-list-item-remove {
  position: absolute; top: 8px; right: 8px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(255, 94, 108, 0.12);
  color: var(--red);
  font-size: 14px;
  display: flex; align-items: center; justify-content: center;
}
.intake-list-add {
  display: block; text-align: center;
  padding: var(--space-3);
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-3);
  width: 100%;
}
.intake-list-add:hover { color: var(--primary); border-color: var(--primary); }

/* ── Empty / loading ──────────────────────────────────────────── */

.empty-state {
  text-align: center;
  padding: var(--space-7) var(--space-5);
  color: var(--text-3);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
}

/* ── Mobile ────────────────────────────────────────────────────── */

@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed; bottom: 0; left: 0; right: 0;
    top: auto; height: auto;
    padding: var(--space-2);
    border-right: none;
    border-top: 1px solid var(--border);
    z-index: 50;
  }
  .sidebar-brand { display: none; }
  .sidebar-nav {
    flex-direction: row; justify-content: space-around;
  }
  .sidebar-link {
    flex-direction: column;
    gap: 2px; padding: var(--space-2);
    font-size: 10px; letter-spacing: 0.05em;
    border-left: none;
  }
  .sidebar-link.active {
    border-left: none;
    border-top: 2px solid var(--primary);
    padding-top: calc(var(--space-2) - 2px);
    background: transparent;
  }
  .sidebar-link-icon { font-size: 20px; }
  .main { padding: var(--space-4); padding-bottom: 88px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .headline-value { font-size: 40px; }
  .headline-meta { gap: var(--space-3); }
}

/* ── Particle drift backdrop ───────────────────────────────────── */

.particle-bg {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.particle-bg svg { width: 100%; height: 100%; }
.particle {
  fill: var(--primary);
  opacity: 0.18;
  animation: drift 18s linear infinite;
}
@keyframes drift {
  0%   { transform: translate(0,0); opacity: 0.0; }
  10%  { opacity: 0.18; }
  90%  { opacity: 0.10; }
  100% { transform: translate(var(--dx), var(--dy)); opacity: 0; }
}

.shell, .login-wrap { position: relative; z-index: 1; }

/* ── Login ─────────────────────────────────────────────────────── */

.login-wrap {
  display: flex; align-items: center; justify-content: center;
  min-height: 100vh;
  padding: var(--space-5);
}
.login-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-7);
  max-width: 380px; width: 100%;
  box-shadow: 0 0 60px rgba(93, 214, 232, 0.10);
  text-align: center;
}
.login-mark {
  width: 80px; height: 80px;
  margin: 0 auto var(--space-4);
  filter: drop-shadow(0 0 24px var(--glow));
  animation: glow-breathe 4s ease-in-out infinite;
}
.login-title {
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: 0.10em;
  color: var(--primary);
  margin-bottom: var(--space-2);
}
.login-sub {
  color: var(--text-3);
  font-size: 13px;
  margin-bottom: var(--space-6);
}
.login-pin {
  font-family: var(--font-mono);
  font-size: 28px;
  letter-spacing: 0.4em;
  text-align: center;
  background: var(--bg-deep);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: var(--space-4);
  width: 100%;
  margin-bottom: var(--space-4);
}
.login-pin:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--glow-soft);
}
.login-error {
  color: var(--red);
  font-size: 13px;
  min-height: 1.5em;
  margin-bottom: var(--space-3);
}

/* ── Sparkline / chart ─────────────────────────────────────────── */

.sparkline { width: 100%; height: 60px; }
.sparkline-line { fill: none; stroke: var(--primary); stroke-width: 2; }
.sparkline-fill {
  fill: url(#sparkGradient);
}

/* ── Utility ───────────────────────────────────────────────────── */

.text-mono { font-family: var(--font-mono); }
.text-mute { color: var(--text-3); }
.text-green { color: var(--green); }
.text-red { color: var(--red); }
.text-gold { color: var(--gold); }
.right { text-align: right; }
.flex { display: flex; }
.flex-1 { flex: 1; }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.mt-3 { margin-top: var(--space-3); }
.mt-5 { margin-top: var(--space-5); }
.hidden { display: none !important; }

/* ═══════════════════════════════════════════════════════════════════
   Atlas — visual identity v2: glow, breath, gradient depth.
   Cyan #5dd6e8 + sapphire #4a8aff on near-black #06060a.
   ═══════════════════════════════════════════════════════════════════ */

.ambient {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  overflow: hidden;
}
.glow {
  position: absolute; border-radius: 50%; filter: blur(80px);
  mix-blend-mode: screen; opacity: 0.55;
}
.glow-a {
  width: 60vw; height: 60vw; left: -10vw; top: -20vw;
  background: radial-gradient(circle, rgba(93,214,232,0.32), transparent 60%);
  animation: drift-a 28s ease-in-out infinite alternate;
}
.glow-b {
  width: 50vw; height: 50vw; right: -8vw; bottom: -15vw;
  background: radial-gradient(circle, rgba(74,138,255,0.22), transparent 60%);
  animation: drift-b 36s ease-in-out infinite alternate;
}
@keyframes drift-a { 0%{transform:translate(0,0) scale(1);} 100%{transform:translate(8vw,6vw) scale(1.08);} }
@keyframes drift-b { 0%{transform:translate(0,0) scale(1);} 100%{transform:translate(-6vw,-4vw) scale(1.12);} }

.shell, .main, .sidebar { position: relative; z-index: 1; }

.sidebar {
  background: linear-gradient(180deg, rgba(10,18,26,0.74) 0%, rgba(6,10,14,0.92) 100%);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border-right: 1px solid rgba(93,214,232,0.12);
  box-shadow: inset -1px 0 0 rgba(74,138,255,0.04), 4px 0 24px rgba(0,0,0,0.35);
}
.sidebar-brand-mark {
  filter: drop-shadow(0 0 8px rgba(93,214,232,0.55));
  transition: filter 200ms;
}
.sidebar-brand:hover .sidebar-brand-mark {
  filter: drop-shadow(0 0 14px rgba(93,214,232,0.85));
}
.sidebar-brand-name {
  font-family: 'Cinzel', serif; font-weight: 700;
  letter-spacing: 0.18em; font-size: 14px;
  background: linear-gradient(135deg, #5dd6e8 0%, #4a8aff 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.sidebar-link-icon { display: none; }
.sidebar-link {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: 10px;
  color: rgba(214,232,240,0.72);
  font-size: 13.5px; font-weight: 500;
  text-decoration: none; border: 1px solid transparent;
  transition: background 180ms, color 180ms, border-color 180ms;
  position: relative;
}
.sidebar-link .ico { width: 18px; height: 18px; flex-shrink: 0; color: rgba(178,206,222,0.7); transition: color 180ms; }
.sidebar-link:hover { background: rgba(93,214,232,0.07); color: #e6f3f9; }
.sidebar-link:hover .ico { color: #5dd6e8; }
.sidebar-link.active {
  background: linear-gradient(90deg, rgba(93,214,232,0.18) 0%, rgba(93,214,232,0.04) 100%);
  border-color: rgba(93,214,232,0.32); color: #fff;
  box-shadow: inset 0 0 16px rgba(93,214,232,0.12), 0 0 0 1px rgba(93,214,232,0.18);
}
.sidebar-link.active .ico { color: #5dd6e8; filter: drop-shadow(0 0 4px rgba(93,214,232,0.7)); }
.sidebar-link.active::before {
  content: ''; position: absolute; left: 0; top: 8px; bottom: 8px;
  width: 2px; border-radius: 2px;
  background: linear-gradient(180deg, #5dd6e8, #4a8aff);
  box-shadow: 0 0 8px rgba(93,214,232,0.7);
}

.sidebar-foot {
  margin-top: auto; padding: 14px 16px 18px;
  border-top: 1px solid rgba(93,214,232,0.08);
}
.sidebar-foot-line { display: flex; gap: 8px; align-items: center; font-size: 11.5px; font-weight: 600; color: #d8e6ee; }
.sidebar-foot-sub { font-size: 10.5px; color: rgba(178,206,222,0.55); margin-top: 2px; letter-spacing: 0.05em; }
.ico-spark { width: 16px; height: 16px; }

.page-title {
  font-family: 'Cinzel', serif; font-weight: 700;
  font-size: 28px; letter-spacing: 0.06em;
  margin: 0 0 4px;
  background: linear-gradient(135deg, #ffffff 0%, #b6dcef 60%, #4a8aff 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 16px rgba(93,214,232,0.18));
}
.page-sub { color: rgba(190,215,225,0.62); font-size: 13.5px; margin: 0 0 22px; letter-spacing: 0.02em; }

.card {
  position: relative;
  background: linear-gradient(160deg, rgba(15,22,30,0.82) 0%, rgba(8,14,20,0.92) 100%);
  border: 1px solid rgba(93,214,232,0.12);
  border-radius: 14px;
  padding: 18px 18px 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.32),
              inset 0 1px 0 rgba(255,255,255,0.04),
              inset 0 0 32px rgba(93,214,232,0.04);
  backdrop-filter: blur(8px);
  animation: breath-in 520ms cubic-bezier(0.25,0.8,0.25,1) backwards;
}
.card::before {
  content: ''; position: absolute; inset: -1px;
  border-radius: inherit; padding: 1px;
  background: linear-gradient(135deg, rgba(93,214,232,0.32), rgba(74,138,255,0.18) 50%, transparent 80%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none; opacity: 0.6;
}
.card:nth-child(1){animation-delay:0ms;}
.card:nth-child(2){animation-delay:60ms;}
.card:nth-child(3){animation-delay:120ms;}
.card:nth-child(4){animation-delay:180ms;}
.card:nth-child(5){animation-delay:240ms;}
.card:nth-child(6){animation-delay:300ms;}
@keyframes breath-in {
  from { opacity: 0; transform: translateY(8px) scale(0.99); filter: blur(2px); }
  to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

.card-title {
  font-family: 'Inter', sans-serif; font-weight: 600; font-size: 11.5px;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: rgba(178,206,222,0.7);
  margin-bottom: 12px;
  display: flex; align-items: center; gap: 8px;
}
.card-title::before {
  content: ''; width: 4px; height: 4px; border-radius: 50%;
  background: #5dd6e8; box-shadow: 0 0 8px #5dd6e8;
}

.hero {
  position: relative;
  display: grid; grid-template-columns: 1fr auto;
  align-items: center; gap: 24px;
  padding: 28px 32px 26px; margin: 0 0 28px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(93,214,232,0.10) 0%, rgba(15,22,30,0.85) 50%, rgba(74,138,255,0.06) 100%);
  border: 1px solid rgba(93,214,232,0.14);
  overflow: hidden;
  animation: breath-in 720ms cubic-bezier(0.25,0.8,0.25,1) backwards;
}
.hero::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 20% 50%, rgba(93,214,232,0.16), transparent 50%);
  pointer-events: none;
}
.hero-text { position: relative; z-index: 1; }
.hero-greet {
  font-family: 'Cinzel', serif; font-size: 26px; font-weight: 600; letter-spacing: 0.04em;
  background: linear-gradient(135deg, #fff, #b6dcef 50%, #4a8aff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { font-size: 13.5px; color: rgba(200,225,235,0.7); margin-top: 4px; }
.hero-orb { position: relative; width: 96px; height: 96px; flex-shrink: 0; }
.hero-orb-ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 1px solid rgba(93,214,232,0.35);
  animation: pulse-ring 3.4s ease-in-out infinite;
}
.hero-orb-ring.delay { animation-delay: 1.7s; }
.hero-orb-core {
  position: absolute; inset: 18px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #d6f4fa 0%, #5dd6e8 40%, #2c84a9 100%);
  box-shadow: 0 0 28px rgba(93,214,232,0.55), inset 0 0 16px rgba(255,255,255,0.18);
  animation: pulse-core 3.4s ease-in-out infinite;
}
@keyframes pulse-ring { 0%,100%{transform:scale(1);opacity:0.65;} 50%{transform:scale(1.18);opacity:0;} }
@keyframes pulse-core {
  0%,100%{transform:scale(1);box-shadow:0 0 28px rgba(93,214,232,0.55), inset 0 0 16px rgba(255,255,255,0.18);}
  50%{transform:scale(1.04);box-shadow:0 0 38px rgba(93,214,232,0.85), inset 0 0 22px rgba(255,255,255,0.30);}
}

.tile-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px; margin-bottom: 24px;
}
.summary-tile {
  position: relative; padding: 16px 14px; border-radius: 12px;
  background: linear-gradient(160deg, rgba(15,22,30,0.7), rgba(8,14,20,0.9));
  border: 1px solid rgba(93,214,232,0.10);
  text-align: center;
  transition: transform 200ms, border-color 200ms, box-shadow 200ms;
  animation: breath-in 600ms cubic-bezier(0.25,0.8,0.25,1) backwards;
}
.summary-tile:hover {
  transform: translateY(-2px);
  border-color: rgba(93,214,232,0.32);
  box-shadow: 0 0 24px rgba(93,214,232,0.15);
}
.summary-tile-num {
  font-family: 'JetBrains Mono', monospace; font-size: 26px; font-weight: 700;
  background: linear-gradient(135deg, #5dd6e8, #4a8aff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  letter-spacing: -0.01em;
}
.summary-tile-label { font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.14em; color: rgba(178,206,222,0.62); margin-top: 4px; }

.row {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 12px; margin-bottom: 6px;
  border-radius: 10px;
  background: rgba(15,22,30,0.55);
  border: 1px solid transparent;
  transition: background 180ms, border-color 180ms, transform 180ms;
}
.row:hover { background: rgba(93,214,232,0.06); border-color: rgba(93,214,232,0.18); transform: translateX(2px); }
.row-icon {
  width: 32px; height: 32px;
  display: grid; place-items: center; border-radius: 8px;
  background: linear-gradient(135deg, rgba(93,214,232,0.15), rgba(74,138,255,0.05));
  border: 1px solid rgba(93,214,232,0.18);
  flex-shrink: 0;
}
.row-icon .ico { width: 16px; height: 16px; color: #5dd6e8; }
.row-meta { flex: 1; min-width: 0; }
.row-label { font-size: 13.5px; font-weight: 500; color: #e6f3f9; }
.row-sub { font-size: 11.5px; color: rgba(178,206,222,0.55); margin-top: 1px; }

.btn-primary {
  background: linear-gradient(135deg, #5dd6e8, #4a8aff);
  color: #06060a; font-weight: 600;
  box-shadow: 0 0 0 1px rgba(93,214,232,0.4), 0 4px 16px rgba(93,214,232,0.25);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #6ce0f0, #5da0ff);
  box-shadow: 0 0 0 1px rgba(93,214,232,0.6), 0 6px 22px rgba(93,214,232,0.4);
}
.btn-ghost { background: rgba(93,214,232,0.06); color: #c8e0e8; border-color: rgba(93,214,232,0.2); }
.btn-ghost:hover { background: rgba(93,214,232,0.12); border-color: rgba(93,214,232,0.4); }

.ico { width: 20px; height: 20px; display: inline-block; vertical-align: middle; }

/* Chat dock — cyan version */
.chat-toggle {
  position: fixed; bottom: 24px; right: 24px;
  width: 60px; height: 60px; border-radius: 50%;
  background: linear-gradient(135deg, #5dd6e8, #4a8aff);
  border: none; cursor: pointer;
  z-index: 50; display: grid; place-items: center; color: #06060a;
  box-shadow: 0 0 0 1px rgba(93,214,232,0.5), 0 8px 28px rgba(93,214,232,0.45), 0 0 40px rgba(74,138,255,0.25);
  transition: transform 220ms cubic-bezier(0.34,1.56,0.64,1), box-shadow 220ms;
}
.chat-toggle:hover {
  transform: scale(1.06);
  box-shadow: 0 0 0 1px rgba(93,214,232,0.8), 0 10px 36px rgba(93,214,232,0.6), 0 0 60px rgba(74,138,255,0.4);
}
.chat-toggle .ico { width: 24px; height: 24px; }
.chat-toggle-pulse { position: absolute; inset: -4px; border-radius: 50%; border: 1px solid rgba(93,214,232,0.6); animation: pulse-ring 2.6s ease-in-out infinite; pointer-events: none; }
.chat-toggle.hidden { display: none; }

.chat-dock {
  position: fixed; bottom: 24px; right: 24px;
  width: 380px; max-width: calc(100vw - 32px);
  height: min(620px, calc(100vh - 48px));
  display: flex; flex-direction: column;
  background: linear-gradient(180deg, rgba(10,18,26,0.94) 0%, rgba(6,10,14,0.97) 100%);
  border: 1px solid rgba(93,214,232,0.28);
  border-radius: 18px;
  box-shadow: 0 0 0 1px rgba(93,214,232,0.18), 0 24px 60px rgba(0,0,0,0.55), 0 0 60px rgba(74,138,255,0.20);
  backdrop-filter: blur(16px);
  z-index: 60; overflow: hidden;
  transform: translateY(20px) scale(0.96); opacity: 0;
  transition: transform 240ms cubic-bezier(0.34,1.56,0.64,1), opacity 240ms;
  pointer-events: none;
}
.chat-dock.open { transform: translateY(0) scale(1); opacity: 1; pointer-events: auto; }
.chat-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(93,214,232,0.14);
  background: linear-gradient(90deg, rgba(93,214,232,0.10), transparent);
}
.chat-head-id { display: flex; gap: 12px; align-items: center; }
.chat-head-id .ico-spark {
  width: 28px; height: 28px;
  filter: drop-shadow(0 0 8px rgba(93,214,232,0.8));
  animation: pulse-core 4s ease-in-out infinite;
}
.chat-head-title {
  font-family: 'Cinzel', serif; font-size: 15px; font-weight: 600;
  background: linear-gradient(135deg, #fff, #5dd6e8, #4a8aff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.chat-head-sub { font-size: 10.5px; color: rgba(178,206,222,0.6); letter-spacing: 0.04em; }
.chat-close {
  background: transparent; border: none; cursor: pointer;
  width: 32px; height: 32px; border-radius: 8px;
  display: grid; place-items: center; color: rgba(178,206,222,0.6);
  transition: background 180ms, color 180ms;
}
.chat-close:hover { background: rgba(93,214,232,0.10); color: #fff; }
.chat-log {
  flex: 1; padding: 16px; overflow-y: auto;
  display: flex; flex-direction: column; gap: 10px;
  scrollbar-width: thin; scrollbar-color: rgba(93,214,232,0.3) transparent;
}
.chat-log::-webkit-scrollbar { width: 6px; }
.chat-log::-webkit-scrollbar-thumb { background: rgba(93,214,232,0.3); border-radius: 3px; }
.msg { max-width: 86%; padding: 10px 13px; border-radius: 14px; font-size: 13.5px; line-height: 1.5; animation: msg-in 320ms cubic-bezier(0.25,0.8,0.25,1) backwards; }
@keyframes msg-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.msg-user {
  align-self: flex-end;
  background: linear-gradient(135deg, #5dd6e8, #4a8aff);
  color: #06060a;
  border-bottom-right-radius: 4px;
  font-weight: 500;
  box-shadow: 0 4px 14px rgba(93,214,232,0.25);
}
.msg-assistant {
  align-self: flex-start;
  background: rgba(15,22,30,0.85);
  border: 1px solid rgba(93,214,232,0.18);
  color: #e6f3f9;
  border-bottom-left-radius: 4px;
  white-space: pre-wrap;
}
.msg-typing { align-self: flex-start; display: flex; gap: 5px; padding: 12px 14px; background: rgba(15,22,30,0.85); border: 1px solid rgba(93,214,232,0.18); border-radius: 14px; border-bottom-left-radius: 4px; }
.msg-typing span { width: 6px; height: 6px; border-radius: 50%; background: #5dd6e8; animation: typing 1.2s ease-in-out infinite; }
.msg-typing span:nth-child(2) { animation-delay: 0.18s; }
.msg-typing span:nth-child(3) { animation-delay: 0.36s; }
@keyframes typing { 0%,60%,100%{opacity:0.3;transform:translateY(0);} 30%{opacity:1;transform:translateY(-3px);} }
.chat-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid rgba(93,214,232,0.14); }
.chat-input {
  flex: 1; padding: 11px 14px; border-radius: 10px;
  background: rgba(6,10,14,0.85);
  border: 1px solid rgba(93,214,232,0.18);
  color: #e6f3f9; font-size: 13.5px; font-family: inherit;
  transition: border-color 180ms, box-shadow 180ms;
}
.chat-input:focus { outline: none; border-color: rgba(93,214,232,0.55); box-shadow: 0 0 0 3px rgba(93,214,232,0.12); }
.chat-send {
  width: 42px; height: 42px; border-radius: 10px;
  background: linear-gradient(135deg, #5dd6e8, #4a8aff);
  border: none; cursor: pointer; color: #06060a;
  display: grid; place-items: center;
  transition: transform 120ms, box-shadow 180ms;
}
.chat-send:hover { box-shadow: 0 0 16px rgba(93,214,232,0.55); }
.chat-send:active { transform: scale(0.96); }
.chat-send .ico { width: 18px; height: 18px; }

@media (max-width: 700px) {
  .chat-dock { bottom: 0; right: 0; width: 100vw; height: 100vh; max-width: 100vw; border-radius: 0; }
  .chat-toggle { bottom: 16px; right: 16px; }
}

/* ── v2.1: brand orb + sidebar polish + hero gold-spark variant ─────── */
.sidebar-brand-name {
  font-size: 19px !important;
  letter-spacing: 0.22em !important;
}
.sidebar-brand {
  padding: 26px 18px 22px !important;
  gap: 14px !important;
}
.brand-orb {
  position: relative;
  width: 44px; height: 44px; flex-shrink: 0;
}
.brand-orb-ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 1px solid rgba(93,214,232,0.45);
  animation: pulse-ring 3.4s ease-in-out infinite;
}
.brand-orb-ring.delay { animation-delay: 1.7s; }
.brand-orb-core {
  position: absolute; inset: 8px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #d6f4fa 0%, #5dd6e8 45%, #1d6e8c 100%);
  box-shadow: 0 0 14px rgba(93,214,232,0.6),
              inset 0 0 8px rgba(255,255,255,0.18);
  animation: pulse-core 3.4s ease-in-out infinite;
}
/* Atlas brand orb sparks: blue-violet (mineral) instead of gold */
.brand-orb-spark {
  position: absolute; width: 4px; height: 4px; border-radius: 50%;
  background: #b9e0ff;
  box-shadow: 0 0 6px #4a8aff, 0 0 12px rgba(74,138,255,0.7);
  pointer-events: none;
}
.brand-orb-spark.s1 { animation: spark-orbit-mini 3.6s linear infinite; }
.brand-orb-spark.s2 { animation: spark-orbit-mini 4.2s linear infinite reverse; animation-delay: -1.4s; }
.brand-orb-spark.s3 { animation: spark-orbit-mini 5.0s linear infinite; animation-delay: -2.6s; }
@keyframes spark-orbit-mini {
  0%   { transform: translate(20px, 20px) rotate(0deg)   translate(22px) rotate(0deg);   opacity: 0.9; }
  50%  { opacity: 1; }
  100% { transform: translate(20px, 20px) rotate(360deg) translate(22px) rotate(-360deg); opacity: 0.9; }
}

.hero.hero-orb-left { grid-template-columns: auto 1fr !important; }
.hero.hero-orb-left .hero-text { padding-left: 8px; }
.hero-orb { width: 110px !important; height: 110px !important; }
.hero-orb-core { inset: 22px !important; }

/* Atlas hero: cyan core with bluish-white star sparks (different feel from Chiron's gold) */
.hero-spark {
  position: absolute;
  width: 6px; height: 6px; border-radius: 50%;
  background: #d6f4fa;
  box-shadow: 0 0 8px #5dd6e8, 0 0 18px rgba(74,138,255,0.65);
  pointer-events: none;
  filter: drop-shadow(0 0 3px #5dd6e8);
}
.spark-1 { animation: spark-orbit-1 4.6s linear infinite; }
.spark-2 { animation: spark-orbit-2 5.8s linear infinite; animation-delay: -1.5s; }
.spark-3 { animation: spark-orbit-3 7.2s linear infinite reverse; animation-delay: -3.0s; }
@keyframes spark-orbit-1 {
  0%{transform:translate(55px,55px) rotate(0deg)   translate(58px) rotate(0deg);opacity:0;}
  10%{opacity:1;} 90%{opacity:1;}
  100%{transform:translate(55px,55px) rotate(360deg) translate(58px) rotate(-360deg);opacity:0;}
}
@keyframes spark-orbit-2 {
  0%{transform:translate(55px,55px) rotate(0deg)   translate(72px) rotate(0deg);opacity:0;}
  15%{opacity:1;} 85%{opacity:1;}
  100%{transform:translate(55px,55px) rotate(360deg) translate(72px) rotate(-360deg);opacity:0;}
}
@keyframes spark-orbit-3 {
  0%{transform:translate(55px,55px) rotate(0deg)   translate(48px) rotate(0deg) scale(0.8);opacity:0;}
  20%{opacity:0.95;} 80%{opacity:0.95;}
  100%{transform:translate(55px,55px) rotate(360deg) translate(48px) rotate(-360deg) scale(0.8);opacity:0;}
}
.hero-spark-trail { position: absolute; inset: 0; border-radius: 50%; pointer-events: none; }
.trail-1 {
  background: conic-gradient(from 0deg, transparent 0%, transparent 70%,
              rgba(93,214,232,0.20) 92%, transparent 100%);
  animation: trail-spin 6s linear infinite;
}
.trail-2 {
  background: conic-gradient(from 180deg, transparent 0%, transparent 80%,
              rgba(74,138,255,0.14) 95%, transparent 100%);
  animation: trail-spin 9s linear infinite reverse;
}
@keyframes trail-spin { from{transform:rotate(0deg);} to{transform:rotate(360deg);} }

/* ═══════════════════════════════════════════════════════════════════
   v2.2: Atlas's signature orb — globe with meridians + tilted Saturn
   orbital ring with travelling satellites. Different DNA from Chiron.
   ═══════════════════════════════════════════════════════════════════ */

/* Stacked sidebar brand: orb on top, "Atlas" centred underneath */
.sidebar-brand-stacked {
  flex-direction: column !important;
  gap: 12px !important;
  padding: 28px 18px 22px !important;
  text-align: center;
}
.sidebar-brand-stacked .sidebar-brand-name {
  font-family: 'Cinzel', serif !important;
  font-weight: 600 !important;
  font-size: 30px !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  background: linear-gradient(135deg, #fff, #5dd6e8, #4a8aff) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  color: transparent !important;
  filter: none !important;
  margin-top: 6px;
}

/* The atlas-orb container — same outer footprint as Chiron's hero
   orb (~110px) so layouts stay consistent. */
.atlas-orb {
  position: relative;
  width: 110px; height: 110px;
  margin: 0 auto;
  perspective: 800px;
}

/* The globe — slow self-rotation gives it life */
.atlas-globe {
  position: absolute;
  inset: 6px;
  width: calc(100% - 12px); height: calc(100% - 12px);
  filter: drop-shadow(0 0 16px rgba(93,214,232,0.55));
  animation: atlas-globe-breathe 4.6s ease-in-out infinite;
}
@keyframes atlas-globe-breathe {
  0%, 100% {
    filter: drop-shadow(0 0 16px rgba(93,214,232,0.45));
  }
  50% {
    filter: drop-shadow(0 0 24px rgba(93,214,232,0.85))
            drop-shadow(0 0 36px rgba(74,138,255,0.35));
  }
}

/* Saturn-style tilted orbital ring */
.atlas-orbit {
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 1.5px solid rgba(93,214,232,0.55);
  box-shadow: 0 0 12px rgba(93,214,232,0.35),
              inset 0 0 6px rgba(74,138,255,0.25);
  /* Tilt forward 72° around X, then continually rotate around Z. The
     two transforms compose so the visible ellipse stays tilted while
     the satellites traverse it. */
  transform: rotateX(72deg) rotateZ(0deg);
  animation: atlas-orbit-spin 14s linear infinite;
  transform-style: preserve-3d;
}
@keyframes atlas-orbit-spin {
  from { transform: rotateX(72deg) rotateZ(0deg); }
  to   { transform: rotateX(72deg) rotateZ(360deg); }
}

/* Two satellites pinned to opposite ends of the orbital ring; they
   ride the parent's rotation, tracing a tilted ellipse. */
.atlas-satellite {
  position: absolute;
  top: 50%;
  width: 8px; height: 8px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.atlas-satellite.primary {
  left: 100%;
  background: radial-gradient(circle at 35% 35%, #ffffff 0%, #5dd6e8 70%);
  box-shadow: 0 0 12px #5dd6e8, 0 0 24px rgba(74,138,255,0.7);
}
.atlas-satellite.secondary {
  left: 0%;
  width: 5px; height: 5px;
  background: radial-gradient(circle at 35% 35%, #d6f4fa 0%, #4a8aff 80%);
  box-shadow: 0 0 8px #4a8aff, 0 0 16px rgba(74,138,255,0.5);
}

/* Chat-dock orb variant: same DNA, ~36px scale, simpler — single
   satellite on a faster orbit. */
.chat-atlas-orb {
  width: 36px !important;
  height: 36px !important;
  margin: 0 !important;
  flex-shrink: 0;
}
.chat-atlas-orb .atlas-globe {
  inset: 2px;
  width: calc(100% - 4px); height: calc(100% - 4px);
  filter: drop-shadow(0 0 6px rgba(93,214,232,0.65));
}
.chat-atlas-orb .atlas-orbit {
  inset: 0;
  border-width: 1px;
  animation-duration: 9s;
}
.chat-atlas-orb .atlas-satellite.primary {
  width: 4px; height: 4px;
  box-shadow: 0 0 6px #5dd6e8, 0 0 12px rgba(74,138,255,0.6);
}

/* Hero variant for when there's no orb (Atlas dashboard) — orb lives in sidebar */
.hero.hero-text-only {
  grid-template-columns: 1fr;
  text-align: left;
}

/* ═══════════════════════════════════════════════════════════════════
   ATLAS v3 — full redesign: midnight + indigo + violet + amethyst,
   Cormorant Garamond display, Manrope body, gold-amber on accents.
   This block overrides everything above for visible surfaces.
   ═══════════════════════════════════════════════════════════════════ */

:root {
  --atl-bg-deep:   #050719;
  --atl-bg:        #08091e;
  --atl-bg-soft:   #0f1230;
  --atl-card:      #11143a;
  --atl-card-2:    #161940;
  --atl-line:      rgba(124, 92, 255, 0.16);
  --atl-line-warm: rgba(168, 85, 247, 0.28);
  --atl-violet:    #9263ff;
  --atl-amethyst:  #a855f7;
  --atl-cobalt:    #3a4cff;
  --atl-indigo:    #4f3dff;
  --atl-gold:      #f0c674;
  --atl-text:      #e5d9ff;
  --atl-text-mid:  #a89dd1;
  --atl-text-dim:  #7d72a8;
}

body {
  background: var(--atl-bg-deep) !important;
  color: var(--atl-text) !important;
  font-family: 'Manrope', system-ui, sans-serif !important;
  font-weight: 400;
}

/* Ambient glows — switch to violet/cobalt */
.glow-a {
  background: radial-gradient(circle, rgba(146,99,255,0.35), transparent 60%) !important;
}
.glow-b {
  background: radial-gradient(circle, rgba(168,85,247,0.22), transparent 60%) !important;
}

/* Particle motes — violet on dark instead of cyan */
.particle-bg svg defs radialGradient#motGrad stop {
  /* not strictly addressable via CSS but harmless */
}

/* Sidebar: darker indigo glass with violet edge */
.sidebar {
  background: linear-gradient(180deg,
              rgba(15,18,48,0.78) 0%,
              rgba(8,9,30,0.94) 100%) !important;
  border-right: 1px solid rgba(124,92,255,0.18) !important;
  box-shadow: inset -1px 0 0 rgba(168,85,247,0.05),
              4px 0 28px rgba(0,0,0,0.45) !important;
}
.sidebar-brand-stacked .sidebar-brand-name {
  font-family: 'Cormorant Garamond', serif !important;
  font-weight: 600 !important;
  font-size: 34px !important;
  letter-spacing: 0.02em !important;
  text-transform: none !important;
  background: linear-gradient(135deg, #ffffff 0%, #c4b5fd 35%, #a855f7 70%, #f0c674 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  color: transparent !important;
  filter: drop-shadow(0 0 14px rgba(168,85,247,0.30)) !important;
}

/* Sidebar nav links — violet hover/active */
.sidebar-link {
  font-family: 'Manrope', sans-serif !important;
  color: rgba(229,217,255,0.72) !important;
}
.sidebar-link .ico { color: rgba(196,181,253,0.6) !important; }
.sidebar-link:hover {
  background: rgba(124,92,255,0.10) !important;
  color: #fff !important;
}
.sidebar-link:hover .ico { color: var(--atl-violet) !important; }
.sidebar-link.active {
  background: linear-gradient(90deg,
              rgba(124,92,255,0.22) 0%,
              rgba(124,92,255,0.04) 100%) !important;
  border-color: rgba(124,92,255,0.42) !important;
  color: #fff !important;
  box-shadow: inset 0 0 18px rgba(124,92,255,0.16),
              0 0 0 1px rgba(124,92,255,0.22) !important;
}
.sidebar-link.active .ico {
  color: var(--atl-amethyst) !important;
  filter: drop-shadow(0 0 5px rgba(168,85,247,0.7)) !important;
}
.sidebar-link.active::before {
  background: linear-gradient(180deg, var(--atl-amethyst), var(--atl-cobalt)) !important;
  box-shadow: 0 0 10px rgba(168,85,247,0.7) !important;
}
.sidebar-foot {
  border-top: 1px solid rgba(124,92,255,0.12) !important;
}
.sidebar-foot-line { color: #d6c8ff !important; }
.sidebar-foot-sub { color: rgba(167,156,212,0.55) !important; }

/* Main column tone */
.main { background: transparent; }

/* Page titles — Cormorant, with the wordmark gradient */
.page-title {
  font-family: 'Cormorant Garamond', serif !important;
  font-weight: 600 !important;
  font-size: 36px !important;
  letter-spacing: 0.01em !important;
  background: linear-gradient(135deg, #ffffff 0%, #c4b5fd 50%, #a855f7 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  color: transparent !important;
  filter: drop-shadow(0 0 18px rgba(168,85,247,0.20)) !important;
}
.page-sub {
  font-family: 'Manrope', sans-serif !important;
  color: rgba(189,176,224,0.7) !important;
  font-size: 14px !important;
  letter-spacing: 0.01em !important;
}

/* Cards — deep indigo with subtle violet hairline */
.card {
  background: linear-gradient(160deg,
              rgba(22,25,64,0.85) 0%,
              rgba(13,15,42,0.95) 100%) !important;
  border: 1px solid rgba(124,92,255,0.16) !important;
  box-shadow: 0 8px 36px rgba(0,0,0,0.40),
              inset 0 1px 0 rgba(255,255,255,0.04),
              inset 0 0 36px rgba(124,92,255,0.05) !important;
}
.card::before {
  background: linear-gradient(135deg,
              rgba(168,85,247,0.36),
              rgba(58,76,255,0.18) 50%,
              transparent 80%) !important;
  opacity: 0.7;
}
.card-title {
  font-family: 'Manrope', sans-serif !important;
  font-weight: 600 !important;
  letter-spacing: 0.16em !important;
  color: rgba(189,176,224,0.7) !important;
}
.card-title::before {
  background: var(--atl-amethyst) !important;
  box-shadow: 0 0 9px var(--atl-amethyst) !important;
}

/* Hero card — violet wash */
.hero {
  background: linear-gradient(135deg,
              rgba(124,92,255,0.12) 0%,
              rgba(13,15,42,0.88) 50%,
              rgba(240,198,116,0.05) 100%) !important;
  border: 1px solid rgba(124,92,255,0.18) !important;
}
.hero::after {
  background: radial-gradient(circle at 20% 50%,
              rgba(168,85,247,0.18), transparent 50%) !important;
}
.hero-greet {
  font-family: 'Cormorant Garamond', serif !important;
  font-size: 32px !important;
  font-weight: 600 !important;
  letter-spacing: 0.01em !important;
  background: linear-gradient(135deg, #fff, #c4b5fd 50%, #f0c674) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  color: transparent !important;
}
.hero-sub {
  font-family: 'Manrope', sans-serif !important;
  color: rgba(206,193,236,0.72) !important;
}

/* Tile grid — indigo with amethyst+gold gradient numbers */
.summary-tile {
  background: linear-gradient(160deg,
              rgba(22,25,64,0.78),
              rgba(13,15,42,0.92)) !important;
  border: 1px solid rgba(124,92,255,0.14) !important;
}
.summary-tile:hover {
  border-color: rgba(168,85,247,0.36) !important;
  box-shadow: 0 0 28px rgba(168,85,247,0.18) !important;
}
.summary-tile-num {
  font-family: 'Space Grotesk', monospace !important;
  background: linear-gradient(135deg, #c4b5fd, #a855f7 60%, #f0c674) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  color: transparent !important;
}
.summary-tile-label {
  font-family: 'Manrope', sans-serif !important;
  color: rgba(189,176,224,0.62) !important;
}

/* Rows — indigo surface with violet hover */
.row {
  background: rgba(22,25,64,0.55) !important;
}
.row:hover {
  background: rgba(124,92,255,0.10) !important;
  border-color: rgba(168,85,247,0.28) !important;
}
.row-icon {
  background: linear-gradient(135deg,
              rgba(124,92,255,0.20),
              rgba(168,85,247,0.05)) !important;
  border: 1px solid rgba(124,92,255,0.22) !important;
}
.row-icon .ico { color: var(--atl-amethyst) !important; }
.row-label { color: var(--atl-text) !important; }
.row-sub { color: rgba(167,156,212,0.58) !important; }

/* Buttons — violet primary, ghost violet outline */
.btn-primary {
  background: linear-gradient(135deg, var(--atl-violet), var(--atl-cobalt)) !important;
  color: #ffffff !important;
  font-family: 'Manrope', sans-serif !important;
  font-weight: 600 !important;
  letter-spacing: 0.01em !important;
  box-shadow: 0 0 0 1px rgba(168,85,247,0.45),
              0 4px 18px rgba(124,92,255,0.30) !important;
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--atl-amethyst), var(--atl-indigo)) !important;
  box-shadow: 0 0 0 1px rgba(168,85,247,0.65),
              0 6px 26px rgba(168,85,247,0.45) !important;
}
.btn-ghost {
  background: rgba(124,92,255,0.08) !important;
  color: #d6c8ff !important;
  border-color: rgba(168,85,247,0.28) !important;
}
.btn-ghost:hover {
  background: rgba(124,92,255,0.16) !important;
  border-color: rgba(168,85,247,0.50) !important;
}

/* Atlas orb — recolour: lavender→indigo globe, amethyst orbit, gold satellite */
.atlas-globe {
  filter: drop-shadow(0 0 18px rgba(168,85,247,0.55)) !important;
}
@keyframes atlas-globe-breathe {
  0%, 100% {
    filter: drop-shadow(0 0 18px rgba(168,85,247,0.45));
  }
  50% {
    filter: drop-shadow(0 0 28px rgba(168,85,247,0.85))
            drop-shadow(0 0 40px rgba(58,76,255,0.40));
  }
}
.atlas-orbit {
  border-color: rgba(168,85,247,0.55) !important;
  box-shadow: 0 0 14px rgba(168,85,247,0.40),
              inset 0 0 6px rgba(58,76,255,0.30) !important;
}
.atlas-satellite.primary {
  background: radial-gradient(circle at 35% 35%, #fff 0%, #f0c674 70%) !important;
  box-shadow: 0 0 12px var(--atl-gold),
              0 0 24px rgba(240,198,116,0.65) !important;
}
.atlas-satellite.secondary {
  background: radial-gradient(circle at 35% 35%, #d6c8ff 0%, var(--atl-amethyst) 80%) !important;
  box-shadow: 0 0 8px var(--atl-amethyst),
              0 0 16px rgba(168,85,247,0.6) !important;
}

/* Recolour the inline globe SVG fill via a CSS-driven re-injection.
   The SVG <stop> elements already use static colors; CSS can't reach
   them, so we layer a violet wash on top via the parent's filter
   already in atlas-globe-breathe. Globe gradient itself stays cyan
   underneath but reads violet through the heavy purple drop-shadow.
   For a truly violet globe, we override the gradient ID in the SVG —
   done via JS on load. */

/* Chat dock — violet variant */
.chat-toggle {
  background: linear-gradient(135deg, var(--atl-violet), var(--atl-cobalt)) !important;
  box-shadow: 0 0 0 1px rgba(168,85,247,0.55),
              0 8px 30px rgba(124,92,255,0.50),
              0 0 44px rgba(168,85,247,0.30) !important;
}
.chat-toggle:hover {
  box-shadow: 0 0 0 1px rgba(168,85,247,0.85),
              0 10px 38px rgba(168,85,247,0.65),
              0 0 64px rgba(168,85,247,0.45) !important;
}
.chat-toggle-pulse { border-color: rgba(168,85,247,0.6) !important; }

.chat-dock {
  background: linear-gradient(180deg,
              rgba(15,18,48,0.96) 0%,
              rgba(7,8,24,0.98) 100%) !important;
  border: 1px solid rgba(168,85,247,0.34) !important;
  box-shadow: 0 0 0 1px rgba(168,85,247,0.20),
              0 26px 70px rgba(0,0,0,0.65),
              0 0 70px rgba(124,92,255,0.25) !important;
}
.chat-head {
  background: linear-gradient(90deg, rgba(124,92,255,0.12), transparent) !important;
  border-bottom: 1px solid rgba(168,85,247,0.16) !important;
}
.chat-head-title {
  font-family: 'Cormorant Garamond', serif !important;
  font-size: 18px !important;
  font-weight: 600 !important;
  background: linear-gradient(135deg, #fff, #c4b5fd 50%, #f0c674) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  color: transparent !important;
}
.chat-head-sub {
  font-family: 'Manrope', sans-serif !important;
  color: rgba(167,156,212,0.62) !important;
}
.chat-close { color: rgba(167,156,212,0.62) !important; }
.chat-close:hover {
  background: rgba(168,85,247,0.12) !important;
  color: #fff !important;
}

.msg-user {
  background: linear-gradient(135deg, var(--atl-violet), var(--atl-cobalt)) !important;
  color: #fff !important;
  box-shadow: 0 4px 16px rgba(124,92,255,0.30) !important;
}
.msg-assistant {
  background: rgba(22,25,64,0.88) !important;
  border: 1px solid rgba(168,85,247,0.22) !important;
  color: var(--atl-text) !important;
}
.msg-typing {
  background: rgba(22,25,64,0.88) !important;
  border: 1px solid rgba(168,85,247,0.22) !important;
}
.msg-typing span { background: var(--atl-amethyst) !important; }

.chat-input {
  background: rgba(7,8,24,0.88) !important;
  border: 1px solid rgba(168,85,247,0.22) !important;
  color: var(--atl-text) !important;
  font-family: 'Manrope', sans-serif !important;
}
.chat-input:focus {
  border-color: rgba(168,85,247,0.62) !important;
  box-shadow: 0 0 0 3px rgba(168,85,247,0.15) !important;
}
.chat-send {
  background: linear-gradient(135deg, var(--atl-violet), var(--atl-cobalt)) !important;
  color: #fff !important;
}
.chat-send:hover {
  box-shadow: 0 0 18px rgba(168,85,247,0.65) !important;
}

/* Section title gets an inline icon slot (used by atlas.js section()) */
.card-title svg.ico {
  width: 14px; height: 14px;
  color: var(--atl-amethyst);
  filter: drop-shadow(0 0 6px rgba(168,85,247,0.45));
}
