:root {
  --blue-900: #0b2d4d;
  --blue-800: #123f6d;
  --blue-700: #155b9d;
  --blue-100: #eaf4ff;
  --orange-700: #d86400;
  --orange-600: #f57c00;
  --orange-100: #fff1df;
  --green-600: #128c4a;
  --ink: #17212b;
  --muted: #667085;
  --line: #d9e2ec;
  --soft: #f6f8fb;
  --white: #ffffff;
  --danger: #c62828;
  --shadow: 0 18px 50px rgba(15, 38, 67, 0.12);
  --shadow-strong: 0 26px 70px rgba(10, 35, 64, 0.22);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: auto;
}

body[data-page="home"] #courses,
body[data-page="home"] #batches,
body[data-page="home"] #student-services,
body[data-page="home"] #contact {
  scroll-margin-top: 85px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--soft);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}

body.has-mobile-app-nav {
  padding-bottom: env(safe-area-inset-bottom, 0);
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.receipt-status {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
}

.receipt-status.cancelled {
  color: #991b1b;
  background: #fee2e2;
  border: 1px solid #fecaca;
}

.lookup-secure-form {
  display: grid;
  grid-template-columns: minmax(240px, 1.4fr) minmax(220px, 0.8fr) auto;
  gap: 14px;
  align-items: end;
}

.lookup-secure-form label {
  display: grid;
  gap: 7px;
  color: var(--blue-900);
  font-weight: 800;
}

.lookup-secure-form input {
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.lookup-neutral-message {
  text-align: center;
}

.lookup-neutral-message .btn {
  margin-top: 12px;
}

.policy-page {
  max-width: 900px;
  margin-inline: auto;
}

.policy-page h2 {
  margin-top: 28px;
  color: var(--blue-900);
  font-size: 1.2rem;
}

.policy-page li {
  margin-bottom: 10px;
}

@media (max-width: 760px) {
  .lookup-secure-form {
    grid-template-columns: 1fr;
  }

  .lookup-secure-form .btn {
    width: 100%;
    min-height: 44px;
  }
}

.container {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark,
.slip-logo,
.mini-logo {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  color: var(--white);
  background: var(--blue-700);
  border: 3px solid var(--orange-600);
  border-radius: 50%;
  font-weight: 800;
}

.brand-mark.has-logo,
.slip-logo.has-logo,
.mini-logo.has-logo {
  overflow: hidden;
  padding: 0;
  background: var(--white);
}

.brand-mark.has-logo img,
.slip-logo.has-logo img,
.mini-logo.has-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 1rem;
  line-height: 1.2;
}

.brand small {
  color: var(--muted);
  font-size: 0.78rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a,
.nav-button {
  border: 0;
  background: transparent;
  color: var(--ink);
  padding: 10px 14px;
  border-radius: var(--radius);
  font-weight: 700;
}

.nav-links a:hover,
.nav-links a.active,
.nav-button:hover {
  background: var(--blue-100);
  color: var(--blue-700);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--blue-900);
}

.mobile-app-nav {
  display: none;
}

.hero {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  color: var(--white);
  background: var(--blue-900);
  isolation: isolate;
  perspective: 1200px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(6, 31, 58, 0.9), rgba(6, 31, 58, 0.72) 52%, rgba(6, 31, 58, 0.58));
}

.hero::after {
  content: "";
  position: absolute;
  left: -8%;
  right: -8%;
  bottom: -34%;
  z-index: 2;
  height: 62%;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.14) 1px, transparent 1px);
  background-size: 58px 58px;
  opacity: 0.44;
  pointer-events: none;
  transform: rotateX(64deg) translateY(14px);
  transform-origin: center bottom;
  animation: heroGridMove 18s linear infinite;
}

.hero-3d-canvas {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.75s ease;
}

.hero.three-ready .hero-3d-canvas {
  opacity: 0.88;
}

.hero.three-fallback .hero-3d-canvas,
.hero.three-paused .hero-3d-canvas {
  display: none;
}

.hero-grid {
  position: relative;
  z-index: 4;
  display: block;
  padding: 104px 0 62px;
}

.hero-copy {
  max-width: 820px;
  animation: heroCopyIn 0.5s var(--ease) both;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--orange-600);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #ffbc70;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.hero h1 {
  margin-bottom: 18px;
  max-width: 900px;
  font-size: clamp(2.45rem, 6vw, 5rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.hero-text {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.12rem;
}

.hero-actions,
.contact-actions,
.action-row,
.form-actions,
.dashboard-actions,
.profile-actions,
.id-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 11px 18px;
  font-weight: 800;
  text-align: center;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn.primary {
  color: var(--white);
  background: var(--orange-600);
  box-shadow: 0 10px 24px rgba(245, 124, 0, 0.22);
}

.btn.primary:hover {
  box-shadow: 0 16px 34px rgba(245, 124, 0, 0.32);
}

.btn.secondary {
  color: var(--blue-800);
  background: var(--white);
  border-color: var(--line);
}

.file-button {
  position: relative;
  overflow: hidden;
}

.file-button input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
}

.btn.disabled-link,
.btn[aria-disabled="true"] {
  pointer-events: none;
  opacity: 0.55;
  transform: none;
}

.btn.whatsapp {
  color: var(--white);
  background: var(--green-600);
}

.tap-animate {
  animation: buttonTap 220ms var(--ease);
}

@keyframes buttonTap {
  0% {
    transform: scale(1);
  }

  45% {
    transform: scale(0.96);
  }

  75% {
    transform: scale(1.035);
  }

  100% {
    transform: scale(1);
  }
}

.btn.full {
  width: 100%;
}

.quick-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.quick-contact span {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  transition: transform 0.25s var(--ease), background 0.25s ease;
}

.quick-contact span:hover {
  background: rgba(255, 255, 255, 0.17);
  transform: translateY(-2px);
}

.home-proof-band {
  position: relative;
  z-index: 5;
  margin-top: -34px;
  padding-bottom: 34px;
  background: linear-gradient(180deg, transparent 0, var(--white) 35%);
}

.director-section {
  background: #fff;
}

.director-layout {
  display: grid;
  grid-template-columns: minmax(240px, 360px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 6vw, 88px);
}

.director-portrait {
  margin: 0;
  overflow: hidden;
  aspect-ratio: 7 / 8;
  border: 1px solid #d8e3ef;
  border-radius: 8px;
  background: #f5f8fb;
  box-shadow: 0 18px 46px rgba(16, 49, 82, 0.13);
}

.director-portrait img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 22%;
}

.director-copy h2 {
  max-width: 760px;
  margin-bottom: 22px;
}

.director-copy blockquote {
  max-width: 780px;
  margin: 0 0 26px;
  padding: 20px 0 20px 24px;
  border-left: 4px solid var(--orange);
  color: #34475c;
  font-size: clamp(1.05rem, 1.6vw, 1.28rem);
  line-height: 1.75;
}

.director-signoff {
  display: grid;
  gap: 4px;
  color: #5d6d80;
}

.director-signoff strong {
  color: var(--navy);
  font-size: 1.18rem;
}

.director-signoff small {
  font-size: 0.9rem;
}

@media (max-width: 760px) {
  .director-layout {
    grid-template-columns: 1fr;
  }

  .director-portrait {
    width: min(100%, 340px);
    margin-inline: auto;
  }

  .director-copy {
    text-align: center;
  }

  .director-copy blockquote {
    padding: 16px 0 16px 18px;
    text-align: left;
  }

  .director-copy .section-actions {
    justify-content: center;
  }
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.proof-grid article {
  display: grid;
  gap: 5px;
  min-height: 92px;
  padding: 18px;
  border: 1px solid rgba(21, 91, 157, 0.14);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 18px 38px rgba(15, 38, 67, 0.1);
}

.proof-grid strong {
  color: var(--blue-900);
  font-size: 1rem;
}

.proof-grid span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.8fr);
  gap: 16px;
  max-width: 960px;
  margin-top: 44px;
  transform-style: preserve-3d;
  animation: heroPanelIn 0.85s var(--ease) 0.08s both;
}

.admission-card,
.hero-stats {
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.17), rgba(255, 255, 255, 0.08));
  box-shadow: 0 24px 52px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(10px);
  transform: translateZ(0);
  transition: transform 0.35s var(--ease), border-color 0.35s ease, background 0.35s ease;
}

.admission-card:hover,
.hero-stats:hover {
  border-color: rgba(255, 207, 141, 0.52);
  transform: translateY(-4px) rotateX(2deg);
}

.admission-card {
  padding: 22px;
}

.admission-card h2 {
  margin: 14px 0 8px;
  font-size: 1.55rem;
}

.admission-card p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.84);
}

.hero-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.hero-checks span {
  padding: 7px 10px;
  border: 1px solid rgba(255, 207, 141, 0.38);
  border-radius: 999px;
  color: #ffcf8d;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.82rem;
  font-weight: 800;
}

.badge {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--blue-900);
  background: #ffcf8d;
  font-size: 0.8rem;
  font-weight: 900;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}

.hero-stats div {
  padding: 22px 14px;
  text-align: center;
}

.hero-stats strong {
  display: block;
  font-size: 1.75rem;
}

.hero-stats span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9rem;
}

.section {
  padding: 72px 0;
  background: var(--white);
}

.institute-section {
  background:
    linear-gradient(180deg, rgba(234, 244, 255, 0.68), rgba(255, 255, 255, 0.96)),
    var(--white);
}

.muted-section {
  background: var(--blue-100);
}

.section-heading {
  margin-bottom: 24px;
}

.compact-heading {
  margin-top: 34px;
}

.section-heading h2,
.two-column h2,
.contact-layout h2,
.page-title h1,
.dashboard-head h1 {
  margin-bottom: 12px;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.1;
  letter-spacing: 0;
}

.section-copy,
.page-title p,
.login-card p {
  color: var(--muted);
}

.feature-grid,
.track-grid {
  display: grid;
  gap: 16px;
}

.feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.track-grid {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.feature-card,
.track-card,
.portal-strip {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 16px 38px rgba(15, 38, 67, 0.08);
}

.feature-card,
.track-card {
  position: relative;
  overflow: hidden;
  padding: 20px;
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease), border-color 0.28s ease;
}

.feature-card::before,
.track-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--orange-600), var(--blue-700));
}

.feature-card:hover,
.track-card:hover {
  border-color: rgba(21, 91, 157, 0.24);
  box-shadow: 0 22px 46px rgba(15, 38, 67, 0.12);
  transform: translateY(-5px);
}

.feature-card span,
.track-card span {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 6px 9px;
  border-radius: 999px;
  color: var(--blue-900);
  background: var(--blue-100);
  font-size: 0.78rem;
  font-weight: 900;
}

.feature-card h3,
.track-card h3 {
  margin-bottom: 8px;
  color: var(--blue-900);
}

.feature-card p,
.track-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.track-card {
  background: linear-gradient(145deg, var(--white), #f8fbff);
}

.level-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.level-card {
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px solid rgba(21, 91, 157, 0.16);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 14px 32px rgba(15, 38, 67, 0.07);
}

.level-card span {
  width: fit-content;
  border-radius: 999px;
  padding: 5px 9px;
  color: var(--white);
  background: var(--blue-700);
  font-size: 0.78rem;
  font-weight: 900;
}

.level-card strong {
  color: var(--blue-900);
  line-height: 1.35;
}

.level-card.job span {
  background: var(--green-600);
}

.level-card.pro span {
  background: var(--orange-700);
}

.course-showcase {
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid rgba(21, 91, 157, 0.14);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(248, 251, 255, 0.92)),
    var(--white);
  box-shadow: 0 22px 54px rgba(15, 38, 67, 0.08);
}

.course-category-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.course-category-strip span {
  padding: 7px 10px;
  border: 1px solid rgba(21, 91, 157, 0.14);
  border-radius: 999px;
  color: var(--blue-900);
  background: var(--white);
  font-size: 0.78rem;
  font-weight: 900;
}

.course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
}

.course-card {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  position: relative;
  overflow: hidden;
  min-height: 120px;
  padding: 16px;
  border: 1px solid rgba(21, 91, 157, 0.14);
  border-radius: var(--radius);
  background: linear-gradient(145deg, var(--white), #f8fbff);
  box-shadow: 0 12px 30px rgba(15, 38, 67, 0.06);
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease), border-color 0.28s ease;
}

.course-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 4px;
  background: linear-gradient(90deg, var(--orange-600), var(--blue-700));
}

.course-card:hover {
  border-color: rgba(21, 91, 157, 0.28);
  box-shadow: 0 18px 38px rgba(15, 38, 67, 0.12);
  transform: translateY(-4px);
}

.course-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  color: var(--white);
  background: linear-gradient(135deg, var(--blue-900), var(--blue-700));
  font-weight: 950;
  box-shadow: 0 12px 22px rgba(21, 91, 157, 0.18);
}

.course-card span,
.course-card strong,
.course-card small {
  display: block;
}

.course-card-content {
  display: flex;
  min-width: 0;
  height: 100%;
  flex-direction: column;
}

.course-enquire-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 40px;
  margin-top: auto;
  padding: 9px 14px;
  border: 1px solid rgba(245, 124, 0, 0.35);
  border-radius: 6px;
  color: var(--orange-700);
  background: var(--orange-100);
  font-weight: 900;
}

.course-more-action {
  justify-content: center;
  margin-top: 24px;
}

.course-card span {
  width: fit-content;
  margin-bottom: 7px;
  border-radius: 999px;
  padding: 4px 8px;
  color: var(--blue-800);
  background: var(--blue-100);
  font-size: 0.72rem;
  font-weight: 900;
}

.course-card strong {
  color: var(--blue-900);
  line-height: 1.25;
}

.course-card small {
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 780;
}

.course-accounting .course-mark {
  background: linear-gradient(135deg, var(--green-600), #0b6f3a);
}

.course-design .course-mark {
  background: linear-gradient(135deg, var(--orange-600), var(--orange-700));
}

.course-coding .course-mark {
  background: linear-gradient(135deg, #155b9d, #10345c);
}

.course-video .course-mark {
  background: linear-gradient(135deg, #7c3aed, #155b9d);
}

.course-diploma .course-mark {
  background: linear-gradient(135deg, #0f766e, var(--blue-700));
}

.two-column,
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1.15fr);
  gap: 36px;
  align-items: start;
}

.batch-list {
  display: grid;
  gap: 12px;
}

.batch-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, var(--white), #f8fbff);
  box-shadow: 0 12px 30px rgba(15, 38, 67, 0.05);
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease), border-color 0.28s ease;
}

.batch-item:hover {
  border-color: rgba(245, 124, 0, 0.34);
  box-shadow: 0 18px 38px rgba(15, 38, 67, 0.11);
  transform: translateY(-4px);
}

.batch-item span {
  display: grid;
  gap: 2px;
}

.batch-item small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
}

.batch-item strong {
  color: var(--blue-900);
  font-weight: 950;
}

.batch-item a {
  color: var(--orange-600);
  font-weight: 900;
}

.batch-public-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.batch-public-actions a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
}

.batch-public-actions a:first-child {
  color: var(--green-600);
  border-color: rgba(18, 140, 74, 0.28);
  background: #edf9f2;
}

.footer-admin-link {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.86rem;
}

@media (max-width: 640px) {
  .batch-item,
  .batch-public-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .batch-public-actions {
    width: 100%;
  }

  .batch-public-actions a {
    justify-content: center;
    min-height: 44px;
  }
}

.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.portal-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr);
  gap: 24px;
  align-items: center;
  padding: 28px;
}

.portal-strip h2 {
  margin-bottom: 10px;
  color: var(--blue-900);
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  line-height: 1.12;
}

.portal-points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.portal-points span,
.portal-points a {
  padding: 14px 12px;
  border: 1px solid rgba(21, 91, 157, 0.16);
  border-radius: var(--radius);
  color: var(--blue-900);
  background: #fbfdff;
  font-weight: 900;
}

.portal-points a:hover {
  border-color: rgba(245, 124, 0, 0.36);
  color: var(--orange-700);
  background: var(--orange-100);
}

.contact-highlight {
  display: grid;
  gap: 4px;
  width: fit-content;
  margin-top: 20px;
  padding: 14px 16px;
  border: 1px solid rgba(245, 124, 0, 0.24);
  border-radius: var(--radius);
  background: #fff8ef;
}

.contact-highlight strong {
  color: var(--orange-700);
}

.contact-highlight span {
  color: var(--muted);
  font-weight: 800;
}

.contact-card,
.form-card,
.panel,
.success-card,
.login-card,
.stat-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease), border-color 0.28s ease;
}

.contact-card:hover,
.form-card:hover,
.panel:hover,
.success-card:hover,
.login-card:hover,
.stat-card:hover {
  border-color: rgba(21, 91, 157, 0.18);
  box-shadow: var(--shadow-strong);
  transform: translateY(-3px);
}

.contact-card {
  padding: 24px;
}

.contact-card p,
.success-summary p,
.detail-grid p {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 14px;
  margin: 0;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.contact-card p:last-of-type,
.success-summary p:last-child,
.detail-grid p:last-child {
  border-bottom: 0;
}

.contact-card strong,
.success-summary strong,
.detail-grid strong {
  color: var(--blue-900);
}

.contact-actions {
  margin-top: 20px;
}

.site-footer {
  padding: 24px 0;
  color: rgba(255, 255, 255, 0.82);
  background: var(--blue-900);
}

.site-footer .container {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.site-footer p {
  margin: 0;
}

.page-shell {
  padding: 48px 0 72px;
}

body[data-page="dashboard"] .page-shell {
  padding: 28px 0 34px;
}

.page-title {
  max-width: 760px;
  margin-bottom: 28px;
}

.form-card {
  overflow: hidden;
}

.form-section {
  padding: 26px;
  border-bottom: 1px solid var(--line);
}

.form-section:last-of-type {
  border-bottom: 0;
}

.form-section-head {
  display: grid;
  grid-template-columns: minmax(220px, 0.35fr) minmax(0, 1fr);
  gap: 20px;
  margin-bottom: 20px;
}

.form-section-head h2 {
  margin-bottom: 0;
  font-size: 1.2rem;
}

.form-section-head p {
  margin-bottom: 0;
  color: var(--muted);
}

.form-grid,
.filter-grid,
.upload-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.filter-grid {
  margin-bottom: 20px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--blue-900);
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid #cbd7e2;
  border-radius: var(--radius);
  padding: 10px 12px;
  color: var(--ink);
  background: var(--white);
  outline: none;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--blue-700);
  box-shadow: 0 0 0 4px rgba(21, 91, 157, 0.12);
}

.searchable-select {
  position: relative;
  display: block;
  width: 100%;
}

.searchable-select-input {
  padding-right: 42px;
  background:
    linear-gradient(45deg, transparent 50%, var(--blue-700) 50%) calc(100% - 18px) 52% / 7px 7px no-repeat,
    linear-gradient(135deg, var(--blue-700) 50%, transparent 50%) calc(100% - 13px) 52% / 7px 7px no-repeat,
    var(--white);
}

.native-search-select {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 1px;
  min-height: 1px;
  height: 1px;
  padding: 0;
  border: 0;
  opacity: 0;
  pointer-events: none;
}

.searchable-select-list {
  position: absolute;
  z-index: 80;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  max-height: 280px;
  overflow: auto;
  padding: 8px;
  border: 1px solid #bfd0df;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 20px 45px rgba(10, 41, 72, 0.18);
}

.searchable-select-option,
.searchable-select-empty {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
  font-weight: 800;
  text-align: left;
}

.searchable-select-option {
  display: block;
  cursor: pointer;
}

.searchable-select-option:hover,
.searchable-select-option.active {
  color: var(--blue-900);
  background: #eaf4ff;
}

.searchable-select-empty {
  color: var(--muted);
}

.form-grid > .wide,
.filter-grid > .wide,
label.wide {
  grid-column: 1 / -1;
}

.field-message,
.upload-box small {
  min-height: 20px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
}

.field-message.danger,
.form-error {
  color: var(--danger);
}

.upload-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.upload-box {
  align-content: start;
  min-height: 220px;
  padding: 16px;
  border: 1px dashed #a9bbca;
  border-radius: var(--radius);
  background: #fbfdff;
}

.upload-box input {
  padding: 9px;
  background: var(--white);
}

.photo-preview {
  display: none;
  width: 112px;
  height: 132px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--blue-100);
}

.photo-preview.show {
  display: block;
}

.form-actions {
  justify-content: flex-end;
  padding: 22px 26px;
  background: #fbfdff;
}

.form-status {
  min-height: 24px;
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
}

.form-status.success {
  color: var(--green-600);
}

.form-status.error {
  color: var(--danger);
}

.login-shell {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
  background: var(--blue-900);
}

.login-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(6, 31, 58, 0.74);
}

.login-card {
  position: relative;
  z-index: 1;
  width: min(440px, 100%);
  padding: 30px;
}

.login-brand {
  margin-bottom: 24px;
}

.login-card h1 {
  margin-bottom: 8px;
}

.login-form {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.link-button {
  justify-self: center;
  border: 0;
  color: var(--blue-700);
  background: transparent;
  font-weight: 800;
}

.back-link {
  display: inline-flex;
  margin-top: 20px;
  color: var(--muted);
  font-weight: 700;
}

.dashboard-head,
.profile-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 24px;
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.settings-wide {
  grid-column: 1 / -1;
}

.stack-form {
  display: grid;
  gap: 16px;
}

.inline-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: end;
}

.course-builder {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfdff;
}

.course-builder-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.course-builder-head h3 {
  margin: 0 0 4px;
  color: var(--blue-900);
  font-size: 1rem;
}

.course-builder-head p {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.additional-courses {
  display: grid;
  gap: 12px;
}

.additional-course-row {
  display: grid;
  grid-template-columns: minmax(220px, 1.3fr) minmax(150px, 0.7fr) minmax(170px, 0.8fr) minmax(104px, auto);
  gap: 12px;
  align-items: end;
  padding: 12px;
  border: 1px solid rgba(21, 91, 157, 0.13);
  border-radius: var(--radius);
  background: var(--white);
}

.icon-text-button {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 12px;
  color: var(--blue-800);
  background: var(--white);
  font-weight: 900;
}

.additional-course-row .icon-text-button {
  align-self: end;
  white-space: nowrap;
}

.icon-text-button.danger {
  color: var(--danger);
  border-color: rgba(190, 18, 60, 0.28);
  background: rgba(190, 18, 60, 0.06);
}

.logo-preview {
  display: grid;
  width: 92px;
  height: 92px;
  place-items: center;
  overflow: hidden;
  border: 3px solid var(--orange-600);
  border-radius: 50%;
  color: var(--white);
  background: var(--blue-700);
  font-size: 2rem;
  font-weight: 900;
}

.logo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.database-badge {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--blue-800);
  background: var(--blue-100);
  font-size: 0.9rem;
  font-weight: 900;
}

.database-badge.online {
  color: var(--green-600);
  background: #e8f7ee;
}

.database-badge.warning {
  color: var(--orange-700);
  background: var(--orange-100);
  border-color: rgba(245, 124, 0, 0.35);
}

.setup-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0;
}

.setup-steps article {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(135deg, #ffffff, #f7fbff);
}

.setup-steps strong {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: var(--blue-700);
  font-size: 0.9rem;
  line-height: 1;
}

.setup-steps span {
  color: var(--ink);
  font-weight: 800;
}

.firebase-config-form {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.firebase-config-form textarea {
  min-height: 180px;
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.92rem;
  line-height: 1.45;
}

.setup-note {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid rgba(21, 91, 157, 0.18);
  border-radius: var(--radius);
  color: var(--blue-800);
  background: var(--blue-100);
  font-weight: 800;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.stat-card {
  padding: 20px;
}

.stat-card span {
  display: block;
  min-height: 48px;
  color: var(--muted);
  font-weight: 800;
}

.stat-card strong {
  color: var(--blue-800);
  font-size: 2.2rem;
  line-height: 1;
}

.analytics-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 18px;
}

.panel {
  padding: 22px;
  box-shadow: none;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.panel-head h2 {
  margin-bottom: 0;
  font-size: 1.16rem;
}

.panel-head span {
  color: var(--muted);
  font-weight: 800;
}

.count-list {
  display: grid;
  gap: 10px;
}

.mini-chart {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

.chart-row {
  display: grid;
  grid-template-columns: minmax(90px, 0.5fr) minmax(120px, 1fr) 32px;
  gap: 10px;
  align-items: center;
  font-size: 0.86rem;
}

.chart-row span {
  overflow: hidden;
  color: var(--muted);
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chart-row div {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--blue-100);
}

.chart-row i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--orange-600);
}

.chart-row strong {
  color: var(--blue-800);
  text-align: right;
}

.count-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfdff;
}

.count-item span {
  min-width: 0;
}

.count-item strong {
  color: var(--orange-600);
}

body[data-page="dashboard"] .dashboard-head {
  display: grid;
  grid-template-columns: minmax(220px, 0.72fr) minmax(320px, 1.28fr);
  gap: 16px;
  margin-bottom: 16px;
}

body[data-page="dashboard"] .dashboard-head h1 {
  max-width: 360px;
  margin-bottom: 0;
  font-size: clamp(1.8rem, 3vw, 2.35rem);
}

body[data-page="dashboard"] .dashboard-actions {
  justify-content: flex-end;
  gap: 8px;
}

body[data-page="dashboard"] .dashboard-actions .btn,
body[data-page="dashboard"] .dashboard-actions .database-badge {
  min-height: 40px;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 0.9rem;
}

body[data-page="dashboard"] .dashboard-tool-panel {
  margin-bottom: 16px;
  border-color: rgba(25, 118, 210, 0.15);
  background:
    linear-gradient(135deg, rgba(25, 118, 210, 0.05), rgba(245, 124, 0, 0.05)),
    var(--white);
}

.tool-action-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
}

.tool-action-grid .btn {
  width: 100%;
  min-height: 44px;
  border-radius: 8px;
}

.backup-activity-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(360px, 1.1fr);
  gap: 16px;
  margin-bottom: 16px;
}

.backup-health-panel {
  border-color: rgba(46, 125, 50, 0.18);
  background:
    linear-gradient(135deg, rgba(46, 125, 50, 0.06), rgba(25, 118, 210, 0.04)),
    var(--white);
}

.backup-health-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.backup-health-card {
  min-width: 0;
  padding: 13px;
  border: 1px solid rgba(15, 38, 67, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
}

.backup-health-card span {
  display: block;
  color: var(--muted);
  font-size: 0.83rem;
  font-weight: 800;
}

.backup-health-card strong {
  display: block;
  margin-top: 6px;
  color: var(--blue-900);
  font-size: 1rem;
  line-height: 1.25;
}

.backup-health-card small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.35;
}

.backup-health-card.success {
  border-color: rgba(25, 135, 84, 0.24);
  background: #f1fbf5;
}

.backup-health-card.warning {
  border-color: rgba(245, 124, 0, 0.28);
  background: #fff8ec;
}

.activity-log-panel {
  background:
    linear-gradient(135deg, rgba(25, 118, 210, 0.05), rgba(255, 255, 255, 0.9)),
    var(--white);
}

