/* ====================================================
   NepPatro — Professional Design System
   neppatro.com | White · Black · Gold
   ==================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,400&family=Noto+Sans+Devanagari:wght@300;400;500;600;700;800&display=swap');

/* ── CSS TOKENS ──────────────────────────────────── */
:root {
  --gold:        #C8960C;
  --gold-lt:     #F5C842;
  --gold-bg:     #FFFBEF;
  --gold-border: #E8D48A;
  --red:         #D32F2F;
  --red-bg:      #FFF5F5;
  --blue:        #1565C0;
  --blue-bg:     #EEF4FF;
  --green:       #2E7D32;
  --green-bg:    #F0FAF0;

  --ink:         #111111;
  --ink-2:       #3D3D3D;
  --ink-3:       #6B6B6B;
  --ink-4:       #ADADAD;
  --surface:     #FFFFFF;
  --surface-2:   #F7F7F5;
  --surface-3:   #F0EFEB;
  --border:      #E4E4E0;
  --border-2:    #D0CFC8;

  --shadow-xs:   0 1px 3px rgba(0,0,0,.06);
  --shadow-sm:   0 2px 8px rgba(0,0,0,.08);
  --shadow-md:   0 6px 24px rgba(0,0,0,.10);
  --shadow-lg:   0 16px 48px rgba(0,0,0,.13);
  --shadow-gold: 0 4px 20px rgba(200,150,12,.22);

  --r-sm:  6px;
  --r-md:  12px;
  --r-lg:  18px;
  --r-xl:  24px;
  --r-2xl: 32px;

  --fn:    'Noto Sans Devanagari', sans-serif;
  --fe:    'Inter', sans-serif;

  --nav-h: 60px;
  --bot-h: 62px;
  --ease:  cubic-bezier(.4,0,.2,1);
  --t:     0.2s var(--ease);
}

/* ── RESET ───────────────────────────────────────── */
*,*::before,*::after { box-sizing:border-box; margin:0; padding:0; }
html { scroll-behavior:smooth; -webkit-tap-highlight-color:transparent; font-size:17px; }
body {
  font-family: var(--fn);
  background: var(--surface);
  color: var(--ink);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration:none; color:inherit; }
button { cursor:pointer; border:none; outline:none; background:none; font-family:inherit; }
img { max-width:100%; display:block; }
ul { list-style:none; }
::-webkit-scrollbar { width:5px; }
::-webkit-scrollbar-track { background:var(--surface-2); }
::-webkit-scrollbar-thumb { background:var(--gold); border-radius:99px; }

/* ── TOP NAVBAR ──────────────────────────────────── */
#top-nav {
  position: fixed; top:0; left:0; right:0; z-index:1000;
  height: var(--nav-h);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center;
  padding: 0 20px; gap: 16px;
  box-shadow: 0 1px 0 var(--border), 0 2px 12px rgba(0,0,0,.04);
}
.nav-brand {
  display: flex; align-items: center; gap: 9px;
  cursor: pointer; flex-shrink: 0;
}
.nav-brand-mark {
  width: 36px; height: 36px; border-radius: 9px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-lt) 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; box-shadow: var(--shadow-gold);
  flex-shrink: 0;
}
.nav-brand-name { font-size: 17px; font-weight: 800; letter-spacing:-.3px; color:var(--ink); }
.nav-brand-sub  { font-size: 10px; color:var(--ink-3); font-family:var(--fe); }

/* Desktop tabs */
.nav-tabs {
  display: flex; align-items: center; gap: 2px; flex: 1;
  overflow-x: auto; scrollbar-width: none;
}
.nav-tabs::-webkit-scrollbar { display: none; }
.nav-tab {
  display: flex; align-items: center; gap: 5px;
  padding: 6px 11px; border-radius: var(--r-sm);
  font-size: 13px; font-weight: 500; color: var(--ink-3);
  white-space: nowrap; transition: var(--t);
  font-family: var(--fn);
}
.nav-tab:hover { background: var(--surface-2); color: var(--ink); }
.nav-tab.active {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-lt) 100%);
  color: #fff; font-weight: 700;
  box-shadow: var(--shadow-gold);
}
.nav-tab-icon { font-size: 14px; }

/* Clock */
.nav-clock { display:flex; flex-direction:column; align-items:flex-end; flex-shrink:0; }
#live-time { font-size:17px; font-weight:800; font-family:var(--fe); letter-spacing:.5px; color:var(--ink); }
#live-date-small { font-size:10px; color:var(--gold); font-family:var(--fn); font-weight:600; }

/* ── LAYOUT ──────────────────────────────────────── */
#app { margin-top:var(--nav-h); min-height:calc(100vh - var(--nav-h)); }
.section { display:none; animation:fadeUp .25s var(--ease) both; }
.section.active { display:block; }
@keyframes fadeUp { from { opacity:0; transform:translateY(12px); } to { opacity:1; transform:translateY(0); } }

/* ── HERO ────────────────────────────────────────── */
.hero {
  background: var(--gold-bg);
  border-bottom: 1px solid var(--gold-border);
  padding: 28px 24px 24px;
}
.hero-inner { max-width:1100px; margin:0 auto; display:grid; grid-template-columns:1fr auto; gap:24px; align-items:start; }
.hero-left {}
.hero-label { font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:1.5px; color:var(--gold); font-family:var(--fe); margin-bottom:4px; }
.hero-date {
  font-size: clamp(32px,6vw,56px);
  font-weight: 900; color: var(--ink); line-height: 1.1;
  font-family: var(--fn); letter-spacing:-.5px;
}
.hero-date b { color: var(--gold); }
.hero-sub { display:flex; align-items:center; gap:12px; margin-top:8px; flex-wrap:wrap; }
.hero-ad { font-size:15px; font-weight:500; color:var(--ink-2); font-family:var(--fe); }
.hero-day { font-size:15px; font-weight:700; color:var(--gold); }
.hero-tags { display:flex; flex-wrap:wrap; gap:6px; margin-top:10px; }
.hero-tag {
  background: var(--surface); border:1.5px solid var(--gold-border);
  color: var(--ink-2); padding:3px 11px; border-radius:99px;
  font-size:11px; font-weight:600; font-family:var(--fn);
}
.hero-tag.red { border-color:var(--red); color:var(--red); background:var(--red-bg); }
.hero-festivals { display:flex; flex-wrap:wrap; gap:6px; margin-top:10px; }

