@import url('brand-tokens.css');

/* =========================================================================
   Dashboard — Tarotscope.html v2.0 visual system (REQ-267).
   Loaded standalone by website/templates/dashboard/dashboard.html (and, as
   the shared v2 stylesheet, by ~20 other pages). Core brand tokens come from
   brand-tokens.css (imported above — the single source); only the
   dashboard-specific accent tokens are declared here.
   ========================================================================= */

:root {
  --violet:    #8b7cd8;
  --rose:      #c87da0;
  --amber:     #d4a85a;
  --oracle:    #4a6fa5;
  --mocker:    #c87452;
}

* { box-sizing: border-box; }

/* Force text presentation for zodiac / planet glyphs */
.glyph, .sym, .tab-icon, .sign-chip .glyph, text {
  font-variant-emoji: text;
  -webkit-font-feature-settings: "liga" off;
  font-feature-settings: "liga" off;
}
html, body { margin: 0; padding: 0; }
body.ts-dashboard {
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-sans);
  font-size: 15px;
  line-height: 1.55;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
}

/* Star field background */
.stars {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(1px 1px at 17% 23%, rgba(255,255,255,0.55), transparent 50%),
    radial-gradient(1px 1px at 82% 15%, rgba(255,255,255,0.4), transparent 50%),
    radial-gradient(1.2px 1.2px at 44% 77%, rgba(255,255,255,0.5), transparent 50%),
    radial-gradient(1px 1px at 67% 52%, rgba(255,255,255,0.3), transparent 50%),
    radial-gradient(1px 1px at 11% 88%, rgba(255,255,255,0.35), transparent 50%),
    radial-gradient(1.2px 1.2px at 93% 66%, rgba(255,255,255,0.4), transparent 50%),
    radial-gradient(1px 1px at 29% 43%, rgba(255,255,255,0.25), transparent 50%),
    radial-gradient(0.8px 0.8px at 55% 11%, rgba(255,255,255,0.3), transparent 50%),
    radial-gradient(1px 1px at 73% 91%, rgba(255,255,255,0.3), transparent 50%),
    radial-gradient(ellipse at 20% 30%, rgba(139, 124, 216, 0.04), transparent 50%),
    radial-gradient(ellipse at 80% 70%, rgba(201, 168, 109, 0.04), transparent 50%);
  background-size: 100% 100%;
  opacity: 0.85;
}
.stars::after {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(1px 1px at 35% 12%, rgba(255,255,255,0.4), transparent 50%),
    radial-gradient(1px 1px at 88% 38%, rgba(255,255,255,0.3), transparent 50%),
    radial-gradient(0.8px 0.8px at 6% 56%, rgba(255,255,255,0.35), transparent 50%),
    radial-gradient(1px 1px at 51% 64%, rgba(255,255,255,0.3), transparent 50%),
    radial-gradient(0.8px 0.8px at 76% 80%, rgba(255,255,255,0.25), transparent 50%);
  animation: twinkle 8s ease-in-out infinite;
}
@keyframes twinkle {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

/* Header nav styles (.nav, .logo, .nav-links, .avatar-btn, .coin-chip, .nav-logout)
   moved to website/static/css/header.css per REQ-272 (shared across all non-home pages). */

/* Layout */
body.ts-dashboard main {
  position: relative; z-index: 1;
  max-width: 1240px; margin: 0 auto;
  /* Respect iOS safe-area: notch / dynamic island on top, home-indicator
     on the bottom. The viewport meta already declares `viewport-fit=cover`. */
  padding-top: calc(48px + env(safe-area-inset-top));
  padding-right: calc(40px + env(safe-area-inset-right));
  padding-bottom: calc(120px + env(safe-area-inset-bottom));
  padding-left: calc(40px + env(safe-area-inset-left));
}

/* Section rhythm */
.section { margin-bottom: 48px; }
.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line-soft);
  gap: 20px;
}
.section-title {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 28px;
  letter-spacing: 0.04em;
  color: var(--text);
  margin: 0;
  white-space: nowrap;
}
.section-title em {
  font-style: italic;
  color: var(--gold);
}
.hero-name-link {
  text-decoration: none;
  color: inherit;
  transition: color var(--t) var(--ease);
}
.hero-name-link:hover { color: var(--gold-2); }
.hero-name-link:hover em { color: var(--gold-2); }
.section-kicker {
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-3);
}

.section-more {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 28px;
  padding: 18px 0;
  border-top: 1px solid var(--line-soft);
  font-family: var(--f-sans);
  font-size: 11.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-2);
  text-decoration: none;
  transition: color 0.2s, border-color 0.2s;
}
.section-more::before, .section-more::after {
  content: '';
  flex: 0 0 32px;
  height: 1px;
  background: var(--line-soft);
  transition: background 0.2s;
}
.section-more:hover { color: var(--gold); }
.section-more:hover::before, .section-more:hover::after { background: rgba(201,168,109,0.4); }
.section-more .arrow {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 16px;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1;
}

/* Divider ornament */
.ornament {
  display: flex; align-items: center; justify-content: center;
  gap: 18px;
  margin: 28px 0;
  color: var(--gold-dim);
}
.ornament .line {
  flex: 0 0 140px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line) 40%, var(--line) 60%, transparent);
}
.ornament svg { color: var(--gold); opacity: 0.7; }

/* ==== PROFILE HERO ==== */
.hero {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 56px;
  padding: 48px 52px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: linear-gradient(180deg, rgba(28,25,48,0.6), rgba(22,19,36,0.6));
  position: relative;
  overflow: hidden;
}
.hero::before, .hero::after {
  content: ''; position: absolute;
  width: 12px; height: 12px;
  border: 1px solid var(--gold);
}
.hero::before { top: 16px; left: 16px; border-right: none; border-bottom: none; }
.hero::after  { bottom: 16px; right: 16px; border-left: none; border-top: none; }

.hero-left { position: relative; }
.hero-meta {
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 14px;
}
.hero-name {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 68px;
  line-height: 1;
  margin: 0 0 16px;
  letter-spacing: -0.01em;
  color: var(--text);
}
.hero-name em {
  font-style: italic;
  color: var(--gold);
  font-weight: 500;
}
.hero-sub {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 19px;
  color: var(--text-2);
  margin-bottom: 32px;
}
.hero-sub em { color: var(--gold); font-style: italic; }

