/* style.css — שריים: שמי-לילה עמוקים + תכלת זוהרת (השראה: timemator.com) */
/* פלטה: פחם-ירוק #2C3531 · טורקיז עמוק #116466 · חול #D9B08C · אפרסק #FFCB9A · מנטה #D1E8E2 */
:root {
  --night-900: #141a18;
  --night-800: #1b2320;
  --night-700: #222b28;
  --night-600: #2C3531;
  --cyan-glow: #3fd0c9;
  --cyan-400: #2ea8a5;
  --cyan-300: #6fc7c0;
  --ice-100: #e9f4f1;
  --ice-300: #D1E8E2;
  --blue-500: #116466;
  --amber: #FFCB9A;
  --sand: #D9B08C;
  --text: rgba(224, 238, 234, 0.92);
  --text-soft: rgba(209, 232, 226, 0.6);
  --line: rgba(209, 232, 226, 0.14);
  --line-strong: rgba(209, 232, 226, 0.28);
  --glass: linear-gradient(180deg, rgba(209, 232, 226, 0.06), rgba(209, 232, 226, 0.02));
  --glass-solid: rgba(23, 41, 38, 0.55);
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.6);
  --glow-cyan: 0 0 26px rgba(63, 208, 201, 0.25);
  --radius: 20px;
  font-size: 16px;
}
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; background: var(--night-800); }
body {
  font-family: 'Assistant', 'Heebo', sans-serif;
  font-weight: 300;
  letter-spacing: 0.2px;
  color: var(--text);
  background:
    radial-gradient(1100px 700px at 75% -12%, rgba(17, 100, 102, 0.5), transparent 60%),
    radial-gradient(800px 560px at 12% 8%, rgba(63, 208, 201, 0.09), transparent 60%),
    radial-gradient(900px 700px at 50% 115%, rgba(17, 100, 102, 0.35), transparent 62%),
    linear-gradient(180deg, var(--night-800) 0%, var(--night-700) 50%, var(--night-600) 100%);
  background-attachment: fixed;
  min-height: 100vh;
  line-height: 1.7;
}
h1, h2, h3 { font-family: 'Assistant', 'Heebo', sans-serif; font-weight: 200; letter-spacing: 1px; color: #fff; }
::selection { background: rgba(63, 208, 201, 0.35); }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--night-800); }
::-webkit-scrollbar-thumb { background: rgba(209, 232, 226, 0.22); border-radius: 99px; }

/* ---------- שמי כוכבים מנצנצים ---------- */
.stars-bg, .stars-bg::before, .stars-bg::after {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-repeat: repeat; content: '';
}
.stars-bg {
  background-image:
    radial-gradient(1.6px 1.6px at 22px 34px, rgba(255,255,255,.9) 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 143px 87px, rgba(209,232,226,.8) 50%, transparent 51%),
    radial-gradient(1px 1px at 268px 156px, rgba(255,255,255,.6) 50%, transparent 51%),
    radial-gradient(1.4px 1.4px at 331px 51px, rgba(63,208,201,.75) 50%, transparent 51%),
    radial-gradient(1px 1px at 87px 203px, rgba(255,255,255,.55) 50%, transparent 51%),
    radial-gradient(1.8px 1.8px at 209px 244px, rgba(209,232,226,.85) 50%, transparent 51%);
  background-size: 380px 290px;
  animation: twinkle 5.5s ease-in-out infinite alternate, drift-a 240s linear infinite;
}
.stars-bg::before {
  display: block;
  background-image:
    radial-gradient(1.1px 1.1px at 64px 118px, rgba(255,255,255,.7) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 187px 33px, rgba(209,232,226,.75) 50%, transparent 51%),
    radial-gradient(1px 1px at 301px 209px, rgba(255,255,255,.5) 50%, transparent 51%),
    radial-gradient(1.3px 1.3px at 116px 274px, rgba(63,208,201,.6) 50%, transparent 51%);
  background-size: 420px 330px;
  animation: twinkle 7.5s ease-in-out 1.8s infinite alternate, drift-b 320s linear infinite;
}
.stars-bg::after {
  display: block;
  background-image:
    radial-gradient(2px 2px at 250px 120px, rgba(255,255,255,.85) 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 45px 60px, rgba(209,232,226,.6) 50%, transparent 51%),
    radial-gradient(1.4px 1.4px at 350px 280px, rgba(255,203,154,.55) 50%, transparent 51%);
  background-size: 520px 400px;
  animation: twinkle 9s ease-in-out 3.5s infinite alternate, drift-c 400s linear infinite;
}
@keyframes twinkle { 0% { opacity: .45; } 100% { opacity: 1; } }
/* סחיפה איטית של שכבות הכוכבים — הגודל = גודל האריח, כך שהלולאה חלקה */
@keyframes drift-a { to { background-position: 380px 290px; } }
@keyframes drift-b { to { background-position: -420px 330px; } }
@keyframes drift-c { to { background-position: 520px -400px; } }

