/* ── Glass Card Components — Premium redesign ── */

.glass {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.glass-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: var(--space-lg);
  transition: border-color var(--duration) var(--ease), transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}

.glass-card:hover {
  border-color: var(--border-hover);
}

.glass-card-interactive:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

/* ── DL v2 §4 surface hierarchy — one hero per screen, the rest recede ──
   .surface-hero : illuminated (gold gradient border ≤.5α + inner glow, stronger
                   blur). Corner marks/ornaments are added at designation (WS-10.3).
   .surface-quiet: the new default — fill/border drop so the hero reads.
   .surface-inset: borderless sub-blocks inside a card. */
.surface-hero {
  position: relative;
  border-radius: var(--radius-hero);
  padding: var(--space-lg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: inset 0 0 40px var(--gold-glow);
  border: 1px solid transparent;
  /* gold→transparent gradient border via double-background clip */
  background:
    linear-gradient(var(--surface-hero-fill), var(--surface-hero-fill)) padding-box,
    linear-gradient(135deg, var(--surface-hero-border), rgba(255,212,112,0.05)) border-box;
}
.surface-quiet {
  background: var(--surface-quiet-fill);
  border: 1px solid var(--surface-quiet-border);
  border-radius: var(--radius-quiet);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: var(--space-lg);
}
.surface-inset {
  background: var(--surface-inset-fill);
  border: none;
  border-radius: var(--radius-inset);
  padding: var(--space-md);
}

/* ── Gradient-bordered shareable card ────────────── */
.share-card {
  position: relative;
  border-radius: var(--radius-xl);
  padding: 2px;
  background: linear-gradient(135deg, var(--gold), var(--orange), var(--pink), var(--purple), var(--blue));
}
.share-card-inner {
  background: rgba(8,6,26,0.92);
  border-radius: calc(var(--radius-xl) - 2px);
  padding: var(--space-xl);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

/* ── Badge ───────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 6px 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 600;
  backdrop-filter: blur(10px);
  white-space: nowrap;
}

.badge-gold { border-color: rgba(255,212,112,0.3); color: var(--gold); }
.badge-blue { border-color: rgba(110,176,255,0.3); color: var(--blue); }
.badge-pink { border-color: rgba(255,110,176,0.3); color: var(--pink); }
.badge-purple { border-color: rgba(176,110,255,0.3); color: var(--purple); }
.badge-teal { border-color: rgba(110,255,212,0.3); color: var(--teal); }
.badge-orange { border-color: rgba(255,157,80,0.3); color: var(--orange); }

/* ── Chip ────────────────────────────────────────── */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--duration) var(--ease);
  backdrop-filter: blur(10px);
  white-space: nowrap;
}
.chip:hover {
  background: var(--bg-surface-hover);
  border-color: var(--border-hover);
  color: var(--text-primary);
}
.chip.active, .chip.selected {
  background: rgba(255,212,112,0.12);
  border-color: rgba(255,212,112,0.4);
  color: var(--gold);
}