/* Panchang card */
.panchang-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding:18px; box-shadow:var(--shadow-sm);
  min-width: 280px; max-width:340px;
}
.panchang-head {
  font-size:13px; font-weight:700; color:var(--gold);
  display:flex; align-items:center; gap:6px;
  padding-bottom:10px; border-bottom:1px solid var(--surface-3);
  margin-bottom:10px;
}
.panchang-rows { display:flex; flex-direction:column; gap:7px; }
.panchang-row { display:flex; justify-content:space-between; align-items:baseline; gap:8px; }
.panchang-key { font-size:11px; color:var(--ink-4); font-family:var(--fe); flex-shrink:0; }
.panchang-val { font-size:13px; font-weight:600; color:var(--ink); font-family:var(--fn); text-align:right; line-height:1.3; }
.sunmoon { display:flex; gap:10px; margin-top:10px; padding-top:10px; border-top:1px solid var(--surface-3); flex-wrap:wrap; }
.sunmoon-item { display:flex; align-items:center; gap:4px; font-size:11px; color:var(--ink-3); font-family:var(--fe); }
.sunmoon-item b { color:var(--ink); font-weight:600; }

/* ── FEATURE GRID ────────────────────────────────── */
.features-wrap { max-width:1400px; margin:0 auto; padding:32px 24px; }
.section-label { font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:1.5px; color:var(--ink-3); font-family:var(--fe); margin-bottom:14px; }
.feat-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(180px,1fr)); gap:16px; }
.feat-card {
  background: var(--surface); border:1px solid var(--border);
  border-radius: var(--r-md); padding:16px 10px;
  display:flex; flex-direction:column; align-items:center; gap:8px;
  cursor:pointer; transition:var(--t); text-align:center;
  box-shadow: var(--shadow-xs);
}
.feat-card:hover { border-color:var(--gold); box-shadow:var(--shadow-gold); transform:translateY(-2px); }
.feat-card:active { transform:translateY(0); }
.feat-icon { font-size:28px; line-height:1; }
.feat-name { font-size:12px; font-weight:700; color:var(--ink); font-family:var(--fn); line-height:1.3; }
.feat-name-en { font-size:9px; color:var(--ink-4); font-family:var(--fe); margin-top:1px; }

/* ── SECTION SHELL ───────────────────────────────── */
.wrap { max-width:1400px; margin:0 auto; padding:32px 40px; }
.wrap-wide { max-width:1400px; margin:0 auto; padding:32px 40px; }
.sec-head { display:flex; align-items:center; gap:10px; margin-bottom:22px; }
.sec-head h2 { font-size:26px; font-weight:800; font-family:var(--fn); }
.sec-icon { font-size:28px; line-height:1; }
.sec-divider { height:1px; background:var(--surface-3); margin-bottom:22px; }

/* ── CARD ────────────────────────────────────────── */
.card {
  background:var(--surface); border:1px solid var(--border);
  border-radius:var(--r-lg); padding:20px; box-shadow:var(--shadow-xs);
}
.card + .card { margin-top:14px; }