/* ---------- ערפילית חיה (aurora) ---------- */
.aurora { position: fixed; inset: -22%; z-index: 0; pointer-events: none; filter: blur(64px); opacity: .55; }
.aurora::before, .aurora::after {
  content: ''; position: absolute; border-radius: 50%;
  will-change: transform;
}
.aurora::before {
  width: 58vw; height: 56vh; top: 6%; right: 2%;
  background: radial-gradient(closest-side, rgba(17, 100, 102, 0.55), transparent 72%);
  animation: drift1 44s ease-in-out infinite alternate;
}
.aurora::after {
  width: 52vw; height: 52vh; bottom: -4%; left: 8%;
  background: radial-gradient(closest-side, rgba(63, 208, 201, 0.17), transparent 72%);
  animation: drift2 58s ease-in-out infinite alternate;
}
@keyframes drift1 { from { transform: translate(0, 0) scale(1); } to { transform: translate(-16vw, 13vh) scale(1.28); } }
@keyframes drift2 { from { transform: translate(0, 0) scale(1.12); } to { transform: translate(15vw, -11vh) scale(0.88); } }

/* ---------- כוכבים נופלים ---------- */
.shooting-star {
  position: fixed; z-index: 0; pointer-events: none;
  width: 150px; height: 2px; border-radius: 99px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(209, 232, 226, 0.85), #ffffff);
  filter: drop-shadow(0 0 6px rgba(209, 232, 226, 0.9));
  opacity: 0;
  animation: shoot 1.15s ease-out forwards;
}
@keyframes shoot {
  0% { transform: rotate(var(--ang)) translateX(0); opacity: 0; }
  10% { opacity: 1; }
  100% { transform: rotate(var(--ang)) translateX(var(--dist)); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .stars-bg, .stars-bg::before, .stars-bg::after, .aurora::before, .aurora::after { animation: none; }
  .shooting-star { display: none; }
}

/* ---------- כותרת עליונה ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px clamp(14px, 4vw, 40px);
  background: rgba(22, 30, 27, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.logo { display: flex; align-items: center; }
/* האמבלמה — מקדש, קשת המזלות, ירח וענפי זית */
/* הלוגו — "שריים" לבן עדין עם נגיעות זהב בהיר */
.logo-emblem {
  height: 68px; width: auto; display: block;
  filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.16)) drop-shadow(0 0 22px rgba(238, 217, 163, 0.14));
}
.logo-emblem .spark { animation: spark-pulse 3.4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.logo-emblem .spark.s2 { animation-delay: 1.7s; }
@keyframes spark-pulse {
  0%, 100% { opacity: 0.45; transform: scale(0.85); }
  50% { opacity: 1; transform: scale(1.08); }
}
.nav { display: flex; gap: 6px; flex-wrap: wrap; }
.nav-btn {
  border: 1px solid transparent; background: transparent; color: var(--text-soft);
  font-family: inherit; font-size: 14.5px; font-weight: 600; padding: 9px 15px;
  border-radius: 999px; cursor: pointer; transition: all .18s;
  display: flex; align-items: center; gap: 7px;
}
.nb-short { display: none; }
.nav-btn:active { transform: scale(.96); }
.nav-btn:hover { background: rgba(63, 208, 201, 0.08); color: var(--ice-300); border-color: var(--line); }
.nav-btn.active {
  background: linear-gradient(135deg, #3fd0c9, #116466);
  color: var(--night-800); font-weight: 800;
  box-shadow: var(--glow-cyan);
}

/* ---------- מבנה ---------- */
main { max-width: 1080px; margin: 0 auto; padding: 26px clamp(12px, 3vw, 28px) 60px; position: relative; z-index: 1; }
.tab { display: none; animation: fadeUp .4s ease; }
.tab.active { display: block; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.hero { text-align: center; padding: 34px 10px 26px; }
.hero h1, .hero h2 {
  font-size: clamp(28px, 5vw, 46px); font-weight: 200; letter-spacing: 3px; margin-bottom: 12px;
  background: linear-gradient(115deg, #ffffff 15%, var(--ice-300) 45%, var(--cyan-glow) 75%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 22px rgba(63, 208, 201, 0.25));
}
.hero p { color: var(--text-soft); max-width: 640px; margin: 0 auto; font-size: 16.5px; }

.card {
  background: var(--glass);
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: clamp(16px, 3vw, 28px); margin: 18px 0;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.card h3 { color: var(--ice-300); margin-bottom: 14px; font-size: 20px; }
.center { text-align: center; }
.note { color: var(--text-soft); font-size: 14px; }

/* ---------- טפסים ---------- */
.form-card { max-width: 640px; margin-inline: auto; }
.bform-title { color: var(--ice-300); margin-bottom: 10px; font-family: 'Heebo'; font-size: 17px; }
.frow { display: flex; gap: 12px; margin-bottom: 12px; }
.frow.three > label { flex: 1; }
.frow > label { display: flex; flex-direction: column; gap: 5px; font-size: 13.5px; font-weight: 600; color: var(--text-soft); flex: 1; }
.frow input[type="text"], .frow select {
  font-family: inherit; font-size: 16px; color: var(--ice-100); /* 16px = בלי זום אוטומטי ב-iOS */
  padding: 10px 12px; border: 1.5px solid var(--line-strong); border-radius: 12px;
  background-color: rgba(23, 38, 35, 0.65); outline: none; transition: border .15s, box-shadow .15s; width: 100%;
}
.frow select {
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23D1E8E2' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: left 12px center; background-size: 12px 8px;
  padding-left: 32px;
}
.frow select option { background: var(--night-700); color: var(--ice-100); }
.frow input:focus, .frow select:focus {
  border-color: var(--cyan-glow);
  box-shadow: 0 0 0 3px rgba(63, 208, 201, 0.18), 0 0 18px rgba(63, 208, 201, 0.15);
}
.frow input::placeholder { color: rgba(209, 232, 226, 0.35); }
.frow select:disabled { opacity: .35; }
label.chk { flex-direction: row; align-items: center; gap: 8px; justify-content: flex-start; padding-top: 20px; white-space: nowrap; }
label.chk input { accent-color: var(--cyan-400); width: 17px; height: 17px; }
.ferr { color: #FFCB9A; font-size: 13.5px; min-height: 18px; font-weight: 600; }

.btn {
  font-family: inherit; font-weight: 800; font-size: 16.5px; cursor: pointer;
  border: none; border-radius: 999px; padding: 13px 36px; transition: transform .15s, box-shadow .2s, filter .2s;
}
.btn:active, .sign-chip:active, .sign-card:active { transform: scale(.96); }
.btn.primary {
  display: block; margin: 6px auto 0;
  background: linear-gradient(135deg, var(--cyan-glow) 0%, var(--blue-500) 100%);
  color: var(--night-800);
  box-shadow: 0 10px 34px -8px rgba(63, 208, 201, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.btn.primary:hover { transform: translateY(-2px); filter: brightness(1.08); box-shadow: 0 16px 44px -8px rgba(63, 208, 201, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.5); }
.btn.ghost { background: rgba(63, 208, 201, 0.08); color: var(--ice-300); font-size: 14px; padding: 9px 22px; border: 1px solid var(--line-strong); font-weight: 600; }
.btn.ghost:hover { background: rgba(63, 208, 201, 0.16); box-shadow: var(--glow-cyan); }

.syn-forms { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 760px) { .syn-forms { grid-template-columns: 1fr; } }

/* ---------- תוצאת מפה ---------- */
.chart-head { text-align: center; padding: 26px 0 6px; }
.chart-head h2 { font-size: clamp(24px, 4vw, 34px); color: #fff; text-shadow: 0 0 24px rgba(63, 208, 201, 0.3); }
.birth-line { color: var(--text-soft); margin: 6px 0 14px; }
.big3 { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 14px; }
.big3-chip {
  display: flex; align-items: center; gap: 10px;
  background: var(--glass-solid); border: 1px solid var(--line-strong);
  border-radius: 16px; padding: 10px 18px; text-align: right;
  box-shadow: var(--shadow);
}
.b3-glyph { font-size: 24px; color: var(--cyan-glow); text-shadow: 0 0 12px rgba(63, 208, 201, 0.6); }
.big3-chip small { display: block; color: var(--text-soft); font-size: 12px; }
.big3-chip b { font-size: 17px; color: #fff; }
.print-btn { margin: 4px auto 0; display: inline-block; }

.wheel-box { max-width: 660px; margin: 14px auto; }
.wheel-box svg { width: 100%; height: auto; display: block; filter: drop-shadow(0 0 44px rgba(63, 208, 201, 0.16)) drop-shadow(0 18px 40px rgba(0, 0, 0, 0.45)); }
.legend { display: flex; gap: 18px; justify-content: center; color: var(--text-soft); font-size: 13.5px; flex-wrap: wrap; }
.legend i { display: inline-block; width: 14px; height: 3px; border-radius: 2px; vertical-align: middle; margin-inline-end: 5px; }

.interp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.interp-card { background: rgba(23, 38, 35, 0.5); border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.interp-head { display: flex; align-items: center; gap: 9px; margin-bottom: 7px; color: var(--ice-300); }
.interp-head b { color: var(--ice-300); }
.ig { font-size: 21px; text-shadow: 0 0 10px rgba(63, 208, 201, 0.5); }
.interp-card p { font-size: 14.5px; color: var(--text); }
.hline { display: block; margin-top: 8px; font-size: 13px; color: var(--text-soft); }

.ptable { width: 100%; border-collapse: collapse; }
.ptable td, .ptable th { padding: 9px 10px; border-bottom: 1px solid rgba(209, 232, 226, 0.09); font-size: 15px; text-align: right; color: var(--text); }
.ptable th { color: var(--text-soft); font-size: 13px; }
.pg { font-size: 18px; margin-inline-end: 4px; }
.retro { color: var(--amber); font-weight: 700; font-size: 13px; }
.direct { color: #8fd0b8; font-size: 13px; }

.houses-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.house-cell { background: rgba(23, 38, 35, 0.5); border: 1px solid var(--line); border-radius: 12px; padding: 12px; font-size: 13.5px; }
.house-cell b { color: var(--ice-300); margin-inline-end: 8px; }
.house-cell span { color: var(--text-soft); }
.house-cell p { margin-top: 4px; color: var(--text-soft); }

.asp-list { display: flex; flex-direction: column; gap: 8px; }
.asp-row {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  background: rgba(23, 38, 35, 0.5); border: 1px solid var(--line);
  border-radius: 12px; padding: 9px 14px; font-size: 14.5px;
  border-inline-start: 4px solid var(--cyan-400);
}
.asp-row.nature-0 { border-inline-start-color: var(--amber); }
.asp-row.nature-1 { border-inline-start-color: var(--cyan-400); }
.asp-row.nature-2 { border-inline-start-color: #D9B08C; }
.asp-pl { font-weight: 700; white-space: nowrap; color: var(--ice-100); }
.asp-sym { font-size: 18px; color: var(--cyan-glow); }
.asp-txt { color: var(--text-soft); flex: 1; min-width: 200px; }

.bal-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
@media (max-width: 700px) { .bal-wrap { grid-template-columns: 1fr; } }
.bal-col h4 { color: var(--ice-300); margin-bottom: 10px; }
.bal-row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; font-size: 14.5px; }
.bal-row > span { width: 68px; }
.bal-row b { width: 42px; text-align: left; color: var(--text-soft); font-size: 13px; }
.bar { flex: 1; height: 10px; background: rgba(23, 38, 35, 0.8); border: 1px solid var(--line); border-radius: 99px; overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--cyan-400), var(--blue-500)); transition: width .6s ease; box-shadow: 0 0 10px rgba(63, 208, 201, 0.4); }
.bar.big { height: 14px; flex: none; width: 100%; }

/* ---------- סינסטריה ---------- */
.syn-score { display: flex; align-items: center; justify-content: center; gap: clamp(16px, 4vw, 44px); flex-wrap: wrap; margin: 10px 0 6px; }
.score-ring { width: clamp(160px, 26vw, 210px); filter: drop-shadow(0 0 26px rgba(63, 208, 201, 0.25)); }
.syn-verdict { max-width: 420px; text-align: right; }
.syn-verdict h3 { color: var(--ice-300); font-size: 24px; margin-bottom: 6px; text-shadow: 0 0 16px rgba(63, 208, 201, 0.35); }
.syn-verdict p { color: var(--text-soft); }
.cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin: 14px 0; }
.cat-card { background: var(--glass); border: 1px solid var(--line); border-radius: 14px; padding: 14px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 8px; }
.cat-card b { color: var(--ice-100); }
.cat-icon { font-size: 22px; }
.cat-pct { color: var(--cyan-glow); font-weight: 800; text-shadow: 0 0 12px rgba(63, 208, 201, 0.5); }

/* ---------- הורוסקופ יומי ---------- */
.sky-strip { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 12px; }
.sky-strip span {
  background: var(--glass-solid); border: 1px solid var(--line-strong);
  padding: 7px 15px; border-radius: 999px; font-size: 13.5px; color: var(--text);
  box-shadow: var(--shadow);
}
.retro-badge { color: #FFCB9A !important; background: rgba(255, 203, 154, 0.12) !important; border-color: rgba(255, 203, 154, 0.4) !important; font-weight: 600; }
.picker-row { display: flex; gap: 7px; flex-wrap: wrap; justify-content: center; margin: 6px 0 18px; align-items: center; }
.picker-label { color: var(--text-soft); font-size: 14px; font-weight: 600; }
.sign-chip {
  font-family: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer;
  background: rgba(23, 38, 35, 0.6); color: var(--text-soft); border: 1.5px solid var(--line);
  border-radius: 999px; padding: 6px 13px; transition: all .15s;
}
.sign-chip:hover { border-color: var(--cyan-400); color: var(--ice-300); box-shadow: 0 0 14px rgba(63, 208, 201, 0.2); }
.sign-chip.active { background: linear-gradient(135deg, var(--cyan-glow), var(--blue-500)); color: var(--night-800); border-color: transparent; font-weight: 800; box-shadow: var(--glow-cyan); }
.daily-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(295px, 1fr)); gap: 14px; }
.daily-card { background: var(--glass); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); font-size: 14.5px; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.daily-card.mine {
  border: 1px solid rgba(63, 208, 201, 0.55); grid-column: 1 / -1;
  background: linear-gradient(180deg, rgba(63, 208, 201, 0.10), rgba(209, 232, 226, 0.03));
  box-shadow: var(--glow-cyan), var(--shadow);
}
.daily-card p { margin-bottom: 8px; color: var(--text); }
.dc-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.dc-glyph { font-size: 30px; color: var(--cyan-glow); text-shadow: 0 0 14px rgba(63, 208, 201, 0.55); }
.dc-head b { font-size: 17px; display: block; line-height: 1.1; color: #fff; }
.dc-head small { color: var(--text-soft); }
.dc-stars { margin-inline-start: auto; color: #FFCB9A; letter-spacing: 2px; font-size: 15px; text-shadow: 0 0 10px rgba(255, 203, 154, 0.5); }
.dc-tip { color: var(--ice-300) !important; background: rgba(63, 208, 201, 0.07); border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; font-size: 13.5px; }
.dc-lucky { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; color: var(--text-soft); margin-top: 8px; }
.dc-lucky b { color: var(--ice-100); }

/* ---------- השמיים עכשיו ---------- */
.sky-grid { display: grid; grid-template-columns: minmax(260px, 340px) 1fr; gap: 16px; align-items: start; }
@media (max-width: 820px) { .sky-grid { grid-template-columns: 1fr; } }
.moon-card { text-align: center; }
.moon-emoji { font-size: 74px; line-height: 1.2; filter: drop-shadow(0 0 30px rgba(209, 232, 226, 0.5)); }
.moon-meta { display: flex; gap: 10px; justify-content: center; margin: 10px 0; flex-wrap: wrap; }
.moon-meta span { background: rgba(23, 38, 35, 0.6); border: 1px solid var(--line-strong); border-radius: 999px; padding: 5px 13px; font-size: 13.5px; color: var(--text); }
.moon-next { display: flex; flex-direction: column; gap: 4px; font-size: 13.5px; color: var(--text-soft); margin-top: 8px; }
.retro-list { display: flex; flex-direction: column; gap: 10px; }
.retro-item { background: rgba(255, 203, 154, 0.08); border: 1px solid rgba(255, 203, 154, 0.32); border-radius: 12px; padding: 11px 15px; font-size: 14.5px; color: var(--text); }
.retro-item b { color: #FFCB9A; }

/* ---------- מדריך המזלות ---------- */
.signs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-bottom: 20px; }
.sign-card {
  font-family: inherit; cursor: pointer;
  background: var(--glass); border: 1.5px solid var(--line);
  border-radius: var(--radius); padding: 18px 10px; display: flex; flex-direction: column; align-items: center; gap: 5px;
  transition: transform .18s, box-shadow .18s, border-color .18s; box-shadow: var(--shadow);
}
.sign-card:hover { transform: translateY(-4px); border-color: rgba(63, 208, 201, 0.5); box-shadow: var(--glow-cyan), var(--shadow); }
.sign-card b { font-size: 17px; color: #fff; }
.sign-card small { color: var(--text-soft); font-size: 12px; }
.sc-glyph { font-size: 34px; text-shadow: 0 0 16px currentColor; }
.sc-glyph.big { font-size: 54px; }
.el-0 { color: #FFCB9A; } .el-1 { color: #D9B08C; } .el-2 { color: #3fd0c9; } .el-3 { color: #9cc7d4; }
.el-chip { font-size: 11.5px; padding: 2px 10px; border-radius: 99px; background: rgba(23, 38, 35, 0.6); border: 1px solid var(--line); }
.sign-detail-card .sd-head { display: flex; align-items: center; gap: 16px; margin-bottom: 12px; }
.sign-detail-card h2 { color: #fff; text-shadow: 0 0 20px rgba(63, 208, 201, 0.35); }
.sd-head p { color: var(--text-soft); font-size: 14.5px; }
.sd-traits { font-size: 16px; margin-bottom: 16px; color: var(--text); }
.sd-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; margin-bottom: 12px; }
.sd-cols h4 { color: var(--ice-300); margin-bottom: 7px; font-size: 15px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { background: rgba(23, 38, 35, 0.6); border: 1px solid var(--line-strong); border-radius: 999px; padding: 4px 12px; font-size: 13px; color: var(--text); }
.chip.good { background: rgba(143, 208, 184, 0.1); border-color: rgba(143, 208, 184, 0.35); color: #8fd0b8; }
.chip.warn { background: rgba(255, 203, 154, 0.1); border-color: rgba(255, 203, 154, 0.35); color: #FFCB9A; }

/* ---------- התחזית האישית ---------- */
.me-intro { color: var(--text); margin-bottom: 14px; font-size: 15px; }
.me-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.me-hello b { font-size: 19px; color: #fff; display: block; }
.me-hello span { color: var(--text-soft); font-size: 14px; }
.me-stars { color: #FFCB9A; letter-spacing: 4px; font-size: 19px; margin-bottom: 12px; text-shadow: 0 0 12px rgba(255, 203, 154, 0.5); }
.tl-row {
  display: flex; align-items: baseline; gap: 12px;
  padding: 9px 12px; border-radius: 12px; margin-bottom: 7px;
  background: rgba(23, 38, 35, 0.5); border: 1px solid var(--line);
  border-inline-start: 4px solid var(--cyan-400); font-size: 14.5px;
}
.tl-row.nature-0 { border-inline-start-color: var(--amber); }
.tl-row.nature-2 { border-inline-start-color: var(--sand); }
.tl-date {
  flex: none; min-width: 64px; text-align: center;
  background: rgba(63, 208, 201, 0.1); border: 1px solid var(--line-strong);
  border-radius: 999px; padding: 2px 10px; font-size: 12.5px; color: var(--ice-300); font-weight: 600;
}
.tl-txt { color: var(--text); }

/* ---------- שעות פלנטריות ---------- */
.ph-current { display: flex; align-items: center; gap: 10px; font-size: 15.5px; color: var(--ice-100); margin-bottom: 12px; }
.ph-glyph { font-size: 18px; }
.ph-glyph.big { font-size: 26px; text-shadow: 0 0 12px currentColor; }
.ph-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 4px; }
@media (max-width: 700px) { .ph-grid { grid-template-columns: repeat(6, 1fr); } }
.ph-cell {
  display: flex; flex-direction: column; align-items: center; gap: 1px;
  background: rgba(23, 38, 35, 0.5); border: 1px solid var(--line); border-radius: 9px;
  padding: 5px 2px; font-size: 10.5px; color: var(--text-soft);
}
.ph-cell.ph-night { background: rgba(10, 16, 14, 0.65); }
.ph-cell.ph-now { border-color: var(--cyan-glow); box-shadow: 0 0 12px rgba(63, 208, 201, 0.35); }

/* ---------- ליקויים ---------- */
.eclipse-list { display: flex; flex-direction: column; gap: 12px; }
.eclipse-item {
  display: flex; gap: 14px; align-items: flex-start;
  background: rgba(23, 38, 35, 0.5); border: 1px solid var(--line); border-radius: 14px; padding: 14px;
}
.ec-ico { font-size: 30px; filter: drop-shadow(0 0 12px rgba(255, 203, 154, 0.4)); }
.eclipse-item b { color: var(--ice-100); display: block; }
.eclipse-item span { color: var(--amber); font-size: 13.5px; }
.eclipse-item p { color: var(--text-soft); font-size: 13.5px; margin-top: 4px; }

/* ---------- אישי: ירח בבית, גלגל-בי, שבוע, שנה ---------- */
.moon-house-line { color: var(--ice-300); font-size: 14.5px; margin-bottom: 12px; }
.biwheel-details { margin-top: 14px; }
.biwheel-details summary { cursor: pointer; color: var(--cyan-300); font-size: 14.5px; font-weight: 600; }
.biwheel-details summary:hover { color: var(--cyan-glow); }
.week-strip { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.wk-cell {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  background: rgba(23, 38, 35, 0.5); border: 1px solid var(--line); border-radius: 12px;
  padding: 9px 2px; font-size: 11px; color: var(--text-soft);
}
.wk-cell b { color: var(--ice-100); font-size: 13px; }
.wk-cell span { color: #FFCB9A; font-size: 10px; letter-spacing: 1px; }
.wk-cell.mood-hi { border-color: rgba(63, 208, 201, 0.5); }
.wk-cell.mood-lo { border-color: rgba(255, 203, 154, 0.4); }
.wk-cell.wk-today { box-shadow: 0 0 12px rgba(63, 208, 201, 0.3); }
.yr-month { color: var(--sand); font-weight: 700; font-size: 14px; margin: 12px 0 6px; }
#me-year .tl-row { margin-bottom: 6px; }

/* ---------- יומן הירח ---------- */
#journal-text {
  width: 100%; font-family: inherit; font-size: 16px; color: var(--ice-100);
  padding: 12px 14px; border: 1.5px solid var(--line-strong); border-radius: 14px;
  background: rgba(23, 38, 35, 0.65); outline: none; resize: vertical; margin-bottom: 10px;
}
#journal-text:focus { border-color: var(--cyan-glow); box-shadow: 0 0 0 3px rgba(63, 208, 201, 0.15); }
#journal-text::placeholder { color: rgba(209, 232, 226, 0.35); }
#journal-list { margin-top: 14px; display: flex; flex-direction: column; gap: 10px; }
.journal-entry { background: rgba(23, 38, 35, 0.5); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.je-head { display: flex; justify-content: space-between; align-items: center; color: var(--text-soft); font-size: 12.5px; margin-bottom: 6px; }
.je-del { background: none; border: none; color: var(--text-soft); cursor: pointer; font-size: 13px; padding: 2px 6px; }
.je-del:hover { color: #FFCB9A; }
.journal-entry p { font-size: 14.5px; color: var(--text); white-space: pre-wrap; }

/* ---------- הספרייה הקוסמית ---------- */
.lib-card { max-width: 640px; margin-inline: auto; }
.lib-list { display: flex; flex-direction: column; gap: 10px; }
.lib-person {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  background: rgba(23, 38, 35, 0.5); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px;
}
.lib-person b { color: var(--ice-100); }
.lib-person small { color: var(--text-soft); flex: 1; }
.lib-actions { display: flex; gap: 6px; }

/* ---------- שיחה עם הכוכבים ---------- */
.chat-log {
  display: flex; flex-direction: column; gap: 10px;
  max-height: 380px; overflow-y: auto; padding: 6px 2px; margin-bottom: 12px;
}
.chat-msg {
  max-width: 86%; padding: 11px 15px; border-radius: 16px;
  font-size: 14.5px; line-height: 1.65; white-space: pre-wrap;
}
.chat-msg.model {
  align-self: flex-start;
  background: rgba(23, 38, 35, 0.65); border: 1px solid var(--line);
  border-start-start-radius: 4px; color: var(--text);
}
.chat-msg.user {
  align-self: flex-end;
  background: linear-gradient(135deg, rgba(63, 208, 201, 0.22), rgba(17, 100, 102, 0.3));
  border: 1px solid rgba(63, 208, 201, 0.35);
  border-start-end-radius: 4px; color: var(--ice-100);
}
.chat-msg.typing { color: var(--text-soft); animation: typing-pulse 1.2s ease-in-out infinite; }
.chat-msg.err { border-color: rgba(255, 203, 154, 0.4); color: #FFCB9A; }
@keyframes typing-pulse { 0%, 100% { opacity: .5; } 50% { opacity: 1; } }
.chat-row { display: flex; gap: 8px; }
.chat-row input {
  flex: 1; font-family: inherit; font-size: 16px; color: var(--ice-100);
  padding: 11px 14px; border: 1.5px solid var(--line-strong); border-radius: 999px;
  background: rgba(23, 38, 35, 0.65); outline: none; transition: border .15s, box-shadow .15s;
}
.chat-row input:focus { border-color: var(--cyan-glow); box-shadow: 0 0 0 3px rgba(63, 208, 201, 0.15); }
.chat-row input::placeholder { color: rgba(209, 232, 226, 0.35); }
.btn.chat-send { padding: 11px 20px; margin: 0; font-size: 18px; }
.chat-chips { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 10px; }

/* ---------- שיתוף, נומרולוגיה ויומן ירח ---------- */
.head-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 4px; }
.toast {
  position: fixed; bottom: 88px; left: 50%; transform: translateX(-50%);
  background: var(--glass-solid); border: 1px solid var(--line-strong); color: var(--ice-100);
  padding: 10px 24px; border-radius: 999px; z-index: 60; font-size: 14.5px;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--glow-cyan), var(--shadow);
  animation: toast 2.6s ease forwards; max-width: 90vw; text-align: center;
}
@keyframes toast {
  0% { opacity: 0; transform: translate(-50%, 12px); }
  12%, 82% { opacity: 1; transform: translate(-50%, 0); }
  100% { opacity: 0; transform: translate(-50%, -6px); }
}
.num-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.num-card { background: rgba(23, 38, 35, 0.5); border: 1px solid var(--line); border-radius: 14px; padding: 16px; text-align: center; }
.num-big {
  display: block; font-size: 44px; font-weight: 200; line-height: 1.1;
  background: linear-gradient(160deg, var(--ice-300), var(--sand));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 14px rgba(217, 176, 140, 0.3));
}
.num-card b { display: block; color: var(--ice-300); margin: 6px 0; font-size: 14.5px; }
.num-card p { font-size: 13.5px; color: var(--text-soft); }
.mooncal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; margin-top: 8px; }
.mc-h { text-align: center; font-size: 12px; color: var(--text-soft); font-weight: 600; }
.mc-cell {
  background: rgba(23, 38, 35, 0.5); border: 1px solid var(--line); border-radius: 10px;
  padding: 5px 2px; text-align: center; font-size: 11px; color: var(--text-soft); min-height: 58px;
}
.mc-cell b { display: block; font-size: 12px; color: var(--ice-100); font-weight: 600; }
.mc-emoji { font-size: 15px; display: block; line-height: 1.3; }
.mc-cell small { display: block; font-size: 9.5px; color: var(--amber); white-space: nowrap; }
.mc-today { border-color: var(--cyan-glow); box-shadow: 0 0 14px rgba(63, 208, 201, 0.3); background: rgba(63, 208, 201, 0.08); }
.mc-event { border-color: rgba(255, 203, 154, 0.55); }
.mc-legend { margin-top: 10px; }

/* ---------- פינת החוף ---------- */
.beach-btn {
  position: fixed; bottom: 18px; left: 18px; z-index: 40;
  width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid var(--line-strong); cursor: pointer;
  background: var(--glass-solid); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font-size: 24px; line-height: 1;
  box-shadow: var(--shadow); transition: transform .15s, box-shadow .2s;
}
.beach-btn:hover { transform: translateY(-3px) scale(1.06); box-shadow: var(--glow-cyan), var(--shadow); }
@media (max-width: 760px) { .beach-btn { bottom: calc(84px + env(safe-area-inset-bottom)); left: 12px; width: 46px; height: 46px; font-size: 21px; } }
.beach-overlay { position: fixed; inset: 0; z-index: 100; background: #10181c; }
.beach-overlay canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; cursor: crosshair; }
.beach-top {
  position: absolute; top: 0; left: 0; right: 0; z-index: 2;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 12px clamp(10px, 3vw, 24px); flex-wrap: wrap;
  background: linear-gradient(180deg, rgba(16, 24, 28, 0.85), transparent);
  pointer-events: none;
}
.beach-top > * { pointer-events: auto; }
.beach-modes { display: flex; gap: 8px; }
.beach-chip {
  font-family: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
  background: rgba(23, 38, 35, 0.7); color: var(--text-soft); border: 1.5px solid var(--line);
  border-radius: 999px; padding: 8px 16px; transition: all .15s;
}
.beach-chip.active { background: linear-gradient(135deg, #3fd0c9, #116466); color: var(--night-800); border-color: transparent; box-shadow: var(--glow-cyan); }
.beach-score { color: var(--text-soft); font-size: 14.5px; }
.beach-score b { color: var(--ice-300); }
.beach-close {
  font-family: inherit; width: 40px; height: 40px; border-radius: 50%; cursor: pointer;
  background: rgba(23, 38, 35, 0.7); color: var(--ice-100); border: 1px solid var(--line-strong); font-size: 16px;
}
.beach-close:hover { box-shadow: var(--glow-cyan); }
@media print { .beach-btn, .beach-overlay { display: none !important; } }

/* ---------- החתול הקוסמי ---------- */
.sj-cat {
  position: absolute; bottom: -4px; left: 20px;
  width: 64px; height: 44px; z-index: 25;
  pointer-events: none; will-change: left;
}
.nav .sj-cat { top: -41px; bottom: auto; }
.sj-cat .flip { position: relative; width: 100%; height: 100%; }
.sj-cat.dir-left .flip { transform: scaleX(-1); }
.sj-cat svg { width: 100%; height: 100%; overflow: visible; display: block; filter: drop-shadow(0 0 8px rgba(63, 208, 201, 0.4)); }
.sj-cat svg * { transform-box: fill-box; }
.cat-part { fill: #D1E8E2; }
.cat-eye { fill: #1b2320; }
.cat-tongue { fill: #FFCB9A; opacity: 0; transform-origin: center top; }
.cat-tail { transform-origin: right bottom; animation: cat-tail 2.8s ease-in-out infinite; }
@keyframes cat-tail { 0%, 100% { transform: rotate(8deg); } 50% { transform: rotate(-12deg); } }
.leg { transform-origin: center top; }
.cat-head { transform-origin: left bottom; }

/* הליכה */
.s-walk .leg-fa, .s-walk .leg-bb { animation: leg-a .5s linear infinite; }
.s-walk .leg-fb, .s-walk .leg-ba { animation: leg-b .5s linear infinite; }
.s-walk svg { animation: cat-bob .5s ease-in-out infinite; }
@keyframes leg-a { 0%, 100% { transform: rotate(17deg); } 50% { transform: rotate(-17deg); } }
@keyframes leg-b { 0%, 100% { transform: rotate(-17deg); } 50% { transform: rotate(17deg); } }
@keyframes cat-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-1.5px); } }

/* ריצה */
.s-run .leg-fa, .s-run .leg-bb { animation: leg-a .22s linear infinite; }
.s-run .leg-fb, .s-run .leg-ba { animation: leg-b .22s linear infinite; }
.s-run svg { animation: cat-run-bob .22s ease-in-out infinite; }
.s-run .cat-tail { animation: cat-tail 1s ease-in-out infinite; }
@keyframes cat-run-bob { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-3px) rotate(-2deg); } }

/* ישיבה */
.s-sit svg { transform: translateY(3px) scaleY(0.9); transform-origin: center bottom; }
.s-sit .cat-tail { animation: cat-tail 4.5s ease-in-out infinite; }

/* ליקוק */
.s-groom svg { transform: translateY(3px) scaleY(0.93); transform-origin: center bottom; }
.s-groom .cat-head { animation: groom-head 1.3s ease-in-out infinite; }
.s-groom .leg-fa { transform: rotate(-38deg); }
.s-groom .cat-tongue { opacity: 1; animation: lick .55s ease-in-out infinite; }
@keyframes groom-head { 0%, 100% { transform: rotate(16deg); } 50% { transform: rotate(30deg); } }
@keyframes lick { 0%, 100% { transform: scaleY(0.35); } 50% { transform: scaleY(1); } }

/* משחק בכוכב */
.s-play .leg-fa { animation: cat-bat .38s ease-in-out infinite; }
.s-play svg { animation: cat-bob .76s ease-in-out infinite; }
@keyframes cat-bat { 0%, 100% { transform: rotate(12deg); } 50% { transform: rotate(-50deg); } }
.cat-toy {
  position: absolute; left: 44px; bottom: -2px;
  font-size: 13px; color: #FFCB9A; opacity: 0;
  text-shadow: 0 0 8px rgba(255, 203, 154, 0.8);
}
.s-play .cat-toy { animation: cat-toy 1.5s ease-in-out infinite; }
@keyframes cat-toy {
  0% { opacity: 0; transform: translate(0, 0) rotate(0deg); }
  12% { opacity: 1; }
  50% { transform: translate(-28px, -18px) rotate(200deg); opacity: 1; }
  85% { opacity: 1; }
  100% { opacity: 0; transform: translate(-46px, 0) rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) { .sj-cat { display: none; } }

/* ---------- פוטר ---------- */
.footer { text-align: center; padding: 26px 16px 34px; color: var(--text-soft); font-size: 13.5px; position: relative; z-index: 1; }

/* ---------- הדפסה: חוזרים לבהיר ---------- */
@media print {
  .topbar, .nav, .form-card, .print-btn, .footer, .stars-bg, .aurora, .shooting-star, .sj-cat, .picker-row { display: none !important; }
  html, body { background: #fff !important; }
  body, .card, .interp-card, .house-cell, .asp-row, .daily-card, .big3-chip { background: #fff !important; border-color: #c9dbe6 !important; box-shadow: none !important; backdrop-filter: none !important; }
  body, p, td, th, span, small, b, .asp-pl, .interp-card p, .note, .birth-line, .hline, .asp-txt, .house-cell p, .house-cell span { color: #10344d !important; text-shadow: none !important; }
  h1, h2, h3, h4, .card h3, .interp-head b, .big3-chip b { color: #063a5c !important; -webkit-text-fill-color: #063a5c; text-shadow: none !important; filter: none !important; }
  .card { break-inside: avoid; }
  .wheel-box svg { filter: none !important; }
}
/* ---------- מובייל: לוגו קומפקטי למעלה, טאב-בר קבוע למטה ---------- */
@media (max-width: 760px) {
  .topbar { position: static; justify-content: center; padding: 10px 14px 4px; background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; border-bottom: none; }
  .logo-emblem { height: 86px; }
  .nav {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 30;
    display: grid; grid-template-columns: repeat(6, 1fr); gap: 2px;
    background: rgba(18, 24, 22, 0.94);
    backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
    border-top: 1px solid var(--line-strong);
    padding: 7px 6px calc(7px + env(safe-area-inset-bottom));
    box-shadow: 0 -14px 34px rgba(0, 0, 0, 0.45);
  }
  .nav-btn {
    flex-direction: column; gap: 3px; padding: 6px 2px; border-radius: 13px;
    font-size: 10.5px; font-weight: 600; min-width: 0;
  }
  .nb-ico { font-size: 21px; line-height: 1; }
  .nb-full { display: none; }
  .nb-short { display: block; white-space: nowrap; }
  .nav-btn.active { box-shadow: 0 0 18px rgba(63, 208, 201, 0.35); }
  main { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
  .footer { padding-bottom: calc(90px + env(safe-area-inset-bottom)); }

  .hero { padding: 14px 8px 16px; }
  .hero h1, .hero h2 { font-size: clamp(23px, 6.4vw, 30px); }
  .hero p { font-size: 15px; }
  .frow { flex-wrap: wrap; }
  label.chk { padding-top: 0; }
  .btn.primary { width: 100%; }
  .card { padding: 16px 14px; }
  .syn-verdict { text-align: center; }
}