/* ── Activity cards (electional) ─────────────────── */
.activity-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 16px 12px;
  min-width: 85px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--duration) var(--ease);
  backdrop-filter: blur(10px);
}
.activity-card:hover {
  background: var(--bg-surface-hover);
  border-color: var(--border-hover);
  transform: translateY(-2px);
}
.activity-card.active {
  background: rgba(255,212,112,0.12);
  border-color: rgba(255,212,112,0.4);
  box-shadow: 0 0 20px rgba(255,212,112,0.1);
}
.activity-card .activity-icon {
  font-size: 1.6rem;
}
.activity-card .activity-label {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.activity-card.active .activity-label {
  color: var(--gold);
}

/* ── Verdict card (electional) ───────────────────── */
.verdict-card {
  text-align: center;
  padding: var(--space-xl);
}
.verdict-icon {
  font-size: 3.5rem;
  margin-bottom: var(--space-md);
  filter: drop-shadow(0 0 16px currentColor);
}
.verdict-label {
  font-family: var(--font-ar-display);   /* DL v2 §5 — verdict word in Kufi */
  font-size: var(--text-2xl);
  font-weight: 500;
  margin-bottom: var(--space-sm);
}
.verdict-favorable .verdict-icon { color: var(--favorable); }
.verdict-favorable .verdict-label { color: var(--favorable); }
.verdict-unfavorable .verdict-icon { color: var(--unfavorable); }
.verdict-unfavorable .verdict-label { color: var(--unfavorable); }
.verdict-neutral .verdict-icon { color: var(--neutral); }
.verdict-neutral .verdict-label { color: var(--neutral); }
.verdict-desc {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  line-height: 1.8;
}
.verdict-next {
  margin-top: var(--space-lg);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border);
  font-size: var(--text-sm);
  color: var(--text-secondary);
}
.verdict-mansion {
  margin-top: var(--space-md);
  padding: var(--space-lg);
  background: var(--bg-surface);
  border-radius: var(--radius-md);
}
/* DL v2 §7 — verdict materialize: frame draws in, verdict word rises after,
   ticks/desc light last. Gated by prefers-reduced-motion. */
.verdict-materialize { animation: verdictFrame .4s cubic-bezier(.22,1,.36,1) both; }
.verdict-materialize .verdict-label { animation: verdictRise .3s cubic-bezier(.22,1,.36,1) .3s both; }
.verdict-materialize .verdict-icon,
.verdict-materialize .verdict-desc,
.verdict-materialize .verdict-mansion { animation: verdictRise .3s ease .5s both; }
@keyframes verdictFrame { from { opacity: 0; transform: scale(.98); } to { opacity: 1; transform: none; } }
@keyframes verdictRise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .verdict-materialize,
  .verdict-materialize .verdict-label,
  .verdict-materialize .verdict-icon,
  .verdict-materialize .verdict-desc,
  .verdict-materialize .verdict-mansion { animation: none !important; }
}

/* WS-7 — element-derived wheel halo. --wheel-glow is transparent by default,
   so this is a no-op until App.WHEEL_ELEMENT_PALETTE sets a per-element color. */
.wheel-el-glow { filter: drop-shadow(0 0 22px var(--wheel-glow)); }

/* ── WS-5 install ritual sheet + real-content push preview ───────────── */
.install-overlay {
  position: fixed; inset: 0; z-index: var(--z-modal, 200);
  display: flex; align-items: flex-end; justify-content: center;
  background: rgba(4,3,14,0.6); backdrop-filter: blur(4px);
  padding: 16px;
}
.install-sheet {
  position: relative; width: 100%; max-width: 420px;
  margin-bottom: env(safe-area-inset-bottom, 0);
  animation: installRise 0.32s cubic-bezier(.22,1,.36,1);
}
@keyframes installRise { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
.install-close {
  position: absolute; inset-inline-end: 10px; top: 8px;
  background: none; border: none; color: var(--text-muted);
  font-size: 26px; line-height: 1; cursor: pointer; padding: 4px;
}
.install-title {
  font-family: var(--font-ar-display);
  color: var(--gold); font-size: var(--text-lg); font-weight: 500;
  margin-bottom: var(--space-md); padding-inline-end: 24px;
}
/* Device-style push preview — fake chrome, REAL free-tier content. */
.push-preview {
  position: relative; border-radius: 14px;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.1);
  padding: 12px 14px; margin-bottom: var(--space-md);
}
.push-preview-tag {
  position: absolute; inset-inline-end: 10px; top: 8px;
  font-size: 9px; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--text-muted); border: 1px solid var(--glass-border);
  border-radius: 999px; padding: 1px 7px;
}
.push-preview-app {
  display: flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.08em;
  color: var(--text-secondary); margin-bottom: 4px;
}
.push-preview-dot { width: 14px; height: 14px; border-radius: 4px; background: linear-gradient(135deg, var(--gold), var(--pink)); }
.push-preview-body { color: var(--text-bright); font-size: var(--text-sm); line-height: 1.5; }
.install-steps { list-style: none; margin: 0 0 var(--space-sm); padding: 0; }
.install-steps li {
  display: flex; align-items: center; gap: 10px;
  color: var(--text); font-size: var(--text-sm); padding: 8px 0;
}
.install-step-ico { color: var(--gold); line-height: 0; }
.install-step-ico svg { width: 22px; height: 22px; }
.install-hint { color: var(--text-muted); font-size: var(--text-xs); }