.activity-log-list {
  display: grid;
  gap: 9px;
  max-height: 330px;
  overflow-y: auto;
  padding-right: 4px;
}

.activity-log-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
  padding: 11px;
  border: 1px solid rgba(15, 38, 67, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
}

.activity-log-icon {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  color: var(--blue-900);
  background: var(--blue-100);
  font-size: 0.84rem;
  font-weight: 900;
}

.activity-log-item[data-type="fee"] .activity-log-icon {
  color: #9a4b00;
  background: #fff1dd;
}

.activity-log-item[data-type="backup"] .activity-log-icon {
  color: #0f6b37;
  background: #e8f7ee;
}

.activity-log-item[data-type="certificate"] .activity-log-icon {
  color: #5b3aa8;
  background: #f0ebff;
}

.activity-log-main {
  min-width: 0;
}

.activity-log-main strong {
  display: block;
  color: var(--blue-900);
  line-height: 1.25;
}

.activity-log-main p {
  margin: 4px 0 0;
  color: var(--text);
  font-weight: 700;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.activity-log-main small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-weight: 700;
}

body[data-page="dashboard"] .stats-grid {
  gap: 12px;
  margin-bottom: 14px;
}

body[data-page="dashboard"] .stat-card {
  min-height: 112px;
  padding: 16px;
}

body[data-page="dashboard"] .stat-card span {
  min-height: 34px;
  font-size: 0.94rem;
}

body[data-page="dashboard"] .stat-card strong {
  font-size: 2rem;
}

body[data-page="dashboard"] .panel {
  padding: 18px;
}

body[data-page="dashboard"] .panel-head {
  margin-bottom: 14px;
}

body[data-page="dashboard"] .filter-grid {
  gap: 12px;
  margin-bottom: 14px;
}

body[data-page="dashboard"] .dashboard-analytics {
  margin-top: 16px;
  margin-bottom: 0;
}

body[data-page="dashboard"] .dashboard-analytics .count-list {
  max-height: 280px;
  overflow-y: auto;
  padding-right: 4px;
}

body[data-page="dashboard"] .dashboard-student-panel {
  display: block !important;
  margin: 0 0 16px;
}

body[data-page="dashboard"] .dashboard-student-panel .table-wrap {
  max-height: min(620px, calc(100vh - 300px));
  overflow: auto;
}

body[data-page="dashboard"] .dashboard-student-panel .student-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.mobile-student-list {
  display: none;
}

.student-table {
  width: 100%;
  min-width: 1140px;
  border-collapse: collapse;
  background: var(--white);
}

.student-table th,
.student-table td {
  padding: 13px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.student-table th {
  color: var(--blue-900);
  background: var(--blue-100);
  font-size: 0.88rem;
}

.student-table tr:last-child td {
  border-bottom: 0;
}

.table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.table-actions a,
.table-actions button {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 7px 9px;
  color: var(--blue-800);
  background: var(--white);
  font-size: 0.86rem;
  font-weight: 800;
}

.fee-action,
.standalone-fee-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(245, 124, 0, 0.52);
  border-radius: 6px;
  padding: 7px 9px;
  color: var(--white);
  background: linear-gradient(135deg, var(--orange-600), var(--orange-700));
  font-size: 0.86rem;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(245, 124, 0, 0.18);
}

.fee-action:hover,
.standalone-fee-action:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 22px rgba(245, 124, 0, 0.26);
}

.reminder-action {
  border-color: rgba(18, 140, 74, 0.5);
  background: linear-gradient(135deg, #14a85d, var(--green-600));
  box-shadow: 0 8px 18px rgba(18, 140, 74, 0.18);
}

.reminder-action:hover {
  box-shadow: 0 12px 22px rgba(18, 140, 74, 0.24);
}

.disabled-action {
  color: var(--muted);
  border-color: var(--line);
  background: #eef2f6;
  box-shadow: none;
  cursor: not-allowed;
}

.report-quick-nav {
  position: sticky;
  top: 76px;
  z-index: 20;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  gap: 8px;
  margin: 0 0 18px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 32px rgba(21, 91, 157, 0.09);
  backdrop-filter: blur(12px);
}

.report-nav-button {
  display: grid;
  gap: 3px;
  min-height: 58px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 9px 10px;
  color: var(--muted);
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.report-nav-button span {
  font-size: 0.76rem;
  font-weight: 850;
}

.report-nav-button strong {
  color: var(--blue-900);
  font-size: 0.94rem;
  line-height: 1.1;
}

.report-nav-button.active,
.report-nav-button:hover {
  border-color: rgba(245, 124, 0, 0.3);
  background: linear-gradient(135deg, #fff8ef, #ffffff);
  box-shadow: 0 10px 20px rgba(245, 124, 0, 0.11);
}

.report-tab-panel {
  animation: reportPanelIn 180ms ease both;
}

.report-tab-panel[hidden] {
  display: none !important;
}

@keyframes reportPanelIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.collection-overview-panel {
  margin-bottom: 18px;
}

.collection-stats-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.compact-collection-grid {
  margin: 18px 0;
}

.collection-stat-card {
  display: grid;
  gap: 14px;
  min-height: 132px;
  padding: 18px;
  border: 1px solid rgba(21, 91, 157, 0.14);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(248, 251, 255, 0.96)),
    var(--white);
  box-shadow: 0 16px 30px rgba(21, 91, 157, 0.07);
}

.collection-stat-card span {
  color: var(--muted);
  font-weight: 900;
}

.collection-stat-card strong {
  color: var(--blue-900);
  font-size: 2rem;
  line-height: 1;
}

.collection-stat-card.cash {
  border-color: rgba(245, 124, 0, 0.24);
}

.collection-stat-card.upi {
  border-color: rgba(25, 118, 210, 0.22);
}

.collection-stat-card.today {
  background:
    linear-gradient(145deg, rgba(255, 248, 239, 0.96), rgba(255, 255, 255, 0.96)),
    var(--white);
}

.report-overview-panel {
  display: grid;
  gap: 18px;
  margin-bottom: 18px;
  overflow: hidden;
  border-color: rgba(25, 118, 210, 0.16);
  background:
    linear-gradient(135deg, rgba(25, 118, 210, 0.09), rgba(245, 124, 0, 0.08)),
    var(--white);
}

.report-overview-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 16px;
  align-items: end;
}

.report-overview-title {
  display: grid;
  gap: 6px;
}

.report-overview-title h2 {
  margin: 0;
  color: var(--blue-900);
  font-size: 1.35rem;
}

.report-overview-title span {
  color: var(--muted);
  font-weight: 800;
}

.report-control-card {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  align-items: stretch;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.86);
}

.report-control-card label {
  grid-column: 1 / -1;
  display: grid;
  gap: 7px;
  color: var(--blue-900);
  font-weight: 900;
}

.report-control-card input[type="month"] {
  width: 100%;
  min-width: 0;
}

.report-control-card .btn {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  line-height: 1.15;
  text-align: center;
  white-space: normal;
}

.panel-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.panel-status {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.panel-status[data-state="error"] {
  color: #b91c1c;
}

.report-money-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.report-money-card {
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px solid rgba(25, 118, 210, 0.16);
  border-radius: var(--radius);
  background: var(--white);
}

.report-money-card span {
  color: var(--muted);
  font-weight: 900;
}

.report-money-card strong {
  color: var(--blue-800);
  font-size: 2rem;
  line-height: 1;
}

.report-money-card.received {
  border-color: rgba(21, 128, 61, 0.2);
  background: #f3fbf6;
}

.report-money-card.received strong {
  color: var(--green-600);
}

.report-money-card.pending {
  border-color: rgba(245, 124, 0, 0.28);
  background: #fff8ef;
}

.report-money-card.pending strong {
  color: var(--orange-700);
}

.report-mini-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.report-mini-stats article {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.74);
}

.report-mini-stats span {
  color: var(--muted);
  font-weight: 900;
}

.report-mini-stats strong {
  color: var(--blue-800);
  font-size: 1.45rem;
}

.balance-summary-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 14px 0;
}

.balance-summary-grid article:last-child {
  border-color: rgba(245, 124, 0, 0.26);
  background: #fff8ef;
}

.balance-summary-grid article:last-child strong {
  color: var(--orange-700);
}

.compact-report-filters {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 14px;
}

.balance-report-table th:nth-child(1),
.balance-report-table td:nth-child(1) {
  min-width: 220px;
}

.balance-report-table th:nth-child(4),
.balance-report-table td:nth-child(4) {
  min-width: 330px;
}

.balance-course-list,
.balance-month-list {
  display: grid;
  gap: 8px;
}

.balance-course-list > span,
.balance-month-list > span {
  display: grid;
  gap: 4px;
  align-items: start;
}

.balance-course-list > span {
  grid-template-columns: minmax(120px, auto) max-content;
  justify-content: start;
}

.balance-month-list strong {
  color: var(--blue-800);
}

.balance-month-list span {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
}

.report-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 2px;
}

.report-action-row .btn {
  min-height: 42px;
}

.report-summary-visuals,
.monthly-pending-panel {
  margin-bottom: 18px;
}

.batch-report-panel {
  display: grid;
  gap: 16px;
  margin-bottom: 18px;
}

.batch-report-picker {
  min-width: 260px;
}

.batch-report-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.batch-summary-card {
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid rgba(21, 91, 157, 0.14);
  border-radius: var(--radius);
  background: #fbfdff;
}

.batch-summary-card.highlight {
  border-color: rgba(245, 124, 0, 0.32);
  background: linear-gradient(145deg, #fff8ef, #ffffff);
}

.batch-summary-card span {
  color: var(--muted);
  font-weight: 900;
}

.batch-summary-card strong {
  color: var(--blue-900);
  font-size: 2rem;
  line-height: 1;
}

.batch-count-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.batch-chip {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--blue-900);
  background: var(--white);
  box-shadow: 0 8px 18px rgba(21, 91, 157, 0.06);
  cursor: pointer;
}

.batch-chip span {
  font-weight: 900;
}

.batch-chip strong {
  min-width: 30px;
  padding: 4px 7px;
  border-radius: 999px;
  color: var(--white);
  background: var(--blue-800);
  text-align: center;
}

.batch-chip.active {
  border-color: rgba(245, 124, 0, 0.36);
  background: #fff8ef;
}

.batch-chip.active strong {
  background: var(--orange-700);
}

.batch-report-table {
  min-width: 900px;
}

.compact-link {
  min-height: 42px;
  padding: 10px 14px;
  white-space: nowrap;
}

.report-audit-panel {
  margin-top: 18px;
}

.report-export-panel {
  margin-bottom: 18px;
}

.report-export-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.report-export-card {
  display: grid;
  gap: 8px;
  min-height: 150px;
  border: 1px solid rgba(21, 91, 157, 0.14);
  border-radius: var(--radius);
  padding: 18px;
  color: var(--blue-900);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.96)),
    var(--white);
  box-shadow: 0 14px 28px rgba(21, 91, 157, 0.07);
  text-align: left;
  cursor: pointer;
}

.report-export-card:hover {
  border-color: rgba(245, 124, 0, 0.28);
  transform: translateY(-1px);
}

.report-export-card span {
  width: fit-content;
  border-radius: 999px;
  padding: 5px 9px;
  color: var(--white);
  background: var(--orange-700);
  font-size: 0.78rem;
  font-weight: 900;
}

.report-export-card strong {
  font-size: 1.25rem;
  line-height: 1.1;
}

.report-export-card small {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.35;
}

.duplicate-list {
  display: grid;
  gap: 12px;
}

.duplicate-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(245, 124, 0, 0.28);
  border-radius: var(--radius);
  background: #fff8ef;
}

.duplicate-card > div {
  display: grid;
  gap: 4px;
}

.duplicate-card strong {
  color: var(--blue-900);
}

.duplicate-card span {
  color: var(--muted);
  font-weight: 800;
}

.duplicate-card ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.duplicate-card li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 7px;
  background: var(--white);
}

.duplicate-card a {
  color: var(--blue-700);
  font-weight: 900;
}

.report-print-summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0;
}

.report-print-summary p {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fbfdff;
}

.report-print-summary strong {
  color: var(--muted);
  font-size: 0.78rem;
}

.report-print-table {
  min-width: 0;
}

.table-actions button[data-action="delete"],
.table-actions button[data-fee-action="delete"] {
  color: var(--danger);
  border-color: rgba(190, 18, 60, 0.28);
  background: rgba(190, 18, 60, 0.06);
}

.empty-state {
  margin: 0;
  padding: 16px;
  color: var(--muted);
  text-align: center;
}

.loading-skeleton-block {
  display: grid;
  gap: 12px;
  padding: 12px;
}

.loading-skeleton-block p {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
  text-align: center;
}

.skeleton-card {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  overflow: hidden;
}

.skeleton-card span,
.skeleton-card strong,
.skeleton-card p {
  display: block;
  height: 12px;
  margin: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #edf3f8 0%, #f8fbff 45%, #edf3f8 100%);
  background-size: 220% 100%;
  animation: skeletonFlow 1.15s ease-in-out infinite;
}

.skeleton-card span {
  width: 36%;
}

.skeleton-card strong {
  width: 78%;
  height: 18px;
}

.skeleton-card p {
  width: 58%;
}

@keyframes skeletonFlow {
  0% {
    background-position: 120% 0;
  }
  100% {
    background-position: -120% 0;
  }
}

.success-layout {
  display: grid;
  place-items: center;
  margin-bottom: 28px;
}

.success-card {
  width: min(860px, 100%);
  padding: 28px;
}

.success-icon {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 50%;
  color: var(--white);
  background: var(--green-600);
  font-weight: 900;
}

.success-summary {
  margin: 22px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.lookup-panel {
  display: grid;
  gap: 20px;
}

.lookup-privacy-note {
  margin: -6px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.lookup-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfdff;
}

.lookup-note {
  margin: 8px 0 14px;
  padding: 10px 12px;
  border: 1px solid #ffd6a3;
  border-radius: 6px;
  color: #8a4a00;
  background: #fff7ec;
  font-weight: 800;
}

.lookup-card.stacked-result + .lookup-card.stacked-result {
  margin-top: 14px;
}

.certificate-page {
  background:
    radial-gradient(circle at 8% 8%, rgba(245, 124, 0, 0.09), transparent 28%),
    linear-gradient(180deg, #f6f8fb 0%, #eef5fb 100%);
}

.certificate-title {
  max-width: 820px;
}

.certificate-verify-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 22px;
  align-items: stretch;
}

.certificate-search-panel,
.certificate-qr-panel {
  position: relative;
  overflow: hidden;
}

.certificate-search-panel {
  display: grid;
  gap: 18px;
  padding: 28px;
}

.certificate-search-panel::before,
.certificate-qr-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(21, 91, 157, 0.08), transparent 42%, rgba(245, 124, 0, 0.08));
}

.certificate-seal {
  display: grid;
  width: 60px;
  height: 60px;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: linear-gradient(135deg, var(--blue-700), var(--orange-600));
  font-size: 1.8rem;
  font-weight: 900;
  box-shadow: 0 14px 28px rgba(21, 91, 157, 0.22);
}

.certificate-search-panel h2,
.certificate-qr-panel h2 {
  margin: 0;
  color: var(--blue-900);
  font-size: clamp(1.45rem, 3vw, 2rem);
  line-height: 1.15;
}

.certificate-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: end;
}

.certificate-form label {
  display: grid;
  gap: 8px;
  color: var(--blue-900);
  font-weight: 900;
}

.certificate-form input {
  width: 100%;
  min-height: 54px;
  border: 1px solid #c8d7e8;
  border-radius: var(--radius);
  padding: 12px 14px;
  background: var(--white);
  color: var(--ink);
  font-weight: 800;
}

.certificate-form input:focus {
  outline: none;
  border-color: var(--blue-700);
  box-shadow: 0 0 0 4px rgba(21, 91, 157, 0.13);
}

.certificate-entry-panel {
  overflow: hidden;
}

.certificate-entry-form {
  display: grid;
  gap: 18px;
}

.certificate-preview-box {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border: 1px solid rgba(21, 91, 157, 0.16);
  border-radius: var(--radius);
  background: #fbfdff;
}

.certificate-preview-box strong {
  color: var(--blue-900);
}

.certificate-preview-box a {
  color: var(--blue-700);
  font-weight: 900;
  overflow-wrap: anywhere;
}

.certificate-guide-panel {
  margin-top: 18px;
}

.certificate-guide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.certificate-guide-grid article {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfdff;
}

.certificate-guide-grid strong {
  color: var(--blue-900);
}

.certificate-guide-grid span {
  color: var(--muted);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.certificate-verify-status {
  min-height: 28px;
  color: var(--blue-800);
  font-weight: 800;
}

.certificate-status-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--orange-600);
  box-shadow: 0 0 0 0 rgba(245, 124, 0, 0.38);
  animation: certificatePulse 1s ease-in-out infinite;
}

.certificate-qr-panel {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 12px;
  padding: 28px;
  text-align: center;
}

.certificate-qr-wrap {
  width: 228px;
  max-width: 100%;
  padding: 12px;
  border: 1px solid rgba(21, 91, 157, 0.18);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 18px 36px rgba(15, 38, 67, 0.12);
}

.certificate-qr-wrap img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
}

.certificate-link-text {
  margin: 0;
  color: var(--muted);
  overflow-wrap: anywhere;
  font-weight: 800;
}

@keyframes certificatePulse {
  0% {
    box-shadow: 0 0 0 0 rgba(245, 124, 0, 0.38);
  }

  100% {
    box-shadow: 0 0 0 10px rgba(245, 124, 0, 0);
  }
}

.registration-slip {
  width: min(900px, 100%);
  margin: 0 auto;
  padding: 30px;
  position: relative;
  overflow: hidden;
  border: 2px solid rgba(11, 45, 77, 0.92);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 253, 255, 0.98)),
    var(--white);
  box-shadow: 0 22px 50px rgba(11, 45, 77, 0.12);
}

.fee-receipt::before {
  content: "MICE";
  position: absolute;
  right: 26px;
  bottom: 42px;
  z-index: 0;
  color: rgba(21, 91, 157, 0.055);
  font-size: clamp(4rem, 14vw, 8rem);
  font-weight: 900;
  line-height: 1;
  pointer-events: none;
}

.registration-slip::before {
  content: "";
  position: absolute;
  inset: auto 26px 26px auto;
  width: 120px;
  height: 120px;
  border: 2px solid rgba(21, 91, 157, 0.08);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(245, 124, 0, 0.08), transparent 58%),
    rgba(255, 255, 255, 0);
  pointer-events: none;
}

.slip-header,
.id-card-top {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--blue-900);
}

.registration-slip > *,
.fee-receipt > * {
  position: relative;
  z-index: 1;
}

.registration-slip .slip-header,
.fee-receipt .slip-header,
.report-print-slip .slip-header {
  margin: -14px -14px 0;
  padding: 18px;
  color: var(--white);
  border-bottom: 0;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(11, 45, 77, 0.98), rgba(21, 91, 157, 0.94)),
    var(--blue-900);
}

.registration-slip .slip-header h2,
.registration-slip .slip-header p,
.fee-receipt .slip-header h2,
.fee-receipt .slip-header p,
.report-print-slip .slip-header h2,
.report-print-slip .slip-header p {
  color: var(--white);
}

.slip-header h2,
.id-card-top h2 {
  margin-bottom: 4px;
  color: var(--blue-900);
  font-size: 1.45rem;
}

.slip-header p,
.id-card-top p {
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 0.92rem;
}

.slip-title {
  margin: 18px 0;
  padding: 10px;
  color: var(--white);
  background: linear-gradient(135deg, var(--orange-600), var(--orange-700));
  border-radius: var(--radius);
  text-align: center;
  font-size: 1.2rem;
  font-weight: 900;
  letter-spacing: 0;
}

.slip-meta-strip,
.receipt-amount-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 18px;
}

.slip-meta-strip p,
.receipt-amount-band p {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 12px;
  border: 1px solid rgba(21, 91, 157, 0.16);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 10px 22px rgba(21, 91, 157, 0.07);
}

.slip-meta-strip strong,
.receipt-amount-band strong {
  color: var(--muted);
  font-size: 0.78rem;
}

.slip-meta-strip span,
.receipt-amount-band span {
  color: var(--blue-900);
  font-size: 1.05rem;
  font-weight: 900;
}

.receipt-amount-band p:nth-child(2) {
  border-color: rgba(18, 140, 74, 0.26);
  background: linear-gradient(135deg, rgba(18, 140, 74, 0.09), var(--white));
}

.premium-stamp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 14px;
  padding: 8px 14px;
  color: var(--blue-900);
  border: 2px solid var(--orange-600);
  border-radius: 999px;
  background: #fff8ed;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.slip-body {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) 138px;
  gap: 18px;
}

.public-admission-details .slip-body {
  grid-template-columns: minmax(0, 1fr) 138px;
}

.slip-photo,
.profile-photo-block,
.id-photo,
.profile-avatar {
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--blue-100);
}

.slip-photo {
  width: 150px;
  height: 180px;
  border-radius: var(--radius);
}

.slip-photo img,
.profile-photo-block img,
.id-photo img,
.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slip-photo span,
.profile-photo-block span,
.id-photo span,
.profile-avatar span {
  color: var(--blue-800);
  font-weight: 900;
}

.slip-body table {
  width: 100%;
  border-collapse: collapse;
}

.slip-body th,
.slip-body td {
  padding: 10px;
  border: 1px solid var(--line);
  text-align: left;
}

.slip-body th {
  width: 220px;
  color: var(--blue-900);
  background: #fbfdff;
}

.slip-qr {
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfdff;
  color: var(--blue-900);
  font-size: 0.8rem;
  font-weight: 900;
  text-align: center;
}

.slip-qr img {
  width: 118px;
  height: 118px;
}

.admission-check {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 16px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--orange-100);
}

.admission-check span {
  width: 18px;
  height: 18px;
  border: 2px solid var(--blue-900);
  border-radius: 4px;
  background: var(--white);
}

.admission-check p {
  margin: 0;
  color: var(--blue-900);
  font-weight: 800;
}

.terms-box {
  margin-top: 20px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfdff;
}

.terms-box h3 {
  margin-bottom: 10px;
}

.terms-box ol {
  margin: 0;
  padding-left: 22px;
}

.signature-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px;
  margin-top: 36px;
  padding-top: 18px;
  border-top: 1px solid rgba(217, 226, 236, 0.9);
  background: rgba(255, 255, 255, 0.82);
}

.signature-row span,
.id-signature span {
  display: block;
  height: 1px;
  background: var(--ink);
}

.signature-row p,
.id-signature p {
  margin: 8px 0 0;
  color: var(--muted);
  font-weight: 800;
  text-align: center;
}

.profile-title {
  display: flex;
  align-items: center;
  gap: 16px;
}

.profile-avatar {
  width: 78px;
  height: 78px;
  border-radius: 50%;
}

.profile-main {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 24px;
  margin-bottom: 18px;
}

.profile-photo-block {
  width: 180px;
  height: 220px;
  border-radius: var(--radius);
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 22px;
}

.compact-form {
  margin-bottom: 16px;
}

.fee-form {
  display: grid;
  gap: 16px;
}

.field-note {
  display: block;
  min-height: 17px;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
  line-height: 1.25;
}

.registration-fee-field[hidden] {
  display: none;
}

.quick-fee-panel {
  margin-bottom: 20px;
  border-color: rgba(245, 124, 0, 0.28);
  background:
    linear-gradient(135deg, rgba(255, 241, 223, 0.86), rgba(255, 255, 255, 0.96)),
    var(--white);
}

.quick-fee-panel {
  position: relative;
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(21, 91, 157, 0.14);
  border-top: 4px solid rgba(245, 124, 0, 0.9);
  background:
    linear-gradient(135deg, rgba(244, 248, 252, 0.96), rgba(255, 255, 255, 0.98) 42%, rgba(255, 247, 237, 0.9)),
    #ffffff;
}

.quick-fee-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 68px;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(11, 49, 88, 0.08), rgba(245, 124, 0, 0.1));
}

.quick-fee-panel > .panel-head {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 20px 22px 16px;
  border-bottom: 1px solid rgba(21, 91, 157, 0.1);
}

.quick-fee-panel > .panel-head h2 {
  margin: 0;
  color: var(--blue-900);
  font-size: 1.32rem;
}

.quick-fee-panel > .panel-head span {
  color: #64748b;
  font-weight: 800;
}

.quick-fee-panel .fee-form {
  position: relative;
  z-index: 1;
  padding: 18px 22px 22px;
}

.quick-fee-panel .form-grid {
  grid-template-columns: 1.35fr 0.78fr 0.96fr 0.82fr;
  gap: 14px;
  align-items: stretch;
}

.quick-fee-panel .form-grid label {
  align-content: start;
  min-height: 92px;
  padding: 12px;
  border: 1px solid rgba(21, 91, 157, 0.12);
  border-radius: 9px;
  color: #27486b;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 10px 24px rgba(15, 38, 67, 0.04);
}

.quick-fee-panel .form-grid label:focus-within {
  border-color: rgba(21, 91, 157, 0.35);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(21, 91, 157, 0.08);
}

.quick-fee-panel .form-grid input,
.quick-fee-panel .form-grid select,
.quick-fee-panel .form-grid textarea,
.quick-fee-panel .searchable-select-input {
  min-height: 42px;
  border-color: rgba(21, 91, 157, 0.16);
  background-color: #fbfdff;
  font-weight: 850;
}

.quick-fee-panel #quickFeeAmount,
.quick-fee-panel #quickRegistrationFee,
.quick-fee-panel #quickRegistrationDiscount {
  color: var(--blue-900);
  background: #fffaf4;
  font-size: 1.05rem;
  font-weight: 950;
}

.quick-fee-panel #quickPaymentMode {
  color: #0f7a41;
}

.quick-fee-panel .field-note {
  min-height: 0;
  color: #64748b;
}

.quick-fee-panel .quick-student-summary,
.quick-fee-panel .fee-due-preview,
.quick-fee-panel .family-fee-panel {
  margin-top: 2px;
}

.quick-fee-panel .compact-actions {
  display: flex;
  justify-content: flex-end;
  padding-top: 4px;
}

.quick-fee-panel #quickFeeButton {
  min-width: 220px;
  min-height: 52px;
  border-radius: 9px;
  font-size: 1rem;
  box-shadow: 0 14px 28px rgba(245, 124, 0, 0.2);
}

.fee-view-switch {
  display: inline-flex;
  gap: 8px;
  margin: 0 0 14px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 12px 24px rgba(21, 91, 157, 0.07);
}

.fee-view-tab {
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 10px 16px;
  color: var(--muted);
  background: transparent;
  font-weight: 950;
  cursor: pointer;
}