.sign-trio {
  display: flex; gap: 14px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}
.sign-chip {
  padding: 10px 14px;
  border: 1px solid var(--line);
  background: rgba(11,10,18,0.6);
  display: flex; align-items: center; gap: 10px;
  border-radius: 2px;
}
.sign-chip .glyph {
  font-family: var(--f-display);
  font-size: 20px;
  color: var(--gold);
  line-height: 1;
}
.sign-chip .kind {
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-3);
  display: block;
}
.sign-chip .name {
  font-family: var(--f-display);
  font-size: 16px;
  color: var(--text);
  font-style: italic;
}
.sign-chip--link {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition:
    border-color var(--t) var(--ease),
    background var(--t) var(--ease),
    transform var(--t) var(--ease);
}
.sign-chip--link:hover {
  border-color: var(--gold-dim);
  background: rgba(201,168,109,0.08);
  transform: translateY(-1px);
}
.sign-chip--link:hover .glyph { color: var(--gold-2); }

.hero-bio {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 18px;
  line-height: 1.55;
  color: var(--text);
  margin: 0 0 28px;
  max-width: 560px;
  text-wrap: pretty;
}
.hero-bio .first {
  font-size: 44px;
  float: left;
  line-height: 0.9;
  padding: 6px 10px 0 0;
  color: var(--gold);
  font-style: normal;
}

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  font-family: var(--f-sans);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 12px 22px;
  border: 1px solid var(--gold);
  background: transparent;
  color: var(--gold);
  cursor: pointer;
  border-radius: 2px;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px;
}
.btn:hover { background: rgba(201,168,109,0.08); color: var(--gold-2); }
.btn-primary { background: var(--gold); color: #0e0c16; border-color: var(--gold); }
.btn-primary:hover { background: var(--gold-2); color: #0e0c16; }
.btn-ghost { border-color: var(--line); color: var(--text-2); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); background: transparent; }

/* Natal chart wheel */
.chart-wheel-link {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: filter var(--t) var(--ease), transform var(--t) var(--ease);
}
.chart-wheel-link:hover { filter: drop-shadow(0 0 14px rgba(228,201,138,0.25)); }
.chart-wheel {
  width: 100%;
  aspect-ratio: 1;
  max-width: 440px;
  margin: 0 auto;
  position: relative;
}
.chart-wheel svg { width: 100%; height: 100%; display: block; }

.wheel-legend {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px 16px;
  margin-top: 22px;
  font-family: var(--f-display);
  font-size: 14px;
  color: var(--text);
}
.wheel-legend .item {
  display: flex;
  gap: 9px;
  align-items: baseline;
  padding: 6px 10px;
  border: 1px solid var(--line-soft);
  background: rgba(11,10,18,0.45);
  border-radius: 2px;
}
.wheel-legend .sym {
  color: var(--gold);
  font-family: var(--f-display);
  font-size: 18px;
  line-height: 1;
}
.wheel-legend .item em {
  font-style: normal;
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--text-3);
  letter-spacing: 0.1em;
  margin-left: auto;
}

/* ==== ARCHETYPE CAROUSEL ==== */
.arch-carousel {
  margin-top: 32px;
  padding: 24px 0 20px;
  border: 1px solid var(--line-soft);
  background: rgba(22,19,36,0.5);
  border-radius: 3px;
  position: relative;
  overflow: hidden;
}
.arch-carousel-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 40px 18px;
  border-bottom: 1px solid var(--line-soft);
  margin-bottom: 20px;
}
.arch-carousel-head .panel-label { margin: 0; }
.arch-carousel-head .panel-title {
  margin: 4px 0 0;
  font-size: 22px;
}
.arch-ctrls { display: flex; gap: 10px; }
.arch-ctrl {
  /* Audit P1-A: was 36×36, below 44 minimum tap target. */
  width: var(--tap-min, 44px); height: var(--tap-min, 44px);
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--gold);
  font-family: var(--f-display);
  font-size: 18px;
  cursor: pointer;
  display: grid; place-items: center;
  transition: all 0.2s;
  line-height: 1;
}
.arch-ctrl:hover { background: rgba(201,168,109,0.1); border-color: var(--gold); }
.arch-ctrl:disabled { opacity: 0.3; cursor: default; }

.arch-track-wrap { overflow: hidden; padding: 0 40px; }
.arch-track {
  display: flex;
  gap: 20px;
  transition: transform 0.45s cubic-bezier(.2,.7,.2,1);
  will-change: transform;
}
.arch-card {
  flex: 0 0 auto;
  width: 184px;
  display: flex; flex-direction: column;
  cursor: pointer;
  transition: transform 0.3s;
  text-decoration: none;
  color: inherit;
}
.arch-card:hover { transform: translateY(-3px); }
.arch-card-img {
  width: 100%;
  aspect-ratio: 540/1008;
  border-radius: 4px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(201,168,109,0.10), transparent 60%),
    linear-gradient(180deg, #1a1828, #0f0d1a);
  border: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(0,0,0,0.4), 0 0 0 1px rgba(201,168,109,0.1);
  position: relative;
  display: grid; place-items: center;
}
.arch-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.arch-card-img::after {
  content: '';
  position: absolute; inset: 0;
  box-shadow: inset 0 0 28px rgba(11,10,18,0.35);
  pointer-events: none;
}
.arch-card-glyph {
  font-family: var(--f-display);
  font-size: 46px;
  color: var(--gold);
  opacity: 0.55;
  line-height: 1;
  text-shadow: 0 2px 14px rgba(201,168,109,0.25);
}
.arch-card-meta { padding: 12px 4px 0; text-align: center; }
.arch-card-num {
  font-family: var(--f-display);
  font-size: 15px;
  letter-spacing: 0.04em;
  color: var(--text-2);
  margin-bottom: 4px;
  line-height: 1.25;
}
.arch-card-name {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 20px;
  color: var(--gold);
  margin: 0 0 4px;
  line-height: 1.2;
}
.arch-card-kind {
  font-family: var(--f-sans);
  font-size: 10px;
  letter-spacing: 0.05em;
  color: var(--text-2);
  margin: 0;
}
.arch-dots { display: flex; justify-content: center; gap: 6px; margin-top: 16px; }
.arch-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--line);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.2s;
}
.arch-dot.active { background: var(--gold); width: 18px; border-radius: 3px; }

