/* ══════════════════════════════════════════════════════════
   ZODI — Mystical Dream Interpreter
   Palette inspired by Zodi: candle warmth, gold jewels, red scarf
   ══════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700&family=Lato:ital,wght@0,300;0,400;1,300&display=swap');

:root {
  --bg:         #090710;
  --bg2:        #12101e;
  --bg3:        #1c1830;
  --gold:       #b85c00;
  --gold-light: #d97820;
  --gold-dim:   rgba(184,92,0,.18);
  --burgundy:   #8b1a2e;
  --burg-light: rgba(139,26,46,.35);
  --cream:      #f2e4cc;
  --cream2:     #c8b89a;
  --muted:      #6a5c50;
  --crystal:    rgba(180,210,255,.75);
  --shadow:     rgba(0,0,0,.7);
  --glow-gold:  0 0 30px rgba(184,92,0,.5), 0 0 60px rgba(184,92,0,.2);
  /* ── Zodiac symbol sizes — used consistently everywhere ── */
  --zodiac-sym-xl:   4.5rem;   /* detail/hero symbol */
  --zodiac-sym-lg:   2.8rem;   /* sign grid cards */
  --zodiac-sym-md:   2.2rem;   /* chinese animals, medium cards */
  --zodiac-sym-sm:   1.4rem;   /* picker pills, nav icons */
  --zodiac-sym-xs:   1.1rem;   /* sidebar, small inline */
  --glow-cryst: 0 0 40px rgba(160,190,255,.35), 0 0 80px rgba(120,160,255,.15);
}

/* Utility: gold accent text */
.gold { color: var(--gold-light); }

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

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: 'Lato', sans-serif;
  background: var(--bg);
  color: var(--cream);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── Scrollbar ─────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg2); }
::-webkit-scrollbar-thumb { background: var(--gold-dim); border-radius: 3px; }

/* ══════════════════════════════════════════════════════════
   INTRO OVERLAY
   ══════════════════════════════════════════════════════════ */
#intro-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 20px;
  transition: opacity 1.2s ease;
}
#intro-overlay.fade-out { opacity: 0; pointer-events: none; }
#intro-overlay.hidden   { display: none; }

.intro-logo {
  animation: introGlow 2s ease-in-out infinite alternate;
}
.intro-logo-img {
  height: clamp(28px, 5vw, 55px);
  width: auto;
  display: block;
  filter: drop-shadow(0 0 24px rgba(201,168,76,.6));
}
@media (max-width: 600px) {
  .intro-logo-img { height: 32px !important; }
}
@media (max-width: 380px) {
  .intro-logo-img { height: 24px !important; }
}
.intro-fog {
  width: 400px; height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  animation: spreadLine 2s ease-out forwards;
}
.intro-sub {
  font-family: 'Lato', sans-serif;
  font-size: 1rem;
  letter-spacing: 0.4em;
  color: var(--cream2);
  opacity: 0;
  animation: fadeUp .8s 1.5s forwards;
  text-transform: uppercase;
  text-align: center;
}

@keyframes introGlow {
  from { text-shadow: 0 0 20px rgba(184,92,0,.5); }
  to   { text-shadow: 0 0 60px rgba(184,92,0,.9), 0 0 100px rgba(184,92,0,.3); }
}
@keyframes spreadLine {
  from { width: 0; opacity: 0; }
  to   { width: min(400px, 80vw); opacity: 1; }
}
@keyframes zodi-hr-flow {
  0%,100% { background-position: 200% center; opacity: .45; }
  50%     { background-position: -200% center; opacity: 1; }
}
/* ── Reusable animated gold divider ─────────────────────── */
.zodi-hr {
  border: none;
  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;
  margin: 28px 0;
  border-radius: 1px;
  width: 100%;
  display: block;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ══════════════════════════════════════════════════════════
   STARS BACKGROUND
   ══════════════════════════════════════════════════════════ */
#stars-canvas {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: .85;
}

/* ══════════════════════════════════════════════════════════
   LAYOUT
   ══════════════════════════════════════════════════════════ */
.page-wrapper {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  grid-template-rows: auto 1fr;
  min-height: 100vh;
}

/* ── HEADER — unified across all pages ────────────────── */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(9,7,16,.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(184,92,0,.2);
  padding: 0 40px;
}
.nav-inner {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  max-width: 1160px;
  margin: 0 auto;
  height: 62px;
}
.nav-logo {
  text-decoration: none;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.nav-logo-img {
  height: 26px;
  width: auto;
  display: block;
  filter: drop-shadow(0 0 8px rgba(201,168,76,.45));
  position: relative;
  top: 0;
  left: 14px;
}
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-link {
  color: rgba(242,228,204,.55);
  text-decoration: none;
  font-size: .82rem;
  letter-spacing: .5px;
  transition: color .2s;
}
.nav-link:hover, .nav-link.active { color: var(--gold); }
.user-badge {
  font-size: .78rem;
  color: var(--gold);
  border: 1px solid rgba(184,92,0,.3);
  padding: 3px 10px;
  border-radius: 20px;
}
.btn-auth {
  padding: 6px 18px;
  border: 1px solid var(--gold);
  border-radius: 30px;
  color: var(--gold) !important;
  font-size: .78rem !important;
  transition: background .25s, color .25s !important;
}
.btn-auth:hover { background: var(--gold); color: var(--bg) !important; }
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}
/* Legacy site-logo kept for any remaining references */
.site-logo {
  font-family: 'Cinzel', serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: .2em;
  text-decoration: none;
  text-shadow: 0 0 20px rgba(184,92,0,.5);
}
.site-logo span { color: var(--cream2); font-weight: 400; font-size: .9em; }
nav.site-nav { display: flex; align-items: center; gap: 24px; }
nav.site-nav a {
  font-family: 'Lato', sans-serif;
  font-size: .85rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--cream2);
  text-decoration: none;
  transition: color .25s;
}
nav.site-nav a:hover { color: var(--gold); }

