/* ---------- शिष्यवृत्ती पोर्टल : थीम ---------- */
@font-face { font-family: "Mukta"; src: url("../fonts/Mukta-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Mukta"; src: url("../fonts/Mukta-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }

:root {
  --brand: #4f46e5; --brand-2: #7c3aed; --brand-dark: #3730a3; --accent: #f59e0b;
  --ink: #1e1b4b; --muted: #6b7280; --bg: #f5f6fb; --line: #e5e7f0; --radius: 14px;
  --shadow: 0 1px 2px rgba(30,27,75,.05), 0 6px 20px rgba(30,27,75,.07);
  --bs-primary: #4f46e5; --bs-primary-rgb: 79,70,229; --bs-link-color: #4f46e5; --bs-link-color-rgb: 79,70,229;
  --bs-body-font-family: "Mukta", "Noto Sans Devanagari", "Nirmala UI", "Mangal", system-ui, sans-serif;
}
html { -webkit-text-size-adjust: 100%; }
body { background: var(--bg); color: var(--ink); font-family: var(--bs-body-font-family); font-size: 1.02rem; line-height: 1.6;
  min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1 0 auto; }
h1, h2, h3, .h1, .h2, .h3, .h4, .h5, .h6 { font-weight: 700; color: var(--ink); }
a { color: var(--brand); }

/* ---------- Navbar ---------- */
.navbar.bg-primary, .navbar.bg-dark { background: linear-gradient(110deg, var(--brand-dark), var(--brand) 55%, var(--brand-2)) !important;
  box-shadow: 0 4px 18px rgba(55,48,163,.25); padding-top: .6rem; padding-bottom: .6rem; }
.navbar.bg-dark { background: linear-gradient(110deg, #111827, #1f2937 60%, #312e81) !important; }
.navbar-brand { font-weight: 700; letter-spacing: .2px; display: flex; align-items: center; gap: .5rem; }
.navbar-brand .logo { width: 34px; height: 34px; border-radius: 10px; background: rgba(255,255,255,.18); display: grid; place-items: center; font-size: 1.05rem; }
.navbar-dark .nav-link { white-space: nowrap; color: rgba(255,255,255,.85); border-radius: 10px; padding: .45rem .8rem !important; font-weight: 500; }
.navbar-dark .nav-link:hover { color: #fff; background: rgba(255,255,255,.12); }
.navbar-dark .nav-link.active { color: #fff; background: rgba(255,255,255,.22); }
.navbar-toggler { border: 0; }
.navbar-toggler:focus { box-shadow: none; }
.school-chip { background: rgba(255,255,255,.15); color: #fff; border-radius: 999px; padding: .3rem .8rem; font-size: .85rem; max-width: 280px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 1199.98px) {
  .navbar-collapse { padding: .6rem 0; }
  .navbar-collapse .navbar-nav { gap: .15rem; margin-bottom: .5rem; }
  .school-chip { display: inline-block; margin: .3rem 0 .6rem; max-width: 100%; }
}

/* ---------- Cards ---------- */
.card { border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); background: #fff; }
.card-header { background: transparent; border-bottom: 1px solid var(--line); font-weight: 700; padding: .9rem 1.1rem; }
.card-body { padding: 1.15rem 1.2rem; }
.stat { font-size: 1.9rem; font-weight: 700; line-height: 1.2; }
.stat-card { position: relative; overflow: hidden; }
.stat-card::after { content: ""; position: absolute; right: -30px; top: -30px; width: 110px; height: 110px; border-radius: 50%;
  background: radial-gradient(circle, rgba(79,70,229,.12), transparent 70%); }
.hero { background: linear-gradient(120deg, var(--brand-dark), var(--brand) 60%, var(--brand-2)); color: #fff; border-radius: 18px;
  padding: 1.4rem 1.4rem; box-shadow: 0 10px 30px rgba(79,70,229,.3); }
.hero h1, .hero h2 { color: #fff; }

/* ---------- Buttons ---------- */
.btn { border-radius: 11px; font-weight: 600; padding: .55rem 1.05rem; transition: transform .08s ease, box-shadow .15s ease, background .15s; }
.btn:active { transform: scale(.98); }
.btn-sm { border-radius: 9px; padding: .3rem .7rem; }
.btn-lg { border-radius: 14px; padding: .8rem 1.4rem; font-size: 1.08rem; }
.btn-primary { background: linear-gradient(120deg, var(--brand), var(--brand-2)); border: 0; box-shadow: 0 4px 14px rgba(79,70,229,.3); }
.btn-primary:hover, .btn-primary:focus { background: linear-gradient(120deg, var(--brand-dark), var(--brand)); box-shadow: 0 6px 18px rgba(79,70,229,.38); }
.btn-outline-primary { color: var(--brand); border-color: var(--brand); }
.btn-outline-primary:hover { background: var(--brand); border-color: var(--brand); }
.btn-success { background: #059669; border-color: #059669; }

/* ---------- Forms ---------- */
.form-control, .form-select { border-radius: 11px; border-color: #d6d9e6; padding: .6rem .85rem; font-size: 1rem; min-height: 44px; }
.form-control:focus, .form-select:focus { border-color: var(--brand); box-shadow: 0 0 0 .22rem rgba(79,70,229,.15); }
.form-label { font-weight: 600; font-size: .93rem; margin-bottom: .3rem; }
.form-check-input:checked { background-color: var(--brand); border-color: var(--brand); }
.input-group > .form-control, .input-group > .btn { border-radius: 11px; }

/* ---------- Tables ---------- */
.table { --bs-table-hover-bg: #f3f2ff; margin-bottom: 0; }
.table > thead th { background: #f5f5fc; color: #4b5563; font-size: .83rem; font-weight: 700; text-transform: none;
  border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td, .table th { vertical-align: middle; padding: .65rem .7rem; }
.table-responsive { border-radius: 12px; -webkit-overflow-scrolling: touch; }

/* ---------- Misc ---------- */
.alert { border: 0; border-radius: 12px; box-shadow: var(--shadow); }
.badge { border-radius: 8px; font-weight: 600; padding: .4em .65em; }
.pagination .page-link { border-radius: 9px !important; margin: 2px; border: 1px solid var(--line); color: var(--brand); }
.pagination .active .page-link { background: var(--brand); border-color: var(--brand); color: #fff; }
.modal-content { border: 0; border-radius: 18px; }
footer { background: #fff; }

/* ---------- Login ---------- */
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 1rem;
  background: radial-gradient(circle at 15% 20%, rgba(255,255,255,.18), transparent 35%),
              radial-gradient(circle at 85% 80%, rgba(245,158,11,.25), transparent 40%),
              linear-gradient(135deg, var(--brand-dark), var(--brand) 55%, var(--brand-2)); }
.login-card { width: 100%; max-width: 430px; border: 0; border-radius: 22px; box-shadow: 0 1.5rem 3.5rem rgba(17,12,70,.35); }
.login-card .card-body { padding: 2rem 1.6rem !important; }
.login-card h1::before { content: "🎓"; display: block; font-size: 2.4rem; margin-bottom: .3rem; }

/* ---------- Old helpers ---------- */
.qr-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; display: inline-block; box-shadow: var(--shadow); }
.qr-box svg { width: 240px; height: 240px; max-width: 100%; }
.q-text { max-width: 520px; white-space: pre-wrap; }
.num-in { width: 5.5rem; }
.shot { max-width: 100%; max-height: 75vh; border: 1px solid #ccc; border-radius: 10px; }
code.big { font-size: 1.25rem; letter-spacing: .08em; }

/* ---------- Mobile bottom nav (शाळा) ---------- */
.bottom-nav { display: none; }
@media (max-width: 767.98px) {
  body.has-bottom-nav { padding-bottom: 74px; }
  .bottom-nav { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 1030; background: #fff;
    border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(30,27,75,.08); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .bottom-nav a { flex: 1; text-align: center; color: var(--muted); text-decoration: none; font-size: .72rem; font-weight: 600; line-height: 1.2;
    padding: 4px 2px; border-radius: 12px; }
  .bottom-nav a .ic { display: block; font-size: 1.3rem; margin-bottom: 2px; }
  .bottom-nav a.active { color: var(--brand); background: #eef0ff; }
  .bottom-nav a.cta .ic { width: 44px; height: 44px; margin: -20px auto 2px; border-radius: 50%; display: grid; place-items: center; color: #fff;
    background: linear-gradient(120deg, var(--brand), var(--brand-2)); box-shadow: 0 6px 16px rgba(79,70,229,.45); font-size: 1.5rem; }

  main.container, main.container-fluid { padding-left: 14px; padding-right: 14px; }
  .card-body { padding: 1rem; }
  .btn-lg { width: 100%; }
  .stat { font-size: 1.55rem; }
  h1.h3, .h3 { font-size: 1.3rem; }
  .table { font-size: .9rem; }
  .table td, .table th { padding: .55rem .5rem; }
  .q-text { max-width: 70vw; }
  .modal-dialog { margin: .6rem; }
}

/* ---------- Bootstrap blue → theme ---------- */
.nav-pills .nav-link { border-radius: 11px; font-weight: 600; color: var(--brand); }
.nav-pills .nav-link.active, .nav-pills .show > .nav-link { background: linear-gradient(120deg, var(--brand), var(--brand-2)); }
.nav-tabs .nav-link.active { color: var(--brand); font-weight: 700; }
.bg-primary:not(.navbar) { background-color: var(--brand) !important; }
.text-primary { color: var(--brand) !important; }
.border-primary { border-color: var(--brand) !important; }
.btn-primary:disabled { background: #a5b4fc; }
.progress-bar { background: var(--brand); }

/* ---------- लॉगिन marquee ---------- */
.login-wrap { position: relative; padding-top: 4rem; }
.marquee-bar { position: absolute; top: 0; left: 0; right: 0; overflow: hidden; white-space: nowrap; color: #fff; font-weight: 600;
  background: rgba(17,12,70,.35); backdrop-filter: blur(6px); border-bottom: 1px solid rgba(255,255,255,.18); padding: .55rem 0; font-size: .98rem; }
.marquee-track { display: inline-flex; animation: mq 28s linear infinite; }
.marquee-track span { padding-right: 4rem; }
.marquee-bar:hover .marquee-track { animation-play-state: paused; }
@keyframes mq { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } .marquee-bar { white-space: normal; text-align: center; } .marquee-track span + span { display: none; } }

/* ---------- लॉगिन hover इफेक्ट्स ---------- */
.login-card { transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s ease; }
.login-card::before { content: ""; position: absolute; inset: -2px; border-radius: 24px; z-index: -1; opacity: 0; transition: opacity .4s ease;
  background: conic-gradient(from 0deg, #a5b4fc, #f59e0b, #c084fc, #60a5fa, #a5b4fc); filter: blur(14px); }
.login-card h1::before { transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.login-wrap .form-control { transition: border-color .2s, box-shadow .2s, transform .2s, background .2s; background: #fafaff; }
.login-wrap .form-control:focus { background: #fff; transform: translateY(-1px); }
.login-wrap .form-label { transition: color .2s; }
.login-wrap .mb-3:focus-within .form-label { color: var(--brand); }
.login-wrap .btn-primary, .login-wrap .btn-dark { position: relative; overflow: hidden; }
.login-wrap .btn-primary::after, .login-wrap .btn-dark::after { content: ""; position: absolute; top: 0; left: -75%; width: 50%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.45), transparent); transform: skewX(-20deg); }
.login-wrap a:not(.btn) { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat; transition: background-size .3s ease; }

@media (hover: hover) and (pointer: fine) {
  .login-card:hover { transform: translateY(-6px); box-shadow: 0 2.2rem 4.5rem rgba(17,12,70,.45); }
  .login-card:hover::before { opacity: .55; animation: spinGlow 6s linear infinite; }
  .login-card:hover h1::before { transform: rotate(-12deg) scale(1.15); }
  .login-wrap .form-control:hover:not(:focus) { border-color: #a5b4fc; box-shadow: 0 0 0 .18rem rgba(165,180,252,.25); }
  .login-wrap .btn-primary:hover, .login-wrap .btn-dark:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(79,70,229,.45); }
  .login-wrap .btn-primary:hover::after, .login-wrap .btn-dark:hover::after { left: 130%; transition: left .7s ease; }
  .login-wrap a:not(.btn):hover { background-size: 100% 2px; }
  .marquee-bar:hover { background: rgba(17,12,70,.55); }
}
@keyframes spinGlow { to { filter: blur(14px) hue-rotate(360deg); } }
.login-card { position: relative; isolation: isolate; }
@media (prefers-reduced-motion: reduce) { .login-card, .login-card::before, .login-wrap .btn::after { transition: none !important; animation: none !important; } }
.login-card > .card-body { background: #fff; border-radius: 22px; position: relative; }

/* marquee लॉगिन कार्डच्या आत */
.login-wrap { padding-top: 1rem; }
.login-card .marquee-bar { position: static; margin: 0 0 1rem; border-radius: 10px; border: 1px solid #e0e3ff; padding: .45rem 0;
  background: linear-gradient(90deg, #eef0ff, #fdf4ff); color: var(--brand-dark); font-size: .9rem; backdrop-filter: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.login-card .marquee-bar:hover { background: linear-gradient(90deg, #e0e3ff, #fae8ff); }
.login-icon { text-align: center; font-size: 2.6rem; line-height: 1; margin-bottom: 1rem; transition: transform .5s cubic-bezier(.2,.8,.2,1); }
@media (hover: hover) and (pointer: fine) { .login-card:hover .login-icon { transform: rotate(-12deg) scale(1.15); } }

/* ---------- ॲडमिन डॅशबोर्ड ---------- */
.kpi { color: var(--ink); transition: transform .2s ease, box-shadow .2s ease; border-top: 4px solid var(--tone, var(--brand)); }
.kpi:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(30,27,75,.12); }
.kpi-ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-size: 1.25rem; font-weight: 700;
  background: color-mix(in srgb, var(--tone) 14%, #fff); color: var(--tone); margin-bottom: .6rem; }
.kpi .stat { color: var(--ink); }
.kpi-indigo { --tone: #4f46e5; } .kpi-green { --tone: #059669; } .kpi-amber { --tone: #d97706; }
.kpi-violet { --tone: #7c3aed; } .kpi-sky { --tone: #0284c7; } .kpi-rose { --tone: #e11d48; }
.sub-class { font-size: .75rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin: .4rem 0 .6rem; }
.sub-class:not(:first-child) { margin-top: 1.2rem; padding-top: .9rem; border-top: 1px dashed var(--line); }
.sub-row { margin-bottom: .85rem; }
.diff-bar { display: flex; height: 10px; border-radius: 99px; overflow: hidden; background: #eef0f7; min-width: 12px; }
.diff-bar span { display: block; height: 100%; }
.diff-bar .d1, .lg1 { background: #34d399; } .diff-bar .d2, .lg2 { background: #fbbf24; } .diff-bar .d3, .lg3 { background: #f87171; }
.lg { display: inline-block; width: 10px; height: 10px; border-radius: 3px; align-self: center; }
.list-row { display: flex; justify-content: space-between; align-items: center; gap: .75rem; padding: .55rem 0; border-bottom: 1px solid var(--line); }
.list-row:last-child { border-bottom: 0; }
.empty { text-align: center; color: var(--muted); padding: 1rem 0; font-size: .92rem; }
.timeline { list-style: none; margin: 0; padding: 0 0 0 1.1rem; border-left: 2px solid #e0e3ff; }
.timeline li { position: relative; padding: 0 0 .85rem .4rem; }
.timeline li::before { content: ""; position: absolute; left: -1.48rem; top: .45rem; width: 10px; height: 10px; border-radius: 50%;
  background: var(--brand); box-shadow: 0 0 0 3px #e0e3ff; }
.timeline li:last-child { padding-bottom: 0; }
.hero .btn-outline-light:hover { color: var(--brand); }

/* ---------- Navbar v2 ---------- */
.app-nav { padding-top: .5rem; padding-bottom: .5rem; border-bottom: 1px solid rgba(255,255,255,.08); }
.app-nav.bg-dark { background: rgba(17,24,39,.92) !important; backdrop-filter: saturate(160%) blur(10px); -webkit-backdrop-filter: saturate(160%) blur(10px); }
.app-nav .navbar-brand { font-size: 1.1rem; }
.app-nav .logo { box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); }
.app-nav .navbar-nav { gap: .15rem; }
.app-nav .nav-link { display: flex; align-items: center; gap: .4rem; position: relative; font-size: .95rem; padding: .45rem .75rem !important; }
.app-nav .nav-ic { font-size: 1rem; line-height: 1; opacity: .9; }
.app-nav .nav-link.active { background: rgba(255,255,255,.16); box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); }
@media (min-width: 1200px) {
  .app-nav .nav-link.active::after { content: ""; position: absolute; left: 22%; right: 22%; bottom: -9px; height: 3px; border-radius: 3px; background: #fbbf24; }
}
.nav-badge { background: #f59e0b; color: #1f2937; font-size: .7rem; font-weight: 700; min-width: 20px; height: 20px; padding: 0 6px;
  border-radius: 99px; display: inline-grid; place-items: center; animation: pulseBadge 2s ease-in-out infinite; }
@keyframes pulseBadge { 50% { box-shadow: 0 0 0 5px rgba(245,158,11,.25); } }
.nav-user { display: flex; align-items: center; gap: .6rem; }
.nav-avatar { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, #f59e0b, #ec4899); font-size: .9rem; }
.nav-name { color: rgba(255,255,255,.85); font-size: .9rem; max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.btn-logout { color: #fff; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); border-radius: 10px; }
.btn-logout:hover { background: #ef4444; border-color: #ef4444; color: #fff; }
@media (max-width: 1199.98px) {
  .app-nav .navbar-collapse { margin-top: .5rem; padding: .5rem; border-radius: 14px; background: rgba(255,255,255,.07); }
  .app-nav .navbar-nav { display: grid; grid-template-columns: repeat(2, 1fr); gap: .3rem; }
  .app-nav .nav-link { padding: .6rem .75rem !important; }
  .nav-user { justify-content: space-between; border-top: 1px solid rgba(255,255,255,.12); margin-top: .5rem; padding-top: .6rem; }
}
@media (max-width: 400px) { .app-nav .navbar-nav { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .nav-badge { animation: none; } }

/* ---------- शाळा सूचना पट्टी (लॉगिननंतर) ---------- */
.notice-bar { display: flex; align-items: stretch; background: #fff; border: 1px solid #fde68a; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }
.notice-tag { flex: 0 0 auto; display: flex; align-items: center; padding: 0 .85rem; font-weight: 700; font-size: .9rem; color: #78350f;
  background: linear-gradient(120deg, #fde68a, #fbbf24); white-space: nowrap; }
.notice-bar .marquee-bar { position: static; flex: 1; background: #fffbeb; color: #78350f; border: 0; padding: .55rem 0; font-size: .95rem; backdrop-filter: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.notice-bar .marquee-bar:hover { background: #fef3c7; }
@media (max-width: 575.98px) { .notice-tag { padding: 0 .6rem; font-size: .8rem; } .notice-bar .marquee-bar { font-size: .88rem; } }
/* ॲडमिन प्रोफाइल */
.nav-profile { display: flex; align-items: center; gap: .5rem; text-decoration: none; padding: .2rem .55rem .2rem .25rem; border-radius: 99px; transition: background .2s; }
.nav-profile:hover, .nav-profile.active { background: rgba(255,255,255,.14); }
.profile-avatar { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; font-size: 2.2rem; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, #f59e0b, #ec4899); box-shadow: 0 10px 24px rgba(236,72,153,.3); }

/* पॉप-अप व पेमेंट टेबल */
.pop-img { max-width: 100%; max-height: 78vh; display: block; margin: 0 auto; }
.pop-pdf { width: 100%; height: 78vh; border: 0; display: block; }
.modal-fullscreen-sm-down .pop-pdf { height: calc(100vh - 70px); }
.pay-table td, .pay-table th { white-space: nowrap; padding: .75rem .9rem; }
.pay-table td:nth-child(5) { white-space: normal; min-width: 140px; }

/* ---------- ॲडमिन पाने: शीर्ष-भाग व सामान्य सजावट ---------- */
.page-hero { background: linear-gradient(120deg, var(--brand-dark), var(--brand) 60%, var(--brand-2)); color: #fff; border-radius: 18px;
  padding: 1.15rem 1.3rem; box-shadow: 0 10px 30px rgba(79,70,229,.25); position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; right: -60px; top: -60px; width: 200px; height: 200px; border-radius: 50%; background: rgba(255,255,255,.08); pointer-events: none; }
.page-hero h1 { color: #fff; }
.page-ic { width: 48px; height: 48px; border-radius: 14px; background: rgba(255,255,255,.18); display: grid; place-items: center; font-size: 1.5rem; flex: 0 0 auto; }
.page-actions { position: relative; z-index: 1; }
.page-actions .form-control, .page-actions .form-select { min-height: 38px; border: 0; }
.page-actions .btn-light { color: var(--brand); }
.page-actions .btn-outline-light:hover { color: var(--brand); }
.hero-chip { background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.2); border-radius: 99px; padding: .25rem .75rem; font-size: .85rem; }
.hero-chip b { font-size: .95rem; }
.seg { display: inline-flex; background: rgba(255,255,255,.15); border-radius: 12px; padding: 3px; }
.seg a { color: #fff; text-decoration: none; padding: .35rem .9rem; border-radius: 9px; font-weight: 600; font-size: .9rem; }
.seg a.on { background: #fff; color: var(--brand); }
/* कार्डमधील विभाग-शीर्षके */
.card-body > h2.h5, .card-body > h3.h6, .card-body > h2.h6 { font-weight: 700; padding-bottom: .65rem; margin-bottom: 1rem; border-bottom: 1px solid var(--line); }
/* ॲडमिन टेबल */
.card > .table-responsive { border-radius: var(--radius); }
.table-sm > :not(caption) > * > * { padding: .6rem .65rem; }
.table.small { font-size: .9rem; }
.table > tbody > tr:last-child > td { border-bottom: 0; }
/* पेमेंट कार्ड */
.pay-card { border-left: 5px solid var(--tone, #d97706); transition: box-shadow .2s, transform .2s; }
.pay-card:hover { box-shadow: 0 14px 30px rgba(30,27,75,.1); transform: translateY(-2px); }
.pay-card.st-approved { --tone: #059669; } .pay-card.st-rejected { --tone: #e11d48; }
.pay-card .kv { font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
.pay-shot { width: 100%; max-height: 180px; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); cursor: zoom-in; }
.empty-card { text-align: center; padding: 2.5rem 1rem; color: var(--muted); }
.empty-card .big { font-size: 2.6rem; display: block; margin-bottom: .4rem; }
.info-note { background: #eef0ff; border: 1px solid #dfe3ff; color: #3730a3; border-radius: 12px; padding: .7rem 1rem; font-size: .9rem; }
.filter-card { background: #fff; }
@media (max-width: 575.98px) { .page-hero { padding: 1rem; } .page-ic { width: 42px; height: 42px; font-size: 1.3rem; } .page-actions { width: 100%; } .page-actions form { width: 100%; } .page-actions form .form-control { flex: 1; } }

/* डॅशबोर्ड: इयत्तानिहाय दोन स्तंभ */
.class-col { background: #fafaff; border: 1px solid var(--line); border-radius: 12px; padding: .9rem 1rem; height: 100%; }
.class-col .sub-class { margin-top: 0 !important; padding-top: 0 !important; border-top: 0 !important; font-size: .85rem; color: var(--brand-dark); }
.dash-bottom > .card { flex: 1 1 0; min-width: 0; }
@media (min-width: 992px) { .dash-bottom > .card { margin-bottom: 0 !important; } }

/* नवीन प्रश्नपत्रिका */
.preset-btn { display: flex; flex-direction: column; align-items: flex-start; text-align: left; gap: .15rem; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: .75rem 1rem; }
.preset-btn b { color: var(--ink); } .preset-btn span { font-size: .82rem; color: var(--muted); font-weight: 500; }
.preset-btn:hover { border-color: var(--brand); box-shadow: 0 6px 18px rgba(79,70,229,.15); transform: translateY(-2px); }
.subj-card.has-q { border-color: #c7d2fe; box-shadow: 0 0 0 3px rgba(79,70,229,.08), var(--shadow); }
.topic-box { background: #fafaff; border: 1px solid var(--line); border-radius: 12px; padding: .75rem; }
.topic-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .4rem; }
.topic-item { display: flex; align-items: center; gap: .5rem; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: .45rem .6rem; cursor: pointer; font-size: .9rem; }
.topic-item span { flex: 1; } .topic-item small { color: var(--muted); }
.topic-item:has(input:checked) { border-color: #a5b4fc; background: #eef0ff; }
.gen-bar { position: sticky; bottom: 0; z-index: 5; border-color: #c7d2fe; }
@media (max-width: 767.98px) { .gen-bar { bottom: 74px; } }

/* नोंदणी: खात्याचा प्रकार */
.acct-type { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.acct-opt { position: relative; cursor: pointer; }
.acct-opt input { position: absolute; opacity: 0; }
.acct-opt span { display: flex; flex-direction: column; gap: .1rem; border: 2px solid var(--line); border-radius: 14px; padding: .7rem .9rem; background: #fff; height: 100%; }
.acct-opt small { color: var(--muted); }
.acct-opt input:checked + span { border-color: var(--brand); background: #eef0ff; box-shadow: 0 0 0 3px rgba(79,70,229,.12); }
.acct-opt input:focus-visible + span { outline: 2px solid var(--brand); }
@media (max-width: 575.98px) { .acct-type { grid-template-columns: 1fr; } }
.badge-tuition { background: #fef3c7; color: #92400e; }

/* सवलत */
.discount-box { background: #fffbeb; border: 1px solid #fde68a; border-radius: 14px; padding: 1rem; }
.offer-tag { display: inline-block; background: linear-gradient(120deg, #fde68a, #fbbf24); color: #78350f; font-weight: 700; border-radius: 99px; padding: .3rem .9rem; font-size: .9rem; }

/* मर्यादित कालावधी सवलत पट्टी */
.discount-banner { display: flex; gap: .8rem; align-items: center; margin-bottom: 1rem; padding: .8rem 1rem; border-radius: 14px; color: #7c2d12;
  background: linear-gradient(120deg, #fff7ed, #fef3c7); border: 1px solid #fdba74; box-shadow: 0 6px 18px rgba(234,88,12,.12); position: relative; overflow: hidden; }
.discount-banner::after { content: ""; position: absolute; top: 0; left: -40%; width: 30%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.7), transparent); animation: dbShine 3.5s ease-in-out infinite; }
@keyframes dbShine { to { left: 130%; } }
.db-ic { font-size: 1.8rem; line-height: 1; }
.db-title { font-weight: 800; font-size: 1.02rem; }
.db-text { font-size: .92rem; } .db-text s { color: #9a3412; opacity: .7; } .db-text b { color: #15803d; }
.db-till { display: inline-block; background: #ea580c; color: #fff; border-radius: 99px; padding: 0 .55rem; font-weight: 700; font-size: .8rem; animation: dbPulse 1.6s ease-in-out infinite; }
@keyframes dbPulse { 50% { opacity: .65; } }
.discount-banner.compact { padding: .6rem .75rem; } .discount-banner.compact .db-ic { font-size: 1.4rem; } .discount-banner.compact .db-title { font-size: .92rem; } .discount-banner.compact .db-text { font-size: .82rem; }
@media (prefers-reduced-motion: reduce) { .discount-banner::after, .db-till { animation: none; } }

/* ऑनलाइन पेमेंट */
.pay-online { background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 14px; padding: 1.1rem; }
.or-line { display: flex; align-items: center; gap: .75rem; color: var(--muted); font-size: .85rem; margin: 1rem 0; }
.or-line::before, .or-line::after { content: ""; flex: 1; border-top: 1px dashed var(--line); }

/* ऑनलाइन टेस्ट */
.share-card .test-code { font-size: 2.4rem; font-weight: 800; letter-spacing: .25em; color: var(--brand-dark); font-family: ui-monospace, Consolas, monospace; }
.test-top { background: linear-gradient(110deg, var(--brand-dark), var(--brand) 55%, var(--brand-2)); color: #fff; padding: .75rem 0; position: sticky; top: 0; z-index: 20; box-shadow: 0 4px 18px rgba(55,48,163,.25); }
.test-timer { background: rgba(255,255,255,.18); border-radius: 12px; padding: .35rem .8rem; font-weight: 800; font-size: 1.15rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.test-timer.low { background: #ef4444; animation: dbPulse 1s infinite; }
.test-main { max-width: 860px; }
.code-in { letter-spacing: .3em; font-weight: 800; text-transform: uppercase; }
.tstat { background: #f5f5fc; border: 1px solid var(--line); border-radius: 12px; padding: .55rem .3rem; } .tstat b { display: block; font-size: 1.35rem; } .tstat span { font-size: .78rem; color: var(--muted); }
.tstat.ok { background: #ecfdf5; border-color: #a7f3d0; } .tstat.bad { background: #fef2f2; border-color: #fecaca; }
.q-palette { display: flex; flex-wrap: wrap; gap: .35rem; position: sticky; top: 64px; z-index: 10; background: var(--bg); padding: .4rem 0; }
.q-palette a { width: 2.2rem; height: 2.2rem; display: grid; place-items: center; border-radius: 9px; border: 1px solid var(--line); background: #fff; color: var(--ink); text-decoration: none; font-size: .85rem; font-weight: 600; }
.q-palette a.done { background: var(--brand); color: #fff; border-color: var(--brand); }
.tq { scroll-margin-top: 130px; } .tq-img { max-width: 100%; max-height: 260px; border: 1px solid var(--line); border-radius: 10px; display: block; }
.tq-opt { display: flex; gap: .6rem; align-items: flex-start; border: 1px solid var(--line); border-radius: 12px; padding: .6rem .8rem; margin-bottom: .45rem; cursor: pointer; background: #fff; }
.tq-opt input { margin-top: .3rem; transform: scale(1.25); } .tq-opt:has(input:checked) { border-color: var(--brand); background: #eef0ff; }
.test-submit { position: sticky; bottom: 0; z-index: 10; border-color: #bbf7d0; }
.result-score { font-size: 3rem; font-weight: 800; color: var(--brand-dark); line-height: 1.1; } .result-score span { font-size: 1.4rem; color: var(--muted); }
.tq.right { border-left: 5px solid #10b981; } .tq.wrongq { border-left: 5px solid #ef4444; } .tq.skip { border-left: 5px solid #cbd5e1; }

.q-palette a.missing { background: #fee2e2; border-color: #ef4444; color: #b91c1c; animation: dbPulse 1s ease-in-out 3; }

/* कूपन व अहवाल */
.coupon-box { background: #f5f3ff; border: 1px dashed #c4b5fd; border-radius: 12px; padding: .75rem .9rem; }
.rev-chart { display: flex; align-items: flex-end; gap: .5rem; height: 240px; padding-top: 1.4rem; overflow-x: auto; }
.rev-col { flex: 1 0 38px; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; }
.rev-bar { width: 70%; background: linear-gradient(180deg, var(--brand-2), var(--brand)); border-radius: 8px 8px 3px 3px; min-height: 0; transition: height .4s; }
.rev-val { font-size: .7rem; color: var(--muted); margin-bottom: .2rem; white-space: nowrap; }
.rev-lbl { font-size: .72rem; color: var(--muted); text-align: center; margin-top: .3rem; line-height: 1.1; }

/* WhatsApp मदत बटण */
.wa-float { position: fixed; right: 18px; bottom: 22px; z-index: 1040; width: 56px; height: 56px; border-radius: 50%; background: #25d366; display: grid; place-items: center; box-shadow: 0 8px 20px rgba(37,211,102,.45); transition: transform .2s; }
.wa-float:hover { transform: scale(1.08); }
@media (max-width: 767.98px) { .wa-float { bottom: 90px; right: 14px; width: 50px; height: 50px; } }

/* OMR scanner */
.omr-preview canvas.omr-canvas { width: 100%; height: auto; border: 1px solid #e5e7eb; border-radius: 10px; margin-bottom: .5rem; }
.omr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 4px 10px; max-height: 60vh; overflow-y: auto; }
.omr-row { display: flex; align-items: center; gap: 4px; padding: 2px 4px; border-radius: 8px; }
.omr-row.flag { background: #fef3c7; outline: 1px solid #f59e0b; }
.omr-qn { width: 2rem; text-align: right; font-weight: 700; font-size: .85rem; }
.omr-b { width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid #64748b; background: #fff; font-size: .75rem; line-height: 1; padding: 0; color: #475569; }
.omr-b.on { background: #1e293b; color: #fff; border-color: #1e293b; }