.fee-view-tab.active {
  border-color: rgba(245, 124, 0, 0.3);
  color: var(--blue-900);
  background: linear-gradient(135deg, #fff8ef, #ffffff);
  box-shadow: 0 10px 20px rgba(245, 124, 0, 0.12);
}

.quick-student-summary {
  min-height: 58px;
}

.quick-student-card {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 16px;
  border: 1px solid rgba(21, 91, 157, 0.12);
  border-radius: 9px;
  background: #ffffff;
  box-shadow: 0 12px 26px rgba(15, 38, 67, 0.05);
}

.quick-student-card p {
  margin: 0;
}

.quick-student-card strong,
.quick-student-card span {
  display: block;
}

.quick-student-card strong {
  color: var(--muted);
  font-size: 0.8rem;
}

.quick-student-card span {
  color: var(--blue-900);
  font-weight: 900;
}

.quick-course-status-panel {
  margin-top: 12px;
  overflow: hidden;
  border: 1px solid rgba(21, 91, 157, 0.18);
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 12px 26px rgba(15, 38, 67, 0.04);
}

.quick-course-status-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(21, 91, 157, 0.14);
  background: #f4f8fc;
}

.quick-course-status-head > div,
.quick-course-status-info {
  display: grid;
  gap: 4px;
}

.quick-course-status-head strong,
.quick-course-status-info strong {
  color: var(--blue-900);
}

.quick-course-status-head span,
.quick-course-status-info > span,
.quick-course-completed {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 750;
}

.quick-course-status-list {
  display: grid;
}

.quick-course-status-item {
  display: grid;
  grid-template-columns: 34px minmax(190px, 1fr) minmax(270px, auto);
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  border-bottom: 1px solid rgba(21, 91, 157, 0.12);
}

.quick-course-status-item:last-child {
  border-bottom: 0;
}

.quick-course-order {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--blue-900);
  font-size: 0.78rem;
  font-weight: 950;
}

.quick-course-status-info > div {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.quick-course-status-action {
  display: flex;
  align-items: end;
  justify-content: flex-end;
  gap: 8px;
}

.quick-course-month {
  display: grid;
  gap: 4px;
  min-width: 148px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
}

.quick-course-month input {
  min-height: 38px;
  padding: 7px 9px;
}

.quick-course-status-action .primary-action {
  border-color: var(--orange-600);
  color: #fff;
  background: var(--orange-600);
}

.disabled-link {
  opacity: 0.52;
  pointer-events: none;
}

.fee-due-preview {
  min-height: 58px;
}

.fee-due-card {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(245, 124, 0, 0.22);
  border-radius: 9px;
  background: #fffaf4;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.fee-due-card p {
  min-height: 70px;
  margin: 0;
  padding: 12px;
  border: 1px solid rgba(245, 124, 0, 0.14);
  border-radius: 8px;
  background: #ffffff;
}

.fee-due-card strong,
.fee-due-card span {
  display: block;
}

.fee-due-card strong {
  color: var(--muted);
  font-size: 0.8rem;
}

.fee-due-card span {
  color: var(--orange-700);
  margin-top: 4px;
  font-size: 1.02rem;
  font-weight: 950;
}

.fee-due-card p:last-child span {
  color: var(--blue-900);
}

.registration-fee-card {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-color: rgba(18, 140, 74, 0.25);
  background: #f3fbf6;
}

.registration-fee-card p:first-child span,
.registration-fee-card p:last-child span {
  color: var(--green-600);
}

.fee-helper-note {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.family-fee-panel {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(18, 140, 74, 0.24);
  border-radius: 9px;
  background:
    linear-gradient(135deg, rgba(18, 140, 74, 0.08), rgba(255, 255, 255, 0.94)),
    var(--white);
  box-shadow: 0 14px 28px rgba(15, 38, 67, 0.05);
}

.family-fee-panel[hidden] {
  display: none;
}

.family-fee-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.family-fee-head strong,
.family-fee-head span {
  display: block;
}

.family-fee-head strong {
  color: var(--blue-900);
  font-size: 1.02rem;
}

.family-fee-head span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.family-fee-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(18, 140, 74, 0.2);
  border-radius: 8px;
  background: var(--white);
}

.family-fee-total span {
  color: var(--muted);
  font-weight: 900;
}

.family-fee-total strong {
  color: var(--green-600);
  font-size: 1.15rem;
}

.family-due-list {
  display: grid;
  gap: 8px;
}

.family-due-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
}

.family-due-item input {
  width: 18px;
  height: 18px;
}

.family-due-item strong,
.family-due-item small {
  display: block;
}

.family-due-item strong {
  color: var(--blue-900);
}

.family-due-item small {
  color: var(--muted);
  font-weight: 800;
}

.family-due-amount-editor {
  display: grid;
  gap: 4px;
  justify-items: end;
  min-width: 150px;
}

.family-due-amount-editor small {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
}

.family-due-amount-editor input {
  width: 140px;
  min-height: 42px;
  border-color: rgba(245, 124, 0, 0.32);
  color: var(--orange-700);
  background: #fffaf4;
  font-weight: 950;
  text-align: right;
}

.compact-actions {
  justify-content: flex-end;
  padding: 0;
  background: transparent;
}

.fee-table-wrap {
  margin-top: 6px;
}

.ledger-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0;
}

.ledger-summary-card {
  display: grid;
  gap: 6px;
  min-height: 108px;
  padding: 16px;
  border: 1px solid rgba(21, 91, 157, 0.16);
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--white), #f7fbff);
  box-shadow: 0 14px 28px rgba(21, 91, 157, 0.06);
}

.ledger-summary-card span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.ledger-summary-card strong {
  color: var(--blue-900);
  font-size: clamp(1.25rem, 2vw, 1.8rem);
  line-height: 1.1;
}

.ledger-summary-card small {
  color: var(--muted);
  font-weight: 800;
}

.ledger-summary-card.success {
  border-color: rgba(18, 140, 74, 0.22);
  background: linear-gradient(135deg, #ffffff, #effaf3);
}

.ledger-summary-card.success strong {
  color: var(--green-600);
}

.ledger-summary-card.warning {
  border-color: rgba(245, 124, 0, 0.24);
  background: linear-gradient(135deg, #ffffff, #fff7ed);
}

.ledger-summary-card.warning strong {
  color: var(--orange-700);
}

.fee-history-table {
  min-width: 820px;
}

.student-timeline {
  display: grid;
  gap: 0;
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 12px;
  padding: 0 0 18px;
}

.timeline-item:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 22px;
  bottom: 0;
  left: 10px;
  width: 2px;
  background: var(--line);
}

.timeline-dot {
  position: relative;
  z-index: 1;
  width: 22px;
  height: 22px;
  border: 4px solid var(--white);
  border-radius: 50%;
  background: var(--blue-700);
  box-shadow: 0 0 0 1px rgba(21, 91, 157, 0.22);
}

.timeline-item.fee .timeline-dot {
  background: var(--orange-600);
}

.timeline-item.certificate .timeline-dot {
  background: var(--green-600);
}

.timeline-item > div {
  padding: 13px 14px;
  border: 1px solid rgba(21, 91, 157, 0.14);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 10px 22px rgba(21, 91, 157, 0.06);
}

.timeline-meta {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
}

.timeline-item h3 {
  margin: 0 0 4px;
  color: var(--blue-900);
  font-size: 1rem;
}

.timeline-item span:last-child {
  color: var(--ink);
  font-weight: 760;
}

.student-ledger-table {
  min-width: 1180px;
}

.fee-ledger-table {
  min-width: 1060px;
}

.table-subtext {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
}

.fee-summary-stack {
  display: grid;
  gap: 4px;
  min-width: 138px;
}

.fee-summary-stack span {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.fee-summary-stack strong {
  color: var(--blue-900);
  white-space: nowrap;
}

.fee-summary-stack span:nth-child(2) strong {
  color: #0f8a4b;
}

.fee-summary-stack span:nth-child(3) strong {
  color: var(--orange-700);
}

.payment-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(21, 91, 157, 0.1);
  color: var(--blue-900);
  font-size: 0.78rem;
  font-weight: 900;
}

.inline-status-select {
  width: min(160px, 100%);
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid rgba(21, 91, 157, 0.22);
  border-radius: 6px;
  color: var(--blue-900);
  background: #fbfdff;
  font-size: 0.84rem;
  font-weight: 900;
}

.remark-cell {
  max-width: 180px;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.35;
}

.monthly-pending-table {
  min-width: 980px;
}

.multi-course-badge {
  display: inline-flex;
  margin-top: 8px;
  padding: 4px 8px;
  border: 1px solid rgba(245, 124, 0, 0.25);
  border-radius: 999px;
  color: var(--orange-700);
  background: #fff8ef;
  font-size: 0.72rem;
  font-weight: 900;
}

.due-course-stack {
  display: grid;
  gap: 0;
  min-width: 115px;
}

.due-course-stack > span {
  display: grid;
  align-content: center;
  min-height: 54px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(21, 91, 157, 0.12);
}

.due-course-stack > span:last-child {
  border-bottom: 0;
}

.due-course-stack small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 750;
}

.due-course-stack > .due-course-name {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  color: var(--blue-900);
  font-weight: 900;
}

.due-course-name .course-status-pill,
.mobile-course-status-title .course-status-pill {
  padding: 3px 6px;
  font-size: 0.62rem;
}

.mobile-course-status-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}

.due-amount {
  color: var(--orange-700);
}

.due-group-total {
  display: block;
  margin-top: 6px;
  padding-top: 8px;
  border-top: 2px solid rgba(245, 124, 0, 0.25);
  color: var(--orange-700);
  white-space: nowrap;
}

.due-action-stack {
  display: grid;
  gap: 8px;
  min-width: 142px;
}

.due-action-stack > div:not(.due-reminder-row) {
  display: grid;
  gap: 4px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(21, 91, 157, 0.12);
}

.due-action-stack > div > span {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 850;
}

.due-action-stack .fee-action {
  width: 100%;
  text-align: center;
}

.due-reminder-row {
  display: grid;
  gap: 6px;
  padding-top: 2px;
}

.mobile-course-due-list {
  display: grid;
  margin-top: 10px;
  border-top: 1px solid rgba(21, 91, 157, 0.14);
}

.mobile-course-due-list > div {
  display: grid;
  gap: 5px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(21, 91, 157, 0.14);
}

.mobile-course-due-list > div > span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 750;
}

.mobile-course-due-list .fee-action {
  justify-self: start;
  margin-top: 3px;
}

.mobile-due-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(245, 124, 0, 0.24);
  border-radius: 6px;
  color: var(--orange-700);
  background: #fff8ef;
  font-weight: 900;
}

.due-mobile-actions {
  margin-top: 10px;
}

.fee-due-section {
  margin-bottom: 0;
}

.fee-due-note {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(245, 124, 0, 0.24);
  border-radius: var(--radius);
  color: var(--muted);
  background: #fff8ef;
  font-weight: 800;
}

.fee-due-note strong {
  color: var(--orange-700);
}

.compact-fee-stack {
  margin-bottom: 8px;
}

.compact-fee-stack span {
  justify-content: flex-start;
}

.month-picker {
  display: grid;
  gap: 6px;
  min-width: 190px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
}

.monthly-fee-panel {
  margin-bottom: 20px;
}

.monthly-stats-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin-bottom: 18px;
}

.fee-summary-visuals {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 16px;
  margin-bottom: 18px;
}

.fee-chart-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfdff;
}

.mini-panel-head,
.pending-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.mini-panel-head h3,
.pending-head h3 {
  margin: 0;
  color: var(--blue-900);
  font-size: 1rem;
}

.mini-panel-head span,
.pending-head span,
.pending-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.fee-progress-bars {
  display: grid;
  gap: 14px;
}

.fee-progress-row {
  display: grid;
  gap: 8px;
}

.fee-progress-row > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-weight: 800;
}

.fee-progress-row strong {
  color: var(--blue-900);
}

.dashboard-fee-status {
  min-width: 220px;
  gap: 6px;
}

.dashboard-fee-status > span {
  justify-content: flex-start;
}

.inline-active-course-select {
  width: min(230px, 100%);
  min-height: 38px;
  border-color: rgba(15, 138, 75, 0.28);
  color: #09683a;
  background: #f1faf5;
  font-weight: 850;
}

.active-course-cell {
  min-width: 250px;
}

.active-course-label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 850;
}

.inline-active-course-select:disabled {
  color: var(--muted);
  background: #f5f7f9;
  opacity: 0.82;
}

.mobile-course-status-control {
  display: grid;
  gap: 6px;
  margin: 10px 0;
}

.mobile-course-status-control > strong,
.mobile-status-label {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.mobile-course-status-control .inline-active-course-select,
.mobile-student-card > .inline-status-select {
  width: 100%;
}

.fee-progress-track {
  overflow: hidden;
  height: 14px;
  border-radius: 999px;
  background: var(--blue-100);
}

.fee-progress-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--green-600);
}

.pending-row .fee-progress-track i {
  background: var(--orange-600);
}

.fee-mode-split {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.fee-mode-split span {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--blue-900);
  background: var(--white);
  font-size: 0.86rem;
  font-weight: 800;
}

.fee-trend-chart {
  display: grid;
  gap: 11px;
}

.trend-row {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) 84px;
  align-items: center;
  gap: 10px;
  font-size: 0.86rem;
}

.trend-row > span {
  color: var(--muted);
  font-weight: 800;
}

.trend-row > strong {
  color: var(--blue-900);
  text-align: right;
}

.trend-bars {
  display: grid;
  gap: 3px;
}

.trend-bars i {
  display: block;
  height: 7px;
  border-radius: 999px;
}

.trend-bars .expected,
.trend-legend .expected {
  background: var(--blue-700);
}

.trend-bars .received,
.trend-legend .received {
  background: var(--green-600);
}

.trend-bars .pending,
.trend-legend .pending {
  background: var(--orange-600);
}

.trend-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 6px;
}

.trend-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
}

.trend-legend i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.fee-mobile-card strong {
  color: var(--blue-900);
}

.print-only-grid {
  display: none;
}

.detail-grid a {
  color: var(--blue-700);
  font-weight: 800;
}

.profile-print-area {
  display: grid;
  gap: 18px;
}

.course-progress-list {
  border-top: 1px solid rgba(21, 91, 157, 0.14);
}

.course-progress-item {
  display: grid;
  grid-template-columns: 38px minmax(220px, 1fr) minmax(240px, auto);
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(21, 91, 157, 0.14);
}

.course-order {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: var(--white);
  background: var(--blue-900);
  font-weight: 950;
}

.course-progress-info {
  display: grid;
  gap: 6px;
}

.course-progress-info > div {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
}

.course-progress-info h3,
.course-progress-info p {
  margin: 0;
}

.course-progress-info h3 {
  color: var(--blue-900);
  font-size: 1rem;
}

.course-progress-info p,
.course-completed-month {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 750;
}

.course-status-pill {
  display: inline-flex;
  padding: 4px 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 950;
}

.course-status-pill.active {
  border-color: rgba(15, 138, 75, 0.24);
  color: #0f8a4b;
  background: #eefaf3;
}

.course-status-pill.waiting {
  border-color: rgba(245, 124, 0, 0.26);
  color: var(--orange-700);
  background: #fff8ef;
}

.course-status-pill.completed {
  border-color: rgba(21, 91, 157, 0.22);
  color: var(--blue-900);
  background: #f1f7fd;
}

.course-progress-action {
  display: flex;
  align-items: end;
  justify-content: flex-end;
  gap: 8px;
}

.course-progress-month {
  display: grid;
  gap: 5px;
  min-width: 150px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
}

.course-progress-month input {
  min-height: 40px;
  padding: 8px 10px;
}

@media (max-width: 760px) {
  .quick-course-status-head {
    align-items: stretch;
    flex-direction: column;
  }

  .quick-course-status-head .fee-action {
    width: 100%;
    text-align: center;
  }

  .quick-course-status-item {
    grid-template-columns: 30px minmax(0, 1fr);
    align-items: start;
    padding: 13px 12px;
  }

  .quick-course-status-action {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
  }

  .quick-course-status-action .fee-action {
    min-height: 38px;
  }

  .course-progress-item {
    grid-template-columns: 34px minmax(0, 1fr);
    align-items: start;
    gap: 12px;
  }

  .course-progress-action {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
  }

  .course-progress-action .btn {
    min-height: 40px;
  }
}

.id-card-page {
  display: grid;
  justify-items: center;
}

#idCardMount {
  width: min(520px, 100%);
}

.id-card-actions {
  margin-bottom: 18px;
}

.student-id-card {
  width: min(480px, 100%);
  min-height: 300px;
  padding: 18px;
  position: relative;
  overflow: hidden;
  border: 2px solid rgba(11, 45, 77, 0.92);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 250, 255, 0.98)),
    var(--white);
  box-shadow: var(--shadow);
}

.student-id-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(135deg, rgba(245, 124, 0, 0.12), transparent 34%),
    linear-gradient(315deg, rgba(21, 91, 157, 0.1), transparent 38%);
  pointer-events: none;
}

.student-id-card > * {
  position: relative;
  z-index: 1;
}

.student-id-card .id-card-top {
  margin: -8px -8px 0;
  padding: 12px;
  color: var(--white);
  border-bottom: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--blue-900), var(--blue-700));
}

.student-id-card .id-card-top h2,
.student-id-card .id-card-top p {
  color: var(--white);
}

.fee-receipt {
  width: min(760px, 100%);
  margin: 0 auto;
  padding: 30px;
  position: relative;
  overflow: hidden;
  border: 2px solid rgba(11, 45, 77, 0.92);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 253, 255, 0.98)),
    var(--white);
  box-shadow: 0 22px 50px rgba(11, 45, 77, 0.12);
}

.receipt-table {
  width: 100%;
  border-collapse: collapse;
}

.receipt-table th,
.receipt-table td {
  padding: 10px;
  border: 1px solid var(--line);
  text-align: left;
}

.receipt-table th {
  width: 230px;
  color: var(--blue-900);
  background: #fbfdff;
}

.id-card-sheet {
  display: grid;
  gap: 18px;
}

.id-card-top {
  align-items: flex-start;
  padding-bottom: 12px;
}

.mini-logo {
  width: 38px;
  height: 38px;
  border-width: 2px;
}

.id-card-top h2 {
  font-size: 1.05rem;
}

.id-card-top p {
  font-size: 0.72rem;
}

.id-card-body {
  display: grid;
  grid-template-columns: 124px minmax(0, 1fr);
  gap: 14px;
  margin-top: 16px;
}

.id-photo {
  width: 124px;
  height: 146px;
  border-radius: var(--radius);
}

.id-details .detail-grid p,
.id-details p {
  grid-template-columns: 118px minmax(0, 1fr);
  padding: 6px 0;
  font-size: 0.86rem;
}

.id-signature {
  width: 180px;
  margin: 24px 0 0 auto;
}

.id-card-back {
  min-height: 300px;
}

.id-rules {
  margin: 16px 0;
  padding-left: 20px;
  color: var(--blue-900);
  font-size: 0.9rem;
  font-weight: 700;
}

.id-qr {
  display: grid;
  justify-items: center;
  gap: 6px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 900;
}

.id-qr img {
  width: 90px;
  height: 90px;
}

.desktop-only {
  display: flex;
}

@keyframes heroCopyIn {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroPanelIn {
  from {
    opacity: 0;
    transform: translateY(28px) rotateX(6deg);
  }
  to {
    opacity: 1;
    transform: translateY(0) rotateX(0);
  }
}

@keyframes heroGridMove {
  from {
    background-position: 0 0, 0 0;
  }
  to {
    background-position: 0 58px, 58px 0;
  }
}

.motion-ready .reveal-on-scroll {
  opacity: 0;
  transform: translateY(26px) rotateX(3deg);
  transition:
    opacity 0.55s var(--ease) var(--reveal-delay, 0ms),
    transform 0.55s var(--ease) var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

.motion-ready .reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0) rotateX(0);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .hero::after,
  .hero-3d-canvas {
    display: none !important;
  }

  .course-card:hover,
  .batch-item:hover,
  .contact-card:hover,
  .form-card:hover,
  .panel:hover,
  .success-card:hover,
  .login-card:hover,
  .stat-card:hover {
    transform: none;
  }
}