.panel-label {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 14px;
}
.panel-title {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 24px;
  color: var(--gold);
  margin: 0 0 16px;
}
.panel-title em { font-style: italic; }

@media (max-width: 720px) {
  .arch-card { width: 143px; }
  .arch-carousel-head { padding: 0 20px 16px; }
  .arch-track-wrap { padding: 0 20px; }
}


/* ==== HOROSCOPES ==== */
.tabs {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 28px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-soft);
  width: 100%;
}
.tab {
  /* Audit P1-A: was 6 14 → ~28px tall. Padding bumped + min-height ensures
     the inline tabs reach the 44px tap floor on mobile. */
  padding: 11px 14px;
  min-height: var(--tap-min, 44px);
  cursor: pointer;
  transition: color 0.2s;
  background: transparent;
  border: none;
  font-family: var(--f-display);
  font-style: italic;
  font-size: 17px;
  color: var(--text-3);
  position: relative;
  line-height: 1;
}
.tab + .tab::before {
  content: '·';
  position: absolute;
  left: -6px; top: 50%;
  transform: translateY(-50%);
  color: var(--text-3);
  opacity: 0.5;
}
.tab:hover { color: var(--text); }
.tab.active { color: var(--gold); font-weight: 500; }
.tab.active::after {
  content: '';
  position: absolute;
  left: 14px; right: 14px; bottom: -11px;
  height: 1px;
  background: var(--gold);
}
.tab[data-tab="weekly"].active { color: var(--violet); }
.tab[data-tab="weekly"].active::after { background: var(--violet); }
.tab[data-tab="monthly"].active { color: var(--rose); }
.tab[data-tab="monthly"].active::after { background: var(--rose); }
.tab[data-tab="yearly"].active { color: var(--teal); }
.tab[data-tab="yearly"].active::after { background: var(--teal); }
.tabs-count {
  margin-left: auto;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-3);
}
.tabs-count b { color: var(--gold); font-weight: 400; }

.horoscope-list { display: flex; flex-direction: column; gap: 16px; }
.horo-group { display: flex; flex-direction: column; gap: 16px; }
.horo-group[hidden] { display: none; }

/* New-item dashed CTA (horoscopes / conversations / circle / compatibility) */
.new-horo {
  display: flex; align-items: center; justify-content: center;
  gap: 18px;
  padding: 20px 24px;
  border: 1px dashed var(--line);
  background: rgba(22,19,36,0.35);
  border-radius: 3px;
  margin-bottom: 20px;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
  color: inherit;
  width: 100%;
  text-decoration: none;
}
.new-horo:hover { border-color: var(--gold); background: rgba(28,25,48,0.55); }
.new-horo:hover .new-horo-plus { background: var(--gold); color: #0e0c16; }
.new-horo-plus {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  color: var(--gold);
  display: grid; place-items: center;
  font-size: 20px; line-height: 1;
  font-weight: 300;
  transition: all 0.2s;
}
.new-horo-label {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 19px;
  color: var(--text);
}
.new-horo-hint {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-left: auto;
  display: inline-flex; align-items: center; gap: 6px;
}
.new-horo-hint .coin {
  color: var(--gold);
  font-family: var(--f-display);
  font-size: 13px;
  letter-spacing: 0;
}
.new-horo--disabled { opacity: 0.45; cursor: not-allowed; }
.new-horo--disabled:hover { border-color: var(--line); background: rgba(22,19,36,0.35); }
.new-horo--disabled:hover .new-horo-plus { background: transparent; color: var(--gold); }

.horo-card {
  display: grid;
  grid-template-columns: 90px 1fr 100px 28px;
  gap: 24px;
  align-items: flex-start;
  padding: 24px 28px;
  border: 1px solid var(--line-soft);
  background: rgba(22,19,36,0.45);
  border-radius: 3px;
  transition: all 0.2s;
  text-decoration: none;
  color: inherit;
}
.horo-card:hover { border-color: var(--line); background: rgba(28,25,48,0.6); }
.horo-badge {
  font-family: var(--f-mono);
  font-size: 9.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-align: center;
  padding: 8px 0;
  border: 1px solid;
  border-radius: 2px;
}
.horo-badge.daily   { color: var(--gold);   border-color: rgba(201,168,109,0.35); }
.horo-badge.weekly  { color: var(--violet); border-color: rgba(139,124,216,0.35); }
.horo-badge.monthly { color: var(--rose);   border-color: rgba(200,125,160,0.35); }
.horo-badge.yearly  { color: var(--teal);   border-color: rgba(142, 196, 184,0.35); }

.horo-body { min-width: 0; }
.horo-title {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 19px;
  color: var(--gold);
  margin: 0 0 8px;
  letter-spacing: 0.02em;
}
.horo-text {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--text);
  margin: 0;
  text-wrap: pretty;
}
.horo-date {
  font-family: var(--f-mono);
  font-size: 9.5px;
  letter-spacing: 0.18em;
  color: var(--text-3);
  text-align: right;
  text-transform: uppercase;
  padding-top: 4px;
}
.horo-date small { display: block; color: var(--text-2); margin-top: 4px; font-size: 11px; letter-spacing: 0.1em; }
.horo-close {
  background: none; border: none; color: var(--text-3);
  font-size: 18px; cursor: pointer; line-height: 1;
  /* Audit P1-A: was 4px padding → 26px hit area; bumped to 44 minimum. */
  padding: 0;
  width: var(--tap-min, 44px); height: var(--tap-min, 44px);
  display: inline-flex; align-items: center; justify-content: center;
  transition: color 0.2s;
}
.horo-close:hover { color: var(--gold); }

/* ==== CONVERSATIONS ==== */
.conv-list { display: flex; flex-direction: column; gap: 14px; }
.conv-card {
  display: grid;
  grid-template-columns: 90px 1fr 130px 28px;
  gap: 24px;
  align-items: center;
  padding: 20px 24px;
  border: 1px solid var(--line-soft);
  background: rgba(22,19,36,0.45);
  border-radius: 3px;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s;
}
.conv-card:hover { border-color: var(--line); background: rgba(28,25,48,0.6); }
.conv-badge {
  font-family: var(--f-mono);
  font-size: 9.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-align: center;
  padding: 8px 0;
  border: 1px solid;
  border-radius: 2px;
  color: var(--gold);
  border-color: rgba(201,168,109,0.35);
}
.conv-card[data-topic="moon"]   .conv-badge { color: var(--violet); border-color: rgba(139,124,216,0.35); }
.conv-card[data-topic="saturn"] .conv-badge { color: var(--rose);   border-color: rgba(200,125,160,0.35); }
.conv-card[data-topic="venus"]  .conv-badge { color: var(--teal);   border-color: rgba(142, 196, 184,0.35); }

