@font-face { font-family: Vazirmatn; src: url(../fonts/Vazirmatn-ExtraLight.woff2) format('woff2'); font-weight: 200; font-display: swap; }
@font-face { font-family: Vazirmatn; src: url(../fonts/Vazirmatn-Light.woff2) format('woff2'); font-weight: 300; font-display: swap; }
@font-face { font-family: Vazirmatn; src: url(../fonts/Vazirmatn-Regular.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: Vazirmatn; src: url(../fonts/Vazirmatn-Medium.woff2) format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: Vazirmatn; src: url(../fonts/Vazirmatn-Bold.woff2) format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: Inter; src: url(../fonts/Inter-Variable.woff2) format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: Cormorant; src: url(../fonts/CormorantGaramond-SemiBold.woff2) format('woff2'); font-weight: 600; font-display: swap; }

:root {
  --sign: #ff4d6d;
  --ink: #eef2ff;
  --muted: rgba(214, 222, 255, .58);
  --line: rgba(190, 205, 255, .12);
  --glass: rgba(10, 14, 32, .46);
  --gold: #ffd27a;
  --sym: "Segoe UI Symbol", "Noto Sans Symbols 2", "Noto Sans Symbols", "DejaVu Sans", "Apple Symbols", sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: #02030a; color: var(--ink); overflow: hidden; }
body { font-family: Vazirmatn, Tahoma, sans-serif; font-weight: 400; -webkit-font-smoothing: antialiased; }
html[lang=en] body { font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif; }
html[lang=en] .hero h1 { font-family: Cormorant, Georgia, serif; font-weight: 600; font-size: 46px; letter-spacing: .01em; }
html[lang=en] .panel h2 { font-size: 11px; letter-spacing: .22em; }
html[lang=en] .clock { font-weight: 200; letter-spacing: -.01em; }
button { font: inherit; color: inherit; cursor: pointer; }

.sky { position: fixed; inset: 0; touch-action: none; }
.sky canvas { display: block; cursor: grab; }
.sky canvas:active { cursor: grabbing; }
#labels, .labels-layer { position: fixed !important; inset: 0; pointer-events: none; direction: ltr; }
.labels-layer > * { left: 0; top: 0; }
html[dir=rtl] .star-label, html[dir=rtl] .body-label { direction: rtl; }
.vignette { position: fixed; inset: 0; pointer-events: none;
  background: radial-gradient(120% 85% at 50% 42%, transparent 55%, rgba(1, 2, 8, .75) 100%),
              linear-gradient(to top, rgba(2, 3, 10, .85), transparent 26%); }

/* ── برچسب‌های صحنه ── */
.star-label { opacity: 0; transition: opacity 1.2s ease 1.6s; font-size: 11px; line-height: 1.25; color: rgba(235, 240, 255, .82);
  text-shadow: 0 0 8px #000, 0 0 2px #000; white-space: nowrap; padding-inline-start: 6px; }
.star-label.on { opacity: 1; }
.star-label b { display: block; font-weight: 500; font-size: 12px; color: #fff; }
.star-label span { font-family: system-ui, sans-serif; letter-spacing: .02em; opacity: .7; font-size: 10px; direction: ltr; display: block; }
.body-label { font-size: 11.5px; color: rgba(255, 244, 220, .9); text-shadow: 0 0 6px #000; white-space: nowrap; }
.body-label i { font-style: normal; font-family: var(--sym); margin-inline-end: 2px; }
.body-label.retro::after { content: ' ℞'; color: #ff9b8a; }
.body-label.moon { color: #dfe7ff; }
.ecl-label { font-family: var(--sym); font-size: 13px; color: rgba(255, 210, 122, .35); text-shadow: 0 0 6px #000; }

/* ── ساعت ── */
.top { position: fixed; top: 18px; left: 50%; transform: translateX(-50%); text-align: center; pointer-events: none; z-index: 3; }
.live { display: inline-flex; align-items: center; gap: 7px; font-size: 11.5px; letter-spacing: .08em; color: var(--muted);
  padding: 3px 11px; border: 1px solid var(--line); border-radius: 99px; background: rgba(8, 12, 28, .35); backdrop-filter: blur(6px); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--sign); box-shadow: 0 0 10px var(--sign); animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: .35; transform: scale(.75); } }
.clock { font-weight: 200; font-size: clamp(46px, 6.4vw, 92px); line-height: 1.05; letter-spacing: .02em; margin-top: 6px;
  font-variant-numeric: tabular-nums; text-shadow: 0 0 32px rgba(140, 170, 255, .35); direction: ltr; }
.clock em { font-style: normal; opacity: .38; margin: 0 .04em; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: .12; } }
.top-date { font-size: clamp(14px, 1.35vw, 18px); font-weight: 300; margin-top: 2px; color: #f3f5ff; }
.tz { font-size: 11.5px; color: var(--muted); margin-top: 3px; }

/* ── پنل‌ها ── */
.panel { position: fixed; top: 18px; bottom: 92px; width: 330px; padding: 16px 16px 18px; z-index: 4; overflow-y: auto; overscroll-behavior: contain;
  background: linear-gradient(180deg, rgba(14, 19, 42, .5), rgba(6, 9, 22, .42)); border: 1px solid var(--line); border-radius: 22px;
  backdrop-filter: blur(14px) saturate(130%); -webkit-backdrop-filter: blur(14px) saturate(130%);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .05);
  scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .15) transparent;
  animation: panelIn 1.4s cubic-bezier(.2, .8, .2, 1) both 1.2s; }
.panel-cal { inset-inline-start: 18px; }
.panel-sky { inset-inline-end: 18px; animation-delay: 1.5s; }
@keyframes panelIn { from { opacity: 0; transform: translateY(14px); } }
.panel h2 { margin: 2px 4px 12px; font-size: 13px; font-weight: 500; letter-spacing: .14em; color: var(--muted); }
.panel h2::before { content: ''; display: inline-block; width: 18px; height: 1px; background: var(--sign); vertical-align: middle; margin-inline-end: 8px; box-shadow: 0 0 8px var(--sign); }
.panel .close { display: none; }
.card { background: rgba(255, 255, 255, .035); border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; margin-bottom: 10px; }
.kicker { font-size: 11px; color: var(--muted); letter-spacing: .06em; margin-bottom: 4px; }
.line { font-size: 16.5px; font-weight: 500; }
.muted { color: var(--muted); font-size: 12.5px; }
.tiny { font-size: 11px; margin-top: 6px; line-height: 1.7; }
.latin { font-family: system-ui, -apple-system, "Segoe UI", sans-serif; text-align: left; letter-spacing: .01em; }
.arabic { font-family: "Noto Naskh Arabic", "Traditional Arabic", Vazirmatn, serif; font-size: 13.5px; }

.shamsi { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; align-items: center;
  background: linear-gradient(135deg, color-mix(in srgb, var(--sign) 16%, transparent), rgba(255, 255, 255, .03)); }
.shamsi .day { font-size: 54px; font-weight: 200; line-height: 1; min-width: 64px; text-align: center;
  text-shadow: 0 0 24px color-mix(in srgb, var(--sign) 60%, transparent); }
.shamsi .month { font-size: 20px; font-weight: 500; }
.shamsi .progress, .shamsi .tiny { grid-column: 1 / -1; }
.progress { height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .08); overflow: hidden; margin-top: 8px; }
.progress i { display: block; height: 100%; width: 0; border-radius: 4px; transition: width 1s linear;
  background: linear-gradient(90deg, var(--sign), #fff); box-shadow: 0 0 10px var(--sign); }

.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 10px; }
.grid > div { background: rgba(255, 255, 255, .03); border: 1px solid var(--line); border-radius: 12px; padding: 7px 10px; }
.grid span { display: block; font-size: 10.5px; color: var(--muted); }
.grid b { font-weight: 500; font-size: 14px; }
.grid b small { font-weight: 300; color: var(--muted); font-size: 11px; }
.tech b { font-size: 12.5px; }
#angles b { white-space: nowrap; font-size: 13px; }
.asp-h small { white-space: nowrap; }

.nowruz { background: linear-gradient(135deg, rgba(120, 230, 160, .1), rgba(255, 255, 255, .02)); }
.cd { font-size: 22px; font-weight: 300; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.cd.small { font-size: 16px; margin-top: 6px; color: #f4f6ff; }

/* هوروسکوپ */
.big3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 10px; }
.b3 { text-align: center; padding: 10px 4px 9px; border-radius: 16px; border: 1px solid var(--line);
  background: linear-gradient(180deg, color-mix(in srgb, var(--c) 18%, transparent), rgba(255, 255, 255, .02)); }
.b3 i { display: block; font-style: normal; font-family: var(--sym); font-size: 18px; color: var(--gold); line-height: 1.2; }
.b3 span { display: block; font-size: 10.5px; color: var(--muted); }
.b3 b { display: block; font-size: 15px; font-weight: 500; margin-top: 3px; }
.b3 small { display: block; font-size: 11.5px; color: var(--muted); direction: ltr; }
.sg { font-family: var(--sym); color: var(--c); text-shadow: 0 0 10px var(--c); font-weight: 400; }
.mood p { margin: 0 0 6px; font-size: 13px; line-height: 1.9; color: #dfe5ff; }
.mood p:last-child { margin: 0; }
.mood b { color: #fff; font-weight: 500; }
.moon { display: grid; grid-template-columns: 78px 1fr; gap: 6px 12px; align-items: center; }
.moon-svg { width: 74px; height: 74px; display: block; filter: drop-shadow(0 0 14px rgba(190, 210, 255, .35)); }
.moon .rows { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 4px; }
.moon .rows div { font-size: 12px; }
.moon .rows span { display: block; color: var(--muted); font-size: 10.5px; }
.planets { width: 100%; border-collapse: collapse; font-size: 12.8px; }
.planets td { padding: 5px 2px; border-top: 1px solid rgba(255, 255, 255, .05); white-space: nowrap; }
.planets tr:first-child td { border-top: 0; }
.planets td:first-child i { font-style: normal; font-family: var(--sym); color: var(--c); display: inline-block; width: 20px; text-align: center; text-shadow: 0 0 8px var(--c); }
.planets td:nth-child(3) { color: var(--muted); font-variant-numeric: tabular-nums; text-align: end; }
.planets td:last-child { width: 16px; text-align: center; }
.rx { color: #ff8f7a; font-family: var(--sym); }
.event .ev { display: flex; gap: 12px; align-items: center; }
.event .ev i { font-style: normal; font-family: var(--sym); font-size: 26px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); box-shadow: 0 0 18px color-mix(in srgb, var(--c) 35%, transparent); }
.event .ev b { display: block; font-weight: 500; }
.event .ev small { color: var(--muted); font-size: 12px; }
.loc { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; font-size: 13px; }
.loc-btns { display: flex; gap: 6px; }
.loc button { border: 1px solid color-mix(in srgb, var(--sign) 60%, transparent); background: color-mix(in srgb, var(--sign) 18%, transparent);
  border-radius: 99px; padding: 5px 12px; font-size: 12px; white-space: nowrap; }
.loc button.ghost { background: transparent; border-color: var(--line); }

/* ── معرفی برج ── */
.hero { position: fixed; left: 50%; bottom: 92px; transform: translateX(-50%); z-index: 3; width: min(560px, calc(100vw - 740px));
  display: flex; gap: 18px; align-items: center; justify-content: center; text-align: start; pointer-events: none;
  animation: heroIn 1.6s cubic-bezier(.2, .8, .2, 1) both 2.4s; }
@keyframes heroIn { from { opacity: 0; transform: translate(-50%, 18px); filter: blur(6px); } }
.hero-glyph { font-family: var(--sym); font-size: 74px; line-height: 1; color: var(--sign); flex: none;
  text-shadow: 0 0 22px var(--sign), 0 0 60px color-mix(in srgb, var(--sign) 60%, transparent); }
.hero-body { min-width: 0; pointer-events: auto; }
.hero-badge { display: inline-flex; gap: 7px; align-items: center; font-size: 11px; color: var(--muted); letter-spacing: .06em; }
.hero:not(.is-now) .hero-badge { visibility: hidden; }
.hero h1 { margin: 0; font-size: 38px; font-weight: 700; line-height: 1.15; letter-spacing: .01em; }
.hero-en { font-size: 13px; color: var(--muted); }
.hero-traits { font-size: 14px; margin-top: 3px; color: #e8ecff; }
.hero-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }
.hero-chips span { font-size: 11px; padding: 2px 9px; border-radius: 99px; border: 1px solid color-mix(in srgb, var(--sign) 45%, transparent);
  background: color-mix(in srgb, var(--sign) 12%, transparent); }
.hero-now { margin-top: 8px; }
.hero-now .progress { margin-top: 0; }
.hero-now .tiny { margin-top: 5px; color: var(--muted); }
.hero:not(.is-now) .hero-now { display: none; }
.back { display: none; margin-top: 9px; border: 1px solid var(--line); background: rgba(255, 255, 255, .06); border-radius: 99px; padding: 5px 14px; font-size: 12.5px; }
.hero:not(.is-now) .back { display: inline-block; }
.back:hover { background: rgba(255, 255, 255, .12); }

/* ── نوار بروج ── */
.zodiac-bar { position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%); z-index: 5; display: flex; gap: 3px; padding: 5px;
  border-radius: 20px; border: 1px solid var(--line); background: rgba(8, 11, 26, .55); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  animation: panelIn 1.2s ease both 2s; max-width: calc(100vw - 20px); overflow-x: auto; scrollbar-width: none; }
.zodiac-bar::-webkit-scrollbar { display: none; }
.zodiac-bar button { position: relative; flex: none; display: flex; flex-direction: column; align-items: center; gap: 0; width: 58px; padding: 6px 0 5px;
  border: 0; border-radius: 15px; background: transparent; color: var(--muted); transition: background .3s, color .3s; }
.zodiac-bar button i { font-style: normal; font-family: var(--sym); font-size: 19px; line-height: 1.25; transition: text-shadow .3s; }
.zodiac-bar button span { font-size: 10.5px; }
.zodiac-bar button:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.zodiac-bar button.sel { background: color-mix(in srgb, var(--c) 20%, transparent); color: #fff; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 55%, transparent); }
.zodiac-bar button.sel i { color: var(--c); text-shadow: 0 0 12px var(--c); }
.zodiac-bar button.now::after { content: ''; position: absolute; top: 5px; inset-inline-end: 7px; width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold); box-shadow: 0 0 8px var(--gold); }

.mobile-tabs { display: none; }

/* ── ساعت: انتخاب منطقه‌ی زمانی (نسخه‌ی انگلیسی) ── */
.zone-toggle { display: inline-flex; margin-top: 8px; padding: 3px; border-radius: 99px; border: 1px solid var(--line); background: rgba(8, 12, 28, .45);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); pointer-events: auto; }
.zone-toggle button { border: 0; background: transparent; color: var(--muted); font-size: 11.5px; letter-spacing: .06em; padding: 3px 12px; border-radius: 99px; }
.zone-toggle button.on { background: color-mix(in srgb, var(--sign) 28%, transparent); color: #fff; }

/* ── طالع‌بینی امروز ── */
.reading { background: linear-gradient(160deg, color-mix(in srgb, var(--sign) 14%, transparent), rgba(255, 255, 255, .02) 60%); }
.reading h3 { margin: 2px 0 6px; font-size: 15px; font-weight: 600; line-height: 1.6; }
.reading p { margin: 0 0 7px; font-size: 13px; line-height: 1.85; color: #e1e6ff; }
.reading p.muted { color: var(--muted); font-size: 12.5px; }
.reading .insign { font-size: 12.5px; }
.pl { white-space: nowrap; }
.pl i { font-style: normal; font-family: var(--sym); color: var(--c); margin-inline-end: 3px; text-shadow: 0 0 8px var(--c); }
.reading .profile { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 8px; }
.reading .profile p { font-size: 12.5px; color: var(--muted); margin-bottom: 4px; }
.reading .profile b { color: #fff; font-weight: 500; }
.hero-daily { font-size: 13px; margin-top: 4px; color: color-mix(in srgb, var(--sign) 55%, #fff); }

/* ── زوایا ── */
.asp { padding: 7px 0; border-top: 1px solid rgba(255, 255, 255, .05); }
.asp:first-child { border-top: 0; padding-top: 2px; }
.asp-h { display: flex; align-items: center; gap: 3px; flex-wrap: wrap; }
.asp-h .g { font-family: var(--sym); color: var(--c); text-shadow: 0 0 8px var(--c); font-size: 15px; }
.asp-h em { font-style: normal; font-family: var(--sym); color: var(--gold); font-size: 13px; margin: 0 1px; }
.asp-h b { font-weight: 500; font-size: 13px; margin-inline-start: 6px; }
.asp-h small { margin-inline-start: auto; font-size: 10.5px; color: var(--muted); }
.asp p { margin: 2px 0 0; font-size: 12px; color: var(--muted); }

/* ── توازن عناصر ── */
.bal { display: grid; grid-template-columns: 62px 1fr 18px; align-items: center; gap: 8px; font-size: 12px; margin: 4px 0; }
.bal span { color: var(--muted); }
.bal i { height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .06); overflow: hidden; }
.bal u { display: block; height: 100%; border-radius: 6px; background: var(--c); box-shadow: 0 0 10px var(--c); transition: width 1s; }
.bal b { font-weight: 500; text-align: end; }

/* ── تقویم‌های جهان ── */
.rows-list > div { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; border-top: 1px solid rgba(255, 255, 255, .05); font-size: 12.5px; }
.rows-list > div:first-child { border-top: 0; }
.rows-list span { color: var(--muted); white-space: nowrap; }
.rows-list b { font-weight: 500; text-align: end; }
[hidden] { display: none !important; }

/* ── امضا ── */
.credit { position: fixed; z-index: 5; bottom: 28px; inset-inline-end: 26px; font-size: 11px; letter-spacing: .03em; color: var(--muted);
  display: flex; gap: 7px; align-items: center; font-family: Inter, system-ui, sans-serif; animation: panelIn 1.2s ease both 2.6s; }
.credit a { color: var(--muted); text-decoration: none; transition: color .2s; }
.credit a:hover { color: #fff; }
.credit a[lang=fa] { font-family: Vazirmatn, Tahoma, sans-serif; }

/* ── لودر ── */
.loader { position: fixed; inset: 0; z-index: 20; display: grid; place-content: center; justify-items: center; gap: 16px; background: #02030a;
  transition: opacity 1.6s ease, visibility 1.6s; color: var(--muted); font-size: 13px; letter-spacing: .1em; }
.loader.gone { opacity: 0; visibility: hidden; }
.loader .ring { width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .12); border-top-color: var(--gold); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.noscript { position: fixed; inset: 0; display: grid; place-content: center; }

/* ── لپ‌تاپ‌های کوچک ── */
@media (max-width: 1280px) {
  .panel { width: 300px; }
  .credit { flex-direction: column; align-items: flex-end; gap: 2px; bottom: 24px; }
  .credit span { display: none; }
  .hero { width: min(520px, calc(100vw - 660px)); }
  .hero-glyph { font-size: 60px; }
  .hero h1 { font-size: 32px; }
}
@media (max-height: 760px) and (min-width: 981px) {
  .hero-traits, .hero-chips { display: none; }
}
@media (max-height: 900px) and (min-width: 981px) {
  .hero-traits { display: none; }
}

/* ── موبایل و تبلت ── */
@media (max-width: 980px) {
  .top { top: max(12px, env(safe-area-inset-top)); width: 100%; }
  .clock { font-size: clamp(40px, 12vw, 64px); }
  .tz { display: none; }
  .panel { inset: auto 0 0 0; width: auto; top: auto; max-height: 82vh; border-radius: 24px 24px 0 0; padding-bottom: calc(90px + env(safe-area-inset-bottom));
    transform: translateY(105%); transition: transform .5s cubic-bezier(.2, .8, .2, 1); animation: none; z-index: 8; background: rgba(8, 11, 26, .86); }
  .panel.open { transform: none; }
  .panel .close { display: block; position: sticky; top: 0; float: inline-end; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line);
    background: rgba(255, 255, 255, .06); font-size: 20px; line-height: 1; z-index: 2; }
  .hero { width: calc(100vw - 28px); bottom: calc(150px + env(safe-area-inset-bottom)); gap: 12px; }
  .hero-traits { display: none; }
  .credit { inset-inline: 0; bottom: calc(4px + env(safe-area-inset-bottom)); justify-content: center; flex-direction: row; font-size: 10.5px; animation: none; }
  .credit span { display: inline; }
  .zone-toggle { margin-top: 6px; }
  .hero-glyph { font-size: 52px; }
  .hero h1 { font-size: 28px; }
  .hero-traits { font-size: 13px; }
  .hero-chips span:nth-child(n+4) { display: none; }
  .zodiac-bar { bottom: calc(84px + env(safe-area-inset-bottom)); }
  .zodiac-bar button { width: 52px; }
  .mobile-tabs { display: flex; position: fixed; z-index: 9; left: 10px; right: 10px; bottom: calc(26px + env(safe-area-inset-bottom)); gap: 8px; }
  .mobile-tabs button { flex: 1; padding: 11px; border-radius: 16px; border: 1px solid var(--line); background: rgba(10, 14, 32, .7);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); font-size: 14px; }
  .mobile-tabs button.on { background: color-mix(in srgb, var(--sign) 30%, rgba(10, 14, 32, .8)); border-color: color-mix(in srgb, var(--sign) 60%, transparent); }
}
@media (max-width: 980px) and (max-height: 700px) {
  .hero-traits, .hero-chips { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