/* Keep public navigation compact before it can overflow on tablet widths. */
@media (min-width: 741px) and (max-width: 900px) {
  .navbar {
    min-height: 64px;
    gap: 10px;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 64px;
    right: 16px;
    left: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a,
  .nav-button {
    min-height: 46px;
    text-align: left;
  }
}

body[data-page="home"] .btn {
  min-height: 46px;
}

@media (max-width: 980px) {
  .hero-panel,
  .two-column,
  .contact-layout,
  .analytics-grid,
  .profile-main,
  .fee-summary-visuals,
  .report-overview-main,
  .portal-strip {
    grid-template-columns: 1fr;
  }

  .certificate-verify-layout {
    grid-template-columns: 1fr;
  }

  .report-quick-nav {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .report-export-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .proof-grid,
  .feature-grid,
  .track-grid,
  .course-grid,
  .level-grid,
  .certificate-guide-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stats-grid,
  .monthly-stats-grid,
  .collection-stats-grid,
  .batch-report-grid,
  .report-mini-stats,
  .setup-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .form-section-head,
  .form-grid,
  .filter-grid,
  .additional-course-row,
  .upload-grid,
  .detail-grid,
  .settings-grid {
    grid-template-columns: 1fr;
  }

  .settings-wide {
    grid-column: auto;
  }

  .profile-photo-block {
    width: 160px;
    height: 196px;
  }
}

@media (max-width: 740px) {
  .ledger-summary-grid {
    grid-template-columns: 1fr;
  }

  .ledger-summary-card {
    min-height: 0;
  }

  body.has-mobile-app-nav {
    padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px));
  }

  .container {
    width: min(100% - 22px, 1160px);
  }

  .mobile-app-nav {
    position: fixed;
    right: 10px;
    bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    left: 10px;
    z-index: 80;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 4px;
    min-height: 70px;
    padding: 8px;
    border: 1px solid rgba(11, 45, 77, 0.12);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 18px 48px rgba(11, 45, 77, 0.2);
    backdrop-filter: blur(16px);
  }

  .mobile-app-nav a {
    display: grid;
    place-items: center;
    gap: 3px;
    min-width: 0;
    min-height: 54px;
    border-radius: 16px;
    color: var(--muted);
    font-size: 0.68rem;
    font-weight: 900;
    line-height: 1;
    -webkit-tap-highlight-color: transparent;
  }

  .mobile-app-nav a.active {
    color: var(--blue-800);
    background: var(--blue-100);
  }

  .mobile-app-nav svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
  }

  .mobile-app-nav span {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .setup-steps {
    grid-template-columns: 1fr;
  }

  .navbar {
    min-height: 64px;
    gap: 10px;
  }

  .brand-mark,
  .slip-logo,
  .mini-logo {
    width: 40px;
    height: 40px;
  }

  .brand strong {
    max-width: 210px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 64px;
    right: 11px;
    left: 11px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow);
  }

  .nav-links a,
  .nav-button {
    min-height: 46px;
    text-align: left;
  }

  .nav-links.open {
    display: flex;
  }

  .report-quick-nav {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 14px;
  }

  .report-nav-button {
    min-height: 52px;
  }

  .report-export-grid {
    grid-template-columns: 1fr;
  }

  .desktop-only {
    display: none;
  }

  .hero {
    min-height: auto;
  }

  .hero::after {
    bottom: -28%;
    height: 48%;
    opacity: 0.28;
  }

  .hero.three-ready .hero-3d-canvas {
    opacity: 0.54;
  }

  .hero-grid {
    padding: 70px 0 42px;
  }

  .hero h1 {
    font-size: 2.35rem;
  }

  .hero-panel,
  .hero-stats {
    grid-template-columns: 1fr;
  }

  .proof-grid,
  .feature-grid,
  .track-grid,
  .course-grid,
  .level-grid,
  .certificate-guide-grid,
  .portal-points,
  .quick-student-card,
  .fee-due-card {
    grid-template-columns: 1fr;
  }

  .home-proof-band {
    margin-top: 0;
    padding: 18px 0 28px;
    background: var(--white);
  }

  .section-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .section {
    padding: 52px 0;
  }

  .page-shell {
    padding: 28px 0 110px;
  }

  body[data-page="dashboard"] .page-shell {
    padding: 18px 0 92px;
  }

  .page-title {
    margin-bottom: 18px;
  }

  .page-title h1,
  .dashboard-head h1 {
    font-size: 2.2rem;
    line-height: 1.08;
  }

  .dashboard-head {
    gap: 14px;
  }

  body[data-page="dashboard"] .dashboard-head {
    display: grid;
    grid-template-columns: 1fr;
    margin-bottom: 12px;
  }

  body[data-page="dashboard"] .dashboard-head h1 {
    max-width: none;
    font-size: 1.9rem;
  }

  body[data-page="dashboard"] .dashboard-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .database-badge {
    width: 100%;
    justify-content: center;
    min-height: 42px;
  }

  body[data-page="dashboard"] .database-badge {
    grid-column: 1 / -1;
  }

  .site-footer .container,
  .dashboard-head,
  .profile-head,
  .profile-title {
    flex-direction: column;
    align-items: stretch;
  }

  .stats-grid,
  .monthly-stats-grid,
  .collection-stats-grid,
  .backup-activity-grid,
  .batch-report-grid,
  .report-money-grid,
  .report-mini-stats,
  .report-print-summary,
  .slip-meta-strip,
  .receipt-amount-band,
  .signature-row,
  .slip-body,
  .id-card-body,
  .inline-form {
    grid-template-columns: 1fr;
  }

  .certificate-form {
    grid-template-columns: 1fr;
  }

  .backup-health-grid {
    grid-template-columns: 1fr;
  }

  .form-section,
  .panel,
  .success-card,
  .login-card,
  .registration-slip {
    padding: 18px;
  }

  .panel,
  .form-card,
  .success-card,
  .login-card,
  .stat-card,
  .mobile-student-card {
    border-radius: 14px;
    box-shadow: 0 14px 34px rgba(15, 38, 67, 0.1);
  }

  input,
  select,
  textarea,
  .btn,
  .nav-button,
  .fee-view-tab,
  .report-nav-button {
    min-height: 48px;
  }

  .form-actions,
  .dashboard-actions,
  .profile-actions,
  .action-row,
  .report-action-row,
  .id-card-actions {
    align-items: stretch;
    flex-direction: column;
  }

  body[data-page="dashboard"] .dashboard-actions {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    overflow-x: auto;
    padding: 2px 2px 8px;
  }

  body[data-page="dashboard"] .dashboard-actions .btn,
  body[data-page="dashboard"] .dashboard-actions .database-badge {
    flex: 0 0 auto;
    width: auto;
    min-width: max-content;
  }

  .fee-view-switch {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .fee-view-tab {
    width: 100%;
  }

  .fee-due-note {
    flex-direction: column;
  }

  .family-fee-head,
  .family-fee-total {
    align-items: stretch;
    flex-direction: column;
  }

  .family-due-item {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .family-due-amount-editor {
    grid-column: 2;
    justify-items: stretch;
    min-width: 0;
  }

  .family-due-amount-editor input {
    width: 100%;
  }

  .report-control-card {
    grid-template-columns: 1fr;
  }

  .panel-head,
  .mini-panel-head,
  .pending-head,
  .course-builder-head {
    align-items: stretch;
    flex-direction: column;
  }

  .month-picker {
    min-width: 0;
  }

  .batch-report-picker {
    min-width: 0;
  }

  .trend-row {
    grid-template-columns: 76px minmax(0, 1fr);
  }

  .trend-row > strong {
    grid-column: 2;
    text-align: left;
  }

  .btn {
    width: 100%;
  }

  body[data-page="dashboard"] .dashboard-actions {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    padding: 2px 2px 8px;
    scrollbar-width: thin;
  }

  body[data-page="dashboard"] .dashboard-actions .btn,
  body[data-page="dashboard"] .dashboard-actions .database-badge {
    flex: 0 0 auto;
    width: auto;
    min-width: max-content;
  }

  body[data-page="dashboard"] .database-badge {
    grid-column: auto;
  }

  body[data-page="dashboard"] .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  body[data-page="dashboard"] .stat-card {
    min-height: 0;
    padding: 14px;
  }

  body[data-page="dashboard"] .stat-card span {
    min-height: 0;
    font-size: 0.8rem;
    line-height: 1.25;
  }

  body[data-page="dashboard"] .stat-card strong {
    font-size: 1.65rem;
  }

  body[data-page="dashboard"] .dashboard-analytics .count-list {
    max-height: 220px;
  }

  body[data-page="dashboard"] .filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  body[data-page="dashboard"] .filter-grid > .wide {
    grid-column: 1 / -1;
  }

  body[data-page="dashboard"] .filter-grid label {
    gap: 0;
    font-size: 0;
  }

  body[data-page="dashboard"] .filter-grid input,
  body[data-page="dashboard"] .filter-grid select {
    min-height: 44px;
    font-size: 0.9rem;
  }

  body[data-page="dashboard"] .panel-head h2 {
    font-size: 1.02rem;
  }

  .contact-card p,
  .success-summary p,
  .detail-grid p {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .slip-photo,
  .profile-photo-block,
  .id-photo,
  .slip-qr {
    justify-self: center;
  }

  .table-wrap {
    display: none;
  }

  body[data-page="dashboard"] .dashboard-student-panel .table-wrap {
    max-height: none;
  }

  .fee-table-wrap {
    display: block;
    overflow-x: auto;
  }

  .mobile-student-list {
    display: grid;
    gap: 12px;
  }

  .mobile-student-card {
    padding: 16px;
    border: 1px solid var(--line);
    background: var(--white);
  }

  .mobile-student-card h3 {
    margin-bottom: 6px;
  }

  .mobile-student-card p {
    margin-bottom: 6px;
    color: var(--muted);
  }

  .card-check {
    display: flex;
    grid-template-columns: none;
    gap: 8px;
    align-items: center;
    margin-bottom: 8px;
  }

  .card-check input {
    width: auto;
    min-height: auto;
  }

  .id-signature {
    margin-left: auto;
  }

  body[data-page="dashboard"] .dashboard-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    overflow: visible;
    padding: 0;
  }

  body[data-page="dashboard"] .dashboard-actions .btn,
  body[data-page="dashboard"] .dashboard-actions .database-badge {
    width: 100%;
    min-width: 0;
    white-space: normal;
  }

  body[data-page="dashboard"] .dashboard-actions .database-badge {
    grid-column: 1 / -1;
  }
}

/* Professional polish layer */
body {
  color: #111827;
  background:
    linear-gradient(180deg, #f8fbff 0%, #f3f7fb 45%, #eef4fa 100%);
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
}

.site-header {
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 28px rgba(11, 45, 77, 0.06);
}

.navbar {
  min-height: 68px;
}

.brand {
  gap: 13px;
}

.brand-mark,
.slip-logo,
.mini-logo {
  background: linear-gradient(135deg, var(--blue-900), var(--blue-700));
  box-shadow: 0 10px 22px rgba(21, 91, 157, 0.18);
}

.brand strong {
  color: var(--blue-900);
  font-weight: 950;
}

.brand small {
  color: #64748b;
  font-weight: 800;
}

.nav-links a,
.nav-button {
  border: 1px solid transparent;
  color: #1f2937;
  font-size: 0.94rem;
  font-weight: 850;
}

.nav-links a:hover,
.nav-links a.active,
.nav-button:hover {
  border-color: rgba(21, 91, 157, 0.14);
  background: #edf6ff;
  color: var(--blue-800);
}

.page-shell {
  padding-top: 38px;
}

.dashboard-head {
  align-items: flex-start;
  gap: 22px;
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(21, 91, 157, 0.12);
}

.dashboard-head h1,
.section-heading h2,
.hero h1 {
  color: var(--blue-900);
  font-weight: 950;
}

.hero h1 {
  color: var(--white);
}

.dashboard-head p,
.section-copy,
.panel-head span {
  color: #5f6f86;
  font-weight: 650;
}

.eyebrow {
  color: var(--orange-700);
  font-weight: 950;
  letter-spacing: 0;
}

.database-badge,
.status-pill {
  border-radius: var(--radius);
  font-weight: 900;
}

.database-badge {
  border-color: rgba(18, 140, 74, 0.18);
  background: #eefaf3;
  color: #087a3b;
  box-shadow: 0 10px 22px rgba(18, 140, 74, 0.07);
}

.btn,
.fee-action,
.report-nav-button,
.fee-view-tab,
.batch-chip,
.report-export-card,
.icon-text-button {
  border-radius: var(--radius);
  font-weight: 900;
}

.btn.primary {
  background: linear-gradient(135deg, #ff8a00, var(--orange-600));
  box-shadow: 0 14px 28px rgba(245, 124, 0, 0.23);
}

.btn.secondary,
.report-nav-button,
.fee-view-tab,
.report-export-card {
  border-color: rgba(21, 91, 157, 0.16);
  background: linear-gradient(180deg, #ffffff, #f9fcff);
}

.btn.secondary:hover,
.report-nav-button:hover,
.fee-view-tab:hover,
.report-export-card:hover {
  border-color: rgba(245, 124, 0, 0.28);
  box-shadow: 0 14px 28px rgba(21, 91, 157, 0.08);
}

.panel,
.stat-card,
.collection-stat-card,
.batch-summary-card,
.mobile-student-card,
.feature-card,
.track-card,
.level-card,
.course-card,
.batch-item,
.contact-card,
.portal-strip,
.hero-panel,
.admission-card,
.report-export-card,
.ledger-summary-card {
  border: 1px solid rgba(21, 91, 157, 0.14);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  box-shadow: 0 18px 40px rgba(15, 38, 67, 0.08);
}

.panel:hover,
.stat-card:hover,
.course-card:hover,
.batch-item:hover,
.report-export-card:hover {
  box-shadow: 0 22px 48px rgba(15, 38, 67, 0.11);
}

.panel-head,
.mini-panel-head,
.course-builder-head {
  gap: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(21, 91, 157, 0.1);
}

.panel-head h2,
.mini-panel-head h3 {
  color: var(--blue-900);
  font-weight: 950;
}

.stats-grid .stat-card,
.collection-stat-card {
  position: relative;
  overflow: hidden;
}

.stats-grid .stat-card::before,
.collection-stat-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--blue-700), var(--orange-600));
}

.stat-card span,
.collection-stat-card span,
.batch-summary-card span,
.ledger-summary-card span {
  color: #64748b;
}

.stat-card strong,
.collection-stat-card strong,
.batch-summary-card strong {
  color: var(--blue-900);
  font-weight: 950;
}

.quick-fee-panel,
.monthly-pending-panel,
.collection-overview-panel,
.report-overview-panel,
.dashboard-student-panel {
  border-top: 4px solid rgba(245, 124, 0, 0.85);
}

.filter-grid,
.form-grid {
  align-items: end;
}

label {
  color: var(--blue-900);
  font-weight: 850;
}

input,
select,
textarea {
  border-color: #cddced;
  border-radius: var(--radius);
  background: #ffffff;
  color: #111827;
  font-weight: 750;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(21, 91, 157, 0.55);
  box-shadow: 0 0 0 4px rgba(21, 91, 157, 0.1);
  outline: 0;
}

.searchable-select {
  position: relative;
}

.searchable-select-input {
  background: #fbfdff;
}

.searchable-select-list {
  border-color: rgba(21, 91, 157, 0.16);
  box-shadow: 0 18px 38px rgba(15, 38, 67, 0.13);
}

.table-wrap,
.fee-table-wrap {
  border: 1px solid rgba(21, 91, 157, 0.12);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.student-table {
  border-collapse: separate;
  border-spacing: 0;
}

.student-table th {
  background: #f2f7fc;
  color: #27486b;
  font-size: 0.82rem;
  font-weight: 950;
}

.student-table td {
  background: #ffffff;
}

.student-table tbody tr:hover td {
  background: #fbfdff;
}

.student-table th:first-child,
.student-table td:first-child {
  padding-left: 18px;
}

.student-table th:last-child,
.student-table td:last-child {
  padding-right: 18px;
}

.fee-view-switch,
.report-quick-nav {
  border: 1px solid rgba(21, 91, 157, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 14px 30px rgba(15, 38, 67, 0.07);
}

.fee-view-tab.active,
.report-nav-button.active {
  border-color: rgba(245, 124, 0, 0.45);
  background: linear-gradient(180deg, #fff7ed, #ffffff);
  color: var(--blue-900);
}

.report-nav-button span,
.fee-view-tab {
  color: #5f6f86;
}

.report-nav-button.active span,
.report-nav-button.active strong {
  color: var(--blue-900);
}

.hero {
  min-height: 590px;
}

.hero::before {
  background: linear-gradient(90deg, rgba(6, 31, 58, 0.93), rgba(6, 31, 58, 0.74) 56%, rgba(6, 31, 58, 0.58));
}

.hero-panel {
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
}

.admission-card h2,
.track-card h3,
.feature-card h3,
.course-card strong {
  color: var(--blue-900);
}

.course-category-strip,
.hero-checks span,
.portal-points span,
.portal-points a {
  border-color: rgba(21, 91, 157, 0.14);
  background: #f8fbff;
}

.mobile-student-card {
  box-shadow: 0 12px 28px rgba(15, 38, 67, 0.08);
}

.registration-slip,
.fee-receipt,
.student-id-card {
  box-shadow: 0 18px 40px rgba(15, 38, 67, 0.1);
}

.bulk-reminder-status {
  display: block;
  margin: 0 0 14px;
  padding: 10px 12px;
  border: 1px solid #cfe0f1;
  border-radius: 6px;
  background: #f5f9fd;
  color: var(--blue-900);
  font-weight: 700;
}

.bulk-reminder-status[data-tone="success"] {
  border-color: #b9dfca;
  background: #eefaf3;
  color: #107843;
}

.bulk-reminder-status[data-tone="error"] {
  border-color: #f0c3c3;
  background: #fff4f4;
  color: #b42318;
}

.bulk-reminder-help {
  display: block;
  margin: 10px 0 14px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.5;
}

.bulk-reminder-status[hidden],
.bulk-reminder-cancel[hidden] {
  display: none !important;
}

@media (max-width: 740px) {
  .page-shell {
    padding-top: 24px;
  }

  .dashboard-head {
    gap: 16px;
    margin-bottom: 18px;
  }

  .dashboard-head h1 {
    font-size: clamp(2rem, 12vw, 3rem);
  }

  .fee-view-switch,
  .report-quick-nav {
    padding: 7px;
  }

  .mobile-student-card {
    border-radius: var(--radius);
  }
}

/* Professional table layout pass for admin records, fees, and reports. */
.table-wrap,
.fee-table-wrap {
  width: 100%;
  max-width: 100%;
  overflow: auto;
  border-color: rgba(21, 91, 157, 0.16);
  border-radius: 8px;
  background: #ffffff;
}

.student-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
}

.student-table thead th {
  position: sticky;
  top: 0;
  z-index: 3;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(21, 91, 157, 0.15);
  background: #eef5fc;
  color: #24486b;
  font-size: 0.8rem;
  line-height: 1.25;
  text-transform: none;
  white-space: nowrap;
}

.student-table tbody td {
  padding: 16px;
  border-bottom: 1px solid rgba(21, 91, 157, 0.13);
  color: var(--ink);
  font-size: 0.9rem;
  line-height: 1.35;
  vertical-align: middle;
  overflow-wrap: anywhere;
}

.student-table tbody tr:nth-child(even) td {
  background: #fcfdff;
}

.student-table tbody tr:hover td {
  background: #f7fbff;
}

.student-table input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
}

.student-table strong {
  color: var(--ink);
}

.table-subtext {
  display: block;
  margin-top: 5px;
  color: #66758d;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.35;
}

.table-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(54px, 1fr));
  align-items: stretch;
  gap: 8px;
  min-width: 236px;
}

.table-actions a,
.table-actions button,
.fee-action,
.standalone-fee-action {
  min-height: 38px;
  border-radius: 7px;
  line-height: 1.15;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
}

.table-actions button[data-action="delete"],
.table-actions button[data-fee-action="delete"] {
  grid-column: span 2;
}

.inline-status-select {
  width: 100%;
  max-width: 210px;
  min-height: 38px;
}

.active-course-cell {
  min-width: 230px;
}

.dashboard-fee-status {
  gap: 4px;
  margin-bottom: 8px;
}

body[data-page="dashboard"] .dashboard-student-panel .table-wrap {
  max-height: min(650px, calc(100vh - 250px));
}

body[data-page="dashboard"] .student-ledger-table {
  min-width: 1360px;
}

body[data-page="dashboard"] .student-ledger-table th:nth-child(1),
body[data-page="dashboard"] .student-ledger-table td:nth-child(1) {
  width: 58px;
  text-align: center;
}

body[data-page="dashboard"] .student-ledger-table th:nth-child(2),
body[data-page="dashboard"] .student-ledger-table td:nth-child(2) {
  width: 230px;
}

body[data-page="dashboard"] .student-ledger-table th:nth-child(3),
body[data-page="dashboard"] .student-ledger-table td:nth-child(3) {
  width: 250px;
}

body[data-page="dashboard"] .student-ledger-table th:nth-child(4),
body[data-page="dashboard"] .student-ledger-table td:nth-child(4) {
  width: 235px;
}

body[data-page="dashboard"] .student-ledger-table th:nth-child(5),
body[data-page="dashboard"] .student-ledger-table td:nth-child(5) {
  width: 145px;
}

body[data-page="dashboard"] .student-ledger-table th:nth-child(6),
body[data-page="dashboard"] .student-ledger-table td:nth-child(6) {
  width: 230px;
}

body[data-page="dashboard"] .student-ledger-table th:nth-child(7),
body[data-page="dashboard"] .student-ledger-table td:nth-child(7) {
  width: 270px;
}

.fee-ledger-table {
  min-width: 1240px;
}

.fee-ledger-table th:nth-child(1),
.fee-ledger-table td:nth-child(1) {
  width: 150px;
}

.fee-ledger-table th:nth-child(2),
.fee-ledger-table td:nth-child(2) {
  width: 210px;
}

.fee-ledger-table th:nth-child(3),
.fee-ledger-table td:nth-child(3) {
  width: 210px;
}

.fee-ledger-table th:nth-child(4),
.fee-ledger-table td:nth-child(4) {
  width: 160px;
}

.fee-ledger-table th:nth-child(5),
.fee-ledger-table td:nth-child(5) {
  width: 180px;
}

.fee-ledger-table th:nth-child(6),
.fee-ledger-table td:nth-child(6) {
  width: 140px;
}

.fee-ledger-table th:nth-child(7),
.fee-ledger-table td:nth-child(7) {
  width: 170px;
}

.fee-ledger-table th:last-child,
.fee-ledger-table td:last-child {
  width: 210px;
}

.monthly-pending-table {
  min-width: 1180px;
}

.monthly-pending-table th:nth-child(1),
.monthly-pending-table td:nth-child(1) {
  width: 230px;
}

.monthly-pending-table th:nth-child(2),
.monthly-pending-table td:nth-child(2) {
  width: 230px;
}

.monthly-pending-table th:nth-child(3),
.monthly-pending-table td:nth-child(3),
.monthly-pending-table th:nth-child(4),
.monthly-pending-table td:nth-child(4),
.monthly-pending-table th:nth-child(5),
.monthly-pending-table td:nth-child(5) {
  width: 170px;
}

.monthly-pending-table th:nth-child(6),
.monthly-pending-table td:nth-child(6) {
  width: 240px;
}

.due-course-stack {
  gap: 2px;
}

.due-course-stack > span {
  min-height: 48px;
  padding: 7px 0;
}

.due-action-stack {
  min-width: 190px;
}

.due-action-stack > div:not(.due-reminder-row) {
  grid-template-columns: 1fr;
}

.due-reminder-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.due-reminder-row:empty {
  display: none;
}

.batch-report-table {
  min-width: 980px;
}

.batch-report-table th:nth-child(1),
.batch-report-table td:nth-child(1) {
  width: 250px;
}

.batch-report-table th:nth-child(2),
.batch-report-table td:nth-child(2) {
  width: 230px;
}

.batch-report-table th:nth-child(3),
.batch-report-table td:nth-child(3) {
  width: 170px;
}

.batch-report-table th:nth-child(4),
.batch-report-table td:nth-child(4) {
  width: 160px;
}

.batch-report-table th:nth-child(5),
.batch-report-table td:nth-child(5) {
  width: 170px;
}

body[data-page="fees"] .student-ledger-table,
body[data-page="reports"] .student-ledger-table,
body[data-page="student-profile"] .student-ledger-table {
  min-width: 980px;
}

/* Final table fit pass: keep all main admin tables readable without clipped right-side actions. */
.student-table,
.student-table *,
.table-actions,
.fee-action,
.standalone-fee-action {
  box-sizing: border-box;
}

.student-table thead th,
.student-table tbody td {
  padding: 13px 14px;
}

.student-table thead th {
  white-space: normal;
}

.student-table tbody td {
  min-width: 0;
}

.table-actions {
  grid-template-columns: repeat(2, minmax(68px, 1fr));
  gap: 7px;
  min-width: 0;
}

.table-actions a,
.table-actions button {
  width: 100%;
  min-width: 0;
  padding: 9px 8px;
}

.fee-action,
.standalone-fee-action {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 10px 9px;
  white-space: normal;
  overflow: visible;
}

.inline-status-select {
  min-width: 0;
}

body[data-page="dashboard"] .student-ledger-table {
  min-width: 1160px;
}

body[data-page="dashboard"] .student-ledger-table th:nth-child(1),
body[data-page="dashboard"] .student-ledger-table td:nth-child(1) {
  width: 46px;
  padding-left: 10px;
  padding-right: 8px;
}

body[data-page="dashboard"] .student-ledger-table th:nth-child(2),
body[data-page="dashboard"] .student-ledger-table td:nth-child(2) {
  width: 200px;
}

body[data-page="dashboard"] .student-ledger-table th:nth-child(3),
body[data-page="dashboard"] .student-ledger-table td:nth-child(3) {
  width: 200px;
}

body[data-page="dashboard"] .student-ledger-table th:nth-child(4),
body[data-page="dashboard"] .student-ledger-table td:nth-child(4) {
  width: 205px;
}

body[data-page="dashboard"] .student-ledger-table th:nth-child(5),
body[data-page="dashboard"] .student-ledger-table td:nth-child(5) {
  width: 128px;
}

body[data-page="dashboard"] .student-ledger-table th:nth-child(6),
body[data-page="dashboard"] .student-ledger-table td:nth-child(6) {
  width: 195px;
}

body[data-page="dashboard"] .student-ledger-table th:nth-child(7),
body[data-page="dashboard"] .student-ledger-table td:nth-child(7) {
  width: 186px;
}

body[data-page="dashboard"] .student-ledger-table .table-actions {
  grid-template-columns: repeat(2, minmax(70px, 1fr));
}

.fee-ledger-table {
  min-width: 1120px;
}

.fee-ledger-table th:nth-child(1),
.fee-ledger-table td:nth-child(1) {
  width: 145px;
}

.fee-ledger-table th:nth-child(2),
.fee-ledger-table td:nth-child(2) {
  width: 190px;
}

.fee-ledger-table th:nth-child(3),
.fee-ledger-table td:nth-child(3) {
  width: 185px;
}

.fee-ledger-table th:nth-child(4),
.fee-ledger-table td:nth-child(4) {
  width: 140px;
}

.fee-ledger-table th:nth-child(5),
.fee-ledger-table td:nth-child(5) {
  width: 155px;
}

.fee-ledger-table th:nth-child(6),
.fee-ledger-table td:nth-child(6) {
  width: 110px;
}

.fee-ledger-table th:nth-child(7),
.fee-ledger-table td:nth-child(7) {
  width: 135px;
}

.fee-ledger-table th:last-child,
.fee-ledger-table td:last-child {
  width: 160px;
}

.fee-ledger-table td:nth-child(1) strong,
.fee-ledger-table td:nth-child(1) {
  overflow-wrap: anywhere;
}

.monthly-pending-table {
  min-width: 980px;
}

.monthly-pending-table th:nth-child(1),
.monthly-pending-table td:nth-child(1) {
  width: 195px;
}

.monthly-pending-table th:nth-child(2),
.monthly-pending-table td:nth-child(2) {
  width: 190px;
}

.monthly-pending-table th:nth-child(3),
.monthly-pending-table td:nth-child(3) {
  width: 145px;
}

.monthly-pending-table th:nth-child(4),
.monthly-pending-table td:nth-child(4),
.monthly-pending-table th:nth-child(5),
.monthly-pending-table td:nth-child(5) {
  width: 130px;
}

.monthly-pending-table th:nth-child(6),
.monthly-pending-table td:nth-child(6) {
  width: 190px;
  padding-right: 14px;
}

.monthly-pending-table .due-course-stack > span {
  min-height: 44px;
}

.monthly-pending-table .due-action-stack {
  width: 100%;
  min-width: 0;
  gap: 9px;
}

.monthly-pending-table .due-action-stack > div:not(.due-reminder-row) {
  padding-bottom: 10px;
}

.monthly-pending-table .due-action-stack .fee-action {
  min-height: 44px;
}

.batch-report-table {
  min-width: 900px;
}

.batch-report-table th:nth-child(1),
.batch-report-table td:nth-child(1) {
  width: 230px;
}

.batch-report-table th:nth-child(2),
.batch-report-table td:nth-child(2) {
  width: 205px;
}

.batch-report-table th:nth-child(3),
.batch-report-table td:nth-child(3),
.batch-report-table th:nth-child(4),
.batch-report-table td:nth-child(4) {
  width: 145px;
}

.batch-report-table th:nth-child(5),
.batch-report-table td:nth-child(5) {
  width: 175px;
}

/* Pin action columns so controls never disappear outside the scroll area. */
.student-table th:last-child,
.student-table td:last-child {
  position: sticky;
  right: 0;
  z-index: 4;
  background: #ffffff;
  box-shadow: -10px 0 18px rgba(15, 38, 67, 0.08);
}

.student-table thead th:last-child {
  z-index: 7;
  background: #e8f1fa;
}

.student-table tbody tr:nth-child(even) td:last-child {
  background: #fcfdff;
}

.student-table tbody tr:hover td:last-child {
  background: #f7fbff;
}

.student-table th:last-child,
.student-table td:last-child,
.monthly-pending-table th:nth-child(6),
.monthly-pending-table td:nth-child(6),
.fee-ledger-table th:last-child,
.fee-ledger-table td:last-child,
body[data-page="dashboard"] .student-ledger-table th:nth-child(7),
body[data-page="dashboard"] .student-ledger-table td:nth-child(7) {
  min-width: 185px;
}

.monthly-pending-table th:nth-child(6),
.monthly-pending-table td:nth-child(6) {
  width: 205px;
}

.fee-ledger-table th:last-child,
.fee-ledger-table td:last-child {
  width: 180px;
}

body[data-page="dashboard"] .student-ledger-table th:nth-child(7),
body[data-page="dashboard"] .student-ledger-table td:nth-child(7) {
  width: 205px;
}

.monthly-pending-table .due-action-stack,
.student-table td:last-child .table-actions {
  max-width: 100%;
}

.monthly-pending-table .due-action-stack .fee-action,
.student-table td:last-child .fee-action,
.student-table td:last-child .standalone-fee-action {
  font-size: 0.82rem;
}

.fee-ledger-table td:last-child .table-actions {
  grid-template-columns: 1fr;
}

.fee-ledger-table td:last-child .table-actions button,
.fee-ledger-table td:last-child .table-actions a {
  min-height: 34px;
}

/* Final professional polish: calm admin look, compact rows, and balanced action controls. */
body {
  background:
    linear-gradient(180deg, #f7fafd 0, #eef4f9 100%);
}

.site-header {
  border-bottom-color: rgba(21, 91, 157, 0.12);
  box-shadow: 0 8px 24px rgba(15, 38, 67, 0.05);
}

.page-shell {
  padding-top: 28px;
}

.dashboard-head {
  align-items: flex-start;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(21, 91, 157, 0.1);
}

.dashboard-head h1 {
  letter-spacing: 0;
}

.panel,
.stat-card {
  border: 1px solid rgba(21, 91, 157, 0.12);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 30px rgba(15, 38, 67, 0.07);
}

.panel:hover,
.stat-card:hover {
  transform: none;
  box-shadow: 0 14px 34px rgba(15, 38, 67, 0.09);
}

.stats-grid .stat-card::before {
  height: 3px;
  background: linear-gradient(90deg, #1f6fae, #f28a12);
}

.stat-card {
  min-height: 116px;
}

.stat-card span {
  font-size: 0.9rem;
  line-height: 1.25;
}

.stat-card strong {
  font-size: clamp(2rem, 3vw, 2.6rem);
}

.table-wrap,
.fee-table-wrap {
  border: 1px solid rgba(21, 91, 157, 0.14);
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 38, 67, 0.05);
}

.student-table {
  color: #1d2733;
}

.student-table thead th {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(21, 91, 157, 0.14);
  background: #f1f6fb;
  color: #284766;
  font-size: 0.78rem;
  font-weight: 900;
}

.student-table tbody td {
  padding: 13px 14px;
  border-bottom-color: rgba(21, 91, 157, 0.11);
  font-size: 0.88rem;
  line-height: 1.32;
}

.student-table tbody tr:nth-child(even) td {
  background: #fbfdff;
}

.student-table tbody tr:hover td {
  background: #f5f9fd;
}

.student-table strong {
  color: #17212b;
  font-weight: 850;
}

.table-subtext,
.student-table small {
  color: #66758a;
  font-weight: 750;
}

.payment-pill,
.course-status-pill,
.multi-course-badge {
  border-radius: 999px;
  box-shadow: none;
}

.table-actions {
  grid-template-columns: repeat(2, minmax(64px, 1fr));
  gap: 6px;
}

.table-actions a,
.table-actions button,
.fee-action,
.standalone-fee-action {
  min-height: 34px;
  padding: 8px 9px;
  border-radius: 7px;
  font-size: 0.78rem;
  font-weight: 850;
  box-shadow: none;
}

.table-actions a,
.table-actions button {
  border-color: rgba(21, 91, 157, 0.2);
  color: #123f6d;
  background: #ffffff;
}

.table-actions a:hover,
.table-actions button:hover {
  border-color: rgba(21, 91, 157, 0.36);
  background: #f3f8fc;
}

.fee-action,
.standalone-fee-action {
  border-color: rgba(245, 124, 0, 0.34);
  color: #a34e00;
  background: #fff7ed;
}

.fee-action:hover,
.standalone-fee-action:hover {
  transform: none;
  color: #873f00;
  background: #ffefd9;
  box-shadow: none;
}

.reminder-action,
.btn.whatsapp {
  border-color: rgba(18, 140, 74, 0.24);
  color: #0f7a41;
  background: #eefaf3;
  box-shadow: none;
}

.reminder-action:hover,
.btn.whatsapp:hover {
  background: #e0f6e9;
  box-shadow: none;
}

.btn.primary {
  box-shadow: 0 10px 22px rgba(245, 124, 0, 0.16);
}

.inline-status-select {
  border-color: rgba(21, 91, 157, 0.18);
  background-color: #ffffff;
  font-size: 0.82rem;
}

.student-table th:last-child,
.student-table td:last-child {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: -6px 0 14px rgba(15, 38, 67, 0.05);
}

.student-table thead th:last-child {
  background: #edf5fc;
}

.student-table tbody tr:nth-child(even) td:last-child {
  background: #fbfdff;
}

.student-table tbody tr:hover td:last-child {
  background: #f5f9fd;
}

.filter-action-cell {
  display: flex;
  align-items: flex-end;
}

.filter-action-cell .btn {
  width: 100%;
  min-height: 48px;
}

.student-pagination-bar {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) auto minmax(170px, 1fr);
  align-items: center;
  gap: 16px;
  padding: 16px 2px 2px;
  color: #617187;
  font-size: 0.86rem;
  font-weight: 800;
}