/* 5c (WS-10.3) — verdict-tinted hero glow (Open Sky port). Only active when
   App.VERDICT_TINT_HERO is on; otherwise the hero keeps its gold glow. */
.verdict-tinted.verdict-favorable  { box-shadow: inset 0 0 44px rgba(110,255,212,0.11); }
.verdict-tinted.verdict-neutral    { box-shadow: inset 0 0 44px rgba(255,212,112,0.11); }
.verdict-tinted.verdict-unfavorable{ box-shadow: inset 0 0 44px rgba(255,110,176,0.11); }
.btn-share-verdict {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 22px;
  border-radius: var(--radius-full);
  background: rgba(255,212,112,0.08);
  border: 1px solid rgba(255,212,112,0.4);
  color: var(--gold);
  font-family: inherit; font-size: var(--text-sm); font-weight: 700;
  cursor: pointer;
  transition: background var(--duration) var(--ease);
}
.btn-share-verdict:hover { background: rgba(255,212,112,0.16); }
.verdict-mansion .mansion-name {
  font-size: var(--text-xl);
  font-weight: 500;
  color: var(--gold);
  font-family: var(--font-ar-display);   /* DL v2 §5 — mansion name in Kufi */
}

/* ── Chat bubbles ────────────────────────────────── */
.chat-messages {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  padding: var(--space-md);
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}

.chat-bubble {
  max-width: 85%;
  padding: 12px 16px;
  border-radius: var(--radius-lg);
  font-size: var(--text-sm);
  line-height: 1.8;
  word-wrap: break-word;
  animation: viewFadeIn 0.25s ease-out;
}

.chat-bubble-user {
  align-self: flex-end;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-bottom-right-radius: var(--space-xs);
}
[dir="rtl"] .chat-bubble-user {
  border-bottom-right-radius: var(--radius-lg);
  border-bottom-left-radius: var(--space-xs);
}

.chat-bubble-ai {
  align-self: flex-start;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-inline-start: 3px solid var(--gold);
  border-bottom-left-radius: var(--space-xs);
}
[dir="rtl"] .chat-bubble-ai {
  border-bottom-left-radius: var(--radius-lg);
  border-bottom-right-radius: var(--space-xs);
}

.chat-context-bar {
  display: flex;
  gap: var(--space-sm);
  padding: 8px var(--space-md);
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
}

.chat-input-row {
  display: flex;
  gap: var(--space-sm);
  padding: var(--space-md);
  border-top: 1px solid var(--border);
}
.chat-input-row .input {
  flex: 1;
  border-radius: var(--radius-full);
  padding: 10px 18px;
}

/* ── Planet row (preview badges) ─────────────────── */
.planet-badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  justify-content: center;
}
.planet-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-md);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  min-width: 90px;
  backdrop-filter: blur(10px);
}
.planet-badge .glyph {
  font-size: 1.5rem;
  color: var(--gold);
}
.planet-badge .name {
  font-size: var(--text-xs);
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.planet-badge .value {
  font-size: var(--text-sm);
  font-weight: 700;
}

/* ── Triangle layout (Sun/Moon/Rising) ───────────── */
.triad {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
  margin: var(--space-md) 0;
}
.triad-top {
  grid-column: 1 / -1;
  justify-self: center;
}
.triad-item {
  text-align: center;
  padding: 14px 8px;
}
.triad-item .triad-glyph {
  font-size: 1.8rem;
  margin-bottom: 4px;
}
.triad-item .triad-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 2px;
}
.triad-item .triad-value {
  font-size: var(--text-sm);
  font-weight: 700;
}