/* ── Power button ───────────────────────────────────────── */
.btn-power {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 2px solid;
  background: transparent;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  transition: box-shadow .25s, border-color .25s;
}
.btn-power::after {
  content: '';
  display: block;
  width: 10px; height: 10px;
  border-radius: 50%;
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
}
.btn-power.is-on  { border-color: #e04040; }
.btn-power.is-on::after  { background: #e04040; box-shadow: 0 0 6px #e04040; }
.btn-power.is-on:hover   { box-shadow: 0 0 10px rgba(224,64,64,.5); }
.btn-power.is-off { border-color: #3cb06e; }
.btn-power.is-off::after { background: #3cb06e; box-shadow: 0 0 6px #3cb06e; }
.btn-power.is-off:hover  { box-shadow: 0 0 10px rgba(60,176,110,.5); }

/* ── FOOTER ───────────────────────────────────────────── */
.site-footer {
  text-align: center;
  padding: 28px 24px 20px;
  border-top: 1px solid rgba(184,92,0,.12);
  margin-top: 60px;
}
.footer-inner {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-copy {
  color: rgba(242,228,204,.3);
  font-size: .75rem;
  letter-spacing: .3px;
}
.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.footer-link {
  color: rgba(242,228,204,.28);
  font-size: .75rem;
  text-decoration: none;
  transition: color .2s;
}
.footer-link:hover { color: var(--gold); }
.footer-sep { color: rgba(242,228,204,.18); font-size: .75rem; }

/* ── Cookie consent banner ─────────────────────────────── */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 9000;
  background: rgba(9,7,16,.97);
  border-top: 1px solid rgba(184,92,0,.3);
  padding: 14px 24px;
  backdrop-filter: blur(10px);
}
.cookie-banner-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.cookie-text {
  flex: 1;
  min-width: 200px;
  color: rgba(242,228,204,.65);
  font-size: .82rem;
  line-height: 1.5;
  margin: 0;
}
.cookie-link { color: var(--gold); text-decoration: none; }
.cookie-link:hover { text-decoration: underline; }
.cookie-actions { display: flex; gap: 10px; flex-shrink: 0; }
.btn-cookie-accept {
  padding: 7px 20px;
  background: var(--gold);
  color: var(--bg);
  border: none;
  border-radius: 20px;
  font-size: .8rem;
  cursor: pointer;
  transition: opacity .2s;
  font-weight: 600;
}
.btn-cookie-accept:hover { opacity: .85; }
.btn-cookie-reject {
  padding: 7px 16px;
  background: transparent;
  color: rgba(242,228,204,.45);
  border: 1px solid rgba(242,228,204,.2);
  border-radius: 20px;
  font-size: .8rem;
  cursor: pointer;
  transition: all .2s;
}
.btn-cookie-reject:hover { border-color: rgba(242,228,204,.4); color: rgba(242,228,204,.65); }

/* ── Image Lightbox ────────────────────────────────────── */
.zodi-lightbox {
  position: fixed;
  inset: 0;
  z-index: 8000;
  background: rgba(0,0,0,.92);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
  animation: fadeInLb .18s ease;
}
.zodi-lightbox img {
  max-width: 90vw;
  max-height: 88vh;
  border-radius: 8px;
  box-shadow: 0 0 60px rgba(184,92,0,.25);
  object-fit: contain;
  cursor: default;
}
.zodi-lightbox-close {
  position: absolute;
  top: 14px; right: 20px;
  color: rgba(242,228,204,.65);
  font-size: 2rem;
  cursor: pointer;
  background: none;
  border: none;
  line-height: 1;
  transition: color .2s;
}
.zodi-lightbox-close:hover { color: var(--gold); }
@keyframes fadeInLb { from { opacity: 0 } to { opacity: 1 } }

/* ── Dream entry action buttons ────────────────────────── */
.dream-entry-actions {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.dream-action-btn {
  padding: 5px 14px;
  font-size: .76rem;
  border-radius: 20px;
  border: 1px solid rgba(184,92,0,.3);
  background: transparent;
  color: rgba(242,228,204,.5);
  cursor: pointer;
  transition: all .2s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.dream-action-btn:hover { border-color: var(--gold); color: var(--gold); }
.dream-action-btn.danger { border-color: rgba(200,60,60,.25); color: rgba(220,100,100,.5); }
.dream-action-btn.danger:hover { border-color: #e04040; color: #e04040; }
.dream-entry-img img { cursor: zoom-in; }


/* ── Terms page ────────────────────────────────────────── */
.terms-main { max-width: 860px; margin: 0 auto; padding: 40px 24px 80px; }
.terms-wrap {}
.terms-hero { text-align: center; padding: 40px 0 36px; }
.terms-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 3px;
  margin-bottom: 8px;
}
.terms-sub { color: rgba(242,228,204,.4); font-size: .82rem; }
.terms-body { display: flex; flex-direction: column; gap: 32px; }
.terms-section {
  background: rgba(255,255,255,.025);
  border: 1px solid rgba(184,92,0,.12);
  border-radius: 12px;
  padding: 24px 28px;
}
.terms-section h2 {
  font-family: 'Cinzel', serif;
  font-size: 1.05rem;
  color: var(--gold);
  margin-bottom: 14px;
  letter-spacing: 1px;
}
.terms-section p, .terms-section li {
  color: rgba(242,228,204,.7);
  font-size: .88rem;
  line-height: 1.8;
  margin-bottom: 8px;
}
.terms-section ul { padding-left: 20px; }
.terms-section li { margin-bottom: 4px; }
.cookies-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
  font-size: .82rem;
}
.cookies-table th, .cookies-table td {
  padding: 10px 14px;
  text-align: left;
  border: 1px solid rgba(184,92,0,.15);
}
.cookies-table th { color: var(--gold); background: rgba(184,92,0,.08); }
.cookies-table td { color: rgba(242,228,204,.65); }

/* ── LEFT PANEL — Zodi Portrait ────────────────────────── */
.zodi-panel {
  position: sticky;
  top: 65px;
  height: calc(100vh - 65px);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  align-self: start;
}
.zodi-portrait {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: brightness(.85) saturate(.9);
  transition: filter 1s ease;
}
.zodi-panel:hover .zodi-portrait { filter: brightness(.95) saturate(1); }

/* Atmospheric overlays */
.zodi-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(9,7,16,0) 0%,
    rgba(9,7,16,.15) 60%,
    rgba(9,7,16,.85) 100%
  );
  pointer-events: none;
}
.zodi-gradient-bottom {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 35%;
  background: linear-gradient(to top, var(--bg) 0%, transparent 100%);
  pointer-events: none;
}
.candle-glow {
  position: absolute;
  bottom: 30%;
  left: 20%;
  width: 200px; height: 300px;
  background: radial-gradient(ellipse at center, rgba(255,180,60,.12) 0%, transparent 70%);
  animation: candleFlicker 3s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes candleFlicker {
  0%   { opacity: .7; transform: scale(1); }
  50%  { opacity: 1;  transform: scale(1.05) translateY(-5px); }
  100% { opacity: .8; transform: scale(.95) translateY(3px); }
}
.zodi-tagline {
  position: relative;
  z-index: 2;
  padding: 30px 40px;
  width: 100%;
}
.zodi-tagline p {
  font-family: 'Lato', sans-serif;
  font-style: italic;
  font-size: 1rem;
  color: var(--cream2);
  max-width: 260px;
  line-height: 1.7;
  text-shadow: 0 2px 8px var(--shadow);
}
.zodi-tagline p em { color: var(--gold); font-style: normal; }

/* ── RIGHT PANEL — Oracle ──────────────────────────────── */
.oracle-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 50px 50px 80px;
  gap: 28px;
  position: relative;
  min-height: calc(100vh - 65px);
}

/* crystal ball */
.crystal-wrap {
  position: relative;
  width: 240px; height: 240px;
  cursor: pointer;
  margin-bottom: -20px;
  animation: crystalFloat 4s ease-in-out infinite;
}
@keyframes crystalFloat {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}
.crystal-wrap.thinking {
  animation-name: crystalFloatFast;
  animation-duration: 1.4s;
}
@keyframes crystalFloatFast {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-6px); }
}
#cosmos-canvas {
  display: block;
  width: 100%; height: 100%;
}

/* question title */
.oracle-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  color: var(--cream);
  letter-spacing: .06em;
  text-align: center;
  text-shadow: 0 0 30px rgba(184,92,0,.3);
}
.oracle-title em {
  color: var(--gold);
  font-style: normal;
}

/* dream input */
.dream-input-wrap {
  width: 100%;
  max-width: 500px;
  position: relative;
}
.dream-input-wrap::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--gold), var(--burgundy), var(--gold));
  background-size: 200% 200%;
  z-index: 0;
  opacity: 0;
  transition: opacity .4s;
  animation: gradientBorder 4s ease infinite;
}
.dream-input-wrap:focus-within::before { opacity: 1; }
@keyframes gradientBorder {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

textarea#dream-input {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 120px;
  max-height: 260px;
  padding: 18px 20px;
  background: rgba(18,16,30,.9);
  border: 1px solid rgba(184,92,0,.25);
  border-radius: 15px;
  color: var(--cream);
  font-family: 'Lato', sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  resize: vertical;
  outline: none;
  transition: border-color .3s, background .3s;
  backdrop-filter: blur(4px);
}
textarea#dream-input::placeholder { color: var(--muted); font-style: normal; font-size: .9rem; }
textarea#dream-input:focus {
  border-color: transparent;
  background: rgba(18,16,30,.97);
}

/* submit button */
.btn-oracle {
  padding: 14px 40px;
  background: linear-gradient(135deg, #4a1000, #903000, #c05500, #903000, #4a1000);
  background-size: 250% 100%;
  border: none;
  border-radius: 50px;
  color: var(--cream);
  font-family: 'Cinzel', serif;
  font-size: 1rem;
  letter-spacing: .15em;
  cursor: pointer;
  transition: background-position .5s, transform .2s, box-shadow .3s;
  box-shadow: 0 4px 22px rgba(220,80,0,.45), 0 2px 8px rgba(255,140,0,.2);
  white-space: nowrap;
}
.btn-oracle:hover {
  background-position: 100% 0;
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(255,110,0,.5), 0 4px 16px rgba(255,160,0,.3);
}
.btn-oracle:active { transform: translateY(0); }
.btn-oracle:disabled { opacity: .5; cursor: not-allowed; transform: none; }

/* ── RESPONSE AREA ─────────────────────────────────────── */
.response-area {
  width: 100%;
  max-width: 500px;
}

.response-box {
  background: linear-gradient(135deg, rgba(28,24,48,.95), rgba(18,16,30,.98));
  border: 1px solid var(--gold-dim);
  border-radius: 16px;
  padding: 0;
  max-height: 0;
  overflow: hidden;
  position: relative;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .6s ease, transform .6s ease, max-height .6s ease, padding .4s ease;
  box-shadow: 0 8px 40px rgba(0,0,0,.5), inset 0 1px 0 rgba(184,92,0,.1);
}
.response-box.visible {
  opacity: 1;
  transform: translateY(0);
  max-height: 4000px;
  padding: 28px;
  overflow: visible;
}

.response-box::before {
  content: '🔮';
  position: absolute;
  top: -14px; left: 24px;
  font-size: 1.5rem;
  filter: drop-shadow(0 0 8px rgba(184,92,0,.6));
  opacity: 0;
  transition: opacity .3s ease .4s;
}
.response-box.visible::before { opacity: 1; }

.zodi-says {
  font-family: 'Lato', sans-serif;
  font-size: .75rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
  opacity: .8;
}

.interpretation-text {
  font-family: 'Lato', sans-serif;
  font-size: .88rem;
  line-height: 1.75;
  color: rgba(242,228,204,.82);
  font-style: normal;
  font-weight: 400;
}
.interpretation-text .zodi-para,
.dream-turn-zodi .zodi-para {
  margin: 0 0 .9em;
  text-align: justify;
  hyphens: auto;
}
.interpretation-text .zodi-para:last-child,
.dream-turn-zodi .zodi-para:last-child { margin-bottom: 0; }

.symbols-found {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--gold-dim);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.symbols-found-label {
  font-size: .7rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--muted);
  width: 100%;
  margin-bottom: 2px;
}
.symbol-tag {
  padding: 3px 12px;
  border: 1px solid rgba(184,92,0,.3);
  border-radius: 20px;
  font-size: .75rem;
  color: var(--gold);
  background: var(--gold-dim);
  letter-spacing: .05em;
}
.symbol-clickable {
  cursor: pointer;
  transition: background .18s, border-color .18s, transform .15s;
}
.symbol-clickable:hover {
  background: rgba(184,92,0,.28);
  border-color: var(--gold);
  transform: translateY(-1px);
}