/* ── CALENDAR ────────────────────────────────────── */
.cal-wrap { max-width:1400px; margin:0 auto; padding:32px 40px; }
.cal-controls {
  display:flex; align-items:center; justify-content:space-between;
  margin-bottom:22px; gap:12px;
}
.cal-title-block { text-align:center; flex:1; }
.cal-month-np { font-size:26px; font-weight:800; font-family:var(--fn); }
.cal-month-ad { font-size:14px; color:var(--ink-3); font-family:var(--fe); margin-top:3px; }
.cal-arrow {
  width:38px; height:38px; border-radius:var(--r-sm);
  border:1px solid var(--border); background:var(--surface);
  display:flex; align-items:center; justify-content:center;
  font-size:16px; transition:var(--t); flex-shrink:0;
}
.cal-arrow:hover { background:var(--gold); color:#fff; border-color:var(--gold); }
.cal-today-btn {
  padding:7px 16px; border-radius:var(--r-sm);
  background:var(--surface-2); border:1px solid var(--border);
  font-size:13px; font-weight:600; font-family:var(--fn);
  transition:var(--t); margin-bottom:14px; width:100%;
}
.cal-today-btn:hover { background:var(--gold-bg); border-color:var(--gold-border); }
/* ── TRADITIONAL CALENDAR DESIGN ───────────────── */
.cal-head-row {
  display:grid; grid-template-columns:repeat(7,1fr);
  background:#C62828; border-radius:var(--r-md) var(--r-md) 0 0;
  overflow:hidden;
}
.cal-th { padding:10px 4px; text-align:center; border-right:1px solid rgba(255,255,255,.12); }
.cal-th:last-child { border-right:none; }
.th-np { display:block; font-size:16px; font-weight:800; color:#fff; font-family:var(--fn); }
.th-en { display:block; font-size:10px; color:rgba(255,255,255,.65); font-family:var(--fe); margin-top:2px; }
.cal-th.th-sun .th-np { color:#FFCDD2; }
.cal-th.th-fg .th-np { color:#C8E6C9; }
.cal-th.th-fg .th-en { color:rgba(200,230,200,.7); }

.cal-grid {
  display:grid; grid-template-columns:repeat(7,1fr);
  border:1px solid #E0E0E0; border-top:none;
  border-radius:0 0 var(--r-md) var(--r-md); overflow:hidden;
}
.cal-cell {
  min-height:100px; padding:5px 6px; cursor:pointer;
  transition:background .12s; background:#fff;
  border-right:1px solid #E8E8E8; border-bottom:1px solid #E8E8E8;
  display:flex; flex-direction:column;
}
.cal-cell:last-child { border-right:none; }
.cal-cell:hover { background:#FFFDE7; }
.cal-cell.empty { background:#FAFAFA; cursor:default; align-items:center; justify-content:center; border:1px solid #F0F0F0; }
.cal-cell.empty::before { content:'ॐ'; font-size:26px; color:var(--gold-lt); font-family:var(--fn); }
.cal-cell.today { background:#FFFDE7; }
.cal-cell.sun { background:#F5F8FF; }
.cal-cell.sat { background:#FFF5F5; }
.cal-cell.holiday { background:#FFF0F0; }

/* Tithi - very top */
.ct {
  font-size:12px; font-weight:700; color:#555; font-family:var(--fn);
  line-height:1.3; min-height:15px; display:block;
}
.cal-cell.sun .ct { color:#1565C0; }
.cal-cell.sat .ct { color:#C62828; }
.cal-cell.holiday .ct { color:#C62828; }

/* Center: big Nepali numeral */
.cn-wrap { display:flex; flex-direction:column; align-items:center; flex:1; justify-content:center; padding:2px 0; }
.cn {
  font-size:30px; font-weight:900; font-family:var(--fn);
  line-height:1; color:#222; display:inline-flex;
  align-items:center; justify-content:center;
}
.cal-cell.sun .cn { color:#1565C0; }
.cal-cell.sat .cn { color:#C62828; }
.cal-cell.holiday .cn { color:#C62828; }
.cal-cell.today .cn {
  width:40px; height:40px; border-radius:50%;
  border:2.5px solid var(--gold); background:rgba(200,150,12,.1);
}

/* AD date */
.ca { font-size:12px; color:#999; font-family:var(--fe); margin-top:3px; }

/* Festival - very bottom */
.cf {
  font-size:11px; font-weight:700; color:#C62828; font-family:var(--fn);
  line-height:1.4; margin-top:auto; overflow:hidden;
  text-overflow:ellipsis; white-space:nowrap; display:block;
  padding-top:3px;
}
.cal-legend { display:flex; gap:14px; flex-wrap:wrap; margin-top:14px; }
.cal-legend span { font-size:12px; font-family:var(--fe); }

/* ── FORMS ───────────────────────────────────────── */
.form-row { display:grid; gap:10px; }
.form-row.cols-3 { grid-template-columns:repeat(3,1fr); }
.form-row.cols-2 { grid-template-columns:repeat(2,1fr); }
.form-group { display:flex; flex-direction:column; gap:5px; }
.form-label { font-size:12px; font-weight:600; color:var(--ink-2); font-family:var(--fn); }
.form-input, .form-select {
  border:1.5px solid var(--border); border-radius:var(--r-sm);
  padding:12px 14px; font-size:15px; font-family:var(--fe);
  color:var(--ink); background:var(--surface); width:100%;
  transition:var(--t);
}
.form-input:focus, .form-select:focus {
  outline:none; border-color:var(--gold);
  box-shadow:0 0 0 3px rgba(200,150,12,.12);
}
.form-select { cursor:pointer; }

/* Buttons */
.btn {
  display:inline-flex; align-items:center; gap:6px; justify-content:center;
  padding:12px 22px; border-radius:var(--r-sm);
  font-size:15px; font-weight:700; font-family:var(--fn);
  transition:var(--t); cursor:pointer; border:none;
}
.btn-gold {
  background:linear-gradient(135deg, var(--gold) 0%, var(--gold-lt) 100%);
  color:#fff; box-shadow:var(--shadow-gold);
}
.btn-gold:hover { transform:translateY(-1px); box-shadow:0 6px 24px rgba(200,150,12,.35); }
.btn-gold:active { transform:translateY(0); }
.btn-outline {
  background:var(--surface); color:var(--ink-2);
  border:1.5px solid var(--border);
}
.btn-outline:hover { border-color:var(--gold); color:var(--gold); }
.btn-sm { padding:7px 14px; font-size:13px; }
.btn-full { width:100%; margin-top:12px; }

/* Result box */
.result-box {
  margin-top:14px; background:var(--gold-bg);
  border:1.5px solid var(--gold-border); border-radius:var(--r-md);
  padding:16px; display:none;
}
.result-box.show { display:block; }
.result-num { font-size:26px; font-weight:900; color:var(--gold); font-family:var(--fn); }
.result-note { font-size:12px; color:var(--ink-3); font-family:var(--fe); margin-top:3px; }

/* ── RADIO ───────────────────────────────────────── */
.radio-bar {
  background:linear-gradient(135deg,#0F0C29 0%,#302B63 50%,#24243E 100%);
  border-radius:var(--r-lg); padding:20px; margin-bottom:20px; color:#fff;
  display:flex; align-items:center; gap:16px; flex-wrap:wrap;
}
.radio-bar-info { flex:1; min-width:160px; }
.radio-np-label { font-size:10px; opacity:.55; text-transform:uppercase; letter-spacing:1.5px; font-family:var(--fe); }
.radio-name { font-size:18px; font-weight:800; font-family:var(--fn); margin:2px 0; }
.radio-freq { font-size:12px; opacity:.65; font-family:var(--fe); }
.radio-ctrls { display:flex; align-items:center; gap:10px; }
.radio-btn {
  width:46px; height:46px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  font-size:20px; transition:var(--t);
}
.radio-play { background:var(--gold); color:#fff; box-shadow:var(--shadow-gold); }
.radio-play:hover { transform:scale(1.08); }
.radio-stop { background:rgba(255,255,255,.15); color:#fff; }
.radio-stop:hover { background:rgba(255,255,255,.25); }
.radio-spin { width:18px; height:18px; border:2px solid rgba(255,255,255,.25); border-top-color:#fff; border-radius:50%; animation:spin .7s linear infinite; display:none; }
.radio-spin.on { display:block; }
.station-list { display:flex; flex-direction:column; gap:8px; }
.station-row {
  display:flex; align-items:center; gap:14px;
  background:var(--surface); border:1px solid var(--border);
  border-radius:var(--r-md); padding:12px 16px;
  cursor:pointer; transition:var(--t);
}
.station-row:hover { border-color:var(--gold); background:var(--gold-bg); }
.station-row.on { border-color:var(--gold); background:var(--gold-bg); }
.station-row.on .sname { color:var(--gold); }
.station-icon { font-size:24px; flex-shrink:0; }
.station-body { flex:1; }
.sname { font-size:16px; font-weight:700; font-family:var(--fn); }
.smeta { font-size:12px; color:var(--ink-3); font-family:var(--fe); }
.sfreq { font-size:13px; font-weight:700; color:var(--gold); font-family:var(--fe); }
.s-arrow { font-size:18px; color:var(--ink-4); transition:var(--t); }
.station-row.on .s-arrow { animation:pulse 1.2s infinite; }

/* ── MANTRAS ─────────────────────────────────────── */
.mantra-list { display:flex; flex-direction:column; gap:10px; }
.mantra-row {
  background:var(--surface); border:1px solid var(--border);
  border-radius:var(--r-lg); padding:16px; transition:var(--t);
}
.mantra-row.on { border-color:var(--gold); background:var(--gold-bg); }
.mantra-top { display:flex; align-items:center; gap:12px; margin-bottom:12px; }
.mantra-ico { font-size:32px; }
.mantra-title { font-size:16px; font-weight:700; font-family:var(--fn); }
.mantra-sub { font-size:11px; color:var(--ink-3); font-family:var(--fe); }
.mantra-player { display:flex; align-items:center; gap:10px; }
.mplay {
  width:40px; height:40px; border-radius:50%; flex-shrink:0;
  background:linear-gradient(135deg,var(--gold),var(--gold-lt));
  color:#fff; display:flex; align-items:center; justify-content:center;
  font-size:16px; box-shadow:var(--shadow-gold); transition:var(--t);
}
.mplay:hover { transform:scale(1.08); }
.mbar { flex:1; height:5px; background:var(--border); border-radius:99px; cursor:pointer; overflow:hidden; }
.mfill { height:100%; background:linear-gradient(90deg,var(--gold),var(--gold-lt)); border-radius:99px; transition:width .3s; }
.mtime { font-size:11px; color:var(--ink-3); font-family:var(--fe); white-space:nowrap; min-width:36px; text-align:right; }

/* ── DICTIONARY ──────────────────────────────────── */
.dict-search { display:flex; gap:10px; margin-bottom:22px; }
.dict-search .form-input { flex:1; }
.dict-entry { background:var(--surface); border:1px solid var(--border); border-radius:var(--r-lg); padding:22px; }
.dict-entry + .dict-entry { margin-top:14px; }
.dict-word { font-size:30px; font-weight:900; font-family:var(--fe); color:var(--ink); }
.dict-phon { font-size:14px; color:var(--ink-3); font-family:var(--fe); margin-top:2px; }
.dict-badge {
  display:inline-block; background:var(--gold-bg); color:var(--gold);
  border:1.5px solid var(--gold-border); border-radius:99px;
  padding:2px 12px; font-size:11px; font-weight:700; font-family:var(--fe);
  margin:10px 0 6px;
}
.dict-def { font-size:14px; color:var(--ink); margin:4px 0; line-height:1.65; font-family:var(--fe); }
.dict-num { color:var(--ink-3); margin-right:4px; }
.dict-eg { font-size:13px; color:var(--ink-2); font-style:italic; border-left:3px solid var(--gold-border); padding-left:10px; margin:4px 0 8px; font-family:var(--fe); }
.dict-tags { display:flex; flex-wrap:wrap; gap:5px; margin-top:8px; }
.dtag { padding:3px 9px; border-radius:99px; font-size:11px; font-weight:600; font-family:var(--fe); }
.dtag-s { background:var(--green-bg); color:var(--green); }
.dtag-a { background:var(--red-bg); color:var(--red); }
.dict-empty { text-align:center; padding:48px 20px; color:var(--ink-3); }
.dict-empty-icon { font-size:48px; margin-bottom:10px; }
.dict-empty-title { font-size:16px; font-weight:700; font-family:var(--fn); margin-bottom:4px; }
.dict-empty-sub { font-size:13px; font-family:var(--fe); }

/* ── DREAMS ──────────────────────────────────────── */
.dreams-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(270px,1fr)); gap:10px; }
.dream-card {
  background:var(--surface); border:1px solid var(--border);
  border-radius:var(--r-md); padding:16px; cursor:pointer; transition:var(--t);
}
.dream-card:hover { border-color:var(--gold); transform:translateY(-2px); box-shadow:var(--shadow-md); }
.dream-name { font-size:17px; font-weight:700; font-family:var(--fn); }
.dream-cat {
  display:inline-block; background:var(--gold-bg); color:var(--gold);
  border:1px solid var(--gold-border); border-radius:99px;
  padding:1px 9px; font-size:10px; font-weight:600; font-family:var(--fn); margin:5px 0 7px;
}
.dream-preview { font-size:14px; color:var(--ink-3); font-family:var(--fn); line-height:1.6; overflow:hidden; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; }

/* ── PRO ANALOG CLOCK ── */
.analog-clock.pro-clock {
  width: 140px; 
  height: 140px; 
  margin: 0 auto;
  border-radius: 50%;
  background: radial-gradient(circle at center, #ffffff 0%, #f7f7f7 100%);
  position: relative;
  border: 6px solid #d4af37;
  box-shadow: 
    0 8px 20px rgba(0,0,0,0.15), 
    inset 0 4px 10px rgba(0,0,0,0.1),
    0 0 0 1px #b5952f,
    inset 0 0 0 1px rgba(255,255,255,0.8);
}
.pro-clock .clock-face { position:relative; width:100%; height:100%; }

/* Ticks */
.pro-clock .clock-tick {
  position: absolute;
  top: 0; left: 50%;
  transform-origin: 50% 70px;
  background: #aaa;
}
.pro-clock .thick-tick { width: 3px; height: 8px; margin-left: -1.5px; background: #333; }
.pro-clock .thin-tick { width: 1px; height: 4px; margin-left: -0.5px; }

/* Numbers */
.pro-clock .clock-num {
  position: absolute;
  top: 10px; left: 50%;
  width: 20px; height: 60px;
  margin-left: -10px;
  transform-origin: 50% 60px;
  text-align: center;
  font-family: var(--fn);
  font-weight: 800;
  font-size: 16px;
  color: #111;
}

/* Hands */
.pro-clock .hand {
  position: absolute; bottom: 50%; left: 50%;
  transform-origin: bottom center;
  border-radius: 4px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.3);
  z-index: 5;
}
.pro-clock .hour-hand {
  width: 6px; height: 26%; 
  background: #222; 
  margin-left: -3px;
  border-radius: 3px 3px 0 0;
}
.pro-clock .hour-hand::after {
  content: ''; position:absolute; top:-4px; left:0;
  border-left:3px solid transparent; border-right:3px solid transparent; border-bottom:4px solid #222;
}
.pro-clock .min-hand {
  width: 4px; height: 38%; 
  background: #444; 
  margin-left: -2px;
  border-radius: 2px 2px 0 0;
}
.pro-clock .min-hand::after {
  content: ''; position:absolute; top:-4px; left:0;
  border-left:2px solid transparent; border-right:2px solid transparent; border-bottom:4px solid #444;
}
.pro-clock .sec-hand {
  width: 2px; height: 46%; 
  background: #d32f2f; 
  margin-left: -1px;
  z-index: 6;
  box-shadow: 0 4px 10px rgba(211,47,47,0.4);
}
.pro-clock .sec-hand::after {
  content: ''; position: absolute; bottom: -12px; left: -2px;
  width: 6px; height: 12px; background: #d32f2f; border-radius: 10px;
}

/* Center Cap */
.pro-clock .clock-center {
  position: absolute; top: 50%; left: 50%; 
  width: 10px; height: 10px;
  background: radial-gradient(circle at 30% 30%, #ffd700, #b8860b);
  border-radius: 50%; transform: translate(-50%,-50%); 
  z-index: 10;
  box-shadow: 0 2px 4px rgba(0,0,0,0.4);
}

/* Glass glare effect */
.pro-clock::before {
  content: ''; position: absolute; top: 2%; left: 5%;
  width: 90%; height: 45%;
  border-radius: 50% 50% 0 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.4) 0%, rgba(255,255,255,0) 100%);
  pointer-events: none;
  z-index: 20;
}

/* ── RASHIFAL ────────────────────────────────────── */
.rashi-tab { background:var(--bg); border:1px solid var(--border); color:var(--ink-2); padding:6px 14px; border-radius:20px; font-size:13px; font-family:var(--fn); cursor:pointer; transition:all 0.2s ease; }
.rashi-tab:hover { border-color:var(--gold); color:var(--gold); }
.rashi-tab.on { background:var(--gold); border-color:var(--gold); color:#fff; font-weight:700; }
.rashi-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(150px,1fr)); gap:10px; }
.rashi-card {
  background:var(--surface); border:1px solid var(--border);
  border-radius:var(--r-lg); padding:20px 12px; text-align:center;
  cursor:pointer; transition:var(--t);
}
.rashi-card:hover { border-color:var(--gold); transform:translateY(-3px); box-shadow:var(--shadow-md); }
.rashi-sym { font-size:36px; margin-bottom:8px; }
.rashi-np { font-size:17px; font-weight:800; font-family:var(--fn); }
.rashi-en { font-size:11px; color:var(--ink-3); font-family:var(--fe); }
.rashi-planet { font-size:10px; color:var(--gold); font-weight:700; font-family:var(--fn); margin-top:4px; }

/* ── FESTIVALS ───────────────────────────────────── */
.fest-filters { display:flex; gap:8px; flex-wrap:wrap; margin-bottom:16px; }
.fest-filter {
  padding:6px 14px; border-radius:99px; border:1.5px solid var(--border);
  font-size:13px; font-weight:600; font-family:var(--fn);
  background:var(--surface); color:var(--ink-2); transition:var(--t);
}
.fest-filter:hover { border-color:var(--gold); color:var(--gold); }
.fest-filter.on { background:var(--gold); color:#fff; border-color:var(--gold); }
.fest-list { display:flex; flex-direction:column; gap:8px; }
.fest-row {
  display:flex; align-items:center; gap:14px;
  background:var(--surface); border:1px solid var(--border);
  border-radius:var(--r-sm); padding:13px 16px; transition:var(--t);
}
.fest-row:hover { background:var(--surface-2); }
.fest-row.holiday { border-left:3px solid var(--red); }
.fest-ico { font-size:22px; flex-shrink:0; }
.fest-body { flex:1; }
.fest-name { font-size:14px; font-weight:700; font-family:var(--fn); }
.fest-date { font-size:11px; color:var(--ink-3); font-family:var(--fe); margin-top:2px; }
.fest-badge { font-size:10px; padding:2px 8px; border-radius:99px; font-weight:700; flex-shrink:0; }
.badge-h { background:var(--red-bg); color:var(--red); }
.badge-f { background:var(--gold-bg); color:var(--gold); }

/* ── NEWS ────────────────────────────────────────────── */
.news-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(280px,1fr)); gap:16px; margin-top:20px; }
.news-card {
  background:var(--surface); border:1px solid var(--border); border-radius:12px; overflow:hidden;
  cursor:pointer; transition:all 0.3s cubic-bezier(0.4,0,0.2,1); display:flex; flex-direction:column;
}
.news-card:hover { transform:translateY(-4px); box-shadow:0 8px 24px rgba(0,0,0,0.08); border-color:var(--gold); }
html.dark .news-card:hover { box-shadow:0 8px 24px rgba(0,0,0,0.3); }
.news-img { width:100%; height:160px; background-size:cover; background-position:center; background-color:var(--bg); border-bottom:1px solid var(--border); }
.news-content { padding:14px; flex-grow:1; display:flex; flex-direction:column; justify-content:space-between; }
.news-title { font-size:15px; font-weight:600; color:var(--ink-1); font-family:var(--fe); margin-bottom:10px; line-height:1.4; display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; }
.news-meta { display:flex; justify-content:space-between; align-items:center; font-size:12px; color:var(--ink-3); font-family:var(--fn); }
.news-source { font-weight:600; color:var(--gold); }
.news-date { font-size:11px; }

/* ── GAMES ───────────────────────────────────────────── */
.games-sel { display:grid; grid-template-columns:repeat(auto-fill,minmax(180px,1fr)); gap:14px; margin-bottom:24px; }
.game-pick {
  background:var(--surface); border:1px solid var(--border);
  border-radius:var(--r-xl); padding:28px 14px;
  display:flex; flex-direction:column; align-items:center; gap:12px;
  cursor:pointer; transition:var(--t); text-align:center;
}
.game-pick:hover { border-color:var(--gold); transform:translateY(-3px); box-shadow:var(--shadow-md); }
.game-ico { font-size:52px; }
.game-pick-name { font-size:16px; font-weight:800; font-family:var(--fn); }
.game-pick-en { font-size:12px; color:var(--ink-3); font-family:var(--fe); }
.game-area { display:none; }
.game-area.on { display:block; }
.game-topbar {
  display:flex; align-items:center; justify-content:space-between;
  margin-bottom:18px; gap:10px; flex-wrap:wrap;
}
.game-scores { display:flex; gap:20px; }
.game-score { display:flex; flex-direction:column; align-items:center; }
.game-score-lbl { font-size:10px; color:var(--ink-3); text-transform:uppercase; letter-spacing:1px; font-family:var(--fe); }
.game-score-val { font-size:26px; font-weight:900; font-family:var(--fe); color:var(--ink); }
#snake-canvas { display:block; margin:0 auto; border-radius:var(--r-md); border:2px solid var(--border); touch-action:none; max-width:100%; }
.dpad { display:grid; grid-template-columns:repeat(3,46px); grid-template-rows:repeat(3,46px); gap:4px; margin:16px auto 0; }
.dpad-btn {
  background:var(--surface-2); border:1.5px solid var(--border);
  border-radius:var(--r-sm); display:flex; align-items:center;
  justify-content:center; font-size:18px; transition:var(--t);
}
.dpad-btn:hover, .dpad-btn:active { background:var(--gold); color:#fff; border-color:var(--gold); }
#ttt-board { display:grid; grid-template-columns:repeat(3,1fr); gap:8px; max-width:280px; margin:0 auto; }
.ttt-c {
  aspect-ratio:1; background:var(--surface-2); border:2px solid var(--border);
  border-radius:var(--r-md); display:flex; align-items:center; justify-content:center;
  font-size:44px; cursor:pointer; transition:var(--t); user-select:none;
}
.ttt-c:hover:not(.taken) { background:var(--gold-bg); border-color:var(--gold); }
.ttt-c.x { color:var(--red); }
.ttt-c.o { color:var(--blue); }
.ttt-status { text-align:center; margin:12px 0; font-size:16px; font-weight:700; font-family:var(--fn); min-height:28px; }

/* ── GOLD PRICE ──────────────────────────────────── */
.gold-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(160px,1fr)); gap:12px; }
.gold-card {
  background:linear-gradient(135deg,var(--gold-bg) 0%,#FFF8DC 100%);
  border:1.5px solid var(--gold-border); border-radius:var(--r-lg);
  padding:18px; text-align:center;
}
.gm { font-size:14px; font-weight:700; font-family:var(--fn); }
.gu { font-size:10px; color:var(--ink-3); font-family:var(--fe); margin:3px 0; }
.gp { font-size:22px; font-weight:900; color:var(--gold); font-family:var(--fe); }
.gc { font-size:11px; font-family:var(--fe); margin-top:3px; }
.gc.up { color:var(--green); } .gc.dn { color:var(--red); }

/* ── AGE RESULT ──────────────────────────────────── */
.age-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; margin-top:16px; }
.age-box { background:var(--gold-bg); border:1.5px solid var(--gold-border); border-radius:var(--r-md); padding:16px; text-align:center; }
.age-n { font-size:34px; font-weight:900; color:var(--gold); font-family:var(--fe); }
.age-u { font-size:14px; color:var(--ink-2); font-family:var(--fn); font-weight:600; }

/* ── MODAL ───────────────────────────────────────── */
.modal-bg {
  display:none; position:fixed; inset:0; z-index:2000;
  background:rgba(0,0,0,.45); align-items:center; justify-content:center; padding:20px;
  backdrop-filter:blur(2px);
}
.modal-bg.open { display:flex; }
.modal-box {
  background:var(--surface); border-radius:var(--r-xl);
  padding:26px; max-width:520px; width:100%;
  max-height:85vh; overflow-y:auto;
  box-shadow:var(--shadow-lg); position:relative;
  animation:fadeUp .2s var(--ease);
}
.modal-close {
  position:absolute; top:14px; right:14px; width:30px; height:30px;
  border-radius:50%; background:var(--surface-2); font-size:16px;
  display:flex; align-items:center; justify-content:center;
  color:var(--ink-3); transition:var(--t);
}
.modal-close:hover { background:var(--red); color:#fff; }
.modal-title { font-size:20px; font-weight:800; font-family:var(--fn); margin-bottom:14px; padding-right:36px; }

/* ── SEARCH ──────────────────────────────────────── */
.search-wrap { position:relative; margin-bottom:18px; }
.search-wrap input {
  width:100%; padding:12px 16px 12px 44px;
  border:1.5px solid var(--border); border-radius:var(--r-md);
  font-size:14px; font-family:var(--fn); color:var(--ink);
  background:var(--surface); transition:var(--t);
}
.search-wrap input:focus { outline:none; border-color:var(--gold); box-shadow:0 0 0 3px rgba(200,150,12,.1); }
.search-ico { position:absolute; left:14px; top:50%; transform:translateY(-50%); font-size:18px; color:var(--ink-4); pointer-events:none; }

/* ── BOTTOM NAV (mobile) ─────────────────────────── */
#bot-nav {
  display:none; position:fixed; bottom:0; left:0; right:0; z-index:999;
  height:var(--bot-h); background:var(--surface);
  border-top:1px solid var(--border); box-shadow:0 -4px 20px rgba(0,0,0,.06);
}
.bot-items { display:flex; height:100%; }
.bot-item {
  flex:1; display:flex; flex-direction:column; align-items:center;
  justify-content:center; gap:3px; cursor:pointer; transition:var(--t);
  color:var(--ink-3); padding:0 4px;
}
.bot-item.on { color:var(--gold); }
.bot-ico { font-size:22px; line-height:1; }
.bot-lbl { font-size:10px; font-weight:600; font-family:var(--fn); }

/* More drawer */
.more-drawer {
  display:none; position:fixed; bottom:var(--bot-h); left:0; right:0;
  background:var(--surface); border-top:1px solid var(--border);
  padding:16px; z-index:998; box-shadow:0 -8px 30px rgba(0,0,0,.08);
  animation:slideUp .2s var(--ease);
}
.more-drawer.open { display:block; }
@keyframes slideUp { from { transform:translateY(20px); opacity:0; } to { transform:translateY(0); opacity:1; } }
.more-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:10px; }
.more-item {
  display:flex; flex-direction:column; align-items:center; gap:4px;
  cursor:pointer; padding:10px 4px; border-radius:var(--r-md); transition:var(--t);
}
.more-item:hover, .more-item.on { background:var(--gold-bg); }
.more-item .mi { font-size:26px; }
.more-item .ml { font-size:11px; font-weight:600; font-family:var(--fn); color:var(--ink); text-align:center; }

/* ── TOAST ───────────────────────────────────────── */
.toast {
  position:fixed; bottom:76px; left:50%; transform:translateX(-50%) translateY(10px);
  background:#1A1A1A; color:#fff; padding:10px 22px; border-radius:99px;
  font-size:14px; font-family:var(--fn); z-index:9999;
  opacity:0; pointer-events:none; transition:all .25s var(--ease); white-space:nowrap;
}
.toast.show { opacity:1; transform:translateX(-50%) translateY(0); }

/* ── SKELETON LOADER ─────────────────────────────── */
.skeleton { background:linear-gradient(90deg,var(--surface-2) 25%,var(--surface-3) 50%,var(--surface-2) 75%); background-size:200% 100%; animation:shimmer 1.4s infinite; border-radius:var(--r-sm); }
@keyframes shimmer { 0% { background-position:200% 0; } 100% { background-position:-200% 0; } }
.skel-line { height:14px; border-radius:99px; }
.skel-card { height:80px; border-radius:var(--r-md); }

/* ── SPINNER ─────────────────────────────────────── */
.spinner-wrap { display:flex; justify-content:center; align-items:center; padding:40px; }
.spinner { width:32px; height:32px; border:3px solid var(--border); border-top-color:var(--gold); border-radius:50%; animation:spin .8s linear infinite; }
@keyframes spin { to { transform:rotate(360deg); } }
@keyframes pulse { 0%,100%{opacity:1}50%{opacity:.4} }

/* ── FOOTER ──────────────────────────────────────── */
footer {
  background:var(--surface-2); border-top:1px solid var(--border);
  padding:28px 24px; text-align:center;
}
.footer-links { display:flex; justify-content:center; gap:20px; flex-wrap:wrap; margin-bottom:12px; }
.footer-link { font-size:13px; color:var(--ink-3); font-family:var(--fn); cursor:pointer; transition:var(--t); }
.footer-link:hover { color:var(--gold); }
.footer-copy { font-size:12px; color:var(--ink-4); font-family:var(--fe); line-height:1.8; }
.footer-copy a { color:var(--gold); font-weight:600; }

/* ── HERO SECTION ────────────────────────────────── */
.hero { padding: 20px 20px; background: linear-gradient(135deg, var(--surface) 0%, var(--surface-2) 100%); border-bottom: 1px solid var(--border); }
.hero-inner { max-width:1400px; margin:0 auto; display:flex; align-items:center; justify-content:space-between; gap:32px; flex-wrap:wrap; }

/* ── PAGE NAV URL INDICATOR ──────────────────────── */
.url-crumb {
  background:var(--surface-2); border-bottom:1px solid var(--border);
  padding:6px 20px; font-size:11px; font-family:var(--fe); color:var(--ink-3);
  display:flex; align-items:center; gap:6px;
}
.url-crumb a { color:var(--gold); cursor:pointer; }

/* ── HOME MINI CALENDAR ─────────────────────────── */
.home-cal { background:var(--surface); border:1px solid var(--border); border-radius:var(--r-xl); box-shadow:var(--shadow-sm); overflow:hidden; }
.home-cal-head { display:flex; align-items:center; justify-content:space-between; padding:16px 20px; background:var(--gold-bg); border-bottom:1px solid var(--gold-border); }
.home-cal-title { font-size:18px; font-weight:800; font-family:var(--fn); }
.home-cal-sub { font-size:12px; color:var(--ink-3); font-family:var(--fe); margin-top:2px; }
.home-cal-nav { display:flex; gap:6px; }
.home-cal-btn { width:32px; height:32px; border-radius:var(--r-sm); border:1px solid var(--border); background:var(--surface); display:flex; align-items:center; justify-content:center; font-size:14px; cursor:pointer; transition:var(--t); }
.home-cal-btn:hover { background:var(--gold); color:#fff; border-color:var(--gold); }
.home-cal-body { padding:14px; }
.home-cal-wd { display:grid; grid-template-columns:repeat(7,1fr); margin-bottom:5px; }
.home-cal-wd div { text-align:center; font-size:11px; font-weight:700; color:var(--ink-3); padding:4px 2px; font-family:var(--fn); }
.home-cal-wd .s { color:var(--red); } .home-cal-wd .f { color:var(--blue); }
.home-cal-grid { display:grid; grid-template-columns:repeat(7,1fr); gap:2px; }
.hc-cell { text-align:center; padding:5px 2px; border-radius:5px; cursor:pointer; transition:var(--t); min-height:38px; display:flex; flex-direction:column; align-items:center; justify-content:center; }
.hc-cell:hover { background:var(--gold-bg); }
.hc-cell.empty { cursor:default; }
.hc-cell.today { background:var(--gold); border-radius:6px; }
.hc-cell.today .hcn { color:#fff; }
.hc-cell.sun .hcn { color:var(--blue); }
.hc-cell.sat .hcn { color:var(--red); }
.hc-cell.hol .hcn { color:var(--red); font-weight:900; }
.hcn { font-size:15px; font-weight:700; font-family:var(--fn); line-height:1; }
.hca { font-size:9px; color:var(--ink-4); font-family:var(--fe); }
.home-cal-footer { padding:10px 14px; border-top:1px solid var(--border); display:flex; gap:12px; flex-wrap:wrap; }
.home-cal-footer span { font-size:11px; color:var(--ink-3); font-family:var(--fe); }

/* ── INFO BOX ────────────────────────────────────── */
.info-box {
  background:var(--blue-bg); border:1px solid #C5D8F5;
  border-radius:var(--r-md); padding:14px 16px; font-size:14px;
  font-family:var(--fn); color:var(--ink-2); margin-bottom:16px;
  display:flex; gap:10px; align-items:flex-start; line-height:1.6;
}

/* ── RESPONSIVE ──────────────────────────────────── */
@media (max-width:900px) {
  .nav-tabs { display:none; }
  #bot-nav { display:block; }
  #app { padding-bottom:var(--bot-h); }
  footer { display:none; }
  .hero-inner { grid-template-columns:1fr; }
  .panchang-card { max-width:100%; }
  .form-row.cols-3 { grid-template-columns:1fr 1fr 1fr; }
  .wrap, .wrap-wide, .cal-wrap, .features-wrap { padding:20px 16px; }
}
@media (max-width:600px) {
  #top-nav { padding:0 14px; gap:10px; }
  .nav-brand-name { font-size:16px; }
  #live-time { font-size:15px; }
  .hero { padding:20px 16px 18px; }
  .wrap, .wrap-wide, .features-wrap, .cal-wrap { padding:18px 14px; }
  .feat-grid { grid-template-columns:repeat(4,1fr); gap:8px; }
  .feat-icon { font-size:22px; }
  .feat-name { font-size:10px; }
  .feat-name-en { display:none; }
  .feat-card { padding:12px 6px; gap:5px; }
  .cal-cell { min-height:56px; }
  .cn { font-size:17px; }
  .ca,.ct,.cf { display:none; }
  .dreams-grid { grid-template-columns:1fr; }
  .rashi-grid { grid-template-columns:repeat(3,1fr); }
  .gold-grid { grid-template-columns:repeat(2,1fr); }
  .age-grid { grid-template-columns:repeat(3,1fr); }
  .form-row.cols-3 { grid-template-columns:1fr 1fr 1fr; }
  .games-sel { grid-template-columns:repeat(2,1fr); }
  .cal-cell { min-height:56px; padding:3px 4px; }
  .cn { font-size:18px; }
  .ca { font-size:10px; }
  .ct,.cf { font-size:9px; }
  .cal-cell.today .cn { width:28px; height:28px; }
  .cal-cell.empty::before { font-size:18px; }
  .th-np { font-size:12px; } .th-en { display:none; }
  .cal-th { padding:7px 2px; }
  .home-cal-grid .hcn { font-size:13px; }
}
@media (max-width:380px) {
  .feat-grid { grid-template-columns:repeat(3,1fr); }
}
@media (min-width:901px) {
  footer { display:block; }
  #app { padding-bottom:0; }
  .cal-cell { min-height:106px; }
  .cn { font-size:32px; }
  .features-wrap { padding:32px 40px; }
  .hero { padding:36px 40px 32px; }
  .hero-inner { max-width:1400px; margin:0 auto; }
  .hero-date { font-size:clamp(38px,5vw,64px); }
}
/* -- KUNDALI ---------------------------------------------- */
.k-tabs { border-bottom:1px solid var(--border); }
.k-tab { padding:10px 16px; background:none; border:none; color:var(--ink-2); font-weight:600; cursor:pointer; font-size:14px; white-space:nowrap; }
.k-tab.active { color:var(--gold); border-bottom:2px solid var(--gold); }
.styled-table td, .styled-table th { padding:10px; border-bottom:1px solid var(--border); }
.styled-table th { background:var(--surface); color:var(--ink-2); }
.styled-table tr:last-child td { border-bottom:none; }
.loc-item:hover { background:var(--bg); }