/* ── Tab switcher ────────────────────────────────── */
.tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  gap: 0;
}
.tab {
  flex: 1;
  padding: 12px;
  text-align: center;
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--text-secondary);
  border: none;
  background: transparent;
  cursor: pointer;
  transition: color var(--duration) var(--ease);
  position: relative;
}
.tab::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--orange));
  transform: scaleX(0);
  transition: transform var(--duration) var(--ease);
}
.tab.active { color: var(--gold); }
.tab.active::after { transform: scaleX(1); }
.tab:hover { color: var(--text-primary); }

/* ── Section heading ─────────────────────────────── */
.section-title {
  font-family: var(--font-ar-display);   /* DL v2 §5 — screen titles in Kufi (≤40px) */
  font-size: var(--text-xl);
  font-weight: 500;
  margin-bottom: var(--space-lg);
}

/* ── Autocomplete dropdown ───────────────────────── */
.autocomplete-wrap {
  position: relative;
}
.autocomplete-list {
  position: absolute;
  top: 100%;
  left: 0; right: 0;
  z-index: 50;
  background: rgba(15,12,40,0.97);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  max-height: 200px;
  overflow-y: auto;
  backdrop-filter: blur(20px);
  margin-top: 4px;
}
.autocomplete-item {
  padding: 10px 14px;
  cursor: pointer;
  font-size: var(--text-sm);
  transition: background var(--duration) var(--ease);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.autocomplete-item:hover,
.autocomplete-item.focused {
  background: var(--bg-surface-hover);
}
.autocomplete-item .city-name { font-weight: 600; }
.autocomplete-item .city-country { color: var(--text-muted); font-size: var(--text-xs); }

/* ── Nav bar (gradient active) ───────────────────── */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0; right: 0;
  z-index: var(--z-nav);
  display: flex;
  justify-content: space-around;
  padding: 6px 0 calc(6px + env(safe-area-inset-bottom));
  background: rgba(8,6,26,0.92);
  border-top: 1px solid var(--border);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}
.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 6px 12px;
  color: var(--text-muted);
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: color var(--duration) var(--ease);
  background: none;
  border: none;
  position: relative;
}
.nav-item .nav-icon { font-size: 20px; line-height: 0; }
.nav-item .nav-icon svg { width: 24px; height: 24px; display: block; }
/* DL v2 §7 nav tick — active tab gets a 3px gold underline that rises in. */
.nav-item.active::after {
  content: ""; position: absolute; bottom: -2px; left: 50%; transform: translateX(-50%);
  width: 18px; height: 3px; border-radius: 2px; background: var(--gold);
}
.nav-item.active {
  color: var(--gold);   /* DL v2 §3/§7 — active nav is solid gold, never gradient */
}
.nav-item.active .nav-icon {
  color: var(--gold);
  filter: drop-shadow(0 0 6px rgba(255,212,112,0.3));
}
.nav-item.active span:last-child {
  color: var(--gold);
}
.nav-item:hover { color: var(--text-secondary); }

/* ── Reading content (book-like flow) ────────────── */
.reading-content {
  font-size: var(--text-base);
  line-height: 1.8;
  color: rgba(255,255,255,0.8);
}
body.rtl .reading-content {
  line-height: 2;
}
.reading-content h3 {
  color: var(--gold);
  font-size: var(--text-lg);
  margin: var(--space-xl) 0 var(--space-md);
  font-weight: 700;
}
.reading-content h3:first-child { margin-top: 0; }
.reading-content p {
  margin-bottom: var(--space-md);
}
.reading-content .planet-ref {
  color: var(--gold);
  font-weight: 600;
}
.reading-content .house-ref {
  color: var(--blue);
  font-weight: 600;
}