/* ── Symbol definition modal ─────────────────────────────── */
.sym-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(0,0,0,.7);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
}
.sym-modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}
.sym-modal-box {
  background: linear-gradient(145deg, #0e0b1e, #130f24);
  border: 1px solid rgba(184,92,0,.3);
  border-radius: 18px;
  padding: 32px 36px 36px;
  max-width: 520px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,.7), inset 0 1px 0 rgba(184,92,0,.1);
}
.sym-modal-close {
  position: absolute;
  top: 14px; right: 16px;
  background: none; border: none;
  color: rgba(242,228,204,.3);
  font-size: 1rem;
  cursor: pointer;
  padding: 4px 8px;
  transition: color .2s;
}
.sym-modal-close:hover { color: var(--cream); }
.sym-modal-cat {
  font-size: .7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(184,92,0,.55);
  margin-bottom: 10px;
  font-family: 'Lato', sans-serif;
}
.sym-modal-name {
  font-family: 'Cinzel', serif;
  font-size: 1.5rem;
  color: var(--gold);
  margin: 0 0 16px;
  letter-spacing: 1px;
  text-shadow: 0 0 20px rgba(184,92,0,.3);
}
.sym-modal-divider {
  height: 1px;
  background: linear-gradient(90deg, rgba(184,92,0,.4), transparent);
  margin-bottom: 18px;
}
.sym-modal-body {
  font-family: 'Lato', sans-serif;
  font-size: .9rem;
  line-height: 1.72;
  color: rgba(242,228,204,.82);
}
/* intrare numerotată */
.sym-entry {
  margin-bottom: 4px;
}
.sym-entry-date {
  display: inline-block;
  font-size: .7rem;
  letter-spacing: .08em;
  color: rgba(201,168,76,.5);
  margin-bottom: 8px;
  font-family: 'Lato', sans-serif;
}
.sym-entry-main {
  color: rgba(242,228,204,.9);
  font-weight: 400;
  margin: 0 0 12px;
}
/* separator între intrări */
.sym-entry-sep {
  border: none;
  border-top: 1px solid rgba(184,92,0,.2);
  margin: 18px 0;
}
/* sub-variațiuni (h4) */
.sym-variation {
  margin: 10px 0 10px 0;
  padding-left: 12px;
  border-left: 2px solid rgba(201,168,76,.3);
}
.sym-variation-title {
  font-size: .8rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: .04em;
  margin-bottom: 4px;
  text-transform: capitalize;
}
.sym-variation-text {
  margin: 0;
  color: rgba(242,228,204,.72);
  font-size: .875rem;
  font-weight: 300;
}
/* loading spinner */
.sym-loading {
  color: rgba(201,168,76,.5);
  font-size: .85rem;
  text-align: center;
  padding: 24px 0;
  letter-spacing: .1em;
}
/* fallback vechi (pentru simboluri fără details) */
.sym-main {
  color: rgba(242,228,204,.9);
  font-weight: 400;
}
.sym-variant {
  color: rgba(242,228,204,.6);
  font-size: .85rem;
  padding-left: 8px;
  border-left: 2px solid rgba(184,92,0,.3);
}

/* dream image */
.dream-image-wrap {
  margin-top: 20px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--gold-dim);
  opacity: 0;
  transform: scale(.97);
  transition: opacity .8s ease, transform .8s ease;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--bg2), var(--bg3));
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.dream-image-wrap.visible { opacity: 1; transform: scale(1); }
.dream-image-wrap img {
  width: 100%;
  display: block;
  border-radius: 12px;
  position: relative;
  z-index: 1;
}
.dream-img-loading {
  padding: 1.4rem;
  text-align: center;
  font-size: .78rem;
  color: var(--muted);
  letter-spacing: .12em;
  animation: pulse-text 2s ease-in-out infinite;
}
@keyframes pulse-text {
  0%,100% { opacity:.5; } 50% { opacity:1; }
}
.dream-img-actions {
  position: absolute;
  bottom: .7rem;
  right: .7rem;
  display: flex;
  gap: .5rem;
  z-index: 2;
}
.dream-img-actions.hidden { display: none; }
.dream-img-btn {
  background: rgba(184,92,0,.12);
  border: 1px solid rgba(184,92,0,.35);
  color: var(--gold);
  font-size: .75rem;
  padding: .35rem .8rem;
  border-radius: 6px;
  cursor: pointer;
  letter-spacing: .06em;
  transition: background .2s;
}
.dream-img-btn:hover { background: rgba(184,92,0,.25); }

