:root {
  --navy: #1c2468;
  --navy-deep: #121849;
  --saffron: #f6b21b;
  --orange: #ee7a1a;
  --bg: #f2f3f9;
  --ink: #1b1d2b;
  --muted: #5b5f75;
  --line: #d9dbe8;
  --ok: #17803d;
  --err: #b42318;
  --radius: 10px;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: "Mukta", "Nirmala UI", "Mangal", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
h1, h2, h3 {
  font-family: "Baloo 2", "Mukta", sans-serif;
  line-height: 1.25;
  color: var(--navy);
  margin: 0 0 .5em;
}
h1 { font-size: 1.9rem; }
h2 { font-size: 1.4rem; }
a { color: var(--navy); }
img { max-width: 100%; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }

/* Top bar */
.topbar {
  background: var(--navy);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 18px;
  flex-wrap: wrap;
  border-bottom: 4px solid var(--saffron);
}
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.brand img { border-radius: 50%; }
.brand span { font-family: "Baloo 2", sans-serif; font-weight: 800; font-size: 1.2rem; color: var(--saffron); }
.brand small { font-size: .75rem; color: #fff; background: var(--orange); padding: 1px 8px; border-radius: 20px; margin-left: 4px; }
.topbar nav { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.topbar nav a { color: #fff; text-decoration: none; font-weight: 600; }
.topbar nav a:hover { color: var(--saffron); }
.btn-small { background: var(--saffron); color: var(--navy-deep) !important; padding: 4px 14px; border-radius: 20px; }

.page { flex: 1; width: 100%; max-width: 1080px; margin: 0 auto; padding: 28px 18px 48px; }

/* Forms */
.form-wrap { max-width: 460px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; }
.form-wrap.wide { max-width: 640px; }
.form-head { text-align: center; margin-bottom: 18px; }
.form-head img { width: 84px; height: 84px; border-radius: 50%; }
.form-head p { color: var(--muted); margin: 0; }
label { display: block; font-weight: 600; margin: 14px 0 4px; }
label .opt { font-weight: 400; color: var(--muted); font-size: .9rem; }
input, select, textarea {
  width: 100%;
  font: inherit;
  padding: 10px 12px;
  border: 1px solid #b9bdd3;
  border-radius: 8px;
  background: #fff;
}
input:focus, select:focus { border-color: var(--navy); outline: 2px solid rgba(28,36,104,.2); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
@media (max-width: 560px) { .row { grid-template-columns: 1fr; } }

.btn {
  display: inline-block;
  font: inherit;
  font-weight: 600;
  border: 0;
  border-radius: 8px;
  padding: 11px 20px;
  cursor: pointer;
  text-decoration: none;
  background: var(--navy);
  color: #fff;
}
.btn:hover { background: var(--navy-deep); }
.btn-block { width: 100%; margin-top: 20px; }
.btn-ok { background: var(--ok); }
.btn-danger { background: var(--err); }
.btn-ghost { background: transparent; color: var(--navy); border: 1px solid var(--navy); }
.btn-sm { padding: 5px 12px; font-size: .9rem; }
.form-foot { text-align: center; margin-top: 16px; color: var(--muted); }

.alert { padding: 12px 16px; border-radius: 8px; margin: 0 auto 20px; max-width: 640px; border-left: 5px solid; background: #fff; }
.alert-ok { border-color: var(--ok); }
.alert-err { border-color: var(--err); }

/* Temporary home */
.hero { text-align: center; padding: 30px 0; }
.hero img { width: 200px; height: 200px; border-radius: 50%; }
.hero h1 { font-size: 2.4rem; margin-top: 10px; }
.hero .tag { font-size: 1.25rem; color: var(--orange); font-weight: 600; }
.hero .actions { display: flex; gap: 12px; justify-content: center; margin-top: 20px; flex-wrap: wrap; }

/* Dashboards */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin: 18px 0 28px; }
.stat { background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--saffron); border-radius: var(--radius); padding: 14px 16px; }
.stat b { display: block; font-family: "Baloo 2", sans-serif; font-size: 2rem; color: var(--navy); line-height: 1.1; }
.stat span { color: var(--muted); }
.stat.warn { border-left-color: var(--orange); }

.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 20px; }
.info-list { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 0; }
.info-list dt { color: var(--muted); }
.info-list dd { margin: 0; font-weight: 600; }
.soon { color: var(--muted); }

.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.tabs a { text-decoration: none; padding: 6px 14px; border-radius: 20px; border: 1px solid var(--line); background: #fff; color: var(--ink); }
.tabs a.active { background: var(--navy); color: #fff; border-color: var(--navy); }

.search { display: flex; gap: 8px; margin-bottom: 14px; }
.search input { max-width: 320px; }

.table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; min-width: 720px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: #e8eaf5; color: var(--navy); font-weight: 600; }
td form { display: inline; }
.badge { display: inline-block; padding: 1px 10px; border-radius: 20px; font-size: .85rem; font-weight: 600; }
.badge-pending { background: #fff1d6; color: #8a5a00; }
.badge-approved { background: #dcf3e3; color: var(--ok); }
.badge-rejected, .badge-blocked { background: #fbe0de; color: var(--err); }
.empty { padding: 30px; text-align: center; color: var(--muted); }

.foot { background: var(--navy-deep); color: #c9cce0; text-align: center; padding: 16px; font-size: .95rem; }
.foot p { margin: 2px 0; }
.foot a { color: var(--saffron); }

/* ===== टप्पा २ ===== */
.page-full { max-width: none; padding: 0 0 48px; }
.page-full > .alert { margin-top: 20px; }
textarea { resize: vertical; }
.foot-admin a { color: #9ea3c4; font-size: .9rem; }

/* Slider */
.slider { position: relative; width: 100%; aspect-ratio: 16 / 6; min-height: 240px; max-height: 560px; background: var(--navy-deep); overflow: hidden; }
.slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity .8s ease; }
.slide.is-active { opacity: 1; z-index: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.slide figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 60px max(24px, 6vw) 44px;
  background: linear-gradient(to top, rgba(18,24,73,.92), rgba(18,24,73,0));
  color: #fff;
}
.slide figcaption h2 { color: var(--saffron); font-size: clamp(1.4rem, 3.4vw, 2.6rem); margin: 0 0 4px; max-width: 22ch; }
.slide figcaption p { margin: 0; font-size: clamp(1rem, 1.6vw, 1.2rem); max-width: 60ch; }
.slider-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255,255,255,.85); color: var(--navy); font-size: 1.8rem; line-height: 1;
}
.slider-nav.prev { left: 14px; }
.slider-nav.next { right: 14px; }
.slider-dots { position: absolute; bottom: 14px; left: 0; right: 0; z-index: 2; display: flex; justify-content: center; gap: 8px; }
.slider-dots button { width: 10px; height: 10px; padding: 0; border-radius: 50%; border: 2px solid #fff; background: transparent; cursor: pointer; }
.slider-dots button.is-active { background: var(--saffron); border-color: var(--saffron); }
@media (max-width: 640px) {
  .slider { aspect-ratio: 4 / 3; }
  .slider-nav { display: none; }
  .slide figcaption { padding: 40px 18px 36px; }
}

/* Intro */
.intro { max-width: 1080px; margin: 0 auto; padding: 34px 18px; display: flex; gap: 24px; align-items: center; }
.intro img { border-radius: 50%; flex-shrink: 0; }
.intro h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 0; }
.intro .tag { font-size: 1.2rem; color: var(--orange); font-weight: 600; margin: 0 0 14px; }
.intro .actions { display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 560px) { .intro { flex-direction: column; text-align: center; } .intro .actions { justify-content: center; } }

/* Success marquee — उजवीकडून डावीकडे */
.toppers { background: var(--navy); padding: 34px 0 40px; border-top: 4px solid var(--saffron); }
.toppers h2 { color: var(--saffron); text-align: center; font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: 22px; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee var(--duration, 40s) linear infinite; }
.marquee:hover .marquee-track, .marquee:focus-within .marquee-track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.topper { width: 250px; margin-right: 18px; background: #fff; border-radius: 12px; overflow: hidden; flex-shrink: 0; display: flex; flex-direction: column; }
.topper img { width: 100%; aspect-ratio: 4 / 4.4; object-fit: cover; object-position: top; display: block; border-bottom: 4px solid var(--saffron); }
.topper-body { padding: 12px 14px 14px; }
.topper h3 { font-size: 1.15rem; margin: 0; }
.topper-ach { color: var(--orange); font-weight: 600; margin: 2px 0 6px; line-height: 1.35; }
.topper-msg { color: var(--muted); font-size: .92rem; margin: 0; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
@media (prefers-reduced-motion: reduce) {
  .marquee { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .marquee-track { animation: none; }
  .slide { transition: none; }
}

/* Admin: slider */
.slide-admin-list, .story-admin-list { display: grid; gap: 16px; }
.slide-admin { display: grid; grid-template-columns: 280px 1fr; gap: 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.slide-admin img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; }
.slide-admin.is-off img { opacity: .45; }
.slide-admin-body form { display: inline-block; margin-right: 6px; }
.slide-admin-body form:first-child { display: block; }
.slide-admin-body label { margin-top: 6px; }
@media (max-width: 700px) { .slide-admin { grid-template-columns: 1fr; } }

/* Admin: success */
.story-admin { display: grid; grid-template-columns: 140px 1fr; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.story-admin img { width: 140px; height: 160px; object-fit: cover; object-position: top; border-radius: 8px; }
.story-admin h3 { margin: 0; }
.story-admin p { margin: 2px 0; }
.story-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; align-items: center; }
.order-form { display: flex !important; gap: 6px; }
.order-form input { width: 80px; padding: 5px 8px; }
@media (max-width: 520px) { .story-admin { grid-template-columns: 1fr; } }
.link-box { font-size: .85rem; padding: 6px 8px; min-width: 260px; }
.row-new { background: #fff6dd; }
td .btn { margin: 2px 0; }
.photo-preview { display: block; margin-top: 10px; max-width: 160px; border-radius: 8px; border: 1px solid var(--line); }
.stat-link { text-decoration: none; color: inherit; } .stat-link:hover { border-color: var(--navy); }

/* ===== टप्पा ३: परीक्षा ===== */
.hint { color: var(--muted); font-size: .9rem; margin: 4px 0 0; }
.radio-row { display: flex; gap: 18px; flex-wrap: wrap; }
label.radio { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; margin: 8px 0; }
label.radio input { width: auto; }
.actions-cell { white-space: nowrap; }
.actions-cell .btn, .actions-cell form { margin: 2px 0; }
.q-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 18px; align-items: start; }
@media (max-width: 860px) { .q-grid { grid-template-columns: 1fr; } }
.steps { padding-left: 20px; margin: 0 0 12px; }
.steps li { margin-bottom: 4px; }
.q-list { display: grid; gap: 12px; margin-bottom: 20px; }
.q-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.q-item[hidden] { display: none; }
.q-text { margin: 0 0 6px; font-size: 1.05rem; }
.q-opts { margin: 0 0 6px; padding-left: 26px; }
.q-opts li { padding: 2px 6px; border-radius: 6px; }
.q-opts li.is-correct { background: #dcf3e3; font-weight: 600; }
.q-opts li.is-wrong { background: #fbe0de; }
.q-opts em { font-style: normal; font-size: .85rem; color: var(--muted); }
.q-exp { background: #f3f4fb; border-left: 4px solid var(--saffron); padding: 8px 12px; margin: 8px 0 0; border-radius: 0 6px 6px 0; }
.r-right { border-left: 5px solid var(--ok); }
.r-wrong { border-left: 5px solid var(--err); }
.r-blank { border-left: 5px solid #b9bdd3; }
.r-verdict { font-weight: 600; margin: 4px 0 0; }
.r-right .r-verdict { color: var(--ok); }
.r-wrong .r-verdict { color: var(--err); }

.exam-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.exam-card { background: #fff; border: 1px solid var(--line); border-top: 5px solid var(--navy); border-radius: var(--radius); padding: 16px 18px; }
.exam-card h2 { font-size: 1.25rem; }
.exam-meta { color: var(--muted); margin: 0 0 10px; }
.rules { padding-left: 20px; }
.rules li { margin-bottom: 4px; }

/* परीक्षा इंटरफेस */
.exam-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 16px; margin-bottom: 14px;
  position: sticky; top: 0; z-index: 5; }
.set-tag { background: var(--saffron); color: var(--navy-deep); font-weight: 700; padding: 1px 10px; border-radius: 20px; margin-left: 8px; }
.timer { font-family: "Baloo 2", sans-serif; font-weight: 800; font-size: 1.6rem; color: var(--navy); background: #e8eaf5; padding: 0 14px; border-radius: 8px; min-width: 110px; text-align: center; }
.timer.is-low { color: #fff; background: var(--err); }
.exam-layout { display: grid; grid-template-columns: 1fr 300px; gap: 16px; align-items: start; }
@media (max-width: 860px) { .exam-layout { grid-template-columns: 1fr; } }
.exam-main, .exam-side { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.q-head { font-weight: 700; color: var(--navy); border-bottom: 1px solid var(--line); padding-bottom: 8px; margin-bottom: 12px; }
.q-body { font-size: 1.12rem; margin: 0 0 16px; }
.opts { display: grid; gap: 10px; }
.opts .opt { position: relative; display: flex; align-items: flex-start; gap: 12px; margin: 0; padding: 12px 14px; border: 2px solid var(--line); border-radius: 10px; cursor: pointer; font-weight: 400; }
.opts .opt:hover { border-color: #9ea3c4; }
.opts .opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.opts .opt:focus-within { outline: 3px solid var(--orange); outline-offset: 2px; }
.opt-l { flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--navy); display: grid; place-items: center; font-weight: 700; color: var(--navy); }
.opts .opt.is-sel { border-color: var(--navy); background: #eef0fa; }
.opts .opt.is-sel .opt-l { background: var(--navy); color: #fff; }
.save-msg { color: var(--err); min-height: 1.4em; margin: 10px 0 0; }
.exam-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.btn-mark { background: #6b3fa0; }
.btn-mark:hover { background: #55307f; }
.btn:disabled { opacity: .45; cursor: not-allowed; }

.palette { display: grid; grid-template-columns: repeat(auto-fill, minmax(40px, 1fr)); gap: 6px; max-height: 320px; overflow-y: auto; margin-bottom: 12px; }
.pal { display: inline-grid; place-items: center; width: 40px; height: 36px; border: 0; border-radius: 6px; font: inherit; font-weight: 700; cursor: pointer; position: relative; }
.pal-nv { background: #e3e5ee; color: var(--ink); }
.pal-na { background: #e0561f; color: #fff; }
.pal-ans { background: var(--ok); color: #fff; }
.pal-mk { background: #6b3fa0; color: #fff; border-radius: 50%; width: 36px; }
.pal-amk { background: #6b3fa0; color: #fff; border-radius: 50%; width: 36px; box-shadow: inset 0 0 0 3px #3ccf6e; }
.pal.is-cur { outline: 3px solid var(--saffron); outline-offset: 1px; }
.legend { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 4px; font-size: .9rem; }
.legend .pal { width: 18px; height: 18px; vertical-align: middle; margin-right: 6px; cursor: default; }
.confirm-box { border: 0; border-radius: 12px; padding: 22px; max-width: 420px; width: 90%; }
.confirm-box::backdrop { background: rgba(18,24,73,.6); }

.result-head { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: center; margin-bottom: 20px; }
@media (max-width: 700px) { .result-head { grid-template-columns: 1fr; } }
.score-big { background: var(--navy); color: #fff; border-radius: 14px; padding: 18px 26px; text-align: center; }
.score-big b { display: block; font-family: "Baloo 2", sans-serif; font-size: 3rem; line-height: 1; color: var(--saffron); }
.result-head .stats { margin: 0; }
.stat-ok { border-left-color: var(--ok); }
.stat-bad { border-left-color: var(--err); }

/* ===== AI प्रश्नपत्रिका ===== */
details.panel summary { cursor: pointer; list-style-position: inside; }
details.panel[open] summary { margin-bottom: 8px; }
.ai-item textarea { margin: 6px 0; }
.ai-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
@media (max-width: 640px) { .ai-opts { grid-template-columns: 1fr; } }
.ai-opt { display: flex; align-items: center; gap: 8px; margin: 0; font-weight: 400; }
.ai-opt input[type="radio"] { width: 20px; height: 20px; flex-shrink: 0; accent-color: var(--ok); }
.ai-opt:has(input[type="radio"]:checked) input:not([type="radio"]) { border-color: var(--ok); background: #eefaf2; font-weight: 600; }

/* ===== विषयवार प्रश्नपत्रिका ===== */
.bp-rows { display: grid; gap: 8px; margin-top: 6px; }
.bp-row { display: grid; grid-template-columns: 1.2fr 1.4fr 90px auto; gap: 8px; align-items: center; }
@media (max-width: 640px) { .bp-row { grid-template-columns: 1fr 80px auto; } .bp-row .bp-t { grid-column: 1 / -1; grid-row: 2; } }
.bp-total { font-size: 1.1rem; margin: 6px 0 0; }
.hint .btn { margin: 4px 4px 0 0; }
.pbar { height: 16px; background: #e3e5ee; border-radius: 10px; overflow: hidden; margin: 12px 0 8px; }
.pbar div { height: 100%; width: 0; background: linear-gradient(90deg, var(--navy), var(--orange)); transition: width .4s; }
.plog { max-height: 220px; overflow-y: auto; color: var(--muted); font-size: .92rem; padding-left: 20px; }
.subj-chip { display: inline-block; background: #e8eaf5; color: var(--navy); border-radius: 20px; padding: 2px 12px; margin: 0 6px 6px 0; font-weight: 600; }
.subj-head { margin: 16px 0 0; padding: 6px 12px; background: var(--navy); color: var(--saffron); border-radius: 8px; }
.save-bar { position: sticky; bottom: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 14px; display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; box-shadow: 0 -4px 14px rgba(18,24,73,.08); }

/* ===== टप्पा ४: लीडरबोर्ड, प्रमाणपत्र ===== */
.leaderboard { max-width: 760px; margin: 0 auto; padding: 40px 18px 10px; }
.leaderboard h2 { text-align: center; font-size: clamp(1.5rem, 3vw, 2.1rem); margin: 0; }
.lb-exam { text-align: center; color: var(--orange); font-weight: 600; margin: 2px 0 18px; }
.lb-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.lb-row { display: grid; grid-template-columns: 48px 1fr auto; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px 16px; }
.lb-rank { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-family: "Baloo 2", sans-serif; font-weight: 800; background: #e8eaf5; color: var(--navy); }
.lb-name { font-weight: 600; font-size: 1.08rem; }
.lb-score { font-family: "Baloo 2", sans-serif; font-weight: 800; font-size: 1.3rem; color: var(--navy); }
.lb-score small { font-family: "Mukta", sans-serif; font-weight: 400; font-size: .85rem; color: var(--muted); }
.lb-top { border-width: 2px; }
.lb-r1 { border-color: #d4a017; background: #fffaeb; }
.lb-r1 .lb-rank { background: #d4a017; color: #fff; }
.lb-r2 { border-color: #9aa3b5; }
.lb-r2 .lb-rank { background: #9aa3b5; color: #fff; }
.lb-r3 { border-color: #c07a45; }
.lb-r3 .lb-rank { background: #c07a45; color: #fff; }
.cert-panel { border-left: 5px solid var(--saffron); }
.cert-panel p { margin-top: 0; }

/* ===== टप्पा ५: वाचनालय, सीट, फी ===== */
.row-late td { background: #fff4f2; }
.fine-in { width: 80px; padding: 5px 8px; margin-right: 4px; }
.pay-form { display: inline-flex !important; gap: 6px; align-items: center; flex-wrap: wrap; }
.pay-form input { width: 90px; padding: 5px 8px; }
.pay-form select { width: auto; padding: 5px 8px; }
.seat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-bottom: 10px; }
.seat { background: #fff; border: 2px solid var(--line); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.seat.is-taken { border-color: var(--navy); }
.seat.is-free { border-style: dashed; background: #fafbff; }
.seat-no { font-family: "Baloo 2", sans-serif; font-size: 1.3rem; color: var(--navy); }
.seat.is-free .seat-no { color: var(--muted); }
.seat-name { font-weight: 600; line-height: 1.3; }
.seat small { color: var(--muted); }
.seat form { margin-top: 6px; }
label.radio.small { font-size: .82rem; font-weight: 400; margin: 2px 0 4px; }
.book-line { margin: 0 0 10px; }
code.tid { font-family: inherit; font-weight: 700; background: #e8eaf5; color: var(--navy); padding: 0 6px; border-radius: 4px; letter-spacing: .03em; }

/* ===== देणगी विभाग ===== */
.nav-dd { position: relative; }
.nav-dd summary { list-style: none; cursor: pointer; color: #fff; font-weight: 600; }
.nav-dd summary::-webkit-details-marker { display: none; }
.nav-dd summary::after { content: " ▾"; font-size: .8em; }
.nav-dd[open] summary { color: var(--saffron); }
.nav-dd > div { position: absolute; right: 0; top: calc(100% + 10px); z-index: 20; min-width: 200px; background: #fff; border-radius: 10px; box-shadow: 0 10px 30px rgba(18,24,73,.25); padding: 6px; display: grid; }
.topbar nav .nav-dd > div a { color: var(--ink); padding: 8px 12px; border-radius: 6px; font-weight: 600; }
.topbar nav .nav-dd > div a:hover { background: #eef0fa; color: var(--navy); }
@media (max-width: 700px) { .nav-dd > div { right: auto; left: 0; } }

.thanks-panel { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; border-left: 5px solid var(--ok); }
.big-amt { display: block; font-family: "Baloo 2", sans-serif; font-size: 2.2rem; color: var(--ok); line-height: 1.1; }
.act-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin-bottom: 14px; }
.act-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.act-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.act-card > div { padding: 12px 14px; }
.act-card h3 { margin: 6px 0 2px; }
.act-card p { margin: 6px 0 0; color: var(--muted); }
.cat-bar { position: relative; display: flex; justify-content: space-between; gap: 10px; padding: 6px 10px; margin-bottom: 6px; border-radius: 6px; overflow: hidden; background: #f3f4fb; }
.cat-bar span, .cat-bar b { position: relative; z-index: 1; }
.cat-bar i { position: absolute; left: 0; top: 0; bottom: 0; background: #fbe0de; }
.total-row td { background: #e8eaf5; font-weight: 700; }
.proof-link { font-weight: 600; white-space: nowrap; }
.proof-add { display: flex; gap: 6px; align-items: center; }
.proof-add input[type="file"] { max-width: 180px; padding: 4px; font-size: .85rem; }
.pay-info { border-left: 5px solid var(--saffron); }
.pay-info .upi { font-size: 1.2rem; color: var(--navy); user-select: all; }
@media print {
  .topbar, .foot, .tabs, .search, .btn, form { display: none !important; }
  body { background: #fff; }
  .page { padding: 0; max-width: none; }
  .panel, .stat, .table-wrap { break-inside: avoid; }
}
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* होमपेज: उपक्रम व यशस्वी विद्यार्थी लिंक */
.home-acts { width: 100%; max-width: 1080px; margin: 0 auto; padding: 40px 18px 10px; }
.home-acts h2 { text-align: center; font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: 18px; }
.home-acts .act-card p { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.toppers-cta { text-align: center; margin: 22px 0 0; }
.toppers-cta .btn-small { display: inline-block; text-decoration: none; font-weight: 700; padding: 8px 20px; }
.toppers-empty { padding: 28px 18px 30px; }
.toppers-empty .toppers-cta { margin-top: 0; }
.link-box.big { width: 100%; font-size: 1rem; padding: 10px 12px; margin-bottom: 10px; }
.common-link { border-left: 5px solid var(--ok); }
.toggle-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }

/* ===== मोफत अभ्यास साधने ===== */
.home-res { width: 100%; max-width: 1180px; margin: 0 auto; padding: 44px 18px 20px; }
.home-res h2 { text-align: center; font-size: clamp(1.5rem, 3vw, 2.1rem); margin: 0; }
.home-res-sub { text-align: center; color: var(--muted); margin: 4px 0 18px; }
.res-chips { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-bottom: 18px; }
.chip { font: inherit; font-weight: 600; font-size: .92rem; padding: 6px 14px; border-radius: 20px; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; }
.chip:hover { border-color: var(--navy); }
.chip.is-on { background: var(--navy); color: #fff; border-color: var(--navy); }
.res-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.res-card { --c: #1c2468; position: relative; display: flex; gap: 12px; align-items: flex-start; padding: 16px 16px 14px; background: #fff; border: 1px solid var(--line); border-radius: 14px; text-decoration: none; color: var(--ink); overflow: hidden; transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.res-card[hidden] { display: none; }
.res-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--c); }
.res-card:hover, .res-card:focus-visible { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(18,24,73,.12); border-color: var(--c); }
.res-ic { flex-shrink: 0; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; font-size: 1.5rem; background: #f0f2fa; background: color-mix(in srgb, var(--c) 12%, #fff); }
.res-body { display: flex; flex-direction: column; min-width: 0; }
.res-cat { font-size: .78rem; font-weight: 700; color: var(--c); }
.res-title { font-size: 1.08rem; color: var(--navy); line-height: 1.3; margin: 1px 0 4px; }
.res-desc { font-size: .9rem; color: var(--muted); line-height: 1.45; }
.res-host { margin-top: 8px; font-size: .82rem; font-weight: 600; color: var(--c); }
@media (prefers-reduced-motion: reduce) { .res-card { transition: none; } .res-card:hover { transform: none; } }
.res-teaser { display: flex; align-items: center; gap: 14px; margin-top: 10px; padding: 16px 18px; border-radius: 14px; text-decoration: none; color: #fff; background: linear-gradient(120deg, var(--navy), #2b3a9c); }
.res-teaser small { color: #d7dbf5; }
.res-teaser-ic { font-size: 2rem; }
.res-teaser-go { margin-left: auto; background: var(--saffron); color: var(--navy-deep); font-weight: 700; padding: 6px 14px; border-radius: 20px; white-space: nowrap; }

/* ===== आमच्या विषयी, व्यक्ती, आभार ===== */
.sec-title { text-align: center; margin: 34px 0 14px; font-size: clamp(1.4rem, 3vw, 1.9rem); }
.center { text-align: center; }
.about-hero { display: grid; grid-template-columns: 1.4fr 1fr; gap: 26px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 26px; margin-bottom: 18px; }
.about-hero h1 { margin: 0; }
.about-hero .tag { color: var(--orange); font-weight: 600; margin: 0 0 10px; }
.about-text { line-height: 1.8; }
.about-photo { width: 100%; border-radius: 14px; aspect-ratio: 4 / 3; object-fit: cover; }
.about-logo { width: 220px; justify-self: center; border-radius: 50%; }
@media (max-width: 760px) { .about-hero { grid-template-columns: 1fr; } }
.vision { border-left: 5px solid var(--saffron); }
.fac-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.fac-list li { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px 10px 40px; position: relative; font-weight: 600; }
.fac-list li::before { content: "✓"; position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; border-radius: 50%; background: var(--ok); color: #fff; font-size: .75rem; display: grid; place-items: center; }

.home-about { width: 100%; max-width: 1080px; margin: 0 auto; padding: 10px 18px 30px; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.home-about h2 { margin-top: 0; font-size: clamp(1.5rem, 3vw, 2rem); }
.home-about p { line-height: 1.8; }
.home-about .fac-list { grid-template-columns: 1fr 1fr; }
@media (max-width: 760px) { .home-about, .home-about .fac-list { grid-template-columns: 1fr; } }

.home-ppl, .home-orgs { width: 100%; max-width: 1180px; margin: 0 auto; padding: 40px 18px 10px; }
.home-ppl h2, .home-orgs h2 { text-align: center; font-size: clamp(1.5rem, 3vw, 2.1rem); margin: 0 0 14px; }
.ppl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.ppl-card { --c: var(--navy); background: #fff; border: 1px solid var(--line); border-top: 5px solid var(--c); border-radius: 14px; padding: 20px 16px 16px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.ppl-card[hidden] { display: none; }
.ppl-guide { --c: #2f6fd6; }
.ppl-key { --c: #d4a017; }
.ppl-support { --c: #17803d; }
.ppl-photo { width: 104px; height: 104px; border-radius: 50%; object-fit: cover; object-position: top; border: 4px solid #fff; box-shadow: 0 0 0 3px var(--c); }
.ppl-ini { display: grid; place-items: center; background: #e8eaf5; color: var(--navy); font-family: "Baloo 2", sans-serif; font-size: 2rem; }
.ppl-tag { margin-top: 12px; font-size: .78rem; font-weight: 700; color: var(--c); }
.ppl-card h3 { margin: 4px 0 2px; font-size: 1.15rem; }
.ppl-prof { margin: 0; color: var(--orange); font-weight: 600; }
.ppl-note { margin: 6px 0 0; color: var(--muted); font-size: .92rem; line-height: 1.45; }
.ppl-phone { margin-top: 10px; display: inline-block; text-decoration: none; font-weight: 700; color: var(--navy); background: #eef0fa; padding: 4px 14px; border-radius: 20px; }

.org-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.org-card { display: flex; gap: 14px; align-items: center; background: #fffaeb; border: 1px solid #f1dfa6; border-radius: 14px; padding: 14px 16px; }
.org-logo { flex-shrink: 0; width: 70px; height: 70px; border-radius: 12px; object-fit: contain; background: #fff; border: 1px solid var(--line); }
.org-ini { display: grid; place-items: center; font-size: 2rem; }
.org-card h3 { margin: 0; font-size: 1.08rem; }
.org-card p { margin: 2px 0 0; color: var(--ink); font-size: .92rem; }
.org-card small { color: var(--muted); }

.admin-person { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; }
.admin-person img, .admin-person .ppl-ini { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; font-size: 1.2rem; }
.admin-person.is-off { opacity: .55; }
@media (max-width: 640px) { .admin-person { grid-template-columns: 48px 1fr; } .admin-person .actions-cell { grid-column: 1 / -1; } }
.home-back { max-width: 640px; margin: 0 auto 14px; }
.page-full > .home-back { padding: 14px 18px 0; }

/* ===== होमपेज उघडताना पुस्तकाचे ॲनिमेशन ===== */
#splash {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: radial-gradient(circle at 50% 40%, #2b3a9c 0%, #1c2468 45%, #0d1238 100%);
  color: #fff; text-align: center;
  animation: spOut .6s ease 3s forwards;
}
.no-splash #splash { display: none; }
.sp-stage { position: relative; width: 300px; height: 210px; perspective: 1100px; }
.sp-book {
  position: absolute; left: 150px; top: 10px; width: 130px; height: 180px;
  transform-style: preserve-3d; transform: rotateX(12deg) scale(.6); opacity: 0;
  animation: spBookIn .5s cubic-bezier(.2,.8,.3,1.2) .1s forwards;
}
.sp-base, .sp-page, .sp-cover { position: absolute; inset: 0; border-radius: 3px 10px 10px 3px; transform-origin: left center; }
.sp-base { background: #fdfaf0; box-shadow: inset 6px 0 10px -6px rgba(0,0,0,.35), 0 0 0 3px #f6b21b; }
.sp-base::before, .sp-page::before {
  content: ""; position: absolute; inset: 18px 14px 18px 16px;
  background: repeating-linear-gradient(to bottom, transparent 0 11px, rgba(28,36,104,.22) 11px 12px);
}
.sp-page { background: #fffdf6; box-shadow: inset 4px 0 8px -5px rgba(0,0,0,.3); backface-visibility: visible; }
.sp-p1 { animation: spFlip .75s ease-in-out 1.05s forwards; }
.sp-p2 { animation: spFlip .75s ease-in-out 1.3s forwards; }
.sp-p3 { animation: spFlip .75s ease-in-out 1.55s forwards; }
.sp-cover { transform-style: preserve-3d; animation: spFlip .9s cubic-bezier(.6,.05,.3,1) .6s forwards; }
.sp-front, .sp-inner { position: absolute; inset: 0; border-radius: 3px 10px 10px 3px; backface-visibility: hidden; }
.sp-front {
  display: grid; place-items: center;
  background: linear-gradient(135deg, #ee7a1a, #f6b21b);
  box-shadow: inset 8px 0 0 rgba(0,0,0,.15), 0 8px 18px rgba(0,0,0,.35);
}
.sp-front img { width: 92px; height: 92px; border-radius: 50%; border: 3px solid #fff; }
.sp-inner { background: #f3e6c4; transform: rotateY(180deg); box-shadow: inset -6px 0 10px -6px rgba(0,0,0,.3); }
.sp-shadow { position: absolute; left: 40px; right: 10px; bottom: 0; height: 14px; border-radius: 50%; background: rgba(0,0,0,.35); filter: blur(6px); }
.sp-title {
  font-family: "Baloo 2", sans-serif; font-weight: 800; font-size: clamp(1.6rem, 6vw, 2.4rem);
  color: #f6b21b; margin: 18px 0 0; opacity: 0; transform: translateY(12px);
  animation: spText .6s ease 1.8s forwards;
}
.sp-tag { margin: 2px 0 0; font-size: 1.1rem; color: #e8eaf5; opacity: 0; transform: translateY(12px); animation: spText .6s ease 2.05s forwards; }
.sp-skip {
  position: absolute; right: 18px; bottom: 18px; font: inherit; font-weight: 600;
  background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.35);
  padding: 6px 16px; border-radius: 20px; cursor: pointer;
}
@keyframes spBookIn { to { opacity: 1; transform: rotateX(12deg) scale(1); } }
@keyframes spFlip { to { transform: rotateY(-172deg); } }
@keyframes spText { to { opacity: 1; transform: none; } }
@keyframes spOut { to { opacity: 0; visibility: hidden; } }
@media (prefers-reduced-motion: reduce) {
  #splash { animation: spOut .4s ease 1s forwards; }
  .sp-book, .sp-title, .sp-tag { animation: none; opacity: 1; transform: none; }
  .sp-cover, .sp-page { animation: none; }
}