/* ── Mansion feature card ────────────────────────── */
.mansion-card {
  text-align: center;
  padding: var(--space-xl);
  position: relative;
  overflow: hidden;
}
.mansion-card .mansion-stars {
  position: absolute;
  inset: 0;
  opacity: 0.15;
}
.mansion-card .mansion-star-dot {
  position: absolute;
  width: 3px;
  height: 3px;
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(255,212,112,0.5);
}
.mansion-card .mansion-name {
  font-family: var(--font-ar-display);   /* DL v2 §5 */
  font-size: var(--text-2xl);
  font-weight: 500;
  color: var(--gold);
  margin-bottom: var(--space-sm);
  position: relative;
}
.mansion-card .mansion-name-en {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-bottom: var(--space-md);
  position: relative;
}
.mansion-card .mansion-desc {
  font-size: var(--text-sm);
  line-height: 1.8;
  color: var(--text-secondary);
  position: relative;
}

/* ── Chart details expandable ────────────────────── */
.chart-details-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 12px;
  color: var(--text-secondary);
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
  border: none;
  background: none;
  width: 100%;
  transition: color var(--duration) var(--ease);
}
.chart-details-toggle:hover { color: var(--text-primary); }
.chart-details-toggle .arrow {
  transition: transform var(--duration) var(--ease);
  font-size: 0.7em;
}
.chart-details-toggle.open .arrow { transform: rotate(180deg); }

.chart-details-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}
.chart-details-table td {
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
}
.chart-details-table td:first-child {
  color: var(--gold);
  font-weight: 600;
  white-space: nowrap;
}
.chart-details-table td:nth-child(2) {
  color: var(--text-primary);
}
.chart-details-table td:nth-child(3) {
  color: var(--blue);
  font-size: var(--text-xs);
}
.chart-details-table td:last-child {
  color: var(--text-muted);
  font-size: var(--text-xs);
}

/* ── Floating action button ──────────────────────── */
.fab {
  position: fixed;
  bottom: 80px;
  right: 20px;
  z-index: 50;
  padding: 12px 20px;
  background: linear-gradient(135deg, var(--gold), var(--orange));
  color: #08061a;
  border: none;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: var(--text-sm);
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(255,157,80,0.3);
  transition: all var(--duration) var(--ease);
  display: flex;
  align-items: center;
  gap: 6px;
}
[dir="rtl"] .fab { right: auto; left: 20px; }
.fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(255,157,80,0.4);
}

/* ── Settings form ───────────────────────────────── */
.settings-section {
  padding: var(--space-lg) 0;
  border-bottom: 1px solid var(--border);
}
.settings-section:last-child { border-bottom: none; }
.settings-label {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
}

/* ── Lang toggle ─────────────────────────────────── */
.lang-toggle {
  display: inline-flex;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  overflow: hidden;
}
.lang-toggle button {
  padding: 6px 14px;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--duration) var(--ease);
}
.lang-toggle button.active {
  background: rgba(255,212,112,0.15);
  color: var(--gold);
}

/* ── Feature cards grid ──────────────────────────── */
.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}
@media (min-width: 640px) {
  .feature-grid { grid-template-columns: 1fr 1fr; }
}
.feature-card { padding: var(--space-lg); }
.feature-card .feature-icon { font-size: 2rem; margin-bottom: var(--space-md); }
.feature-card .feature-title { font-size: var(--text-lg); font-weight: 700; margin-bottom: var(--space-sm); }
.feature-card .feature-desc { font-size: var(--text-sm); color: var(--text-secondary); line-height: 1.6; }

/* ── Steps ───────────────────────────────────────── */
.steps { display: flex; flex-direction: column; gap: var(--space-lg); }
.step { display: flex; gap: var(--space-md); align-items: flex-start; }
.step-num {
  width: 36px; height: 36px; min-width: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--orange));
  color: #08061a; font-weight: 800; font-size: var(--text-sm);
}
.step-content .step-title { font-weight: 700; margin-bottom: var(--space-xs); }
.step-content .step-desc { font-size: var(--text-sm); color: var(--text-secondary); }

/* ── Upgrade banner (elegant, not aggressive) ────── */
.upgrade-banner {
  background: linear-gradient(135deg, rgba(176,110,255,0.08), rgba(255,110,176,0.05));
  border: 1px solid rgba(176,110,255,0.15);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  text-align: center;
}
.upgrade-banner .price {
  font-size: var(--text-2xl);
  font-weight: 800;
  color: var(--gold);   /* DL v2 calm rule — solid, never gradient text */
  margin: var(--space-sm) 0;
}