.conv-body { min-width: 0; }
.conv-title {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 19px;
  color: var(--gold);
  margin: 0 0 8px;
  letter-spacing: 0.02em;
}
.conv-preview {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
  margin: 0;
  text-wrap: pretty;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.conv-meta {
  font-family: var(--f-mono);
  font-size: 9.5px;
  letter-spacing: 0.18em;
  color: var(--text-3);
  text-align: right;
  text-transform: uppercase;
  display: flex; flex-direction: column; gap: 6px; align-items: flex-end;
}
.conv-meta .qn {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 22px;
  letter-spacing: 0;
  line-height: 1;
  text-transform: none;
  color: var(--gold);
}
.conv-close {
  background: transparent;
  border: none;
  color: var(--text-3);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 6px;
  opacity: 0.5;
  transition: opacity 0.2s;
  align-self: start;
}
.conv-close:hover { opacity: 1; color: var(--text); }

/* ==== CIRCLES ==== */
.circles-list { display: flex; flex-direction: column; gap: 14px; }
.circle-card {
  position: relative;
  display: block;
  padding: 24px 32px 24px 28px;
  border: 1px solid var(--line-soft);
  background: rgba(22,19,36,0.45);
  border-radius: 3px;
  transition: all 0.2s;
  cursor: pointer;
  text-align: left;
  width: 100%;
  color: inherit;
  font: inherit;
}
.circle-card:hover { border-color: var(--line); background: rgba(28,25,48,0.6); }

.circle-body { min-width: 0; }

.circle-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.circle-name-row {
  display: inline-flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
  min-width: 0;
}
.circle-name {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 28px;
  color: var(--gold);
  margin: 0;
  letter-spacing: 0.01em;
  line-height: 1.1;
}
.circle-role-inline {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 17px;
  color: var(--text);
  line-height: 1.2;
}
.circle-role-inline .dot {
  color: var(--text-3);
  margin: 0 10px;
  font-style: normal;
}
.circle-role-inline .since {
  font-family: var(--f-mono);
  font-style: normal;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-3);
}
.circle-compat-inline {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  white-space: nowrap;
}
.circle-compat-inline .pct {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 36px;
  line-height: 1;
  color: var(--gold);
  letter-spacing: -0.01em;
}
.circle-compat-inline .lbl {
  font-family: var(--f-mono);
  font-size: 9.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-3);
}

.circle-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
}
.circle-trio { display: flex; gap: 10px; flex-wrap: wrap; }
.circle-trio .sign-chip {
  padding: 8px 12px;
  border: 1px solid var(--line);
  background: rgba(11,10,18,0.55);
  display: flex; align-items: center; gap: 8px;
  border-radius: 2px;
}
.circle-trio .sign-chip .kind {
  font-family: var(--f-mono);
  font-size: 8.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-3);
}
.circle-trio .sign-chip .name {
  font-family: var(--f-display);
  font-size: 15px;
  color: var(--text);
  font-style: italic;
}
.circle-card[data-tone="violet"] .circle-trio .sign-chip .name { color: var(--violet); }
.circle-card[data-tone="rose"]   .circle-trio .sign-chip .name { color: var(--rose); }
.circle-card[data-tone="teal"]   .circle-trio .sign-chip .name { color: var(--teal); }
.circle-card[data-tone="gold"]   .circle-trio .sign-chip .name { color: var(--gold); }

