:root {
  --night: #0B0E26;
  --dusk: #12163A;
  --dusk-2: #171C47;
  --orbit: #283062;
  --orbit-2: #3A4380;
  --moon: #EFE9DA;
  --haze: #A9AECB;
  --haze-2: #8C92B6;
  --gold: #E7B75A;
  --gold-soft: #F3D592;
  --gold-ink: #1C1406;

  --g-suriyan: #F07A4A;
  --g-chandran: #DCE4F5;
  --g-sevvai: #E5534B;
  --g-budhan: #49C08A;
  --g-guru: #F2C94C;
  --g-sukran: #F6EEF8;
  --g-sani: #6F82EA;
  --g-rahu: #8A8FA8;
  --g-ketu: #B98A64;

  --good: #6FD4A3;
  --good-bg: rgba(73, 192, 138, 0.10);
  --good-line: rgba(73, 192, 138, 0.35);
  --bad: #F59A90;
  --bad-bg: rgba(229, 83, 75, 0.10);
  --bad-line: rgba(229, 83, 75, 0.35);
  --kuli: #A3B1F7;
  --warn: #F3D592;

  --serif: 'Noto Serif Tamil', 'Tiro Tamil', Georgia, serif;
  --sans: 'Anek Tamil', 'Noto Sans Tamil', system-ui, sans-serif;
  --r-lg: 22px;
  --r-md: 14px;
  --r-sm: 9px;
  --wrap: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--night);
  color: var(--moon);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--gold-soft); text-underline-offset: 3px; }