/* ── Social proof strip ──────────────────────────── */
.proof-strip {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  text-align: center;
  padding: var(--space-xl) 0;
}
.proof-item {
  font-size: var(--text-sm);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
}
.proof-item .proof-dot {
  width: 4px; height: 4px;
  background: var(--gold);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ── Today's Sky card ────────────────────────────── */
.today-sky-card {
  position: relative;
  overflow: hidden;
  padding: var(--space-xl);
  background: linear-gradient(135deg, rgba(110,176,255,0.08), rgba(176,110,255,0.06));
  border-color: rgba(110,176,255,0.15);
}
.today-sky-card .sky-moon-row {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}
.today-sky-card .sky-info {
  flex: 1;
}
.today-sky-card .sky-title {
  font-size: var(--text-xs);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}
.today-sky-card .sky-sign {
  font-size: var(--text-xl);
  font-weight: 800;
}
.today-sky-card .sky-mansion {
  font-family: var(--font-ar);
  font-size: var(--text-lg);
  color: var(--gold);
  font-weight: 700;
  margin-top: 4px;
}
.today-sky-card .sky-phase {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-top: 2px;
}

/* ── Toast (slide from top) ──────────────────────── */
.toast-container {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  pointer-events: none;
}
.toast {
  padding: 12px 20px;
  background: rgba(15,12,40,0.95);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  backdrop-filter: blur(20px);
  font-size: var(--text-sm);
  color: var(--text-primary);
  animation: toastSlideIn 0.3s var(--ease), toastSlideOut 0.3s var(--ease) 2.7s forwards;
  pointer-events: auto;
  white-space: nowrap;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}
.toast.error { border-color: rgba(255,110,176,0.4); }
.toast.success { border-color: rgba(110,255,212,0.4); }
@keyframes toastSlideIn { from { opacity: 0; transform: translateY(-16px); } }
@keyframes toastSlideOut { to { opacity: 0; transform: translateY(-16px); } }

/* ── Reading structured layout ──────────────────── */
.reading-loading {
  text-align: center; padding: var(--space-xl);
}
.reading-loading p {
  color: var(--text-muted); margin-top: var(--space-md);
}
.reading-header {
  text-align: center; margin-bottom: var(--space-xl);
}
.reading-title {
  font-family: var(--font-ar-display); /* DL v2 §5 */
  font-size: var(--text-xl); font-weight: 500;
  color: var(--gold);                  /* DL v2 calm rule — solid, never gradient text */
}
.reading-hook {
  color: var(--text-secondary); font-size: var(--text-sm);
  font-style: italic; margin-top: var(--space-sm);
}
.reading-triad {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  gap: var(--space-sm); margin-bottom: var(--space-xl);
}
.reading-triad-item {
  text-align: center; padding: 14px 8px;
}
.reading-triad-item .triad-glyph { font-size: 1.5rem; color: var(--gold); }
.reading-triad-item .triad-label {
  font-size: 10px; text-transform: uppercase;
  letter-spacing: 0.05em; color: var(--text-muted); margin: 4px 0 2px;
}
.reading-triad-item .triad-value { font-size: var(--text-sm); font-weight: 700; }

.reading-body {
  margin-bottom: var(--space-xl);
  line-height: 1.7;
}
.reading-body p {
  margin-bottom: var(--space-md);
  color: var(--text-secondary);
}
.reading-section {
  margin-bottom: var(--space-xl);
  padding: var(--space-lg);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg, 16px);
  backdrop-filter: blur(12px);
}
.reading-section-title {
  font-size: var(--text-lg); font-weight: 700;
  color: var(--gold); margin-bottom: var(--space-md);
  padding-bottom: var(--space-xs);
  border-bottom: 1px solid rgba(255,212,112,0.15);
  display: flex; align-items: center; gap: 8px;
}
.reading-section-content {
  color: var(--text-secondary);
  line-height: 1.8;
  font-size: var(--text-base, 15px);
}
.reading-section-content p {
  margin-bottom: var(--space-md);
}
[dir="rtl"] .reading-section-content {
  text-align: right;
}