/* Share popover */
.zodi-share-pop {
  position: absolute;
  z-index: 9999;
  background: rgba(12,8,20,.97);
  border: 1px solid rgba(184,92,0,.3);
  border-radius: 12px;
  padding: .4rem .3rem;
  min-width: 170px;
  box-shadow: 0 8px 32px rgba(0,0,0,.6);
  backdrop-filter: blur(12px);
}
.share-row {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .55rem .9rem;
  border-radius: 8px;
  font-size: .82rem;
  color: var(--cream2);
  text-decoration: none;
  cursor: pointer;
  border: none;
  background: none;
  width: 100%;
  transition: background .15s;
  font-family: 'Lato', sans-serif;
  letter-spacing: .03em;
}
.share-row:hover { background: rgba(255,255,255,.07); }
.share-wa  { color: #25d366; }
.share-fb  { color: #1877f2; }
.share-msg { color: #0084ff; }
.share-copy { color: var(--gold); }

/* loading states */
.loading-dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  padding: 20px 0;
}
.loading-dots span {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gold);
  animation: dotPulse 1.4s ease-in-out infinite;
}
.loading-dots span:nth-child(2) { animation-delay: .2s; }
.loading-dots span:nth-child(3) { animation-delay: .4s; }
@keyframes dotPulse {
  0%, 80%, 100% { transform: scale(.6); opacity: .4; }
  40%           { transform: scale(1);  opacity: 1; }
}

/* ── HISTORY STRIP ─────────────────────────────────────── */
.history-bar {
  grid-column: 1 / -1;
  padding: 20px 40px;
  border-top: 1px solid var(--gold-dim);
  display: none;
  gap: 16px;
  overflow-x: auto;
  background: rgba(9,7,16,.5);
}
.history-bar.visible { display: flex; }
.history-item {
  flex-shrink: 0;
  width: 180px;
  padding: 12px 16px;
  background: var(--bg2);
  border: 1px solid var(--gold-dim);
  border-radius: 10px;
  cursor: pointer;
  transition: border-color .25s, transform .2s;
}
.history-item:hover { border-color: var(--gold); transform: translateY(-2px); }
.history-item p {
  font-size: .75rem;
  color: var(--cream2);
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-height: 1.4;
}
.history-item time { font-size: .65rem; color: var(--muted); display: block; margin-top: 6px; }

/* ══════════════════════════════════════════════════════════
   AUTH MODAL
   ══════════════════════════════════════════════════════════ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 900;
  background: rgba(0,0,0,.75);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}
.modal-overlay.active { opacity: 1; pointer-events: all; }
.modal-box {
  background: linear-gradient(145deg, var(--bg3), var(--bg2));
  border: 1px solid var(--gold-dim);
  border-radius: 20px;
  padding: 40px;
  width: min(420px, 92vw);
  box-shadow: 0 20px 60px rgba(0,0,0,.6);
  transform: translateY(20px);
  transition: transform .3s;
}
.modal-overlay.active .modal-box { transform: translateY(0); }
.modal-title {
  font-family: 'Cinzel', serif;
  font-size: 1.5rem;
  color: var(--gold);
  text-align: center;
  margin-bottom: 30px;
}
.modal-tabs {
  display: flex;
  border-bottom: 1px solid var(--gold-dim);
  margin-bottom: 24px;
}
.modal-tab {
  flex: 1;
  padding: 10px;
  text-align: center;
  cursor: pointer;
  font-size: .85rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  transition: color .25s, border-color .25s;
  margin-bottom: -1px;
}
.modal-tab.active { color: var(--gold); border-bottom-color: var(--gold); }

.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-size: .75rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--cream2);
  margin-bottom: 6px;
}
.form-group input {
  width: 100%;
  padding: 12px 16px;
  background: rgba(9,7,16,.8);
  border: 1px solid rgba(184,92,0,.2);
  border-radius: 10px;
  color: var(--cream);
  font-family: 'Lato', sans-serif;
  font-size: .95rem;
  outline: none;
  transition: border-color .25s;
}
.form-group input:focus { border-color: var(--gold); }
.form-error { color: #f07070; font-size: .8rem; margin-top: 6px; min-height: 20px; }
.btn-modal {
  width: 100%;
  padding: 13px;
  margin-top: 8px;
  background: linear-gradient(135deg, #4a1000, #903000, #c05500, #903000, #4a1000);
  background-size: 250% 100%;
  border: none;
  border-radius: 50px;
  color: #fff;
  font-family: 'Cinzel', serif;
  font-size: .95rem;
  letter-spacing: .1em;
  cursor: pointer;
  transition: background-position .5s, transform .2s, box-shadow .3s;
  box-shadow: 0 4px 18px rgba(220,80,0,.4);
}
.btn-modal:hover {
  background-position: 100% 0;
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(255,110,0,.5);
}
.modal-close {
  position: absolute;
  top: 16px; right: 20px;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1.3rem;
  cursor: pointer;
  transition: color .2s;
}
.modal-close:hover { color: var(--cream); }
.modal-box { position: relative; }

/* ══════════════════════════════════════════════════════════
   ADMIN PANEL
   ══════════════════════════════════════════════════════════ */
body.admin-body {
  font-family: 'Lato', sans-serif;
  background: var(--bg);
  color: var(--cream);
  padding: 0;
}
.admin-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px 24px;
}
.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--gold-dim);
}
.admin-header h1 {
  font-family: 'Cinzel', serif;
  color: var(--gold);
  font-size: 1.6rem;
}
.admin-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 28px;
  background: var(--bg2);
  border-radius: 12px;
  padding: 4px;
}
.admin-tab-btn {
  flex: 1;
  padding: 10px 16px;
  background: none;
  border: none;
  border-radius: 8px;
  color: var(--cream2);
  font-family: 'Lato', sans-serif;
  font-size: .85rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.admin-tab-btn.active { background: var(--gold-dim); color: var(--gold); }
.admin-section { display: none; }
.admin-section.active { display: block; }

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .88rem;
}
.data-table th {
  background: var(--bg3);
  color: var(--gold);
  padding: 12px 14px;
  text-align: left;
  font-family: 'Cinzel', serif;
  font-weight: 400;
  font-size: .8rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.data-table td {
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255,255,255,.04);
  vertical-align: top;
  max-width: 360px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.data-table tr:hover td { background: rgba(184,92,0,.05); }

.admin-search {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}
.admin-search input {
  flex: 1;
  padding: 10px 16px;
  background: var(--bg2);
  border: 1px solid var(--gold-dim);
  border-radius: 8px;
  color: var(--cream);
  font-family: 'Lato', sans-serif;
  font-size: .95rem;
  outline: none;
}
.admin-search input:focus { border-color: var(--gold); }

.btn-sm {
  padding: 5px 12px;
  border-radius: 6px;
  border: none;
  font-size: .78rem;
  cursor: pointer;
  font-family: 'Lato', sans-serif;
  transition: opacity .2s;
}
.btn-sm:hover { opacity: .8; }
.btn-danger  { background: #7a1a1a; color: #ffaaaa; }
.btn-primary { background: var(--gold-dim); color: var(--gold); }
.btn-success { background: rgba(50,120,60,.4); color: #90dd90; }

.card-stats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 30px;
}
.stat-card {
  background: var(--bg2);
  border: 1px solid var(--gold-dim);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
}
.stat-card .stat-val {
  font-family: 'Cinzel', serif;
  font-size: 2rem;
  color: var(--gold);
}
.stat-card .stat-label {
  font-size: .75rem;
  color: var(--muted);
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-top: 4px;
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .page-wrapper {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto 1fr;
  }
  .zodi-panel {
    min-height: 45vw;
    max-height: 60vw;
  }
  .zodi-gradient {
    background: linear-gradient(
      to bottom,
      rgba(9,7,16,0) 0%,
      rgba(9,7,16,.7) 100%
    );
  }
  .zodi-gradient-bottom { height: 50%; }
  .oracle-panel { padding: 30px 24px 50px; }
  .crystal-wrap { width: 200px; height: 200px; }
}
@media (max-width: 480px) {
  header.site-header { padding: 0 16px; }
  .site-logo { font-size: 1.4rem; }
  .oracle-panel { padding: 20px 16px 40px; }
  .crystal-wrap { width: 160px; height: 160px; }
  .oracle-title { font-size: 1.2rem; }
}

@media (max-width: 768px) {
  header.site-header {
    padding: 0 12px;
    position: sticky;
    top: 0;
    z-index: 100;
  }
  .nav-inner {
    height: 52px;
    gap: 0;
  }
  .nav-logo {
    margin-left: 0;
    flex: 0 0 auto;
  }
  .nav-logo-img {
    height: 29px;
    width: auto;
    max-width: 110px;
  }
  .nav-hamburger {
    display: flex;
    flex: 0 0 auto;
    margin-left: auto;
    margin-top: -10px;
    padding: 8px;
    z-index: 101;
  }
  .nav-links {
    display: none;
    position: fixed;
    top: 52px;
    left: 0;
    right: 0;
    background: rgba(7,5,14,.98);
    border-bottom: 1px solid rgba(184,92,0,.25);
    flex-direction: column;
    padding: 14px 20px 18px;
    gap: 12px;
    z-index: 100;
    box-shadow: 0 6px 20px rgba(0,0,0,.6);
  }
  .nav-links.open { display: flex; }
}
@media (max-width: 380px) {
  header.site-header { padding: 0 8px; }
  .nav-logo-img { height: 24px; max-width: 90px; }
}

/* ── Page transition overlay ───────────────────────────── */
#page-fade {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 99999;
  pointer-events: none;
  opacity: 1;
  transition: opacity .32s ease;
}
#page-fade.fade-out { opacity: 0; }

/* ── Utilities ─────────────────────────────────────────── */
.hidden { display: none !important; }
.flex-center { display: flex; align-items: center; justify-content: center; }

/* ══════════════════════════════════════════════════════════
   HOMEPAGE REDESIGN — Centered single-column
   ══════════════════════════════════════════════════════════ */

/* Zodi portrait as full background */
.zodi-bg-wrap {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.zodi-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  opacity: 0.20;
  filter: brightness(0.65) saturate(0.55);
}
.zodi-bg-vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, transparent 30%, rgba(9,7,16,.85) 100%),
    linear-gradient(to bottom, rgba(9,7,16,.4) 0%, transparent 30%, transparent 70%, rgba(9,7,16,.9) 100%);
}


/* Main centered wrapper */
.page-center {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Header override for centered layout */
.page-center .site-header {
  background: rgba(9,7,16,.5);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(184,92,0,.12);
  padding: 0 40px;
}
@media (max-width: 768px) {
  .page-center .site-header { padding: 0 12px; }
}
@media (max-width: 380px) {
  .page-center .site-header { padding: 0 8px; }
}

/* Home main — single column fallback */
.home-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 24px 60px;
  gap: 20px;
  max-width: 600px;
  margin: 0 auto;
  width: 100%;
}

/* 3-column symmetric layout */
.home-layout {
  display: grid !important;
  grid-template-columns: minmax(220px,1fr) minmax(280px,480px) minmax(220px,1fr);
  grid-template-areas: "left center right";
  align-items: start;
  gap: 2rem;
  max-width: 1200px !important;
  width: 100% !important;
  margin: 0 auto;
  padding: 36px 28px 20px;
}

.home-sidebar {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-top: 48px;
  min-width: 0;
}

.home-sidebar-left  { grid-area: left; }
.home-sidebar-right { grid-area: right; }

.home-center {
  grid-area: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  min-width: 0;
  width: 100%;
}

.home-left  { grid-area: left; }
.home-right { grid-area: right; }