.circle-elements {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  align-items: baseline;
  margin-left: auto;
}
.circle-elements .elem {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
}
.circle-elements .elem .pct {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 15px;
  letter-spacing: 0;
  text-transform: none;
}
.circle-elements .elem[data-el="fire"]  { color: #e8a78a; }
.circle-elements .elem[data-el="earth"] { color: #a8d9cd; }
.circle-elements .elem[data-el="air"]   { color: #c9beef; }
.circle-elements .elem[data-el="water"] { color: #bcd6e5; }

.circle-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: transparent;
  border: none;
  color: var(--text-3);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
  opacity: 0.4;
  transition: opacity 0.2s;
}
.circle-close:hover { opacity: 1; color: var(--text); }

/* ==== COMPATIBILITY ==== */
.compat-list { display: flex; flex-direction: column; gap: 14px; }
.compat-card {
  display: grid;
  grid-template-columns: 100px 1fr 130px 28px;
  gap: 24px;
  align-items: center;
  padding: 20px 24px;
  border: 1px solid var(--line-soft);
  background: rgba(22,19,36,0.45);
  border-radius: 3px;
  transition: all 0.2s;
  text-decoration: none;
  color: inherit;
}
.compat-card:hover { border-color: var(--line); background: rgba(28,25,48,0.6); }
.compat-badge-stack {
  display: flex; flex-direction: column; gap: 6px;
  align-self: stretch;
}
.compat-badge {
  font-family: var(--f-mono);
  font-size: 9.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-align: center;
  padding: 9px 0;
  border: 1px solid;
  border-radius: 2px;
  color: var(--gold);
  border-color: rgba(201,168,109,0.35);
  flex: 1;
  display: grid; place-items: center;
}
.compat-vector {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px 6px 10px;
  border: 1px solid;
  border-radius: 999px;
  font-family: var(--f-display);
  font-style: italic;
  font-size: 14px;
  letter-spacing: 0.01em;
  line-height: 1;
  margin-bottom: 10px;
  background: rgba(11,10,18,0.5);
}
.compat-vector::before {
  content: '';
  width: 6px; height: 6px; border-radius: 50%;
  background: currentColor;
  display: inline-block;
  opacity: 0.9;
}
.compat-vector[data-v="romance"]    { color: #e09bbd; border-color: rgba(224,155,189,0.45); }
.compat-vector[data-v="work"]       { color: var(--gold); border-color: rgba(201,168,109,0.45); }
.compat-vector[data-v="family"]     { color: var(--teal); border-color: rgba(142, 196, 184,0.45); }
.compat-vector[data-v="friendship"] { color: var(--violet); border-color: rgba(139,124,216,0.50); }
.compat-card[data-score="high"]   .compat-badge { color: var(--gold);   border-color: rgba(201,168,109,0.40); }
.compat-card[data-score="mid"]    .compat-badge { color: var(--violet); border-color: rgba(139,124,216,0.40); }
.compat-card[data-score="low"]    .compat-badge { color: var(--rose);   border-color: rgba(200,125,160,0.40); }
.compat-card[data-score="steady"] .compat-badge { color: var(--teal);   border-color: rgba(142, 196, 184,0.40); }

.compat-body { min-width: 0; }
.compat-name {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 19px;
  color: var(--gold);
  margin: 0 0 6px;
  letter-spacing: 0.02em;
  display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
}
.compat-name .x {
  color: var(--text-3);
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 400;
  font-size: 17px;
  margin: 0 2px;
}
.compat-name .sub {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 13.5px;
  color: var(--text-3);
  font-weight: 400;
  letter-spacing: 0;
}
.compat-text {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
  margin: 0;
  text-wrap: pretty;
}

.compat-meta {
  font-family: var(--f-mono);
  font-size: 9.5px;
  letter-spacing: 0.18em;
  color: var(--text-3);
  text-align: right;
  text-transform: uppercase;
  display: flex; flex-direction: column; gap: 6px; align-items: flex-end;
}

.compat-close {
  background: transparent;
  border: none;
  color: var(--text-3);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 6px;
  opacity: 0.5;
  transition: opacity 0.2s;
  align-self: start;
}
.compat-close:hover { opacity: 1; color: var(--text); }

/* ==== BLOG ==== */
.blog-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.blog-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 26px 28px;
  border: 1px solid var(--line-soft);
  background: rgba(22,19,36,0.45);
  border-radius: 3px;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s;
  position: relative;
}
.blog-card:hover { border-color: var(--line); background: rgba(28,25,48,0.6); }
.blog-featured {
  grid-column: 1 / -1;
  padding: 40px 44px;
  background: linear-gradient(135deg, rgba(28,24,52,0.6), rgba(18,15,32,0.5));
  border-color: var(--line);
  gap: 20px;
}
.blog-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  font-family: var(--f-mono);
  font-size: 9.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-3);
}
.blog-tag { color: var(--gold); }
.blog-tag.tag-v { color: var(--violet); }
.blog-tag.tag-r { color: var(--rose); }
.blog-tag.tag-t { color: var(--teal); }

.blog-level {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px 4px 8px;
  border: 1px solid;
  border-radius: 999px;
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  line-height: 1;
  margin-left: auto;
}
.blog-level .pips { display: inline-flex; gap: 2px; }
.blog-level .pip {
  width: 4px; height: 4px; border-radius: 50%;
  background: currentColor;
  opacity: 0.25;
}
.blog-level .pip.on { opacity: 1; }
.blog-level[data-level="beginner"]     { color: var(--teal);   border-color: rgba(142, 196, 184,0.5); }
.blog-level[data-level="intermediate"] { color: var(--gold);   border-color: rgba(201,168,109,0.5); }
.blog-level[data-level="expert"]       { color: var(--rose);   border-color: rgba(200,125,160,0.55); }

.blog-title {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 22px;
  line-height: 1.25;
  color: var(--text);
  margin: 0;
  letter-spacing: 0.01em;
  text-wrap: pretty;
}
.blog-title em { font-style: italic; color: var(--gold); font-weight: 400; }
.blog-featured .blog-title { font-size: 36px; line-height: 1.15; }

.blog-excerpt {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-2);
  margin: 0;
  text-wrap: pretty;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-featured .blog-excerpt { font-size: 17px; color: var(--text); -webkit-line-clamp: 4; }

.blog-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 10px;
  margin-top: auto;
  border-top: 1px solid var(--line-soft);
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.blog-author { color: var(--text-3); }
.blog-read {
  color: var(--gold);
  font-family: var(--f-display);
  font-style: italic;
  text-transform: none;
  letter-spacing: 0;
  font-size: 13px;
}

/* ==== NATAL WHEEL SVG animations ==== */
.chart-wheel .halo { animation: halo-breathe 6s ease-in-out infinite; transform-origin: center; }
@keyframes halo-breathe {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.7; transform: scale(0.98); }
}
.chart-wheel .spin-slow    { animation: spin 120s linear infinite; }
.chart-wheel .spin-reverse { animation: spin-reverse 90s linear infinite; }
@keyframes spin         { to { transform: rotate(360deg); } }
@keyframes spin-reverse { to { transform: rotate(-360deg); } }
.chart-wheel .twinkle { animation: twinkle-dot 5s ease-in-out infinite; }
@keyframes twinkle-dot {
  0%, 100% { opacity: 0.3; }
  50%      { opacity: 1; }
}
.chart-wheel .aspect {
  stroke-dasharray: var(--len);
  stroke-dashoffset: var(--len);
  animation: aspect-draw 1.2s cubic-bezier(.2,.7,.2,1) var(--delay) forwards,
             aspect-pulse 6s ease-in-out calc(var(--delay) + 1.2s) infinite;
}
@keyframes aspect-draw  { to { stroke-dashoffset: 0; } }
@keyframes aspect-pulse {
  0%, 100% { opacity: 0.85; }
  50%      { opacity: 0.4; }
}
.chart-wheel .planet {
  opacity: 0;
  transform: scale(0.6);
  transform-box: fill-box;
  transform-origin: center;
  animation: planet-pop 0.8s cubic-bezier(.2,.7,.2,1) forwards;
}
@keyframes planet-pop { to { opacity: 1; transform: scale(1); } }
.chart-wheel .planet-halo { animation: planet-halo-pulse 3.6s ease-in-out infinite; transform-origin: center; }
@keyframes planet-halo-pulse {
  0%, 100% { opacity: 0.4; }
  50%      { opacity: 0.9; }
}
.chart-wheel .sign-glyph { opacity: 0; animation: sign-fade 1.1s ease forwards; }
@keyframes sign-fade { to { opacity: 0.9; } }

