/* ════════════════════════════════════════════════════════
   ZODI — Horoscop CSS
   ════════════════════════════════════════════════════════ */

/* ── Typography scale (site-wide) ──────────────────────── */
:root {
  --text-xs:   0.75rem;
  --text-sm:   0.85rem;
  --text-base: 0.92rem;
  --text-lg:   1.05rem;
  --lh:        1.75;
}

/* ── Global body text — same font as card descriptions ──── */
.horo-main p, .horo-main li {
  font-family: 'Lato', sans-serif;
  font-size: .88rem;
  font-style: normal;
  color: rgba(242,228,204,.82);
  line-height: 1.75;
  text-align: justify;
  hyphens: auto;
}

/* ── Constellation canvas ───────────────────────────────── */
#constellation-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transition: opacity 2s ease;
}

/* Header styles are in style.css */

/* ── Hero ───────────────────────────────────────────────── */
.horo-hero {
  padding: 80px 24px 40px;
  text-align: center;
  background: linear-gradient(180deg, rgba(139,26,46,.15) 0%, transparent 100%);
}
.horo-hero-inner { max-width: 700px; margin: 0 auto; }
.horo-stars-deco { color: var(--gold); letter-spacing: 12px; font-size: 1.1rem; }
.horo-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  color: var(--cream);
  margin: 12px 0 16px;
  letter-spacing: 3px;
}
.horo-subtitle {
  color: rgba(242,228,204,.65);
  font-size: .98rem;
  line-height: 1.7;
  max-width: 540px;
  margin: 0 auto;
}

/* ── Layout: sidebar + main ─────────────────────────────── */
.horo-layout {
  display: flex;
  align-items: flex-start;
  max-width: 1260px;
  margin: 0 auto;
  padding: 0 20px;
  gap: 0;
  position: relative;
  z-index: 2;
}

/* ── Sidebar ────────────────────────────────────────────── */
.horo-sidebar {
  width: 210px;
  flex-shrink: 0;
  position: sticky;
  top: 72px;
  max-height: calc(100vh - 90px);
  overflow-y: auto;
  scrollbar-width: none;
  padding: 28px 0 60px;
}
.horo-sidebar::-webkit-scrollbar { display: none; }

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sidebar-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 11px 16px;
  background: none;
  border: none;
  border-radius: 10px;
  color: rgba(242,228,204,.45);
  font-family: 'Lato', sans-serif;
  font-size: .84rem;
  letter-spacing: .3px;
  cursor: pointer;
  text-align: left;
  transition: all .2s;
  white-space: nowrap;
}
.sidebar-item:hover {
  background: rgba(201,168,76,.07);
  color: rgba(242,228,204,.85);
}
.sidebar-item.active {
  background: rgba(201,168,76,.13);
  color: var(--gold);
  border-left: 2px solid var(--gold);
  padding-left: 14px;
}
.sidebar-icon {
  font-size: var(--zodiac-sym-xs);
  width: 22px;
  text-align: center;
  flex-shrink: 0;
  opacity: .85;
}
.sidebar-label {
  font-family: 'Cinzel', serif;
  font-size: var(--text-xs);
  letter-spacing: .5px;
}
.sidebar-divider {
  height: 1px;
  background: rgba(201,168,76,.1);
  margin: 8px 16px;
}

/* ── Main content area ──────────────────────────────────── */
.horo-main { flex: 1; padding: 40px 0 80px 36px; min-width: 0; }
.horo-section { display: none; }
.horo-section.active { display: block; }