.student-pagination,
.pagination-pages {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.student-pagination button {
  min-width: 40px;
  min-height: 40px;
  padding: 8px 11px;
  border: 1px solid rgba(21, 91, 157, 0.2);
  border-radius: 7px;
  color: #123f6d;
  background: #ffffff;
  font: inherit;
  cursor: pointer;
}

.student-pagination button:hover:not(:disabled),
.student-pagination button.active {
  border-color: #1f6fae;
  color: #ffffff;
  background: #1f6fae;
}

.student-pagination button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.page-size-control {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
}

.page-size-control select {
  width: 74px;
  min-height: 40px;
  padding: 7px 10px;
}

@media (max-width: 760px) {
  .student-pagination-bar {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .student-pagination {
    flex-wrap: wrap;
  }

  .page-size-control {
    justify-content: center;
  }
}

.monthly-pending-table .due-action-stack {
  gap: 7px;
}

.monthly-pending-table .due-action-stack > div:not(.due-reminder-row) {
  padding-bottom: 7px;
}

.monthly-pending-table .due-action-stack .fee-action {
  min-height: 36px;
}

.due-course-stack > span {
  min-height: 40px;
}

.due-group-total,
.mobile-due-total {
  background: #fff7ed;
  border-color: rgba(245, 124, 0, 0.18);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(8, 24, 40, 0.52);
  backdrop-filter: blur(4px);
}

.modal-backdrop[hidden] {
  display: none !important;
}

.modal-panel {
  width: min(780px, 100%);
  max-height: min(760px, calc(100vh - 36px));
  overflow: auto;
  border: 1px solid rgba(21, 91, 157, 0.18);
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 24px 70px rgba(8, 24, 40, 0.24);
}

.settings-auth-panel {
  width: min(480px, 100%);
  padding: 24px;
}

.settings-auth-panel h2 {
  margin: 4px 0 10px;
}

.settings-auth-form {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.settings-auth-form .action-row {
  margin-top: 6px;
}

.fee-edit-panel {
  padding: 18px;
}

.status-pill.left {
  display: inline-flex;
  width: fit-content;
  margin-top: 8px;
  padding: 4px 9px;
  border: 1px solid rgba(205, 38, 38, 0.18);
  border-radius: 999px;
  color: #b42318;
  font-size: 0.78rem;
  font-weight: 850;
  background: #fff1f2;
}

.audit-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0;
}

.audit-summary-card {
  display: grid;
  gap: 8px;
  min-height: 112px;
  padding: 16px;
  border: 1px solid rgba(21, 91, 157, 0.16);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(15, 38, 67, 0.04);
}

.audit-summary-card span {
  color: #66758a;
  font-weight: 850;
}

.audit-summary-card strong {
  color: #0b3158;
  font-size: 2rem;
  line-height: 1;
}

.audit-summary-card.success {
  border-color: rgba(18, 140, 74, 0.2);
  background: #f4fbf7;
}

.audit-summary-card.warning {
  border-color: rgba(245, 124, 0, 0.24);
  background: #fffaf3;
}

.data-audit-list {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.data-audit-card {
  overflow: hidden;
  border: 1px solid rgba(21, 91, 157, 0.16);
  border-radius: 8px;
  background: #ffffff;
}

.data-audit-card.warning {
  border-color: rgba(245, 124, 0, 0.3);
}

.data-audit-card.danger {
  border-color: rgba(205, 38, 38, 0.3);
}

.data-audit-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  background: #f3f8fc;
  border-bottom: 1px solid rgba(21, 91, 157, 0.12);
}

.data-audit-card.warning .data-audit-card-head {
  background: #fff7ed;
}

.data-audit-card.danger .data-audit-card-head {
  background: #fff1f2;
}

.data-audit-card-head div {
  display: grid;
  gap: 4px;
}

.data-audit-card-head strong {
  color: #102b46;
  font-size: 1rem;
}

.data-audit-card-head span,
.data-audit-row small,
.data-audit-more {
  color: #66758a;
  font-weight: 750;
}

.data-audit-card-head b {
  min-width: 46px;
  padding: 7px 10px;
  border-radius: 999px;
  color: #0b3158;
  text-align: center;
  background: #ffffff;
  border: 1px solid rgba(21, 91, 157, 0.14);
}

.data-audit-row-list {
  display: grid;
}

.data-audit-row {
  display: grid;
  grid-template-columns: minmax(180px, 1.1fr) minmax(150px, 0.8fr) minmax(260px, 1.5fr);
  gap: 12px;
  align-items: center;
  padding: 12px 16px;
  border-top: 1px solid rgba(21, 91, 157, 0.08);
}

.data-audit-row:first-child {
  border-top: 0;
}

.data-audit-row strong {
  color: #17212b;
}

.data-audit-row span {
  color: #24384d;
  font-weight: 700;
}

.data-audit-more {
  margin: 0;
  padding: 12px 16px;
  border-top: 1px solid rgba(21, 91, 157, 0.08);
}

@media (max-width: 860px) {
  .table-wrap,
  .fee-table-wrap {
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .student-table {
    min-width: 960px;
  }

  .table-actions {
    grid-template-columns: repeat(2, minmax(76px, 1fr));
    min-width: 0;
  }

  .mobile-student-card {
    border: 1px solid rgba(21, 91, 157, 0.13);
  }

  .quick-fee-panel > .panel-head,
  .quick-fee-panel .fee-form {
    padding-left: 14px;
    padding-right: 14px;
  }

  .quick-fee-panel .form-grid,
  .quick-student-card,
  .fee-due-card,
  .registration-fee-card {
    grid-template-columns: 1fr;
  }

  .quick-fee-panel .form-grid label {
    min-height: auto;
  }

  .quick-fee-panel #quickFeeButton {
    width: 100%;
  }

  .audit-summary-grid,
  .data-audit-row {
    grid-template-columns: 1fr;
  }

  .data-audit-card-head {
    align-items: stretch;
  }
}

@media print {
  @page {
    margin: 12mm;
  }

  body {
    color: #000;
    background: #fff;
  }

  .no-print,
  .site-header,
  .site-footer,
  .success-card,
  .page-title,
  .id-card-actions,
  .profile-actions {
    display: none !important;
  }

  .print-only-grid {
    display: grid;
  }

  .page-shell,
  .section {
    padding: 0;
  }

  .container {
    width: 100%;
  }

  .printable-block,
  .registration-slip,
  .fee-receipt,
  .student-id-card,
  .panel {
    box-shadow: none !important;
  }

  .registration-slip,
  .fee-receipt {
    width: 100%;
    border: 2px solid #000;
    border-radius: 0;
    padding: 16px;
  }

  .slip-title {
    background: #000 !important;
    color: #fff !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .registration-slip .slip-header,
  .fee-receipt .slip-header,
  .student-id-card .id-card-top,
  .slip-meta-strip p,
  .receipt-amount-band p,
  .premium-stamp {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .student-id-card {
    width: 86mm;
    min-height: 54mm;
    border: 2px solid #000;
    page-break-inside: avoid;
  }

  .id-card-sheet {
    grid-template-columns: repeat(2, 86mm);
    gap: 8mm;
    align-items: start;
    page-break-inside: avoid;
  }

  .bulk-print-page .registration-slip,
  .bulk-print-page .fee-receipt,
  .bulk-print-page .id-card-sheet {
    margin-bottom: 10mm;
    page-break-inside: avoid;
  }

  body[data-page="id-card"] .container {
    display: grid;
    place-items: center;
  }

  .profile-print-area {
    gap: 10px;
  }

  .panel {
    border: 1px solid #aaa;
    break-inside: avoid;
    padding: 12px;
  }
}
/* Accounts */
.account-stats-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.account-stat{min-height:118px;padding:20px;border:1px solid #d6e2ef;border-top:4px solid #1f6098;background:#fff;border-radius:8px;display:flex;flex-direction:column;gap:8px}
.account-stat span,.account-stat small{color:#667085;font-weight:700}.account-stat strong{font-size:clamp(1.55rem,2.4vw,2.3rem);color:#10395f}
.account-stat.income{border-top-color:#149451;background:#f5fcf8}.account-stat.income strong,.money-income{color:#138a4b}
.account-stat.expense{border-top-color:#d64545;background:#fff8f8}.account-stat.expense strong,.money-expense{color:#c93636}
.account-stat.profit{border-top-color:#ff7a00;background:#fff9f2}.account-stat.profit strong{color:#d85f00}
.account-income-breakdown{display:flex;gap:12px;flex-wrap:wrap;margin-top:16px}.account-income-breakdown span{flex:1;min-width:190px;padding:13px 15px;background:#eef5fb;border:1px solid #d5e3ef;border-radius:6px;display:flex;justify-content:space-between}
.account-entry-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin:18px 0}.account-entry-grid .panel{margin:0}
.accounts-layout{display:flex;flex-direction:column}.accounts-layout>.dashboard-head{order:0}.accounts-layout>.operator-access-banner{order:1}.accounts-layout>.account-entry-grid{order:2}.accounts-layout>.account-control-panel{order:3}.accounts-layout>.account-ledger-panel{order:4}.accounts-layout>.panel:last-child{order:5}
.account-entry-grid>.expense-entry-panel{order:-1;border-top:4px solid #ff7a00;background:linear-gradient(180deg,#fffaf4 0,#fff 150px);box-shadow:0 14px 34px rgba(16,57,95,.1)}
.expense-entry-panel .panel-head{padding-bottom:16px;border-bottom:1px solid #f0dfcb}.expense-entry-panel .eyebrow{margin:0 0 5px}.expense-entry-panel #saveExpenseButton{min-width:170px}
.category-input-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:center}.category-input-row input{min-width:0}.category-add-button{min-height:48px;padding:0 14px;white-space:nowrap}.field-hint{display:block;margin-top:6px;color:#69758a;font-weight:600;font-size:.78rem}
.expense-operator-mode .account-entry-grid{grid-template-columns:minmax(0,820px);justify-content:center;margin-top:20px}.expense-operator-mode .expense-entry-panel{width:100%}
.account-table td small{display:block;color:#69758a;margin-top:5px}.account-row-actions{display:flex;gap:7px;flex-wrap:wrap}
.account-type-pill{display:inline-flex;padding:6px 9px;border-radius:999px;background:#eaf2fa;color:#123f68;font-weight:800;font-size:.78rem}.account-type-pill.expense{background:#fff0f0;color:#b92323}.account-type-pill.income{background:#eaf9f0;color:#137640}
.account-category-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.account-category-card{padding:16px;border:1px solid #d8e2ec;border-left:4px solid #199055;border-radius:7px;background:#fff;display:grid;gap:7px}.account-category-card.expense{border-left-color:#d64040}.account-category-card strong{font-size:1.35rem;color:#123f68}.account-category-card small{color:#69758a}
.compact-account-stats{grid-template-columns:repeat(4,minmax(0,1fr))}.compact-account-stats .account-stat{min-height:96px}
.operator-access-banner{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:16px;padding:14px 18px;border:1px solid #f0c98e;border-left:4px solid #ff7a00;border-radius:7px;background:#fff8ed;color:#713d08}.operator-access-banner span{font-weight:700}
.expense-operator-mode .account-stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.operator-list{display:grid;gap:10px;margin-top:16px}.operator-list-item{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:14px;border:1px solid #d7e2ed;border-radius:7px;background:#f8fbfe}.operator-list-item div{display:grid;gap:4px}.operator-list-item span,.operator-list-item small{color:#667085;font-weight:700}
@media(max-width:600px){.operator-access-banner,.operator-list-item{align-items:stretch;flex-direction:column}}
@media(max-width:900px){.account-entry-grid{grid-template-columns:1fr}.account-stats-grid,.compact-account-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.account-category-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.account-stats-grid,.compact-account-stats,.account-category-grid{grid-template-columns:1fr}.account-stat{min-height:94px;padding:16px}.account-income-breakdown{display:grid}.account-income-breakdown span{min-width:0}.account-table-wrap{display:none}.account-filters{grid-template-columns:1fr}.account-filters .wide{grid-column:auto}.category-input-row{grid-template-columns:1fr}.category-add-button{width:100%}}

/* Public institute photography */
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 48%;
  transform: scale(1.01);
}

.hero::before {
  z-index: 1;
  background: linear-gradient(90deg, rgba(5, 25, 48, 0.94) 0%, rgba(5, 25, 48, 0.84) 48%, rgba(5, 25, 48, 0.48) 100%);
}

.hero::after {
  display: none;
}

.hero-grid {
  padding-top: 94px;
}

.hero-copy {
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.28);
}

.hero-panel {
  max-width: 900px;
}

.institute-gallery-section {
  background: #f5f9fd;
}

.institute-intro {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 42px;
  align-items: end;
  margin-bottom: 28px;
}

.institute-intro h2 {
  max-width: 720px;
  margin-bottom: 0;
  color: var(--blue-900);
  font-size: clamp(1.8rem, 3.2vw, 2.7rem);
  line-height: 1.12;
}

.institute-intro > p {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.75;
}

.institute-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 250px;
  gap: 14px;
}

.gallery-item {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 0;
  border-radius: 6px;
  padding: 0;
  color: var(--white);
  background: var(--blue-900);
  box-shadow: 0 14px 34px rgba(15, 45, 76, 0.12);
  cursor: zoom-in;
  text-align: left;
}

.gallery-item-wide {
  grid-column: span 2;
}

.gallery-item-portrait {
  grid-row: span 2;
}

.gallery-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.35s var(--ease), filter 0.35s ease;
}

.gallery-item-portrait img {
  object-position: center 28%;
}

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(4, 25, 47, 0.9));
  pointer-events: none;
}

.gallery-item span {
  position: absolute;
  z-index: 1;
  right: 18px;
  bottom: 16px;
  left: 18px;
  display: grid;
  gap: 3px;
}

.gallery-item strong {
  font-size: 1rem;
}

.gallery-item small {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.78rem;
  font-weight: 700;
}

.gallery-item:hover img,
.gallery-item:focus-visible img {
  filter: saturate(1.04) contrast(1.02);
  transform: scale(1.035);
}

.gallery-item:focus-visible {
  outline: 3px solid var(--orange-600);
  outline-offset: 3px;
}

.gallery-lightbox {
  width: min(94vw, 1080px);
  max-height: 92vh;
  overflow: auto;
  border: 0;
  border-radius: 6px;
  padding: 14px;
  color: var(--white);
  background: #071d33;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.45);
}

.gallery-lightbox::backdrop {
  background: rgba(3, 15, 29, 0.82);
  backdrop-filter: blur(4px);
}

.gallery-lightbox img {
  display: block;
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
  background: #071d33;
}

.gallery-lightbox p {
  margin: 12px 46px 2px 4px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9rem;
}

.gallery-lightbox-close {
  position: sticky;
  z-index: 2;
  top: 8px;
  float: right;
  width: 44px;
  height: 44px;
  margin: 4px 4px -48px 0;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 50%;
  color: var(--white);
  background: rgba(5, 25, 48, 0.9);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}

@media (max-width: 900px) {
  .institute-intro {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .institute-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 230px;
  }
}

@media (max-width: 640px) {
  .hero-media img {
    object-position: 58% center;
  }

  .hero::before {
    background: linear-gradient(180deg, rgba(5, 25, 48, 0.9) 0%, rgba(5, 25, 48, 0.83) 70%, rgba(5, 25, 48, 0.92) 100%);
  }

  .hero-grid {
    padding: 58px 0 38px;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-panel {
    display: none;
  }

  .quick-contact {
    display: grid;
  }

  .institute-gallery {
    grid-template-columns: 1fr;
    grid-auto-rows: 235px;
  }

  .gallery-item-wide,
  .gallery-item-portrait {
    grid-column: auto;
    grid-row: auto;
  }

  .gallery-item-portrait {
    min-height: 320px;
  }
}
.verified-receipt-card{border-top:4px solid #159455;background:linear-gradient(180deg,#f3fcf7 0,#fff 180px)}.verification-badge{display:inline-flex;padding:7px 11px;border:1px solid #a9dec1;border-radius:999px;background:#e9f9f0;color:#117242;font-weight:900;font-size:.8rem}
.receipt-image-container{max-width:920px}.receipt-image-panel{text-align:center;background:#edf4fa}.receipt-image-panel>img{display:block;width:min(100%,700px);height:auto;margin:0 auto;border:1px solid #cbd9e6;box-shadow:0 16px 38px rgba(16,57,95,.16)}.receipt-image-panel .action-row{justify-content:center;margin-top:18px}@media print{.receipt-image-page{padding:0}.receipt-image-panel{border:0;box-shadow:none;padding:0;background:#fff}.receipt-image-panel>img{width:100%;border:0;box-shadow:none}}
.receipt-image-panel>[hidden]{display:none!important}

/* Unified portal button system */
button,
.btn,
.fee-action,
.standalone-fee-action,
.report-nav-button,
.fee-view-tab,
.batch-chip,
.report-export-card,
.icon-text-button,
.table-actions a {
  letter-spacing: 0;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

button:focus-visible,
.btn:focus-visible,
.fee-action:focus-visible,
.standalone-fee-action:focus-visible,
.report-nav-button:focus-visible,
.fee-view-tab:focus-visible,
.batch-chip:focus-visible,
.report-export-card:focus-visible,
.icon-text-button:focus-visible,
.table-actions a:focus-visible {
  outline: 3px solid rgba(21, 91, 157, 0.2);
  outline-offset: 2px;
}

.btn {
  min-height: 42px;
  gap: 8px;
  border-radius: 7px;
  padding: 10px 16px;
  font-size: 0.9rem;
  font-weight: 850;
  line-height: 1.15;
  box-shadow: none;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, box-shadow 160ms ease, transform 120ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active,
.fee-action:active,
.standalone-fee-action:active,
.table-actions a:active,
.table-actions button:active,
.report-nav-button:active,
.fee-view-tab:active,
.report-export-card:active {
  transform: translateY(0) scale(0.98);
}

.btn.primary {
  border-color: #e86f00;
  color: #ffffff;
  background: #f57c00;
  box-shadow: 0 6px 14px rgba(245, 124, 0, 0.18);
}

.btn.primary:hover {
  border-color: #ce6200;
  background: #df6d00;
  box-shadow: 0 8px 18px rgba(245, 124, 0, 0.22);
}

.btn.secondary {
  border-color: #cbd9e6;
  color: #123f6d;
  background: #ffffff;
}

.btn.secondary:hover {
  border-color: #8fb0ce;
  color: #0b2d4d;
  background: #f3f8fc;
  box-shadow: 0 5px 12px rgba(21, 91, 157, 0.08);
}

.btn.whatsapp {
  border-color: #128c4a;
  color: #ffffff;
  background: #128c4a;
}

.btn.whatsapp:hover {
  border-color: #0d733c;
  color: #ffffff;
  background: #0f7c41;
  box-shadow: 0 6px 14px rgba(18, 140, 74, 0.16);
}

.btn.danger,
.danger-button,
button[data-action="delete"],
button[data-fee-action="delete"] {
  border-color: #efb2b7;
  color: #b4232d;
  background: #fff5f5;
}

.btn.danger:hover,
.danger-button:hover,
button[data-action="delete"]:hover,
button[data-fee-action="delete"]:hover {
  border-color: #dc737c;
  color: #971923;
  background: #ffe9ea;
}

.compact-link {
  min-height: 38px;
  padding: 8px 13px;
  font-size: 0.84rem;
}

.panel-actions,
.dashboard-actions,
.form-actions,
.action-row {
  gap: 8px;
}

.table-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.table-actions a,
.table-actions button,
.fee-action,
.standalone-fee-action {
  width: auto;
  min-width: 68px;
  min-height: 36px;
  border-radius: 6px;
  padding: 8px 11px;
  font-size: 0.79rem;
  font-weight: 850;
  line-height: 1.1;
  box-shadow: none;
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease, transform 120ms ease;
}

.fee-action,
.standalone-fee-action {
  border: 1px solid #f1b06d;
  color: #9a4800;
  background: #fff7ed;
}

.fee-action:hover,
.standalone-fee-action:hover {
  border-color: #e58c32;
  color: #783700;
  background: #ffedd7;
}

.secondary-fee-action {
  border-color: #aac3d9;
  color: #123f6d;
  background: #f4f8fc;
}

.secondary-fee-action:hover {
  border-color: #789fbe;
  color: #0b2d4d;
  background: #eaf3fa;
}

.reminder-action {
  border-color: #9fd8b9;
  color: #0f7040;
  background: #eefaf3;
}

.reminder-action:hover {
  border-color: #62bb8a;
  color: #095c33;
  background: #def5e8;
}

.fee-view-switch {
  gap: 4px;
  padding: 5px;
  border-color: #d1deea;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 5px 14px rgba(15, 38, 67, 0.06);
}

.fee-view-tab,
.report-nav-button {
  min-height: 40px;
  border-radius: 6px;
  padding: 9px 14px;
  color: #596a7f;
  font-size: 0.86rem;
  font-weight: 850;
  background: transparent;
  box-shadow: none;
}

.fee-view-tab:hover,
.report-nav-button:hover {
  border-color: #c1d3e2;
  color: #123f6d;
  background: #f3f8fc;
  box-shadow: none;
}

.fee-view-tab.active,
.report-nav-button.active,
.report-nav-button[aria-selected="true"] {
  border-color: #155b9d;
  color: #ffffff;
  background: #155b9d;
  box-shadow: 0 4px 10px rgba(21, 91, 157, 0.16);
}

.due-action-stack {
  min-width: 156px;
  gap: 7px;
}

.due-action-stack .fee-action {
  width: 100%;
}

.due-reminder-row {
  gap: 7px;
}

.report-export-card {
  min-height: 138px;
  border-radius: 7px;
  box-shadow: 0 8px 20px rgba(15, 38, 67, 0.06);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 120ms ease;
}

.report-export-card:hover {
  border-color: #9bb9d2;
  box-shadow: 0 12px 26px rgba(15, 38, 67, 0.1);
}

.btn:disabled,
button:disabled,
[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.52;
  box-shadow: none !important;
  transform: none !important;
}

@media (max-width: 700px) {
  .panel-actions {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .panel-actions .btn,
  .panel-actions button,
  .panel-actions a {
    width: 100%;
    min-width: 0;
    white-space: normal;
  }

  .fee-view-switch {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fee-view-tab {
    width: 100%;
    padding: 9px 8px;
    font-size: 0.8rem;
  }

  .due-mobile-actions .fee-action,
  .mobile-actions .fee-action {
    flex: 1 1 120px;
  }
}

/* Workflow toolbars and account quick entry */
.fee-due-section > .panel-head {
  display: grid;
  grid-template-columns: minmax(250px, 0.72fr) minmax(560px, 1.28fr);
  align-items: end;
}

.due-header-toolbar {
  display: grid;
  grid-template-columns: minmax(170px, 0.7fr) minmax(390px, 1.3fr);
  gap: 10px;
  align-items: end;
}

.due-month-picker {
  min-width: 0;
}

.due-month-picker input {
  width: 100%;
  min-height: 42px;
}

.due-header-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(145px, 1fr));
  gap: 8px;
}

.due-header-actions .btn {
  width: 100%;
  min-width: 0;
  white-space: normal;
}

.account-form .form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

.account-form .form-grid .wide {
  grid-column: 1 / -1;
}

.expense-entry-panel {
  scroll-margin-top: 88px;
}

.accounts-quick-expense {
  min-width: 132px;
}

.quick-batch-label {
  margin: 5px 0 4px;
  font-size: 0.72rem;
  font-weight: 800;
}

.inline-batch-select {
  width: 100%;
  min-width: 170px;
  border-color: #b6cada;
  color: #123f6d;
  background-color: #f8fbfe;
}

.mobile-batch-control {
  margin-top: 10px;
}

@media (max-width: 980px) {
  .fee-due-section > .panel-head {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .due-header-toolbar {
    grid-template-columns: minmax(170px, 0.65fr) minmax(360px, 1.35fr);
  }
}

@media (max-width: 700px) {
  body[data-page="accounts"] .accounts-layout > .dashboard-head {
    padding-bottom: 8px;
  }

  body[data-page="accounts"] .dashboard-head > div:first-child p:last-child {
    display: none;
  }

  body[data-page="accounts"] .dashboard-actions {
    display: grid;
    width: 100%;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .accounts-quick-expense {
    width: 100%;
    min-height: 46px;
  }

  .accounts-layout > .account-entry-grid {
    margin-top: 8px;
  }

  .account-form .form-grid,
  .due-header-toolbar {
    grid-template-columns: 1fr;
  }

  .due-header-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .due-header-actions .btn {
    min-height: 44px;
    padding: 8px 9px;
    font-size: 0.78rem;
  }

  .expense-entry-panel .form-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .expense-entry-panel .form-actions .btn {
    width: 100%;
  }
}
.password-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}

.password-field input {
  min-width: 0;
}

.password-toggle {
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid #c9d8e8;
  border-radius: 6px;
  background: #eef4fa;
  color: #123d68;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

/* Safe confirmations, pagination, and final responsive polish */
.admin-confirm-overlay {
  position: fixed;
  z-index: 5000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(4, 23, 42, 0.68);
  backdrop-filter: blur(3px);
}

.admin-confirm-dialog {
  width: min(100%, 560px);
  max-height: min(86vh, 720px);
  overflow: auto;
  border: 1px solid #cad8e6;
  border-radius: 8px;
  padding: 22px;
  color: #14263a;
  background: #fff;
  box-shadow: 0 24px 70px rgba(4, 23, 42, 0.3);
}

.admin-confirm-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.admin-confirm-heading h2 {
  margin: 0;
  color: #0d355a;
  font-size: 1.35rem;
}

.admin-confirm-close {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border: 1px solid #cad8e6;
  border-radius: 6px;
  color: #294c6b;
  background: #f5f8fb;
  font-size: 1.45rem;
  cursor: pointer;
}

.admin-confirm-dialog > p {
  margin: 10px 0 16px;
  color: #5e6d7e;
  line-height: 1.55;
}

.admin-confirm-details {
  display: grid;
  gap: 1px;
  overflow: hidden;
  margin: 0 0 16px;
  border: 1px solid #d8e2ec;
  border-radius: 6px;
  background: #d8e2ec;
}

.admin-confirm-details > div {
  display: grid;
  grid-template-columns: minmax(130px, 0.7fr) minmax(0, 1.3fr);
  gap: 14px;
  padding: 11px 13px;
  background: #f8fafc;
}

.admin-confirm-details dt {
  color: #68768a;
  font-weight: 750;
}

.admin-confirm-details dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  color: #102f4d;
  font-weight: 850;
}

.admin-confirm-reason {
  display: grid;
  gap: 7px;
  color: #102f4d;
  font-weight: 800;
}

.admin-confirm-reason textarea {
  width: 100%;
  min-height: 94px;
}

.admin-confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 18px;
}

.receipt-pagination-bar,
.student-pagination-bar {
  display: grid;
  grid-template-columns: minmax(150px, auto) minmax(0, 1fr) minmax(150px, auto);
  align-items: center;
  gap: 14px;
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid #d5e1ec;
  border-radius: 7px;
  background: #f8fbfe;
}

.student-pagination,
.pagination-pages {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex-wrap: wrap;
}

.student-pagination button,
.pagination-pages button {
  min-width: 42px;
  min-height: 42px;
  border: 1px solid #c9d8e6;
  border-radius: 6px;
  color: #123f6d;
  background: #fff;
  font-weight: 800;
  cursor: pointer;
}

.student-pagination button.active,
.pagination-pages button.active {
  border-color: #155b9d;
  color: #fff;
  background: #155b9d;
}

.page-size-control {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  color: #52657b;
  font-size: 0.82rem;
  font-weight: 800;
}

.page-size-control select {
  width: auto;
  min-width: 76px;
}

.student-table thead th,
.fee-history-table thead th {
  position: sticky;
  z-index: 3;
  top: 0;
}

body[data-page="home"] .hero {
  min-height: min(720px, calc(100svh - 72px));
  max-height: 760px;
}

body[data-page="home"] .hero-grid {
  min-height: min(720px, calc(100svh - 72px));
  padding-top: clamp(60px, 8vh, 88px);
  padding-bottom: 42px;
}

body[data-page="home"] .hero h1 {
  max-width: 980px;
  font-size: clamp(3rem, 5.5vw, 4.5rem);
  line-height: 1.02;
}

@media (max-width: 700px) {
  .container {
    width: min(100% - 32px, var(--container));
  }

  body[data-page="home"] .hero,
  body[data-page="home"] .hero-grid {
    min-height: auto;
    max-height: none;
  }

  body[data-page="home"] .hero-grid {
    padding-top: 52px;
    padding-bottom: 38px;
  }

  body[data-page="home"] .hero h1 {
    font-size: clamp(2.2rem, 11vw, 3.15rem);
    line-height: 1.06;
  }

  .receipt-pagination-bar,
  .student-pagination-bar {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .page-size-control {
    justify-content: center;
  }

  .admin-confirm-overlay {
    align-items: end;
    padding: 10px;
  }

  .admin-confirm-dialog {
    padding: 18px;
  }

  .admin-confirm-details > div {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .admin-confirm-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .admin-confirm-actions .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
/* Premium public home, v107 */
.mice-intro {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background: #03070b;
  color: #fff;
  transition: opacity .42s ease, visibility .42s ease;
}
.mice-intro.is-finished { opacity: 0; visibility: hidden; pointer-events: none; }
.mice-intro-skip { position: absolute; top: 24px; right: 24px; min-height: 44px; padding: 0 18px; border: 1px solid #c89a45; border-radius: 6px; color: #fff; background: transparent; cursor: pointer; }
.mice-intro-brand { display: grid; justify-items: center; gap: 10px; text-align: center; }
.mice-intro-brand img { width: 112px; height: 112px; animation: mice-logo-build .85s ease both, mice-logo-glow 1.2s .85s ease both; }
.mice-intro-brand strong { font-size: clamp(25px, 5vw, 48px); color: #f4b24e; opacity: 0; animation: mice-intro-up .55s 1.25s ease forwards; }
.mice-intro-brand span { font-size: clamp(13px, 2vw, 20px); letter-spacing: 2px; opacity: 0; animation: mice-intro-up .55s 1.6s ease forwards; }
@keyframes mice-logo-build { from { opacity: 0; transform: scale(.45) rotate(-12deg); } to { opacity: 1; transform: scale(1) rotate(0); } }
@keyframes mice-logo-glow { 50% { filter: drop-shadow(0 0 22px rgba(244,178,78,.72)); } }
@keyframes mice-intro-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
.public-premium-header { background: rgba(5,22,39,.98); border-bottom: 1px solid rgba(236,171,67,.28); transition: box-shadow .2s ease; }
.public-premium-header.is-compact { box-shadow: 0 8px 24px rgba(3,15,28,.18); }
.brand-with-logo img { flex: 0 0 48px; border-radius: 6px; }
.brand-with-logo strong, .brand-with-logo small, .public-premium-header .nav-links > a, .nav-services-menu summary { color: #fff; }
.nav-services-menu { position: relative; }
.nav-services-menu summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; list-style: none; font-weight: 700; }
.nav-services-menu summary::-webkit-details-marker { display: none; }
.nav-services-menu summary::after { content: "▾"; margin-left: 7px; color: #f2b24f; }
.nav-services-menu > div { position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%); min-width: 220px; padding: 8px; border: 1px solid #dbe4ed; border-radius: 6px; background: #fff; box-shadow: 0 16px 38px rgba(4,22,39,.2); }
.nav-services-menu > div a { display: block; padding: 11px 12px; color: #092a49; border-radius: 4px; }
.nav-services-menu > div a:hover { background: #eef4f9; }
.nav-admission-cta { padding: 10px 15px !important; border-radius: 6px; background: #ed8509; color: #fff !important; }
.hero-premium { min-height: min(720px, calc(100vh - 72px)); max-height: 760px; display: grid; align-items: center; }
.hero-premium::after { background: linear-gradient(90deg, rgba(2,13,24,.88) 0%, rgba(4,23,40,.7) 50%, rgba(4,22,38,.28) 100%); }
.hero-premium .hero-grid { grid-template-columns: minmax(0, 790px); align-items: center; }
.hero-premium .hero-copy { max-width: 790px; }
.hero-premium h1 { font-size: clamp(44px, 5.4vw, 72px); max-width: 13ch; line-height: 1.04; }
.hero-premium .hero-text { max-width: 700px; font-size: clamp(17px, 1.7vw, 21px); }
.proof-grid-five { grid-template-columns: repeat(5, minmax(0,1fr)); }
.about-mice-layout, .section-heading-row, .instagram-layout, .reviews-fallback-card { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.3fr); gap: 42px; align-items: center; }
.section-heading-row { grid-template-columns: 1fr auto; }
.compact-feature-grid .feature-card { min-height: 210px; }
.service-status-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; }
.service-status-card { display: grid; align-content: start; gap: 8px; min-height: 160px; padding: 24px; border: 1px solid #d9e3ec; border-radius: 6px; background: #fff; color: #10263a; }
a.service-status-card:hover { border-color: #1c64a0; transform: translateY(-2px); box-shadow: 0 10px 24px rgba(8,38,66,.1); }
.service-status-card span { width: fit-content; padding: 5px 9px; border-radius: 999px; background: #e8f6ed; color: #08763b; font-size: 12px; font-weight: 800; }
.service-status-card.verify span { background: #e8f1fb; color: #15568c; }
.service-status-card.office span { background: #f0f2f4; color: #65707a; }
.service-status-card strong { font-size: 20px; }
.instagram-section { color: #fff; background: #081d33; }
.instagram-layout { grid-template-columns: 88px minmax(0,1fr) auto; }
.instagram-mark { width: 76px; height: 76px; display: grid; place-items: center; border: 2px solid #e8a83e; border-radius: 18px; color: #f3bd62; font-size: 25px; font-weight: 900; }
.instagram-mark svg { width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.instagram-mark .instagram-dot { fill: currentColor; stroke: none; }
.instagram-section .eyebrow { color: #f3bd62; }
.instagram-section h2, .instagram-section p, .instagram-section strong { color: #fff; }
.instagram-button { background: #fff; color: #081d33; }
.reviews-fallback-card { padding: 32px; border: 1px solid #d9e3ec; border-left: 4px solid #e8a83e; border-radius: 6px; background: #fff; grid-template-columns: 1fr auto; }
.mobile-public-actions { display: none; }
.premium-footer { background: #051728; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.25fr; gap: 38px; padding-block: 50px 34px; text-align: left; }
.footer-grid > div { display: grid; align-content: start; gap: 9px; }
.footer-grid strong { color: #f2b24f; font-size: 17px; }
.footer-grid a, .footer-grid p { color: #dbe6ef; line-height: 1.65; }
.footer-bottom { padding: 20px 0 28px; border-top: 1px solid rgba(255,255,255,.13); color: #bac8d3; text-align: center; }
body[data-page="home"] a:focus-visible, body[data-page="home"] button:focus-visible, body[data-page="home"] summary:focus-visible { outline: 3px solid #f3b54e; outline-offset: 3px; }
@media (max-width: 1024px) {
  .proof-grid-five { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .service-status-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .footer-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .public-premium-header .nav-links.open { background: #081d33; }
  .nav-services-menu > div { position: static; transform: none; min-width: 0; margin-top: 4px; box-shadow: none; }
  .nav-services-menu summary { padding: 0 14px; }
}
@media (max-width: 700px) {
  body[data-page="home"] { padding-bottom: 64px; }
  .container { padding-left: 16px; padding-right: 16px; }
  .hero-premium { min-height: 620px; max-height: none; }
  .hero-premium h1 { font-size: clamp(36px, 10vw, 40px); line-height: 1.08; max-width: 13ch; }
  .hero-premium .hero-actions { display: grid; grid-template-columns: 1fr; }
  .hero-premium .btn { width: 100%; }
  .proof-grid-five, .service-status-grid, .footer-grid, .about-mice-layout, .section-heading-row, .instagram-layout, .reviews-fallback-card { grid-template-columns: 1fr; }
  .proof-grid-five { gap: 0; }
  .section-heading-row .btn { justify-self: start; }
  .instagram-layout { text-align: center; justify-items: center; gap: 20px; }
  .reviews-fallback-card { gap: 20px; }
  .reviews-fallback-card .btn { width: 100%; }
  .mobile-public-actions { position: fixed; z-index: 800; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(3,1fr); min-height: 58px; padding: 6px max(8px,env(safe-area-inset-left)); background: #071b2f; box-shadow: 0 -8px 24px rgba(3,16,29,.2); }
  .mobile-public-actions a { min-height: 46px; display: grid; place-items: center; color: #fff; font-weight: 800; border-right: 1px solid rgba(255,255,255,.15); }
  .mobile-public-actions a:last-child { border-right: 0; }
  .footer-grid { gap: 28px; }
  .mice-intro-skip { top: 14px; right: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
/* Premium public home correction v108 */
.premium-home-v108{--ph-navy:#071725;--ph-navy-2:#0b2237;--ph-charcoal:#10161d;--ph-gold:#d9a441;--ph-orange:#f07a19;--ph-ink:#122033;--ph-muted:#687487;--ph-warm:#f5f2eb;background:var(--ph-warm);color:var(--ph-ink)}
.premium-home-v108 .container{width:min(1180px,calc(100% - 40px))}
.premium-home-v108 .section{padding:76px 0}
.premium-home-v108 h1,.premium-home-v108 h2,.premium-home-v108 h3{letter-spacing:0}
.premium-home-v108 h2{font-size:clamp(30px,3.2vw,46px);line-height:1.08;max-width:760px}
.premium-home-v108 .eyebrow{color:var(--ph-orange);font-size:13px;font-weight:800;text-transform:uppercase;letter-spacing:.08em}
.premium-home-v108 .public-premium-header{height:72px;background:rgba(6,20,33,.96);border-bottom:1px solid rgba(217,164,65,.22);backdrop-filter:blur(14px)}
.premium-home-v108 .navbar{min-height:72px}.premium-home-v108 .brand-with-logo img{width:50px;height:50px;border-radius:50%;object-fit:cover;border:1px solid rgba(217,164,65,.65)}
.premium-home-v108 .brand-with-logo strong,.premium-home-v108 .brand-with-logo small{color:#fff}.premium-home-v108 .nav-links>a,.premium-home-v108 .nav-services-menu summary{color:#e9edf2;background:transparent!important}
.premium-home-v108 .nav-links>a:hover,.premium-home-v108 .nav-links>a:focus-visible,.premium-home-v108 .nav-services-menu summary:hover{color:#ffc864}
.premium-home-v108 .nav-admission-cta{background:var(--ph-gold)!important;color:#081725!important;border-radius:4px!important;padding:12px 17px!important}
.premium-home-v108 .nav-links>a.nav-admission-cta{opacity:1!important;visibility:visible!important;color:#081725!important;font-weight:800!important;background:#d9a441!important}
.premium-home-v108 .hero-premium{min-height:610px;max-height:690px;height:calc(100vh - 72px);display:grid;align-items:center;background:var(--ph-navy)}
.premium-home-v108 .hero-media:after{background:linear-gradient(90deg,rgba(4,14,24,.94) 0%,rgba(4,14,24,.79) 43%,rgba(4,14,24,.3) 75%,rgba(4,14,24,.2) 100%)}
.premium-home-v108 .hero-media img{object-position:center 47%}.premium-home-v108 .hero-grid{padding-top:28px;padding-bottom:28px}
.premium-home-v108 .hero-copy{max-width:770px}.premium-home-v108 .hero-copy h1{font-size:clamp(48px,5.2vw,70px);line-height:1.02;max-width:760px;color:#fff;margin:15px 0 20px}
.premium-home-v108 .hero-text{font-size:18px;line-height:1.65;max-width:680px;color:#d7dee6}.premium-home-v108 .hero-actions{gap:12px;margin-top:30px}
.premium-home-v108 .btn{min-height:46px;border-radius:5px;padding:12px 20px}.premium-home-v108 .btn.primary{background:linear-gradient(135deg,#f48a20,#d9a441);color:#071725;border:0}.premium-home-v108 .hero-enquiry{border-color:rgba(255,255,255,.55);color:#fff;background:rgba(8,25,40,.38)}
.premium-home-v108 .home-proof-band{background:var(--ph-charcoal);border-top:1px solid rgba(217,164,65,.2);border-bottom:1px solid rgba(217,164,65,.2)}
.premium-home-v108 .proof-grid{grid-template-columns:repeat(3,1fr);gap:0;padding:0}.premium-home-v108 .proof-grid article{min-height:104px;padding:25px 32px;border-right:1px solid rgba(217,164,65,.22);background:transparent;border-radius:0;box-shadow:none}.premium-home-v108 .proof-grid article:last-child{border-right:0}.premium-home-v108 .proof-grid strong{color:#fff}.premium-home-v108 .proof-grid span{color:#9da8b5}
.premium-home-v108 .about-mice-section{background:var(--ph-warm)}.premium-home-v108 .about-mice-layout{display:grid;grid-template-columns:1.05fr .95fr;gap:64px;align-items:center}.premium-home-v108 .about-mice-layout>div:first-child{padding-right:18px}.premium-home-v108 .about-mice-layout p{font-size:17px;line-height:1.75;color:var(--ph-muted)}
.premium-home-v108 .muted-section{background:#ece8df}.premium-home-v108 .course-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.premium-home-v108 .course-card{border-radius:6px;background:#fffdf8;border:1px solid #d8d4ca;box-shadow:0 10px 30px rgba(7,23,37,.07);padding:25px}.premium-home-v108 .course-card:hover{transform:translateY(-3px);border-color:#d9a441}.premium-home-v108 .course-card .btn{width:100%;margin-top:auto}
.premium-home-v108 .institute-section{background:linear-gradient(135deg,var(--ph-navy),#111b25);color:#fff}.premium-home-v108 .why-layout{display:grid;grid-template-columns:.85fr 1.15fr;gap:80px;align-items:center}.premium-home-v108 .why-layout h2{color:#fff}.premium-home-v108 .why-layout p{color:#aab4bf;line-height:1.7}.premium-home-v108 .why-list{list-style:none;margin:0;padding:0;border-top:1px solid rgba(255,255,255,.14)}.premium-home-v108 .why-list li{display:grid;grid-template-columns:58px 1fr;align-items:center;min-height:76px;border-bottom:1px solid rgba(255,255,255,.14);font-weight:700;font-size:17px}.premium-home-v108 .why-list span{color:var(--ph-gold);font-size:13px}
.premium-home-v108 .institute-gallery-section{background:var(--ph-warm)}.premium-home-v108 .institute-gallery{gap:12px}.premium-home-v108 .gallery-item{border-radius:4px}.premium-home-v108 .gallery-item:focus-visible{outline:3px solid var(--ph-orange);outline-offset:3px}
.premium-home-v108 .director-section{background:var(--ph-charcoal);color:#fff}.premium-home-v108 .director-section h2,.premium-home-v108 .director-section h3{color:#fff}.premium-home-v108 .director-photo{border-radius:6px;border:1px solid rgba(217,164,65,.35)}
.premium-home-v108 #batches{background:#ece8df}.premium-home-v108 .batch-section-layout{display:grid;grid-template-columns:.8fr 1.2fr;gap:60px;align-items:center}.premium-home-v108 .batch-timetable{display:grid;grid-template-columns:repeat(2,1fr);border:1px solid #cfc9bc;background:#f9f6ef}.premium-home-v108 .batch-timetable span{padding:19px 22px;border-bottom:1px solid #ddd6c8;border-right:1px solid #ddd6c8;font-weight:750;color:#15283b}.premium-home-v108 .batch-timetable span:nth-child(even){border-right:0}.premium-home-v108 .batch-timetable span:nth-last-child(-n+2){border-bottom:0}
.premium-home-v108 .services-section{background:var(--ph-warm)}.premium-home-v108 .services-grid{gap:14px}.premium-home-v108 .service-card{border-radius:5px;border-color:#d8d2c6;box-shadow:none}.premium-home-v108 .service-card.online{border-top:3px solid var(--ph-gold)}
.premium-home-v108 .instagram-section,.premium-home-v108 .reviews-section{padding:42px 0;background:var(--ph-navy);color:#fff}.premium-home-v108 .reviews-section{padding-top:0}.premium-home-v108 .instagram-layout,.premium-home-v108 .reviews-fallback-card{border-radius:5px;border:1px solid rgba(217,164,65,.24);background:rgba(255,255,255,.035);box-shadow:none}.premium-home-v108 .instagram-layout h2,.premium-home-v108 .reviews-fallback-card h2{color:#fff}.premium-home-v108 .instagram-layout p,.premium-home-v108 .reviews-fallback-card p{color:#aeb8c2}
.premium-home-v108 .contact-section{background:#ece8df}.premium-home-v108 .contact-layout{gap:22px}.premium-home-v108 .contact-card,.premium-home-v108 .location-card{border-radius:5px;box-shadow:0 12px 35px rgba(7,23,37,.08)}
.premium-home-v108 .premium-footer{background:#06131f;border-top:1px solid rgba(217,164,65,.25)}
.premium-home-v108 .mice-intro{background:radial-gradient(circle at 50% 45%,#14293d 0,#07131f 50%,#02070b 100%)}.premium-home-v108 .mice-intro-brand img{width:190px;height:190px;border-radius:50%;object-fit:cover;filter:blur(12px);transform:scale(.82);animation:miceLogoReveal .85s ease forwards}.premium-home-v108 .mice-intro-brand strong{font-size:clamp(26px,4vw,44px);margin-top:22px}.premium-home-v108 .mice-intro-brand span{color:#d9a441}.premium-home-v108 .mice-intro-brand:after{content:"";position:absolute;inset:0;background:linear-gradient(105deg,transparent 35%,rgba(255,216,133,.2) 49%,transparent 62%);transform:translateX(-120%);animation:miceSweep .9s .65s ease-out forwards;pointer-events:none}.premium-home-v108 .mice-intro-brand{position:relative}.premium-home-v108 .mice-intro-skip{min-height:44px}
@keyframes miceLogoReveal{to{filter:blur(0);transform:scale(1)}}@keyframes miceSweep{to{transform:translateX(120%)}}
@media(max-width:800px){.premium-home-v108 .container{width:min(100% - 32px,1180px)}.premium-home-v108 .section{padding:58px 0}.premium-home-v108 .public-premium-header{height:66px}.premium-home-v108 .navbar{min-height:66px}.premium-home-v108 .brand-with-logo img{width:44px;height:44px}.premium-home-v108 .nav-links{background:#071725;border:1px solid rgba(217,164,65,.25)}.premium-home-v108 .hero-premium{height:auto;min-height:600px;max-height:none}.premium-home-v108 .hero-copy h1{font-size:clamp(38px,10vw,54px)}.premium-home-v108 .hero-text{font-size:16px}.premium-home-v108 .proof-grid{grid-template-columns:1fr}.premium-home-v108 .proof-grid article{min-height:82px;border-right:0;border-bottom:1px solid rgba(217,164,65,.2);padding:19px 20px}.premium-home-v108 .proof-grid article:last-child{border-bottom:0}.premium-home-v108 .about-mice-layout,.premium-home-v108 .why-layout,.premium-home-v108 .batch-section-layout{grid-template-columns:1fr;gap:34px}.premium-home-v108 .course-grid{grid-template-columns:1fr 1fr}.premium-home-v108 .batch-timetable{grid-template-columns:1fr}.premium-home-v108 .batch-timetable span,.premium-home-v108 .batch-timetable span:nth-child(even){border-right:0;border-bottom:1px solid #ddd6c8}.premium-home-v108 .batch-timetable span:last-child{border-bottom:0}.premium-home-v108 .mice-intro-brand img{width:145px;height:145px}}
@media(max-width:560px){.premium-home-v108 .container{width:calc(100% - 32px)}.premium-home-v108 .hero-premium{min-height:570px}.premium-home-v108 .hero-copy h1{font-size:clamp(36px,11vw,46px)}.premium-home-v108 .hero-actions{display:grid;grid-template-columns:1fr}.premium-home-v108 .hero-actions .btn{width:100%}.premium-home-v108 .course-grid{grid-template-columns:1fr}.premium-home-v108 .section-heading-row{align-items:flex-start}.premium-home-v108 .gallery-item-wide{grid-column:auto}.premium-home-v108 .why-list li{font-size:15px}.premium-home-v108 .instagram-layout{padding:24px}.premium-home-v108 .reviews-fallback-card{padding:24px}}
@media(prefers-reduced-motion:reduce){.premium-home-v108 *,.premium-home-v108 *::before,.premium-home-v108 *::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}

/* Focused public home polish, v109 */
.premium-home-v109 .section{padding:58px 0}
.premium-home-v109 .mice-intro-brand{gap:8px;padding:28px}
.premium-home-v109 .mice-intro-brand::before{content:"";position:absolute;left:50%;top:44%;width:330px;height:330px;border-radius:50%;background:radial-gradient(circle,rgba(217,164,65,.2),rgba(217,164,65,0) 68%);transform:translate(-50%,-50%);pointer-events:none}
.premium-home-v109 .mice-intro-brand img{position:relative;width:260px;height:260px;box-shadow:0 0 0 1px rgba(217,164,65,.18);animation:miceLogoReveal .72s ease forwards}
.premium-home-v109 .mice-intro-brand strong{position:relative;margin-top:12px;animation-delay:.85s}
.premium-home-v109 .mice-intro-brand span{position:relative;animation-delay:1.15s}
.premium-home-v109 .mice-intro-brand::after{animation-duration:.7s;animation-delay:.55s}
.course-ticker-section{height:50px;overflow:hidden;background:#08131d;border-bottom:1px solid rgba(217,164,65,.24);color:#f3ead8}
.course-ticker{height:50px;overflow:hidden;outline-offset:-3px}
.course-ticker-track{display:flex;width:max-content;height:100%;will-change:transform;animation:miceCourseTicker 55s linear infinite}
.course-ticker-list{display:flex;align-items:center;flex:0 0 auto;height:100%;gap:0;margin:0;padding:0;list-style:none;white-space:nowrap}
.course-ticker-list li{display:flex;align-items:center;font-size:14px;font-weight:750}
.course-ticker-list li::after{content:"◆";margin:0 22px;color:#d9a441;font-size:7px}
.course-ticker:hover .course-ticker-track,.course-ticker:focus .course-ticker-track,.course-ticker:focus-within .course-ticker-track{animation-play-state:paused}
@keyframes miceCourseTicker{to{transform:translateX(-50%)}}
.premium-home-v109 .social-proof-section{padding:52px 0;background:#071725;color:#fff}
.social-proof-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}
.social-presence{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:20px;min-height:224px;padding:28px;border:1px solid rgba(217,164,65,.27);border-radius:5px;background:rgba(255,255,255,.035)}
.social-presence h2{font-size:clamp(25px,2.3vw,34px);color:#fff;margin-bottom:10px}
.social-presence p{color:#aeb8c2;line-height:1.6}
.social-presence .btn{grid-column:2;justify-self:start}
.social-presence .eyebrow{color:#efad43}
.instagram-presence .instagram-mark{width:70px;height:70px}
.google-presence{grid-template-columns:1fr}
.google-presence .btn{grid-column:1}
.premium-home-v109 .gallery-lightbox-media{display:grid;place-items:center;min-width:min(78vw,900px);min-height:240px}
.premium-home-v109 .gallery-lightbox-media img{display:block;max-width:min(78vw,900px);max-height:76vh;width:auto;height:auto;object-fit:contain}
.premium-home-v109 .footer-bottom{display:block;text-align:center}
@media(max-width:800px){
  .premium-home-v109 .section{padding:52px 0}
  .premium-home-v109 .mice-intro-brand img{width:190px;height:190px}
  .premium-home-v109 .mice-intro-brand::before{width:250px;height:250px}
  .social-proof-grid{grid-template-columns:1fr}
  .social-presence{min-height:0}
  .premium-home-v109 .gallery-lightbox-media{min-width:80vw}
}
@media(max-width:560px){
  .premium-home-v109 .mice-intro-brand{padding:18px}
  .premium-home-v109 .mice-intro-brand img{width:175px;height:175px}
  .premium-home-v109 .mice-intro-brand strong{font-size:25px}
  .premium-home-v109 .mice-intro-brand span{font-size:12px;letter-spacing:1.5px}
  .social-presence{grid-template-columns:1fr;justify-items:start;padding:22px}
  .social-presence .btn{grid-column:1;width:100%}
}
@media(hover:none),(pointer:coarse){
  .course-ticker{overflow-x:auto;scrollbar-width:thin;overscroll-behavior-inline:contain}
  .course-ticker-track{animation:none}
  .course-ticker-list[aria-hidden="true"]{display:none}
}
@media(prefers-reduced-motion:reduce){
  .course-ticker{overflow-x:auto}
  .course-ticker-track{animation:none!important}
  .course-ticker-list[aria-hidden="true"]{display:none}
  .premium-home-v109 .mice-intro{display:none!important}
}

/* Final public home finishing, v110 */
.premium-home-v110 .mice-intro-brand img{filter:none;transform:scale(.88);animation:miceLogoSharpReveal .7s cubic-bezier(.2,.72,.2,1) forwards}
.premium-home-v110 .mice-intro-brand strong{color:#f5f1e8;letter-spacing:.045em;text-shadow:0 2px 20px rgba(0,0,0,.35);animation:miceIntroTitleReveal .55s .82s ease forwards}
.premium-home-v110 .mice-intro-brand span{color:#d9a441;letter-spacing:.16em;animation:miceIntroTitleReveal .5s 1.12s ease forwards}
@keyframes miceLogoSharpReveal{from{opacity:0;transform:scale(.84)}to{opacity:1;transform:scale(1)}}
@keyframes miceIntroTitleReveal{from{opacity:0;transform:translateY(12px);letter-spacing:.12em}to{opacity:1;transform:translateY(0)}}
.premium-home-v110 .course-ticker-section{position:relative}
.premium-home-v110 .course-ticker-section::before,.premium-home-v110 .course-ticker-section::after{content:"";position:absolute;z-index:2;top:0;bottom:0;width:clamp(34px,6vw,92px);pointer-events:none}
.premium-home-v110 .course-ticker-section::before{left:0;background:linear-gradient(90deg,#08131d 12%,rgba(8,19,29,.88) 42%,transparent)}
.premium-home-v110 .course-ticker-section::after{right:0;background:linear-gradient(270deg,#08131d 12%,rgba(8,19,29,.88) 42%,transparent)}
.premium-home-v110 .about-mice-section{padding-top:50px;padding-bottom:54px}
.premium-home-v110 .social-proof-section{padding:46px 0}
@media(max-width:800px){.premium-home-v110 .about-mice-section{padding:46px 0}.premium-home-v110 .social-proof-section{padding:42px 0}}
@media(prefers-reduced-motion:reduce){.premium-home-v110 .mice-intro{display:none!important}}

/* Light premium public home, v111 */
.premium-home-v111{--lh-blue:#1268e8;--lh-navy:#10233f;--lh-muted:#607086;--lh-gold:#f4b63e;--lh-line:#dce8f7;--lh-soft:#f4f8ff;--lh-white:#fff;background:#fff;color:var(--lh-navy)}
.premium-home-v111 .section{padding:clamp(64px,6.5vw,92px) 0}
.premium-home-v111 h1,.premium-home-v111 h2,.premium-home-v111 h3{color:var(--lh-navy)}
.premium-home-v111 .eyebrow{color:var(--lh-blue);letter-spacing:.08em}
.premium-home-v111 .public-premium-header{height:74px;background:rgba(255,255,255,.96);border-bottom:1px solid var(--lh-line);box-shadow:0 5px 24px rgba(16,35,63,.08)}
.premium-home-v111 .navbar{min-height:74px}.premium-home-v111 .brand-with-logo img{border-color:#e7c570;box-shadow:0 2px 10px rgba(16,35,63,.1)}
.premium-home-v111 .brand-with-logo strong,.premium-home-v111 .nav-links>a,.premium-home-v111 .nav-services-menu summary{color:var(--lh-navy)}
.premium-home-v111 .brand-with-logo small{color:var(--lh-muted)}
.premium-home-v111 .nav-toggle span{background:var(--lh-navy)}
.premium-home-v111 .nav-links>a:hover,.premium-home-v111 .nav-links>a:focus-visible,.premium-home-v111 .nav-services-menu summary:hover{color:var(--lh-blue)}
.premium-home-v111 .nav-admission-cta,.premium-home-v111 .nav-links>a.nav-admission-cta{color:#fff!important;background:var(--lh-blue)!important;box-shadow:0 8px 18px rgba(18,104,232,.18)}
.premium-home-v111 .hero-premium{height:auto;min-height:620px;max-height:680px;background:linear-gradient(115deg,#fff 0%,#f7faff 54%,#eaf3ff 100%);overflow:hidden}
.premium-home-v111 .hero-media{left:auto;width:52%;clip-path:polygon(16% 0,100% 0,100% 100%,0 100%)}
.premium-home-v111 .hero-media::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,#f7faff 0%,rgba(247,250,255,.18) 32%,rgba(16,35,63,.05) 100%)}
.premium-home-v111 .hero-media img{object-position:center 48%}
.premium-home-v111 .hero::before,.premium-home-v111 .hero::after{display:none}
.premium-home-v111 .hero-grid{grid-template-columns:minmax(0,600px) 1fr;position:relative;z-index:2;padding-top:64px;padding-bottom:64px}
.premium-home-v111 .hero-copy h1{max-width:680px;margin:16px 0 22px;color:var(--lh-navy);font-size:clamp(46px,4.6vw,66px);line-height:1.04}
.premium-home-v111 .hero-text{max-width:600px;color:var(--lh-muted);font-size:18px}
.premium-home-v111 .btn{border-radius:6px}.premium-home-v111 .btn.primary{color:#fff;background:var(--lh-blue);box-shadow:0 10px 24px rgba(18,104,232,.2)}
.premium-home-v111 .hero-enquiry{color:var(--lh-navy);border-color:#9eb9dd;background:#fff}
.premium-home-v111 .home-proof-band{background:#fff;border-color:var(--lh-line)}
.premium-home-v111 .proof-grid article{background:#fff;border-color:var(--lh-line)}
.premium-home-v111 .proof-grid strong{color:var(--lh-navy)}.premium-home-v111 .proof-grid span{color:var(--lh-muted)}
.premium-home-v111 .course-ticker-section{background:#13345d;border-color:#234a78}.premium-home-v111 .course-ticker-section::before{background:linear-gradient(90deg,#13345d 12%,rgba(19,52,93,.9) 42%,transparent)}.premium-home-v111 .course-ticker-section::after{background:linear-gradient(270deg,#13345d 12%,rgba(19,52,93,.9) 42%,transparent)}
.premium-home-v111 .about-mice-section{padding:clamp(64px,6vw,84px) 0;background:#fff}
.premium-home-v111 .about-mice-layout{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:clamp(38px,5vw,72px)}
.premium-home-v111 .about-mice-photo{overflow:hidden;margin:0;aspect-ratio:16/11;border-radius:8px;box-shadow:0 18px 45px rgba(16,35,63,.14)}
.premium-home-v111 .about-mice-photo img{width:100%;height:100%;object-fit:cover}
.premium-home-v111 .about-mice-copy>p{color:var(--lh-muted);font-size:16px;line-height:1.7}
.premium-home-v111 .about-points{display:grid;gap:0;margin:25px 0 0;padding:0;list-style:none;border-top:1px solid var(--lh-line)}
.premium-home-v111 .about-points li{display:grid;gap:3px;padding:14px 0 14px 28px;border-bottom:1px solid var(--lh-line);position:relative}.premium-home-v111 .about-points li::before{content:"";position:absolute;left:2px;top:21px;width:9px;height:9px;background:var(--lh-gold);transform:rotate(45deg)}
.premium-home-v111 .about-points strong{color:var(--lh-navy)}.premium-home-v111 .about-points span{color:var(--lh-muted);font-size:14px}
.premium-home-v111 .muted-section,.premium-home-v111 #batches{background:var(--lh-soft)}
.premium-home-v111 .course-card,.premium-home-v111 .service-status-card{border-color:var(--lh-line);background:#fff;box-shadow:0 10px 28px rgba(16,35,63,.06)}
.premium-home-v111 .course-card:hover{border-color:#9fc4f5;box-shadow:0 16px 34px rgba(18,104,232,.1)}
.premium-home-v111 .institute-section{background:#edf5ff;color:var(--lh-navy)}
.premium-home-v111 .why-layout h2{color:var(--lh-navy)}.premium-home-v111 .why-layout p{color:var(--lh-muted)}
.premium-home-v111 .why-list{border-color:#cbdcf1}.premium-home-v111 .why-list li{color:var(--lh-navy);border-color:#cbdcf1}.premium-home-v111 .why-list span{color:var(--lh-blue)}
.premium-home-v111 .institute-gallery-section{background:#fff}
.premium-home-v111 .director-section{background:#f4f8ff;color:var(--lh-navy);border-block:1px solid var(--lh-line)}
.premium-home-v111 .director-section h2,.premium-home-v111 .director-section h3{color:var(--lh-navy)}.premium-home-v111 .director-copy blockquote{color:#304865}.premium-home-v111 .director-portrait{border:1px solid var(--lh-line);box-shadow:0 18px 42px rgba(16,35,63,.12)}
.premium-home-v111 .batch-timetable{border-color:var(--lh-line);background:#fff}.premium-home-v111 .batch-timetable span{color:var(--lh-navy);border-color:var(--lh-line)}
.premium-home-v111 .reviews-section-light{background:var(--lh-soft)}
.premium-home-v111 .reviews-profile-card{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:24px;padding:30px;border:1px solid var(--lh-line);border-radius:8px;background:#fff;box-shadow:0 14px 34px rgba(16,35,63,.07)}
.premium-home-v111 .reviews-profile-card h2{margin-bottom:8px;font-size:clamp(27px,3vw,39px)}.premium-home-v111 .reviews-profile-card p{max-width:690px;color:var(--lh-muted);line-height:1.6}
.premium-home-v111 .google-review-mark{display:grid;place-items:center;width:66px;height:66px;border:1px solid var(--lh-line);border-radius:50%;color:#4285f4;background:#fff;font-size:30px;font-weight:900;box-shadow:0 7px 20px rgba(16,35,63,.08)}
.premium-home-v111 .instagram-section-light{padding-top:54px;padding-bottom:54px;background:#fff}
.premium-home-v111 .instagram-follow-card{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:24px;padding:28px 32px;border:1px solid var(--lh-line);border-radius:8px;background:linear-gradient(110deg,#fff 0%,#f7faff 100%)}
.premium-home-v111 .instagram-follow-card h2{margin-bottom:6px;font-size:clamp(26px,2.8vw,38px)}.premium-home-v111 .instagram-follow-card p{color:var(--lh-muted)}.premium-home-v111 .instagram-follow-card strong{color:var(--lh-navy)}
.premium-home-v111 .instagram-mark{color:#d3427a;border-color:#f1c4d4;background:#fff}.premium-home-v111 .instagram-button{color:#fff;background:#1268e8}
.premium-home-v111 #contact{background:var(--lh-soft)}.premium-home-v111 .contact-card{border:1px solid var(--lh-line);background:#fff;box-shadow:0 14px 34px rgba(16,35,63,.07)}
.premium-home-v111 .premium-footer{color:var(--lh-navy);background:linear-gradient(135deg,#eaf3ff,#f7fbff);border-top:1px solid #cddff3}
.premium-home-v111 .footer-grid strong{color:var(--lh-navy)}.premium-home-v111 .footer-grid a,.premium-home-v111 .footer-grid p{color:#52677f}.premium-home-v111 .footer-bottom{color:#607086;border-color:#ccddf0}
.premium-home-v111 .mice-intro{background:linear-gradient(135deg,#07182a,#0d3156)}.premium-home-v111 .mice-intro-brand img{animation:miceLightIntro .85s ease both}.premium-home-v111 .mice-intro-brand strong,.premium-home-v111 .mice-intro-brand span{opacity:1;animation:miceDigitalText .65s .35s ease both}.premium-home-v111 .mice-intro-brand::after{background:linear-gradient(105deg,transparent 35%,rgba(255,214,118,.25) 49%,transparent 62%)}
@keyframes miceLightIntro{from{opacity:.35;transform:scale(.92)}to{opacity:1;transform:scale(1)}}@keyframes miceDigitalText{from{opacity:.35;transform:translateY(7px);letter-spacing:.16em}to{opacity:1;transform:none}}
@media(max-width:800px){.premium-home-v111 .section{padding:54px 0}.premium-home-v111 .public-premium-header,.premium-home-v111 .navbar{height:66px;min-height:66px}.premium-home-v111 .nav-links,.premium-home-v111 .public-premium-header .nav-links.open{background:#fff;border-color:var(--lh-line);box-shadow:0 16px 30px rgba(16,35,63,.14)}.premium-home-v111 .nav-links>a,.premium-home-v111 .nav-services-menu summary{color:var(--lh-navy)}.premium-home-v111 .hero-premium{min-height:720px;background:#f5f9ff;align-items:end}.premium-home-v111 .hero-media{top:auto;bottom:0;width:100%;height:46%;clip-path:none}.premium-home-v111 .hero-media::after{background:linear-gradient(180deg,#f5f9ff 0%,rgba(245,249,255,.96) 26%,rgba(245,249,255,.62) 52%,rgba(16,35,63,.08) 100%)}.premium-home-v111 .hero-grid{grid-template-columns:1fr;align-self:start;padding-top:50px;padding-bottom:300px}.premium-home-v111 .hero-copy h1{font-size:clamp(38px,9vw,52px)}.premium-home-v111 .hero-text{color:#405a76;text-shadow:0 1px 8px rgba(255,255,255,.9)}.premium-home-v111 .about-mice-layout{grid-template-columns:1fr;gap:34px}.premium-home-v111 .reviews-profile-card,.premium-home-v111 .instagram-follow-card{grid-template-columns:1fr;justify-items:start}.premium-home-v111 .reviews-profile-card .btn,.premium-home-v111 .instagram-follow-card .btn{width:100%}.premium-home-v111 .premium-footer{padding-bottom:66px}}
@media(max-width:560px){.premium-home-v111 .hero-premium{min-height:690px}.premium-home-v111 .hero-grid{padding-top:38px;padding-bottom:275px}.premium-home-v111 .hero-copy h1{font-size:clamp(35px,10.5vw,44px)}.premium-home-v111 .hero-actions{grid-template-columns:1fr 1fr}.premium-home-v111 .hero-actions .btn{padding-inline:10px;font-size:14px}.premium-home-v111 .reviews-profile-card,.premium-home-v111 .instagram-follow-card{padding:22px}.premium-home-v111 .footer-grid{gap:24px}}
@media(prefers-reduced-motion:reduce){.premium-home-v111 .mice-intro{display:none!important}}

/* Controlled light-theme polish, v113 */
.premium-home-v113 .section{padding:68px 0}
.premium-home-v113 .section h2{font-size:clamp(36px,3.15vw,44px);line-height:1.1}
.premium-home-v113 .hero-copy h1{font-size:clamp(52px,4.35vw,64px);line-height:1.08;margin-bottom:18px}
.premium-home-v113 .hero-text{margin-top:0;line-height:1.62}
.premium-home-v113 .about-mice-section{padding:68px 0}.premium-home-v113 .about-mice-layout{gap:52px}.premium-home-v113 .about-points{margin-top:20px}.premium-home-v113 .about-points li{padding-top:11px;padding-bottom:11px}
.premium-home-v113 .section-heading{margin-bottom:28px}
.premium-home-v113 .course-grid{align-items:stretch;gap:16px}
.premium-home-v113 .course-card{height:100%;min-height:330px;padding:22px;border-radius:7px;box-shadow:0 8px 22px rgba(16,35,63,.055)}
.premium-home-v113 .course-card:hover{transform:translateY(-2px);box-shadow:0 12px 26px rgba(18,104,232,.09)}
.premium-home-v113.motion-ready .course-card.reveal-on-scroll{opacity:1;transform:none;transition:border-color .2s ease,box-shadow .2s ease,transform .2s ease;will-change:auto}
.premium-home-v113 .course-mark.course-icon{display:grid;place-items:center;width:46px;height:46px;border:1px solid #cfe0f4;border-radius:7px;color:var(--lh-blue);background:#f4f8ff;font-size:0;box-shadow:none}
.premium-home-v113 .course-icon svg{width:25px;height:25px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.premium-home-v113 .course-card-content{gap:7px}.premium-home-v113 .course-card-content>strong{font-size:21px;line-height:1.2}.premium-home-v113 .course-card-content small{font-size:13px;line-height:1.45}.premium-home-v113 .course-enquire-link{min-height:44px;margin-top:auto}
.premium-home-v113 .why-layout{gap:56px}.premium-home-v113 .why-list li{min-height:68px}
.premium-home-v113 .institute-intro{margin-bottom:25px}
.premium-home-v113 .director-layout{gap:46px}.premium-home-v113 .director-copy blockquote{margin:16px 0}.premium-home-v113 .director-signoff{margin-top:14px}
.premium-home-v113 .batch-section-layout{gap:46px}.premium-home-v113 .batch-timetable span{padding:16px 20px}
.premium-home-v113 .service-status-card{min-height:145px;padding:21px}
.premium-home-v113 .reviews-section-light{padding:56px 0}.premium-home-v113 .reviews-profile-card{min-height:0;padding:24px 28px}.premium-home-v113 .reviews-profile-card h2{font-size:clamp(29px,2.7vw,38px)}
.premium-home-v113 .instagram-section-light{padding:46px 0}.premium-home-v113 #contact{padding:62px 0}.premium-home-v113 .footer-grid{padding-top:44px;padding-bottom:28px}
.premium-home-v113 .nav-services-menu:focus-within>div{display:block}.premium-home-v113 .nav-services-menu a:focus-visible{outline:3px solid #1268e8;outline-offset:2px}
@media(max-width:1024px){.premium-home-v113 .section{padding:56px 0}.premium-home-v113 .hero-copy h1{font-size:clamp(48px,5.4vw,56px)}.premium-home-v113 .about-mice-section{padding:56px 0}.premium-home-v113 .reviews-section-light{padding:52px 0}.premium-home-v113 #contact{padding:56px 0}}
@media(max-width:800px){.premium-home-v113 .section{padding:48px 0}.premium-home-v113 .section h2{font-size:clamp(31px,7vw,38px)}.premium-home-v113 .hero-copy h1{font-size:clamp(36px,9.6vw,42px);line-height:1.1}.premium-home-v113 .about-mice-section{padding:48px 0}.premium-home-v113 .about-mice-layout,.premium-home-v113 .why-layout,.premium-home-v113 .batch-section-layout,.premium-home-v113 .director-layout{gap:30px}.premium-home-v113 .course-card{min-height:310px}.premium-home-v113 .reviews-section-light{padding:48px 0}.premium-home-v113 .instagram-section-light{padding:44px 0}.premium-home-v113 #contact{padding:48px 0}}
@media(max-width:560px){.premium-home-v113 .section{padding:44px 0}.premium-home-v113 .course-card{min-height:0;padding:19px}.premium-home-v113 .course-mark.course-icon{width:42px;height:42px}.premium-home-v113 .reviews-profile-card{padding:22px}}

/* Exact hero title scale: keep this final so legacy home rules cannot win the cascade. */
body[data-page="home"].premium-home-v113 .hero.hero-premium .hero-copy h1{
  font-size:62px;
  line-height:1.08;
}
@media(max-width:1199px){
  body[data-page="home"].premium-home-v113 .hero.hero-premium .hero-copy h1{font-size:54px}
}
@media(max-width:800px){
  body[data-page="home"].premium-home-v113 .hero.hero-premium .hero-copy h1{font-size:46px}
}
@media(max-width:560px){
  body[data-page="home"].premium-home-v113 .hero.hero-premium .hero-copy h1{font-size:38px}
}

/* Conditional public content and lightweight contact map, v115. */
.premium-home-v113 .contact-map{
  width:100%;
  margin-top:24px;
  overflow:hidden;
  aspect-ratio:5/3;
  border:1px solid var(--lh-line);
  border-radius:8px;
  background:#eaf3ff;
  box-shadow:0 10px 26px rgba(16,35,63,.07);
}
.premium-home-v113 .contact-map iframe{display:block;width:100%;height:100%;border:0}
.premium-home-v113 .google-reviews-content{display:grid;gap:24px}
.premium-home-v113 .google-reviews-heading{display:flex;align-items:end;justify-content:space-between;gap:24px}
.premium-home-v113 .google-reviews-heading h2{margin-bottom:0}
.premium-home-v113 .google-rating-summary{margin:10px 0 2px;color:var(--lh-navy);font-size:18px;font-weight:800}
.premium-home-v113 .google-rating-support{margin:0;color:var(--lh-muted);font-size:14px}
.premium-home-v113 .google-reviews-viewport{overflow:hidden;outline:none}
.premium-home-v113 .google-reviews-viewport:focus-visible{outline:3px solid var(--lh-blue);outline-offset:4px}
.premium-home-v113 .google-reviews-track{display:flex;width:max-content;animation:miceGoogleReviewsMove 42s linear infinite}
.premium-home-v113 .google-reviews-viewport:hover .google-reviews-track,
.premium-home-v113 .google-reviews-viewport:focus-within .google-reviews-track{animation-play-state:paused}
.premium-home-v113 .google-reviews-list{display:grid;grid-auto-flow:column;grid-auto-columns:min(380px,calc((100vw - 176px)/3));gap:16px;padding-right:16px}
.premium-home-v113 .google-review-card{display:grid;grid-template-rows:auto 1fr auto;gap:15px;width:100%;min-height:230px;padding:22px;border:1px solid var(--lh-line);border-radius:8px;background:#fff;box-shadow:0 9px 24px rgba(16,35,63,.06)}
.premium-home-v113 .google-review-card:focus-visible{outline:3px solid var(--lh-blue);outline-offset:-3px}
.premium-home-v113 .google-review-card-head,.premium-home-v113 .google-review-card-foot{display:flex;align-items:center;justify-content:space-between;gap:14px}
.premium-home-v113 .google-review-identity{display:flex;align-items:center;gap:10px;min-width:0}.premium-home-v113 .google-review-identity strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.premium-home-v113 .google-review-avatar{display:grid;flex:0 0 38px;place-items:center;width:38px;height:38px;border-radius:50%;color:#fff;background:var(--lh-blue);font-weight:800}
.premium-home-v113 .google-review-stars{color:#d89a16;letter-spacing:1px;white-space:nowrap}
.premium-home-v113 .google-review-card>p{display:-webkit-box;overflow:hidden;margin:0;color:var(--lh-muted);line-height:1.55;-webkit-box-orient:vertical;-webkit-line-clamp:4}
.premium-home-v113 .google-review-card-foot{font-size:13px}.premium-home-v113 .google-review-attribution{display:grid;gap:2px}.premium-home-v113 .google-review-attribution span{color:var(--lh-muted)}.premium-home-v113 .google-review-attribution small{color:var(--lh-navy);font-weight:700}.premium-home-v113 .google-review-card-foot a{color:var(--lh-blue);font-weight:700;white-space:nowrap}
.premium-home-v113 .optional-trust-list,.premium-home-v113 .optional-achievements-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-top:26px}
.premium-home-v113 .optional-trust-item,.premium-home-v113 .optional-achievement-card{border:1px solid var(--lh-line);border-radius:8px;background:#fff;box-shadow:0 9px 24px rgba(16,35,63,.06)}
.premium-home-v113 .optional-trust-item{display:grid;gap:6px;padding:20px;color:var(--lh-navy)}.premium-home-v113 .optional-trust-item span{color:var(--lh-muted);font-size:14px}
.premium-home-v113 .optional-achievement-card{overflow:hidden}.premium-home-v113 .optional-achievement-card img{width:100%;aspect-ratio:4/3;object-fit:cover}.premium-home-v113 .optional-achievement-card div{padding:18px}.premium-home-v113 .optional-achievement-card p{margin:7px 0 0;color:var(--lh-muted)}
@keyframes miceGoogleReviewsMove{to{transform:translateX(-50%)}}
@media(max-width:1024px){.premium-home-v113 .google-reviews-list{grid-auto-columns:min(420px,calc((100vw - 112px)/2))}}
@media(max-width:800px){
  .premium-home-v113 .contact-map{margin-top:20px;aspect-ratio:4/3}
  .premium-home-v113 .google-reviews-heading{align-items:stretch;flex-direction:column}.premium-home-v113 .google-reviews-heading .btn{width:100%}
  .premium-home-v113 .google-reviews-list{grid-auto-columns:calc((100vw - 72px)/2)}
  .premium-home-v113 .optional-trust-list,.premium-home-v113 .optional-achievements-grid{grid-template-columns:1fr}
}
@media(max-width:560px){.premium-home-v113 .google-reviews-list{grid-auto-columns:calc(100vw - 64px)}.premium-home-v113 .google-review-card{min-height:244px;padding:20px}.premium-home-v113 .google-review-card-head{align-items:flex-start;flex-direction:column}.premium-home-v113 .google-review-stars{padding-left:48px}}
@media(prefers-reduced-motion:reduce){
  .premium-home-v113 .google-reviews-viewport{overflow-x:auto;scrollbar-width:thin}
  .premium-home-v113 .google-reviews-track{animation:none}
  .premium-home-v113 .google-reviews-list[aria-hidden="true"]{display:none}
}

/* Consistent public inner pages, v117. Home page styles remain independent. */
.visually-hidden{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.public-inner-page{display:flex;min-height:100vh;flex-direction:column;color:#10233f;background:#f4f8ff}
.public-inner-page .page-shell{flex:1;padding:56px 0 64px}
.public-inner-header{height:72px;border-bottom:1px solid #dce8f7;background:rgba(255,255,255,.97);box-shadow:0 5px 22px rgba(16,35,63,.07)}
.public-inner-header .navbar{min-height:72px}.public-inner-header .brand-with-logo{gap:11px}.public-inner-header .brand-with-logo img{flex:0 0 50px;width:50px;height:50px;border:1px solid #e6c66d;border-radius:50%;object-fit:cover;box-shadow:0 2px 9px rgba(16,35,63,.1)}
.public-inner-header .brand strong{color:#10233f;font-size:15px;font-weight:900}.public-inner-header .brand small{margin-top:1px;color:#607086;font-size:12px;font-weight:700}
.public-inner-header .nav-links{gap:4px}.public-inner-header .nav-links>a{display:inline-flex;align-items:center;min-height:44px;padding:8px 10px;border-radius:5px;color:#233b5b;font-size:14px;font-weight:750}
.public-inner-header .nav-links>a:hover,.public-inner-header .nav-links>a:focus-visible{color:#1268e8;background:#f1f6fd}.public-inner-header .nav-links>a.active{color:#1268e8;background:#eaf3ff;box-shadow:inset 0 -2px #1268e8}
.public-inner-header .nav-toggle span{background:#10233f}
.public-inner-page .page-title{max-width:820px;margin-bottom:30px}.public-inner-page .page-title h1{color:#10233f;font-size:clamp(34px,4vw,48px)}.public-inner-page .page-title p{max-width:720px;line-height:1.65}
.public-inner-page .eyebrow{color:#1268e8;letter-spacing:.08em}
.public-inner-page .panel{border-color:#dce8f7;border-radius:8px;box-shadow:0 12px 32px rgba(16,35,63,.07)}.public-inner-page .panel:hover{transform:none;box-shadow:0 12px 32px rgba(16,35,63,.07)}
.public-inner-page .all-courses-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;align-items:stretch}
.public-inner-page .course-card{grid-template-columns:46px minmax(0,1fr);min-height:336px;padding:21px;border-color:#dce8f7;border-radius:8px;background:#fff;box-shadow:0 8px 22px rgba(16,35,63,.055);transition:border-color .2s ease,box-shadow .2s ease,transform .2s ease}
.public-inner-page .course-card:hover{transform:translateY(-2px);border-color:#9fc4f5;box-shadow:0 12px 27px rgba(18,104,232,.09)}
.public-inner-page.motion-ready .reveal-on-scroll,.public-inner-page.motion-ready .reveal-on-scroll.is-visible{opacity:1;transform:none;will-change:auto}.public-inner-page.motion-ready .course-card.reveal-on-scroll,.public-inner-page.motion-ready .course-card.reveal-on-scroll.is-visible{transition:border-color .2s ease,box-shadow .2s ease,transform .2s ease}
.public-inner-page .course-mark.course-icon{display:grid;place-items:center;width:46px;height:46px;border:1px solid #cfe0f4;border-radius:7px;color:#1268e8;background:#f4f8ff;box-shadow:none}
.public-inner-page .course-icon svg{width:25px;height:25px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.public-inner-page .course-card-content{gap:7px}.public-inner-page .course-card-content>strong{font-size:19px;line-height:1.22}.public-inner-page .course-card-content small{margin-top:0;font-size:13px;line-height:1.45}.public-inner-page .course-enquire-link{min-height:44px;margin-top:auto}
.public-inner-page .section-actions{margin-top:28px}
.public-inner-footer{padding:40px 0 32px;color:#52677f;background:linear-gradient(135deg,#eaf3ff,#f7fbff);border-top:1px solid #cddff3}
.public-inner-footer .public-footer-grid{display:grid;grid-template-columns:1.35fr .9fr .9fr 1.2fr;gap:30px}.public-inner-footer .public-footer-grid>div{display:grid;align-content:start;gap:8px}.public-inner-footer strong{color:#10233f}.public-inner-footer a,.public-inner-footer p{margin:0;color:#52677f;font-size:14px;line-height:1.55}.public-inner-footer a:hover,.public-inner-footer a:focus-visible{color:#1268e8}
.public-document-shell{background:linear-gradient(180deg,#f4f8ff,#fff)}.public-document{max-width:860px;padding:0}.public-document h1{margin-bottom:14px;color:#10233f;font-size:clamp(36px,4.5vw,50px)}.public-document h2{margin-top:30px;color:#10233f;font-size:22px}.public-document p,.public-document li{color:#455c77;font-size:16px;line-height:1.75}.public-document .document-intro{max-width:760px;font-size:17px}.approved-rules{display:grid;gap:0;margin:28px 0 0;padding:0;list-style:none;counter-reset:mice-rule;border-top:1px solid #dce8f7}.approved-rules li{position:relative;padding:17px 8px 17px 52px;border-bottom:1px solid #dce8f7;counter-increment:mice-rule}.approved-rules li::before{content:counter(mice-rule,decimal-leading-zero);position:absolute;top:18px;left:4px;color:#1268e8;font-size:13px;font-weight:900}
.public-inner-page[data-page="lookup"] .page-title{max-width:760px;margin-inline:auto;text-align:center}.public-inner-page .lookup-panel{max-width:920px;min-height:260px;margin-inline:auto;padding:28px}.public-inner-page .lookup-result{min-height:24px}.public-inner-page .lookup-privacy-note{color:#607086;line-height:1.6}
.public-inner-page .certificate-page{padding-top:48px;background:linear-gradient(180deg,#f4f8ff,#fff)}.public-inner-page .certificate-title{margin-bottom:24px}.public-inner-page .certificate-verify-layout{grid-template-columns:minmax(0,1.25fr) minmax(280px,.75fr);gap:18px;align-items:start}.public-inner-page .certificate-search-panel{align-content:start;gap:15px;padding:24px}.public-inner-page .certificate-seal{width:48px;height:48px;font-size:1.4rem}.public-inner-page .certificate-search-panel h2,.public-inner-page .certificate-qr-panel h2{font-size:clamp(21px,2.5vw,28px)}.public-inner-page .certificate-qr-panel{align-content:start;gap:10px;padding:22px}.public-inner-page .certificate-qr-wrap{width:214px;padding:10px}.public-inner-page .certificate-form input{min-height:50px}.public-inner-page .certificate-verify-status{min-height:24px}
.public-inner-page .certificate-qr-wrap img{height:auto}
@media(max-width:1024px){.public-inner-page .all-courses-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.public-inner-header .nav-links>a{padding-inline:8px;font-size:13px}.public-inner-footer .public-footer-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:900px){.public-inner-header .nav-links,.public-inner-header .nav-links.open{top:72px;background:#fff;border-color:#dce8f7;box-shadow:0 16px 30px rgba(16,35,63,.14)}.public-inner-header .nav-links>a{color:#10233f;font-size:14px}.public-inner-header .nav-links>a.active{color:#1268e8}}
@media(max-width:740px){.public-inner-page .page-shell{padding:44px 0 50px}.public-inner-header,.public-inner-header .navbar{height:66px;min-height:66px}.public-inner-header .brand-with-logo img{flex-basis:46px;width:46px;height:46px}.public-inner-header .nav-links,.public-inner-header .nav-links.open{top:66px}.public-inner-page .all-courses-grid{grid-template-columns:1fr}.public-inner-page .course-card{min-height:0}.public-inner-footer{padding:34px 0}.public-inner-footer .public-footer-grid{grid-template-columns:1fr;gap:24px}.public-inner-page .lookup-panel{padding:22px}.public-inner-page .certificate-verify-layout{grid-template-columns:1fr}.public-inner-page .certificate-title{text-align:left}.public-inner-page .certificate-form{grid-template-columns:1fr}.public-inner-page .certificate-form .btn{width:100%}.public-document h2{margin-top:26px}.approved-rules li{padding-left:46px}}
@media(prefers-reduced-motion:reduce){.public-inner-page .course-card,.public-inner-page .course-card:hover{transform:none!important;transition:none!important}}

/* Student success gallery, v118. Isolated from admin and public utility pages. */
.premium-home-v113 .student-success-section{overflow:hidden;background:linear-gradient(180deg,#f8fbff 0%,#eef6ff 100%);border-block:1px solid #dce8f7}
.premium-home-v113 .student-success-heading{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(280px,.85fr);align-items:end;gap:42px;margin-bottom:30px}
.premium-home-v113 .student-success-heading h2{max-width:680px;margin-bottom:0}.premium-home-v113 .student-success-heading>p{max-width:510px;margin:0;color:#52677f;line-height:1.7}
.premium-home-v113 .student-success-layout{display:grid;grid-template-columns:minmax(0,1.32fr) minmax(390px,.68fr);gap:18px;align-items:stretch}
.premium-home-v113 .student-success-feature,.premium-home-v113 .student-success-card{position:relative;display:block;min-width:0;overflow:hidden;padding:0;border:1px solid #d6e4f4;border-radius:8px;background:#fff;box-shadow:0 10px 26px rgba(16,35,63,.075);text-align:left;transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease}
.premium-home-v113 .student-success-feature:hover,.premium-home-v113 .student-success-card:hover{transform:translateY(-2px);border-color:#a9c8ee;box-shadow:0 14px 30px rgba(16,35,63,.1)}
.premium-home-v113 .student-success-feature:focus-visible,.premium-home-v113 .student-success-card:focus-visible{outline:3px solid #1268e8;outline-offset:3px}
.premium-home-v113 .student-success-feature picture,.premium-home-v113 .student-success-feature img,.premium-home-v113 .student-success-card img{display:block;width:100%;height:100%}
.premium-home-v113 .student-success-feature img{aspect-ratio:1260/610;object-fit:cover}.premium-home-v113 .student-success-card img{aspect-ratio:4/5;object-fit:cover}
.premium-home-v113 .student-success-feature>span,.premium-home-v113 .student-success-card>span{position:absolute;right:0;bottom:0;left:0;display:grid;gap:2px;padding:38px 18px 16px;color:#fff;background:linear-gradient(180deg,transparent,rgba(7,31,57,.88));transform:none}
.premium-home-v113 .student-success-feature>span strong,.premium-home-v113 .student-success-card>span strong{font-size:16px;line-height:1.3}.premium-home-v113 .student-success-feature>span small{color:#dceaff;font-size:13px}
.premium-home-v113 .student-success-portraits{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.premium-home-v113 .student-success-actions{display:flex;justify-content:center;gap:12px;margin-top:28px}
@media(max-width:1024px){.premium-home-v113 .student-success-layout{grid-template-columns:1fr}.premium-home-v113 .student-success-feature img{aspect-ratio:16/8}.premium-home-v113 .student-success-portraits{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.premium-home-v113 .student-success-heading{grid-template-columns:1fr;gap:14px;margin-bottom:24px}.premium-home-v113 .student-success-layout{gap:14px}.premium-home-v113 .student-success-feature img{aspect-ratio:1400/692}.premium-home-v113 .student-success-portraits{grid-template-columns:repeat(4,minmax(76vw,1fr));gap:12px;overflow-x:auto;padding:2px 2px 12px;scroll-snap-type:x mandatory;scrollbar-width:thin}.premium-home-v113 .student-success-card{scroll-snap-align:start}.premium-home-v113 .student-success-actions{align-items:stretch;flex-direction:column}.premium-home-v113 .student-success-actions .btn{width:100%}}
@media(prefers-reduced-motion:reduce){.premium-home-v113 .student-success-feature,.premium-home-v113 .student-success-card{transition:none}.premium-home-v113 .student-success-feature:hover,.premium-home-v113 .student-success-card:hover{transform:none}}

/* Protected WhatsApp broadcast module, v120. */
.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.whatsapp-broadcast-page{background:#f5f8fc;min-height:calc(100vh - 72px)}
.broadcast-page-head{align-items:flex-end}.broadcast-page-head>div{max-width:760px}.broadcast-page-head p:last-child{margin:8px 0 0;color:#54677f;line-height:1.65}
.broadcast-safety-note{display:grid;grid-template-columns:auto 1fr;gap:8px 18px;margin:0 0 18px;padding:16px 18px;border:1px solid #efd889;border-left:4px solid #d9a928;border-radius:8px;background:#fff9df;color:#473b11}.broadcast-safety-note strong{grid-row:1/3}.broadcast-safety-note p{margin:0;line-height:1.55}
.broadcast-filter-panel,.broadcast-recipient-panel,.broadcast-composer,.broadcast-export-panel,.broadcast-instructions{margin-top:18px}
.broadcast-filter-grid{display:grid;grid-template-columns:repeat(4,minmax(170px,1fr));gap:14px}.broadcast-filter-grid label,.broadcast-compose-fields label{display:grid;gap:7px;color:#233a56;font-weight:800;font-size:.86rem}.broadcast-filter-grid .wide{grid-column:span 2}.broadcast-filter-grid input,.broadcast-filter-grid select,.broadcast-compose-fields select,.broadcast-compose-fields textarea{width:100%;min-height:44px;border:1px solid #b9c9dc;border-radius:7px;background:#fff;color:#102a48}.broadcast-compose-fields textarea{min-height:230px;resize:vertical;line-height:1.55}
.broadcast-summary{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin-top:18px}.broadcast-summary article{display:grid;gap:7px;padding:16px;border:1px solid #d5e1ef;border-radius:8px;background:#fff;box-shadow:0 5px 16px rgba(17,48,84,.05)}.broadcast-summary span{color:#60738b;font-size:.8rem;font-weight:750}.broadcast-summary strong{color:#0b2d55;font-size:1.45rem}
.broadcast-recipient-head{align-items:center}.broadcast-recipient-head .compact-actions{justify-content:flex-end}.broadcast-table-wrap{max-height:560px;overflow:auto;border:1px solid #d8e3f0;border-radius:8px}.broadcast-table-wrap.is-empty{max-height:none}.broadcast-table{width:100%;min-width:1080px;border-collapse:collapse;background:#fff}.broadcast-table th{position:sticky;top:0;z-index:1;padding:12px 10px;background:#eaf2fc;color:#15385f;text-align:left;font-size:.78rem}.broadcast-table td{padding:12px 10px;border-top:1px solid #e3eaf3;color:#304962;font-size:.82rem;vertical-align:top}.broadcast-table tr:hover td{background:#f7fbff}.broadcast-table input,.broadcast-contact-card input{width:20px;height:20px;accent-color:#15944a}.masked-mobile{font-family:Consolas,"Courier New",monospace;font-weight:800;letter-spacing:.04em}.eligibility-ok{color:#0c763c!important;font-weight:800}.eligibility-warning{color:#9a5215!important;font-weight:800}
.broadcast-mobile-cards{display:none}.broadcast-contact-card{padding:16px;border:1px solid #d5e1ef;border-radius:8px;background:#fff;box-shadow:0 5px 16px rgba(17,48,84,.05)}.broadcast-card-head{display:grid;grid-template-columns:24px 1fr;align-items:center;gap:10px;margin-bottom:12px;color:#102d50}.broadcast-contact-card p{display:grid;grid-template-columns:118px 1fr;gap:10px;margin:7px 0;color:#60738b;font-size:.82rem}.broadcast-contact-card p b{color:#263f5d;overflow-wrap:anywhere}
.broadcast-composer-grid{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(300px,.8fr);gap:24px;align-items:start}.broadcast-compose-fields{display:grid;gap:14px}.broadcast-message-meta{display:flex;justify-content:space-between;gap:12px;color:#60738b;font-size:.8rem}.broadcast-message-meta span:last-child{color:#a65717;font-weight:800;text-align:right}.broadcast-phone-preview{min-height:390px;padding:16px;border:8px solid #17334f;border-radius:22px;background:#e7f4e8;box-shadow:0 10px 24px rgba(13,42,72,.12)}.broadcast-phone-bar{margin:-16px -16px 14px;padding:13px 16px;border-radius:12px 12px 0 0;background:#167b4d;color:#fff;font-weight:850}.broadcast-phone-preview pre{max-height:330px;margin:0;padding:14px;border-radius:8px;background:#fff;color:#20344a;font:500 .88rem/1.55 system-ui,sans-serif;white-space:pre-wrap;overflow:auto;box-shadow:0 2px 10px rgba(25,64,45,.08)}
.broadcast-consent-confirm{display:flex;align-items:flex-start;gap:12px;max-width:900px;margin-bottom:16px;padding:14px;border:1px solid #c7d8ea;border-radius:8px;background:#f7fbff;color:#273f5a;font-weight:750;line-height:1.5}.broadcast-consent-confirm input{flex:0 0 auto;width:21px;height:21px;margin-top:1px;accent-color:#15944a}
.broadcast-instructions ol{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 28px;margin:16px 0 0;padding-left:22px}.broadcast-instructions li{padding-left:4px;color:#445c75;line-height:1.55}
.broadcast-export-dialog{width:min(880px,calc(100% - 32px));max-height:calc(100vh - 40px);padding:0;border:0;border-radius:10px;background:#fff;color:#17324f;box-shadow:0 24px 70px rgba(9,31,56,.3)}.broadcast-export-dialog::backdrop{background:rgba(8,25,45,.62)}.broadcast-dialog-head{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:18px 20px;border-bottom:1px solid #dbe5ef}.broadcast-dialog-head h2{margin:0;font-size:1.25rem}.broadcast-dialog-head button{display:grid;place-items:center;width:44px;height:44px;border:0;border-radius:6px;background:#edf3fa;color:#17324f;font-size:1.65rem;cursor:pointer}.broadcast-export-summary{display:grid;grid-template-columns:repeat(2,1fr);gap:8px 20px;padding:18px 20px}.broadcast-export-summary p{margin:0}.broadcast-dialog-warning{margin:0 20px 16px;padding:12px;border-left:4px solid #d5a82d;background:#fff8df;color:#624d14}.broadcast-preview-table-wrap{max-height:310px;margin:0 20px;overflow:auto;border:1px solid #d8e3ef;border-radius:7px}.broadcast-preview-table-wrap table{width:100%;min-width:720px;border-collapse:collapse}.broadcast-preview-table-wrap th,.broadcast-preview-table-wrap td{padding:10px;border-bottom:1px solid #e2e9f2;text-align:left;font-size:.8rem}.broadcast-preview-table-wrap th{background:#edf4fc}.broadcast-dialog-actions{justify-content:flex-end;padding:18px 20px}
#broadcastToast{position:fixed;right:20px;bottom:22px;z-index:1300;max-width:min(420px,calc(100% - 40px));padding:13px 16px;border-radius:7px;background:#167846;color:#fff;font-weight:800;box-shadow:0 12px 30px rgba(9,37,62,.22);opacity:0;transform:translateY(18px);pointer-events:none;transition:opacity .18s ease,transform .18s ease}#broadcastToast.show{opacity:1;transform:none}#broadcastToast.error{background:#a33a31}
.whatsapp-broadcast-page input:focus-visible,.whatsapp-broadcast-page select:focus-visible,.whatsapp-broadcast-page textarea:focus-visible,.whatsapp-broadcast-page button:focus-visible,.broadcast-export-dialog button:focus-visible{outline:3px solid #0b67d4;outline-offset:2px}
@media(max-width:1100px){.broadcast-filter-grid{grid-template-columns:repeat(3,minmax(160px,1fr))}.broadcast-summary{grid-template-columns:repeat(3,minmax(0,1fr))}.broadcast-composer-grid{grid-template-columns:1fr}.broadcast-phone-preview{min-height:310px}.broadcast-phone-preview pre{max-height:260px}}
@media(max-width:760px){.whatsapp-broadcast-page{padding-bottom:24px}.broadcast-page-head{align-items:flex-start}.broadcast-safety-note{grid-template-columns:1fr;gap:5px}.broadcast-safety-note strong{grid-row:auto}.broadcast-filter-grid{grid-template-columns:1fr 1fr}.broadcast-filter-grid .wide{grid-column:1/-1}.broadcast-summary{grid-template-columns:1fr 1fr}.broadcast-recipient-head{align-items:flex-start}.broadcast-recipient-head .compact-actions{width:100%;justify-content:stretch}.broadcast-recipient-head .btn{flex:1}.broadcast-table-wrap{display:none}.broadcast-mobile-cards{display:grid;gap:12px}.broadcast-contact-card p{grid-template-columns:105px 1fr}.broadcast-composer-grid{gap:18px}.broadcast-phone-preview{min-height:280px;border-width:6px;border-radius:16px}.broadcast-instructions ol{grid-template-columns:1fr}.broadcast-export-summary{grid-template-columns:1fr}.broadcast-dialog-actions .btn{flex:1}#broadcastToast{right:16px;bottom:16px}}
@media(max-width:430px){.broadcast-filter-grid,.broadcast-summary{grid-template-columns:1fr}.broadcast-recipient-head .compact-actions,.broadcast-compose-fields .compact-actions,.broadcast-dialog-actions{display:grid;grid-template-columns:1fr;width:100%}.broadcast-contact-card p{grid-template-columns:1fr;gap:2px}.broadcast-message-meta{align-items:flex-start;flex-direction:column}.broadcast-phone-preview{padding:12px}.broadcast-phone-bar{margin:-12px -12px 12px}.broadcast-export-dialog{width:calc(100% - 18px)}}
@media(prefers-reduced-motion:reduce){#broadcastToast{transition:none}}

/* Native WhatsApp Business contact-file workflow, v121. */
.broadcast-primary-download{min-height:48px;padding-inline:22px}
.broadcast-other-options{max-width:720px;margin-top:18px;padding-top:16px;border-top:1px solid #dbe6f2}
.broadcast-other-options summary{width:max-content;color:#174f82;font-weight:850;cursor:pointer}
.broadcast-other-options p{margin:10px 0 14px;color:#60738b;line-height:1.55}
.broadcast-delivery-notice{margin:18px 0 0;padding:14px 16px;border-left:4px solid #e3a319;border-radius:4px;background:#fff8df;color:#4a3a13;line-height:1.55}
@media(max-width:760px){.broadcast-primary-download{width:100%;white-space:normal}.broadcast-other-options summary{min-height:44px;display:flex;align-items:center}.broadcast-other-options .btn{width:100%}}

/* Subtle public footer access for authorized staff. */
.site-footer .footer-staff-login{display:flex;align-items:center;min-height:44px;width:max-content;max-width:100%;color:#8fa2b5;font-size:13px;font-weight:650;text-decoration:none}
.premium-home-v111 .footer-grid .footer-staff-login,.public-inner-footer .footer-staff-login{color:#718399}
.site-footer .footer-staff-login:hover{color:#b8c7d6;text-decoration:underline;text-underline-offset:3px}
.premium-home-v111 .footer-grid .footer-staff-login:hover,.public-inner-footer .footer-staff-login:hover{color:#174f82}
.site-footer .footer-staff-login:focus-visible{outline:3px solid #f2b24f;outline-offset:3px;border-radius:3px}

/* Protected, text-only fee reminder preview. */
.fee-reminder-dialog{width:min(720px,calc(100% - 32px));max-height:calc(100vh - 32px);padding:0;border:1px solid #cbd9ea;border-radius:8px;color:#102a43;background:#fff;box-shadow:0 24px 70px rgba(8,31,56,.24)}
.fee-reminder-dialog::backdrop{background:rgba(6,24,43,.64)}
.fee-reminder-dialog-card{display:grid;gap:16px;padding:clamp(18px,3vw,28px)}
.fee-reminder-dialog-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}
.fee-reminder-dialog-head h2{margin:2px 0 0;font-size:clamp(1.35rem,3vw,1.8rem)}
.fee-reminder-dialog label{display:grid;gap:7px;font-weight:700}
.fee-reminder-dialog select,.fee-reminder-dialog textarea{width:100%;border:1px solid #b9cce2;border-radius:6px;background:#f8fbff;color:#102a43}
.fee-reminder-dialog textarea{min-height:280px;resize:vertical;line-height:1.5}
@media(max-width:520px){.fee-reminder-dialog{width:calc(100% - 20px);max-height:calc(100vh - 20px)}.fee-reminder-dialog-card{padding:16px}.fee-reminder-dialog .form-actions{display:grid;grid-template-columns:1fr}.fee-reminder-dialog .form-actions .btn{width:100%}}

/* Accounts ledger safety and pagination, v125. */
.account-filters{grid-template-columns:minmax(220px,2fr) repeat(5,minmax(145px,1fr));align-items:end}
.account-filter-action{display:flex;align-items:end}.account-filter-action .btn{width:100%;min-height:44px}
.account-table{min-width:1050px}.account-table-wrap{overflow-x:auto;overflow-y:visible}
.account-pagination{display:flex;align-items:center;justify-content:flex-end;gap:12px;margin-top:16px}.account-pagination .btn{min-width:92px;min-height:44px}.account-pagination span{min-width:110px;text-align:center;color:#445b72;font-weight:750}
.account-actions-menu{position:relative;display:inline-block}.account-actions-menu[open]{z-index:30}.account-actions-menu summary{display:flex;align-items:center;justify-content:center;min-width:82px;min-height:44px;padding:8px 12px;border:1px solid #b9cce2;border-radius:5px;background:#f5f9fd;color:#123f68;font-weight:800;cursor:pointer;list-style:none}.account-actions-menu summary::-webkit-details-marker{display:none}.account-actions-menu summary::after{content:"⋮";margin-left:8px;font-size:18px;line-height:1}.account-actions-menu[open] summary{border-color:#2268aa;background:#eaf3fc}.account-actions-menu>div{position:absolute;right:0;z-index:25;display:grid;min-width:180px;padding:6px;border:1px solid #c9d8e7;border-radius:6px;background:#fff;box-shadow:0 12px 28px rgba(16,57,95,.18)}.account-actions-menu>div button{min-height:44px;padding:10px 12px;border:0;border-radius:4px;background:transparent;color:#173b5f;text-align:left;font:inherit;font-weight:700;cursor:pointer}.account-actions-menu>div button:hover,.account-actions-menu>div button:focus-visible{background:#eef5fb}.account-actions-menu>div .danger-text{color:#b42318}.account-actions-menu>div .danger-text:hover,.account-actions-menu>div .danger-text:focus-visible{background:#fff0ee}
.account-status{display:inline-flex;align-items:center;min-height:28px;padding:4px 9px;border-radius:999px;background:#eaf8ef;color:#176b3b;font-size:.78rem;font-weight:800}.account-status.cancelled{background:#f2f4f7;color:#667085}
.account-mobile-amount{display:flex;align-items:center;justify-content:space-between;gap:12px}.account-mobile-card .mobile-actions{display:flex;justify-content:flex-end}
.account-form-status{min-height:22px;margin:4px 0 0;color:#52677f;font-weight:700}.account-form-status[data-tone="success"]{color:#176b3b}.account-form-status[data-tone="error"]{color:#b42318}
.account-dialog{width:min(620px,calc(100% - 32px));max-height:calc(100vh - 32px);padding:0;border:1px solid #c9d8e7;border-radius:8px;background:#fff;color:#102a43;box-shadow:0 24px 70px rgba(8,31,56,.25)}.account-dialog::backdrop{background:rgba(6,24,43,.64)}.account-dialog-card{display:grid;gap:18px;padding:clamp(18px,3vw,28px)}.account-dialog-head{display:flex;align-items:center;justify-content:space-between;gap:16px}.account-dialog-head h2{margin:0;font-size:clamp(1.35rem,3vw,1.8rem)}.account-detail-list{display:grid;grid-template-columns:minmax(120px,.65fr) minmax(0,1.35fr);gap:9px 16px;margin:0}.account-detail-list dt{color:#5b6f84;font-weight:700}.account-detail-list dd{margin:0;color:#102a43;font-weight:750;overflow-wrap:anywhere}.account-dialog-extra label{display:grid;gap:7px;font-weight:800}.account-dialog-extra textarea{width:100%;border:1px solid #b9cce2;border-radius:6px;background:#f8fbff;color:#102a43;resize:vertical}
.account-actions-menu summary:focus-visible,.account-actions-menu button:focus-visible,.account-pagination button:focus-visible,.account-dialog button:focus-visible,.account-dialog textarea:focus-visible{outline:3px solid #f2b24f;outline-offset:2px}
@media(max-width:1100px){.account-filters{grid-template-columns:repeat(3,minmax(0,1fr))}.account-filters .wide{grid-column:span 2}}
@media(max-width:700px){.account-filters{grid-template-columns:1fr 1fr}.account-filters .wide{grid-column:1/-1}.account-pagination{justify-content:center}.account-detail-list{grid-template-columns:1fr;gap:4px}.account-detail-list dd{margin-bottom:8px}}
@media(max-width:600px){.account-filters{grid-template-columns:1fr}.account-filters .wide{grid-column:auto}.account-filter-action .btn{width:100%}.account-pagination{display:grid;grid-template-columns:1fr auto 1fr;gap:8px}.account-pagination .btn{min-width:0}.account-dialog{width:calc(100% - 20px);max-height:calc(100vh - 20px)}.account-dialog-card{padding:16px}.account-dialog .form-actions{display:grid;grid-template-columns:1fr}.account-dialog .form-actions .btn{width:100%}}