/* Responsive */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; padding: 32px 28px; gap: 32px; }
  .hero-name { font-size: 48px; }
  .circle-card .circle-head { flex-direction: column; align-items: flex-start; gap: 6px; }
  .circle-card .circle-compat-inline .pct { font-size: 28px; }
  .circle-name { font-size: 22px; }
  .horo-card, .conv-card { grid-template-columns: 80px 1fr; }
  .horo-card .horo-date, .horo-card .horo-close,
  .conv-card .conv-meta, .conv-card .conv-close { grid-column: 2; text-align: left; align-items: flex-start; }
  .blog-grid { grid-template-columns: 1fr; }
  .blog-featured { padding: 24px; }
  .blog-featured .blog-title { font-size: 26px; }
  .blog-card { padding: 20px; }
  .compat-card { grid-template-columns: 90px 1fr; }
  .compat-card .compat-meta, .compat-card .compat-close { grid-column: 2; text-align: left; align-items: flex-start; }
  .nav-links { display: none; }
  body.ts-dashboard main {
    padding-top: calc(32px + env(safe-area-inset-top));
    padding-right: calc(20px + env(safe-area-inset-right));
    padding-bottom: calc(80px + env(safe-area-inset-bottom));
    padding-left: calc(20px + env(safe-area-inset-left));
  }
}

/* Consistent hover/transition/focus system */
.btn, .btn-primary, .btn-ghost, .arch-ctrl, .coin-chip, .avatar-btn,
.tab, .section-more, .new-horo, .horo-card, .conv-card,
.circle-card, .compat-card, .blog-card, .arch-card,
.horo-close, .conv-close, .circle-close, .compat-close, .nav-logout,
.wheel-legend .item, .sign-chip {
  transition:
    color var(--t) var(--ease),
    background var(--t) var(--ease),
    background-color var(--t) var(--ease),
    border-color var(--t) var(--ease),
    box-shadow var(--t) var(--ease),
    opacity var(--t) var(--ease),
    transform var(--t) var(--ease);
}
.horo-card:hover, .conv-card:hover, .circle-card:hover, .compat-card:hover,
.blog-card:hover, .new-horo:hover {
  border-color: var(--gold-dim);
  background: rgba(28,25,48,0.65);
  box-shadow: 0 1px 0 rgba(201,168,109,0.08), 0 6px 22px -12px rgba(201,168,109,0.25);
  transform: translateY(-1px);
}
.horo-close:hover, .conv-close:hover, .circle-close:hover, .compat-close:hover {
  opacity: 1; color: var(--gold);
}
.circle-card .sign-chip, .wheel-legend .item { cursor: default; }
.circle-card:hover .sign-chip { border-color: var(--gold-dim); }

.btn:focus-visible, .btn-ghost:focus-visible, .btn-primary:focus-visible,
.arch-ctrl:focus-visible, .coin-chip:focus-visible, .avatar-btn:focus-visible,
.new-horo:focus-visible, .horo-card:focus-visible, .conv-card:focus-visible,
.circle-card:focus-visible, .compat-card:focus-visible, .blog-card:focus-visible,
.nav-links a:focus-visible, .nav-logout:focus-visible,
.horo-close:focus-visible, .conv-close:focus-visible,
.circle-close:focus-visible, .compat-close:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(201,168,109,0.55);
}

@media (prefers-reduced-motion: reduce) {
  .horo-card:hover, .conv-card:hover, .circle-card:hover, .compat-card:hover,
  .blog-card:hover, .new-horo:hover, .arch-card:hover { transform: none; }
}

/* iOS / touch: kill the lift transforms on :hover, since touch devices
   trigger :hover on first tap and the lift then sticks until the user
   taps elsewhere. Color/border feedback stays — only the translateY is
   neutralised so the card doesn't visually freeze in the lifted state. */
@media (hover: none) {
  .horo-card:hover, .conv-card:hover, .circle-card:hover, .compat-card:hover,
  .blog-card:hover, .new-horo:hover, .arch-card:hover, .ob-card:hover,
  .sign-chip--link:hover {
    transform: none;
  }
}

/* Section animation */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.section { animation: fade-up 0.6s ease both; }
.section:nth-child(1) { animation-delay: 0.05s; }
.section:nth-child(2) { animation-delay: 0.1s; }

/* Scroll reveal */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 1.1s cubic-bezier(.2,.7,.2,1), transform 1.1s cubic-bezier(.2,.7,.2,1);
  will-change: opacity, transform;
}
[data-reveal="up"]    { transform: translateY(24px); }
[data-reveal="fade"]  { transform: none; transition-duration: 1.6s; }
[data-reveal="rise"]  { transform: translateY(36px); transition-duration: 1.3s; }
[data-reveal="scale"] { transform: scale(0.94); transition-duration: 1.6s; }
[data-reveal].in { opacity: 1; transform: none; }

[data-reveal-group] > * {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.9s cubic-bezier(.2,.7,.2,1), transform 0.9s cubic-bezier(.2,.7,.2,1);
  will-change: opacity, transform;
}
[data-reveal-group].in > * { opacity: 1; transform: none; }
[data-reveal-group].in > *:nth-child(1) { transition-delay: 0.05s; }
[data-reveal-group].in > *:nth-child(2) { transition-delay: 0.15s; }
[data-reveal-group].in > *:nth-child(3) { transition-delay: 0.25s; }
[data-reveal-group].in > *:nth-child(4) { transition-delay: 0.35s; }
[data-reveal-group].in > *:nth-child(5) { transition-delay: 0.45s; }
[data-reveal-group].in > *:nth-child(6) { transition-delay: 0.55s; }
[data-reveal-group].in > *:nth-child(n+7) { transition-delay: 0.65s; }

.ornament [data-reveal="ornament"] { opacity: 0; }
.ornament [data-reveal="ornament"].in { opacity: 1; transition: opacity 1.4s ease; }
.ornament .line { transform-origin: center; transform: scaleX(0); transition: transform 1.4s cubic-bezier(.2,.7,.2,1); }
.ornament.in .line { transform: scaleX(1); }