/* ── Mobile: sidebar becomes 3-column grid (no scroll) ──── */
@media (max-width: 780px) {
  .horo-layout { flex-direction: column; padding: 0; gap: 0; align-items: stretch; width: 100%; }

  .horo-sidebar {
    width: 100%;
    position: static;   /* nu mai e sticky — nu ia spatiu din continut */
    max-height: none;
    padding: 12px 12px 8px;
    background: rgba(9,7,16,.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(201,168,76,.15);
  }

  .sidebar-nav {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    overflow: visible;
    padding: 0;
  }

  /* Hide dividers — nu au sens în grid */
  .sidebar-divider { display: none; }

  .sidebar-item {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 10px 6px 8px;
    border-radius: 10px;
    border: 1px solid rgba(140,80,200,.35);
    border-left: none !important;
    background: linear-gradient(160deg, rgba(74,32,128,.55) 0%, rgba(30,10,64,.65) 100%);
    text-align: center;
    white-space: normal;
    color: rgba(220,190,255,.92);
  }
  .sidebar-item:hover {
    background: linear-gradient(160deg, rgba(90,40,152,.68) 0%, rgba(40,13,82,.75) 100%);
    border-color: rgba(160,100,240,.55);
    color: #fff;
  }
  .sidebar-item.active {
    background: linear-gradient(160deg, rgba(107,48,176,.72) 0%, rgba(51,16,106,.80) 100%);
    border-color: rgba(180,130,255,.7) !important;
    color: #fff;
  }
  .sidebar-item .sidebar-label { color: inherit; }

  .sidebar-icon {
    width: auto;
    font-size: 1.3rem;
    line-height: 1;
  }
  .sidebar-label {
    font-size: .6rem;
    line-height: 1.2;
    letter-spacing: .3px;
    white-space: normal;
    text-align: center;
  }

  .horo-main { padding: 20px 14px 60px; }
}

/* ── Layout padding tablet ───────────────────────────────── */
@media (max-width: 780px) {
  .horo-sidebar { padding-left: 16px; padding-right: 16px; }
  .horo-main    { padding: 20px 16px 60px; }
}

/* ══════════════════════════════════════════════════════════
   SIGN CARDS — un singur stil unificat pentru TOATE tipurile
   ══════════════════════════════════════════════════════════ */

/* Grid-uri: 4 coloane, full width */
.signs-grid,
.sign-picker {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 8px 0 0;
  width: 100%;
}
.sign-picker { margin-top: 0; margin-bottom: 24px; }

/* ── sign-card (European, albastru) — GLOBAL, toate secțiunile ── */
.sign-card {
  background: linear-gradient(160deg, rgba(40,55,120,.55) 0%, rgba(15,18,50,.72) 100%);
  border: 1px solid rgba(100,140,255,.18);
  border-radius: 14px;
  padding: 14px 8px;
  text-align: center;
  cursor: pointer;
  transition: all .25s;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
}
.sign-card:hover {
  background: linear-gradient(160deg, rgba(50,70,150,.65) 0%, rgba(20,25,65,.82) 100%);
  border-color: rgba(100,140,255,.55);
  box-shadow: 0 4px 22px rgba(65,105,225,.28);
  transform: translateY(-3px);
}
.sign-card.selected {
  background: linear-gradient(160deg, rgba(65,90,180,.75) 0%, rgba(25,35,90,.9) 100%);
  border-color: rgba(100,140,255,.85);
  box-shadow: 0 4px 22px rgba(65,105,225,.45);
}

/* ── ch-sign-card (Chinezesc, verde) — GLOBAL, toate secțiunile ── */
.ch-sign-card {
  background: linear-gradient(160deg, rgba(25,75,50,.55) 0%, rgba(10,30,20,.72) 100%);
  border: 1px solid rgba(62,196,154,.18);
  border-radius: 14px;
  padding: 14px 8px;
  text-align: center;
  cursor: pointer;
  transition: all .25s;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
}
.ch-sign-card:hover {
  background: linear-gradient(160deg, rgba(30,90,60,.65) 0%, rgba(12,38,25,.82) 100%);
  border-color: rgba(62,196,154,.55);
  box-shadow: 0 4px 22px rgba(30,140,80,.28);
  transform: translateY(-3px);
}
.ch-sign-card.selected {
  background: linear-gradient(160deg, rgba(40,120,80,.75) 0%, rgba(15,50,30,.9) 100%);
  border-color: rgba(62,196,154,.85);
  box-shadow: 0 4px 22px rgba(30,140,80,.45);
}

/* Simbol */
.sign-symbol,
.ch-animal,
.pill-symbol { font-size: 1.1rem; line-height: 1; margin-bottom: 3px; display: block; }
.sign-symbol { color: #88aaff; }
.ch-animal   { color: #5de8a0; }

/* Nume */
.sign-name,
.ch-name,
.pill-name { font-family: 'Cinzel', serif; font-size: .62rem; font-weight: 600; }
.sign-name { color: rgba(180,200,255,.9); }
.ch-name   { color: rgba(160,230,190,.9); }

/* Sub-text */
.sign-dates,
.ch-years { color: rgba(242,228,204,.4); font-size: .62rem; margin-top: 3px; }
.sign-element { font-size: .7rem; margin-top: 6px; padding: 2px 8px; border-radius: 20px; display: inline-block; }
.element-foc    { background: rgba(220,80,40,.2);  color: #f98a5a; }
.element-pamant { background: rgba(80,160,60,.2);  color: #7ec77a; }
.element-aer    { background: rgba(60,140,220,.2); color: #7ab8f2; }
.element-apa    { background: rgba(60,100,220,.2); color: #7a9ff2; }

/* ── Sign Detail ────────────────────────────────────────── */
.sign-detail { margin-top: 16px; }
.sign-back-btn {
  background: none;
  border: 1px solid rgba(201,168,76,.3);
  color: var(--gold);
  padding: 8px 18px;
  border-radius: 20px;
  cursor: pointer;
  font-size: .82rem;
  margin-bottom: 24px;
  transition: all .2s;
}
.sign-back-btn:hover { background: rgba(201,168,76,.1); }

.sign-detail-header {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(201,168,76,.18);
}
.sign-big-symbol { font-size: var(--zodiac-sym-xl); line-height: 1; }
.sign-detail-meta h2 {
  font-family: 'Cinzel', serif;
  font-size: 2rem;
  color: var(--gold);
  margin: 0 0 6px;
}
.sign-meta-row { color: rgba(242,228,204,.55); font-size: var(--text-sm); line-height: 1.8; }
.sign-meta-row strong { color: var(--cream); }

.sign-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
/* Single-column layout for horoscope interpretation sections */
.sign-detail-grid.horo-sections-grid {
  grid-template-columns: 1fr;
  gap: 16px;
}
.sign-detail-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(201,168,76,.12);
  border-radius: 14px;
  padding: 20px;
}
.sign-detail-card h3 {
  font-family: 'Cinzel', serif;
  font-size: .82rem;
  color: var(--gold);
  letter-spacing: 1.5px;
  margin: 0 0 10px;
  text-transform: uppercase;
}
.sign-detail-card p {
  color: rgba(242,228,204,.75);
  font-size: .88rem;
  line-height: 1.7;
  margin: 0;
  text-align: justify;
  hyphens: auto;
}

.tags-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.tag {
  font-size: .72rem;
  padding: 3px 10px;
  border-radius: 20px;
  border: 1px solid rgba(201,168,76,.25);
  color: rgba(242,228,204,.7);
}
.tag.strength { border-color: rgba(80,200,80,.3); color: #80d080; }
.tag.weakness { border-color: rgba(220,80,80,.3); color: #e09090; }

.famous-list { color: rgba(242,228,204,.55); font-size: .83rem; font-style: italic; }

/* ── Form sections ──────────────────────────────────────── */
.horo-form-wrap { max-width: 720px; margin: 0 auto; }
.horo-section-title {
  font-family: 'Cinzel', serif;
  font-size: 1.5rem;
  color: var(--gold);
  margin: 16px 0 8px;
  letter-spacing: 2px;
}
.horo-section-title::before {
  content: '';
  display: block;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-light), rgba(255,220,120,.8), var(--gold-light), transparent);
  background-size: 300% auto;
  animation: zodi-hr-flow 16s ease-in-out infinite;
  border-radius: 1px;
  margin-bottom: 18px;
}
.horo-section-sub { color: rgba(242,228,204,.5); font-size: var(--text-sm); margin: 0 0 32px; }

/* sign-picker margin — definit sus în blocul unificat */

/* ch-sign-card — stilul de bază definit sus în blocul global */

/* ── Buttons ────────────────────────────────────────────── */
.btn-mystic {
  display: block;
  width: 100%;
  padding: 15px;
  background: linear-gradient(135deg, #8b1a2e, #c9a84c33);
  border: 1px solid rgba(201,168,76,.4);
  border-radius: 12px;
  color: var(--cream);
  font-family: 'Cinzel', serif;
  font-size: .9rem;
  letter-spacing: 2px;
  cursor: pointer;
  transition: all .25s;
  margin-top: 8px;
}
.btn-mystic:hover:not(:disabled) {
  background: linear-gradient(135deg, #a82035, #c9a84c55);
  transform: translateY(-1px);
}
.btn-mystic:disabled { opacity: .4; cursor: not-allowed; }

/* ── Result box ─────────────────────────────────────────── */
.horo-result {
  margin-top: 28px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(201,168,76,.18);
  border-radius: 16px;
  padding: 28px;
}
.horo-result.hidden { display: none; }
.horo-result-header {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(201,168,76,.12);
  flex-wrap: wrap;
}
.result-badge {
  font-family: 'Cinzel', serif;
  font-size: .8rem;
  color: var(--gold);
  border: 1px solid rgba(201,168,76,.3);
  padding: 4px 12px;
  border-radius: 20px;
}
.horo-result-text {
  color: rgba(242,228,204,.85);
  font-size: var(--text-base);
  line-height: 1.85;
  margin: 0;
  white-space: pre-line;
  text-align: justify;
  hyphens: auto;
}

/* ── Loading spinner ────────────────────────────────────── */
.horo-loading {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(242,228,204,.5);
  font-size: .88rem;
  margin-bottom: 16px;
}
.horo-loading.hidden { display: none; }
.spinner {
  width: 18px; height: 18px;
  border: 2px solid rgba(201,168,76,.25);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  flex-shrink: 0;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Year select ────────────────────────────────────────── */
.year-select-wrap {
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.year-select-wrap label { color: rgba(242,228,204,.6); font-size: .88rem; }
.horo-select {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(201,168,76,.25);
  color: var(--cream);
  padding: 8px 14px;
  border-radius: 8px;
  font-size: .88rem;
  cursor: pointer;
}

/* ── Personal form ──────────────────────────────────────── */
.personal-form { display: flex; flex-direction: column; gap: 18px; }
.form-row { display: flex; flex-direction: column; gap: 6px; }
.form-row label { color: rgba(242,228,204,.6); font-size: .85rem; }
.form-row .opt { color: rgba(242,228,204,.35); font-size: .75rem; }
.horo-input {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(201,168,76,.2);
  color: var(--cream);
  padding: 11px 14px;
  border-radius: 10px;
  font-size: .9rem;
  outline: none;
  transition: border-color .2s;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  width: 100%;
  box-sizing: border-box;
}
.horo-input:focus { border-color: rgba(201,168,76,.5); }
.horo-input[type="date"],
.horo-input[type="time"] {
  min-height: 44px;
  cursor: pointer;
}
.horo-input[type="date"]::-webkit-calendar-picker-indicator,
.horo-input[type="time"]::-webkit-calendar-picker-indicator {
  filter: invert(.7) sepia(1) saturate(2) hue-rotate(10deg);
  cursor: pointer;
  padding: 4px;
  touch-action: manipulation;
}

/* ── Aspect pills ────────────────────────────────────────── */
.aspect-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.aspect-pill {
  padding: 7px 16px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(201,168,76,.18);
  border-radius: 20px;
  color: rgba(242,228,204,.55);
  font-size: .82rem;
  cursor: pointer;
  transition: all .2s;
}
.aspect-pill:hover { border-color: rgba(201,168,76,.4); color: var(--cream); }
.aspect-pill.active {
  background: rgba(201,168,76,.15);
  border-color: var(--gold);
  color: var(--gold);
}

/* ── Personal extra info ────────────────────────────────── */
.pers-extra {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(201,168,76,.12);
}
.pers-extra.hidden { display: none; }
.pers-info-box {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(201,168,76,.1);
  border-radius: 10px;
  padding: 14px;
}
.pers-info-box h4 {
  font-family: 'Cinzel', serif;
  font-size: .72rem;
  color: var(--gold);
  margin: 0 0 6px;
  letter-spacing: 1px;
}
.pers-info-box p { color: rgba(242,228,204,.65); font-size: var(--text-sm); margin: 0; line-height: 1.6; }
.pers-info-box small { color: rgba(242,228,204,.35); font-size: .75rem; }

/* ── City autocomplete ──────────────────────────────────── */
.city-ac-wrap { position: relative; }
.city-suggestions {
  position: absolute; top: calc(100% + 2px); left: 0; right: 0;
  background: rgba(12,8,24,.98);
  border: 1px solid rgba(201,168,76,.3);
  border-radius: 0 0 8px 8px;
  z-index: 200; max-height: 220px; overflow-y: auto;
}
.city-suggestions.hidden { display: none; }
.city-sug-item {
  padding: 9px 14px; cursor: pointer; font-size: .84rem;
  color: rgba(242,228,204,.75);
  border-bottom: 1px solid rgba(201,168,76,.07);
  transition: background .12s;
}
.city-sug-item:last-child { border-bottom: none; }
.city-sug-item:hover { background: rgba(201,168,76,.12); color: var(--gold); }

/* Planets box spans full width */
.pers-planets-box { grid-column: 1 / -1; }
.planets-table { width: 100%; border-collapse: collapse; margin-top: 4px; }
.planets-table td {
  padding: 4px 10px 4px 0;
  font-size: var(--text-sm);
  color: rgba(242,228,204,.75);
  border-bottom: 1px solid rgba(201,168,76,.06);
}
.planets-table td:first-child { color: var(--gold); font-weight: 600; white-space: nowrap; }
.planets-table td:last-child { color: rgba(242,228,204,.4); text-align: right; }
.planet-interps-card { grid-column: 1 / -1; }
.planet-interps-list { display: flex; flex-direction: column; gap: 1rem; margin-top: .5rem; }
.planet-interp-item { border-left: 2px solid rgba(201,168,76,.25); padding-left: .8rem; }
.planet-interp-item .planet-interp-name {
  display: block;
  font-family: 'Cinzel', serif;
  font-size: .82rem;
  color: var(--gold);
  margin-bottom: .3rem;
  font-weight: 600;
}
.planet-interp-item p {
  margin: 0;
  font-family: 'Lato', sans-serif;
  font-size: .88rem;
  color: rgba(242,228,204,.8);
  line-height: 1.7;
}

/* ── Compatibility ──────────────────────────────────────── */
.compat-selectors {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 24px;
}
@media (max-width: 600px) {
  .compat-selectors { flex-direction: column; align-items: stretch; }
  .compat-heart { align-self: center; }
  .compat-side { width: 100%; }
}
.compat-side { flex: 1; min-width: 0; }
/* Compat pickers — același grid ca restul, moștenit */
.compat-label { font-family: 'Cinzel', serif; font-size: .78rem; color: var(--gold); margin: 0 0 10px; letter-spacing: 1px; }
.compat-heart { font-size: 2rem; color: var(--burgundy); align-self: center; margin-top: 24px; }

.compat-score-wrap {
  margin-bottom: 20px;
}
.compat-score-bar-wrap {
  height: 8px;
  background: rgba(255,255,255,.08);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 8px;
}
.compat-score-bar {
  height: 100%;
  border-radius: 4px;
  transition: width 1s cubic-bezier(.4,0,.2,1);
  background: linear-gradient(90deg, #8b1a2e, #c9a84c);
}
.compat-score-num {
  text-align: right;
  font-family: 'Cinzel', serif;
  font-size: 1.1rem;
  color: var(--gold);
}

/* ── Chinese section ────────────────────────────────────── */
.chinese-intro {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(201,168,76,.12);
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 24px;
  color: rgba(242,228,204,.6);
  font-size: .88rem;
  line-height: 1.7;
}
.chinese-intro strong { color: var(--cream); }

/* ch-element — identic cu sign-element ca sizing */
.ch-element { font-size: .62rem; margin-top: 4px; padding: 2px 6px; border-radius: 20px; display: inline-block;
  background: rgba(62,196,154,.12); color: rgba(100,220,170,.8); }

.loading-signs { color: rgba(242,228,204,.3); padding: 40px; text-align: center; font-size: .9rem; }

/* ── Sign modal ─────────────────────────────────────────── */
.sign-modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.8);
  backdrop-filter: blur(6px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.sign-modal-overlay.hidden { display: none; }
.sign-modal-box {
  background: #0e0b18;
  border: 1px solid rgba(201,168,76,.25);
  border-radius: 20px;
  padding: 32px;
  max-width: 680px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
}
.sign-modal-close {
  position: absolute; top: 16px; right: 16px;
  background: none; border: none;
  color: rgba(242,228,204,.4); font-size: 1.1rem;
  cursor: pointer; padding: 4px;
  transition: color .2s;
}
.sign-modal-close:hover { color: var(--cream); }

/* ── Natal chart ────────────────────────────────────────── */
.natal-chart-wrap {
  grid-column: 1 / -1;
  background: rgba(9,7,16,.8);
  border: 1px solid rgba(201,168,76,.2);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.natal-chart-wrap svg { filter: drop-shadow(0 0 20px rgba(201,168,76,.12)); }
.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  justify-content: center;
  font-size: var(--text-xs);
  color: rgba(242,228,204,.5);
}
.chart-legend span { display: flex; align-items: center; gap: 4px; }

/* ── House list under planets table ─────────────────────── */
.house-list {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.house-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: var(--text-xs);
  color: rgba(242,228,204,.6);
  line-height: 1.5;
}
.house-num {
  font-family: 'Cinzel', serif;
  color: var(--gold);
  font-size: var(--text-xs);
  min-width: 52px;
}

/* ── Daily horoscope sections ───────────────────────────── */
.daily-sections {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(184,92,0,.15);
}
.daily-section {
  background: rgba(255,255,255,.025);
  border: 1px solid rgba(184,92,0,.15);
  border-radius: 10px;
  padding: 14px 16px;
}
.daily-section-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.daily-section-icon {
  font-size: var(--zodiac-sym-xs);
  line-height: 1;
}
.daily-section-title {
  font-family: 'Cinzel', serif;
  font-size: .72rem;
  color: var(--gold);
  letter-spacing: .08em;
  text-transform: uppercase;
  flex: 1;
}
.daily-hearts {
  color: var(--gold);
  font-size: .82rem;
  letter-spacing: 1px;
  white-space: nowrap;
}
.daily-section-text {
  font-size: var(--text-sm);
  color: rgba(242,228,204,.72);
  line-height: 1.65;
  margin: 0;
}
@media (max-width: 600px) {
  .daily-sections { grid-template-columns: 1fr; }
}

/* ── btn-use-mine (prefill + save person) ──────────────── */
.btn-use-mine {
  display: block;
  width: 100%;
  padding: .42rem .9rem;
  background: rgba(201,168,76,.09);
  border: 1px solid rgba(201,168,76,.3);
  border-radius: 8px;
  color: rgba(201,168,76,.85);
  font-size: .80rem;
  font-family: 'Cinzel', serif;
  letter-spacing: .04em;
  cursor: pointer;
  transition: background .2s, border-color .2s;
  margin-bottom: .5rem;
  text-align: center;
}
.btn-use-mine:hover {
  background: rgba(201,168,76,.18);
  border-color: rgba(201,168,76,.55);
  color: rgba(201,168,76,1);
}

/* ── Saved persons dropdown ─────────────────────────────── */
#saved-persons-bar select {
  width: 100%;
  background: rgba(10,5,18,.8);
  border: 1px solid rgba(201,168,76,.25);
  border-radius: 8px;
  color: rgba(242,228,204,.8);
  padding: .38rem .7rem;
  font-size: .82rem;
  cursor: pointer;
}
#saved-persons-bar select:focus { outline: none; border-color: rgba(201,168,76,.5); }

/* ── Annual Quarters Grid ───────────────────────────────── */
.annual-quarters {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 1.5rem;
}
.annual-quarter-card {
  background: rgba(201,168,76,.04);
  border: 1px solid rgba(201,168,76,.16);
  border-radius: 14px;
  padding: 1.2rem 1.4rem;
  margin-bottom: 1.2rem;
}
.annual-quarter-card:last-child {
  margin-bottom: 0;
}
.aq-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .5rem;
  margin-bottom: .9rem;
  padding-bottom: .7rem;
  border-bottom: 1px solid rgba(201,168,76,.15);
}
.aq-label {
  font-family: 'Cinzel', serif;
  font-size: .92rem;
  color: var(--gold);
  font-weight: 600;
}
.aq-theme {
  font-size: .78rem;
  color: rgba(242,228,204,.5);
  font-style: italic;
}
.aq-sections { display: flex; flex-direction: column; gap: .75rem; }
.aq-section  { display: flex; gap: .6rem; align-items: flex-start; }
.aq-icon     { font-size: 1rem; line-height: 1.4; flex-shrink: 0; }
.aq-section-title {
  display: block;
  font-size: .72rem;
  color: rgba(201,168,76,.7);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: .2rem;
}
.aq-text {
  margin: 0;
  font-size: .84rem;
  color: rgba(242,228,204,.78);
  line-height: 1.6;
}


/* ══════════════════════════════════════════════════════════
   MOBILE — comprehensive responsive fixes
   ══════════════════════════════════════════════════════════ */

/* ── 600px ─────────────────────────────────────────────── */
@media (max-width: 600px) {
  .horo-hero { padding: 48px 16px 24px; }
  .horo-title { font-size: 1.7rem; letter-spacing: 1.5px; }
  .horo-subtitle { font-size: .84rem; }

  .sign-detail-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 16px;
  }
  .sign-big-symbol { font-size: 3rem; }
  .sign-detail-meta h2 { font-size: 1.4rem; }

  .sign-detail-grid { grid-template-columns: 1fr; gap: 12px; }
  .sign-detail-card { padding: 14px; }

  .signs-grid,
  .sign-picker { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .sign-card,
  .ch-sign-card,
  .sign-pill { padding: 10px 6px; }

  .horo-result { padding: 16px; }
  .horo-result-text { font-size: .84rem; }

  .horo-form-wrap { padding: 0; }
  .horo-section-title { font-size: 1.15rem; }

  .pers-extra { grid-template-columns: 1fr; }

  .sign-modal-box { padding: 20px 16px; border-radius: 14px; }

  .planets-table { font-size: .78rem; }
  .planets-table td { padding: 3px 6px 3px 0; }

  .compat-heart { margin-top: 0; }

  .annual-quarter-card { padding: .9rem 1rem; }
  .aq-label { font-size: .82rem; }
  .aq-text { font-size: .8rem; }

  .sign-back-btn { font-size: .78rem; padding: 7px 14px; margin-bottom: 16px; }

  .aspect-pills { gap: 6px; }
  .aspect-pill { font-size: .75rem; padding: 6px 12px; }
}

/* ── 420px ─────────────────────────────────────────────── */
@media (max-width: 420px) {
  .horo-hero { padding: 36px 12px 18px; }
  .horo-title { font-size: 1.4rem; }
  .horo-main { padding: 18px 12px 50px; }

  .signs-grid,
  .sign-picker { gap: 6px; }
  .sign-card,
  .ch-sign-card,
  .sign-pill { padding: 8px 4px; }
  .sign-symbol,
  .ch-animal,
  .pill-symbol { font-size: 1.2rem; }
  .sign-name,
  .ch-name,
  .pill-name { font-size: .68rem; }
  .sign-dates,
  .ch-years { font-size: .58rem; }

  .horo-result { padding: 12px; }
  .horo-result-header { gap: 8px; }
  .result-badge { font-size: .72rem; padding: 3px 9px; }

  .annual-quarter-card { padding: .75rem .85rem; }

  .sign-modal-box { padding: 16px 12px; }
  .sign-modal-close { top: 10px; right: 10px; }

  .sidebar-item { padding: 8px 8px; }
  .sidebar-label { font-size: .58rem; }

  .year-select-wrap { flex-direction: column; align-items: flex-start; gap: 6px; }

  .horo-input { padding: 9px 12px; font-size: .84rem; }
  .btn-mystic { padding: 12px; font-size: .82rem; }

  .compat-label { font-size: .7rem; }

  #hn-visuals-row { flex-direction: column; align-items: center; }
  .moon-widget { width: 200px; }
}

/* ── Natal chart + Moon side-by-side layout ─────────────── */
#hn-visuals-row {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: center;
  gap: 1.5rem;
  margin: 1.5rem auto;
  flex-wrap: wrap;
}

#hn-chart-wrap {
  flex: 0 0 auto;
}

#hn-moon-wrap {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
}

/* ── Moon widget ─────────────────────────────────────────── */
.moon-widget {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .4rem;
  width: 210px;
}

.moon-svg-wrap {
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 0 18px rgba(160,160,160,.15);
  transition: box-shadow .2s;
  line-height: 0;
  background: transparent;
  display: inline-block;
}

.moon-svg-wrap:hover {
  box-shadow: 0 0 26px rgba(180,180,180,.25);
}

.moon-svg { display: block; }

.moon-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .15rem;
  margin-top: .2rem;
}

.moon-phase-name {
  font-family: 'Cinzel', serif;
  font-size: .82rem;
  color: var(--gold);
  letter-spacing: .5px;
  text-align: center;
}

.moon-illum {
  font-size: .75rem;
  color: rgba(242,228,204,.65);
}

/* ── Moon modal ──────────────────────────────────────────── */
#moon-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.82);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

#moon-modal-box {
  background: var(--bg-card, #1a0f1e);
  border: 1px solid rgba(242,228,204,.15);
  border-radius: 16px;
  padding: 1.2rem;
  position: relative;
  max-width: 540px;
  width: 100%;
}

#moon-modal-close {
  position: absolute;
  top: 10px; right: 12px;
  background: none;
  border: none;
  color: rgba(242,228,204,.7);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 4px 8px;
}

#moon-modal-close:hover { color: var(--cream); }

/* ══════════════════════════════════════════════════════════
   MOBILE / TABLET — horoscop page fixes
   ══════════════════════════════════════════════════════════ */

/* Mobile — 3 coloane, fără max-width */
@media (max-width: 768px) {
  .signs-grid,
  .sign-picker {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    max-width: none;
  }
}

/* Sign detail modal: full-width on mobile */
@media (max-width: 600px) {
  .sign-modal-overlay { padding: 8px; align-items: flex-end; }
  .sign-modal-box {
    padding: 20px 14px 24px;
    border-radius: 18px 18px 0 0;
    max-height: 88vh;
    overflow-y: auto;
  }
}
@media (max-width: 380px) {
  .sign-modal-box { padding: 16px 12px 20px; }
}

/* Horo hero font scale */
@media (max-width: 480px) {
  .horo-hero { padding: 28px 12px 14px; }
  .horo-title { font-size: 1.5rem; }
  .horo-subtitle { font-size: .82rem; }
}

/* Selector buttons */
@media (max-width: 600px) {
  .btn-horo { padding: 10px 18px; font-size: .84rem; }
  .horo-input { font-size: .88rem; padding: 9px 12px; }
}

/* Moon modal on mobile */
@media (max-width: 480px) {
  #moon-modal-box { padding: .9rem; }
}