.home-right-label {
  font-family: 'Cinzel', serif;
  font-size: 0.72rem;
  color: var(--gold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.7;
  margin: 0 0 0.8rem;
}


/* Horoscop cards in sidebar */
.home-right-horo {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-bottom: 0.5rem;
}

.hrh-card {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(201,168,76,.14);
  text-decoration: none;
  color: rgba(242,228,204,.75);
  transition: border-color 0.22s, background 0.22s, transform 0.2s;
  backdrop-filter: blur(4px);
}

.hrh-eu         { background: linear-gradient(135deg, rgba(80,40,5,.45),   rgba(10,5,20,.50)); }
.hrh-ch         { background: linear-gradient(135deg, rgba(100,15,15,.45), rgba(10,5,20,.50)); }
.hrh-primal     { background: linear-gradient(135deg, rgba(10,60,25,.45),  rgba(10,5,20,.50)); }
.hrh-vise       { background: linear-gradient(135deg, rgba(60,20,80,.45),  rgba(10,5,20,.50)); }
.hrh-natal      { background: linear-gradient(135deg, rgba(15,40,80,.45),  rgba(10,5,20,.50)); }
.hrh-compat     { background: linear-gradient(135deg, rgba(80,15,40,.45),  rgba(10,5,20,.50)); }
.hrh-tarot      { background: linear-gradient(135deg, rgba(50,10,60,.45),  rgba(10,5,20,.50)); }
.hrh-numerologie{ background: linear-gradient(135deg, rgba(10,35,70,.45),  rgba(10,5,20,.50)); }
.hrh-bioritm    { background: linear-gradient(135deg, rgba(5,50,45,.45),   rgba(10,5,20,.50)); }
.hrh-nume       { background: linear-gradient(135deg, rgba(70,20,30,.45),  rgba(10,5,20,.50)); }

/* Coming-soon state */
.hrh-card.hrh-soon {
  opacity: 0.42;
  filter: grayscale(0.5);
  cursor: default;
  pointer-events: none;
}
.hrh-card.hrh-soon:hover {
  transform: none;
  border-color: rgba(201,168,76,.14);
}

.hrh-soon-badge {
  font-size: 0.58rem;
  font-family: 'Lato', sans-serif;
  background: rgba(184,92,0,.18);
  border: 1px solid rgba(184,92,0,.30);
  color: rgba(217,120,32,.85);
  padding: 2px 7px;
  border-radius: 20px;
  letter-spacing: 0.05em;
  white-space: nowrap;
  flex-shrink: 0;
  text-transform: lowercase;
}

.hrh-card:hover {
  border-color: rgba(201,168,76,.40);
  transform: translateX(3px);
}

.hrh-glyph {
  font-size: 1rem;
  letter-spacing: 0.05em;
  flex-shrink: 0;
  opacity: 0.85;
  width: 5.2rem;
  min-width: 5.2rem;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
}

.hrh-card div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.15rem; }
.hrh-card strong { font-family: 'Cinzel', serif; font-size: 0.82rem; color: var(--gold); }
.hrh-card p { margin: 0; font-size: 0.75rem; color: rgba(242,228,204,.50); line-height: 1.4; }
.hrh-arrow { font-size: 0.9rem; color: var(--gold); opacity: 0.45; flex-shrink: 0; transition: opacity 0.2s; }
.hrh-card:hover .hrh-arrow { opacity: 0.9; }


@media (max-width: 1100px) {
  .home-layout {
    grid-template-columns: 220px 1fr 220px;
    gap: 1.6rem;
  }
}
@media (max-width: 860px) {
  .home-layout {
    grid-template-columns: 1fr;
    grid-template-areas: "center" "left" "right";
    max-width: 600px;
    padding: 40px 24px 60px;
  }
  .home-sidebar { padding-top: 0; }
}

.oracle-sub {
  color: rgba(242,228,204,.5);
  font-size: .88rem;
  text-align: center;
  margin-top: -10px;
  font-style: italic;
}

/* Section navigation (kept for backward compat) */
.home-nav-section { display: none; }
.home-nav-label {
  text-align: center;
  font-family: 'Cinzel', serif;
  font-size: .72rem;
  letter-spacing: 3px;
  color: rgba(184,92,0,.5);
  margin-bottom: 16px;
  text-transform: uppercase;
}
.home-nav-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
@media (max-width: 520px) {
  .home-nav-cards { grid-template-columns: repeat(2, 1fr); }
}
.home-nav-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 14px 8px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(184,92,0,.15);
  border-radius: 12px;
  text-decoration: none;
  color: rgba(242,228,204,.6);
  transition: all .2s;
  text-align: center;
}
.home-nav-card:hover {
  background: rgba(184,92,0,.1);
  border-color: rgba(184,92,0,.4);
  color: var(--cream);
  transform: translateY(-2px);
}
.home-nav-card.active {
  background: rgba(184,92,0,.12);
  border-color: var(--gold);
  color: var(--gold);
}
.home-nav-icon { font-size: var(--zodiac-sym-sm); }
.home-nav-name {
  font-family: 'Cinzel', serif;
  font-size: .72rem;
  letter-spacing: .5px;
  color: inherit;
}
.home-nav-desc {
  font-size: .68rem;
  color: rgba(242,228,204,.35);
  line-height: 1.3;
}
.home-nav-card:hover .home-nav-desc,
.home-nav-card.active .home-nav-desc { color: rgba(242,228,204,.6); }

.site-footer-home {
  text-align: center;
  padding: 20px;
  color: rgba(242,228,204,.25);
  font-size: .75rem;
  letter-spacing: 1px;
}

/* Override: remove old two-column page-wrapper on homepage */
body:has(.page-center) .page-wrapper { display: none !important; }

/* ══════════════════════════════════════════════════════════
   ZODIAC RING — Rotating background decoration
   ══════════════════════════════════════════════════════════ */
.zodiac-ring-wrap {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50vw;
  height: 50vw;
  max-width: 700px;
  max-height: 700px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.16;
}
.zodiac-ring {
  width: 100%;
  height: 100%;
  animation: zodiac-spin 90s linear infinite;
  position: relative;
}
.zodiac-sym {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 2.2rem;
  height: 2.2rem;
  margin: -1.1rem;
  font-size: 1.8rem;
  line-height: 1;
  text-align: center;
  color: rgba(201,168,76,0.85);
  text-shadow: 0 0 16px rgba(201,168,76,0.55);
  transform:
    rotate(calc(30deg * var(--i)))
    translateY(calc(min(23vw, 320px) * -1))
    rotate(calc(-30deg * var(--i)));
}
@keyframes zodiac-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@media (max-width: 768px) {
  .zodiac-ring-wrap {
    width: 95vw;
    height: 95vw;
    opacity: 0.11;
  }
  .zodiac-sym {
    font-size: 1.5rem;
    transform:
      rotate(calc(30deg * var(--i)))
      translateY(calc(min(44vw, 200px) * -1))
      rotate(calc(-30deg * var(--i)));
  }
}

/* (horo-promo-section replaced by home-right sidebar) */

/* ══════════════════════════════════════════════════════════
   ZODI AVATAR — Animated portrait panel
   ══════════════════════════════════════════════════════════ */