@media (prefers-reduced-motion: reduce) {
  [data-reveal], [data-reveal-group] > *, .ornament .line {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* Empty-state text */
.empty-state {
  padding: 20px 24px;
  border: 1px dashed var(--line-soft);
  border-radius: 3px;
  color: var(--text-3);
  font-family: var(--f-display);
  font-style: italic;
  font-size: 15px;
  text-align: center;
  background: rgba(22,19,36,0.25);
}

/* ── Archetype-carousel pending state (REQ-380 follow-up — make
      "Your Cards" in-progress visibly alive instead of a flat line). */
.arch-pending {
  margin: 0 40px;
  padding: 32px 28px 26px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(201,168,109,0.08), transparent 60%),
    linear-gradient(180deg, rgba(28,25,48,0.6), rgba(22,19,36,0.6));
  text-align: center;
  position: relative;
  overflow: hidden;
}
.arch-pending::before,
.arch-pending::after {
  content: '';
  position: absolute;
  width: 12px; height: 12px;
  border: 1px solid var(--gold);
  pointer-events: none;
}
.arch-pending::before {
  top: 12px; left: 12px;
  border-right: none; border-bottom: none;
}
.arch-pending::after {
  bottom: 12px; right: 12px;
  border-left: none; border-top: none;
}
.arch-pending-glyph {
  font-family: var(--f-display);
  font-size: 28px;
  line-height: 1;
  color: var(--gold);
  margin-bottom: 14px;
  display: inline-block;
  animation: archPulse 2.4s ease-in-out infinite;
  filter: drop-shadow(0 0 12px rgba(201,168,109,0.45));
}
@keyframes archPulse {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50%      { opacity: 1;   transform: scale(1.15); }
}
.arch-pending-title {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 20px;
  color: var(--gold);
  margin: 0 0 6px;
}
.arch-pending-sub {
  font-family: var(--f-sans);
  font-size: 13px;
  color: var(--text-2);
  margin: 0 0 18px;
  line-height: 1.55;
}
.arch-pending-bar {
  position: relative;
  height: 6px;
  background: var(--line-soft);
  border-radius: 3px;
  overflow: hidden;
  max-width: 320px;
  margin: 0 auto 12px;
}
.arch-pending-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0%;
  background: linear-gradient(90deg, var(--gold), var(--gold-2));
  border-radius: 3px;
  box-shadow: 0 0 12px rgba(201,168,109,0.5);
  transition: width 600ms cubic-bezier(.2,.7,.2,1);
}
/* Indeterminate shimmer so empty bars (vectors_done = 0) still
   visibly breathe before the first chunk lands. */
.arch-pending-bar::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
    transparent,
    rgba(201,168,109,0.18),
    transparent);
  transform: translateX(-100%);
  animation: archShimmer 1.8s linear infinite;
}
@keyframes archShimmer {
  to { transform: translateX(100%); }
}
.arch-pending-counter {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-3);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.arch-pending-dots {
  display: inline-flex;
  gap: 3px;
}
.arch-pending-dots span {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--gold-dim);
  animation: archDot 1.4s ease-in-out infinite;
}
.arch-pending-dots span:nth-child(2) { animation-delay: 0.2s; }
.arch-pending-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes archDot {
  0%, 100% { opacity: 0.25; transform: scale(1); }
  50%      { opacity: 1;    transform: scale(1.3); }
}
/* Phase chips — REQ-382 — show pipeline progression past the 7/7
   archetype milestone so the user sees ongoing work. */
.arch-pending-phases {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 10px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.ap-phase {
  position: relative;
  padding: 4px 10px 4px 22px;
  color: var(--text-3);
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: rgba(11, 10, 18, 0.4);
  transition: color var(--t) var(--ease),
              border-color var(--t) var(--ease),
              background var(--t) var(--ease);
}
.ap-phase::before {
  content: '';
  position: absolute;
  left: 8px; top: 50%;
  width: 8px; height: 8px;
  margin-top: -4px;
  border-radius: 50%;
  background: var(--gold-dim);
  opacity: 0.35;
  transition: background var(--t) var(--ease),
              opacity var(--t) var(--ease),
              box-shadow var(--t) var(--ease);
}
.ap-phase.is-done {
  color: var(--gold);
  border-color: var(--line);
  background: rgba(201, 168, 109, 0.06);
}
.ap-phase.is-done::before {
  background: var(--gold);
  opacity: 1;
}
.ap-phase.is-active {
  color: var(--gold-2);
  border-color: var(--gold);
  background: rgba(201, 168, 109, 0.08);
}
.ap-phase.is-active::before {
  background: var(--gold-2);
  opacity: 1;
  box-shadow: 0 0 0 3px rgba(201, 168, 109, 0.18);
  animation: apPhasePulse 1.4s ease-in-out infinite;
}
@keyframes apPhasePulse {
  0%, 100% { box-shadow: 0 0 0 2px rgba(201, 168, 109, 0.18); }
  50%      { box-shadow: 0 0 0 6px rgba(201, 168, 109, 0.22); }
}

@media (max-width: 720px) {
  .arch-pending { margin: 0 20px; padding: 26px 20px 22px; }
  .arch-pending-phases { font-size: 10px; gap: 5px 7px; }
  .ap-phase { padding: 3px 8px 3px 20px; }
}

/* ──────────────────────────────────────────────────────────────────
   Empty-state ONBOARDING STRIP
   Appears under the hero only on a brand-new profile (no horoscopes,
   no conversations, no circle members). Disappears as soon as the
   user adds anything. Cards stay clickable while the natal pipeline
   is still running — clicking them opens the explainer popup below.
   ────────────────────────────────────────────────────────────────── */
.onboarding-strip {
  margin: 28px 0 0;
  padding: 28px 28px 24px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(201,168,109,0.06), transparent 70%),
    linear-gradient(180deg, rgba(28,25,48,0.5), rgba(22,19,36,0.5));
  position: relative;
}
.ob-head { text-align: center; margin-bottom: 22px; }
.ob-kicker {
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 8px;
}
.ob-title {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 26px;
  letter-spacing: 0.04em;
  color: var(--text);
  margin: 0 0 6px;
}
.ob-title em { font-style: italic; color: var(--gold); }
.ob-sub {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 15px;
  color: var(--text-2);
  margin: 0;
}
.ob-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 4px;
}
/* UX-audit dashboard F04: cards lacked affordance — bumped border opacity
   from 0.08 → 0.22 so the card edge actually shows; deepened surface tint;
   trailing → arrow added for unambiguous "I do something". */