/* Colored inline refs */
.planet-ref {
  color: var(--gold); font-weight: 600;
}
.house-ref {
  color: var(--blue); font-weight: 600;
}
.transit-ref {
  color: var(--orange); font-weight: 600;
}
.sign-ref {
  color: var(--purple); font-weight: 500;
}

/* Mansion card in reading */
.reading-mansion-card {
  text-align: center;
  padding: var(--space-lg);
  margin: var(--space-xl) 0;
  border: 1px solid rgba(255,212,112,0.2);
  background: rgba(255,212,112,0.03);
}
.reading-mansion-card .mansion-number {
  font-size: var(--text-xs); color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.08em;
}
.reading-mansion-card .mansion-name {
  font-family: var(--font-ar-display);   /* DL v2 §5 */
  font-size: var(--text-xl); font-weight: 500;
  color: var(--gold); margin: var(--space-xs) 0;
}
.reading-mansion-card .mansion-desc {
  font-size: var(--text-sm); color: var(--text-secondary);
  line-height: 1.6; max-width: 380px; margin: 0 auto;
}

/* Chart details collapsible */
.chart-details-toggle {
  display: flex; align-items: center; justify-content: center;
  gap: var(--space-sm); padding: var(--space-md);
  cursor: pointer; color: var(--text-muted);
  font-size: var(--text-sm); font-weight: 600;
  border-top: 1px solid var(--border);
  margin-top: var(--space-lg);
  transition: color var(--duration) var(--ease);
}
.chart-details-toggle:hover { color: var(--gold); }
.chart-details-toggle .toggle-arrow {
  transition: transform var(--duration) var(--ease);
}
.chart-details-toggle.open .toggle-arrow { transform: rotate(180deg); }
.chart-details-body {
  display: none; padding-top: var(--space-md);
}
.chart-details-body.open { display: block; }

/* Detail heading */
.detail-heading {
  color: var(--gold); font-size: var(--text-lg);
  margin: var(--space-lg) 0 var(--space-md); font-weight: 700;
}
.detail-heading:first-child { margin-top: 0; }

/* Planet table */
.planet-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}
.planet-table th {
  text-align: start; padding: 8px 6px;
  color: var(--text-muted); font-size: var(--text-xs);
  text-transform: uppercase; letter-spacing: 0.04em;
  border-bottom: 1px solid var(--border);
}
.planet-table td {
  padding: 8px 6px;
  border-bottom: 1px solid rgba(255,255,255,0.03);
}
.planet-table .glyph-col { color: var(--gold); font-size: 1.1rem; width: 28px; }
.planet-table .sign-col { color: var(--purple); }
.planet-table .house-col { color: var(--blue); }
.planet-table .dignity-col { font-size: var(--text-xs); }
.dignity-domicile { color: var(--teal); }
.dignity-exaltation { color: var(--gold); }
.dignity-detriment { color: var(--pink); }
.dignity-fall { color: var(--orange); }

/* Aspect list */
.aspect-list {
  display: flex; flex-direction: column; gap: var(--space-xs);
}
.aspect-item {
  display: flex; align-items: center; gap: var(--space-sm);
  padding: 8px 12px; font-size: var(--text-sm);
  background: var(--bg-surface); border-radius: var(--radius-sm);
}
.aspect-item .aspect-planets { flex: 1; }
.aspect-item .aspect-type { color: var(--text-muted); font-size: var(--text-xs); }
.aspect-item .aspect-orb { color: var(--text-muted); font-size: var(--text-xs); }
.aspect-soft { border-inline-start: 2px solid var(--blue); }
.aspect-hard { border-inline-start: 2px solid var(--pink); }
.aspect-neutral { border-inline-start: 2px solid var(--text-muted); }