.zodi-avatar-panel {
  position: fixed;
  bottom: 0;
  right: 1.6rem;
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.zodi-avatar-panel.visible {
  opacity: 1;
  pointer-events: auto;
}

/* Avatar inner: slides up from below on .open */
.zodi-avatar-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  transform: translateY(160px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.35s ease;
}
.zodi-avatar-panel.open .zodi-avatar-inner {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
/* Float on the wrap (not inner) to avoid transform conflict */
.zodi-avatar-panel.open .zodi-avatar-wrap {
  animation: avatar-float 5s ease-in-out infinite;
}

/* Tab — always visible at bottom */
.zodi-avatar-tab {
  width: 80px;
  height: 30px;
  background: rgba(9,7,16,.88);
  border: 1px solid rgba(184,92,0,.3);
  border-bottom: none;
  border-radius: 8px 8px 0 0;
  color: rgba(201,168,76,.6);
  font-family: 'Cinzel', serif;
  font-size: 0.58rem;
  letter-spacing: 2px;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: background .2s, color .2s, border-color .2s;
}
.zodi-avatar-tab:hover,
.zodi-avatar-panel.open .zodi-avatar-tab {
  background: rgba(184,92,0,.18);
  color: var(--gold, #c9a84c);
  border-color: rgba(184,92,0,.5);
}

.zodi-avatar-wrap {
  position: relative;
  width: 75px;
  height: 100px;
  border-radius: 50% 50% 46% 46%;
  overflow: hidden;
  border: 1px solid rgba(184,92,0,.35);
  box-shadow:
    0 0 14px rgba(184,92,0,.28),
    0 0 30px rgba(140,80,30,.14),
    inset 0 -12px 18px rgba(0,0,0,.55);
  background: #09060a;
}

/* .zodi-avatar-img and .zodi-face-canvas removed —
   single canvas renders image + animation in ZodiAvatar */

@keyframes label-fire {
  0%   { color: #ff8c2a; text-shadow: 0 0 8px rgba(255,120,30,.7), 0 0 18px rgba(255,60,0,.4); }
  25%  { color: #ffb347; text-shadow: 0 0 14px rgba(255,180,50,.9), 0 0 28px rgba(255,100,0,.5); }
  50%  { color: #ff6a00; text-shadow: 0 0 20px rgba(255,80,0,1),   0 0 40px rgba(255,40,0,.6), 0 0 5px #fff8; }
  75%  { color: #ffb347; text-shadow: 0 0 14px rgba(255,180,50,.9), 0 0 28px rgba(255,100,0,.5); }
  100% { color: #ff8c2a; text-shadow: 0 0 8px rgba(255,120,30,.7), 0 0 18px rgba(255,60,0,.4); }
}
@keyframes label-spark {
  0%,90%,100% { opacity: 1; transform: translateY(0) scale(1); }
  93%          { opacity: 1; transform: translateY(-3px) scale(1.15); color: #fff; text-shadow: 0 0 22px #fff, 0 0 40px #ff8c2a; }
  96%          { opacity: 1; transform: translateY(-1px) scale(1.05); }
}
.zodi-avatar-label {
  font-family: 'Cinzel', serif;
  font-size: 0.60rem;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  animation: label-fire 2.8s ease-in-out infinite, label-spark 6s ease-in-out infinite;
}
/* When open: label moves above avatar */
.zodi-avatar-panel.open .zodi-avatar-label {
  order: -1;
}

/* State-driven glow on the wrap border */
.zodi-avatar-panel[data-state="speaking"] .zodi-avatar-wrap {
  box-shadow:
    0 0 18px rgba(80,220,130,.35),
    0 0 36px rgba(184,92,0,.25),
    inset 0 -12px 18px rgba(0,0,0,.55);
  border-color: rgba(80,220,130,.45);
}
.zodi-avatar-panel[data-state="thinking"] .zodi-avatar-wrap {
  box-shadow:
    0 0 18px rgba(184,92,0,.38),
    0 0 38px rgba(184,92,0,.15),
    inset 0 -12px 18px rgba(0,0,0,.55);
  border-color: rgba(184,92,0,.50);
}
.zodi-avatar-panel[data-state="speaking"] .zodi-avatar-label,
.zodi-avatar-panel[data-state="thinking"] .zodi-avatar-label {
  color: rgba(184,92,0,.85);
  text-shadow: 0 0 12px rgba(184,92,0,.55);
}

@keyframes avatar-float {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-7px); }
}

/* ── Djinn mode: BLUE glow when speaking (overrides green on non-index pages) ── */
.zodi-djinn-mode[data-state="speaking"] .zodi-avatar-wrap {
  box-shadow:
    0 0 18px rgba(85,136,224,.55),
    0 0 40px rgba(85,136,224,.22),
    inset 0 -12px 18px rgba(0,0,0,.55);
  border-color: rgba(100,160,255,.6);
}
.zodi-djinn-mode[data-state="thinking"] .zodi-avatar-wrap {
  box-shadow:
    0 0 16px rgba(85,136,224,.35),
    0 0 32px rgba(85,136,224,.12),
    inset 0 -12px 18px rgba(0,0,0,.55);
  border-color: rgba(100,160,255,.4);
}
.zodi-djinn-mode[data-state="speaking"] .zodi-avatar-label,
.zodi-djinn-mode[data-state="thinking"] .zodi-avatar-label {
  color: rgba(100,160,255,.9);
  text-shadow: 0 0 12px rgba(85,136,224,.6);
}
/* Djinn toggle button */
.zodi-djinn-toggle {
  background: rgba(85,136,224,.15);
  border: 1px solid rgba(85,136,224,.35);
  border-radius: 12px;
  color: rgba(170,200,255,.8);
  font-family: 'Cinzel', serif;
  font-size: .6rem;
  letter-spacing: 1px;
  padding: 4px 10px;
  cursor: pointer;
  pointer-events: auto;
  transition: all .2s;
}
.zodi-djinn-toggle:hover {
  background: rgba(85,136,224,.28);
  border-color: rgba(85,136,224,.6);
  color: #aad0ff;
}
/* ── Djinn chat panel ─────────────────────────────────────────────────────── */
.zodi-djinn-chat {
  position: fixed;
  bottom: 1.6rem;
  right: 190px;
  width: 320px;
  max-height: 460px;
  background: rgba(10,8,22,.94);
  border: 1px solid rgba(85,136,224,.3);
  border-radius: 16px;
  backdrop-filter: blur(14px);
  box-shadow: 0 8px 40px rgba(0,0,0,.7), 0 0 30px rgba(85,136,224,.1);
  display: flex;
  flex-direction: column;
  z-index: 50;
  opacity: 0;
  pointer-events: none;
  transform: translateX(18px);
  transition: opacity .25s, transform .25s;
}
.zodi-djinn-chat.open {
  opacity: 1;
  pointer-events: all;
  transform: translateX(0);
}
.zodi-djinn-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px 10px;
  border-bottom: 1px solid rgba(85,136,224,.15);
}
.zodi-djinn-title {
  font-family: 'Cinzel', serif;
  font-size: .78rem;
  color: #88aaff;
  letter-spacing: 1.5px;
  flex: 1;
}
.zodi-remaining-badge {
  font-family: 'Lato', sans-serif;
  font-size: .68rem;
  color: rgba(170,200,255,.6);
  white-space: nowrap;
}
.zodi-djinn-close {
  background: none;
  border: none;
  color: rgba(242,228,204,.35);
  cursor: pointer;
  font-size: .9rem;
  padding: 0 2px;
  line-height: 1;
  transition: color .15s;
}
.zodi-djinn-close:hover { color: rgba(242,228,204,.7); }
.zodi-djinn-messages {
  flex: 1;
  overflow-y: auto;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  scrollbar-width: thin;
  scrollbar-color: rgba(85,136,224,.2) transparent;
}
.zodi-msg { max-width: 90%; }
.zodi-msg p {
  font-family: 'Lato', sans-serif;
  font-size: .8rem;
  line-height: 1.65;
  margin: 0;
  padding: 9px 13px;
  border-radius: 12px;
}
.zodi-msg-bot { align-self: flex-start; }
.zodi-msg-bot p {
  background: rgba(85,136,224,.12);
  border: 1px solid rgba(85,136,224,.2);
  color: rgba(220,230,255,.85);
}
.zodi-msg-user { align-self: flex-end; }
.zodi-msg-user p {
  background: rgba(201,168,76,.1);
  border: 1px solid rgba(201,168,76,.2);
  color: rgba(242,228,204,.8);
  text-align: right;
}
.zodi-msg-warn p {
  background: rgba(139,26,46,.15);
  border-color: rgba(139,26,46,.3);
  color: rgba(224,107,122,.85);
}
.zodi-msg.thinking p { color: rgba(170,200,255,.4); }
@keyframes zodi-dots {
  0%,20%  { opacity:.2 } 40% { opacity:1 } 60%,100% { opacity:.2 }
}
.zodi-dots span { animation: zodi-dots 1.2s infinite; }
.zodi-dots span:nth-child(2) { animation-delay: .2s; }
.zodi-dots span:nth-child(3) { animation-delay: .4s; }
.zodi-djinn-input-row {
  display: flex;
  gap: 6px;
  padding: 10px 12px 8px;
  border-top: 1px solid rgba(85,136,224,.12);
}
.zodi-djinn-input {
  flex: 1;
  background: rgba(85,136,224,.08);
  border: 1px solid rgba(85,136,224,.25);
  border-radius: 8px;
  color: rgba(242,228,204,.9);
  font-family: 'Lato', sans-serif;
  font-size: .8rem;
  padding: 7px 10px;
  outline: none;
  transition: border-color .2s;
}
.zodi-djinn-input:focus { border-color: rgba(85,136,224,.55); }
.zodi-djinn-input:disabled { opacity: .4; }
.zodi-djinn-send {
  background: rgba(85,136,224,.2);
  border: 1px solid rgba(85,136,224,.4);
  border-radius: 8px;
  color: #88aaff;
  font-size: .9rem;
  width: 34px;
  cursor: pointer;
  transition: all .2s;
}
.zodi-djinn-send:hover { background: rgba(85,136,224,.35); }
.zodi-djinn-send:disabled { opacity: .3; cursor: default; }
.zodi-djinn-hint {
  font-family: 'Lato', sans-serif;
  font-size: .65rem;
  color: rgba(170,200,255,.28);
  text-align: center;
  padding: 0 12px 8px;
  margin: 0;
}
@media (max-width: 600px) {
  .zodi-djinn-chat { right: 10px; bottom: 220px; width: calc(100vw - 20px); max-height: 50vh; }
}
/* Compact version on horoscop (sidebar area adds class .avatar-compact) */
.zodi-avatar-panel.avatar-compact .zodi-avatar-wrap {
  width: 110px;
  height: 148px;
}
.zodi-avatar-panel.avatar-compact { bottom: 1rem; right: 1rem; }

@media (max-width: 600px) {
  .zodi-avatar-panel {
    bottom: 0.6rem;
    right: 0.6rem;
  }
  .zodi-avatar-wrap {
    width: 100px;
    height: 134px;
  }
}

/* ══════════════════════════════════════════════════════════
   SHARE CARD MODAL
   ══════════════════════════════════════════════════════════ */
.share-card-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0,0,0,.82);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.share-card-modal {
  background: var(--bg2);
  border: 1px solid rgba(184,92,0,.35);
  border-radius: 16px;
  padding: 20px;
  width: 100%;
  max-width: 420px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 12px 60px rgba(0,0,0,.7);
}
.share-card-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.share-card-modal-head h3 {
  font-family: 'Cinzel', serif;
  font-size: 1rem;
  color: var(--gold);
  letter-spacing: .08em;
}
.share-card-close {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: color .2s;
}
.share-card-close:hover { color: var(--cream); }
.share-card-preview-wrap {
  overflow-y: auto;
  border-radius: 10px;
  border: 1px solid rgba(184,92,0,.2);
  flex: 1;
  min-height: 0;
}
.share-card-preview {
  width: 100%;
  display: block;
  border-radius: 10px;
}
.share-card-actions {
  display: flex;
  gap: 10px;
}
.share-card-actions .dream-action-btn {
  flex: 1;
  padding: 10px 14px;
  font-size: .88rem;
}
.share-card-save  { border-color: rgba(184,92,0,.4); }
.share-card-share {
  background: linear-gradient(135deg, rgba(184,92,0,.18), rgba(184,92,0,.08));
  border-color: rgba(184,92,0,.6);
  color: var(--gold);
}
.share-card-share:hover { background: rgba(184,92,0,.3); }

/* Social share row */
.share-card-socials {
  display: flex;
  gap: 8px;
}
.sc-social-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 10px 6px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.04);
  color: var(--cream2);
  font-size: .68rem;
  letter-spacing: .04em;
  cursor: pointer;
  text-decoration: none;
  transition: background .18s, border-color .18s;
  font-family: 'Lato', sans-serif;
}
.sc-social-btn:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.18); }
.sc-wa  { color: #25d366; border-color: rgba(37,211,102,.2); }
.sc-wa:hover  { background: rgba(37,211,102,.12); border-color: rgba(37,211,102,.4); }
.sc-fb  { color: #1877f2; border-color: rgba(24,119,242,.2); }
.sc-fb:hover  { background: rgba(24,119,242,.12); border-color: rgba(24,119,242,.4); }
.sc-msg { color: #0084ff; border-color: rgba(0,132,255,.2); }
.sc-msg:hover { background: rgba(0,132,255,.12); border-color: rgba(0,132,255,.4); }
.sc-copy { color: var(--gold); border-color: rgba(184,92,0,.25); }
.sc-copy:hover { background: rgba(184,92,0,.15); border-color: rgba(184,92,0,.45); }
.sc-unavail { opacity: .35; cursor: not-allowed; }
.sc-no-upload {
  font-size: .72rem;
  color: rgba(200,184,154,.4);
  text-align: center;
  padding: 2px 0 0;
  line-height: 1.4;
}

/* Share loading toast */
.share-toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  background: rgba(12,8,20,.96);
  border: 1px solid rgba(184,92,0,.4);
  color: var(--cream2);
  font-size: .9rem;
  padding: .65rem 1.4rem;
  border-radius: 50px;
  z-index: 20000;
  opacity: 0;
  transition: opacity .25s, transform .25s;
  pointer-events: none;
  white-space: nowrap;
}
.share-toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ══════════════════════════════════════════════════════════
   TESTIMONIALS SECTION
   ══════════════════════════════════════════════════════════ */

/* Testimonials — 3 per row, constrained width */
.testimonials-below {
  padding: 0 28px 3rem;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.section-label-center {
  font-family: 'Cinzel', serif;
  font-size: 0.72rem;
  color: var(--gold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.7;
  text-align: center;
  display: block;
  margin-bottom: 1.2rem;
}

.testimonials-grid, #testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}

@media (max-width: 700px) {
  .testimonials-below { padding: 0 20px 2rem; }
  .testimonials-grid, #testimonials-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 420px) {
  .testimonials-grid, #testimonials-grid { grid-template-columns: 1fr; }
}

.testimonial-card {
  background: rgba(18, 10, 30, 0.75);
  border: 1px solid rgba(201,168,76,.22);
  border-radius: 14px;
  padding: 1.1rem 1.2rem;
  backdrop-filter: blur(6px);
  box-shadow: 0 2px 18px rgba(0,0,0,.35);
  transition: border-color 0.22s, background 0.22s, transform 0.2s;
}

.testimonial-card:hover {
  border-color: rgba(201,168,76,.48);
  background: rgba(24, 14, 40, 0.88);
  transform: translateY(-2px);
}

.tc-header {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.7rem;
}

.tc-avatar {
  font-size: 1.5rem;
  line-height: 1;
  flex-shrink: 0;
}

.tc-meta {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.tc-name {
  font-family: 'Cinzel', serif;
  font-size: 0.78rem;
  color: rgba(242,228,204,.85);
  letter-spacing: 0.03em;
}

.tc-stars {
  font-size: 0.85rem;
  line-height: 1;
}

.tstar.full {
  color: var(--gold);
}

.tstar.half {
  color: var(--gold);
  opacity: 0.6;
}

.tc-text {
  font-size: 0.82rem;
  color: rgba(242,228,204,.55);
  line-height: 1.55;
  margin: 0;
}

/* ══════════════════════════════════════════════════════════
   ZODI DIVIDER — gold line with sliding star
   ══════════════════════════════════════════════════════════ */
.zodi-divider {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto 1.8rem;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(184,92,0,.25) 15%,
    rgba(201,168,76,.55) 50%,
    rgba(184,92,0,.25) 85%,
    transparent 100%);
  overflow: visible;
}

.zodi-divider::after {
  content: '✦';
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.55rem;
  color: var(--gold-light);
  text-shadow: 0 0 10px rgba(217,120,32,.9), 0 0 20px rgba(184,92,0,.5);
  animation: zodDivStar 7s ease-in-out infinite;
  pointer-events: none;
}

@keyframes zodDivStar {
  0%   { left: 4%; }
  50%  { left: 94%; }
  100% { left: 4%; }
}

/* ══════════════════════════════════════════════════════════
   BENEFITS SECTION
   ══════════════════════════════════════════════════════════ */

.benefits-section {
  padding: 0 28px 2rem;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.9rem;
}

.benefit-card {
  background: rgba(10,5,22,.55);
  border: 1px solid rgba(201,168,76,.13);
  border-radius: 14px;
  padding: 1.1rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.45rem;
  transition: border-color .22s, background .22s;
}

.benefit-card:hover {
  border-color: rgba(201,168,76,.32);
  background: rgba(18,9,32,.70);
}

.benefit-icon {
  font-size: 1.6rem;
  line-height: 1;
}

.benefit-card strong {
  font-family: 'Cinzel', serif;
  font-size: 0.78rem;
  color: var(--gold);
  letter-spacing: 0.03em;
}

.benefit-card p {
  font-size: 0.76rem;
  color: rgba(242,228,204,.48);
  line-height: 1.5;
  margin: 0;
}

@media (max-width: 700px) {
  .benefits-section { padding: 0 20px 1.5rem; }
  .benefits-grid    { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 400px) {
  .benefits-grid    { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════════════════════
   MOBILE OPTIMIZATION — comprehensive
   ══════════════════════════════════════════════════════════ */

/* Sidebars: horizontal scroll on small screens */
@media (max-width: 860px) {
  .home-sidebar {
    width: 100%;
  }
  .home-right-horo {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.6rem;
  }
  .hrh-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 0.75rem 0.8rem;
    gap: 0.4rem;
  }
  .hrh-glyph { font-size: 1rem; min-width: unset; }
  .hrh-card p { display: none; }
  .hrh-arrow  { display: none; }
}

@media (max-width: 540px) {
  .home-right-horo {
    display: flex;
    overflow-x: auto;
    gap: 0.6rem;
    padding-bottom: 0.4rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }
  .home-right-horo::-webkit-scrollbar { height: 3px; }
  .home-right-horo::-webkit-scrollbar-thumb { background: rgba(201,168,76,.3); border-radius: 2px; }
  .hrh-card {
    min-width: 130px;
    flex-shrink: 0;
    scroll-snap-align: start;
  }
}

/* Dream input & button */
@media (max-width: 600px) {
  .home-center { gap: 14px; }
  .crystal-wrap { width: 180px; height: 180px; }
  .oracle-title { font-size: 1.3rem; }
  .oracle-sub   { font-size: 0.82rem; }
  .dream-input-wrap { max-width: 100%; }
  #dream-input  { font-size: 0.88rem; }
  .btn-oracle   { padding: 12px 28px; font-size: 0.88rem; }
  .response-box { padding: 1rem; }
}

@media (max-width: 400px) {
  .crystal-wrap { width: 150px; height: 150px; }
  .oracle-title { font-size: 1.15rem; }
  .home-layout  { padding: 24px 16px 40px; }
  .testimonials-below, .benefits-section { padding-left: 16px; padding-right: 16px; }
  .hrh-card strong { font-size: 0.75rem; }
}

/* Horoscop page mobile */
@media (max-width: 600px) {
  .annual-quarter-card { padding: 0.9rem 1rem; }
  .aq-text { font-size: 0.8rem; }
}

/* Zodi avatar — mai mic pe mobile, vizibil peste tot */
@media (max-width: 480px) {
  .zodi-avatar-panel { right: 0.5rem; }
  .zodi-avatar-wrap  { width: 62px; height: 82px; }
  .zodi-avatar-tab   { width: 62px; font-size: .52rem; height: 28px; }
  .zodi-avatar-inner { transform: translateY(140px); }
}

/* Page-center padding on mobile */
@media (max-width: 600px) {
  .page-center { overflow-x: hidden; }
}

/* ── Dream Conversation Thread ───────────────────────── */
#dream-conversation {
  margin-top: 0.75rem;
}
.dream-turn {
  margin-bottom: 0.75rem;
}
.dream-turn-zodi {
  padding: 0.75rem 1rem;
  background: rgba(201,168,76,.06);
  border-left: 2px solid rgba(201,168,76,.3);
  border-radius: 0 10px 10px 0;
  font-family: 'Lato', sans-serif;
  font-size: .88rem;
  line-height: 1.75;
  color: rgba(242,228,204,.82);
}
.dream-turn-user {
  padding: 0.55rem 1rem;
  background: rgba(255,255,255,.04);
  border-radius: 10px 10px 10px 0;
  font-family: 'Lato', sans-serif;
  font-size: .82rem;
  color: rgba(242,228,204,.55);
  font-style: italic;
  border: 1px solid rgba(255,255,255,.06);
}
.dream-turn-user::before {
  content: '↳ ';
  color: rgba(201,168,76,.5);
}
.dream-answer-wrap {
  margin-top: 0.85rem;
  padding: 0.9rem 1rem;
  background: rgba(201,168,76,.04);
  border: 1px solid rgba(201,168,76,.18);
  border-radius: 12px;
}
.dream-answer-wrap textarea {
  width: 100%;
  background: rgba(9,7,16,.5);
  border: 1px solid rgba(201,168,76,.2);
  border-radius: 8px;
  color: var(--cream);
  font-family: 'Lato', sans-serif;
  font-size: .85rem;
  line-height: 1.6;
  padding: 0.6rem 0.8rem;
  resize: vertical;
  min-height: 64px;
  outline: none;
  box-sizing: border-box;
  transition: border-color .2s;
}
.dream-answer-wrap textarea:focus {
  border-color: rgba(201,168,76,.45);
}
.dream-answer-submit {
  margin-top: 0.55rem;
  padding: 0.45rem 1.2rem;
  background: rgba(201,168,76,.12);
  border: 1px solid rgba(201,168,76,.3);
  border-radius: 20px;
  color: rgba(201,168,76,.9);
  font-family: 'Cinzel', serif;
  font-size: .78rem;
  cursor: pointer;
  transition: background .2s;
  float: right;
}
.dream-answer-submit:hover:not(:disabled) {
  background: rgba(201,168,76,.22);
}
.dream-answer-submit:disabled { opacity: .5; cursor: not-allowed; }
.dream-convo-loading {
  color: rgba(201,168,76,.6);
  font-size: .8rem;
  padding: 0.5rem 0;
  font-style: italic;
}

/* ── Existing horoscope warning banner ───────────────── */
.existing-horo-banner {
  margin-bottom: 1.2rem;
  padding: 1rem 1.2rem;
  background: rgba(201,168,76,.07);
  border: 1px solid rgba(201,168,76,.3);
  border-radius: 12px;
  text-align: center;
  font-family: 'Lato', sans-serif;
  font-size: .88rem;
  color: rgba(242,228,204,.85);
  line-height: 1.7;
}
.existing-horo-icon {
  font-size: 1.4rem;
  color: var(--gold, #c9a84c);
  margin-bottom: .4rem;
}
.existing-horo-btns {
  display: flex;
  gap: .6rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: .75rem;
}

/* ── PDF Export ───────────────────────────────────────── */
.pdf-btn-wrap {
  margin-top: 1.1rem;
  display: flex;
  justify-content: flex-end;
  gap: .5rem;
  flex-wrap: wrap;
}
.btn-share-export {
  border-color: rgba(120,80,200,.35) !important;
  color: rgba(180,140,255,.85) !important;
}
.btn-share-export:hover:not(:disabled) {
  background: rgba(120,80,200,.12) !important;
  border-color: rgba(160,100,255,.5) !important;
  color: rgba(210,180,255,.95) !important;
}
.btn-pdf-export {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 1rem;
  background: rgba(201,168,76,.07);
  border: 1px solid rgba(201,168,76,.25);
  border-radius: 20px;
  color: rgba(201,168,76,.75);
  font-size: 0.78rem;
  font-family: 'Lato', sans-serif;
  cursor: pointer;
  transition: background .2s, border-color .2s, color .2s;
}
.btn-pdf-export:hover:not(:disabled) {
  background: rgba(201,168,76,.14);
  border-color: rgba(201,168,76,.5);
  color: var(--gold);
}
.btn-pdf-export:disabled {
  opacity: .5;
  cursor: not-allowed;
}
.pdf-login-hint {
  font-size: 0.75rem;
  color: rgba(242,228,204,.3);
}
/* Markdown-lite formatting */
.fmt-bold {
  color: #e8972a;
  font-weight: 600;
  letter-spacing: .02em;
}
.fmt-hr {
  border: none;
  height: 1px;
  margin: 1rem 0;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(232,151,42,.15) 20%,
    rgba(232,151,42,.55) 50%,
    rgba(232,151,42,.15) 80%,
    transparent 100%);
  background-size: 200% 100%;
  animation: zodi-hr-flow 16s ease-in-out infinite;
}

.login-gate-msg {
  text-align: center;
  padding: 2rem 1rem;
  font-size: .88rem;
  color: rgba(242,228,204,.7);
  line-height: 1.8;
  border: 1px solid rgba(201,168,76,.2);
  border-radius: 12px;
  background: rgba(201,168,76,.04);
}

/* ══════════════════════════════════════════════════════════
   MOBILE / TABLET RESPONSIVE — comprehensive fixes
   ══════════════════════════════════════════════════════════ */

/* nav mobile — handled in main block above */

/* ── Homepage DHS slider: zodii wrap pe mobil ────────────── */
@media (max-width: 600px) {
  .dhs-section   { padding: 0 10px; margin-bottom: 32px; }
  .dhs-grid {
    flex-wrap: wrap;
    overflow-x: visible;
    gap: 5px;
  }
  .dhs-sign-card {
    flex: 1 1 calc(16.5% - 5px); /* 6 per row = 2 rows */
    min-width: 0;
    max-width: none;
  }
  .dhs-dots { gap: 6px; flex-wrap: wrap; justify-content: center; }
  .dhs-dot  { padding: 5px 10px 5px 8px; font-size: .66rem; }
}
@media (max-width: 400px) {
  .dhs-sign-card {
    flex: 1 1 calc(24.5% - 5px); /* 4 per row = 3 rows */
  }
  .dhs-dot-label { display: none; } /* păstrează doar pip-ul */
}

/* ── Home layout — single column padding ─────────────────── */
@media (max-width: 600px) {
  .home-layout { padding: 20px 12px 40px; gap: 1rem; }
  .home-main   { padding: 20px 12px 40px; }
}
@media (max-width: 380px) {
  .home-layout { padding: 16px 10px 32px; }
}

/* ── Home right sidebar: horizontal scroll pe mobil ─────── */
@media (max-width: 860px) {
  .home-right-horo { gap: 0.4rem; }
  .hrh-card        { padding: 0.7rem 0.8rem; gap: 0.5rem; }
}

/* ── Horoscop page: sign modal padding ──────────────────── */
@media (max-width: 600px) {
  .sign-modal-box  { padding: 20px 16px 24px; border-radius: 14px; }
  .sign-modal-box .sign-modal-title { font-size: 1.1rem; }
}
@media (max-width: 420px) {
  .sign-modal-overlay { padding: 10px; }
  .sign-modal-box      { padding: 16px 12px 20px; }
}

/* ── Sign picker: scroll hint pe mobil ──────────────────── */
@media (max-width: 600px) {
  .sign-picker { gap: 4px; margin-bottom: 16px; }
  .sign-pill   { padding: 8px 4px 6px; min-width: 40px; }
  .sign-pill .pill-symbol { font-size: 1.1rem; }
  .sign-pill .pill-name   { font-size: .52rem; }
}

/* ── Djinn chat pe mobil ─────────────────────────────────── */
@media (max-width: 600px) {
  .zodi-djinn-chat {
    right: 8px !important;
    left: 8px !important;
    width: auto !important;
    max-width: none !important;
    bottom: 60px !important;
    max-height: 60vh !important;
  }
}

/* ── Avatar tab: mai mic pe telefon ─────────────────────── */
@media (max-width: 600px) {
  .zodi-avatar-panel { right: 0.8rem; z-index: 60; }
  .zodi-avatar-tab   { width: 68px; font-size: .55rem; letter-spacing: 1.5px; }
}

/* ── General: overflow previne scroll orizontal ─────────── */
@media (max-width: 768px) {
  body { overflow-x: hidden; }
  .page-center, .horo-main, .horo-layout { overflow-x: hidden; }
}

/* ── Headings responsive ─────────────────────────────────── */
@media (max-width: 480px) {
  h1, .page-title   { font-size: clamp(1.2rem, 5vw, 1.6rem) !important; }
  h2, .section-title { font-size: clamp(1rem, 4vw, 1.3rem) !important; }
}

/* ── Bioritm / Numerologie: formulare pe mobil ──────────── */
@media (max-width: 600px) {
  .bioritem-inputs, .numerologie-inputs,
  .natal-form, .tarot-form { gap: 0.6rem; }
  .horo-input, .birth-input { font-size: 0.9rem; padding: 10px 12px; }
  .btn-horo, .btn-natal     { padding: 11px 20px; font-size: 0.85rem; }
}

/* ── Tableta (768px – 1024px) ────────────────────────────── */
@media (min-width: 769px) and (max-width: 1024px) {
  .nav-logo-img { height: 29px; }
  .home-layout  {
    grid-template-columns: 1fr;
    grid-template-areas: "center" "left" "right";
    max-width: 680px;
    padding: 32px 20px 48px;
  }
  .home-sidebar { padding-top: 0; }
  .dhs-section  { max-width: 100%; }
}