.ob-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  padding: 22px 16px 18px;
  border: 1px solid rgba(201, 168, 109, 0.22);
  background: rgba(28, 25, 48, 0.55);
  border-radius: 3px;
  cursor: pointer;
  font: inherit;
  color: inherit;
  transition:
    color var(--t) var(--ease),
    border-color var(--t) var(--ease),
    background var(--t) var(--ease),
    transform var(--t) var(--ease),
    box-shadow var(--t) var(--ease);
  min-height: var(--tap-min, 44px);
}
.ob-card:hover {
  border-color: var(--gold-dim);
  background: rgba(28,25,48,0.7);
  transform: translateY(-2px);
  box-shadow: 0 1px 0 rgba(201,168,109,0.12), 0 8px 24px -14px rgba(201,168,109,0.4);
}
.ob-card:hover .ob-card-glyph { color: var(--gold-2); }
.ob-card:hover .ob-card-arrow { color: var(--gold-2); transform: translateX(2px); }
.ob-card:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(201,168,109,0.55);
}
.ob-card-glyph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  line-height: 1;
  color: var(--gold);
  margin-bottom: 2px;
  transition: color var(--t) var(--ease);
}
.ob-card-glyph svg { display: block; }
.ob-card-arrow {
  position: absolute;
  top: 12px;
  right: 14px;
  font-family: var(--f-mono);
  font-size: 14px;
  color: var(--gold-dim);
  transition: color var(--t) var(--ease), transform var(--t) var(--ease);
  line-height: 1;
}
.ob-card-title {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 17px;
  color: var(--text);
  line-height: 1.25;
}
.ob-card-sub {
  font-family: var(--f-sans);
  font-size: 12px;
  color: var(--text-3);
  line-height: 1.45;
}

@media (max-width: 960px) {
  .ob-cards { grid-template-columns: repeat(2, 1fr); }
  .onboarding-strip { padding: 24px 18px 18px; }
  .ob-title { font-size: 22px; }
}
@media (max-width: 520px) {
  .ob-cards { grid-template-columns: 1fr; gap: 10px; }
  /* On phones the cards become 2-column grids: glyph on the left,
     title + sub stacked on the right so the title gets the full
     remaining width and doesn't wrap into a tower. */
  .ob-card {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-areas:
      'glyph title'
      'glyph sub';
    column-gap: 14px;
    row-gap: 2px;
    padding: 16px 18px;
    text-align: left;
    align-items: center;
  }
  .ob-card-glyph {
    grid-area: glyph;
    width: 24px;
    height: 24px;
    align-self: center;
  }
  .ob-card-glyph svg { width: 24px; height: 24px; }
  /* Mobile cards already imply tappability via the full-width row pattern;
     arrow keeps its position bottom-right where the eye lands at end-of-row. */
  .ob-card-arrow { top: auto; bottom: 14px; right: 14px; }
  .ob-card-title {
    grid-area: title;
    font-size: 16px;
    align-self: end;
    line-height: 1.2;
  }
  .ob-card-sub {
    grid-area: sub;
    font-size: 11.5px;
    align-self: start;
    line-height: 1.4;
  }
}

/* ──────────────────────────────────────────────────────────────────
   Generic dashboard explainer popup (DashExplainer)
   Lightweight modal — title, glyph, paragraph, primary + secondary
   action. Reused by onboarding cards (pipeline pending) and the
   compatibility CTA (empty circle).
   ────────────────────────────────────────────────────────────────── */
.dx {
  position: fixed; inset: 0;
  z-index: 1000;
  display: grid; place-items: center;
  padding: 24px;
}
.dx[hidden] { display: none; }
.dx-overlay {
  position: absolute; inset: 0;
  background: rgba(7, 6, 14, 0.72);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  cursor: pointer;
  animation: dxFade 220ms ease both;
}
.dx-shell {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 460px;
  padding: 36px 32px 28px;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.6),
              0 0 0 1px rgba(201,168,109,0.06);
  text-align: center;
  animation: dxRise 280ms cubic-bezier(.2,.7,.2,1) both;
}
.dx-shell::before, .dx-shell::after {
  content: ''; position: absolute;
  width: 12px; height: 12px;
  border: 1px solid var(--gold);
  pointer-events: none;
}
.dx-shell::before { top: 12px; left: 12px;  border-right: none; border-bottom: none; }
.dx-shell::after  { bottom: 12px; right: 12px; border-left: none; border-top: none; }
.dx-close {
  position: absolute;
  top: 6px; right: 6px;
  width: var(--tap-min, 44px); height: var(--tap-min, 44px);
  background: transparent;
  border: none;
  color: var(--text-3);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  border-radius: 50%;
  transition: color var(--t) var(--ease), background var(--t) var(--ease);
}
.dx-close:hover { color: var(--gold); background: rgba(201,168,109,0.06); }
.dx-glyph {
  font-family: var(--f-display);
  font-size: 32px;
  line-height: 1;
  color: var(--gold);
  margin-bottom: 14px;
  filter: drop-shadow(0 0 12px rgba(201,168,109,0.35));
}
.dx-title {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 22px;
  color: var(--gold);
  margin: 0 0 10px;
  letter-spacing: 0.01em;
}
.dx-body {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--text);
  margin: 0 0 22px;
  text-wrap: pretty;
}
.dx-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.dx-actions .btn { min-height: var(--tap-min, 44px); }

@keyframes dxFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes dxRise {
  from { opacity: 0; transform: translateY(12px) scale(0.97); }
  to   { opacity: 1; transform: none; }
}

@media (max-width: 520px) {
  .dx { padding: 16px; }
  .dx-shell { padding: 28px 22px 22px; }
  .dx-title { font-size: 19px; }
  .dx-body { font-size: 14.5px; }
  /* DOM order is [secondary, primary], so default `column` puts Maybe-
     later on top and the primary action at the bottom (thumb reach). */
  .dx-actions { flex-direction: column; }
  .dx-actions .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .dx-overlay, .dx-shell { animation: none; }
}

/* Depth signal on a compatibility card: how many relationship-months have
   been read for that pair. Quieter than the tier badge above it — it reports
   that there is more behind the card, it does not compete with the score. */
body.ts-dashboard .compat-months-badge {
  font-family: var(--f-mono);
  font-size: .62rem;
  letter-spacing: .04em;
  color: var(--text-3);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: .1rem .34rem;
  margin-top: .3rem;
  text-align: center;
  white-space: nowrap;
}