a:hover { color: #FFE7B3; }
button, select, input { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
::selection { background: rgba(231, 183, 90, 0.35); color: #fff; }
h1, h2, h3, h4 { margin: 0; line-height: 1.25; font-weight: 700; }
p { margin: 0; }
.text-white { color: var(--moon); }
.hidden { display: none !important; }
.tnum { font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: 20px; }
.serif { font-family: var(--serif); }
.muted { color: var(--haze); }

/* Navigation */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 14, 38, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--orbit);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--moon); }
.brand-mark { width: 40px; height: 40px; flex: none; }
.brand-name { font-family: var(--serif); font-weight: 700; font-size: 20px; line-height: 1.1; display: block; }
.brand-sub { font-size: 12.5px; color: var(--haze-2); display: block; }
.nav-links { display: none; align-items: center; gap: 24px; font-size: 15px; font-weight: 500; }
.nav-links a { color: var(--haze); text-decoration: none; white-space: nowrap; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--moon); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.menu-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--dusk); border: 1px solid var(--orbit); color: var(--moon); cursor: pointer;
}
.mobile-menu { border-top: 1px solid var(--orbit); padding: 14px 20px 18px; display: grid; gap: 4px; background: var(--night); }
.mobile-menu a { color: var(--moon); text-decoration: none; padding: 12px 6px; border-bottom: 1px solid rgba(40, 48, 98, 0.6); font-weight: 500; }
@media (min-width: 1200px) {
  .nav-links { display: flex; }
  .menu-btn, .mobile-menu { display: none !important; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 24px; border-radius: 999px;
  font-weight: 600; font-size: 16px; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: background-color .15s ease, border-color .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn svg { width: 19px; height: 19px; flex: none; }
.btn-gold { background: var(--gold); color: var(--gold-ink); }
.btn-gold:hover { background: var(--gold-soft); color: var(--gold-ink); }
.btn-line { border-color: var(--orbit-2); color: var(--moon); background: transparent; }
.btn-line:hover { border-color: var(--gold); color: var(--moon); }
.btn-wa { background: #1E7B53; color: #fff; }
.btn-wa:hover { background: #23905F; color: #fff; }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14.5px; }
.btn-block { width: 100%; }
.nav-actions .btn-wa { display: none; }
@media (min-width: 640px) { .nav-actions .btn-wa { display: inline-flex; } }
.brand > span { min-width: 0; }
.brand-sub { white-space: nowrap; }
@media (max-width: 560px) {
  .nav-actions .btn-gold { display: none; }
  .brand-name { font-size: 18px; }
}

/* Sections */
.section { padding-block: 88px; }
.section-tight { padding-block: 56px; }
.sec-head { max-width: 720px; margin-bottom: 40px; }
.sec-title { font-family: var(--serif); font-size: clamp(28px, 3.6vw, 40px); line-height: 1.25; }
.sec-lead { margin-top: 12px; color: var(--haze); font-size: 17.5px; max-width: 64ch; }
.rule { border: 0; border-top: 1px solid var(--orbit); margin: 0; }
@media (max-width: 640px) { .section { padding-block: 64px; } }

/* Hero */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--orbit); }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .75;
  background-image:
    radial-gradient(1.2px 1.2px at 6% 12%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 18% 34%, #fff 50%, transparent 51%),
    radial-gradient(1.4px 1.4px at 31% 8%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 44% 62%, #cfd6ff 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 9% 78%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 27% 90%, #fff 50%, transparent 51%),
    radial-gradient(1.3px 1.3px at 57% 18%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 68% 6%, #ffe9c2 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 83% 14%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 95% 40%, #fff 50%, transparent 51%),
    radial-gradient(1.3px 1.3px at 90% 72%, #cfd6ff 50%, transparent 51%),
    radial-gradient(1px 1px at 74% 92%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 52% 96%, #fff 50%, transparent 51%);
}
.hero-inner { position: relative; display: grid; gap: 48px; padding-block: 72px 80px; align-items: center; }
.hero-inner > * { min-width: 0; }
h1, h2, h3 { overflow-wrap: break-word; }
@media (min-width: 980px) { .hero-inner { grid-template-columns: 1.08fr 0.92fr; gap: 64px; padding-block: 88px 96px; } }
.hero h1 { font-family: var(--serif); font-size: clamp(27px, 3.3vw, 46px); line-height: 1.22; letter-spacing: -0.005em; }
.hero-lead { margin-top: 22px; font-size: clamp(17px, 1.6vw, 19.5px); color: var(--haze); max-width: 58ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-note { margin-top: 18px; font-size: 15px; color: var(--haze-2); }
.hero-note a { color: var(--good); }

/* Navagraha mandala */
.mandala-wrap { width: 100%; max-width: 470px; justify-self: center; }
.mandala {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px;
  padding: 16px; border-radius: 26px; background: rgba(18, 22, 58, 0.85);
  border: 1px solid var(--orbit);
}
.graha {
  position: relative; text-align: center; padding: 16px 6px 13px; border-radius: 18px;
  background: #151A44; border: 1px solid rgba(58, 67, 128, 0.45);
  animation: graha-rise .55s cubic-bezier(.2, .7, .2, 1) both;
  animation-delay: calc(var(--i, 0) * 70ms);
}
.graha .disc {
  width: 38px; height: 38px; border-radius: 50%; margin: 0 auto 9px;
  background: var(--c); box-shadow: 0 0 22px -2px var(--c);
}
.graha .g-name { font-weight: 700; font-size: 15.5px; line-height: 1.3; }
.graha .g-pos { font-size: 13px; color: var(--haze); line-height: 1.35; min-height: 2.7em; margin-top: 2px; }
.graha .g-retro { color: var(--gold-soft); font-weight: 600; }
.graha.is-center { background: #2A1B2E; border-color: rgba(240, 122, 74, 0.6); }
.graha.is-center .disc { width: 50px; height: 50px; box-shadow: 0 0 34px 2px var(--c); }
.mandala-cap { margin-top: 14px; font-size: 14px; color: var(--haze-2); text-align: center; }
.mandala-cap strong { color: var(--moon); font-weight: 600; }
@keyframes graha-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (max-width: 420px) {
  .mandala { gap: 7px; padding: 10px; }
  .graha { padding: 12px 3px 10px; }
  .graha .disc { width: 30px; height: 30px; }
  .graha.is-center .disc { width: 38px; height: 38px; }
  .graha .g-name { font-size: 14px; }
  .graha .g-pos { font-size: 12px; }
}

/* Almanac (today's panchangam) */
.almanac { background: var(--dusk); border: 1px solid var(--orbit); border-radius: var(--r-lg); overflow: hidden; }
.alm-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 18px 28px; padding: 28px 30px 24px; border-bottom: 1px solid var(--orbit); }
.alm-en { font-size: clamp(22px, 2.6vw, 28px); font-weight: 600; line-height: 1.25; }
.alm-ta { font-family: var(--serif); font-size: clamp(18px, 2vw, 21px); color: var(--gold-soft); margin-top: 4px; }
.alm-meta { font-size: 14.5px; color: var(--haze); margin-top: 6px; }
.alm-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.alm-body { padding: 26px 30px 30px; }
.alm-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 13px; border-radius: 999px;
  background: rgba(231, 183, 90, 0.12); border: 1px solid rgba(231, 183, 90, 0.35);
  color: var(--gold-soft); font-size: 14px; font-weight: 500;
}
@media (max-width: 640px) { .alm-head, .alm-body { padding-inline: 18px; } }

/* Day timeline */
.tl-title { font-size: 15px; font-weight: 600; color: var(--moon); margin-bottom: 12px; }
.tl-title span { color: var(--haze); font-weight: 400; }
.timeline { position: relative; height: 38px; border-radius: 10px; background: #1B2150; overflow: hidden; }
.tl-seg { position: absolute; top: 0; bottom: 0; border-radius: 6px; }
.tl-seg.nalla { background: var(--g-budhan); }
.tl-seg.yama { background: var(--gold); }
.tl-seg.kuli { background: var(--g-sani); }
.tl-seg.rahu { background: var(--g-sevvai); }
.tl-seg.abhi { background: transparent; border: 2px dashed rgba(239, 233, 218, 0.7); }
.tl-now { position: absolute; top: -4px; bottom: -4px; width: 2px; background: #fff; box-shadow: 0 0 8px #fff; }
.tl-axis { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--haze-2); margin-top: 6px; }
.tl-legend { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px 20px; margin-top: 18px; }
.tl-key { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; line-height: 1.45; }
.tl-key i { width: 12px; height: 12px; border-radius: 3px; margin-top: 5px; flex: none; }
.tl-key b { font-weight: 600; display: block; }
.tl-key span { color: var(--haze); }

/* Panchangam fact groups */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); column-gap: 32px; margin-top: 26px; }
.fact-col { padding-top: 18px; border-top: 2px solid var(--orbit); }
.fact-col:has(.c-good) { border-top-color: rgba(73, 192, 138, 0.55); }
.fact-col:has(.c-bad) { border-top-color: rgba(229, 83, 75, 0.55); }
.fact-col:has(.c-gold) { border-top-color: rgba(231, 183, 90, 0.45); }
.fact-col h3 { font-size: 15px; font-weight: 600; margin-bottom: 10px; }
.fact-col h3.c-good { color: var(--good); }
.fact-col h3.c-bad { color: var(--bad); }
.fact-col h3.c-gold { color: var(--gold-soft); }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0 0 14px; font-size: 15px; }
.kv dt { color: var(--haze); }
.kv dd { margin: 0; text-align: right; font-weight: 500; }
.kv.stack { grid-template-columns: 1fr; gap: 1px; }
.kv.stack dt { font-size: 13.5px; }
.kv.stack dd { text-align: left; margin-bottom: 10px; line-height: 1.5; }

/* Downloads */
.dl-grid { display: grid; gap: 22px; }
@media (min-width: 880px) { .dl-grid { grid-template-columns: 1.15fr 0.85fr; } }
.dl { border-radius: var(--r-lg); padding: 32px; display: flex; flex-direction: column; gap: 16px; background: var(--dusk); border: 1px solid var(--orbit); }
.dl.is-primary { border-color: rgba(231, 183, 90, 0.55); background: linear-gradient(180deg, rgba(231, 183, 90, 0.07), rgba(231, 183, 90, 0) 55%), var(--dusk); }
.dl-top { display: flex; align-items: center; gap: 14px; }
.dl-icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; flex: none; background: #1E2453; border: 1px solid var(--orbit-2); }
.dl-icon svg { width: 26px; height: 26px; }
.dl h3 { font-family: var(--serif); font-size: 26px; }
.dl-file { font-size: 14px; color: var(--haze); }
.dl p { color: var(--haze); }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: 15.5px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.checks svg { width: 18px; height: 18px; flex: none; margin-top: 4px; color: var(--good); }
.dl .btn { margin-top: auto; }

/* Features */
.fgroup { display: grid; gap: 22px 48px; padding-block: 36px; border-top: 1px solid var(--orbit); }
.fgroup:last-child { border-bottom: 1px solid var(--orbit); }
@media (min-width: 900px) { .fgroup { grid-template-columns: 280px 1fr; } }
.fgroup-head h3 { font-family: var(--serif); font-size: 24px; }
.fgroup-head p { color: var(--haze); margin-top: 8px; font-size: 15.5px; }
.fgroup-head .dot { width: 14px; height: 14px; border-radius: 50%; background: var(--c); box-shadow: 0 0 14px var(--c); margin-bottom: 14px; }
.flist { display: grid; gap: 26px 36px; }
@media (min-width: 680px) { .flist { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.feat h4 { font-size: 18px; font-weight: 600; color: var(--moon); }
.feat p { color: var(--haze); font-size: 15.5px; margin-top: 6px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.tag { font-size: 13px; padding: 2px 10px; border-radius: 999px; background: #1B2150; border: 1px solid var(--orbit); color: var(--haze); }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--orbit); border-radius: var(--r-lg); background: var(--dusk); }
.table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 15.5px; }
.table th, .table td { padding: 15px 20px; text-align: left; border-bottom: 1px solid var(--orbit); vertical-align: top; }
.table thead th { color: var(--haze); font-weight: 600; font-size: 14.5px; background: #151A44; }
.table tbody tr:last-child th, .table tbody tr:last-child td { border-bottom: 0; }
.table tbody th { font-weight: 500; color: var(--moon); }
.table .yes { color: var(--good); font-weight: 600; }
.table .no { color: var(--haze-2); }

/* Steps */
.steps-grid { display: grid; gap: 22px; }
@media (min-width: 880px) { .steps-grid { grid-template-columns: 1fr 1fr; } }
.steps-card { background: var(--dusk); border: 1px solid var(--orbit); border-radius: var(--r-lg); padding: 28px; }
.steps-card h3 { font-family: var(--serif); font-size: 22px; margin-bottom: 18px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; counter-reset: step; }
.steps li { display: grid; grid-template-columns: 34px 1fr; gap: 14px; counter-increment: step; color: var(--haze); }
.steps li::before {
  content: counter(step); width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 700; color: var(--gold-ink); background: var(--gold);
}
.steps li strong { color: var(--moon); font-weight: 600; }

/* FAQ */
.faq-list { max-width: 860px; }
.faq { border-bottom: 1px solid var(--orbit); }
.faq:first-child { border-top: 1px solid var(--orbit); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; align-items: flex-start;
  padding: 20px 2px; font-weight: 600; font-size: 17.5px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 20px; height: 20px; flex: none; margin-top: 5px; color: var(--gold); transition: transform .2s ease; }
.faq[open] summary svg { transform: rotate(180deg); }
.faq .faq-a { padding: 0 2px 22px; color: var(--haze); max-width: 72ch; }

/* CTA band */
.cta-band {
  border-radius: 28px; padding: clamp(32px, 5vw, 56px); background: var(--dusk);
  border: 1px solid rgba(231, 183, 90, 0.45); display: grid; gap: 24px; align-items: center;
}
@media (min-width: 880px) { .cta-band { grid-template-columns: 1fr auto; } }
.cta-band h2 { font-family: var(--serif); font-size: clamp(26px, 3vw, 34px); }
.cta-band p { color: var(--haze); margin-top: 10px; max-width: 60ch; }
.cta-band .btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* Footer */
.footer { border-top: 1px solid var(--orbit); background: #090B20; color: var(--haze); font-size: 15px; }
.footer-grid { display: grid; gap: 32px; padding-block: 56px 32px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.footer h3 { font-size: 15px; color: var(--moon); font-weight: 600; margin-bottom: 12px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer a { color: var(--haze); text-decoration: none; }
.footer a:hover { color: var(--gold-soft); }
.footer-base { border-top: 1px solid var(--orbit); padding-block: 20px 28px; font-size: 13.5px; color: var(--haze-2); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }

/* Mobile quick bar */
.mbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: flex; gap: 8px;
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); background: rgba(11, 14, 38, 0.96);
  border-top: 1px solid var(--orbit); backdrop-filter: blur(10px);
}
.mbar a, .mbar button {
  flex: 1; min-height: 46px; display: flex; align-items: center; justify-content: center; text-align: center;
  border-radius: 12px; background: var(--dusk); border: 1px solid var(--orbit); color: var(--moon);
  font-size: 13.5px; font-weight: 600; text-decoration: none; cursor: pointer; padding: 0 6px;
}
.mbar .is-gold { background: var(--gold); border-color: var(--gold); color: var(--gold-ink); }
.has-mbar { padding-bottom: 72px; }
@media (min-width: 980px) { .mbar { display: none; } .has-mbar { padding-bottom: 0; } }

/* Breadcrumb */
.crumbs { font-size: 14px; color: var(--haze-2); padding-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.crumbs a { color: var(--haze); text-decoration: none; }
.crumbs a:hover { color: var(--gold-soft); }

/* ---------- Calendar page ---------- */
.cal-header { display: grid; gap: 20px; padding-block: 26px 22px; }
.cal-header h1 { font-family: var(--serif); font-size: clamp(26px, 3.4vw, 38px); }
.cal-sub { color: var(--gold-soft); margin-top: 8px; font-size: 16px; }
.cal-controls { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.cal-controls .stepper { display: flex; gap: 6px; }
.ctl {
  min-height: 46px; padding: 0 14px; border-radius: 12px; background: var(--dusk);
  border: 1px solid var(--orbit); color: var(--moon); font-weight: 500; cursor: pointer;
}
.ctl:hover { border-color: var(--orbit-2); }
.ctl.is-gold { background: var(--gold); border-color: var(--gold); color: var(--gold-ink); font-weight: 600; }
select.ctl { padding-right: 10px; }
select.ctl option { background: var(--dusk); color: var(--moon); }
.ctl-city { border-color: rgba(231, 183, 90, 0.5); color: var(--gold-soft); }

.cal-layout { display: grid; gap: 24px; align-items: start; padding-bottom: 40px; }
.cal-layout > * { min-width: 0; }
@media (min-width: 1100px) { .cal-layout { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }
.panel { background: var(--dusk); border: 1px solid var(--orbit); border-radius: var(--r-lg); padding: 18px; }
@media (min-width: 640px) { .panel { padding: 22px; } }
.panel + .panel { margin-top: 24px; }

.mob-day {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  background: var(--dusk); border: 1px solid rgba(231, 183, 90, 0.45); border-radius: var(--r-md);
  padding: 12px 14px; margin-bottom: 18px;
}
.mob-day .m-en { font-weight: 600; font-size: 15px; }
.mob-day .m-ta { color: var(--gold-soft); font-size: 14px; }
@media (min-width: 1100px) { .mob-day { display: none; } }

.wk { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; margin-bottom: 6px; text-align: center; }
.wk div { padding: 7px 2px; border-radius: 9px; background: #151A44; font-size: 13.5px; font-weight: 600; color: var(--haze); line-height: 1.25; }
.wk div small { display: block; font-size: 11px; font-weight: 400; color: var(--haze-2); }
.wk .is-sun { color: var(--bad); background: rgba(229, 83, 75, 0.10); }
.wk .full { display: none; }
@media (min-width: 640px) { .wk .full { display: inline; } .wk .short { display: none; } }

.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cal-blank { min-height: 66px; border-radius: 12px; background: rgba(21, 26, 68, 0.35); }
.wk div, .cal-cell, .cal-blank { min-width: 0; }
.cal-cell {
  min-height: 66px; padding: 6px; border-radius: 12px; text-align: left; cursor: pointer; overflow: hidden;
  background: #141940; border: 1px solid rgba(40, 48, 98, 0.9);
  display: flex; flex-direction: column; justify-content: space-between; gap: 2px;
  transition: border-color .12s ease, background-color .12s ease;
}
@media (min-width: 640px) { .cal-cell, .cal-blank { min-height: 96px; padding: 9px; } }
.cal-cell:hover { border-color: var(--orbit-2); }
.cal-cell .c-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 2px; }
.cal-cell .c-num { font-size: 17px; font-weight: 700; line-height: 1; }
@media (min-width: 640px) { .cal-cell .c-num { font-size: 22px; } }
.cal-cell .c-icons { font-size: 12px; line-height: 1; white-space: nowrap; overflow: hidden; }
@media (max-width: 639px) {
  #calendarSection.panel { padding: 8px; }
  .cal-grid, .wk { gap: 3px; }
  .wk div { font-size: 12.5px; padding: 5px 0; }
  .cal-cell { padding: 4px 3px; border-radius: 9px; }
  .cal-cell .c-num { font-size: 15px; }
  .cal-cell .c-icons { font-size: 9px; max-width: 50%; }
  .cal-cell .c-kari { display: none; }
  .cal-cell .c-ta { font-size: 10px; text-overflow: clip; letter-spacing: -0.2px; }
}
.cal-cell .c-ta { display: block; font-size: 11.5px; font-weight: 600; color: var(--gold-soft); line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-cell .c-star { font-size: 11.5px; color: var(--haze-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: none; }
@media (min-width: 640px) { .cal-cell .c-ta { font-size: 13px; } .cal-cell .c-star { display: block; } }
.cal-cell .c-kari { font-size: 10.5px; color: var(--bad); font-weight: 600; }
.cal-cell.is-sun .c-num { color: var(--bad); }
.cal-cell.is-today { border-color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold); }
.cal-cell.is-selected { background: #2B2A4A; border-color: var(--gold); box-shadow: 0 0 0 2px rgba(231, 183, 90, 0.45); }
.cal-msg { grid-column: 1 / -1; padding: 72px 10px; text-align: center; color: var(--haze); }
.cal-msg.is-error { color: var(--bad); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--orbit); font-size: 13.5px; color: var(--haze); }

.tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; margin-bottom: 20px; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: none; min-height: 42px; padding: 0 16px; border-radius: 999px; cursor: pointer;
  background: #151A44; border: 1px solid var(--orbit); color: var(--haze); font-weight: 500; font-size: 14.5px;
}
.tab[aria-selected="true"] { background: var(--gold); border-color: var(--gold); color: var(--gold-ink); font-weight: 600; }
.pane-title { font-size: 15px; font-weight: 600; margin-bottom: 14px; }
.pane-title span { color: var(--haze); font-weight: 400; }
.loading { padding: 40px 6px; text-align: center; color: var(--haze); }

.graha-layout { display: grid; gap: 24px; }
.rasi-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: repeat(4, minmax(0, 1fr));
  aspect-ratio: 1 / 1; max-width: 360px; width: 100%; margin: 0 auto;
  border: 1px solid rgba(231, 183, 90, 0.6); border-radius: 12px; overflow: hidden; background: #0E1230;
}
.rasi-cell { border: 1px solid rgba(231, 183, 90, 0.25); padding: 4px 5px; display: flex; flex-direction: column; min-width: 0; }
.rasi-cell .r-name { font-size: 10.5px; color: var(--haze-2); line-height: 1.2; }
.rasi-cell .r-pl { margin: auto 0; text-align: center; display: grid; gap: 1px; }
.rasi-cell .r-pl span { font-size: 12.5px; font-weight: 600; line-height: 1.2; }
.rasi-cell .is-lagna { color: var(--bad); }
.rasi-cell .is-retro { color: var(--gold-soft); }
.rasi-center {
  grid-column: 2 / 4; grid-row: 2 / 4; border: 1px solid rgba(231, 183, 90, 0.35);
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 2px;
  background: #171C47; padding: 6px;
}
.rasi-center b { font-family: var(--serif); color: var(--gold-soft); font-size: 15px; }
.rasi-center span { font-size: 12.5px; color: var(--haze); }

.ptable { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.ptable th, .ptable td { padding: 8px 8px; text-align: left; border-bottom: 1px solid var(--orbit); white-space: nowrap; }
.ptable th { color: var(--haze); font-weight: 500; font-size: 13.5px; }
.ptable .p-name { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.pdot { width: 10px; height: 10px; border-radius: 50%; flex: none; background: var(--c); box-shadow: 0 0 8px var(--c); }

.slot-cols { display: grid; gap: 18px; }
@media (min-width: 760px) { .slot-cols { grid-template-columns: 1fr 1fr; } }
.slot-cols h3 { font-size: 15px; font-weight: 600; margin-bottom: 10px; color: var(--gold-soft); }
.slot-cols h3.c-night { color: var(--kuli); }
.slots { display: grid; gap: 6px; }
.slot { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 11px; border: 1px solid; }
.slot.good { background: var(--good-bg); border-color: var(--good-line); }
.slot.bad { background: var(--bad-bg); border-color: var(--bad-line); }
.slot .s-time { font-size: 14px; color: var(--moon); }
.slot .s-name { font-weight: 600; text-align: right; font-size: 14.5px; }
.slot.good .s-name { color: var(--good); }
.slot.bad .s-name { color: var(--bad); }
.slot .s-note { display: block; font-size: 12.5px; color: var(--haze); font-weight: 400; }

.horas { display: grid; gap: 8px; }
@media (min-width: 640px) { .horas { grid-template-columns: 1fr 1fr; } }
.hora { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; align-items: center; padding: 11px 13px; border-radius: 12px; background: #151A44; border: 1px solid var(--orbit); }
.hora .h-pl { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; }
.hora .h-time { text-align: right; font-size: 13.5px; white-space: nowrap; }
.hora .h-note { grid-column: 1 / -1; font-size: 13px; color: var(--haze); }
.hora.good .h-time { color: var(--good); }
.hora.bad .h-time { color: var(--bad); }
.hora.neutral .h-time { color: var(--warn); }

.hl-list { display: grid; gap: 10px; }
@media (min-width: 640px) { .hl-list { grid-template-columns: 1fr 1fr; } }
.hl {
  display: flex; gap: 12px; align-items: flex-start; text-align: left; cursor: pointer;
  padding: 12px; border-radius: 14px; background: #151A44; border: 1px solid var(--orbit); color: var(--moon);
}
.hl:hover { border-color: var(--orbit-2); }
.hl .hl-date { width: 48px; height: 48px; border-radius: 12px; flex: none; display: grid; place-items: center; align-content: center; background: rgba(231, 183, 90, 0.12); border: 1px solid rgba(231, 183, 90, 0.35); line-height: 1.1; }
.hl .hl-date b { font-size: 17px; color: var(--gold-soft); }
.hl .hl-date small { font-size: 11px; color: var(--haze); }
.hl .hl-what { font-weight: 600; font-size: 14.5px; }
.hl .hl-when { font-size: 13px; color: var(--haze); margin-top: 2px; }

/* Daily sheet */
.sheet-aside { display: grid; gap: 24px; }
.sheet { background: var(--dusk); border: 1px solid rgba(231, 183, 90, 0.5); border-radius: var(--r-lg); overflow: hidden; scroll-margin-top: 84px; }
.sheet-hero { padding: 22px; border-bottom: 1px solid var(--orbit); background: #191E4C; }
.sheet-hero .sh-row { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.sheet-hero .sh-num { font-size: 14px; color: var(--haze); }
.sheet-hero h2 { font-size: clamp(20px, 2.2vw, 24px); font-weight: 600; margin-top: 4px; }
.sheet-hero .sh-ta { font-family: var(--serif); color: var(--gold-soft); font-size: 18px; margin-top: 6px; }
.sheet-hero .sh-meta { font-size: 14px; color: var(--haze); margin-top: 4px; }
.sh-day { width: 72px; flex: none; text-align: center; padding: 8px 4px; border-radius: 16px; border: 1px solid rgba(231, 183, 90, 0.55); background: #0E1230; }
.sh-day b { display: block; font-family: var(--serif); font-size: 32px; line-height: 1.1; color: var(--gold-soft); }
.sh-day span { font-size: 12.5px; }
.sh-tools { display: flex; gap: 8px; margin-top: 16px; }
.sh-tools .btn { min-height: 42px; font-size: 14.5px; padding: 0 14px; }
.sheet-body { padding: 18px 22px 22px; display: grid; gap: 18px; }
.sheet-sec h3 { font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.sheet-sec h3.c-good { color: var(--good); }
.sheet-sec h3.c-bad { color: var(--bad); }
.sheet-sec h3.c-gold { color: var(--gold-soft); }
.sheet-sec .kv { margin: 0; font-size: 14.5px; }
.sheet-sec .kv dd small { display: block; color: var(--haze); font-weight: 400; font-size: 12.5px; }
.astro-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; text-align: center; }
@media (max-width: 420px) { .astro-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.astro-row div { background: #151A44; border: 1px solid var(--orbit); border-radius: 12px; padding: 8px 4px; }
.astro-row small { display: block; font-size: 12px; color: var(--haze); }
.astro-row b { font-size: 14.5px; font-weight: 600; }
.yoga-badge { display: inline-block; margin-top: 4px; font-size: 12.5px; padding: 1px 9px; border-radius: 999px; border: 1px solid var(--good-line); color: var(--good); background: var(--good-bg); }
.yoga-badge.is-bad { border-color: var(--bad-line); color: var(--bad); background: var(--bad-bg); }
.eras { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; font-size: 13.5px; }
.eras div { display: flex; justify-content: space-between; gap: 6px; background: #151A44; border-radius: 9px; padding: 5px 9px; }
.eras span { color: var(--haze); }

.promo { background: var(--dusk); border: 1px solid var(--orbit); border-radius: var(--r-lg); padding: 22px; }
.promo h2 { font-family: var(--serif); font-size: 20px; }
.promo p { color: var(--haze); margin-top: 8px; font-size: 15px; }
.promo .btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.promo .btn { padding: 0 10px; font-size: 14.5px; }

.link-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.link-cloud a { font-size: 14px; padding: 6px 12px; border-radius: 999px; background: #151A44; border: 1px solid var(--orbit); color: var(--moon); text-decoration: none; }
.link-cloud a:hover { border-color: var(--gold); }
.links-grid { display: grid; gap: 28px; }
@media (min-width: 880px) { .links-grid { grid-template-columns: 1fr 1fr; } }
.links-grid h2 { font-size: 17px; font-weight: 600; margin-bottom: 12px; }

.toast {
  position: fixed; right: 16px; bottom: 88px; z-index: 60; padding: 12px 16px; border-radius: 12px;
  background: var(--g-budhan); color: #062316; font-weight: 600; font-size: 14.5px;
}
@media (min-width: 980px) { .toast { bottom: 24px; } }

/* PC software page */
.dl-box { max-width: 760px; background: var(--dusk); border: 1px solid rgba(231, 183, 90, 0.55); border-radius: 26px; padding: clamp(22px, 4vw, 36px); margin-top: 36px; }
.dl-box-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-bottom: 20px; border-bottom: 1px solid var(--orbit); }
.dl-box-head b { font-size: clamp(19px, 2.4vw, 24px); display: block; }
.dl-box-head span { color: var(--haze); font-size: 14.5px; }
.pill-good { align-self: flex-start; padding: 5px 13px; border-radius: 999px; color: var(--good); background: var(--good-bg); border: 1px solid var(--good-line); font-weight: 600; font-size: 14px; }
.dl-box .checks { margin-block: 20px 24px; }
.dl-box .btns { display: flex; flex-wrap: wrap; gap: 12px; }
.spec-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.spec-grid div { background: #151A44; border: 1px solid var(--orbit); border-radius: var(--r-md); padding: 16px; }
.spec-grid span { display: block; color: var(--haze); font-size: 14px; }
.spec-grid b { font-weight: 600; }
.steps-row { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps-row li { counter-increment: step; background: var(--dusk); border: 1px solid var(--orbit); border-radius: var(--r-lg); padding: 22px; color: var(--haze); }
.steps-row li::before { content: counter(step); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--gold); color: var(--gold-ink); font-weight: 700; margin-bottom: 12px; }
.steps-row h3 { color: var(--moon); font-size: 17px; font-weight: 600; margin-bottom: 4px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

@media print {
  body { background: #fff !important; color: #111 !important; padding: 0 !important; }
  .no-print, .nav, .mbar, .footer, .toast { display: none !important; }
  .cal-layout { display: block !important; }
  .sheet { border: 2px solid #5A1630 !important; background: #fff !important; }
  .sheet * { color: #111 !important; background: transparent !important; border-color: #ccc !important; box-shadow: none !important; }
  .sheet-hero { background: #f6efe0 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
