/* Atharv Sharma Puja Booking – light saffron theme (no dark backgrounds) */
.apb-scope {
  --sf: #C97A1E; --br: #A6531A; --cr: #FFFDF7; --cr2: #FFF6E8; --tx: #3a2c1a; --ln: #EBCB97;
  font-family: 'Noto Sans Telugu', 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--tx); line-height: 1.45; -webkit-tap-highlight-color: transparent;
}
.apb-scope *, .apb-scope *::before, .apb-scope *::after { box-sizing: border-box; }
body.apb-noscroll { overflow: hidden; }

/* ---------- App frame ---------- */
#apb-app {
  max-width: 520px; margin: 0 auto; padding: 16px 14px 22px; border-radius: 24px;
  background: linear-gradient(180deg, #FFF1D6 0%, var(--cr2) 30%, var(--cr) 100%);
  border: 2px solid var(--ln); box-shadow: 0 10px 30px rgba(201, 122, 30, .18);
}
.apb-scope .apb-apphead { display: flex; flex-direction: column; gap: 10px; }
.apb-scope .apb-brand { display: flex; align-items: center; gap: 12px; }
.apb-scope .apb-brand img { width: 58px; height: 58px; border-radius: 50%; object-fit: cover; object-position: center 20%; border: 3px solid var(--sf); background: #fff; flex: 0 0 auto; }
.apb-scope .apb-brand h2 { margin: 0; font-size: 19px; font-weight: 800; color: var(--br); line-height: 1.25; }
.apb-scope .apb-brand small { font-size: 12px; font-weight: 700; color: #7a5a2e; }

/* Language toggle */
.apb-scope .apb-lang { display: flex; gap: 6px; justify-content: flex-end; }
.apb-scope .apb-lang button {
  border: 2px solid var(--sf); background: #fff; color: var(--br); font-weight: 800; font-size: 13px;
  padding: 5px 14px; border-radius: 999px; cursor: pointer; font-family: inherit;
}
.apb-scope .apb-lang button.on { background: var(--sf); color: #fff; }

/* ---------- Panchangam card ---------- */
.apb-scope .apb-panch {
  margin-top: 14px; border-radius: 20px; padding: 14px; position: relative; overflow: hidden;
  background: radial-gradient(circle at 100% 0%, #FFE4A8 0, rgba(255, 228, 168, 0) 45%), #FFFDF7;
  border: 2px solid var(--sf); box-shadow: inset 0 0 0 4px #FFF1D6;
}
.apb-scope .apb-panch::after {
  content: '☀'; position: absolute; right: -6px; top: -14px; font-size: 70px; color: rgba(255, 179, 0, .18); pointer-events: none;
}
.apb-scope .apb-panch-h { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; font-weight: 800; color: var(--br); font-size: 16px; }
.apb-scope .apb-clock { font-size: 13px; background: #FFF1D6; border: 1px solid var(--ln); padding: 3px 10px; border-radius: 999px; color: var(--tx); font-variant-numeric: tabular-nums; }
.apb-scope .apb-pdate { margin: 6px 0 10px; font-size: 15px; font-weight: 800; color: var(--tx); }
.apb-scope .apb-pgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.apb-scope .apb-prow { background: #FFF6E8; border: 1px solid var(--ln); border-radius: 12px; padding: 7px 10px; }
.apb-scope .apb-prow span { display: block; font-size: 11.5px; font-weight: 700; color: #8a6532; }
.apb-scope .apb-prow b { display: block; font-size: 14px; font-weight: 800; color: var(--tx); }
.apb-scope .apb-pnote { margin-top: 8px; font-size: 11.5px; font-weight: 700; color: #8a6532; text-align: right; }
.apb-scope .apb-notice { margin-top: 12px; padding: 10px 12px; border-radius: 14px; background: #FFF9C4; border: 1px dashed var(--sf); font-weight: 700; font-size: 14px; }

/* ---------- Nav buttons ---------- */
.apb-scope .apb-nav { display: flex; flex-direction: column; gap: 14px; margin-top: 18px; }
.apb-scope .apb-navbtn {
  font-family: inherit; font-size: 19px; font-weight: 800; padding: 17px 16px; border-radius: 18px; cursor: pointer;
  border: 2px solid var(--sf); background: #fff; color: var(--br); box-shadow: 0 5px 0 #E6B676;
  transition: transform .15s, box-shadow .15s; opacity: 0; animation: apbIn .5s ease forwards;
}
.apb-scope .apb-navbtn:nth-child(2) { animation-delay: .12s; }
.apb-scope .apb-navbtn:nth-child(3) { animation-delay: .24s; }
.apb-scope .apb-navbtn.apb-main { background: linear-gradient(135deg, #E59A35, var(--sf) 55%, var(--br)); color: #fff; border-color: var(--br); box-shadow: 0 5px 0 #8A4214; }
.apb-scope .apb-navbtn.apb-ghost { background: #FFF6E8; }
.apb-scope .apb-navbtn:hover { transform: translateY(-3px); }
.apb-scope .apb-navbtn:active { transform: translateY(3px); box-shadow: 0 2px 0 #E6B676; }
.apb-scope .apb-navbtn.apb-disabled { background: #EEE7DC; color: #8a7a66; border-color: #CFC3B0; box-shadow: none; cursor: not-allowed; font-size: 15px; }
.apb-scope .apb-foot { margin-top: 18px; text-align: center; font-size: 14px; font-weight: 700; }
.apb-scope .apb-foot a { color: var(--br); text-decoration: none; }
@keyframes apbIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- Splash ---------- */
.apb-splash {
  position: fixed; inset: 0; z-index: 999990; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: radial-gradient(circle at 50% 42%, #FFFDF2 0%, #FFEDBE 28%, #FFD58C 58%, #F7B45E 100%);
  transition: opacity .65s ease, transform .65s ease;
}
.apb-splash.apb-gone { opacity: 0; transform: scale(1.08); pointer-events: none; }
.apb-splash .apb-rays {
  position: absolute; left: 50%; top: 44%; width: 240vmax; height: 240vmax; margin: -120vmax 0 0 -120vmax;
  background: repeating-conic-gradient(from 0deg, rgba(255, 255, 255, .62) 0deg 5deg, rgba(255, 255, 255, 0) 5deg 15deg);
  -webkit-mask: radial-gradient(circle, #000 0%, rgba(0, 0, 0, .7) 18%, transparent 42%);
          mask: radial-gradient(circle, #000 0%, rgba(0, 0, 0, .7) 18%, transparent 42%);
  animation: apbSpin 80s linear infinite;
}
.apb-splash .apb-mandala { position: absolute; left: 50%; top: 44%; width: min(118vw, 760px); aspect-ratio: 1; transform: translate(-50%, -50%); opacity: .3; }
.apb-splash .apb-mandala svg { width: 100%; height: 100%; animation: apbSpinR 160s linear infinite; }
.apb-splash .apb-star { position: absolute; color: #FFFFFF; text-shadow: 0 0 6px #FFC107, 0 0 12px #FFB300; animation: apbTw 2.6s ease-in-out infinite; pointer-events: none; }
.apb-splash .apb-star:nth-of-type(3n) { color: #E09A1A; text-shadow: 0 0 6px #fff; }
.apb-splash .apb-toran {
  position: absolute; top: 0; left: 0; right: 0; height: 52px; pointer-events: none;
  background:
    radial-gradient(circle at 15px 11px, #FF8F00 0 8px, transparent 9px) 0 0 / 30px 22px repeat-x,
    radial-gradient(circle at 15px 11px, #FFC107 0 8px, transparent 9px) 15px 4px / 30px 22px repeat-x,
    radial-gradient(7px 16px at 15px 34px, #3E8E41 0 96%, transparent 100%) 0 0 / 30px 52px repeat-x;
  border-top: 4px solid var(--br);
}
.apb-splash .apb-kolam {
  position: absolute; left: 0; right: 0; bottom: 0; height: 44px; pointer-events: none; border-bottom: 5px solid var(--sf);
  background:
    radial-gradient(circle, #fff 0 2.4px, transparent 3px) 0 0 / 18px 18px,
    linear-gradient(45deg, transparent 46%, rgba(166, 83, 26, .35) 48% 52%, transparent 54%) 0 0 / 18px 18px,
    linear-gradient(-45deg, transparent 46%, rgba(166, 83, 26, .35) 48% 52%, transparent 54%) 0 0 / 18px 18px,
    #FFE3B0;
}
.apb-splash .apb-splash-top { position: absolute; top: 60px; right: 14px; z-index: 3; }
.apb-splash .apb-splash-center { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 18px; }
.apb-splash .apb-om { font-size: 34px; color: var(--br); font-weight: 800; margin-bottom: 8px; text-shadow: 0 0 12px #fff; }
.apb-splash .apb-photo {
  position: relative; width: min(66vw, 280px); aspect-ratio: 1; border-radius: 50%; padding: 8px;
  background: conic-gradient(#C97A1E, #FFD54F, #A6531A, #FFE082, #C97A1E);
  box-shadow: 0 0 0 7px rgba(255, 255, 255, .75), 0 0 60px 16px rgba(255, 193, 7, .6);
  animation: apbGlow 3.2s ease-in-out infinite;
}
.apb-splash .apb-photo img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; object-position: center 18%; background: #fff; display: block; cursor: pointer; }
.apb-splash .apb-enter {
  position: absolute; left: 50%; bottom: -14px; transform: translateX(-50%);
  font-family: 'Poppins', sans-serif; font-size: 19px; font-weight: 800; letter-spacing: 2px; color: #fff; cursor: pointer;
  white-space: nowrap;
  padding: 12px 30px; border-radius: 999px; border: 3px solid #fff;
  background: linear-gradient(135deg, #F0A030, var(--sf) 50%, var(--br)); box-shadow: 0 6px 18px rgba(166, 83, 26, .45);
  animation: apbPulse 1.8s ease-in-out infinite;
}
.apb-splash .apb-wtitle { margin: 30px 0 4px; font-size: clamp(22px, 6vw, 32px); font-weight: 800; color: var(--br); text-shadow: 0 2px 0 #fff; line-height: 1.25; }
.apb-splash .apb-wsub { margin: 0; font-size: 15px; font-weight: 700; color: var(--tx); }
@keyframes apbSpin { to { transform: rotate(360deg); } }
@keyframes apbSpinR { to { transform: rotate(-360deg); } }
@keyframes apbTw { 0%, 100% { opacity: .25; transform: scale(.75); } 50% { opacity: 1; transform: scale(1.15); } }
@keyframes apbPulse { 0%, 100% { transform: translateX(-50%) scale(1); } 50% { transform: translateX(-50%) scale(1.07); } }
@keyframes apbGlow { 0%, 100% { box-shadow: 0 0 0 7px rgba(255, 255, 255, .75), 0 0 50px 12px rgba(255, 193, 7, .5); } 50% { box-shadow: 0 0 0 7px rgba(255, 255, 255, .9), 0 0 80px 24px rgba(255, 193, 7, .75); } }

/* ---------- Popups ---------- */
.apb-overlay {
  position: fixed; inset: 0; z-index: 999995; background: rgba(255, 236, 200, .82); backdrop-filter: blur(3px);
  display: flex; align-items: flex-end; justify-content: center; padding: 0; animation: apbFade .2s ease;
}
.apb-overlay + .apb-overlay { z-index: 999996; }
.apb-overlay + .apb-overlay + .apb-overlay { z-index: 999997; }
.apb-scope .apb-modal {
  width: 100%; max-width: 560px; max-height: 94vh; display: flex; flex-direction: column;
  background: var(--cr); border: 2px solid var(--sf); border-bottom: 0; border-radius: 24px 24px 0 0;
  box-shadow: 0 -10px 40px rgba(166, 83, 26, .25); animation: apbUp .28s ease;
}
.apb-overlay.apb-wide .apb-modal { max-width: 1100px; }
@media (min-width: 700px) {
  .apb-overlay { align-items: center; padding: 20px; }
  .apb-scope .apb-modal { border-radius: 24px; border-bottom: 2px solid var(--sf); max-height: 90vh; }
}
.apb-scope .apb-mhead { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; border-bottom: 2px solid var(--ln); background: linear-gradient(90deg, #FFF1D6, #FFFDF7); border-radius: 22px 22px 0 0; }
.apb-scope .apb-mhead h3 { margin: 0; font-size: 18px; font-weight: 800; color: var(--br); }
.apb-scope .apb-x { border: 2px solid var(--sf); background: #fff; color: var(--br); width: 38px; height: 38px; border-radius: 50%; font-size: 17px; font-weight: 800; cursor: pointer; flex: 0 0 auto; }
.apb-scope .apb-mbody { padding: 16px; overflow-y: auto; -webkit-overflow-scrolling: touch; }
@keyframes apbFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes apbUp { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- Form ---------- */
.apb-scope .apb-field { margin-bottom: 14px; }
.apb-scope .apb-field > label { display: block; font-size: 14.5px; font-weight: 800; color: var(--br); margin-bottom: 6px; }
.apb-scope .apb-istlbl { font-size: 11.5px; color: #8a6532; font-weight: 700; }
.apb-scope .apb-in {
  width: 100%; font-family: inherit; font-size: 16px; font-weight: 700; color: var(--tx);
  padding: 11px 12px; border: 2px solid var(--ln); border-radius: 12px; background: #fff; outline: none;
}
.apb-scope .apb-in:focus { background: #FFF9C4; color: var(--tx); font-weight: 700; border-color: var(--sf); box-shadow: 0 0 0 3px rgba(201, 122, 30, .2); }
.apb-scope .apb-in::placeholder { color: #a8916e; font-weight: 600; }
.apb-scope .apb-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 520px) { .apb-scope .apb-two { grid-template-columns: 1fr; } }
.apb-scope .apb-progs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.apb-scope .apb-prog {
  font-family: inherit; font-size: 15.5px; font-weight: 800; color: var(--tx); cursor: pointer; text-align: left;
  display: flex; align-items: center; gap: 8px; padding: 12px 10px; border-radius: 14px; border: 2px solid var(--ln); background: #fff;
}
.apb-scope .apb-prog.on { border-color: var(--sf); background: #FFF1D6; box-shadow: 0 0 0 3px rgba(201, 122, 30, .25); }
.apb-scope .apb-pico { font-size: 24px; line-height: 1; }
.apb-scope .apb-daterow { display: flex; gap: 8px; }
.apb-scope .apb-calbtn { flex: 0 0 52px; font-size: 22px; border-radius: 12px; border: 2px solid var(--sf); background: #FFF1D6; cursor: pointer; }
.apb-scope .apb-datehint { margin-top: 6px; font-size: 13.5px; font-weight: 700; color: #6b4a1f; }
.apb-scope .apb-muted { color: #8a7454; font-weight: 700; font-size: 14px; padding: 6px 0; text-align: center; }
.apb-scope .apb-slotgrp { margin-bottom: 8px; }
.apb-scope .apb-slotlbl { font-size: 12.5px; font-weight: 800; color: #8a6532; margin-bottom: 5px; }
.apb-scope .apb-slotgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 7px; }
.apb-scope .apb-slot {
  font-family: inherit; font-size: 14px; font-weight: 800; color: var(--tx); cursor: pointer;
  padding: 9px 4px; border-radius: 10px; border: 2px solid var(--ln); background: #fff; display: flex; flex-direction: column; align-items: center;
}
.apb-scope .apb-slot small { font-size: 10.5px; color: #b33; }
.apb-scope .apb-slot.on { background: var(--sf); border-color: var(--br); color: #fff; }
.apb-scope .apb-slot[disabled] { background: #F3EEE6; color: #b0a490; border-color: #E5DCCD; cursor: not-allowed; }
.apb-scope .apb-err { color: #C62828; font-weight: 800; font-size: 14px; min-height: 20px; margin: 4px 0 8px; }
.apb-scope .apb-primary, .apb-scope .apb-sec {
  display: block; width: 100%; text-align: center; text-decoration: none; font-family: inherit; cursor: pointer;
  font-size: 17px; font-weight: 800; padding: 14px; border-radius: 14px; margin-top: 8px;
}
.apb-scope .apb-primary { color: #fff; border: 2px solid var(--br); background: linear-gradient(135deg, #E59A35, var(--sf) 55%, var(--br)); box-shadow: 0 4px 0 #8A4214; }
.apb-scope .apb-primary:active { transform: translateY(2px); box-shadow: 0 2px 0 #8A4214; }
.apb-scope .apb-primary[disabled] { opacity: .65; }
.apb-scope .apb-sec { color: var(--br); border: 2px solid var(--sf); background: #fff; }
.apb-scope .apb-wa { background: linear-gradient(135deg, #43C463, #2E9E4C); border-color: #237A3A; box-shadow: 0 4px 0 #1C6630; }
.apb-scope .apb-check { display: flex; align-items: center; gap: 8px; font-weight: 800; margin: 10px 0; }
.apb-scope .apb-check input { width: 20px; height: 20px; accent-color: var(--sf); }

/* ---------- Calendar ---------- */
.apb-scope .apb-calhead { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; font-size: 18px; color: var(--br); }
.apb-scope .apb-calnav { width: 44px; height: 40px; border-radius: 12px; border: 2px solid var(--sf); background: #FFF1D6; font-size: 22px; font-weight: 800; color: var(--br); cursor: pointer; }
.apb-scope .apb-calnav[disabled] { opacity: .35; cursor: not-allowed; }
.apb-scope .apb-calgrid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.apb-scope .apb-calwk { text-align: center; font-size: 12px; font-weight: 800; color: #8a6532; padding: 4px 0; }
.apb-scope .apb-calwk.sun, .apb-scope .apb-calday.sun { color: #C62828; }
.apb-scope .apb-calday { aspect-ratio: 1; font-family: inherit; font-size: 16px; font-weight: 800; color: var(--tx); border: 2px solid var(--ln); border-radius: 12px; background: #fff; cursor: pointer; }
.apb-scope .apb-calday.today { border-color: var(--sf); background: #FFF9C4; }
.apb-scope .apb-calday.sel { background: var(--sf); color: #fff; border-color: var(--br); }
.apb-scope .apb-calday.past { background: #F3EEE6; color: #c2b6a2; border-color: #EDE5D8; cursor: not-allowed; }

/* ---------- Success & lists ---------- */
.apb-scope .apb-success { text-align: center; }
.apb-scope .apb-okicon { font-size: 54px; animation: apbIn .5s ease; }
.apb-scope .apb-success h3 { margin: 4px 0; font-size: 22px; color: var(--br); font-weight: 800; }
.apb-scope .apb-success p { margin: 0 0 12px; font-weight: 700; }
.apb-scope .apb-okcard, .apb-scope .apb-billinfo { text-align: left; border: 2px dashed var(--sf); border-radius: 16px; padding: 10px 12px; background: #FFF6E8; margin-bottom: 8px; }
.apb-scope .apb-okcard div, .apb-scope .apb-billinfo div { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; border-bottom: 1px solid var(--ln); font-size: 14.5px; }
.apb-scope .apb-okcard div:last-child, .apb-scope .apb-billinfo div:last-child { border-bottom: 0; }
.apb-scope .apb-okcard span, .apb-scope .apb-billinfo span { font-weight: 700; color: #8a6532; }
.apb-scope .apb-okcard b, .apb-scope .apb-billinfo b { font-weight: 800; text-align: right; }
.apb-scope .apb-pcard { display: flex; align-items: center; gap: 12px; padding: 12px; border: 2px solid var(--ln); border-radius: 16px; background: #fff; margin-bottom: 10px; }
.apb-scope .apb-pcard > div:nth-child(2) { flex: 1; font-size: 14px; font-weight: 700; }
.apb-scope .apb-pcard b { font-size: 16px; color: var(--br); }
.apb-scope .apb-badge { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 800; border: 1px solid; white-space: nowrap; }
.apb-scope .b-pen { background: #FFF8E1; color: #A86A00; border-color: #F2C76B; }
.apb-scope .b-app { background: #E8F5E9; color: #2E7D32; border-color: #9CCC9F; }
.apb-scope .b-com { background: #E3F2FD; color: #1565C0; border-color: #90C2EE; }
.apb-scope .b-rej { background: #FFEBEE; color: #C62828; border-color: #EF9A9A; }
.apb-scope .b-pub { background: #F3E5F5; color: #7B1FA2; border-color: #CE93D8; }

/* ---------- Admin ---------- */
.apb-scope .apb-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(95px, 1fr)); gap: 8px; margin-bottom: 12px; }
.apb-scope .apb-stat { border: 2px solid var(--ln); border-radius: 14px; padding: 8px; text-align: center; background: #fff; }
.apb-scope .apb-stat b { display: block; font-size: 22px; font-weight: 800; }
.apb-scope .apb-stat span { font-size: 12.5px; font-weight: 800; }
.apb-scope .apb-toolbar { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 8px; }
.apb-scope .apb-tb { font-family: inherit; font-size: 13.5px; font-weight: 800; padding: 8px 12px; border-radius: 10px; border: 2px solid var(--sf); background: #fff; color: var(--br); cursor: pointer; }
.apb-scope .apb-tb:hover { background: #FFF1D6; }
.apb-scope .apb-tb.is-live { background: #FFEBEE; border-color: #E57373; color: #C62828; }
.apb-scope .apb-tb.is-stopped { background: #E8F5E9; border-color: #81C784; color: #2E7D32; }
.apb-scope .apb-editapp { background: #FFF9C4; }
.apb-scope .apb-filter { display: grid; grid-template-columns: 1fr 190px; gap: 8px; margin: 6px 0 10px; }
@media (max-width: 520px) { .apb-scope .apb-filter { grid-template-columns: 1fr; } }
.apb-scope .apb-tablewrap { overflow-x: auto; border: 2px solid var(--ln); border-radius: 14px; background: #fff; }
.apb-scope .apb-table { width: 100%; border-collapse: collapse; min-width: 900px; font-size: 13.5px; }
.apb-scope .apb-table th { background: #FFF1D6; color: var(--br); font-weight: 800; text-align: left; padding: 9px 8px; border-bottom: 2px solid var(--ln); white-space: nowrap; position: sticky; top: 0; }
.apb-scope .apb-table td { padding: 8px; border-bottom: 1px solid #F3E3C6; font-weight: 700; color: var(--tx); vertical-align: middle; }
.apb-scope .apb-table td small { color: #8a6532; }
.apb-scope .apb-table tr.sel td { background: #FFF9C4; }
.apb-scope .apb-table a { color: var(--br); }
.apb-scope .apb-table input[type=checkbox], .apb-scope .apb-all { width: 18px; height: 18px; accent-color: var(--sf); }
.apb-scope .apb-billtbl { width: 100%; border-collapse: collapse; margin-top: 10px; }
.apb-scope .apb-billtbl th { text-align: left; font-size: 13px; font-weight: 800; color: var(--br); padding: 6px 4px; }
.apb-scope .apb-billtbl td { padding: 4px; }
.apb-scope .apb-billtbl td:nth-child(2) { width: 120px; }
.apb-scope .apb-billtbl td:last-child { width: 44px; }
.apb-scope .apb-del { width: 38px; height: 38px; border-radius: 10px; border: 2px solid #EF9A9A; background: #FFEBEE; color: #C62828; font-weight: 800; cursor: pointer; }
.apb-scope .apb-billtotal { text-align: right; font-size: 18px; font-weight: 800; color: var(--br); margin-top: 10px; }
.apb-scope .apb-sh { margin: 16px 0 10px; font-size: 16px; color: var(--br); font-weight: 800; border-bottom: 2px solid var(--ln); padding-bottom: 6px; }

/* ---------- v1.1: program search ---------- */
.apb-scope .apb-homesearch { margin-top: 14px; padding: 14px; border-radius: 20px; background: #fff; border: 2px solid var(--sf); box-shadow: 0 6px 18px rgba(201, 122, 30, .15); }
.apb-scope .apb-hs-title { font-size: 16px; font-weight: 800; color: var(--br); margin-bottom: 8px; }
.apb-scope .apb-search-wrap { position: relative; }
.apb-scope .apb-sicon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); font-size: 18px; pointer-events: none; }
.apb-scope .apb-psearch { padding-left: 42px; font-size: 17px; border-color: var(--sf); }
.apb-scope .apb-psearch::-webkit-search-cancel-button { cursor: pointer; }
.apb-scope .apb-results { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; max-height: 330px; overflow-y: auto; }
.apb-scope .apb-results:empty { display: none; }
.apb-scope .apb-res {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; cursor: pointer; font-family: inherit; color: var(--tx);
  padding: 10px 12px; border-radius: 14px; border: 2px solid var(--ln); background: #FFFDF7; animation: apbIn .25s ease;
}
.apb-scope .apb-res:hover, .apb-scope .apb-res:focus { border-color: var(--sf); background: #FFF9C4; outline: none; }
.apb-scope .apb-res b { display: block; font-size: 15.5px; font-weight: 800; }
.apb-scope .apb-res small { display: block; font-size: 12.5px; font-weight: 700; color: #8a6532; }
.apb-scope .apb-res mark { background: #FFE082; color: var(--tx); border-radius: 3px; padding: 0 1px; }
.apb-scope .apb-cats { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.apb-scope .apb-catchip { font-family: inherit; font-size: 13px; font-weight: 800; color: var(--br); padding: 6px 11px; border-radius: 999px; border: 2px solid var(--ln); background: #FFF6E8; cursor: pointer; }
.apb-scope .apb-catchip.on { background: var(--sf); color: #fff; border-color: var(--br); }
.apb-scope .apb-progsel, .apb-scope .apb-timesel {
  display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 14px; border: 2px solid var(--sf); background: #FFF1D6;
}
.apb-scope .apb-progsel > div { flex: 1; }
.apb-scope .apb-progsel b { display: block; font-size: 16px; font-weight: 800; }
.apb-scope .apb-progsel small { display: block; font-size: 12.5px; font-weight: 700; color: #8a6532; }
.apb-scope .apb-timesel { font-size: 16px; }
.apb-scope .apb-timesel b { flex: 1; }
.apb-scope .apb-change { font-family: inherit; font-size: 13px; font-weight: 800; padding: 7px 12px; border-radius: 10px; border: 2px solid var(--sf); background: #fff; color: var(--br); cursor: pointer; flex: 0 0 auto; }

/* ---------- v1.1: multi-day dates ---------- */
.apb-scope .apb-dayrow { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; font-weight: 800; font-size: 14.5px; }
.apb-scope .apb-stepper { display: flex; align-items: center; gap: 4px; }
.apb-scope .apb-stepper button { width: 40px; height: 42px; border-radius: 10px; border: 2px solid var(--sf); background: #FFF1D6; color: var(--br); font-size: 22px; font-weight: 800; cursor: pointer; }
.apb-scope .apb-stepper .apb-in { width: 58px; text-align: center; padding: 9px 4px; }
.apb-scope .apb-datechips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.apb-scope .apb-dchip { display: inline-flex; align-items: center; gap: 4px; padding: 5px 6px 5px 10px; border-radius: 999px; background: #FFF1D6; border: 1px solid var(--sf); font-size: 13px; font-weight: 800; }
.apb-scope .apb-dchip small { color: #8a6532; font-weight: 700; }
.apb-scope .apb-dchip button { width: 22px; height: 22px; border-radius: 50%; border: 0; background: #FFEBEE; color: #C62828; font-weight: 800; font-size: 11px; cursor: pointer; padding: 0; }
.apb-scope .apb-calhelp { font-size: 13.5px; font-weight: 700; color: #6b4a1f; background: #FFF9C4; border-radius: 10px; padding: 8px 10px; margin-bottom: 10px; }
.apb-scope .apb-calsel { text-align: center; font-weight: 800; margin: 12px 0 2px; color: var(--br); }
.apb-scope .apb-okmsg { margin: 6px 0 14px; padding: 12px 14px; border-radius: 14px; background: #E8F5E9; border: 2px solid #9CCC9F; color: #1B5E20; font-weight: 800; font-size: 15.5px; line-height: 1.5; }

/* ---------- Toast ---------- */
.apb-toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 999999; transform: translate(-50%, 30px); opacity: 0; transition: all .3s;
  background: #FFFDF7; border: 2px solid var(--sf); color: var(--tx); font-weight: 800; padding: 12px 18px; border-radius: 14px;
  box-shadow: 0 8px 24px rgba(166, 83, 26, .25); max-width: 90vw; text-align: center;
}
.apb-toast.apb-bad { border-color: #E57373; color: #C62828; background: #FFF5F5; }
.apb-toast.apb-show { transform: translate(-50%, 0); opacity: 1; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .apb-scope *, .apb-splash * { animation: none !important; transition: none !important; }
  .apb-scope .apb-navbtn { opacity: 1; }
  .apb-splash .apb-enter { transform: translateX(-50%); }
}

/* ---------- v1.2: Muhurtam & Jatakam ---------- */
.apb-scope .apb-navbtn:nth-child(4) { animation-delay: .36s; }
.apb-scope .apb-navbtn:nth-child(5) { animation-delay: .48s; }
.apb-scope .apb-navbtn:nth-child(6) { animation-delay: .6s; }
.apb-scope .apb-navbtn.apb-muhbtn { background: #FFF1D6; }
.apb-scope .apb-navbtn.apb-jatbtn { background: #FFF6E8; border-color: #A6531A; }
.apb-scope .apb-okmsg.apb-info { background: #FFF6E8; border-color: #ECC98F; color: #6B3A10; font-size: 14.5px; }
.apb-scope .apb-orwrite { margin: 10px 0 6px; text-align: center; font-size: 13px; font-weight: 800; color: #8a6532; }
.apb-scope .apb-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.apb-scope .apb-pills button { font-family: inherit; font-size: 15px; font-weight: 800; padding: 10px 16px; border-radius: 12px; border: 2px solid var(--ln); background: #fff; color: var(--br); cursor: pointer; }
.apb-scope .apb-pills button.on { background: var(--sf); border-color: var(--br); color: #fff; }
.apb-scope .apb-tobrow { display: flex; gap: 8px; align-items: center; }
.apb-scope .apb-tobrow .apb-in { flex: 1; min-width: 0; }
.apb-scope .apb-pininfo { margin-top: 6px; font-size: 13.5px; font-weight: 800; color: #6B3A10; min-height: 0; }
.apb-scope .apb-pininfo:empty { display: none; }
.apb-scope .apb-pininfo.ok { color: #2E7D32; }
.apb-scope .apb-pininfo.bad { color: #C62828; }
.apb-scope .apb-coords { margin: -4px 0 14px; padding: 10px 12px; border-radius: 12px; background: #E8F5E9; border: 2px solid #9CCC9F; color: #1B5E20; font-size: 14px; font-weight: 700; line-height: 1.6; }
.apb-scope .apb-coords:empty { display: none; }
.apb-scope .apb-checkbox { padding: 4px 0 8px; }
.apb-scope .apb-mcard { padding: 12px 14px; border: 2px solid var(--ln); border-radius: 16px; background: #fff; margin-bottom: 12px; }
.apb-scope .apb-mcard-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.apb-scope .apb-mcard-h b { font-size: 16px; color: var(--br); }
.apb-scope .apb-muhlist { list-style: none; margin: 10px 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.apb-scope .apb-muhlist li { padding: 9px 11px; border-radius: 12px; background: #FFF6E8; border: 1.5px solid #ECC98F; display: flex; flex-direction: column; gap: 2px; }
.apb-scope .apb-muhlist b { font-size: 15px; color: #3a2c1a; }
.apb-scope .apb-muhlist span { font-size: 14.5px; font-weight: 800; color: #A6531A; }
.apb-scope .apb-muhlist small { font-size: 13px; font-weight: 700; color: #6B5130; }
.apb-scope .apb-answer { margin: 8px 0; padding: 10px 12px; border-radius: 12px; background: #FFFDF7; border: 1.5px dashed #C97A1E; white-space: pre-wrap; font-weight: 700; color: #3a2c1a; line-height: 1.55; }
.apb-scope .apb-share { margin-top: 6px; }
.apb-scope .apb-muhtbl td small { display: block; margin-top: 3px; font-size: 11.5px; font-weight: 700; color: #8a6532; }
.apb-scope .apb-muhtbl { min-width: 660px; }
.apb-scope .apb-muhtbl td:nth-child(1) { width: 150px; }
.apb-scope .apb-muhtbl td:nth-child(2), .apb-scope .apb-muhtbl td:nth-child(3) { width: 130px; }
.apb-scope .apb-reqbtn { background: #FFF1D6; }

/* ---------- v1.2.1: Today's Muhurtham button + compact smart buttons ---------- */
.apb-scope .apb-todaybtn {
  display: flex; align-items: center; gap: 10px; width: 100%; margin-top: 12px; padding: 9px 12px; cursor: pointer; text-align: left;
  font-family: inherit; color: var(--tx); border-radius: 16px; border: 2px solid var(--sf);
  background: linear-gradient(110deg, #FFF6E8 30%, #FFE4B0 50%, #FFF6E8 70%); background-size: 250% 100%;
  box-shadow: 0 4px 12px rgba(201, 122, 30, .18); animation: apbShine 3.2s linear infinite, apbIn .5s ease both; transition: transform .15s;
}
.apb-scope .apb-todaybtn:hover { transform: translateY(-2px); }
.apb-scope .apb-todaybtn:active { transform: scale(.98); }
.apb-scope .apb-wheel { flex: 0 0 34px; width: 34px; height: 34px; display: block; animation: apbSpin 6s linear infinite; }
.apb-scope .apb-wheel svg { display: block; }
.apb-scope .apb-tb-txt { flex: 1; min-width: 0; }
.apb-scope .apb-tb-txt b { display: block; font-size: 15px; font-weight: 800; color: var(--br); }
.apb-scope .apb-tb-txt small { display: block; font-size: 11.5px; font-weight: 700; color: #6B5130; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.apb-scope .apb-todaybtn .apb-clock { font-size: 11px; padding: 2px 8px; flex: 0 0 auto; }
@keyframes apbSpin { to { transform: rotate(360deg); } }
@keyframes apbShine { from { background-position: 100% 0; } to { background-position: -150% 0; } }

.apb-scope .apb-nav { gap: 9px; margin-top: 14px; }
.apb-scope .apb-navbtn { font-size: 14.5px; padding: 11px 10px; border-radius: 13px; box-shadow: 0 3px 0 #E6B676; border-width: 1.5px; line-height: 1.3; }
.apb-scope .apb-navbtn.apb-main { font-size: 16px; padding: 12px 12px; box-shadow: 0 3px 0 #8A4214; }
.apb-scope .apb-navbtn:active { transform: translateY(2px); box-shadow: 0 1px 0 #E6B676; }
.apb-scope .apb-navbtn.apb-disabled { font-size: 13.5px; }
.apb-scope .apb-navgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.apb-scope .apb-navgrid .apb-navbtn:nth-child(1) { animation-delay: .1s; }
.apb-scope .apb-navgrid .apb-navbtn:nth-child(2) { animation-delay: .18s; }
.apb-scope .apb-navgrid .apb-navbtn:nth-child(3) { animation-delay: .26s; }
.apb-scope .apb-navgrid .apb-navbtn:nth-child(4) { animation-delay: .34s; }
.apb-scope .apb-navgrid .apb-navbtn:nth-child(5) { animation-delay: .42s; }
.apb-scope .apb-navgrid .apb-navbtn:last-child:nth-child(odd) { grid-column: 1 / -1; }
.apb-scope .apb-homesearch { padding: 11px 12px; border-radius: 16px; }
.apb-scope .apb-hs-title { font-size: 14.5px; }

.apb-scope .apb-daynav { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-bottom: 10px; }
.apb-scope .apb-daynav b { text-align: center; font-size: 15.5px; color: var(--br); }
.apb-scope .apb-daynav b small { display: block; font-size: 12.5px; color: var(--tx); }
.apb-scope .apb-daynav button { font-family: inherit; font-size: 12.5px; font-weight: 800; padding: 6px 9px; border-radius: 10px; border: 1.5px solid var(--sf); background: #fff; color: var(--br); cursor: pointer; }
.apb-scope .apb-sunrow { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; padding: 8px 10px; border-radius: 12px; background: #FFF1D6; font-size: 13.5px; font-weight: 700; }
.apb-scope .apb-tlist { display: flex; flex-direction: column; gap: 6px; }
.apb-scope .apb-trow { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 11px; border-radius: 12px; font-size: 14px; font-weight: 700; }
.apb-scope .apb-trow small { font-size: 11px; }
.apb-scope .apb-trow b { white-space: nowrap; color: #3a2c1a; }
.apb-scope .apb-tlist.good .apb-trow { background: #E8F5E9; border: 1.5px solid #9CCC9F; color: #1B5E20; }
.apb-scope .apb-tlist.bad .apb-trow { background: #FFEBEE; border: 1.5px solid #EF9A9A; color: #B71C1C; }
.apb-scope .apb-tshare { margin-top: 10px; }
@media (prefers-reduced-motion: reduce) { .apb-scope .apb-wheel, .apb-scope .apb-todaybtn { animation: none !important; } }
