/* =====================================================
   STYLENEW.CSS Ã¢â‚¬â€ Modern School Website
   Clean Flat Design Ã‚Â· No Gradients Ã‚Â· Fully Responsive
   ===================================================== */

/* =====================================================
   1. CSS CUSTOM PROPERTIES
   ===================================================== */
:root {
  /* Brand Greens */
/* Brand greens */
--green-900: #4b0004;
--green-800: #7a0107;
--green-700: #a50209;
--green-600: #c9030c;
--green-500: #ea040e;   /* Base Color */
--green-400: #f43f47;
--green-300: #f87171;
--green-200: #fecaca;
--green-100: #fee2e2;
--green-50:  #fff1f2;

/* Deep green variants (used in admin/portal hero gradients) */
--navy-950: #2a0002;   /* deepest green tone */
--navy-900: #4b0004;   /* same as --green-900 */
--navy-850: #5e070c;   /* rich dark crimson */
--navy-800: #7a1015;   /* deep wine green */

/* green surface tints (danger / alert panels) */
--green-tint-50:  #fff5f5;
--green-tint-100: #ffe3e3;
--green-tint-200: #fecaca;
--green-tint-300: #f8d7da;   /* bootstrap danger soft */
--green-tint-400: #f5c2c7;   /* bootstrap danger border */
--green-ink:      #842029;   /* dark text on green surface */

/* Shadows */
--shadow-green:    0 8px 24px rgba(234,4,14,.25);
--shadow-green-lg: 0 16px 40px rgba(234,4,14,.30);

  /* Warm Amber Accent */
  --amber-700: #b45309;
  --amber-600: #d97706;
  --amber-500: #f59e0b;
  --amber-200: #fde68a;
  --amber-100: #fef3c7;

  /* Brand Orange (legacy admin accent) */
  --orange-700: #d0651a;
  --orange-600: #e87722;
  --orange-100: #fde7d3;

  /* Neutrals */
  --white:    #ffffff;
  --gray-25:  #fcfcfd;
  --gray-50:  #f8f9fa;
  --gray-100: #f1f3f4;
  --gray-200: #e8eaed;
  --gray-300: #d4d7dc;
  --gray-400: #bcc0c7;
  --gray-500: #9aa0a8;
  --gray-600: #6c737a;
  --gray-700: #4a5058;
  --gray-800: #303438;
  --gray-900: #1a1d21;

  /* Semantic aliases */
  --primary:        var(--green-800);
  --primary-dark:   var(--green-900);
  --primary-deeper: var(--navy-950);
  --primary-light:  var(--green-600);
  --primary-mist:   var(--green-100);
  --primary-glow:   rgba(12,84,48,.18);
  --accent:         var(--amber-600);
  --accent-dark:    var(--amber-700);
  --accent-light:   var(--amber-100);
  --gold:           #c9a84c;
  --bg:             #fafbfc;
  --bg-alt:         var(--gray-50);
  --bg-dark:        var(--green-900);
  --text:           var(--gray-900);
  --text-secondary: var(--gray-700);
  --text-muted:     var(--gray-500);
  --border:         var(--gray-200);
  --border-light:   var(--gray-100);

  /* Shadows (multi-layer for depth) */
  --shadow-xs:   0 1px 2px rgba(0,0,0,.04);
  --shadow-sm:   0 2px 6px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md:   0 4px 12px rgba(0,0,0,.08), 0 1px 4px rgba(0,0,0,.04);
  --shadow-lg:   0 10px 28px rgba(0,0,0,.10), 0 2px 8px rgba(0,0,0,.05);
  --shadow-xl:   0 20px 50px rgba(0,0,0,.12), 0 4px 12px rgba(0,0,0,.06);
  --shadow-2xl:  0 30px 80px rgba(0,0,0,.18), 0 6px 18px rgba(0,0,0,.08);
  --shadow-card: 0 2px 8px rgba(0,0,0,.05), 0 1px 3px rgba(0,0,0,.03);
  --shadow-hover:0 12px 32px rgba(0,0,0,.10), 0 2px 8px rgba(0,0,0,.06);


  /* Border Radius */
  --r-xs:  4px;
  --r-sm:  6px;
  --r-md:  10px;
  --r-lg:  16px;
  --r-xl:  24px;
  --r-2xl: 32px;
  --r-full:9999px;

  /* Motion */
  --t-fast:   150ms cubic-bezier(.4,0,.2,1);
  --t-base:   250ms cubic-bezier(.4,0,.2,1);
  --t-slow:   400ms cubic-bezier(.4,0,.2,1);
  --t-spring: 500ms cubic-bezier(.34,1.56,.64,1);

  /* Fonts */
  --font-heading: 'Poppins', 'Trirong', system-ui, sans-serif;
  --font-body:    'Open Sans', system-ui, -apple-system, sans-serif;
  --font-serif:   'Trirong', Georgia, serif;
}

/* =====================================================
   2. RESET & BASE
   ===================================================== */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1.6rem;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color var(--t-base); }
a:hover { color: var(--primary-light); }

::selection { background: var(--primary); color: var(--white); }
::-moz-selection { background: var(--primary); color: var(--white); }

*:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
  border-radius: var(--r-xs);
}

/* =====================================================
   3. TYPOGRAPHY
   ===================================================== */
h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
  margin-bottom: 1.2rem;
  letter-spacing: -.02em;
}
h1 { font-size: 4.8rem; font-weight: 800; }
h2 { font-size: 3.8rem; font-weight: 800; }
h3 { font-size: 2.8rem; }
h4 { font-size: 2.2rem; }
h5 { font-size: 1.8rem; }
h6 { font-size: 1.6rem; }

p { margin-bottom: 1.6rem; color: var(--text-secondary); line-height: 1.85; }

/* =====================================================
   4. LAYOUT
   ===================================================== */
.container {
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 2.4rem;
  padding-right: 2.4rem;
  width: 100%;
}
.container-fluid { width: 100%; padding-left: 2.4rem; padding-right: 2.4rem; }
.row { margin-left: -1.5rem; margin-right: -1.5rem; display: flex; flex-wrap: wrap; }
.row::after { content:''; display:table; clear:both; }
.row.row-center { align-items: center; }
.row.row-stack-sm { flex-direction: column; }
[class*='col-'] { padding-left:1.5rem; padding-right:1.5rem; float:left; width:100%; }

.col-lg-12 { width: 100%; }
.col-lg-9  { width: 75%; }
.col-lg-8  { width: 66.6667%; }
.col-lg-7  { width: 58.3333%; }
.col-lg-6  { width: 50%; }
.col-lg-5  { width: 41.6667%; }
.col-lg-4  { width: 33.3333%; }
.col-lg-3  { width: 25%; }
.col-lg-2  { width: 16.6667%; }

@media(max-width:991px){
  .col-md-12 { width: 100%; }
  .col-md-8  { width: 66.6667%; }
  .col-md-6  { width: 50%; }
  .col-md-4  { width: 33.3333%; }
  .col-md-3  { width: 25%; }
}
@media(max-width:767px){
  [class*='col-'] { float:none !important; width:100% !important; }
}

/* =====================================================
   5. BUTTONS
   ===================================================== */
.ed_btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .8rem;
  padding: 1.4rem 3.2rem;
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 600;
  border-radius: var(--r-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--t-base);
  letter-spacing: .02em;
  white-space: nowrap;
  text-align: center;
  text-decoration: none !important;
  line-height: 1.2;
}
.ed_btn i { font-size: 1.35rem; }

/* Filled primary (legacy: ed_orange Ã¢â€ â€™ maps to filled green) */
.ed_orange {
  background: var(--primary);
  color: var(--white) !important;
  border-color: var(--primary);
  box-shadow: 0 4px 14px var(--primary-glow);
}
.ed_orange:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: var(--white) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px var(--primary-glow);
}

/* Outlined primary (legacy: ed_green) */
.ed_green {
  background: transparent;
  color: var(--primary) !important;
  border-color: var(--primary);
}
.ed_green:hover {
  background: var(--primary);
  color: var(--white) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px var(--primary-glow);
}

/* =====================================================
   6. FORM ELEMENTS
   ===================================================== */
input, textarea, select {
  font-family: var(--font-body);
  font-size: 1.5rem;
  color: var(--text);
  border: 2px solid var(--border);
  border-radius: var(--r-sm) !important;
  background: var(--white);
  transition: border-color var(--t-base), box-shadow var(--t-base);
  outline: none;
  width: 100%;
  padding: 1.2rem 1.6rem;
  line-height: 1.4;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 4px var(--primary-glow) !important;
}
.form-control {
  height: 5rem;
  padding: 1.2rem 1.6rem;
  font-size: 1.5rem;
  border-radius: var(--r-sm) !important;
}

/* =====================================================
   7. SPACING UTILITIES
   ===================================================== */
.ed_toppadder10  { padding-top:1rem; }
.ed_toppadder20  { padding-top:2rem; }
.ed_toppadder30  { padding-top:3rem; }
.ed_toppadder40  { padding-top:4rem; }
.ed_toppadder50  { padding-top:5rem; }
.ed_toppadder60  { padding-top:6rem; }
.ed_toppadder70  { padding-top:7rem; }
.ed_toppadder80  { padding-top:8rem; }
.ed_toppadder90  { padding-top:9rem; }
.ed_toppadder100 { padding-top:10rem; }
.ed_bottompadder10  { padding-bottom:1rem; }
.ed_bottompadder20  { padding-bottom:2rem; }
.ed_bottompadder30  { padding-bottom:3rem; }
.ed_bottompadder40  { padding-bottom:4rem; }
.ed_bottompadder50  { padding-bottom:5rem; }
.ed_bottompadder60  { padding-bottom:6rem; }
.ed_bottompadder70  { padding-bottom:7rem; }
.ed_bottompadder80  { padding-bottom:8rem; }
.ed_bottompadder90  { padding-bottom:9rem; }
.ed_bottompadder100 { padding-bottom:10rem; }
.ed_transprentbg { background: var(--white); }
.ed_graysection  { background: var(--bg-alt); }

#educo_wrapper { width: 100%; position: relative; overflow: hidden; }

/* =====================================================
   8. TOPBAR
   ===================================================== */
.topbar {
  background: var(--primary-deeper);
  padding: .9rem 0;
  font-size: 1.35rem;
  position: relative;
  z-index: 200;
  border-bottom: 1px solid rgba(255,255,255,.05);
  border-top: 2px solid var(--green-700);
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.6rem;
  flex-wrap: wrap;
}
.topbar-left {
  display: flex;
  align-items: center;
  gap: 2.4rem;
  flex-wrap: wrap;
}
.topbar-left a {
  color: rgba(255,255,255,.78);
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-size: 1.3rem;
  font-weight: 500;
  letter-spacing: .01em;
  transition: color var(--t-fast);
}
.topbar-left a:hover { color: var(--white); }
.topbar-left a i { font-size: 1.4rem; color: var(--green-400); }
.topbar-right { display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap; }
.topbar-social { display: flex; align-items: center; gap: .6rem; }
.topbar-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.9rem;
  height: 2.9rem;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  color: rgba(255,255,255,.78) !important;
  font-size: 1.25rem;
  transition: all var(--t-base);
}
.topbar-social a:hover {
  background: var(--primary-light);
  color: var(--white) !important;
  transform: translateY(-2px);
}
.topbar-portal-btn {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .6rem 1.8rem;
  background: var(--primary-light);
  color: var(--white) !important;
  border-radius: var(--r-full);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: .02em;
  transition: all var(--t-base);
}
.topbar-portal-btn:hover {
  background: var(--white);
  color: var(--primary) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,.18);
}

/* =====================================================
   9. MAIN HEADER / NAVIGATION
   ===================================================== */
.main-header {
  background: var(--white);
  border-bottom: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 990;
  transition: box-shadow var(--t-base), padding var(--t-base);
}
.main-header.scrolled { box-shadow: var(--shadow-md); }

.nav-inner {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  padding: 1rem 0;
  position: relative;
}

/* Brand */
.brand {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  text-decoration: none !important;
}
.brand-logo {
  height: 5.6rem;
  width: auto;
  transition: transform var(--t-base);
}
.brand:hover .brand-logo { transform: scale(1.05); }
.brand:hover .brand-name { color: var(--green-700) !important; }
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.brand-name {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary) !important;
  white-space: nowrap;
  max-width: 22rem;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -.01em;
}
.brand-tagline {
  font-size: 1.3rem;
  color: var(--text-muted);
  font-style: italic;
  font-weight: 500;
  margin-top: .2rem;
}

/* Desktop Nav */
.desktop-nav { flex: 1 1 auto; display: flex; justify-content: center; }
.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: .1rem;
}
.nav-item { position: relative; }
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: 1rem 1.4rem;
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--gray-800) !important;
  white-space: nowrap;
  border-radius: var(--r-sm);
  transition: color var(--t-fast), background var(--t-fast);
  position: relative;
  letter-spacing: .005em;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 1.4rem;
  right: 1.4rem;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--t-base);
}
.nav-link:hover,
.nav-item.active > .nav-link { color: var(--primary) !important; background: var(--green-50); }
.nav-link:hover::after,
.nav-item.active > .nav-link::after { transform: scaleX(1); }
.nav-link .fa-angle-down { font-size: 1.15rem; transition: transform var(--t-base); }
.nav-item.has-dropdown:hover .nav-link .fa-angle-down { transform: rotate(180deg); }

/* Desktop Dropdown */
.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 24rem;
  background: var(--white);
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xl);
  padding: .8rem;
  list-style: none;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--t-base), transform var(--t-base), visibility var(--t-base);
  z-index: 9999;
}
/* Invisible bridge to keep dropdown open when cursor moves between link and menu */
.nav-item.has-dropdown::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 12px;
  background: transparent;
  z-index: 10000;
}
.nav-item.has-dropdown:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown li { display: block; }
.nav-dropdown li a {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding: 1.1rem 1.6rem;
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--text-secondary) !important;
  border-radius: var(--r-sm);
  transition: all var(--t-fast);
  white-space: nowrap;
}
.nav-dropdown li a i {
  width: 1.8rem;
  text-align: center;
  color: var(--primary);
  font-size: 1.35rem;
  flex-shrink: 0;
}
.nav-dropdown li a:hover {
  background: var(--green-50);
  color: var(--primary) !important;
  padding-left: 2.2rem;
}

/* Nav Actions */
.nav-actions {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 1.2rem;
}
.btn-admissions {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: 1rem 2.2rem;
  background: var(--primary);
  color: var(--white) !important;
  border-radius: var(--r-sm);
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 600;
  transition: all var(--t-base);
  white-space: nowrap;
  box-shadow: 0 4px 14px var(--primary-glow);
}
.btn-admissions:hover {
  background: var(--primary-dark);
  color: var(--white) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px var(--primary-glow);
}

/* Hamburger */
.hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: .5rem;
  width: 4.4rem;
  height: 4.4rem;
  background: var(--primary);
  border: none;
  border-radius: var(--r-sm);
  cursor: pointer;
  padding: 0;
  transition: background var(--t-base);
  flex-shrink: 0;
}
.hamburger-btn:hover { background: var(--primary-dark); }
.hamburger-btn .bar {
  display: block;
  width: 2rem;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform var(--t-base), opacity var(--t-base), width var(--t-base);
  transform-origin: center;
}
.hamburger-btn.active .bar:nth-child(1) { transform: rotate(45deg) translate(.55rem, .55rem); }
.hamburger-btn.active .bar:nth-child(2) { opacity: 0; width: 0; }
.hamburger-btn.active .bar:nth-child(3) { transform: rotate(-45deg) translate(.55rem, -.55rem); }

/* =====================================================
   10. MOBILE SIDEBAR
   ===================================================== */
.mobile-sidebar {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 34rem;
  max-width: 92vw;
  background: var(--white);
  z-index: 9999;
  transform: translateX(105%);
  transition: transform var(--t-slow);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-2xl);
  overflow: hidden;
}
.mobile-sidebar.open { transform: translateX(0); }

.sidebar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2rem 2.4rem;
  background: var(--primary);
  flex-shrink: 0;
}
.sidebar-brand img {
  height: 4.8rem;
  width: auto;
  filter: brightness(0) invert(1);
}
.sidebar-close-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.8rem;
  height: 3.8rem;
  background: rgba(255,255,255,.15);
  border: none;
  border-radius: 50%;
  color: var(--white) !important;
  font-size: 1.6rem;
  cursor: pointer;
  transition: background var(--t-fast);
  flex-shrink: 0;
}
.sidebar-close-btn:hover { background: rgba(255,255,255,.28); }

.sidebar-nav { flex: 1; overflow-y: auto; padding: .8rem 0; }
.sidebar-nav::-webkit-scrollbar { width: 4px; }
.sidebar-nav::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

.sidebar-list { list-style: none; margin: 0; padding: 0; }
.sidebar-list > li { border-bottom: 1px solid var(--border-light); }
.sidebar-list > li:last-child { border-bottom: none; }

.sidebar-list > li > a,
.sidebar-dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  width: 100%;
  padding: 1.6rem 2.4rem;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text) !important;
  background: none;
  border: none;
  border-left: 3px solid transparent;
  text-align: left;
  cursor: pointer;
  transition: all var(--t-fast);
}
.sidebar-list > li > a:hover,
.sidebar-dropdown-toggle:hover {
  background: var(--green-50);
  color: var(--primary) !important;
  border-left-color: var(--primary);
  padding-left: 2.8rem;
}
.sidebar-list > li > a i:first-child,
.sidebar-dropdown-toggle > i:first-child {
  width: 2rem;
  text-align: center;
  color: var(--primary);
  font-size: 1.45rem;
  flex-shrink: 0;
}
.sidebar-dropdown-toggle .toggle-icon {
  margin-left: auto;
  font-size: 1.3rem;
  transition: transform var(--t-base);
  color: var(--text-muted);
}
.sidebar-has-dropdown.open .toggle-icon { transform: rotate(180deg); }
.sidebar-has-dropdown.open .sidebar-dropdown-toggle {
  background: var(--green-50);
  color: var(--primary) !important;
  border-left-color: var(--primary);
}

.sidebar-dropdown {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 0;
  overflow: hidden;
  background: var(--gray-50);
  transition: max-height var(--t-slow);
}
.sidebar-dropdown li { border-bottom: 1px solid var(--border-light); }
.sidebar-dropdown li:last-child { border-bottom: none; }
.sidebar-dropdown li a {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding: 1.3rem 2.4rem 1.3rem 5.4rem;
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--text-secondary) !important;
  border-left: 3px solid transparent;
  transition: all var(--t-fast);
}
.sidebar-dropdown li a i {
  width: 1.8rem;
  text-align: center;
  color: var(--primary);
  font-size: 1.3rem;
  flex-shrink: 0;
}
.sidebar-dropdown li a:hover {
  color: var(--primary) !important;
  background: var(--green-100);
  border-left-color: var(--primary);
  padding-left: 6rem;
}

.sidebar-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 2.4rem;
  background: var(--gray-50);
  flex-shrink: 0;
}
.sidebar-footer p {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 1.4rem;
  color: var(--text-secondary);
  margin-bottom: .8rem;
}
.sidebar-footer p i { color: var(--primary); width: 1.6rem; flex-shrink: 0; }
.sidebar-footer p:last-of-type { margin-bottom: 1.4rem; }
.sidebar-social { display: flex; gap: .8rem; flex-wrap: wrap; }
.sidebar-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.8rem;
  height: 3.8rem;
  background: var(--primary);
  color: var(--white) !important;
  border-radius: 50%;
  font-size: 1.5rem;
  transition: all var(--t-base);
}
.sidebar-social a:hover { background: var(--primary-dark); transform: translateY(-2px); }

/* Mobile Overlay */
.mob-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: all var(--t-slow);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
.mob-overlay.active { opacity: 1; visibility: visible; }

/* =====================================================
   11. HERO SLIDER
   ===================================================== */
.ed_slider_form_section { float: left; width: 100%; position: relative; }
.ed_mainslider { position: relative; overflow: hidden; }
.ed_course_single_image_overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 1;
}

/* =====================================================
   12. WELCOME / INTRO CARD
   ===================================================== */
.ed_form_box {
  float: left;
  width: 100%;
  position: relative;
  z-index: 10;
  margin-top: -9rem;
  padding: 0 2.4rem;
}
.ed_search_form {
  background: var(--white);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-2xl);
  padding: 5rem 5rem 4.5rem;
  position: relative;
  overflow: hidden;
  border-top: 5px solid var(--primary);
  max-width: 1240px;
  margin: 0 auto;
}
.ed_search_form::before {
  content: '';
  position: absolute;
  top: -8rem;
  right: -8rem;
  width: 26rem;
  height: 26rem;
  background: var(--green-50);
  border-radius: 50%;
  pointer-events: none;
}
.ed_search_form::after {
  content: '';
  position: absolute;
  bottom: -6rem;
  left: -6rem;
  width: 18rem;
  height: 18rem;
  background: var(--amber-100);
  border-radius: 50%;
  opacity: .6;
  pointer-events: none;
}
.ed_search_form .row { align-items: center; position: relative; z-index: 1; }
.ed_search_form .col-lg-3 { text-align: center; }

@keyframes imgGlow {
  0%, 100% { box-shadow: 0 0 0 6px rgba(12,84,48,.12), 0 0 30px rgba(12,84,48,.2), 0 8px 40px var(--primary-glow); }
  50%      { box-shadow: 0 0 0 18px rgba(12,84,48,.06), 0 0 60px rgba(12,84,48,.32), 0 12px 60px rgba(12,84,48,.28); }
}
.ed_search_form .img-circle {
  width: 20rem;
  height: 20rem;
  border-radius: 50% !important;
  object-fit: cover;
  border: 5px solid var(--primary);
  padding: 0;
  display: block;
  margin: 0 auto;
  animation: imgGlow 3.5s ease-in-out infinite;
  transition: transform var(--t-slow);
}
.ed_search_form .img-circle:hover {
  transform: scale(1.07);
  animation-play-state: paused;
  box-shadow: 0 0 0 10px var(--primary-glow), 0 14px 55px rgba(12,84,48,.45) !important;
}

.welcome-content { padding-top: 1rem; }
.welcome-label {
  display: inline-block;
  padding: .6rem 1.6rem;
  background: var(--green-100);
  color: var(--primary);
  font-size: 1.3rem;
  font-weight: 700;
  border-radius: var(--r-full);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 1.6rem;
}
.welcome-content h2 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: 1.4rem;
  line-height: 1.2;
  letter-spacing: -.02em;
}
.welcome-content .welcome-desc {
  font-size: 1.6rem;
  line-height: 1.9;
  color: var(--text-secondary);
  margin-bottom: 1.4rem;
}
.welcome-content .welcome-brief {
  font-size: 1.5rem;
  line-height: 1.88;
  color: var(--gray-600);
  margin-bottom: 2.4rem;
}
.welcome-content .welcome-cta {
  padding: 1.2rem 3rem;
  font-size: 1.5rem;
  border-radius: var(--r-sm);
}

/* =====================================================
   13. SECTION HEADING
   ===================================================== */
.section-head { text-align: center; margin-bottom: 5.5rem; }
.section-head .label-tag {
  display: inline-block;
  padding: .6rem 1.8rem;
  background: var(--green-100);
  color: var(--primary);
  font-size: 1.3rem;
  font-weight: 700;
  border-radius: var(--r-full);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 1.4rem;
}
.section-head h2,
.section-head h3 {
  font-size: 3.4rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 1rem;
  letter-spacing: -.02em;
}
.section-head p {
  max-width: 60rem;
  margin: 0 auto;
  font-size: 1.6rem;
  color: var(--text-secondary);
}
.section-divider {
  width: 8rem;
  height: 1.4rem;
  background: transparent;
  margin: 1.6rem auto 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.section-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--primary);
  border-radius: 3px;
  transform: translateY(-50%);
  opacity: .35;
}
.section-divider::after {
  content: '';
  position: relative;
  width: 1rem;
  height: 1rem;
  background: var(--primary);
  border-radius: 50%;
  z-index: 1;
  box-shadow: 0 0 0 .4rem var(--bg);
}
.section-divider.section-divider-left { margin-left: 0; }
.section-divider.section-divider-no-shadow::after { box-shadow: none; }
.ed_transprentbg .section-divider::after { box-shadow: 0 0 0 .4rem var(--white); }
.ed_graysection .section-divider::after { box-shadow: 0 0 0 .4rem var(--bg-alt); }

/* Legacy heading (still used in some pages) */
.ed_heading_top { text-align: center; width: 100%; margin-bottom: 4rem; }
.ed_heading_top h3 {
  display: inline-block;
  margin: 0;
  padding-bottom: 2.2rem;
  font-size: 3rem;
  font-weight: 800;
  color: var(--text);
  position: relative;
}
.ed_heading_top h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 5rem;
  height: 3px;
  background: var(--primary);
  border-radius: 3px;
}

/* =====================================================
   14. MISSION CAROUSEL
   ===================================================== */
.ed_populer_areas_slider { padding: 0 1rem; }
.ed_item_img {
  width: 22rem;
  height: 22rem;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 2.8rem;
  box-shadow: var(--shadow-lg);
  border: 5px solid var(--green-100);
  transition: border-color var(--t-base), transform var(--t-base);
}
.ed_item_img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow);
}
.owl-carousel .owl-item:hover .ed_item_img { border-color: var(--primary); transform: scale(1.04); }
.owl-carousel .owl-item:hover .ed_item_img img { transform: scale(1.1); }
.ed_item_description { text-align: center; padding: 0 2rem; }
.ed_item_description h4 { font-size: 1.8rem; color: var(--text); margin-bottom: .8rem; font-weight: 700; }
.ed_item_description p { font-size: 1.5rem; color: var(--text-secondary); line-height: 1.85; margin: 0; }

.owl-theme .owl-nav { margin-top: 3rem; }
.owl-theme .owl-nav button {
  background: var(--white) !important;
  border-radius: 50% !important;
  box-shadow: var(--shadow-md) !important;
  color: var(--text) !important;
  font-size: 1.6rem !important;
  width: 4.8rem;
  height: 4.8rem;
  transition: all var(--t-base);
}
.owl-theme .owl-nav button:hover {
  background: var(--primary) !important;
  color: var(--white) !important;
  transform: scale(1.08);
}
.owl-theme .owl-dots .owl-dot span {
  width: 1rem; height: 1rem; background: var(--border); border-radius: 50%;
  transition: all var(--t-base); margin: 0 .4rem;
}
.owl-theme .owl-dots .owl-dot.active span {
  background: var(--primary); width: 3rem; border-radius: var(--r-full);
}

/* =====================================================
   15. VISION / MISSION CARDS
   ===================================================== */
.skill_section {
  background: var(--white);
  padding: 4rem;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-light);
  transition: all var(--t-slow);
  position: relative;
  overflow: hidden;
  height: 100%;
  margin-bottom: 3rem;
}
.skill_section::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px; height: 0;
  background: var(--primary);
  transition: height var(--t-slow);
}
.skill_section:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); border-color: transparent; }
.skill_section:hover::before { height: 100%; }
.skill_section h4 { font-size: 2.2rem; font-weight: 700; margin-bottom: 2rem; color: var(--text); }
.skill_section h4 a { color: inherit; }
.skill_section h4 a:hover { color: var(--primary); }
.skill_section h4 a i { margin-left: .6rem; color: var(--primary); font-size: 1.8rem; }
.skill_section h5 { font-size: 1.6rem; font-weight: 600; color: var(--primary); margin-bottom: 1.2rem; }
.skill_section p { font-size: 1.5rem; color: var(--text-secondary); line-height: 1.85; float: left; width: 80%; position: relative; z-index: 1; }
.skill_section span { float: left; width: 20%; text-align: center; position: relative; z-index: 1; }
.skill_section span i { font-size: 4.8rem; color: var(--primary); opacity: .8; transition: all var(--t-spring); }
.skill_section:hover span i { color: var(--accent); transform: rotate(12deg) scale(1.15); opacity: 1; }
.skill_section ul { list-style: none; padding: 0; position: relative; z-index: 1; margin: 0; }
.skill_section ul li {
  padding: 1rem 0 1rem 3.4rem;
  position: relative;
  font-size: 1.5rem;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-light);
  line-height: 1.7;
}
.skill_section ul li:last-child { border-bottom: none; }
.skill_section ul li::before {
  content: '\f00c';
  font-family: 'FontAwesome';
  position: absolute;
  left: 0; top: 1rem;
  width: 2.2rem; height: 2.2rem;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

/* =====================================================
   16. PARALLAX / VIDEO SECTION
   ===================================================== */
.ed_parallax_section {
  width: 100%;
  padding: 10rem 0;
  background: url(../images/content/section_3_bg.jpg) center center / cover fixed;
  position: relative;
  color: var(--white);
}
.ed_parallax_section > .ed_img_overlay {
  position: absolute; inset: 0;
  background: var(--primary-deeper);
  opacity: .92;
}
.ed_parallax_section .container { position: relative; z-index: 1; }

.ed_video_section {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}
.ed_video_section .ed_video { position: relative; cursor: pointer; }
.ed_video_section .ed_video img { width: 100%; display: block; }
.ed_video_section .ed_video .ed_img_overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.32);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--t-base);
}
.ed_video_section .ed_video .ed_img_overlay a i {
  width: 8rem; height: 8rem;
  display: flex; align-items: center; justify-content: center;
  background: var(--white);
  color: var(--primary);
  border-radius: 50%;
  font-size: 2.8rem;
  padding-left: .5rem;
  box-shadow: 0 0 0 1.2rem rgba(255,255,255,.2);
  transition: all var(--t-spring);
}
.ed_video_section .ed_video .ed_img_overlay:hover { background: rgba(0,0,0,.45); }
.ed_video_section .ed_video .ed_img_overlay a i:hover {
  transform: scale(1.12);
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 0 0 1.4rem rgba(255,255,255,.15);
}
.ed_video_section_discription {
  padding-left: 5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}
.ed_video_section_discription .section-head { text-align: left; margin-bottom: 2.4rem; }
.ed_video_section_discription .section-head h2,
.ed_video_section_discription .section-head h3 {
  color: var(--white) !important;
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 0;
}
.ed_video_section_discription .section-head .label-tag {
  background: rgba(255,255,255,.16);
  color: var(--white);
  border: 1px solid rgba(255,255,255,.25);
  margin-bottom: 1.2rem;
}
.ed_video_section_discription .section-divider::before { background: var(--white); opacity: .5; }
.ed_video_section_discription .section-divider::after { box-shadow: 0 0 0 .4rem var(--primary-deeper); background: var(--white); }

/* Core values list on dark bg */
.values-list { list-style: none; padding: 0; margin: 0 0 3rem; }
.values-list li {
  padding: 1rem 0;
  font-size: 1.6rem;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  color: rgba(255,255,255,.92);
  font-weight: 500;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.values-list li:last-child { border-bottom: none; }
.values-list li i { font-size: 1.8rem; color: var(--green-300); flex-shrink: 0; }

/* =====================================================
   17. COUNTER / STATS
   ===================================================== */
.ed_counter_wrapper {
  background: transparent;
  border-radius: var(--r-lg);
  padding: 0;
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
  justify-content: center;
  overflow: visible;
  width: 100%;
}
.ed_counter {
  flex: 1;
  min-width: 26rem;
  max-width: 36rem;
  text-align: center;
  padding: 4rem 2.8rem 3.6rem;
  position: relative;
  background: var(--bg-dark);
  border-radius: var(--r-2xl);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 32px rgba(0,0,0,.15), inset 0 1px 0 rgba(255,255,255,.06);
  transition: all var(--t-slow);
  border: 1px solid rgba(255,255,255,.06);
  overflow: hidden;
}
.ed_counter::before {
  content: '';
  position: absolute;
  top: -4rem;
  right: -4rem;
  width: 16rem;
  height: 16rem;
  border-radius: 50%;
  background: var(--primary-light);
  opacity: .14;
  pointer-events: none;
}
.ed_counter::after {
  content: '';
  position: absolute;
  bottom: -5rem;
  left: -5rem;
  width: 14rem;
  height: 14rem;
  border-radius: 50%;
  background: var(--green-300);
  opacity: .08;
  pointer-events: none;
}
.ed_counter:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 48px rgba(0,0,0,.25), inset 0 1px 0 rgba(255,255,255,.1);
  border-color: rgba(63,186,126,.25);
}
.ed_counter i.fa {
  width: 7.2rem;
  height: 7.2rem;
  display: flex !important;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.08);
  border-radius: 50%;
  color: var(--green-300) !important;
  font-size: 2.8rem !important;
  margin-bottom: 1.8rem;
  transition: all var(--t-spring);
  border: 2px solid rgba(255,255,255,.08);
  position: relative;
  z-index: 1;
}
.ed_counter:hover i.fa {
  background: rgba(63,186,126,.22);
  border-color: rgba(110,231,183,.35);
  transform: scale(1.1) rotate(-8deg);
}
.ed_counter h2 {
  font-family: var(--font-heading);
  font-size: 5rem;
  font-weight: 900;
  color: var(--white);
  margin-bottom: .4rem;
  line-height: 1;
  text-shadow: 0 2px 12px rgba(0,0,0,.2);
  position: relative;
  z-index: 1;
}
.ed_counter h4 {
  font-size: 1.7rem;
  font-weight: 700;
  color: rgba(255,255,255,.92);
  margin-bottom: 1rem;
  letter-spacing: .02em;
  position: relative;
  z-index: 1;
}
.ed_counter p {
  font-size: 1.4rem;
  color: rgba(255,255,255,.72);
  max-width: 26rem;
  margin: 0 auto;
  line-height: 1.8;
  position: relative;
  z-index: 1;
}

/* =====================================================
   18. WHY CHOOSE US CARDS
   ===================================================== */
.why-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
}
.why-card {
  background: var(--white);
  border-radius: var(--r-lg);
  padding: 3.5rem 3rem;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-light);
  transition: all var(--t-slow);
  position: relative;
  overflow: hidden;
}
.why-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 4px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-slow);
}
.why-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: transparent;
}
.why-card:hover::after { transform: scaleX(1); }
.why-card-icon {
  width: 7rem; height: 7rem;
  display: flex; align-items: center; justify-content: center;
  background: var(--green-100);
  border-radius: var(--r-md);
  margin-bottom: 2.4rem;
  transition: all var(--t-spring);
}
.why-card:hover .why-card-icon { background: var(--primary); transform: rotate(5deg) scale(1.1); }
.why-card-icon i { font-size: 3rem; color: var(--primary); transition: color var(--t-base); }
.why-card:hover .why-card-icon i { color: var(--white); }
.why-card h4 { font-size: 2rem; font-weight: 700; margin-bottom: 1.2rem; color: var(--text); }
.why-card p { font-size: 1.5rem; color: var(--text-secondary); line-height: 1.85; margin: 0; }

/* =====================================================
   19. NEWSLETTER
   ===================================================== */
.ed_newsletter_section {
  width: 100%;
  padding: 8rem 0;
  background: url(../images/content/section_6_bg.jpg) center center / cover fixed;
  position: relative;
  color: var(--white);
}
.ed_newsletter_section > .ed_img_overlay {
  position: absolute; inset: 0;
  background: var(--primary-deeper);
  opacity: .94;
}
.ed_newsletter_section .container { position: relative; z-index: 1; }
.ed_newsletter_section_heading .label-tag {
  display: inline-block;
  padding: .6rem 1.8rem;
  background: rgba(255,255,255,.16);
  color: var(--white);
  border: 1px solid rgba(255,255,255,.25);
  font-size: 1.3rem;
  font-weight: 700;
  border-radius: var(--r-full);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 1.2rem;
}
.ed_newsletter_section_heading h4 {
  color: var(--white);
  font-size: 2.8rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.3;
}
.ed_newsletter_section_form { position: relative; z-index: 1; }
.ed_newsletter_section_form .newsletter-form {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.ed_newsletter_section_form .form-control {
  background: rgba(255,255,255,.1);
  border: 2px solid rgba(255,255,255,.22) !important;
  color: var(--white);
  height: 5.4rem;
  flex: 1;
  min-width: 0;
  padding: 1.2rem 1.8rem;
}
.ed_newsletter_section_form .form-control::placeholder { color: rgba(255,255,255,.55); }
.ed_newsletter_section_form .form-control:focus {
  border-color: var(--white) !important;
  box-shadow: 0 0 0 4px rgba(255,255,255,.12) !important;
}
.ed_newsletter_section_form .ed_green {
  background: var(--primary-light);
  color: var(--white) !important;
  border-color: var(--primary-light);
  height: 5.4rem;
  padding: 0 2.8rem;
  white-space: nowrap;
  font-size: 1.45rem;
}
.ed_newsletter_section_form .ed_green:hover {
  background: var(--white);
  color: var(--primary) !important;
  border-color: var(--white);
  transform: translateY(-2px);
}

/* =====================================================
   20. FOOTER  (Modern, fully responsive)
   ===================================================== */
.ed_footer_wrapper { width: 100%; }

/* ---------- Newsletter strip ---------- */
.ed_footer_newsletter {
  background: var(--primary);
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
  color: var(--white);
}
.ed_footer_newsletter::before {
  content: '';
  position: absolute;
  top: -8rem; right: -6rem;
  width: 26rem; height: 26rem;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
  pointer-events: none;
}
.ed_footer_newsletter::after {
  content: '';
  position: absolute;
  bottom: -10rem; left: -8rem;
  width: 30rem; height: 30rem;
  border-radius: 50%;
  background: rgba(255,255,255,.04);
  pointer-events: none;
}
.ed_footer_newsletter .container { position: relative; z-index: 1; }
.ed_fnl-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4rem;
  flex-wrap: wrap;
}
.ed_fnl-text { flex: 1 1 30rem; }
.ed_fnl-text h4 {
  color: var(--white);
  font-size: 2.4rem;
  font-weight: 700;
  margin: 0 0 1rem;
  letter-spacing: -.01em;
  line-height: 1.3;
}
.ed_fnl-text p {
  color: rgba(255,255,255,.82);
  font-size: 1.5rem;
  margin: 0;
  line-height: 1.7;
}
.ed_fnl-form {
  flex: 1 1 32rem;
  display: flex;
  gap: 1rem;
  background: var(--white);
  padding: .6rem;
  border-radius: var(--r-full);
  box-shadow: 0 12px 32px rgba(0,0,0,.18);
  max-width: 50rem;
}
.ed_fnl-form input {
  flex: 1;
  min-width: 0;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  font-size: 1.5rem;
  padding: 1.2rem 1.8rem !important;
  color: var(--text);
  font-family: var(--font-body);
}
.ed_fnl-form input::placeholder { color: var(--text-muted); }
.ed_fnl-form input:focus { outline: none; }
.ed_fnl-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .8rem;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: var(--r-full);
  padding: 1.2rem 2.6rem;
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--t-base);
  flex-shrink: 0;
}
.ed_fnl-form button:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(0,0,0,.25);
}

/* ---------- Main footer top ---------- */
.ed_footer_top {
  background: var(--bg-dark);
  padding: 7rem 0 5rem;
  position: relative;
  color: var(--white);
  overflow: hidden;
}
.ed_footer_top::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--primary);
}
.ed_footer_top::after {
  content: '';
  position: absolute;
  top: 4px; left: 0;
  width: 12rem; height: 2px;
  background: var(--green-400);
}
.ed_footer_top .ed_ft-blob {
  position: absolute;
  top: -10rem; right: -8rem;
  width: 28rem; height: 28rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(63,186,126,.12) 0%, transparent 70%);
  pointer-events: none;
}

/* 4-column grid */
.ed_footer_grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.1fr 1.3fr;
  gap: 4rem;
  position: relative;
  z-index: 1;
}

/* Text Widget (per-column) */
.text-widget { width: 100%; }
.text-widget .footer-logo-img {
  max-height: 6.4rem;
  width: auto;
  margin-bottom: 2rem;
  filter: brightness(0) invert(1);
  opacity: .95;
  transition: all var(--t-base);
}
.text-widget a:hover .footer-logo-img {
  opacity: 1;
  filter: brightness(0) invert(1) drop-shadow(0 0 8px rgba(63,186,126,.55));
}
.text-widget .widget-desc {
  color: rgba(255,255,255,.7);
  font-size: 1.5rem;
  line-height: 1.9;
  margin-bottom: 2.4rem;
}

.text-widget h4.widget-title {
  color: var(--white);
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0 0 2.4rem;
  padding-bottom: 1.2rem;
  position: relative;
  letter-spacing: .01em;
  border-bottom: 2px solid rgba(255,255,255,.08);
}
.text-widget h4.widget-title::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 4.5rem; height: 2px;
  background: var(--green-400);
  border-radius: 2px;
}

/* Quick Links */
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links li {
  margin-bottom: 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.footer-links li:last-child { border-bottom: none; }
.footer-links li a {
  color: rgba(255,255,255,.72) !important;
  font-size: 1.45rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .9rem 0;
  transition: all var(--t-base);
  font-weight: 500;
}
.footer-links li a i {
  color: var(--green-400);
  font-size: 1.2rem;
  transition: transform var(--t-base);
  flex-shrink: 0;
}
.footer-links li a:hover {
  color: var(--white) !important;
  padding-left: .6rem;
}
.footer-links li a:hover i { transform: translateX(4px); }

/* Contact list with icon box */
.footer-contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
  margin-bottom: 1.6rem;
  font-size: 1.45rem;
  line-height: 1.65;
  color: rgba(255,255,255,.72);
}
.footer-contact-list li:last-child { margin-bottom: 0; }
.footer-contact-list .fc-icon {
  flex-shrink: 0;
  width: 3.6rem; height: 3.6rem;
  border-radius: var(--r-sm);
  background: rgba(63,186,126,.14);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--green-400);
  font-size: 1.4rem;
  transition: all var(--t-base);
}
.footer-contact-list li:hover .fc-icon {
  background: var(--primary-light);
  color: var(--white);
  transform: scale(1.08);
}
.footer-contact-list a {
  color: rgba(255,255,255,.82) !important;
  transition: color var(--t-fast);
  word-break: break-word;
}
.footer-contact-list a:hover { color: var(--white) !important; }

/* About / Prospectus column */
.text-widget .widget-brief {
  color: rgba(255,255,255,.7);
  font-size: 1.45rem;
  line-height: 1.85;
  margin-bottom: 2.2rem;
}
.ed_footer_prospectus {
  display: inline-flex !important;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 2.4rem;
  font-size: 1.4rem;
  border-radius: var(--r-full);
  margin-top: 0;
  font-weight: 600;
  box-shadow: 0 6px 18px rgba(63,186,126,.3);
  transition: all var(--t-base);
}
.ed_footer_prospectus:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(63,186,126,.45);
}
.ed_footer_prospectus i { font-size: 1.3rem; }

/* Social row */
.ed_sociallink {
  margin-top: 1rem;
}
.ed_sociallink ul {
  display: flex;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}
.ed_sociallink ul li a {
  width: 4.2rem; height: 4.2rem;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.07);
  color: rgba(255,255,255,.85) !important;
  border-radius: 50%;
  font-size: 1.55rem;
  border: 1px solid rgba(255,255,255,.08);
  transition: all var(--t-base);
  text-decoration: none;
}
.ed_sociallink ul li a:hover {
  background: var(--primary-light);
  color: var(--white) !important;
  border-color: var(--primary-light);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(63,186,126,.35);
}

/* ---------- Footer Bottom ---------- */
.ed_footer_bottom {
  background: var(--primary-deeper);
  padding: 2.2rem 0;
  border-top: 1px solid rgba(255,255,255,.05);
  position: relative;
}
.ed_footer_bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.4rem;
}
.ed_copy_right {
  flex: 1 1 auto;
  min-width: 0;
}
.ed_copy_right p { color: rgba(255,255,255,.6); font-size: 1.4rem; margin: 0; line-height: 1.6; }
.ed_copy_right p a { color: rgba(255,255,255,.9) !important; font-weight: 600; transition: color var(--t-base); }
.ed_copy_right p a:hover { color: var(--white) !important; }

.ed_footer_menu {
  flex-shrink: 0;
}
.ed_footer_menu ul {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .4rem 2.4rem;
  align-items: center;
}
.ed_footer_menu ul li a {
  font-size: 1.4rem;
  color: rgba(255,255,255,.6) !important;
  transition: color var(--t-base);
  font-weight: 500;
  text-decoration: none;
  position: relative;
}
.ed_footer_menu ul li:not(:last-child) a::after {
  content: '';
  position: absolute;
  right: -1.2rem;
  top: 50%;
  transform: translateY(-50%);
  width: 3px; height: 3px;
  background: rgba(255,255,255,.25);
  border-radius: 50%;
}
.ed_footer_menu ul li a:hover { color: var(--white) !important; }

/* =====================================================
   21. (removed — legacy .ed_pagetitle migrated to .brd-hero)
   ===================================================== */

/* =====================================================
   22. MODALS
   ===================================================== */
.modal-content {
  border-radius: var(--r-lg);
  border: none;
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  font-size: 1.5rem;
}
.modal-header {
  background: var(--primary);
  color: var(--white);
  padding: 2.2rem 2.8rem;
  border: none;
}
.modal-title { color: var(--white); font-size: 1.7rem; font-weight: 700; }
.modal-body { padding: 2.8rem; font-size: 1.5rem; }
.modal-footer { padding: 1.8rem 2.8rem; border-top: 1px solid var(--border); }
.modal-notification-title { color: #b91c1c; font-size: 1.7rem; font-weight: 700; text-align: center; }
.modal-newsletter-heading {
  color: var(--primary);
  font-size: 2.2rem;
  text-align: center;
  font-weight: 800;
}

/* =====================================================
   23. CARDS, TABLES, MISC
   ===================================================== */
.ed_mostrecomeded_course {
  background: var(--white); padding: 2.5rem;
  border-radius: var(--r-lg); box-shadow: var(--shadow-card);
  border: 1px solid var(--border-light); transition: all var(--t-slow); margin-bottom: 2.5rem;
}
.ed_mostrecomeded_course:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); border-color: transparent; }
.ed_team_member {
  background: var(--white); padding: 2.5rem; border-radius: var(--r-lg);
  box-shadow: var(--shadow-card); border: 1px solid var(--border-light);
  transition: all var(--t-slow); margin-bottom: 3rem; text-align: center;
}
.ed_team_member:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); border-color: transparent; }
.ed_chart_ratio { text-align: center; padding: 2rem; }
.ed_chart_ratio h4 { font-size: 1.8rem; font-weight: 700; margin-top: 1.6rem; }
.ed_chart_ratio i {
  width: 10rem; height: 10rem; line-height: 10rem; text-align: center;
  background: var(--primary); color: var(--white); border-radius: 50%;
  font-size: 3.8rem; box-shadow: 0 4px 16px var(--primary-glow);
  transition: all var(--t-spring); display: inline-block;
}
.ed_chart_ratio:hover i {
  background: var(--white); color: var(--primary); border: 2px solid var(--primary);
  transform: rotate(12deg) scale(1.08);
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  margin: 2rem 0;
  font-size: 1.4rem;
}
table thead { background: var(--primary); color: var(--white); }
table thead th { padding: 1.4rem 2rem; font-weight: 700; font-size: 1.4rem; text-align: left; }
table tbody td { padding: 1.2rem 2rem; border-bottom: 1px solid var(--border); font-size: 1.4rem; }
table tbody tr:last-child td { border-bottom: none; }
table tbody tr:hover { background: var(--green-50); }

.error1  {
  padding: 1.6rem 2rem; border-radius: var(--r-sm);
  color: #721c24; background: #f8d7da; border: 1px solid #f5c6cb;
  font-size: 1.45rem; margin-bottom: 2rem;
}
.success1 {
  padding: 1.6rem 2rem; border-radius: var(--r-sm);
  color: var(--green-ink); background: var(--green-tint-300); border: 1px solid var(--green-tint-400);
  font-size: 1.45rem; margin-bottom: 2rem;
}

.embed-responsive { position: relative; display: block; height: 0; padding: 0; overflow: hidden; }
.embed-responsive-16by9 { padding-bottom: 56.25%; }
.embed-responsive .embed-responsive-item,
.embed-responsive iframe {
  position: absolute; top:0; bottom:0; left:0; width:100%; height:100%;
  border:0; border-radius: var(--r-md);
}

.input-button, .input-buttonP { visibility: hidden; width: 1px; }
.input-label, .input-labelP {
  background: var(--secondary, #1e4a6b); color: var(--white);
  padding: .9rem 1.8rem; border-radius: var(--r-sm);
  font-size: 1.35rem; font-weight: 600; float: left;
  cursor: pointer; transition: all var(--t-base);
}
.input-label:hover, .input-labelP:hover {
  background: var(--primary); transform: translateY(-2px);
}
blockquote {
  border-left: 4px solid var(--primary); padding: 2rem 2.5rem; margin: 2rem 0;
  background: var(--green-50); border-radius: 0 var(--r-sm) var(--r-sm) 0;
  font-style: italic; color: var(--text-secondary);
}
.star-rating { position: relative; height: 1em; line-height: 1em; font-size: 1.4rem; text-align: center; margin: 0 auto 1rem; }
.star-rating::before { content: "\53\53\53\53\53"; color: var(--border); }
.star-rating span::before { content: "\53\53\53\53\53"; position: absolute; top: 0; left: 0; color: var(--primary); overflow: hidden; }

/* =====================================================
   24. BACK TO TOP
   ===================================================== */
.back-to-top {
  position: fixed;
  bottom: 3rem; right: 3rem;
  width: 5rem; height: 5rem;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 50%;
  box-shadow: 0 4px 16px var(--primary-glow);
  font-size: 1.8rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transform: translateY(1.2rem);
  transition: all var(--t-base);
  z-index: 997;
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px var(--primary-glow);
}

/* =====================================================
   25. ACCESSIBILITY
   ===================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* =====================================================
   26. RESPONSIVE BREAKPOINTS
   ===================================================== */
@media (max-width: 1100px) {
  .nav-link { padding: 1rem 1.1rem; font-size: 1.35rem; }
  .brand-name { max-width: 18rem; font-size: 1.4rem; }
  .btn-admissions { padding: .9rem 1.8rem; font-size: 1.35rem; }
}

@media (max-width: 991px) {
  .hamburger-btn { display: flex; }
  .desktop-nav { display: none !important; }
  .btn-admissions { display: none; }
  .brand-text { display: none; }
  .brand-logo { height: 5.2rem; }
  .nav-inner { padding: 1rem 0; }
  .main-header .container { padding-right: 0; }
  .nav-actions { margin-left: auto; margin-right: 0; padding-right: 0; }

  /* Topbar condensed */
  .topbar-left { display: none; }
  .topbar-inner { justify-content: flex-end; }

  /* Welcome intro */
  .ed_form_box { margin-top: -6rem; padding: 0 2rem; }
  .ed_search_form { padding: 3.5rem 3rem; }
  .ed_search_form .row { display: flex; flex-direction: column; align-items: center; }
  .ed_search_form .img-circle { width: 17rem; height: 17rem; margin-bottom: 2.5rem; }
  .welcome-content { text-align: center; padding-top: 0; }
  .welcome-label { display: inline-block; }
  .welcome-content h2 { font-size: 2.6rem; }

  /* Counter wrap */
  .ed_counter_wrapper { gap: 2rem; justify-content: center; }
  .ed_counter { flex: 0 0 calc(50% - 1rem); min-width: auto; max-width: none; padding: 3.2rem 2.4rem; }

  /* Video */
  .ed_video_section_discription { padding-left: 0; margin-top: 4rem; }

  /* Skill */
  .skill_section p, .skill_section span { width: 100%; float: none; }
  .skill_section span { text-align: left; margin-top: 1.5rem; }

  /* Footer */
  .ed_footer_menu ul { float: none; }

  /* Why cards */
  .why-cards-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem; }

  /* Page title */
  .brd-hero { padding: 7rem 0; }

  /* Section heads */
  .section-head h2, .section-head h3 { font-size: 2.8rem; }
 
  h1 { font-size: 3.6rem; }
  h2 { font-size: 3rem; }
  h3 { font-size: 2.4rem; }

  /* Footer tablet - 2 column grid */
  .ed_footer_grid { grid-template-columns: 1fr 1fr; gap: 3rem; }
  .ed_footer_newsletter { padding: 4.5rem 0; }
  .ed_fnl-text h4 { font-size: 2.2rem; }
}

@media (max-width: 767px) {
  h1 { font-size: 2.8rem; }
  h2 { font-size: 2.4rem; }
  h3 { font-size: 2rem; }
  h4 { font-size: 1.8rem; }

  .container, .container-fluid { padding-left: 1.6rem; padding-right: 1.6rem; }
  .topbar { padding: .7rem 0; }
  .topbar-social { display: none; }

  .main-header .container { padding-right: 0; }
  .nav-inner { padding-right: 0; }
  .nav-actions { margin-left: auto; margin-right: 0; }

  .ed_form_box { margin-top: -4rem; padding: 0 1.2rem; }
  .ed_search_form { padding: 2.5rem 2rem; border-radius: var(--r-lg); }
  .ed_search_form .img-circle { width: 14rem; height: 14rem; margin-bottom: 2rem; }
  .welcome-content h2 { font-size: 2.2rem; }
  .welcome-content .welcome-desc { font-size: 1.5rem; }
  .welcome-content .welcome-brief { font-size: 1.4rem; }
  .welcome-content .welcome-cta { padding: 1.1rem 2.2rem; font-size: 1.4rem; width: 100%; }

  /* Section heads */
  .section-head { margin-bottom: 4rem; }
  .section-head h2, .section-head h3 { font-size: 2.4rem; }
  .ed_heading_top h3 { font-size: 2rem; }

  /* Carousel items */
  .ed_item_img { width: 18rem; height: 18rem; }

  /* Skill cards */
  .skill_section { padding: 2.8rem 2.4rem; }
  .skill_section p, .skill_section span { width: 100%; float: none; }
  .skill_section span { text-align: left; }
  .skill_section h4 { font-size: 1.9rem; }

  /* Parallax no fixed on mobile */
  .ed_parallax_section { padding: 6rem 0; background-attachment: scroll; }
  .ed_video_section_discription .section-head h2,
  .ed_video_section_discription .section-head h3 { font-size: 2.4rem; }

  /* Counter single col */
  .ed_counter_wrapper { gap: 2rem; }
  .ed_counter { flex: 0 0 100%; min-width: auto; max-width: none; padding: 3rem 2rem; }
  .ed_counter h2 { font-size: 4rem; }
  .ed_counter h4 { font-size: 1.5rem; }
  .ed_counter p { font-size: 1.3rem; }
  .ed_counter i.fa { width: 5.6rem; height: 5.6rem; font-size: 2.2rem !important; }

  /* Why cards single col */
  .why-cards-grid { grid-template-columns: 1fr; }

  /* Newsletter */
  .ed_newsletter_section { padding: 5rem 0; background-attachment: scroll; }
  .ed_newsletter_section_heading { text-align: center; margin-bottom: 2.4rem; }
  .ed_newsletter_section_heading h4 { font-size: 2.2rem; text-align: center; }
  .ed_newsletter_section_form .form-control { margin-bottom: 0; }
  .ed_newsletter_section_form .ed_green { width: 100%; }
  .ed_newsletter_section_form .newsletter-form { flex-direction: column; }

  /* Footer */
  .ed_footer_newsletter { padding: 4rem 0; }
  .ed_fnl-grid { flex-direction: column; align-items: stretch; gap: 2.4rem; }
  .ed_fnl-text { text-align: center; }
  .ed_fnl-text h4 { font-size: 2rem; }
  .ed_fnl-form { max-width: 100%; }
  .ed_footer_top { padding: 5rem 0 3rem; }
  .ed_footer_top::after { width: 6rem; }
  .ed_footer_grid { grid-template-columns: 1fr 1fr; gap: 3rem; }
  .text-widget { text-align: left; }
  .text-widget h4.widget-title::after { left: 0; transform: none; }
  .ed_sociallink ul { justify-content: flex-start; }
  .ed_footer_bottom-inner { flex-direction: column; text-align: center; }
  .ed_copy_right { text-align: center; }
  .ed_footer_menu ul { justify-content: center; }
  .ed_footer_menu ul li:not(:last-child) a::after { display: none; }

  /* Page title */
  .brd-hero { padding: 6rem 0; }

  /* Back to top */
  .back-to-top { width: 4.5rem; height: 4.5rem; font-size: 1.6rem; bottom: 2rem; right: 2rem; }

  /* Sidebar full width on mobile */
  .mobile-sidebar { width: 100%; max-width: 100vw; }
}

@media (max-width: 480px) {
  h1 { font-size: 2.4rem; }
  h2 { font-size: 2.2rem; }
  .ed_item_img { width: 16rem; height: 16rem; }
  .brand-logo { height: 4.6rem; }
  .hamburger-btn { width: 4rem; height: 4rem; }
  .ed_search_form .img-circle { width: 12rem; height: 12rem; }
  .welcome-content h2 { font-size: 1.9rem; }
  .section-head h2, .section-head h3 { font-size: 2rem; }
  .ed_counter h2 { font-size: 3.4rem; }
  .ed_btn { padding: 1.2rem 2.2rem; font-size: 1.35rem; }

  /* Footer single col on very small screens */
  .ed_footer_grid { grid-template-columns: 1fr; gap: 3rem; }
  .text-widget { text-align: center; }
  .text-widget h4.widget-title::after { left: 50%; transform: translateX(-50%); }
  .ed_sociallink ul { justify-content: center; }
  .footer-contact-list li { justify-content: center; text-align: left; }
  .ed_fnl-form { flex-direction: column; padding: 1rem; border-radius: var(--r-md); }
  .ed_fnl-form input { padding: 1.1rem 1.4rem !important; text-align: center; }
  .ed_fnl-form button { width: 100%; }
  .ed_footer_prospectus { width: 100%; justify-content: center; }
}

/* =====================================================
   27. UNIFIED BREADCRUMB HERO (.brd-hero)
   ===================================================== */
.brd-hero {
  position: relative;
  padding: 8rem 0 4rem;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--green-900) 100%);
  overflow: hidden;
  color: var(--white);
}
.brd-hero::before {
  content: '';
  position: absolute;
  top: -12rem; right: -8rem;
  width: 40rem; height: 40rem;
  border-radius: 50%;
  background: rgba(255,255,255,.035);
  pointer-events: none;
}
.brd-hero::after {
  content: '';
  position: absolute;
  bottom: -10rem; left: -6rem;
  width: 26rem; height: 26rem;
  border-radius: 50%;
  background: rgba(255,255,255,.025);
  pointer-events: none;
}
.brd-hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
  position: relative;
  z-index: 1;
}
.brd-hero-text h1 {
  color: var(--white);
  font-size: 3.6rem;
  font-weight: 800;
  margin: 0;
  line-height: 1.15;
  letter-spacing: -.02em;
}
.brd-hero-sub {
  color: rgba(255,255,255,.72);
  font-size: 1.5rem;
  margin: .6rem 0 0;
  font-weight: 500;
}
.brd-hero-sub i { color: var(--green-300); margin-right: .6rem; }
.brd-hero-crumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .6rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.brd-hero-crumbs li {
  font-size: 1.35rem;
  color: rgba(255,255,255,.65);
  line-height: 1.4;
}
.brd-hero-crumbs li:not(:last-child)::after {
  content: '/';
  color: rgba(255,255,255,.3);
  margin-left: .6rem;
}
.brd-hero-crumbs a {
  color: rgba(255,255,255,.78);
  text-decoration: none;
  transition: color .2s;
}
.brd-hero-crumbs a:hover { color: var(--gold); }
.brd-hero-crumbs li:last-child {
  color: var(--gold);
  font-weight: 700;
}

@media (max-width: 767px) {
  .brd-hero { padding: 5rem 0 3rem; }
  .brd-hero-text h1 { font-size: 2.8rem; }
  .brd-hero-inner { flex-direction: column; align-items: flex-start; }
}

/* =====================================================
   27c. SELECT DROPDOWNS
   ===================================================== */
select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236c737a' d='M6 8 0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.2rem center;
  background-size: 1.2rem;
  padding-right: 3.6rem !important;
  cursor: pointer;
}
select.form-control,
select.form-control-lg,
select.tpl-form-control,
select.filter-control,
select.bd-control,
select.ms-sel,
select.hub-select,
select.tch-agq-form-control,
select.tch-as-form-control,
select.tc-form-control,
select.pq-sel,
select.sd-sel,
select.filter-select,
select.form-input {
  height: auto;
  min-height: 4.6rem;
  line-height: 1.5;
}

/* =====================================================
   27d. AUTOCOMPLETE / SEARCH SUGGESTIONS
   ===================================================== */
.autocomplete-suggestions,
#search_ac_list {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  max-height: 32rem;
  overflow-y: auto;
  margin-top: .4rem;
}
.autocomplete-suggestions .autocomplete-suggestion,
#search_ac_list > div {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1.2rem 1.6rem;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
  transition: background .15s;
}
.autocomplete-suggestions .autocomplete-suggestion:last-child,
#search_ac_list > div:last-child {
  border-bottom: none;
}
.autocomplete-suggestions .autocomplete-suggestion:hover,
#search_ac_list > div:hover {
  background: var(--gray-50);
}
.suggestion-image,
.autocomplete-suggestions img {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.no-image {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--gray-400);
  font-size: 1.8rem;
}
.suggestion-content {
  flex: 1;
  min-width: 0;
}
.suggestion-name {
  font-weight: 600;
  color: var(--gray-900);
  font-size: 1.4rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.suggestion-details {
  font-size: 1.2rem;
  color: var(--gray-500);
  margin-top: .2rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.search-wrapper {
  position: relative;
}
.search-wrapper .form-control-lg {
  font-size: 1.6rem;
  padding: 1.4rem 1.6rem;
}

/* Search box for template filtering */
.search-box {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.6rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  max-width: 40rem;
}
.search-box input {
  border: none;
  background: none;
  outline: none;
  flex: 1;
  font-size: 1.4rem;
  color: var(--gray-800);
}
.search-box svg {
  flex-shrink: 0;
  color: var(--gray-400);
}

@media (max-width: 767px) {
  .autocomplete-suggestions,
  #search_ac_list {
    max-height: 24rem;
  }
  .autocomplete-suggestions .autocomplete-suggestion,
  #search_ac_list > div {
    padding: 1rem 1.2rem;
  }
}

/* =====================================================
   28. ABOUT PAGE (.ab-*)
   ===================================================== */

/* Stats strip */
.ab-stats-strip {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  position: relative;
  z-index: 5;
}
.ab-stats-strip .container { display: flex; justify-content: center; flex-wrap: wrap; }
.ab-stat {
  flex: 1;
  min-width: 18rem;
  max-width: 24rem;
  text-align: center;
  padding: 3rem 2rem;
  border-right: 1px solid var(--border-light);
  transition: background var(--t-base);
}
.ab-stat:last-child { border-right: none; }
.ab-stat:hover { background: var(--green-50); }
.ab-stat-num {
  font-family: var(--font-heading);
  font-size: 3.2rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  display: block;
  margin-bottom: .6rem;
  letter-spacing: -.02em;
}
.ab-stat-label {
  font-size: 1.35rem;
  color: var(--text-muted);
  display: block;
  font-weight: 600;
  letter-spacing: .02em;
}

/* Body wrapper */
.ab-body { padding: 7rem 0 9rem; background: var(--bg-alt); }

/* Section headings (about specific) */
.ab-section-label {
  display: inline-flex;
  align-items: center;
  gap: .8rem;
  background: var(--green-100);
  color: var(--primary);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .6rem 1.6rem;
  border-radius: var(--r-full);
  margin-bottom: 1.4rem;
}
.ab-section-title {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 1.4rem;
  line-height: 1.2;
  letter-spacing: -.02em;
}
.ab-section-title .ab-abbr {
  color: var(--primary);
  font-weight: 500;
  font-size: 70%;
}
.ab-section-desc {
  font-size: 1.6rem;
  color: var(--text-secondary);
  line-height: 1.85;
  max-width: 60rem;
  margin: 0;
}

/* Intro card */
.ab-intro-card {
  background: var(--white);
  border-radius: var(--r-xl);
  padding: 5rem;
  box-shadow: var(--shadow-card);
  margin-bottom: 4rem;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-light);
}
.ab-intro-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  background: var(--primary);
}
.ab-intro-card .row { align-items: center; }
.ab-intro-text {
  font-size: 1.6rem;
  line-height: 1.9;
  color: var(--text-secondary);
  margin: 0;
}
.ab-intro-photo {
  border-radius: var(--r-lg);
  overflow: hidden;
  height: 38rem;
  box-shadow: 0 16px 48px var(--primary-glow);
  border: 5px solid var(--white);
}
.ab-intro-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.ab-intro-photo:hover img { transform: scale(1.04); }

/* Welcome letter card */
.ab-welcome-card {
  background: var(--primary);
  border-radius: var(--r-xl);
  padding: 5rem 5.2rem;
  color: var(--white);
  box-shadow: var(--shadow-green-lg);
  margin-bottom: 4rem;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.08);
}
.ab-welcome-card::before {
  content: '\201C';
  position: absolute;
  top: -2rem; left: 3rem;
  font-size: 18rem;
  color: rgba(255,255,255,.06);
  font-family: Georgia, serif;
  line-height: 1;
  pointer-events: none;
}
.ab-welcome-label {
  display: inline-flex;
  align-items: center;
  gap: .8rem;
  background: rgba(255,255,255,.15);
  color: var(--white);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .6rem 1.6rem;
  border-radius: var(--r-full);
  margin-bottom: 2rem;
}
.ab-welcome-card h3 {
  font-family: var(--font-heading);
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--white);
  margin: 0 0 .6rem;
  letter-spacing: -.02em;
}
.ab-welcome-card .ab-from {
  font-size: 1.4rem;
  color: rgba(255,255,255,.7);
  margin-bottom: 2.6rem;
  font-weight: 500;
}
.ab-welcome-body {
  font-size: 1.6rem;
  line-height: 1.95;
  color: rgba(255,255,255,.92);
  position: relative;
  z-index: 1;
}
.ab-welcome-sig {
  margin-top: 2.8rem;
  padding-top: 2.2rem;
  border-top: 1px solid rgba(255,255,255,.2);
  font-size: 1.5rem;
  color: rgba(255,255,255,.9);
  line-height: 1.7;
}
.ab-welcome-sig strong { color: var(--white); font-size: 1.6rem; font-weight: 700; }
.ab-welcome-sig .ab-sig-title {
  font-size: 1.3rem;
  opacity: .75;
  font-weight: 500;
}

/* Statement grid (vision/mission) */
.ab-stmt-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.8rem;
  margin-bottom: 4rem;
}
.ab-stmt-card {
  background: var(--white);
  border-radius: var(--r-lg);
  padding: 3.6rem;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-light);
  position: relative;
  overflow: hidden;
  transition: all var(--t-slow);
}
.ab-stmt-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 4px;
  background: var(--primary);
}
.ab-stmt-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.ab-stmt-icon {
  width: 5.8rem; height: 5.8rem;
  border-radius: var(--r-md);
  background: var(--green-100);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.2rem;
  margin-bottom: 1.8rem;
  transition: all var(--t-spring);
}
.ab-stmt-card:hover .ab-stmt-icon { background: var(--primary); color: var(--white); transform: rotate(-6deg) scale(1.08); }
.ab-stmt-card h4 {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 1.4rem;
}
.ab-stmt-card p {
  font-size: 1.5rem;
  line-height: 1.85;
  color: var(--text-secondary);
  margin: 0;
}

/* Mission list (used inside ab-stmt-card) */
.ab-mission-list { list-style: none; padding: 0; margin: 0; }
.ab-mission-list li {
  display: flex;
  align-items: flex-start;
  gap: 1.4rem;
  font-size: 1.5rem;
  color: var(--text-secondary);
  line-height: 1.8;
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--border-light);
}
.ab-mission-list li:last-child { border-bottom: none; }
.ab-mission-list li i {
  color: var(--primary);
  font-size: 1.6rem;
  margin-top: .3rem;
  flex-shrink: 0;
}

/* Core values section */
.ab-values-section {
  background: var(--white);
  border-radius: var(--r-xl);
  padding: 5rem;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-light);
  margin-bottom: 4rem;
}
.ab-values-section .ab-values-head { text-align: center; }
.ab-values-section .ab-values-head .ab-section-label { margin: 0 auto 1.4rem; }
.ab-values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(20rem, 1fr));
  gap: 2rem;
  margin-top: 3.2rem;
}
.ab-value-chip {
  background: var(--green-50);
  border: 1.5px solid var(--green-200);
  border-radius: var(--r-lg);
  padding: 2.2rem 1.8rem;
  text-align: center;
  transition: all var(--t-base);
  cursor: default;
}
.ab-value-chip:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px var(--primary-glow);
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}
.ab-value-icon {
  font-size: 2.4rem;
  color: var(--primary);
  display: block;
  margin-bottom: 1rem;
  transition: color var(--t-base);
}
.ab-value-chip:hover .ab-value-icon { color: var(--white); }
.ab-value-chip span {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  transition: color var(--t-base);
  display: block;
}
.ab-value-chip:hover span { color: var(--white); }

/* About page responsive */
@media (max-width: 991px) {
  .ab-stmt-grid { grid-template-columns: 1fr; }
  .ab-stats-strip .container { flex-wrap: wrap; }
  .ab-stat { min-width: 50%; }
}
@media (max-width: 767px) {
  .ab-intro-card { padding: 3rem 2.4rem; }
  .ab-welcome-card { padding: 3.2rem 2.8rem; }
  .ab-values-section { padding: 3rem 2.4rem; }
  .ab-section-title { font-size: 2.4rem; }
  .ab-stat-num { font-size: 2.4rem; }
  .ab-intro-photo { height: 28rem; }
  .ab-stmt-card { padding: 2.8rem 2.4rem; }
  .brd-hero-text h1 { font-size: 2.8rem; }
  .brd-hero-crumbs { justify-content: flex-start; }
  .ab-welcome-card h3 { font-size: 2.2rem; }
}
@media (max-width: 480px) {
  .ab-stat { min-width: 100%; border-right: none; border-bottom: 1px solid var(--border-light); }
  .ab-stat:last-child { border-bottom: none; }
}

/* =====================================================
   29. CONTACT PAGE (.ct-*)
   ===================================================== */

/* Body wrapper */
.ct-body { padding: 7rem 0 9rem; background: var(--bg-alt); }

/* Info cards grid */
.ct-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(22rem, 1fr));
  gap: 2.2rem;
  margin-bottom: 5rem;
}
.ct-info-card {
  background: var(--white);
  border-radius: var(--r-lg);
  padding: 3rem 2.4rem;
  text-align: center;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-light);
  transition: all var(--t-base);
  position: relative;
  overflow: hidden;
}
.ct-info-card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 4px;
  background: var(--primary);
  transform: scaleX(0);
  transition: transform var(--t-slow);
}
.ct-info-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.ct-info-card:hover::before { transform: scaleX(1); }
.ct-info-icon {
  width: 6.2rem; height: 6.2rem;
  border-radius: var(--r-md);
  background: var(--green-100);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.2rem;
  margin: 0 auto 1.6rem;
  transition: all var(--t-spring);
}
.ct-info-card:hover .ct-info-icon { background: var(--primary); color: var(--white); transform: rotate(-8deg) scale(1.1); }
.ct-info-card h5 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text-muted);
  margin: 0 0 1rem;
}
.ct-info-card p,
.ct-info-card a {
  font-size: 1.5rem;
  color: var(--text);
  font-weight: 600;
  margin: 0;
  text-decoration: none;
  word-break: break-word;
  line-height: 1.6;
  display: block;
}
.ct-info-card a:hover { color: var(--primary); }
.ct-info-card .ct-info-secondary { color: var(--text-muted); font-weight: 500; }

/* Main grid (form + sidebar) */
.ct-main-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 3.6rem;
  align-items: start;
}

/* Form card */
.ct-form-card {
  background: var(--white);
  border-radius: var(--r-xl);
  padding: 4.4rem;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-light);
  position: relative;
  overflow: hidden;
}
.ct-form-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  background: var(--primary);
}
.ct-section-label {
  display: inline-flex;
  align-items: center;
  gap: .8rem;
  background: var(--green-100);
  color: var(--primary);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .6rem 1.6rem;
  border-radius: var(--r-full);
  margin-bottom: 1.2rem;
}
.ct-form-title {
  font-family: var(--font-heading);
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 .8rem;
  letter-spacing: -.02em;
}
.ct-form-desc {
  font-size: 1.5rem;
  color: var(--text-secondary);
  margin: 0 0 3.2rem;
  line-height: 1.7;
}
.ct-fg {
  display: flex;
  flex-direction: column;
  gap: .7rem;
  margin-bottom: 2.2rem;
}
.ct-fg label {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: .02em;
}
.ct-fg .ct-required { color: #ef4444; }
.ct-fg input,
.ct-fg textarea {
  border: 2px solid var(--border);
  border-radius: var(--r-md);
  padding: 1.3rem 1.6rem;
  font-size: 1.5rem;
  color: var(--text);
  background: var(--bg);
  transition: all var(--t-base);
  width: 100%;
  font-family: var(--font-body);
}
.ct-fg input:focus,
.ct-fg textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--white);
  box-shadow: 0 0 0 4px var(--primary-glow);
}
.ct-fg textarea { resize: vertical; min-height: 14rem; }
.ct-submit-btn {
  background: var(--primary);
  color: var(--white) !important;
  border: none;
  border-radius: var(--r-md);
  padding: 1.6rem 3.6rem;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  transition: all var(--t-base);
  box-shadow: 0 8px 24px var(--primary-glow);
  letter-spacing: .02em;
}
.ct-submit-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px var(--primary-glow);
}

/* Sidebar */
.ct-sidebar { display: flex; flex-direction: column; gap: 2.8rem; }

.ct-address-card {
  background: var(--primary);
  border-radius: var(--r-xl);
  padding: 3.6rem;
  color: var(--white);
  box-shadow: var(--shadow-green-lg);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.08);
}
.ct-address-card::before {
  content: '';
  position: absolute;
  top: -8rem; right: -8rem;
  width: 22rem; height: 22rem;
  border-radius: 50%;
  background: rgba(255,255,255,.05);
  pointer-events: none;
}
.ct-address-card h4 {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--white);
  margin: 0 0 .8rem;
  position: relative;
  z-index: 1;
  letter-spacing: -.02em;
}
.ct-address-card .ct-school-name {
  font-size: 1.4rem;
  color: rgba(255,255,255,.7);
  margin: 0 0 2.8rem;
  font-weight: 500;
  position: relative;
  z-index: 1;
}
.ct-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1.4rem;
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
}
.ct-contact-item:last-of-type { margin-bottom: 0; }
.ct-contact-item-icon {
  width: 4.2rem; height: 4.2rem; min-width: 4.2rem;
  border-radius: var(--r-sm);
  background: rgba(255,255,255,.15);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  color: var(--white);
}
.ct-contact-item-body { flex: 1; }
.ct-contact-item-body span {
  display: block;
  font-size: 1.3rem;
  color: rgba(255,255,255,.6);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: .4rem;
}
.ct-contact-item-body a,
.ct-contact-item-body p {
  font-size: 1.4rem;
  color: var(--white);
  font-weight: 500;
  text-decoration: none;
  margin: 0;
  line-height: 1.6;
  display: block;
}
.ct-contact-item-body a:hover { color: var(--green-200); }

/* Social row in sidebar */
.ct-social-row {
  display: flex;
  gap: 1.2rem;
  margin-top: 2.4rem;
  padding-top: 2.2rem;
  border-top: 1px solid rgba(255,255,255,.15);
  position: relative;
  z-index: 1;
}
.ct-social-btn {
  flex: 1;
  height: 4.4rem;
  border-radius: var(--r-sm);
  background: rgba(255,255,255,.12);
  color: var(--white) !important;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  text-decoration: none;
  transition: background var(--t-base);
}
.ct-social-btn:hover { background: rgba(255,255,255,.25); color: var(--white) !important; }

/* Alert flash messages */
.ct-alert {
  padding: 1.6rem 2.2rem;
  border-radius: var(--r-md);
  margin-bottom: 2.4rem;
  font-size: 1.45rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  line-height: 1.5;
}
.ct-alert i { font-size: 1.6rem; }
.ct-alert-success { background: var(--green-100); color: var(--green-800); border-left: 4px solid var(--green-500); }
.ct-alert-error   { background: #fee2e2; color: #7f1d1d; border-left: 4px solid #ef4444; }

/* Contact page responsive */
@media (max-width: 991px) {
  .ct-main-grid { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  .ct-form-card { padding: 2.8rem 2rem; }
  .ct-address-card { padding: 2.8rem 2.2rem; }
  .ct-info-grid { grid-template-columns: 1fr 1fr; gap: 1.6rem; }
  .brd-hero-text h1 { font-size: 2.8rem; }
  .ct-form-title { font-size: 2.2rem; }
  .brd-hero-crumbs { justify-content: flex-start; }
}
@media (max-width: 480px) {
  .ct-info-grid { grid-template-columns: 1fr; }
}

/* =====================================================
   30. EVENTS PAGE
   ===================================================== */
.ed_event_wrapper {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
}
.ed_event_wrapper_item {
  background: var(--white);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-light);
  overflow: hidden;
  transition: all var(--t-slow);
  display: flex;
  flex-direction: column;
}
.ed_event_wrapper_item:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: transparent;
}
.ed_event_wrapper_item_img {
  position: relative;
  overflow: hidden;
  height: 24rem;
  border-bottom: 4px solid var(--primary);
}
.ed_event_wrapper_item_img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow);
}
.ed_event_wrapper_item:hover .ed_event_wrapper_item_img img { transform: scale(1.08); }
.ed_event_wrapper_item_img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--primary);
  opacity: 0;
  transition: opacity var(--t-base);
  pointer-events: none;
}
.ed_event_wrapper_item:hover .ed_event_wrapper_item_img::after { opacity: .15; }

.ed_event_wrapper_item_description {
  padding: 2.6rem 2.4rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.ed_event_wrapper_item_description h4 {
  font-family: var(--font-heading);
  font-size: 1.9rem;
  font-weight: 700;
  margin: 0 0 1.2rem;
  line-height: 1.35;
}
.ed_event_wrapper_item_description h4 a { color: var(--text); }
.ed_event_wrapper_item_description h4 a:hover { color: var(--primary); }
.ed_event_wrapper_item_description p {
  font-size: 1.45rem;
  line-height: 1.75;
  color: var(--text-secondary);
  margin: 0 0 1.6rem;
  flex: 1;
}
.ed_event_wrapper_item_description > a {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: .04em;
  transition: gap var(--t-base);
}
.ed_event_wrapper_item_description > a:hover { gap: 1.2rem; color: var(--primary-dark); }

/* Pagination */
.ed_blog_bottom_pagination { margin-top: 5rem; display: flex; justify-content: center; }
.ed_blog_bottom_pagination .pagination {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin: 0;
  padding: 0;
}
.ed_blog_bottom_pagination .pagination li a,
.ed_blog_bottom_pagination .pagination li span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 4.4rem;
  height: 4.4rem;
  padding: 0 1.2rem;
  background: var(--white);
  color: var(--text);
  border-radius: var(--r-sm);
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 600;
  border: 1px solid var(--border);
  transition: all var(--t-base);
  cursor: pointer;
}
.ed_blog_bottom_pagination .pagination li a:hover {
  background: var(--green-50);
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}
.ed_blog_bottom_pagination .pagination li.active a,
.ed_blog_bottom_pagination .pagination li.active span {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
  box-shadow: 0 4px 12px var(--primary-glow);
}
.ed_blog_bottom_pagination .pagination li.disabled span {
  opacity: .5;
  cursor: default;
}

/* Events responsive */
@media (max-width: 991px) {
  .ed_event_wrapper { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
}
@media (max-width: 600px) {
  .ed_event_wrapper { grid-template-columns: 1fr; }
  .ed_event_wrapper_item_img { height: 20rem; }
}

/* =====================================================
   31. GALLERY PAGE
   ===================================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
  background: var(--white);
  aspect-ratio: 4 / 3;
  cursor: pointer;
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow);
  display: block;
}
.gallery-item::after {
  content: '\f00e';
  font-family: 'FontAwesome';
  position: absolute;
  inset: 0;
  background: var(--primary);
  color: var(--white);
  font-size: 2.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--t-base);
  pointer-events: none;
}
.gallery-item:hover img { transform: scale(1.1); }
.gallery-item:hover::after { opacity: .9; }

@media (max-width: 991px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .gallery-grid { grid-template-columns: 1fr; }
}

/* =====================================================
   32. STAFF DIRECTORY
   ===================================================== */
.staff-page { padding: 7rem 0 9rem; background: var(--bg-alt); }
.staff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(24rem, 1fr));
  gap: 2.4rem;
}
.staff-card {
  background: var(--white);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-light);
  overflow: hidden;
  transition: all var(--t-slow);
  position: relative;
}
.staff-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); border-color: transparent; }
.staff-card-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--bg-alt);
  border-bottom: 4px solid var(--primary);
}
.staff-card-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow);
}
.staff-card:hover .staff-card-photo img { transform: scale(1.05); }
.staff-card-photo .staff-avatar {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--green-100);
  color: var(--primary);
  font-size: 5rem;
}
.staff-card-body { padding: 2rem 2rem 2.2rem; text-align: center; }
.staff-card-name {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0 0 .4rem;
  color: var(--text);
}
.staff-card-role {
  display: inline-block;
  padding: .4rem 1.2rem;
  background: var(--green-100);
  color: var(--primary);
  border-radius: var(--r-full);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
  letter-spacing: .02em;
}
.staff-card-meta {
  display: flex;
  flex-direction: column;
  gap: .6rem;
  font-size: 1.35rem;
  color: var(--text-secondary);
  margin-top: 1rem;
}
.staff-card-meta a { color: var(--text-secondary); }
.staff-card-meta a:hover { color: var(--primary); }
.staff-card-meta i { color: var(--primary); width: 1.6rem; margin-right: .4rem; }

/* =====================================================
   33. GENERIC CONTENT SECTIONS
   ===================================================== */
.ed_single_wrapper { padding: 7rem 0; background: var(--white); }
.content-block { margin-bottom: 4rem; }
.content-block:last-child { margin-bottom: 0; }
.content-block h2 { font-size: 2.8rem; margin-bottom: 1.6rem; color: var(--text); }
.content-block h3 { font-size: 2.2rem; margin-bottom: 1.2rem; color: var(--text); }
.content-block p { font-size: 1.6rem; line-height: 1.85; color: var(--text-secondary); margin-bottom: 1.4rem; }
.content-block img { border-radius: var(--r-md); box-shadow: var(--shadow-card); margin: 1.6rem 0; }
.content-block ul, .content-block ol { padding-left: 2rem; margin-bottom: 1.4rem; }
.content-block li { font-size: 1.55rem; color: var(--text-secondary); margin-bottom: .6rem; line-height: 1.7; }

/* =====================================================
   34. PAGINATION OVERRIDE FOR .pagination (Bootstrap-like)
   ===================================================== */
.pagination { list-style: none; }
.pagination > li { display: inline-block; }

/* =====================================================
   35. STAFF DIRECTORY (admin) Ã¢â‚¬â€ .dir-* classes
   Uses CSS custom properties for dynamic role colors:
   --photo-bg : card photo background
   --role-color : role badge text
   --role-bg    : role badge background (15% alpha)
   ===================================================== */
.dir-modern{
  padding: 5rem 0 7rem;
  background: var(--bg-alt);
  font-family: var(--font-body);
}

/* ----- header bar ----- */
.dir-header{
  background: var(--white);
  padding: 3rem;
  border-radius: var(--r-lg);
  margin-bottom: 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-light);
}
.dir-title-section h2{
  margin: 0;
  font-size: 3rem;
  color: var(--text);
  font-weight: 700;
  font-family: var(--font-heading);
  display: flex;
  align-items: center;
  gap: 1.2rem;
}
.dir-title-section h2 i{
  width: 5rem;
  height: 5rem;
  border-radius: var(--r-md);
  background: var(--green-100);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
}
.dir-title-section p{
  margin-top: .8rem;
  color: var(--text-secondary);
  font-size: 1.5rem;
}

/* ----- search ----- */
.dir-search-wrapper{
  position: relative;
  width: 32rem;
  max-width: 100%;
}
.dir-search-icon{
  position: absolute;
  top: 50%;
  left: 1.8rem;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1.5rem;
}
.dir-search{
  width: 100%;
  height: 5.2rem;
  border-radius: var(--r-full);
  border: 1px solid var(--border);
  padding: 0 2rem 0 4.8rem;
  font-size: 1.5rem;
  transition: all var(--t-base);
  background: var(--white);
  color: var(--text);
  font-family: var(--font-body);
}
.dir-search:focus{
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-glow);
}

/* ----- grid ----- */
.dir-grid{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(30rem, 30rem));
  justify-content: start;
  gap: 2.5rem;
  align-items: start;
}

/* ----- card ----- */
.dir-card{
  width: 100%;
  min-width: 0;
  background: var(--white);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: all var(--t-slow);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-light);
}
.dir-card:hover{
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: transparent;
}
.dir-hidden{ display: none !important; }

/* ----- photo ----- */
.dir-card-photo{
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--photo-bg, var(--green-100));
}
.dir-card-photo img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--t-slow);
}
.dir-card:hover .dir-card-photo img{ transform: scale(1.05); }
.dir-init{
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 6rem;
  font-weight: 700;
  font-family: var(--font-heading);
}

/* ----- body ----- */
.dir-card-body{ padding: 2.5rem; }
.dir-card-name{
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1rem;
  font-family: var(--font-heading);
  word-break: break-word;
}
.dir-card-role{
  display: inline-block;
  padding: .8rem 1.4rem;
  border-radius: var(--r-full);
  font-size: 1.3rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 2rem;
  color: var(--role-color, var(--primary));
  background: var(--role-bg, var(--green-100));
  letter-spacing: .04em;
}
.dir-card-info div{
  margin-bottom: 1.2rem;
  color: var(--text-secondary);
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  word-break: break-word;
  font-size: 1.4rem;
}
.dir-card-info i{
  color: var(--primary);
  margin-top: .4rem;
  font-size: 1.4rem;
  width: 1.6rem;
  flex-shrink: 0;
}
.dir-card-info code{
  background: var(--bg-alt);
  padding: .5rem 1rem;
  border-radius: var(--r-sm);
  font-family: var(--font-mono, monospace);
  font-size: 1.3rem;
  color: var(--text);
}

/* ----- inactive badge ----- */
.dir-badge-inactive{
  display: inline-block;
  margin-top: 1.5rem;
  background: var(--red-100, #fee2e2);
  color: var(--red-700, #b91c1c);
  padding: .8rem 1.4rem;
  border-radius: var(--r-full);
  font-size: 1.3rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.dir-badge-inactive i{ margin-right: .4rem; }

/* ----- empty state ----- */
.dir-empty{
  grid-column: 1 / -1;
  text-align: center;
  padding: 8rem 2rem;
  background: var(--white);
  border-radius: var(--r-lg);
  border: 1px solid var(--border-light);
}
.dir-empty i{
  font-size: 7rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  display: block;
}
.dir-empty p{
  color: var(--text-secondary);
  font-size: 1.6rem;
  margin: 0;
}

/* ----- responsive ----- */
@media (max-width: 768px){
  .dir-header{
    flex-direction: column;
    align-items: stretch;
  }
  .dir-search-wrapper{ width: 100%; }
  .dir-grid{ grid-template-columns: 1fr; }
  .brd-hero-text{ text-align: center; margin-bottom: 2rem; }
  .brd-hero-crumbs{ justify-content: center; }
}

/* =====================================================
   36. MANAGEMENT / DIRECTOR PROFILE CARDS
   Shared by management.php and director.php
   ===================================================== */
.mgmt-page{
  padding: 7rem 0 9rem;
  background: var(--bg-alt);
}
.mgmt-grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.4rem;
}
.mgmt-card{
  display: grid;
  grid-template-columns: 22rem 1fr;
  gap: 0;
  background: var(--white);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-light);
  transition: all var(--t-slow);
}
.mgmt-card:hover{
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: transparent;
}
.mgmt-card-photo{
  width: 100%;
  height: 100%;
  min-height: 28rem;
  background: var(--green-100);
  overflow: hidden;
  position: relative;
}
.mgmt-card-photo img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--t-slow);
}
.mgmt-card:hover .mgmt-card-photo img{ transform: scale(1.05); }
.mgmt-card-photo::before{
  content: '';
  position: absolute;
  inset: 0;
  background: var(--primary);
  opacity: 0;
  z-index: 1;
  transition: opacity var(--t-base);
  pointer-events: none;
}
.mgmt-card:hover .mgmt-card-photo::before{ opacity: .1; }
.mgmt-card-body{
  padding: 2.4rem 2.6rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.mgmt-card-name{
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 .6rem;
  line-height: 1.3;
}
.mgmt-card-title{
  display: inline-block;
  align-self: flex-start;
  padding: .4rem 1.2rem;
  background: var(--green-100);
  color: var(--primary);
  border-radius: var(--r-full);
  font-size: 1.3rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 1.2rem;
}
.mgmt-card-text{
  color: var(--text-secondary);
  font-size: 1.5rem;
  line-height: 1.75;
  margin: 0;
}
.mgmt-card-text p{ margin: 0 0 1rem; }
.mgmt-card-text p:last-child{ margin-bottom: 0; }

@media (max-width: 991px){
  .mgmt-grid{ grid-template-columns: 1fr; }
  .mgmt-card{ grid-template-columns: 26rem 1fr; }
}
@media (max-width: 600px){
  .mgmt-card{ grid-template-columns: 1fr; }
  .mgmt-card-photo{ min-height: 32rem; }
  .mgmt-card-body{ padding: 2rem; }
}

/* =====================================================
   37. DIRECTOR PAGE
   ===================================================== */
.director-profile{
  display: grid;
  grid-template-columns: 32rem 1fr;
  gap: 4rem;
  align-items: center;
  background: var(--white);
  border-radius: var(--r-lg);
  padding: 3rem;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-light);
  margin-bottom: 3rem;
}
.director-photo{
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--green-100);
  box-shadow: var(--shadow-card);
  border: 4px solid var(--white);
  outline: 2px solid var(--primary);
  outline-offset: -2px;
}
.director-photo img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.director-info{ padding: 1rem 0; }
.director-label{
  display: inline-block;
  padding: .4rem 1.2rem;
  background: var(--green-100);
  color: var(--primary);
  border-radius: var(--r-full);
  font-size: 1.3rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 1.2rem;
}
.director-name{
  font-family: var(--font-heading);
  font-size: 3.2rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 1.4rem;
  line-height: 1.2;
}
.director-text{
  font-size: 1.55rem;
  line-height: 1.85;
  color: var(--text-secondary);
  margin: 0;
}

.director-gallery{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.4rem;
}
.director-figure{
  margin: 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-light);
  background: var(--white);
  aspect-ratio: 4 / 3;
  transition: transform var(--t-slow);
}
.director-figure:hover{ transform: translateY(-4px); }
.director-figure img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 768px){
  .director-profile{
    grid-template-columns: 1fr;
    gap: 2.4rem;
    padding: 2.2rem;
  }
  .director-photo{ max-width: 32rem; margin: 0 auto; }
  .director-name{ font-size: 2.4rem; }
  .director-gallery{ grid-template-columns: 1fr; }
}

/* =====================================================
   38. PROFILE PAGES (Primary / Secondary School)
   Replaces legacy Bootstrap-tab layout
   ===================================================== */
.profile-page{
  padding: 7rem 0 9rem;
  background: var(--bg-alt);
}
.profile-hero{
  display: grid;
  grid-template-columns: 28rem 1fr;
  gap: 3.6rem;
  align-items: center;
  background: var(--white);
  border-radius: var(--r-lg);
  padding: 3rem;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-light);
  margin-bottom: 3rem;
}
.profile-hero-photo{
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--green-100);
  box-shadow: var(--shadow-card);
  border: 4px solid var(--white);
  outline: 2px solid var(--primary);
  outline-offset: -2px;
}
.profile-hero-photo img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.profile-hero-info{ padding: 1rem 0; }
.profile-hero-role{
  display: inline-block;
  padding: .4rem 1.2rem;
  background: var(--green-100);
  color: var(--primary);
  border-radius: var(--r-full);
  font-size: 1.3rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 1.2rem;
}
.profile-hero-name{
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 1.4rem;
  line-height: 1.2;
}
.profile-hero-text{
  font-size: 1.55rem;
  line-height: 1.85;
  color: var(--text-secondary);
  margin: 0;
}

.profile-section{
  background: var(--white);
  border-radius: var(--r-lg);
  padding: 3rem 3.4rem;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-light);
  margin-bottom: 2.4rem;
}
.profile-section:last-child{ margin-bottom: 0; }
.profile-section-title{
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 1.6rem;
  padding-bottom: 1.2rem;
  border-bottom: 2px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: 1rem;
}
.profile-section-title i{
  width: 4.4rem;
  height: 4.4rem;
  border-radius: var(--r-md);
  background: var(--green-100);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
}
.profile-section-body{
  font-size: 1.55rem;
  line-height: 1.85;
  color: var(--text-secondary);
}
.profile-section-body p{ margin: 0 0 1.2rem; }
.profile-section-body p:last-child{ margin-bottom: 0; }
.profile-section-body strong{ color: var(--text); }

@media (max-width: 768px){
  .profile-hero{
    grid-template-columns: 1fr;
    gap: 2.4rem;
    padding: 2.2rem;
  }
  .profile-hero-photo{ max-width: 28rem; margin: 0 auto; }
  .profile-hero-name{ font-size: 2.2rem; }
  .profile-section{ padding: 2.2rem; }
  .profile-section-title{ font-size: 2rem; }
}

/* =====================================================
   39. NEWSLETTER PAGE
   ===================================================== */
.newsletter-page{
  padding: 7rem 0 9rem;
  background: var(--bg-alt);
}
.newsletter-card{
  max-width: 90rem;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-light);
  overflow: hidden;
}
.newsletter-header{
  text-align: center;
  padding: 4rem 3rem 3rem;
  background: var(--green-50, var(--green-tint-50));
  border-bottom: 1px solid var(--border-light);
  position: relative;
}
.newsletter-header::after{
  content: '';
  position: absolute;
  bottom: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 6rem;
  height: 3px;
  background: var(--primary);
  border-radius: 3px;
}
.newsletter-logo{
  width: 9rem;
  height: 9rem;
  margin: 0 auto 2rem;
  border-radius: 50%;
  overflow: hidden;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-card);
  border: 3px solid var(--white);
  outline: 2px solid var(--primary);
  outline-offset: -2px;
}
.newsletter-logo img{
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
  display: block;
}
.newsletter-school{
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 1rem;
  line-height: 1.2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .4rem;
}
.newsletter-addr{
  font-family: var(--font-body);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--text-secondary);
}
.newsletter-tag{
  display: inline-block;
  padding: .4rem 1.4rem;
  background: var(--primary);
  color: var(--white);
  border-radius: var(--r-full);
  font-size: 1.3rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-top: .4rem;
}
.newsletter-body{
  padding: 3.6rem 4rem;
  font-size: 1.55rem;
  line-height: 1.85;
  color: var(--text);
}
.newsletter-body p{ margin: 0 0 1.2rem; }
.newsletter-body h2,
.newsletter-body h3,
.newsletter-body h4{
  font-family: var(--font-heading);
  color: var(--text);
  margin: 2rem 0 1rem;
  line-height: 1.3;
}
.newsletter-body h2{ font-size: 2.4rem; }
.newsletter-body h3{ font-size: 2rem; }
.newsletter-body h4{ font-size: 1.7rem; }
.newsletter-body img{
  max-width: 100%;
  height: auto;
  border-radius: var(--r-md);
  margin: 1.6rem 0;
}
.newsletter-body a{ color: var(--primary); }
.newsletter-body a:hover{ text-decoration: underline; }

@media (max-width: 600px){
  .newsletter-header{ padding: 3rem 1.8rem 2.4rem; }
  .newsletter-logo{ width: 7rem; height: 7rem; }
  .newsletter-school{ font-size: 2.2rem; }
  .newsletter-body{ padding: 2.4rem 1.8rem; }
}

/* =====================================================
   40. ADMIN AUTH PAGES Ã¢â‚¬â€ login, forgot, reset
   ===================================================== */
.auth-page{
  min-height: calc(100vh - 22rem);
  display: flex;
  align-items: center;
  padding: 6rem 0 8rem;
  background: var(--bg-alt);
}
.auth-card{
  max-width: 48rem;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--r-lg);
  padding: 4rem 4rem 3.4rem;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-light);
}
.auth-card-title{
  font-family: var(--font-heading);
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 .6rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.auth-card-title i{
  width: 5rem;
  height: 5rem;
  border-radius: var(--r-md);
  background: var(--green-100);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}
.auth-card-sub{
  color: var(--text-secondary);
  font-size: 1.45rem;
  margin: 0 0 2.4rem;
}
.auth-form .form-row{ margin-bottom: 1.8rem; }
.auth-form label{
  display: block;
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: .6rem;
  color: var(--text);
}
.auth-form .form-control{
  width: 100%;
  height: 4.8rem;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  padding: 0 1.6rem;
  font-size: 1.5rem;
  background: var(--white);
  color: var(--text);
  font-family: var(--font-body);
  transition: all var(--t-base);
}
.auth-form .form-control:focus{
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-glow);
}
.auth-form .btn-login{
  width: 100%;
  height: 5rem;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: .04em;
  margin-top: .6rem;
}
.auth-form .pwd-wrap{ position: relative; }
.auth-form .pwd-toggle{
  position: absolute;
  right: 1.4rem;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: var(--text-muted);
  font-size: 1.5rem;
  z-index: 2;
}
.auth-form .forgot-link{
  text-align: center;
  margin-top: 1.4rem;
  font-size: 1.4rem;
}
.auth-form .forgot-link a{
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}
.auth-form .forgot-link a:hover{ text-decoration: underline; }
.auth-form .role-note{
  background: var(--bg-alt);
  border-left: 3px solid var(--primary);
  padding: 1.2rem 1.6rem;
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  font-size: 1.3rem;
  color: var(--text-secondary);
  margin-top: 2rem;
  line-height: 1.6;
}
.auth-form .role-note strong{ color: var(--text); }

@media (max-width: 600px){
  .auth-card{ padding: 3rem 2rem 2.4rem; }
  .auth-card-title{ font-size: 2.2rem; }
  .auth-card-title i{ width: 4.4rem; height: 4.4rem; font-size: 1.7rem; }
}

/* =====================================================
   41. ADMIN DASHBOARD LAYOUT
   Replaces legacy ed_dashboard_wrapper / ed_sidebar_wrapper
   ===================================================== */
.admin-shell{
  display: grid;
  grid-template-columns: 28rem 1fr;
  gap: 0;
  min-height: calc(100vh - 22rem);
  background: var(--bg-alt);
}
.admin-sidebar{
  background: var(--white);
  border-right: 1px solid var(--border-light);
  padding: 3rem 2rem;
  position: sticky;
  top: 0;
  align-self: start;
  max-height: 100vh;
  overflow-y: auto;
}
.admin-profile{
  text-align: center;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 2rem;
}
.admin-profile-img{
  width: 12rem;
  height: 12rem;
  border-radius: 50%;
  margin: 0 auto 1.2rem;
  overflow: hidden;
  background: var(--green-100);
  border: 3px solid var(--white);
  outline: 2px solid var(--primary);
  outline-offset: -2px;
  box-shadow: var(--shadow-card);
}
.admin-profile-img img{ width: 100%; height: 100%; object-fit: cover; display: block; }
.admin-profile-name{
  font-family: var(--font-heading);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 .4rem;
}
.admin-profile-role{
  font-size: 1.3rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .04em;
  font-weight: 600;
}

.admin-nav-title{
  font-size: 1.2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--text-muted);
  margin: 1.6rem 0 .8rem;
  padding: 0 1rem;
}
.admin-nav{ list-style: none; padding: 0; margin: 0 0 1.2rem; }
.admin-nav li{ margin: 0; }
.admin-nav a{
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.2rem;
  border-radius: var(--r-md);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 1.4rem;
  font-weight: 500;
  transition: all var(--t-base);
  margin-bottom: .2rem;
}
.admin-nav a i{ width: 1.8rem; text-align: center; color: var(--text-muted); }
.admin-nav a:hover{
  background: var(--green-50, var(--green-tint-50));
  color: var(--primary);
}
.admin-nav a:hover i{ color: var(--primary); }
.admin-nav a.active{
  background: var(--primary);
  color: var(--white);
}
.admin-nav a.active i{ color: var(--white); }

.admin-main{ padding: 3rem 3.4rem; min-width: 0; }
.admin-main-header{
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.4rem;
  margin-bottom: 2.4rem;
}
.admin-main-title{
  font-family: var(--font-heading);
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}
.admin-main-sub{
  font-size: 1.4rem;
  color: var(--text-secondary);
  margin: .4rem 0 0;
}
.admin-section{
  background: var(--white);
  border-radius: var(--r-lg);
  padding: 2.4rem 2.6rem;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-light);
  margin-bottom: 2.4rem;
}
.admin-section::after{ content: ''; display: table; clear: both; }
.admin-section:last-child{ margin-bottom: 0; }
.admin-section .ed_teacher_form,
.admin-section > form{ width: 100%; }
.admin-section .ed_teacher_form .btn,
.admin-section > form .btn,
.admin-section > form button[type="submit"],
.admin-section > form button[type="button"]{ background: var(--green-600) !important; color: var(--white) !important; border: none !important; }
.admin-section .ed_teacher_form .btn:hover,
.admin-section > form .btn:hover,
.admin-section > form button[type="submit"]:hover,
.admin-section > form button[type="button"]:hover{ background: var(--green-700) !important; color: var(--white) !important; }
.admin-section-title{
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 1.6rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: 1rem;
}
.admin-section-title i{
  color: var(--primary);
  font-size: 1.8rem;
}

@media (max-width: 991px){
  .admin-shell{ grid-template-columns: 1fr; }
  .admin-sidebar{
    position: relative;
    max-height: none;
    border-right: 0;
    border-bottom: 1px solid var(--border-light);
  }
}
@media (max-width: 600px){
  .admin-main{ padding: 2rem 1.6rem; }
  .admin-section{ padding: 2rem; }
  .admin-main-title{ font-size: 2.2rem; }
}

/* =====================================================
   42. ADMIN TABS (replaces Bootstrap nav-tabs)
   ===================================================== */
.admin-tabs{
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 2.4rem;
}
.admin-tab{
  padding: 1.2rem 2rem;
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
  transition: all var(--t-base);
  text-decoration: none;
  background: transparent;
  border-left: 0;
  border-right: 0;
  border-top: 0;
  display: inline-flex;
  align-items: center;
  gap: .8rem;
}
.admin-tab:hover{ color: var(--primary); }
.admin-tab.active{
  color: var(--primary);
  border-bottom-color: var(--primary);
}
.admin-tab i{ font-size: 1.4rem; }

/* =====================================================
   43. ADMIN STAT CARDS / DASHBOARD WIDGETS
   ===================================================== */
.admin-stats{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(22rem, 1fr));
  gap: 2rem;
  margin-bottom: 2.4rem;
}
.admin-stat{
  background: var(--white);
  border-radius: var(--r-lg);
  padding: 2.2rem 2.4rem;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: 1.6rem;
  transition: all var(--t-slow);
}
.admin-stat:hover{
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: transparent;
}
.admin-stat-icon{
  width: 5.4rem;
  height: 5.4rem;
  border-radius: var(--r-md);
  background: var(--green-100);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  flex-shrink: 0;
}
.admin-stat-icon.blue{ background: var(--primary-mist); color: var(--primary-dark); }
.admin-stat-icon.green{ background: var(--green-100); color: var(--green-700); }
.admin-stat-icon.orange{ background: var(--amber-100); color: var(--amber-700); }
.admin-stat-icon.purple{ background: #ede9fe; color: #6d28d9; }
.admin-stat-icon.red{ background: #fee2e2; color: #b91c1c; }
.admin-stat-icon.amber{ background: var(--amber-100); color: var(--amber-700); }
.admin-stat-body{ min-width: 0; }
.admin-stat-value{
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.1;
  margin: 0 0 .2rem;
}
.admin-stat-label{
  font-size: 1.35rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: .04em;
  font-weight: 600;
}
.admin-stat-trend{
  font-size: 1.3rem;
  margin-top: .2rem;
  color: var(--text-muted);
}
.admin-stat-trend.up{ color: var(--green-700); }
.admin-stat-trend.down{ color: #b91c1c; }

/* =====================================================
   44. ADMIN TABLES
   ===================================================== */
.admin-table-wrap{
  background: var(--white);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-light);
  overflow: hidden;
}
.admin-table-scroll{ overflow-x: auto; }
.admin-table{
  width: 100%;
  border-collapse: collapse;
  font-size: 1.4rem;
}
.admin-table th,
.admin-table td{
  padding: 1.4rem 1.6rem;
  text-align: left;
  border-bottom: 1px solid var(--border-light);
  vertical-align: middle;
}
.admin-table th{
  background: var(--bg-alt);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: .04em;
  white-space: nowrap;
}
.admin-table tbody tr:hover{ background: var(--green-50, var(--green-tint-50)); }
.admin-table tbody tr:last-child td{ border-bottom: 0; }
.admin-table td.actions{ white-space: nowrap; }
.admin-table td.actions a,
.admin-table td.actions button{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.4rem;
  height: 3.4rem;
  border-radius: var(--r-sm);
  background: var(--bg-alt);
  color: var(--text-secondary);
  font-size: 1.4rem;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  margin-right: .4rem;
  transition: all var(--t-base);
}
.admin-table td.actions a:hover{ background: var(--green-100); color: var(--primary); }
.admin-table td.actions .danger:hover{ background: #fee2e2; color: #b91c1c; }
.admin-table .empty{
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-muted);
  font-style: italic;
}
.admin-table img.avatar{
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  object-fit: cover;
}

/* =====================================================
   45. ADMIN BADGES / PILLS
   ===================================================== */
.adm-badge{
  display: inline-block;
  padding: .4rem 1rem;
  border-radius: var(--r-full);
  font-size: 1.25rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  background: var(--bg-alt);
  color: var(--text-secondary);
}
.adm-badge.green{ background: var(--green-100); color: var(--green-700); }
.adm-badge.red{ background: #fee2e2; color: #b91c1c; }
.adm-badge.blue{ background: var(--primary-mist); color: var(--primary-dark); }
.adm-badge.orange{ background: var(--amber-100); color: var(--amber-700); }
.adm-badge.amber{ background: var(--amber-100); color: var(--amber-700); }
.adm-badge.purple{ background: #ede9fe; color: #6d28d9; }
.adm-badge.gray{ background: var(--gray-200); color: var(--gray-600); }

/* =====================================================
   46. ADMIN ALERTS (replaces error1/success1)
   ===================================================== */
.adm-alert{
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.4rem 1.6rem;
  border-radius: var(--r-md);
  font-size: 1.4rem;
  margin-bottom: 1.6rem;
  border: 1px solid transparent;
  line-height: 1.5;
}
.adm-alert i{ font-size: 1.8rem; flex-shrink: 0; }
.adm-alert.error{ background: #fee2e2; color: #b91c1c; border-color: #fecaca; }
.adm-alert.error i{ color: #b91c1c; }
.adm-alert.success{ background: var(--green-100); color: var(--green-700); border-color: var(--green-200); }
.adm-alert.success i{ color: var(--green-700); }
.adm-alert.info{ background: var(--primary-mist); color: var(--primary-dark); border-color: var(--primary-mist); }
.adm-alert.info i{ color: var(--primary-dark); }
.adm-alert.warn{ background: var(--amber-100); color: var(--amber-700); border-color: var(--amber-200); }
.adm-alert.warn i{ color: var(--amber-700); }

/* =====================================================
   47. ADMIN FORMS (general)
   ===================================================== */
.adm-form-row{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(28rem, 1fr));
  gap: 1.6rem;
  margin-bottom: 1.6rem;
}
.adm-form-group{ margin-bottom: 1.6rem; }
.adm-form-group label{
  display: block;
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: .6rem;
  color: var(--text);
}
.adm-form-control{
  width: 100%;
  min-height: 4.4rem;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  padding: 1rem 1.4rem;
  font-size: 1.4rem;
  background: var(--white);
  color: var(--text);
  font-family: var(--font-body);
  transition: all var(--t-base);
}
textarea.adm-form-control{ min-height: 10rem; resize: vertical; }
.adm-form-control:focus{
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-glow);
}
.adm-form-control[disabled],
.adm-form-control[readonly]{
  background: var(--bg-alt);
  color: var(--text-secondary);
}
.adm-form-help{
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-top: .4rem;
}
.adm-form-actions{
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-light);
}

/* =====================================================
   48. ADMIN BUTTONS
   ===================================================== */
.adm-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  padding: 1rem 2rem;
  border-radius: var(--r-md);
  font-size: 1.4rem;
  font-weight: 700;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  font-family: var(--font-body);
  transition: all var(--t-base);
  line-height: 1.2;
  white-space: nowrap;
}
.adm-btn.primary{ background: var(--primary); color: var(--white); }
.adm-btn.primary:hover{ background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 4px 12px var(--primary-glow); }
.adm-btn.secondary{ background: var(--bg-alt); color: var(--text); }
.adm-btn.secondary:hover{ background: var(--border); }
.adm-btn.danger{ background: #dc2626; color: var(--white); }
.adm-btn.danger:hover{ background: #b91c1c; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(220,38,38,.3); }
.adm-btn.success{ background: var(--green-600); color: var(--white); }
.adm-btn.success:hover{ background: var(--green-700); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(5,150,105,.3); }
.adm-btn.outline{ background: transparent; color: var(--primary); border: 1px solid var(--primary); }
.adm-btn.outline:hover{ background: var(--primary); color: var(--white); }
.adm-btn.sm{ padding: .6rem 1.2rem; font-size: 1.3rem; }
.adm-btn.lg{ padding: 1.2rem 2.4rem; font-size: 1.5rem; }
.adm-btn:disabled{ opacity: .5; cursor: not-allowed; transform: none !important; box-shadow: none !important; }

/* =====================================================
   49. ADMIN SEARCH BAR / FILTERS
   ===================================================== */
.adm-toolbar{
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding: 1.6rem 2rem;
  background: var(--white);
  border-radius: var(--r-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm, 0 1px 2px rgba(0,0,0,.04));
}
.adm-search{
  position: relative;
  flex: 1 1 28rem;
  max-width: 40rem;
}
.adm-search input{
  width: 100%;
  height: 4.2rem;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  padding: 0 1.4rem 0 4rem;
  font-size: 1.4rem;
  background: var(--white);
  color: var(--text);
}
.adm-search input:focus{
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}
.adm-search i{
  position: absolute;
  left: 1.4rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1.4rem;
}
.adm-filter-group{ display: flex; gap: .8rem; flex-wrap: wrap; }
.adm-filter-group select{
  height: 4.2rem;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  padding: 0 2.6rem 0 1.2rem;
  font-size: 1.4rem;
  background: var(--white) url("data:image/svg+xml;charset=US-ASCII,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M6 8.5L1.5 4h9z'/%3E%3C/svg%3E") no-repeat right 1rem center;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  color: var(--text);
  cursor: pointer;
}
.adm-filter-group select:focus{
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

/* =====================================================
   50. ADMIN MODAL
   ===================================================== */
.adm-modal-backdrop{
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, .6);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-base);
}
.adm-modal-backdrop.open{ opacity: 1; pointer-events: auto; }
.adm-modal{
  background: var(--white);
  border-radius: var(--r-lg);
  width: 100%;
  max-width: 56rem;
  max-height: 90vh;
  overflow: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,.3);
  transform: scale(.95);
  transition: transform var(--t-base);
}
.adm-modal-backdrop.open .adm-modal{ transform: scale(1); }
.adm-modal-header{
  padding: 2rem 2.4rem;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  background: var(--white);
  z-index: 1;
}
.adm-modal-title{
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}
.adm-modal-close{
  background: transparent;
  border: 0;
  font-size: 1.8rem;
  color: var(--text-muted);
  cursor: pointer;
  padding: .4rem;
  border-radius: var(--r-sm);
  line-height: 1;
}
.adm-modal-close:hover{ background: var(--bg-alt); color: var(--text); }
.adm-modal-body{ padding: 2.4rem; }
.adm-modal-footer{
  padding: 1.6rem 2.4rem;
  border-top: 1px solid var(--border-light);
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  position: sticky;
  bottom: 0;
  background: var(--white);
}

/* =====================================================
   51. ADMIN PAGINATION
   ===================================================== */
.adm-pagination{
  display: flex;
  gap: .4rem;
  justify-content: center;
  margin-top: 2.4rem;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
}
.adm-pagination li{ display: inline-block; }
.adm-pagination a,
.adm-pagination span{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 4rem;
  height: 4rem;
  padding: 0 1rem;
  border-radius: var(--r-md);
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 1.4rem;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--t-base);
}
.adm-pagination a:hover{ background: var(--green-100); color: var(--primary); border-color: var(--primary); }
.adm-pagination .active span{ background: var(--primary); color: var(--white); border-color: var(--primary); }
.adm-pagination .disabled span{ opacity: .5; cursor: default; }

/* =====================================================
   52. ADMIN QUICK ACTIONS / DASHBOARD TILES
   ===================================================== */
.admin-tiles{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(20rem, 1fr));
  gap: 1.6rem;
  margin-bottom: 2.4rem;
}
.admin-tile{
  display: flex;
  align-items: center;
  gap: 1.4rem;
  padding: 1.8rem 2rem;
  background: var(--white);
  border-radius: var(--r-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-card);
  text-decoration: none;
  color: var(--text);
  transition: all var(--t-slow);
}
.admin-tile:hover{
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary);
  color: var(--primary);
}
.admin-tile i{
  width: 4.4rem;
  height: 4.4rem;
  border-radius: var(--r-md);
  background: var(--green-100);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  flex-shrink: 0;
}
.admin-tile-body{ min-width: 0; }
.admin-tile-title{
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 .2rem;
}
.admin-tile-sub{
  font-size: 1.25rem;
  color: var(--text-secondary);
}

/* =====================================================
   53. ADMIN LOGIN / AUTH LEGACY OVERRIDES
   Replaces admin-login-card / fp-wrap styles in old pages
   ===================================================== */
.admin-login-card{ /* alias */
  max-width: 48rem;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--r-lg);
  padding: 4rem 4rem 3.4rem;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-light);
}
.admin-login-card h3{
  font-family: var(--font-heading);
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 .6rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.admin-login-card .login-sub{ color: var(--text-secondary); font-size: 1.45rem; margin: 0 0 2.4rem; }
.admin-login-card .form-group{ margin-bottom: 1.8rem; }
.admin-login-card label{ display: block; font-size: 1.4rem; font-weight: 600; margin-bottom: .6rem; color: var(--text); }
.admin-login-card .form-control{
  width: 100%;
  height: 4.8rem;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  padding: 0 1.6rem;
  font-size: 1.5rem;
  background: var(--white);
  color: var(--text);
  font-family: var(--font-body);
  transition: all var(--t-base);
}
.admin-login-card .form-control:focus{ outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-glow); }
.pwd-wrap{ position: relative; }
.pwd-wrap .pwd-toggle{
  position: absolute;
  right: 1.4rem;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: var(--text-muted);
  font-size: 1.5rem;
  z-index: 2;
}
.admin-login-card .btn-login{ width: 100%; height: 5rem; font-size: 1.6rem; font-weight: 700; letter-spacing: .04em; margin-top: .6rem; }
.admin-login-card .role-note{
  background: var(--bg-alt);
  border-left: 3px solid var(--primary);
  padding: 1.2rem 1.6rem;
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  font-size: 1.3rem;
  color: var(--text-secondary);
  margin-top: 2rem;
  line-height: 1.6;
}
.admin-login-card .role-note strong{ color: var(--text); }

/* =====================================================
   54. LEGACY BOOTSTRAP-LIKE GRID HELPERS (for admin pages
   that still rely on col-md-* classes)
   ===================================================== */
.col-md-12, .col-lg-12{ width: 100%; }
.col-md-6{ width: 50%; }
.col-md-4{ width: 33.333%; }
.col-md-3{ width: 25%; }
.col-md-8{ width: 66.666%; }
@media (max-width: 991px){
  .col-md-12, .col-lg-12, .col-md-6, .col-md-4, .col-md-3, .col-md-8{ width: 100%; }
}
.col-offset-3{ margin-left: 25%; }
@media (max-width: 991px){
  .col-offset-3, .col-md-offset-2, .col-lg-offset-3, .col-md-offset-3{ margin-left: 0; }
}
.text-center{ text-align: center; }
.text-right{ text-align: right; }
.mb-0{ margin-bottom: 0 !important; }
.mb-2{ margin-bottom: .8rem !important; }
.mb-3{ margin-bottom: 1.2rem !important; }
.mb-4{ margin-bottom: 2rem !important; }
.mt-2{ margin-top: .8rem !important; }
.mt-3{ margin-top: 1.2rem !important; }
.mt-4{ margin-top: 2rem !important; }
.no-print{ }
@media print{ .no-print{ display: none !important; } }

/* =====================================================
   55. ADMIN DASHBOARD (admin_page.php)
   Tiles grid + topbar + role pill
   ===================================================== */
.adm-dash-wrap{ background: var(--bg-alt); padding: 0 0 6rem; }
.adm-topbar{
  background: var(--text);
  color: var(--white);
  padding: 1.6rem 0;
  width: 100%;
}
.adm-topbar .container{
  width: 100%; max-width: 100%;
  padding-left: 2rem; padding-right: 2rem;
}
.adm-topbar .tb-inner{
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 1.2rem;
  width: 100%;
}
.adm-topbar .tb-title{ grid-column: 1; min-width: 0; }
.adm-topbar .tb-title h2{
  margin: 0 0 .2rem 0;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.35;
  display: block;
  font-family: var(--font-heading);
}
.adm-topbar .tb-title p{
  margin: .3rem 0 0;
  font-size: 1.4rem;
  color: rgba(255,255,255,.75);
}
.adm-topbar .tb-actions{
  grid-column: 2;
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  justify-content: flex-end;
  align-items: center;
}
.adm-top-btn{
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .8rem 1.4rem;
  border-radius: var(--r-md);
  font-size: 1.3rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 0;
  transition: all var(--t-base);
  white-space: nowrap;
  line-height: 1.2;
  font-family: var(--font-body);
}
.adm-top-btn-outline{
  border: 1.5px solid rgba(255,255,255,.6);
  color: var(--white);
  background: transparent;
}
.adm-top-btn-outline:hover{ background: rgba(255,255,255,.15); color: var(--white); }
.adm-top-btn-danger{ background: #dc2626; color: var(--white); }
.adm-top-btn-danger:hover{ background: #b91c1c; color: var(--white); }
.adm-top-btn-warn{ background: var(--primary); color: var(--white); }
.adm-top-btn-warn:hover{ background: var(--primary-dark); color: var(--white); }

.role-pill{
  display: inline-block;
  padding: .3rem 1rem;
  border-radius: var(--r-full);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-top: .4rem;
  vertical-align: middle;
  line-height: 1.6;
}
.rp-super{ background: var(--primary); color: var(--white); }
.rp-account{ background: var(--primary-dark); color: var(--white); }
.rp-result{ background: var(--green-600); color: var(--white); }
.rp-other{ background: var(--gray-500); color: var(--white); }

.adm-section{ padding: 2.8rem 0 0; }
.adm-section-title{
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1.2rem;
  padding-bottom: .8rem;
  border-bottom: 2px solid var(--primary);
  display: flex;
  align-items: center;
  gap: .8rem;
}
.adm-section-title i{ color: var(--primary); }

.adm-grid{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(20rem, 1fr));
  gap: 1.2rem;
  margin-bottom: 2.4rem;
}
.adm-item{
  background: var(--white);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-card);
  padding: 1.4rem 1.6rem;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  text-decoration: none;
  color: var(--text);
  transition: all var(--t-slow);
  border-left: 3px solid transparent;
  font-size: 1.4rem;
  font-weight: 600;
  min-height: 6rem;
}
.adm-item:hover{
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
  color: var(--primary);
  border-left-color: var(--primary);
  text-decoration: none;
}
.adm-item .adm-icon{
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}
.adm-item .adm-label{ font-size: 1.3rem; font-weight: 600; line-height: 1.3; }
.ic-orange{ background: var(--amber-100); color: var(--primary); }
.ic-blue{ background: var(--primary-mist); color: var(--primary-dark); }
.ic-green{ background: var(--green-100); color: var(--green-700); }
.ic-red{ background: #fee2e2; color: #b91c1c; }
.ic-purple{ background: #ede9fe; color: #6d28d9; }
.ic-teal{ background: var(--green-100); color: #0f766e; }
.ic-dark{ background: var(--gray-200); color: var(--gray-600); }
.ic-gold{ background: var(--amber-100); color: var(--amber-700); }
.ic-pos{ background: var(--gray-900); color: var(--primary); }

.adm-item-super{ border: 2px dashed var(--primary); background: var(--green-50, var(--green-tint-50)); }
.adm-item-super:hover{ background: var(--amber-100); }

@media (max-width: 767px){
  .adm-topbar{ padding: 1.2rem 0; }
  .adm-topbar .tb-inner{
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    gap: 1rem;
  }
  .adm-topbar .tb-title{ grid-column: 1; }
  .adm-topbar .tb-title h2{ font-size: 1.6rem; }
  .adm-topbar .tb-title p{ font-size: 1.3rem; }
  .adm-topbar .tb-actions{
    grid-column: 1;
    justify-content: flex-start;
    width: 100%;
  }
  .adm-top-btn{ flex: 1 1 auto; justify-content: center; font-size: 1.25rem; padding: .8rem 1rem; }
  .adm-grid{ grid-template-columns: 1fr 1fr; }
}
@media (max-width: 400px){
  .adm-top-btn{ flex: 1 1 100%; }
}

/* =====================================================
   56. YEARBOOK MODAL (admin_page.php)
   Dark + gold theme; no gradients (solid colors)
   ===================================================== */
.yearbook-modal{
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
  align-items: center;
  justify-content: center;
  padding: 1.6rem;
  background: rgba(0, 0, 0, .78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.yearbook-modal.is-open{ display: flex; }
.yearbook-modal-card{
  position: relative;
  width: 100%;
  max-width: 56rem;
  background: var(--gray-900);
  border: 1px solid rgba(201,168,76,.3);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,.6);
  animation: ybPopIn .28s cubic-bezier(.34,1.56,.64,1);
}
.yearbook-modal-card::before{
  content: '\201C';
  position: absolute;
  top: -2.4rem;
  right: 2.2rem;
  font-family: Georgia, serif;
  font-size: 18rem;
  color: rgba(201,168,76,.06);
  line-height: 1;
  pointer-events: none;
  z-index: 0;
}
@keyframes ybPopIn{
  from{ opacity: 0; transform: translateY(-1.4rem) scale(.96); }
  to{ opacity: 1; transform: translateY(0) scale(1); }
}
.yearbook-modal-head{
  position: relative;
  z-index: 1;
  padding: 2.8rem 3rem 0;
  text-align: center;
}
.yearbook-close{
  position: absolute;
  top: 1.4rem;
  right: 1.6rem;
  border: 1px solid rgba(201,168,76,.25);
  background: transparent;
  color: rgba(201,168,76,.7);
  width: 3.4rem;
  height: 3.4rem;
  border-radius: var(--r-sm);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  transition: all .2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
}
.yearbook-close:hover{
  background: rgba(201,168,76,.12);
  color: var(--gold);
  border-color: rgba(201,168,76,.55);
}
.yb-modal-badge{
  display: inline-block;
  background: var(--gold);
  color: var(--gray-900);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: .3rem;
  text-transform: uppercase;
  padding: .5rem 1.6rem;
  border-radius: var(--r-sm);
  margin-bottom: 1.4rem;
}
.yearbook-modal-head h4{
  margin: 0 0 .6rem;
  font-family: Georgia, serif;
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 900;
  line-height: 1.1;
  color: var(--gray-50);
}
.yearbook-modal-head h4 span{ color: var(--gold); font-style: italic; }
.yb-modal-rule{
  width: 6rem;
  height: 2px;
  background: var(--gold);
  margin: 1.4rem auto 0;
}
.yearbook-modal-body{
  position: relative;
  z-index: 1;
  padding: 2.2rem 3rem 2.6rem;
}
.yearbook-modal-note{
  margin: 0 0 1.8rem;
  color: var(--gray-500);
  font-family: var(--font-body);
  font-size: 1.35rem;
  font-weight: 400;
  text-align: center;
  letter-spacing: .03em;
}
.yearbook-year-grid{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr));
  gap: 1.2rem;
}
.yearbook-year-btn{
  border: 1px solid rgba(201,168,76,.3);
  background: rgba(201,168,76,.06);
  color: var(--gray-50);
  border-radius: var(--r-sm);
  padding: 1.6rem 1rem;
  text-align: center;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.4rem;
  transition: all .22s ease;
  position: relative;
  overflow: hidden;
}
.yearbook-year-btn:hover{
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
  background: rgba(201,168,76,.12);
}
.yearbook-year-btn strong{
  display: block;
  font-family: Georgia, serif;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: .2rem;
  color: inherit;
}
.yearbook-year-btn .yb-year-label{
  font-size: 1.1rem;
  letter-spacing: .2rem;
  text-transform: uppercase;
  opacity: .6;
}
.yearbook-empty{
  padding: 2rem;
  border: 1px dashed rgba(201,168,76,.3);
  border-radius: var(--r-sm);
  background: rgba(201,168,76,.05);
  color: var(--gray-500);
  font-family: var(--font-body);
  font-size: 1.4rem;
  text-align: center;
  line-height: 1.6;
}
.yearbook-empty strong{ color: var(--gold); }
.yearbook-modal-foot{
  position: relative;
  z-index: 1;
  padding: 0 3rem 2.4rem;
  display: flex;
  justify-content: center;
}
.yearbook-cancel-btn{
  border: 1px solid rgba(201,168,76,.3);
  background: transparent;
  color: var(--gray-500);
  font-family: var(--font-body);
  font-size: 1.3rem;
  letter-spacing: .15rem;
  text-transform: uppercase;
  padding: .9rem 2.2rem;
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: all .2s ease;
  font-weight: 600;
}
.yearbook-cancel-btn:hover{
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(201,168,76,.08);
}

/* =====================================================
   71. MANAGE STAFF (admin-manage-staff.php)
   .ms-* class family
   ===================================================== */
.ms-wrap{ background: var(--bg-alt); padding: 3rem 0 6rem; }
.ms-topbar{
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.6rem;
  margin-bottom: 2.4rem;
  background: var(--white);
  border-radius: var(--r-md);
  padding: 2rem 2.4rem;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-light);
}
.ms-topbar-info h3{
  margin: 0;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text);
  font-family: var(--font-heading);
}
.ms-topbar-info p{ margin: .6rem 0 0; color: var(--text-secondary); font-size: 1.4rem; }
.ms-topbar-info p strong{ color: var(--primary); }
.ms-actions{ display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }
.ms-err{ background: #fee2e2; color: #b91c1c; border: 1px solid #fecaca; border-radius: var(--r-md); padding: 1.1rem 1.6rem; margin-bottom: 1.8rem; font-size: 1.35rem; }
.ms-ok{ background: var(--green-100); color: var(--green-700); border: 1px solid var(--green-200); border-radius: var(--r-md); padding: 1.1rem 1.6rem; margin-bottom: 1.8rem; font-size: 1.35rem; }
.ms-card{ background: var(--white); border-radius: var(--r-md); box-shadow: var(--shadow-card); padding: 2.4rem 2.2rem; margin-bottom: 2.4rem; border: 1px solid var(--border-light); }
.ms-card h4{ font-size: 1.7rem; font-weight: 700; margin-bottom: 1.6rem; border-bottom: 2px solid var(--primary); padding-bottom: .9rem; color: var(--text); font-family: var(--font-heading); }
.ms-tabs{ display: flex; gap: 0; margin-bottom: 0; border-bottom: 2px solid var(--border); }
.ms-tab{ padding: 1.1rem 2.2rem; font-size: 1.35rem; font-weight: 600; cursor: pointer; border: 0; background: transparent; color: var(--text-secondary); border-bottom: 2px solid transparent; margin-bottom: -2px; transition: all var(--t-base); }
.ms-tab:hover{ color: var(--primary); }
.ms-tab.active{ color: var(--primary); border-bottom-color: var(--primary); }
.ms-tab-content{ display: none; padding-top: 2.4rem; }
.ms-tab-content.active{ display: block; }
.ms-lbl{ font-size: 1.3rem; font-weight: 600; margin-bottom: .4rem; display: block; color: var(--text); }
.ms-inp{ width: 100%; height: 4.2rem; border: 1px solid var(--border); border-radius: var(--r-md); padding: 0 1.2rem; font-size: 1.35rem; background: var(--white); color: var(--text); }
.ms-sel{ width: 100%; height: 4.2rem; border: 1px solid var(--border); border-radius: var(--r-md); padding: 0 1rem; font-size: 1.35rem; background: var(--white); color: var(--text); }
.ms-inp:focus,
.ms-sel:focus{ border-color: var(--primary); outline: none; box-shadow: 0 0 0 3px var(--primary-glow); }
.ms-row{ display: flex; flex-wrap: wrap; gap: 1.4rem; margin-bottom: 1.4rem; }
.ms-col2{ flex: 0 0 calc(50% - .7rem); min-width: 15rem; }
.ms-col3{ flex: 0 0 calc(33.33% - 1rem); min-width: 13rem; }
.ms-btn{
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .7rem 1.6rem;
  border-radius: var(--r-md);
  font-size: 1.3rem;
  font-weight: 600;
  cursor: pointer;
  border: 0;
  transition: all var(--t-base);
  text-decoration: none;
  color: var(--white);
  font-family: var(--font-body);
}
.ms-btn-orange{ background: var(--primary); }
.ms-btn-orange:hover{ background: var(--primary-dark); color: var(--white); }
.ms-btn-red{ background: #dc2626; }
.ms-btn-red:hover{ background: #b91c1c; color: var(--white); }
.ms-btn-green{ background: var(--green-600); }
.ms-btn-green:hover{ background: var(--green-700); color: var(--white); }
.ms-btn-blue{ background: var(--primary-dark); }
.ms-btn-blue:hover{ background: var(--primary-deeper); color: var(--white); }
.ms-btn-gray{ background: var(--gray-500); }
.ms-btn-gray:hover{ background: var(--gray-600); color: var(--white); }
.ms-table{ width: 100%; border-collapse: collapse; font-size: 1.4rem; }
.ms-table thead th{ background: var(--text); color: var(--white); padding: 1rem 1.2rem; text-align: left; font-weight: 600; font-size: 1.3rem; letter-spacing: .03em; }
.ms-table tbody tr:nth-child(even){ background: var(--bg-alt); }
.ms-table tbody td{ padding: .9rem 1.2rem; border-bottom: 1px solid var(--border-light); vertical-align: middle; }
.ms-table tbody tr:hover{ background: var(--amber-100); }
.bx{ display: inline-block; padding: .2rem .9rem; border-radius: var(--r-full); font-size: 1.2rem; font-weight: 600; letter-spacing: .03em; }
.badge-super{ background: var(--primary); color: var(--white); }
.badge-account{ background: var(--primary-dark); color: var(--white); }
.badge-result{ background: var(--green-600); color: var(--white); }
.badge-teacher{ background: #6d28d9; color: var(--white); }
.badge-subadmin{ background: #b45309; color: var(--white); }
.badge-nonteacher{ background: #0e7490; color: var(--white); }
.badge-other{ background: var(--gray-400); color: var(--white); }
.b-active{ background: var(--green-100); color: var(--green-700); }
.b-blocked{ background: #fee2e2; color: #b91c1c; }
.subj-grid{ display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); gap: .8rem; margin-top: .8rem; }
.subj-item{ display: flex; align-items: center; gap: .7rem; padding: .6rem 1rem; border: 1px solid var(--border); border-radius: var(--r-md); cursor: pointer; font-size: 1.3rem; transition: all .15s ease; }
.subj-item:hover{ border-color: var(--primary); background: var(--amber-100); }
.subj-item input[type=checkbox]{ accent-color: var(--primary); width: 1.5rem; height: 1.5rem; cursor: pointer; }
.ms-modal{ display: none; position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 9999; align-items: center; justify-content: center; padding: 1.6rem; }
.ms-modal.open{ display: flex; }
.ms-modal-box{ background: var(--white); border-radius: var(--r-md); padding: 2.6rem 2.4rem; width: 100%; max-width: 56rem; box-shadow: 0 8px 36px rgba(0,0,0,.2); position: relative; max-height: 90vh; overflow-y: auto; }
.ms-modal-box h5{ font-size: 1.8rem; font-weight: 700; margin-bottom: 1.4rem; padding-right: 2.8rem; color: var(--text); font-family: var(--font-heading); }
.ms-modal-close{ position: absolute; top: 1.4rem; right: 1.4rem; background: none; border: 0; font-size: 2rem; cursor: pointer; color: var(--text-secondary); line-height: 1; }
.pwd-wrap{ position: relative; }
.pwd-wrap .pt{ position: absolute; right: 1.1rem; top: 50%; transform: translateY(-50%); cursor: pointer; color: var(--text-muted); font-size: 1.4rem; }
.ms-search{ width: 100%; max-width: 28rem; height: 4rem; border: 1px solid var(--border); border-radius: var(--r-md); padding: 0 1.2rem; font-size: 1.3rem; }
.ms-search:focus{ border-color: var(--primary); outline: none; box-shadow: 0 0 0 3px var(--primary-glow); }

/* Manage-staff utilities (brand orange accent + action chips) */
.ms-accent      { color: var(--orange-600); }
.ms-accent-bg   { background: var(--orange-600); }
.ms-accent-bd   { border-color: var(--orange-600); }
.ms-accent-soft { background: var(--orange-100); }
.ms-icon-mr     { margin-right: 8px; }
.ms-text-muted  { color: var(--text-muted); }
.ms-text-success{ color: var(--green-600); font-weight: 700; }
.ms-text-pending{ color: var(--text-muted); }
.ms-tag-info    { font-size: 1.1rem; background: var(--primary-mist); color: var(--primary-dark); padding: 2px 8px; border-radius: 12px; font-weight: 700; }
.ms-btn-xs      { padding: 4px 10px !important; font-size: 1.1rem !important; margin: 2px !important; }
.ms-btn-trash   { background: #7b241c !important; }
.ms-btn-photo   { background: #5d6d7e !important; }
.ms-btn-bulk    { background: #1a5276 !important; color: var(--white) !important; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.ms-btn-print   { background: #2980b9 !important; color: var(--white) !important; padding: 4px 10px; font-size: 1.1rem; margin: 2px; display: inline-block; text-decoration: none; }
.ms-avatar      { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; vertical-align: middle; margin-right: 6px; border: 2px solid var(--orange-600); }
.ms-avatar-letter { display: inline-flex; width: 32px; height: 32px; border-radius: 50%; background: var(--orange-600); align-items: center; justify-content: center; color: var(--white); font-weight: 700; font-size: 1.4rem; vertical-align: middle; margin-right: 6px; }
.ms-avatar-lg   { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; border: 2px solid var(--orange-600); }
.ms-avatar-lg-letter { width: 42px; height: 42px; border-radius: 50%; background: var(--orange-600); display: flex; align-items: center; justify-content: center; color: var(--white); font-weight: 700; font-size: 1.6rem; }
.ms-modal-icon-orange { color: var(--orange-600); margin-right: 6px; }
.ms-modal-icon-blue   { color: #2980b9; margin-right: 6px; }
.ms-modal-icon-gray   { color: #7f8c8d; margin-right: 6px; }
.ms-modal-icon-lock   { color: var(--orange-600); margin-right: 6px; }
.ms-modal-photo-wrap  { width: 100px; height: 100px; border-radius: 50%; background: #ddd; margin: 0 auto 16px; overflow: hidden; border: 3px solid var(--orange-600); }
.ms-modal-photo-img   { width: 100%; height: 100%; object-fit: cover; display: none; }
.ms-modal-photo-letter { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 3.6rem; font-weight: 700; color: var(--white); background: var(--orange-600); }

/* Manage-staff layout / form utilities */
.ms-card--flush { padding-bottom: 0; }
.ms-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 10px; margin-bottom: 14px;
}
.ms-toolbar--wide { margin-bottom: 16px; }
.ms-count-text { font-size: 1.3rem; color: var(--text-muted); }
.ms-table-scroll { overflow-x: auto; }
.ms-empty { text-align: center; color: var(--text-muted); padding: 22px; }
.ms-empty-mssg { color: var(--text-muted); font-size: 1.2rem; }
.ms-col-actions { min-width: 230px; }
.ms-form-inline { display: inline; }
.ms-helper { font-size: 1.1rem; color: var(--text-muted); }
.ms-helper-block { font-size: 1.1rem; color: var(--text-muted); display: block; }
.ms-small { font-size: 1.1rem; }
.ms-qr-img { width: 44px; height: 44px; }
.ms-form-row { margin-bottom: 1.2rem; }
.ms-form-row--mid { margin-bottom: 1.4rem; }
.ms-form-row--wide { margin-bottom: 1.8rem; }
.ms-file-input { padding: 5px; height: auto; }
.ms-modal-head-left { text-align: left; }
.ms-photo-label { cursor: pointer; display: inline-flex; }
.ms-hidden-file { display: none; }
.ms-photo-status { margin-top: 1.2rem; font-size: 1.3rem; color: var(--text-muted); min-height: 1.8rem; }
.ms-photo-status--uploading { color: var(--text-muted); }
.ms-photo-status--success { color: var(--green-600); }
.ms-photo-status--error { color: #c0392b; }
.ms-subj-picker { display: none; margin-bottom: 1.4rem; }
.ms-subj-picker--role { display: none; margin-bottom: 1.6rem; }
.ms-lbl--spaced { margin-top: 1.2rem; }
.ms-btn-cancel { margin-left: 8px; }
.ms-btn-cancel-top { margin-top: 4px; }
.ms-photo-pad { padding: 16px 0; }
.ms-modal-box--photo { max-width: 400px; text-align: center; }

@media (max-width: 768px){
  .ms-col2{ flex: 0 0 100%; }
  .ms-table{ font-size: 1.2rem; }
  .ms-table td,
  .ms-table th{ padding: .7rem .8rem; }
  .ms-topbar{ flex-direction: column; align-items: flex-start; padding: 1.6rem 1.8rem; }
  .ms-topbar-info h3{ font-size: 1.8rem; }
  .ms-actions{ width: 100%; justify-content: stretch; }
  .ms-actions .ms-btn{ flex: 1; justify-content: center; padding: 1rem 1.2rem; font-size: 1.25rem; }
}

/* =====================================================
   57. ATTENDANCE PAGES (admin_teacher_fp_log, teacher_mark_attendance)
   Shared .att-* classes for filter, stats, table, badges
   ===================================================== */
.att-log-wrap,
.attendance-container{
  max-width: 128rem;
  margin: 2.4rem auto;
  padding: 0 1.6rem;
}
.att-filter-card{
  background: var(--white);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
  padding: 2rem 2.4rem;
  margin-bottom: 2.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.6rem;
  align-items: flex-end;
}
.att-filter-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  width: 100%;
}
.att-filter-group{
  display: flex;
  flex-direction: column;
  gap: .6rem;
}
.att-filter-group label{
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .06em;
}
.att-filter-group input,
.att-filter-group select{
  padding: 1.1rem 1.4rem;
  border: 2px solid var(--border);
  border-radius: var(--r-md);
  font-size: 1.4rem;
  outline: none;
  transition: all .2s;
  background: var(--white);
  color: var(--text);
  min-width: 18rem;
  font-family: var(--font-body);
}
.att-filter-group input:focus,
.att-filter-group select:focus{
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(217,119,6,.12);
}
.att-mode-toggle{
  display: flex;
  border: 2px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
}
.att-mode-btn{
  padding: 1rem 1.8rem;
  border: none;
  background: var(--white);
  color: var(--text-muted);
  font-size: 1.35rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
  font-family: var(--font-body);
}
.att-mode-btn:hover{
  background: var(--bg-alt);
  color: var(--text-secondary);
}
.att-mode-btn.active{
  background: var(--accent);
  color: var(--white);
}
.att-filter-btn{
  padding: 1.1rem 2rem;
  background: var(--accent);
  color: var(--white);
  border: none;
  border-radius: var(--r-md);
  font-size: 1.4rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
  display: inline-flex;
  align-items: center;
  gap: .8rem;
  font-family: var(--font-body);
  text-decoration: none;
}
.att-filter-btn:hover{
  background: var(--accent-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(217,119,6,.25);
  color: var(--white);
}
.att-btn-pdf{
  background: #ef4444;
  box-shadow: 0 4px 12px rgba(239,68,68,.25);
}
.att-btn-pdf:hover{
  background: #dc2626;
  box-shadow: 0 4px 16px rgba(239,68,68,.35);
}
.att-filter-btn-outline{
  padding: 1.1rem 2rem;
  background: var(--white);
  color: var(--accent);
  border: 2px solid var(--accent);
  border-radius: var(--r-md);
  font-size: 1.4rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .8rem;
  font-family: var(--font-body);
}
.att-filter-btn-outline:hover{
  background: var(--accent-light);
  transform: translateY(-1px);
  color: var(--accent);
}
.att-stats{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  gap: 1.6rem;
  margin-bottom: 2.4rem;
}
.att-stat-card{
  background: var(--white);
  border-radius: var(--r-md);
  padding: 2rem;
  box-shadow: var(--shadow-card);
  border-left: 4px solid var(--accent);
  transition: all .2s;
}
.att-stat-card:hover{
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.att-stat-card.green{ border-left-color: var(--green-500); }
.att-stat-card.red{ border-left-color: #ef4444; }
.att-stat-card.yellow{ border-left-color: var(--amber-500); }
.att-stat-card.blue{ border-left-color: var(--primary); }
.att-stat-card.purple{ border-left-color: #8b5cf6; }
.att-stat-num{
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -.03em;
  line-height: 1;
  font-family: var(--font-heading);
}
.att-stat-label{
  font-size: 1.3rem;
  color: var(--text-muted);
  margin-top: .6rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.att-table-card,
.att-summary-card{
  background: var(--white);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  margin-bottom: 2.4rem;
}
.att-table-header{
  padding: 1.8rem 2.4rem;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.att-table-header h3{
  margin: 0;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: var(--font-heading);
}
.att-table-header h3 i{ color: var(--accent); }
.att-table{
  width: 100%;
  border-collapse: collapse;
}
.att-table th{
  background: var(--bg-alt);
  padding: 1.4rem 1.8rem;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  text-align: left;
  border-bottom: 2px solid var(--border);
  white-space: nowrap;
}
.att-table td{
  padding: 1.4rem 1.8rem;
  font-size: 1.4rem;
  border-bottom: 1px solid var(--border-light);
  vertical-align: middle;
  color: var(--text);
}
.att-table tbody tr{ transition: background .15s; }
.att-table tbody tr:hover td{ background: var(--bg-alt); }
.att-table-responsive{
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.att-table-responsive::-webkit-scrollbar{ height: 6px; }
.att-table-responsive::-webkit-scrollbar-thumb{ background: var(--border); border-radius: 4px; }
.att-name-cell{
  display: flex;
  align-items: center;
  gap: 1rem;
}
.att-avatar{
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.4rem;
  flex-shrink: 0;
  background: rgba(59,130,246,.12);
  color: var(--primary);
}
.att-badge{
  display: inline-block;
  padding: .5rem 1.2rem;
  border-radius: var(--r-full);
  font-size: 1.2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.att-badge.present{ background: rgba(16,185,129,.12); color: var(--green-800); }
.att-badge.late{ background: rgba(245,158,11,.12); color: var(--amber-700); }
.att-badge.absent{ background: rgba(239,68,68,.12); color: #991b1b; }
.att-badge.out{ background: rgba(167,139,250,.12); color: #5b21b6; }
.att-empty{
  padding: 5.6rem 2.8rem;
  text-align: center;
  color: var(--text-muted);
}
.att-empty .icon{ font-size: 5.6rem; margin-bottom: 1.6rem; }
.att-empty h3{ font-size: 1.7rem; color: var(--text); margin: 0 0 .4rem; font-family: var(--font-heading); }
.att-empty p{ font-size: 1.5rem; margin: 0; }
.pct-bar{
  width: 100%;
  height: 8px;
  background: var(--border);
  border-radius: var(--r-full);
  overflow: hidden;
}
.pct-bar-fill{
  height: 100%;
  border-radius: var(--r-full);
  transition: width .4s cubic-bezier(.4,0,.2,1);
}
.pct-bar-fill.good{ background: var(--green-500); }
.pct-bar-fill.warn{ background: var(--amber-500); }
.pct-bar-fill.bad{ background: #ef4444; }
/* Ã¢â€â‚¬Ã¢â€â‚¬ Attendance Class Banner Ã¢â€â‚¬Ã¢â€â‚¬ */
.att-class-banner{
  background: var(--primary);
  color: var(--white);
  padding: 2rem 2.4rem;
  border-radius: var(--r-lg);
  margin-bottom: 2.4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.6rem;
  box-shadow: var(--shadow-md);
}
.att-class-info h4{
  margin: 0 0 .4rem 0;
  font-size: 1.7rem;
  font-weight: 700;
  font-family: var(--font-heading);
  color: var(--white);
}
.att-class-info p{
  margin: 0;
  opacity: .85;
  font-size: 1.35rem;
}
.att-quick-actions{
  display: flex;
  gap: .8rem;
  flex-wrap: wrap;
}
.att-btn{
  padding: 1rem 1.8rem;
  border-radius: var(--r-sm);
  border: none;
  cursor: pointer;
  font-size: 1.3rem;
  font-weight: 600;
  transition: all .2s;
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--font-body);
}
.att-btn-success{ background: var(--green-500); color: var(--white); }
.att-btn-success:hover{ background: var(--green-600); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(16,185,129,.3); }
.att-btn-danger{ background: #ef4444; color: var(--white); }
.att-btn-danger:hover{ background: #dc2626; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(239,68,68,.3); }
.att-btn-print{
  background: rgba(255,255,255,.15);
  color: var(--white);
  border: 1px solid rgba(255,255,255,.3);
}
.att-btn-print:hover{ background: rgba(255,255,255,.25); }
/* Ã¢â€â‚¬Ã¢â€â‚¬ Status Selector (Mark Attendance) Ã¢â€â‚¬Ã¢â€â‚¬ */
.status-selector{
  display: flex;
  gap: .6rem;
  flex-wrap: wrap;
}
.status-btn{
  padding: .6rem 1.4rem;
  border-radius: var(--r-full);
  border: 2px solid var(--border);
  font-size: 1.3rem;
  font-weight: 600;
  cursor: pointer;
  background: var(--white);
  transition: all .15s;
  white-space: nowrap;
  color: var(--text);
}
.status-btn input{ display: none; }
.status-btn.present{ border-color: var(--green-200); color: var(--green-700); }
.status-btn.present.active{ background: var(--green-500); color: var(--white); border-color: var(--green-500); }
.status-btn.absent{ border-color: #fca5a5; color: #991b1b; }
.status-btn.absent.active{ background: #ef4444; color: var(--white); border-color: #ef4444; }
.status-btn.late{ border-color: var(--amber-200); color: var(--amber-700); }
.status-btn.late.active{ background: var(--amber-500); color: var(--white); border-color: var(--amber-500); }
.status-btn.excused{ border-color: #93c5fd; color: var(--primary-deeper); }
.status-btn.excused.active{ background: var(--primary); color: var(--white); border-color: var(--primary); }
.remarks-input{
  width: 100%;
  max-width: 22rem;
  padding: .8rem 1.2rem;
  border-radius: var(--r-sm);
  border: 2px solid var(--border);
  font-size: 1.3rem;
  outline: none;
  transition: all .2s;
  font-family: var(--font-body);
}
.remarks-input:focus{ border-color: var(--accent); box-shadow: 0 0 0 3px rgba(217,119,6,.12); }
.att-save-wrap{
  text-align: center;
  padding: 2.4rem;
  background: var(--white);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
  margin-bottom: 2.4rem;
}
.att-save-btn{
  padding: 1.4rem 4.8rem;
  background: var(--green-500);
  color: var(--white);
  border: none;
  border-radius: var(--r-md);
  font-size: 1.5rem;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s;
  box-shadow: 0 4px 12px rgba(16,185,129,.25);
  font-family: var(--font-body);
}
.att-save-btn:hover{
  background: var(--green-600);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(16,185,129,.35);
}
.alert-success{
  background: rgba(16,185,129,.08);
  color: var(--green-800);
  border: 1px solid rgba(16,185,129,.2);
  border-radius: var(--r-md);
  padding: 1.4rem 1.8rem;
  margin-bottom: 2rem;
  font-size: 1.4rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: .8rem;
}
.att-inline-form{
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
  align-items: flex-end;
  flex: 1;
}
.att-muted-sm{ color: var(--text-muted); font-size: 1.2rem; }
.att-muted-xs{ color: var(--text-muted); font-size: 1.2rem; }
.att-mono-sm{ font-family: 'JetBrains Mono', 'Courier New', monospace; font-size: 1.25rem; }
.pct-bar-row{ display: flex; align-items: center; gap: 1rem; }
.pct-bar-row .pct-bar{ width: 12rem; }
.pct-label{ font-size: 1.3rem; }
.att-date-hint{
  color: var(--text-muted);
  font-size: 1.2rem;
  margin-top: .2rem;
  display: block;
}
.att-row-num{
  text-align: center;
  color: var(--text-muted);
  font-weight: 600;
}
.att-student-cell{
  display: flex;
  align-items: center;
  gap: 1rem;
}
.att-student-pix{
  border-radius: 50%;
  object-fit: cover;
}
/* Print modal (teacher_mark_attendance) */
.att-print-modal{
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}
.att-print-modal.is-open{ display: flex; }
.att-print-modal-inner{
  background: var(--white);
  border-radius: var(--r-md);
  padding: 2.8rem 3.2rem;
  width: 36rem;
  max-width: 95vw;
  box-shadow: 0 8px 32px rgba(0,0,0,.2);
}
.att-print-modal-title{
  margin: 0 0 1.8rem;
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: .8rem;
  font-family: var(--font-heading);
}
.att-print-icon{ color: var(--accent); }
.att-print-field{ margin-bottom: 1.4rem; }
.att-print-field-last{ margin-bottom: 2rem; }
.att-print-label{
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: .4rem;
  display: block;
  color: var(--text-secondary);
}
.att-print-input{
  width: 100%;
  padding: 1rem 1.2rem;
  border: 2px solid var(--border);
  border-radius: var(--r-sm);
  font-size: 1.35rem;
  outline: none;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
}
.att-print-input:focus{
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(217,119,6,.12);
}
.att-print-actions{
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
}
.att-print-btn-cancel{
  padding: 1rem 1.8rem;
  border: 2px solid var(--border);
  background: var(--white);
  border-radius: var(--r-sm);
  font-size: 1.35rem;
  cursor: pointer;
  font-weight: 600;
  color: var(--text-secondary);
  font-family: var(--font-body);
}
.att-print-btn-go{
  padding: 1rem 1.8rem;
  background: var(--accent);
  color: var(--white);
  border: none;
  border-radius: var(--r-sm);
  font-size: 1.35rem;
  cursor: pointer;
  font-weight: 600;
  font-family: var(--font-body);
}
.att-print-btn-go:hover{ background: var(--accent-dark); }
@media (max-width: 768px){
  .att-filter-card{ padding: 1.6rem; gap: 1.2rem; }
  .att-filter-grid{ grid-template-columns: 1fr; gap: 1.4rem; }
  .att-filter-group input, .att-filter-group select{ min-width: 13rem; font-size: 1.3rem; }
  .att-stats{ grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
  .att-stat-card{ padding: 1.6rem; }
  .att-stat-num{ font-size: 2rem; }
  .att-table{ font-size: 1.3rem; }
  .att-table th, .att-table td{ padding: 1rem 1.2rem; }
  .att-class-banner{ flex-direction: column; align-items: flex-start; }
  .att-quick-actions{ width: 100%; }
  .att-quick-actions .att-btn{ flex: 1; justify-content: center; }
  .status-selector{ gap: .4rem; }
  .status-btn{ padding: .4rem .8rem; font-size: 1.2rem; }
}
@media (max-width: 480px){
  .att-stats{ grid-template-columns: 1fr 1fr; }
  .att-filter-card{ flex-direction: column; }
  .att-filter-group input, .att-filter-group select{ width: 100%; min-width: 0; }
  .att-filter-btn, .att-filter-btn-outline{ width: 100%; justify-content: center; }
}

/* =====================================================
   58. TEACHER FINGERPRINT KIOSK PAGE (teacher_fp_attendance.php)
   Standalone dark-themed kiosk (no breadcrumb header)
   ===================================================== */
.kiosk-body{
  --kio-bg-primary: var(--gray-900);
  --kio-bg-secondary: var(--gray-800);
  --kio-bg-card: rgba(30, 41, 59, .7);
  --kio-bg-glass: rgba(255,255,255,.03);
  --kio-border: rgba(255,255,255,.08);
  --kio-text-primary: var(--gray-50);
  --kio-text-secondary: var(--gray-400);
  --kio-text-muted: var(--gray-500);
  --kio-accent: var(--primary-light);
  --kio-accent-glow: rgba(59,130,246,.3);
  --kio-success: var(--green-500);
  --kio-success-glow: rgba(16,185,129,.3);
  --kio-warning: var(--amber-500);
  --kio-warning-glow: rgba(245,158,11,.3);
  --kio-error: #ef4444;
  --kio-error-glow: rgba(239,68,68,.3);
  --kio-purple: #a78bfa;
  --kio-purple-glow: rgba(167,139,250,.3);

  background: var(--gray-900);
  color: var(--gray-50);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  margin: 0;
}
.kiosk-body *,
.kiosk-body *::before,
.kiosk-body *::after{
  box-sizing: border-box;
}
.kiosk-header{
  position: relative;
  z-index: 10;
  background: rgba(15, 23, 42, .85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,.08);
  padding: 1.6rem 2.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.2rem;
}
.header-brand{
  display: flex;
  align-items: center;
  gap: 1.4rem;
}
.header-logo{
  width: 4.2rem;
  height: 4.2rem;
  border-radius: var(--r-md);
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 4px 12px rgba(59,130,246,.3);
  color: var(--white);
}
.header-title h1{
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: -.02em;
  margin: 0;
  color: var(--gray-50);
}
.header-title p{
  font-size: 1.3rem;
  color: var(--gray-500);
  margin: .2rem 0 0;
}
.header-clock{ text-align: right; }
.clock-time{
  font-family: 'JetBrains Mono', monospace;
  font-size: 2.6rem;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: .05em;
}
.clock-date{
  font-size: 1.35rem;
  color: var(--gray-400);
  margin-top: .3rem;
}
.kiosk-main{
  position: relative;
  z-index: 1;
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 42rem;
  gap: 0;
  min-height: 0;
}
.kiosk-scanner{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4.8rem 2.4rem;
  position: relative;
}
.scanner-status{
  position: absolute;
  top: 2rem;
  left: 2.4rem;
  display: flex;
  align-items: center;
  gap: .8rem;
  padding: 1rem 1.6rem;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--r-full);
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.3rem;
  color: var(--gray-500);
}
.status-dot{
  width: .7rem;
  height: .7rem;
  border-radius: 50%;
  background: var(--gray-500);
}
.status-dot.connected{ background: var(--green-500); box-shadow: 0 0 8px rgba(16,185,129,.3); }
.status-dot.disconnected{ background: #ef4444; box-shadow: 0 0 8px rgba(239,68,68,.3); }
.status-dot.busy{ background: var(--amber-500); box-shadow: 0 0 8px rgba(245,158,11,.3); animation: kio-pulse 1.5s infinite; }
@keyframes kio-pulse{ 0%,100%{opacity:1} 50%{opacity:.4} }
.scanner-ring-wrap{
  position: relative;
  margin-bottom: 3.2rem;
}
.scanner-ring-wrap::before{
  content: '';
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  background: rgba(59,130,246,.18);
  opacity: 0;
  transition: opacity .4s;
  filter: blur(20px);
}
.scanner-ring-wrap.active::before{ opacity: 1; }
.scanner-ring{
  width: 18rem;
  height: 18rem;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .4s cubic-bezier(.4,0,.2,1);
  position: relative;
  background: rgba(255,255,255,.03);
  color: var(--gray-400);
}
.scanner-ring svg{ width: 8rem; height: 8rem; opacity: .6; transition: opacity .3s; }
.scanner-ring.scanning{
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(59,130,246,.3), 0 0 48px rgba(59,130,246,.3);
  animation: ringPulse 2s infinite;
  color: var(--primary);
}
.scanner-ring.scanning svg{ opacity: 1; }
.scanner-ring.success{
  border-color: var(--green-500);
  box-shadow: 0 0 0 4px rgba(16,185,129,.3), 0 0 48px rgba(16,185,129,.3);
  color: var(--green-500);
}
.scanner-ring.success svg{ opacity: 1; }
.scanner-ring.error{
  border-color: #ef4444;
  box-shadow: 0 0 0 4px rgba(239,68,68,.3), 0 0 48px rgba(239,68,68,.3);
  color: #ef4444;
}
.scanner-ring.error svg{ opacity: 1; }
@keyframes ringPulse{ 0%,100%{transform:scale(1)} 50%{transform:scale(1.03)} }
.scanner-message{
  font-size: 1.9rem;
  font-weight: 600;
  text-align: center;
  min-height: 2.4em;
  margin-bottom: 1rem;
  transition: all .3s;
  color: var(--gray-50);
}
.scanner-message.ok{ color: var(--green-500); }
.scanner-message.busy{ color: var(--primary); }
.scanner-message.bad{ color: #ef4444; }
.scanner-sub{
  font-size: 1.4rem;
  color: var(--gray-500);
  text-align: center;
  min-height: 1.4em;
}
.kiosk-sidebar{
  background: rgba(15,23,42,.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-left: 1px solid rgba(255,255,255,.08);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.stats-bar{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.stat-item{
  padding: 1.6rem 1rem;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,.08);
  position: relative;
  transition: background .2s;
}
.stat-item:hover{ background: rgba(255,255,255,.03); }
.stat-item:last-child{ border-right: none; }
.stat-num{
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1;
}
.stat-num.green{ color: var(--green-500); }
.stat-num.yellow{ color: var(--amber-500); }
.stat-num.blue{ color: var(--primary); }
.stat-num.purple{ color: #a78bfa; }
.stat-label{
  font-size: 1.2rem;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: .06em;
  font-weight: 600;
  margin-top: .5rem;
}
.kiosk-body .att-tabs{
  display: flex;
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
}
.kiosk-body .att-tab{
  flex: 1;
  padding: 1.6rem 1.4rem;
  text-align: center;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--gray-500);
  cursor: pointer;
  border: none;
  background: none;
  border-bottom: 2px solid transparent;
  transition: all .2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .8rem;
  font-family: 'Inter', sans-serif;
}
.kiosk-body .att-tab:hover{ color: var(--gray-400); background: rgba(255,255,255,.02); }
.kiosk-body .att-tab.active{ color: var(--primary); border-bottom-color: var(--primary); }
.tab-count{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  height: 2rem;
  padding: 0 .6rem;
  border-radius: var(--r-full);
  font-size: 1.1rem;
  font-weight: 700;
  background: rgba(59,130,246,.15);
  color: var(--primary);
}
.kiosk-body .att-tab.active .tab-count{ background: var(--primary); color: var(--white); }
.attendance-list{
  flex: 1;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.08) transparent;
}
.attendance-list::-webkit-scrollbar{ width: 4px; }
.attendance-list::-webkit-scrollbar-track{ background: transparent; }
.attendance-list::-webkit-scrollbar-thumb{ background: rgba(255,255,255,.08); border-radius: 4px; }
.tab-panel{ display: none; }
.tab-panel.active{ display: block; }
.att-item{
  display: flex;
  align-items: center;
  gap: 1.4rem;
  padding: 1.4rem 1.8rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
  transition: all .2s;
  animation: slideIn .35s cubic-bezier(.4,0,.2,1);
}
.att-item:hover{ background: rgba(255,255,255,.03); }
.att-item.new{
  background: rgba(16,185,129,.08);
  border-left: 3px solid var(--green-500);
}
@keyframes slideIn{ from{opacity:0;transform:translateX(16px)} to{opacity:1;transform:translateX(0)} }
.kiosk-body .att-avatar{
  width: 4.2rem;
  height: 4.2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.5rem;
  flex-shrink: 0;
  position: relative;
}
.kiosk-body .att-avatar::after{
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 2px solid transparent;
}
.kiosk-body .att-avatar.present{ background: rgba(16,185,129,.12); color: var(--green-500); }
.kiosk-body .att-avatar.present::after{ border-color: rgba(16,185,129,.3); }
.kiosk-body .att-avatar.late{ background: rgba(245,158,11,.12); color: var(--amber-500); }
.kiosk-body .att-avatar.late::after{ border-color: rgba(245,158,11,.3); }
.kiosk-body .att-avatar.out{ background: rgba(167,139,250,.12); color: #a78bfa; }
.kiosk-body .att-avatar.out::after{ border-color: rgba(167,139,250,.3); }
.att-info{ flex: 1; min-width: 0; }
.att-name{
  font-size: 1.4rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--gray-50);
}
.att-time{
  font-size: 1.25rem;
  color: var(--gray-500);
  font-family: 'JetBrains Mono', monospace;
  margin-top: .3rem;
}
.kiosk-body .att-badge{
  font-size: 1.15rem;
  font-weight: 700;
  padding: .5rem 1.2rem;
  border-radius: var(--r-full);
  text-transform: uppercase;
  letter-spacing: .05em;
  flex-shrink: 0;
}
.kiosk-body .att-badge.present{ background: rgba(16,185,129,.12); color: var(--green-500); }
.kiosk-body .att-badge.late{ background: rgba(245,158,11,.12); color: var(--amber-500); }
.kiosk-body .att-badge.out{ background: rgba(167,139,250,.12); color: #a78bfa; }
.empty-list{
  padding: 5.6rem 2.8rem;
  text-align: center;
  color: var(--gray-500);
}
.empty-icon{
  width: 6.4rem;
  height: 6.4rem;
  border-radius: 50%;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.8rem;
  margin: 0 auto 1.4rem;
}
.empty-list p{ font-size: 1.5rem; }
.empty-list .sub{ font-size: 1.3rem; color: var(--gray-500); margin-top: .6rem; }
.cert-notice{
  display: none;
  position: fixed;
  bottom: 2.4rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gray-800);
  border: 1px solid var(--primary);
  border-radius: var(--r-lg);
  padding: 1.6rem 2.4rem;
  font-size: 1.3rem;
  color: var(--gray-50);
  z-index: 1000;
  max-width: 48rem;
  box-shadow: 0 8px 32px rgba(0,0,0,.5), 0 0 32px rgba(59,130,246,.3);
}
.cert-notice a{ color: var(--primary); text-decoration: underline; }
.cert-notice strong{ color: var(--amber-500); }
@media (max-width: 1024px){
  .kiosk-main{
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
  }
  .kiosk-sidebar{
    border-left: none;
    border-top: 1px solid rgba(255,255,255,.08);
    max-height: 50vh;
  }
}
@media (max-width: 768px){
  .kiosk-header{ padding: 1.2rem 1.6rem; }
  .header-logo{ width: 3.6rem; height: 3.6rem; font-size: 1.6rem; }
  .clock-time{ font-size: 1.8rem; }
  .kiosk-scanner{ padding: 3.2rem 1.6rem; }
  .scanner-ring{ width: 15rem; height: 15rem; }
  .scanner-ring svg{ width: 6.4rem; height: 6.4rem; }
  .stats-bar{ grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2){ border-right: none; }
  .stat-item:nth-child(1), .stat-item:nth-child(2){ border-bottom: 1px solid rgba(255,255,255,.08); }
}
@media (max-width: 480px){
  .header-brand{ gap: 1rem; }
  .header-title h1{ font-size: 1.4rem; }
  .header-title p{ display: none; }
  .scanner-ring{ width: 13rem; height: 13rem; }
  .scanner-message{ font-size: 1.5rem; }
}

/* =====================================================
   59. ANNOUNCEMENT MANAGEMENT PAGE (admin_create_announcement.php)
   ===================================================== */
.announcement-container{
  max-width: 120rem;
  margin: 3rem auto;
  padding: 2rem 1.6rem;
}
.announcement-container .card{
  background: var(--white);
  border-radius: var(--r-lg);
  padding: 2.4rem;
  margin-bottom: 2.4rem;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-light);
  transition: all var(--t-base);
}
.announcement-container .card:hover{
  box-shadow: var(--shadow-md);
  border-color: var(--border);
}
.announcement-container .card h3{
  margin: 0 0 1.8rem 0;
  color: var(--text);
  font-size: 1.8rem;
  font-weight: 700;
  padding-bottom: 1.2rem;
  border-bottom: 2px solid var(--border-light);
  letter-spacing: -.5px;
  font-family: var(--font-heading);
}
.announcement-container .form-group{
  margin-bottom: 1.6rem;
}
.announcement-container .form-group label{
  display: block;
  margin-bottom: .6rem;
  font-weight: 600;
  color: var(--text-secondary);
  font-size: 1.4rem;
}
.announcement-container .form-control{
  width: 100%;
  padding: 1.2rem 1.4rem;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  font-size: 1.4rem;
  transition: all var(--t-base);
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
}
.announcement-container .form-control:focus{
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}
.announcement-container textarea.form-control{
  min-height: 15rem;
  resize: vertical;
}
.announcement-container .form-row{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.4rem;
}
.announcement-container .form-row-3{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
.announcement-container .btn{
  padding: 1rem 2rem;
  border: none;
  border-radius: var(--r-sm);
  cursor: pointer;
  font-weight: 600;
  font-size: 1.4rem;
  transition: all var(--t-base);
  font-family: var(--font-body);
  text-decoration: none;
  display: inline-block;
}
.announcement-container .btn-primary{ background: var(--primary); color: var(--white); }
.announcement-container .btn-primary:hover{ background: var(--primary-dark); color: var(--white); }
.announcement-container .btn-danger{ background: #ef4444; color: var(--white); }
.announcement-container .btn-danger:hover{ background: #dc2626; color: var(--white); }
.announcement-container .btn-warning{ background: var(--accent); color: var(--white); }
.announcement-container .btn-warning:hover{ background: var(--accent-dark); color: var(--white); }
.announcement-item{
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 2rem;
  margin-bottom: 1.6rem;
  position: relative;
}
.announcement-item.urgent{ border-left: 5px solid #ef4444; }
.announcement-item.high{ border-left: 5px solid var(--accent); }
.announcement-item.inactive{ opacity: .6; }
.announcement-header{
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.2rem;
  gap: 1rem;
}
.announcement-title{
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--text);
  font-family: var(--font-heading);
}
.announcement-meta{
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  margin-top: .8rem;
}
.meta-badge,
.status-badge{
  padding: .4rem 1.2rem;
  border-radius: var(--r-full);
  font-size: 1.15rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  border: 1px solid;
}
.category-general{
  background: var(--primary-mist);
  color: var(--primary-deeper);
  border-color: var(--primary);
}
.category-academic{
  background: #ede9fe;
  color: #6b21a8;
  border-color: #a855f7;
}
.category-event{
  background: var(--green-100);
  color: var(--green-700);
  border-color: var(--green-500);
}
.category-urgent{
  background: #fee2e2;
  color: #ef4444;
  border-color: #ef4444;
}
.category-fee{
  background: var(--amber-100);
  color: var(--amber-700);
  border-color: var(--amber-500);
}
.priority-urgent{
  background: #ef4444;
  color: var(--white);
  border-color: #ef4444;
}
.priority-high{
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}
.priority-normal{
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}
.priority-low{
  background: var(--gray-400);
  color: var(--white);
  border-color: var(--gray-500);
}
.target-badge{
  background: var(--green-100);
  color: var(--green-700);
  border-color: var(--green-500);
}
.status-badge.status-active{
  background: var(--green-100);
  color: var(--green-700);
  border-color: var(--green-500);
}
.status-badge.status-inactive{
  background: var(--gray-200);
  color: var(--gray-600);
  border-color: var(--gray-300);
}
.announcement-content{
  background: var(--bg-alt);
  padding: 1.4rem;
  border-radius: var(--r-sm);
  line-height: 1.6;
  margin-bottom: 1.4rem;
  border: 1px solid var(--border-light);
  color: var(--text);
  font-size: 1.4rem;
}
.announcement-footer{
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.4rem;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 1rem;
}
.announcement-date{
  font-size: 1.35rem;
  color: var(--text-muted);
  font-weight: 500;
}
.announcement-actions{
  display: flex;
  gap: .8rem;
  flex-wrap: wrap;
}
.empty-state{
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-muted);
}
.empty-state h3{
  color: var(--text-secondary);
  font-size: 1.7rem;
  margin: 1rem 0;
  font-weight: 600;
  font-family: var(--font-heading);
}
.empty-state p{
  color: var(--text-muted);
  font-size: 1.4rem;
}
.empty-state-icon{
  font-size: 4.8rem;
  margin-bottom: 1rem;
}
.expired-badge{
  background: #f8d7da !important;
  color: #721c24 !important;
  border-color: #f5c6cb !important;
}
.announcement-flex{ flex: 1; }
.announcement-toolbar{
  text-align: right;
  margin-bottom: 2rem;
}
/* Class search dropdown */
.class-dropdown,
.subject-dropdown{
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 9999;
  margin-top: -1px;
  background: var(--white);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 var(--r-sm) var(--r-sm);
  max-height: 24rem;
  overflow-y: auto;
  box-shadow: var(--shadow-md);
}
.cd-item,
.sd-item{
  padding: 1rem 1.4rem;
  cursor: pointer;
  font-size: 1.4rem;
  color: var(--text);
  border-bottom: 1px solid var(--border-light);
  transition: background .15s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cd-item:last-child,
.sd-item:last-child{ border-bottom: none; }
.cd-item:hover,
.sd-item:hover{ background: var(--bg-alt); color: var(--primary); }
.sd-item.sd-add{ color: var(--primary); font-weight: 600; }
.sd-item.sd-add:hover{ background: var(--primary-mist); }
.ann-class-group{ display: none; }
.ann-class-group.is-open{ display: block; }
@media (max-width: 768px){
  .announcement-container{ padding: 1.4rem; }
  .announcement-container .card{ padding: 1.8rem; }
  .announcement-container .form-row,
  .announcement-container .form-row-3{ grid-template-columns: 1fr; }
  .announcement-header{ flex-direction: column; align-items: stretch; }
  .announcement-container .btn{ width: 100%; text-align: center; }
}
@media (max-width: 480px){
  .announcement-container .card h3{ font-size: 1.6rem; }
  .announcement-item{ padding: 1.4rem; }
}

/* =====================================================
   60. CBT EXAM MANAGEMENT (teacher_create_exam.php)
   ===================================================== */
.cbt-container{
  max-width: 120rem;
  margin: 3rem auto;
  padding: 2rem 1.6rem;
}
.cbt-container .form-group,
.flashcard-container .form-group,
.ssf-page .form-group{ position: relative; margin-bottom: 1.6rem; }
.cbt-card{
  background: var(--white);
  border-radius: var(--r-lg);
  padding: 2.4rem;
  margin-bottom: 2.4rem;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-light);
  transition: all var(--t-base);
}
.cbt-card:hover{
  box-shadow: var(--shadow-md);
  border-color: var(--border);
}
.cbt-card h3{
  margin: 0 0 1.8rem 0;
  padding-bottom: 1.2rem;
  color: var(--text);
  font-size: 1.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 1rem;
  border-bottom: 2px solid var(--border-light);
  letter-spacing: -.5px;
  font-family: var(--font-heading);
}
.cbt-container .form-group label{
  display: block;
  margin-bottom: .8rem;
  font-weight: 600;
  font-size: 1.3rem;
  color: var(--text-secondary);
  letter-spacing: .3px;
  text-transform: uppercase;
}
.cbt-container .form-control{
  width: 100%;
  padding: 1.2rem 1.4rem;
  border: 2px solid var(--border);
  border-radius: var(--r-sm);
  font-size: 1.5rem;
  color: var(--text);
  background-color: var(--white);
  transition: all var(--t-base);
  box-sizing: border-box;
  font-family: var(--font-body);
  min-height: 4.8rem;
  line-height: 1.6;
}
.cbt-container .form-control:focus{
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}
.cbt-container .form-control:hover{ border-color: var(--gray-300); }
.cbt-container select.form-control{
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%234b5563' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3E%3C/svg%3E");
  background-position: right 1rem center;
  background-repeat: no-repeat;
  background-size: 1.25em 1.25em;
  padding-right: 2.5rem;
  appearance: none;
}
.cbt-container textarea.form-control{
  min-height: 12rem;
  resize: vertical;
  padding: 1rem;
}
.cbt-container .form-row{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(28rem, 1fr));
  gap: 1.6rem;
  margin-bottom: 1.6rem;
}
.cbt-container .btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  padding: 1rem 1.6rem;
  border: none;
  border-radius: var(--r-sm);
  cursor: pointer;
  font-size: 1.4rem;
  font-weight: 600;
  transition: all var(--t-base);
  text-decoration: none;
  white-space: nowrap;
  box-shadow: var(--shadow-xs);
  letter-spacing: .3px;
  font-family: var(--font-body);
}
.cbt-container .btn:hover{
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.cbt-container .btn-primary{ background: var(--primary); color: var(--white); }
.cbt-container .btn-primary:hover{ background: var(--primary-dark); color: var(--white); }
.cbt-container .btn-success{ background: var(--green-500); color: var(--white); }
.cbt-container .btn-success:hover{ background: var(--green-600); color: var(--white); }
.cbt-container .btn-danger{ background: #ef4444; color: var(--white); }
.cbt-container .btn-danger:hover{ background: #dc2626; color: var(--white); }
.cbt-container .btn-warning{ background: var(--accent); color: var(--white); }
.cbt-container .btn-warning:hover{ background: var(--accent-dark); color: var(--white); }
.cbt-container .btn-sm{
  padding: .7rem 1.2rem;
  font-size: 1.25rem;
  margin-right: .4rem;
}
.cbt-container .alert{
  padding: 1.2rem 1.6rem;
  margin-bottom: 1.6rem;
  border-radius: var(--r-md);
  font-size: 1.4rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 1rem;
  border-left: 4px solid;
}
.cbt-container .alert-success{
  background-color: var(--green-50);
  color: var(--green-800);
  border-left-color: var(--green-500);
  box-shadow: 0 4px 6px -1px rgba(16,185,129,.15);
}
.cbt-container .alert-error{
  background-color: #fef2f2;
  color: #7f1d1d;
  border-left-color: #ef4444;
  box-shadow: 0 4px 6px -1px rgba(239,68,68,.15);
}
.exam-item{
  background: var(--white);
  border-radius: var(--r-md);
  padding: 1.8rem;
  border: 1px solid var(--border);
  margin-bottom: 1.6rem;
  transition: all var(--t-base);
}
.exam-item:hover{
  box-shadow: var(--shadow-md);
  border-color: var(--primary-mist);
}
.exam-header{
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.2rem;
  margin-bottom: 1.2rem;
  flex-wrap: wrap;
}
.exam-title{
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--text);
  font-family: var(--font-heading);
}
.exam-meta{
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
}
.exam-meta-spaced{ margin-top: 1.4rem; }
.meta-tag{
  background: var(--primary-mist);
  border: 1px solid var(--primary);
  padding: .4rem 1rem;
  border-radius: var(--r-full);
  font-size: 1.2rem;
  color: var(--primary-dark);
  font-weight: 600;
  letter-spacing: .5px;
}
.exam-actions{
  display: flex;
  gap: .8rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.info-box{
  background: var(--primary-mist);
  border-left: 4px solid var(--primary);
  padding: 1.4rem 1.8rem;
  border-radius: var(--r-md);
  color: var(--primary-dark);
  margin-bottom: 1.6rem;
  border: 1px solid var(--primary);
  font-size: 1.4rem;
}
.info-box p{ margin: 0; line-height: 1.6; }
.cbt-container .empty-state{ padding: 4rem 2rem; }
.exam-code-banner{
  background: var(--primary-light);
  color: var(--white);
  padding: .8rem 1.5rem;
  border-radius: var(--r-sm);
  display: inline-block;
  margin-top: 1rem;
  font-size: 1.4rem;
  font-weight: bold;
}
.exam-code-banner .ec-label{ color: var(--primary-deeper); }
.exam-date-info{
  color: var(--text-muted);
  font-size: 1.3rem;
  display: block;
  margin-top: 1rem;
}
/* CBT Modal */
.cbt-modal{
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,.5);
}
.cbt-modal.is-open{ display: block; }
.cbt-modal .modal-content{
  background-color: var(--white);
  margin: 3% auto;
  padding: 0;
  border-radius: var(--r-md);
  width: 90%;
  max-width: 80rem;
  box-shadow: var(--shadow-xl);
  max-height: 90vh;
  overflow-y: auto;
}
.cbt-modal .modal-header{
  padding: 2rem;
  background: var(--primary);
  color: var(--white);
  border-radius: var(--r-md) var(--r-md) 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.cbt-modal .modal-header h3{
  margin: 0;
  font-size: 1.8rem;
  color: var(--white);
  font-family: var(--font-heading);
}
.cbt-modal .close-btn{
  background: none;
  border: none;
  color: var(--white);
  font-size: 2.8rem;
  cursor: pointer;
  padding: 0;
  width: 3rem;
  height: 3rem;
  line-height: 3rem;
  text-align: center;
}
.cbt-modal .close-btn:hover{ opacity: .8; }
#editExamFormContainer{ padding: 2rem; }
.cbt-toolbar{ text-align: right; margin-bottom: 2rem; }
.available-questions-good{ color: var(--green-500); }
.available-questions-warn{ color: #ef4444; }
@media (max-width: 768px){
  .cbt-container{ padding: 1.4rem; }
  .cbt-card{ padding: 1.8rem; }
  .cbt-container .form-row{ grid-template-columns: 1fr; }
  .exam-header{ flex-direction: column; gap: .8rem; }
  .exam-actions{ justify-content: flex-start; }
  .cbt-container .btn{ width: 100%; }
}
@media (max-width: 480px){
  .cbt-card h3{ font-size: 1.6rem; flex-wrap: wrap; }
  .cbt-container .btn{ font-size: 1.3rem; padding: .8rem 1rem; }
}

/* =====================================================
   SECTION 61: FEE STRUCTURE PAGE
   ===================================================== */
.fee-container{
  max-width: 120rem;
  margin: 2rem auto;
  padding: 0 1.5rem;
}

.fee-actions-right{ text-align: right; margin-bottom: 2rem; }

.fee-card{
  background: var(--white);
  border-radius: var(--r-lg);
  padding: 2.4rem 2.6rem;
  margin-bottom: 2.4rem;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-light);
}
.fee-card h3{
  margin: 0 0 1rem;
  color: var(--text);
  font-size: 1.6rem;
  font-weight: 600;
  padding-bottom: .5rem;
  border-bottom: 2px solid var(--primary-mist);
}

.fee-form-row{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.fee-form-row-2col{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.fee-form-bottom{ margin-bottom: 3rem; }

.fee-section-heading{
  margin: 2.4rem 0 .6rem;
  color: var(--text-secondary);
  font-size: 1.6rem;
  font-weight: 600;
}
.fee-section-help{
  margin: 0 0 1.4rem;
  font-size: 1.35rem;
  color: var(--text-muted);
}
.fee-form-actions{ text-align: center; margin-top: 3rem; }

.fee-container .form-group,
.flashcard-container .form-group{ position: relative; }

/* Form hint text (under inputs) */
.form-hint {
    display: block;
    margin-top: 0.4rem;
    font-size: 1.15rem;
    color: var(--text-muted, #6b7280);
    line-height: 1.4;
}

.fee-items-list{ display: grid; gap: .5rem; }
.fee-item-row{
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: var(--bg-alt);
  border-radius: var(--r-md);
  gap: 1rem;
}
.fee-item-name{ font-size: 1.5rem; font-weight: 600; }
.fee-item-desc{ color: var(--text-muted); font-size: 1.2rem; }
.fee-list-empty{
  text-align: center;
  padding: 2rem;
  color: var(--text-muted);
  font-size: 1.4rem;
}

.fee-item-selector{
  display: flex;
  flex-direction: column;
  gap: .5rem;
  margin-top: .5rem;
}
.fee-item-choice{
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: var(--bg-alt);
  border: 2px solid var(--border);
  border-radius: var(--r-md);
  cursor: pointer;
  transition: all var(--t-fast);
  user-select: none;
}
.fee-item-choice:hover{
  border-color: var(--primary);
  background: var(--primary-mist);
}
.fee-item-choice.fic-selected{
  border-color: var(--primary);
  background: var(--primary-mist);
  box-shadow: 0 0 0 3px rgba(12,84,48,.12);
}
.fic-check{ flex-shrink: 0; display: flex; align-items: center; }
.fic-check input[type="checkbox"]{
  width: 2rem;
  height: 2rem;
  cursor: pointer;
  accent-color: var(--primary);
}
.fic-info{ flex: 1; }
.fic-name{ font-size: 1.4rem; font-weight: 600; color: var(--text); }
.fic-desc{ font-size: 1.3rem; color: var(--text-muted); margin-top: 2px; }
.fic-tick{
  font-size: 1.6rem;
  color: var(--primary);
  font-weight: 800;
  opacity: 0;
  transform: scale(.5);
  transition: all var(--t-fast);
}
.fee-item-choice.fic-selected .fic-tick{
  opacity: 1;
  transform: scale(1);
}

.fee-amount-section{ display: none; margin-top: 2rem; }
.fee-amount-section.is-open{ display: block; }
.fee-amount-formgroup{ margin: 1.2rem 0 0; }

.amount-entry-box{
  background: var(--primary-mist);
  border: 2px solid var(--primary);
  border-radius: var(--r-lg);
  padding: 1.5rem 2rem;
}
.aeb-label{
  font-size: 1.4rem;
  color: var(--primary-dark);
  font-weight: 600;
  margin-bottom: .25rem;
}

.fee-table-wrap{
  background: var(--white);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  border: 1px solid var(--border-light);
  margin-top: 1.5rem;
}
.fee-table{
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  font-size: 1.3rem;
}
.fee-table th{
  background: var(--gray-800);
  color: var(--white);
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  font-size: 1.3rem;
  white-space: nowrap;
}
.fee-table td{
  padding: 1rem;
  border-bottom: 1px solid var(--border-light);
  font-size: 1.3rem;
}
.fee-table tbody tr:hover{ background: var(--bg-alt); }
.fee-table tbody tr:last-child td{ border-bottom: 0; }
.fee-table .total-row{
  background: var(--primary-mist);
  font-weight: 700;
}

.fee-cell-items{ color: var(--gray-600); font-size: 1.25rem; }
.fee-cell-empty{ color: var(--gray-400); font-style: italic; }
.fee-status-active{ color: var(--green-500); font-weight: 700; }
.fee-status-inactive{ color: var(--text-muted); font-weight: 600; }
.fee-link{
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}
.fee-link:hover{ text-decoration: underline; }

.fee-no-items{
  padding: 3rem;
  text-align: center;
  background: var(--bg-alt);
  border-radius: var(--r-md);
  color: var(--text-muted);
  font-size: 1.4rem;
}
.fee-empty-state{ text-align: center; padding: 4rem 2rem; }
.fee-empty-icon{ font-size: 4.8rem; margin-bottom: 1.5rem; }
.fee-empty-text{ color: var(--text-muted); font-size: 1.6rem; }

@media (max-width: 768px){
  .fee-form-row,
  .fee-form-row-2col{ grid-template-columns: 1fr; }
  .fee-container{ padding: 0 1rem; }
  .fee-card{ padding: 1.5rem; }
  .fee-container .btn{ width: 100%; justify-content: center; }
}

/* =====================================================
   SECTION 62: PRACTICE QUESTIONS PAGE
   ===================================================== */
*,*::before,*::after{ box-sizing: border-box; }
.pq-wrap{ background: var(--bg-alt); min-height: 100vh; padding-bottom: 6rem; }

/* Top bar (solid color, no gradient) */
.pq-topbar{ background: var(--primary-dark); color: var(--white); padding: 1.8rem 0; }
.pq-topbar .tbi{ display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; flex-wrap: wrap; }
.pq-topbar h2{ margin: 0; font-size: 2rem; font-weight: 800; color: var(--white); }
.pq-topbar p{ margin: .2rem 0 0; font-size: 1.3rem; opacity: .85; }

/* Breadcrumb */
.pq-bc{ font-size: 1.2rem; opacity: .7; margin-bottom: .4rem; }
.pq-bc a{ color: var(--white); text-decoration: none; }
.pq-bc a:hover{ text-decoration: underline; opacity: 1; }
.pq-bc-sep{ margin: 0 .5rem; opacity: .5; }

.pq-back{
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .8rem 1.6rem; border-radius: var(--r-sm);
  font-size: 1.3rem; font-weight: 700; text-decoration: none;
  border: 1.5px solid rgba(255,255,255,.7); color: var(--white);
  background: transparent; white-space: nowrap;
}
.pq-back:hover{ background: rgba(255,255,255,.18); color: var(--white); text-decoration: none; }

/* Stats grid */
.pq-stats{ display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; padding: 2rem 0 0; }
.pq-stat{
  background: var(--white); border-radius: var(--r-md);
  padding: 1.6rem; box-shadow: var(--shadow-sm);
  border-top: 4px solid transparent; text-align: center;
}
.pq-stat.sj{ border-top-color: var(--primary); }
.pq-stat.sw{ border-top-color: var(--green-500); }
.pq-stat.st{ border-top-color: var(--accent); }
.pq-stat.sa{ border-top-color: #8b5cf6; }
.pq-stat-val{ font-size: 2.6rem; font-weight: 900; color: var(--gray-900); }
.pq-stat-lbl{
  font-size: 1.1rem; font-weight: 700; color: var(--gray-500);
  text-transform: uppercase; letter-spacing: .04em; margin-top: 3px;
}

/* Card */
.pq-card{
  background: var(--white); border-radius: var(--r-md);
  box-shadow: var(--shadow-sm); margin-top: 2rem; overflow: hidden;
}
.pq-ch{
  background: var(--primary-dark); color: var(--white);
  padding: 1.3rem 1.8rem; font-size: 1.4rem; font-weight: 700;
  display: flex; align-items: center; gap: .8rem;
}
.pq-cb{ padding: 2rem; }

/* Buttons */
.pq-btn{
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .9rem 1.6rem; border-radius: var(--r-sm);
  font-size: 1.3rem; font-weight: 700; cursor: pointer;
  border: none; text-decoration: none; white-space: nowrap;
  transition: background var(--t-fast);
}
.pq-btn-bl{ background: var(--primary); color: var(--white); }
.pq-btn-bl:hover{ background: var(--primary-dark); color: var(--white); text-decoration: none; }
.pq-btn-gr{ background: var(--green-500); color: var(--white); }
.pq-btn-gr:hover{ background: var(--green-600); color: var(--white); text-decoration: none; }
.pq-btn-or{ background: var(--accent); color: var(--white); }
.pq-btn-or:hover{ background: var(--accent-dark); color: var(--white); text-decoration: none; }
.pq-btn-rd{ background: #ef4444; color: var(--white); }
.pq-btn-rd:hover{ background: #dc2626; color: var(--white); text-decoration: none; }
.pq-btn-gy{ background: var(--gray-500); color: var(--white); }
.pq-btn-gy:hover{ background: var(--gray-600); color: var(--white); text-decoration: none; }
.pq-btn-sm{ padding: .5rem 1rem; font-size: 1.2rem; }

/* Form labels and inputs */
.pq-lbl{ font-size: 1.25rem; font-weight: 700; color: var(--gray-700); margin-bottom: .5rem; display: block; }
.pq-lbl .pq-helper{ font-size: 1.1rem; color: var(--gray-500); font-weight: 400; }
.pq-lbl-no-mt{ margin-top: 0; }

.pq-inp, .pq-sel, .pq-ta{
  width: 100%; padding: .9rem 1.2rem;
  border: 1.5px solid var(--gray-300); border-radius: var(--r-sm);
  font-size: 1.35rem; transition: border-color var(--t-base); font-family: inherit;
  background: var(--white);
}
.pq-inp:focus, .pq-sel:focus, .pq-ta:focus{
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37,99,235,.1);
}
.pq-ta{ resize: vertical; min-height: 7.8rem; line-height: 1.55; }
.pq-inp-pad{ padding: .7rem; }

/* Grids */
.fg{ display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
.fg .full{ grid-column: 1 / -1; }
.og{ display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1.4rem; }
.orow{ display: flex; align-items: flex-start; gap: .8rem; }
.orow > .pq-flex-1{ flex: 1; }
.olt{
  width: 3rem; height: 3rem; border-radius: 50%;
  background: var(--accent); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 1.3rem; flex-shrink: 0; margin-top: 2.6rem;
}
.csv3{ display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1.3rem; margin-bottom: 1.4rem; }

/* Filters bar */
.pq-filt{ display: flex; flex-wrap: wrap; gap: .8rem; align-items: flex-end; margin-bottom: 1.6rem; }
.pq-filt select{
  padding: .8rem 1rem; border: 1.5px solid var(--gray-300);
  border-radius: var(--r-sm); font-size: 1.3rem;
}
.pq-mini-110{ min-width: 11rem; }
.pq-mini-155{ min-width: 15.5rem; }
.pq-mini-90{ min-width: 9rem; }
.pq-results-count{
  margin-left: auto; font-size: 1.2rem; color: var(--gray-400);
  align-self: center;
}

/* Table */
.pq-table-scroll{ overflow-x: auto; }
.pq-t{ width: 100%; border-collapse: collapse; font-size: 1.3rem; }
.pq-t th{
  background: var(--gray-50); color: var(--gray-700); font-weight: 700;
  padding: 1rem 1.2rem; text-align: left; border-bottom: 2px solid var(--gray-200);
}
.pq-t td{ padding: 1rem 1.2rem; border-bottom: 1px solid var(--gray-50); vertical-align: top; }
.pq-t tr:hover td{ background: var(--gray-50); }
.pq-row-num{ color: var(--gray-400); }
.pq-cell-subject{ font-size: 1.2rem; }
.pq-cell-image{ font-size: 1.1rem; color: var(--primary); }
.pq-actions-cell{ display: flex; gap: .4rem; flex-wrap: wrap; }
.pq-qt{
  max-width: 25rem; overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap; color: var(--gray-900); font-weight: 600;
}

/* Badges */
.pq-badge{
  display: inline-block; padding: .2rem .9rem; border-radius: var(--r-full);
  font-size: 1.1rem; font-weight: 700; text-transform: uppercase;
}
.pq-badge.bj{ background: var(--primary-mist); color: var(--primary-dark); }
.pq-badge.bw{ background: var(--green-100); color: var(--green-800); }
.pq-badge.ba{ background: var(--green-100); color: var(--green-800); }
.pq-badge.bi{ background: #fee2e2; color: #991b1b; }

.pq-ans{
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.4rem; height: 2.4rem; border-radius: 50%;
  font-weight: 900; font-size: 1.3rem; color: var(--white); background: var(--green-500);
}

/* Alerts */
.pq-alrt{ border-radius: var(--r-md); padding: 1.3rem 1.6rem; margin-bottom: 1.4rem; font-size: 1.3rem; font-weight: 500; }
.pq-ok{ background: var(--green-100); color: var(--green-800); border-left: 4px solid var(--green-500); }
.pq-err{ background: #fee2e2; color: #991b1b; border-left: 4px solid #ef4444; }
.pq-alrt-mt{ margin-top: 1.6rem; }
.pq-errors-list{ margin: .6rem 0 0 1.8rem; padding: 0; }

/* Pagination */
.pq-pag{ display: flex; gap: .4rem; justify-content: center; padding: 1.6rem 0 0; flex-wrap: wrap; }
.pq-pg{
  padding: .5rem 1.1rem; border: 1px solid var(--gray-300); border-radius: 5px;
  font-size: 1.25rem; text-decoration: none; color: var(--gray-700); background: var(--white);
}
.pq-pg.active{ background: var(--primary); color: var(--white); border-color: var(--primary); }
.pq-pg:hover:not(.active){ background: var(--gray-100); text-decoration: none; color: var(--gray-700); }

/* Modal */
.pq-mo{
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.55); z-index: 99999;
  align-items: center; justify-content: center; padding: 1.6rem;
}
.pq-mo.open{ display: flex; }
.pq-m{
  background: var(--white); border-radius: 1.2rem;
  width: 100%; max-width: 76rem; max-height: 92vh; overflow-y: auto;
  animation: pqFi .2s ease;
}
@keyframes pqFi{ from{ opacity: 0; transform: scale(.96); } to{ opacity: 1; transform: scale(1); } }
.pq-mh{
  background: var(--primary-dark); color: var(--white);
  padding: 1.5rem 2rem; font-size: 1.5rem; font-weight: 700;
  display: flex; justify-content: space-between; align-items: center;
  border-radius: 1.2rem 1.2rem 0 0; position: sticky; top: 0; z-index: 2;
}
.pq-mh--warning { background: var(--amber-500) !important; }
.pq-mc{ background: none; border: none; color: var(--white); font-size: 2.2rem; cursor: pointer; line-height: 1; }
.pq-mb{ padding: 2.2rem; }

/* Answer selector (radio cards) */
.ans-sel{ display: flex; gap: .8rem; }
.ans-sel label{
  flex: 1; display: flex; align-items: center; justify-content: center;
  height: 4.2rem; border: 2.5px solid var(--gray-300); border-radius: var(--r-md);
  cursor: pointer; font-weight: 900; font-size: 1.6rem; transition: all var(--t-fast);
}
.ans-sel input[type=radio]{ display: none; }
.ans-sel label:has(input:checked){ background: var(--green-500); border-color: var(--green-500); color: var(--white); }

/* Special char toolbar */
.pq-sc-toolbar{
  display: flex; flex-wrap: wrap; gap: .3rem; margin-bottom: .5rem;
  padding: .5rem .8rem; background: var(--gray-50);
  border: 1px solid var(--gray-200); border-radius: var(--r-sm);
}
.pq-sc-group{
  font-size: 1rem; color: var(--gray-500); font-weight: 700;
  align-self: center; margin-right: .2rem; padding-right: .4rem;
}
.pq-sc-btn{
  padding: .2rem .7rem; border: 1.5px solid var(--gray-300); border-radius: 4px;
  background: var(--white); cursor: pointer; font-size: 1.3rem;
  transition: all var(--t-fast); color: var(--gray-700); line-height: 1.4;
}
.pq-sc-btn:hover{ border-color: var(--primary); background: var(--primary-mist); color: var(--primary); }
.pq-sc-div{ width: 1px; background: var(--gray-200); margin: .2rem .4rem; align-self: stretch; }

/* Info box */
.pq-info{
  background: var(--primary-mist); border: 1px solid var(--primary-mist); border-radius: var(--r-md);
  padding: 1.2rem 1.6rem; margin-bottom: 1.6rem;
  font-size: 1.3rem; color: var(--primary-deeper);
}

/* Image zone */
.pq-img-z{
  border: 2px dashed var(--gray-300); border-radius: var(--r-md);
  padding: 1.4rem; text-align: center; background: var(--gray-50);
  cursor: pointer; transition: border-color var(--t-base); display: block;
}
.pq-img-z:hover{ border-color: var(--primary); background: var(--primary-mist); }
.pq-img-z.has-file{ border-color: var(--green-500); }
.pq-img-prev{ max-width: 100%; max-height: 16rem; border-radius: var(--r-sm); margin-top: .8rem; display: none; }
.pq-img-prev.is-shown{ display: block; }
.pq-img-icon{ font-size: 2.2rem; color: var(--gray-400); }
.pq-img-icon-sm{ font-size: 2rem; color: var(--gray-400); }
.pq-img-text{ font-size: 1.25rem; color: var(--gray-500); margin-top: .6rem; }

.pq-file-input-hidden{ display: none; }
.pq-current-img-wrap{ display: none; margin-bottom: .8rem; }
.pq-current-img-wrap.is-shown{ display: block; }
.pq-current-img{ max-height: 10rem; border-radius: var(--r-sm); border: 1px solid var(--gray-200); }
.pq-ml-8{ margin-left: .8rem; }

/* Tabs */
.pq-tabs{ display: flex; gap: 0; border-bottom: 2px solid var(--gray-200); margin-bottom: 2.2rem; }
.pq-tab{
  padding: 1rem 2rem; font-size: 1.35rem; font-weight: 700;
  cursor: pointer; border-bottom: 3px solid transparent;
  margin-bottom: -2px; color: var(--gray-500); transition: all var(--t-fast);
}
.pq-tab.active{ color: var(--primary); border-bottom-color: var(--primary); }
.pq-tp{ display: none; }
.pq-tp.active{ display: block; }

/* Form action row */
.pq-form-actions{ display: flex; gap: 1rem; flex-wrap: wrap; }
.pq-form-actions-tight{ display: flex; gap: 1rem; }

/* Code tag */
.pq-code{ background: var(--primary-mist); padding: .2rem .6rem; border-radius: 3px; }

/* Section headings */
.pq-section-heading{
  margin: 1.4rem 0 .8rem; font-size: 1.3rem; font-weight: 700; color: var(--gray-700);
}
.pq-mb-14{ margin-bottom: 1.4rem; }
.pq-mb-16{ margin-bottom: 1.6rem; }
.pq-mb-18{ margin-bottom: 1.8rem; }
.pq-mt-0{ margin-top: 0; }
.pq-flex-1{ flex: 1; }
.pq-inline-flex{ display: inline-flex; }
.pq-no-results{ text-align: center; padding: 3.2rem; color: var(--gray-400); }
.pq-access-denied{
  padding: 8rem 2rem; text-align: center; color: #dc2626; font-size: 1.6rem;
}

@media (max-width: 768px){
  .pq-stats{ grid-template-columns: 1fr 1fr; }
  .fg, .og, .csv3{ grid-template-columns: 1fr; }
  .pq-filt{ flex-direction: column; align-items: stretch; }
  .pq-t th:nth-child(4), .pq-t td:nth-child(4){ display: none; }
  .pq-results-count{ margin-left: 0; }
}

/* =====================================================
   SECTION 63: SCHOOL SETTINGS PAGE
   ===================================================== */
.ss-wrap{ padding: 2.5rem 0 8rem; min-height: 100vh; background: var(--bg-alt); }

/* Override breadcrumb header for school settings (solid color) */
.ss-wrap .brd-hero{ background: var(--gray-900); }
.ss-wrap .brd-hero-crumbs{ justify-content: flex-end; }
.ss-wrap .brd-hero-crumbs li{ color: rgba(255,255,255,.8); font-size: 1.4rem; }
.ss-wrap .brd-hero-crumbs li a{ color: var(--white); transition: color var(--t-base); padding: 0; }
.ss-wrap .brd-hero-crumbs li a:hover{ color: var(--green-300); }

/* Stats grid */
.ss-stats-grid{
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem;
  margin-bottom: 2.8rem; width: 100%;
}
.ss-stat-card{
  background: rgba(255,255,255,.92); backdrop-filter: blur(12px);
  border-radius: 2.8rem; padding: 2.5rem 1.8rem; text-align: center;
  border: 1px solid rgba(255,255,255,.4); box-shadow: var(--shadow-md);
  transition: all var(--t-base);
}
.ss-stat-card:hover{ transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.ss-stat-icon{
  width: 6.8rem; height: 6.8rem; margin: 0 auto 1.5rem;
  border-radius: 2rem; display: flex; align-items: center; justify-content: center;
  font-size: 3rem;
}
.ss-stat-primary{ background: var(--primary-mist); color: var(--primary); }
.ss-stat-success{ background: var(--green-100); color: var(--primary); }
.ss-stat-card h3{ margin: 0; font-size: 2.4rem; font-weight: 800; color: var(--text); line-height: 1; }
.ss-stat-card p{ margin: 1rem 0 0; color: var(--text-muted); font-size: 1.4rem; }

/* Alerts */
.ss-wrap .alert-success,
.ss-wrap .alert-error{
  padding: 1.8rem 2.2rem; border-radius: 1.8rem; margin-bottom: 2.5rem;
  font-size: 1.5rem; font-weight: 600; display: flex; align-items: center; gap: 1.2rem;
  box-shadow: var(--shadow-sm); animation: ssSlide .35s ease;
}
.ss-wrap .alert-success{ background: var(--green-100); color: var(--green-800); border-left: 5px solid var(--primary); }
.ss-wrap .alert-error{ background: #fee2e2; color: #7f1d1d; border-left: 5px solid #ef4444; }
@keyframes ssSlide{ from{ opacity: 0; transform: translateY(-1rem); } to{ opacity: 1; transform: translateY(0); } }

/* Card */
.ss-card{
  background: rgba(255,255,255,.92); backdrop-filter: blur(12px);
  border-radius: 3.2rem; padding: 3.5rem; margin-bottom: 3.2rem;
  border: 1px solid rgba(255,255,255,.4); box-shadow: var(--shadow-md);
  transition: all var(--t-base); position: relative; overflow: hidden;
}
.ss-card::before{
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 5px;
  background: var(--primary);
}
.ss-card:hover{ transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.ss-card h4{
  font-size: 1.7rem; font-weight: 800; color: var(--text);
  margin: 0 0 2.8rem; padding-bottom: 1.8rem;
  border-bottom: 2px solid var(--primary-mist);
  display: flex; align-items: center; gap: 1.4rem; letter-spacing: -.04rem;
}
.ss-card h4 i{
  width: 5.2rem; height: 5.2rem; border-radius: 1.6rem;
  background: var(--primary-mist); display: flex; align-items: center; justify-content: center;
  color: var(--primary); font-size: 1.4rem;
}
.ss-card p{ font-size: 1.4rem; color: var(--text-muted); margin: -1rem 0 2.4rem; line-height: 1.6; }

/* Form grid */
.ss-row{ display: grid; grid-template-columns: 1fr 1fr; gap: 2.4rem; }
.ss-row.three{ grid-template-columns: repeat(3, 1fr); }
.ss-fg{ display: flex; flex-direction: column; gap: 1rem; }
.ss-fg.full{ grid-column: 1 / -1; }
.ss-fg label{
  font-size: 1.3rem; font-weight: 700; color: var(--text-secondary);
  letter-spacing: .04rem; text-transform: uppercase;
}
.ss-fg input,
.ss-fg select,
.ss-fg textarea{
  border: 2px solid var(--border); border-radius: 1.6rem;
  padding: 1.5rem 1.8rem; font-size: 1.5rem; width: 100%;
  background: var(--white); transition: all var(--t-base); color: var(--text);
  min-height: 5.6rem; box-sizing: border-box; font-family: inherit;
}
.ss-fg textarea{ min-height: 12rem; resize: vertical; }
.ss-fg input:focus,
.ss-fg select:focus,
.ss-fg textarea:focus{
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(12,84,48,.12);
}
.ss-fg input:hover,
.ss-fg select:hover,
.ss-fg textarea:hover{ border-color: var(--gray-300); }
.ss-fg select{
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.8' d='M6 8l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1.6rem center; background-size: 1.8rem;
  padding-right: 4.5rem;
}
.ss-wrap input[type="file"]{ padding: 1.2rem; background: var(--bg-alt); cursor: pointer; }

/* Textarea size variants */
.ss-ta-100{ min-height: 10rem !important; }
.ss-ta-80{ min-height: 8rem !important; }
.ss-ta-120{ min-height: 12rem !important; }
.ss-ta-150{ min-height: 15rem !important; }

/* Preview image */
.ss-preview-img{
  width: 11rem; height: 11rem; object-fit: cover; border-radius: 1.8rem;
  border: 3px solid var(--white); background: var(--white);
  box-shadow: var(--shadow-md); margin-bottom: 1rem; transition: all var(--t-base);
}
.ss-preview-img:hover{ transform: scale(1.04); }
.ss-favicon{
  width: 3.2rem; height: 3.2rem; object-fit: contain;
  border-radius: .6rem; border: 1px solid var(--border);
  background: var(--bg-alt); display: block; margin-bottom: .8rem;
}

/* Save bar */
.ss-save-bar{ display: flex; justify-content: flex-end; margin-top: 1.5rem; }
.ss-btn{
  background: var(--primary); color: var(--white);
  border: none; border-radius: 1.8rem; padding: 1.6rem 3.6rem;
  font-size: 1.5rem; font-weight: 700; cursor: pointer;
  display: inline-flex; align-items: center; gap: 1rem;
  transition: all var(--t-base); box-shadow: var(--shadow-green);
  text-decoration: none;
}
.ss-btn:hover{ transform: translateY(-3px); box-shadow: var(--shadow-green-lg); color: var(--white); }
.ss-btn i{ font-size: 1.6rem; }

/* Helper text */
.ss-help{ font-size: 1.2rem; color: var(--gray-500); }
.ss-help-strong{ font-size: 1.3rem; color: var(--gray-600); }
.ss-help-faint{ color: var(--gray-400); font-size: 1.2rem; }
.ss-help-faint-sm{ color: var(--gray-400); font-size: 1rem; }
.ss-help-muted{ color: var(--gray-400); }
.ss-icon-blue{ color: var(--primary); }
.ss-icon-orange{ color: var(--accent); }

/* Slider grid */
.ss-slider-grid{
  display: grid; grid-template-columns: repeat(auto-fill, minmax(20rem, 1fr));
  gap: 1.6rem; margin-top: 1rem;
}
.ss-slider-cell{
  background: var(--bg-alt); border: 2px solid var(--border);
  border-radius: 1.6rem; padding: 1.4rem;
}
.ss-slider-cell img{
  width: 100%; height: 9rem; object-fit: cover;
  border-radius: 1rem; margin-bottom: 1rem;
}
.ss-slider-cell label{
  font-size: 1.1rem; font-weight: 700; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: .04rem;
  display: block; margin-bottom: .6rem;
}
.ss-slider-cell input[type="file"]{ font-size: 1.2rem; }
.ss-slider-cell .ss-filename{ color: var(--gray-400); font-size: 1rem; }

@media (max-width: 1100px){
  .ss-row.three{ grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px){
  .ss-stats-grid{
    grid-template-columns: repeat(4, minmax(12rem, 1fr));
    overflow-x: auto; padding-bottom: .8rem; gap: 1.2rem;
  }
  .ss-stat-card{ min-width: 12rem; padding: 1.8rem 1.4rem; }
  .ss-stat-icon{ width: 5.2rem; height: 5.2rem; font-size: 2.2rem; border-radius: 1.6rem; margin-bottom: 1.2rem; }
  .ss-stat-card h3{ font-size: 1.8rem; }
  .ss-stat-card p{ font-size: 1.1rem; line-height: 1.4; }
  .ss-row, .ss-row.three{ grid-template-columns: 1fr; }
  .ss-card{ padding: 2.4rem; border-radius: 2.4rem; }
  .ss-wrap .brd-hero-text h1{ font-size: 2rem; }
  .ss-wrap .brd-hero-crumbs{ justify-content: flex-start; }
  .ss-save-bar{ justify-content: stretch; }
  .ss-btn{ width: 100%; justify-content: center; }
}
@media (max-width: 480px){
  .ss-card h4{ font-size: 1.3rem; flex-wrap: wrap; }
  .ss-preview-img{ width: 9rem; height: 9rem; }
}

/* =====================================================
   SECTION 64: TEACHER FINGERPRINT ENROLLMENT
   ===================================================== */
:root {
  --fp-bg: var(--gray-900);
  --fp-surface: var(--gray-800);
  --fp-card: rgba(30, 41, 59, 0.6);
  --fp-border: rgba(255, 255, 255, 0.08);
  --fp-border-hover: rgba(255, 255, 255, 0.15);
  --fp-accent: var(--primary-light);
  --fp-accent-glow: rgba(59, 130, 246, 0.3);
  --fp-ok: var(--green-500);
  --fp-ok-glow: rgba(16, 185, 129, 0.3);
  --fp-warn: var(--amber-500);
  --fp-warn-glow: rgba(245, 158, 11, 0.3);
  --fp-err: #ef4444;
  --fp-err-glow: rgba(239, 68, 68, 0.3);
  --fp-dim: var(--gray-500);
  --fp-text: var(--gray-50);
  --fp-text-muted: var(--gray-400);
  --fp-text-dim: var(--gray-500);
  --fp-radius: 12px;
  --fp-radius-lg: 16px;
}

.fp-enroll-wrap {
  max-width: 1280px;
  margin: 24px auto;
  padding: 0 16px;
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 24px;
}

@media (max-width: 1024px) {
  .fp-enroll-wrap { grid-template-columns: 1fr; }
}

/* Staff Panel */
.fp-staff-panel {
  background: rgba(255,255,255,.95);
  border-radius: var(--fp-radius-lg);
  box-shadow: 0 1px 3px rgba(0,0,0,.08), 0 4px 12px rgba(0,0,0,.04);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 200px);
}

.fp-staff-header {
  padding: 20px 22px;
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  background: var(--bg);
}

.fp-staff-header h3 {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 700;
  color: #1a1a2e;
  display: flex;
  align-items: center;
  gap: 10px;
}

.fp-staff-header h3 i { color: var(--accent); }

.enroll-badge {
  background: var(--accent);
  color: var(--white);
  font-size: 1.3rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 100px;
  letter-spacing: 0.02em;
}

.fp-search {
  padding: 14px 22px;
  border-bottom: 1px solid var(--bg-alt);
  position: sticky;
  top: 0;
  background: var(--white);
  z-index: 5;
}

.fp-search input {
  width: 100%;
  padding: 12px 16px 12px 42px;
  border: 2px solid var(--gray-200);
  border-radius: 10px;
  font-size: 1.3rem;
  outline: none;
  transition: all 0.2s;
  background: var(--gray-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='%239ca3af' viewBox='0 0 16 16'%3E%3Cpath d='M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001c.03.04.062.078.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1.007 1.007 0 0 0-.115-.1zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0z'/%3E%3C/svg%3E") no-repeat 14px center;
}

.fp-search input:focus { border-color: var(--accent); background-color: var(--white); box-shadow: 0 0 0 3px rgba(232,119,34,.1); }

.fp-staff-list {
  flex: 1;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--gray-200) transparent;
}

.fp-staff-list::-webkit-scrollbar { width: 4px; }
.fp-staff-list::-webkit-scrollbar-thumb { background: var(--gray-200); border-radius: 4px; }

.fp-staff-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 22px;
  border-bottom: 1px solid var(--gray-100);
  cursor: pointer;
  transition: all 0.15s;
}

.fp-staff-item:hover { background: var(--bg); }
.fp-staff-item.active {
  background: var(--amber-100);
  border-left: 3px solid var(--accent);
  padding-left: 19px;
}

.fp-staff-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.3rem;
  flex-shrink: 0;
  background: var(--primary-mist);
  color: var(--primary);
}

.fp-staff-info { flex: 1; min-width: 0; }
.fp-staff-name {
  font-weight: 600;
  font-size: 1.3rem;
  color: #1a1a2e;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fp-staff-meta {
  font-size: 1.3rem;
  color: var(--gray-400);
  margin-top: 3px;
}

.fp-status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.fp-status-dot.enrolled { background: var(--fp-ok); box-shadow: 0 0 6px var(--fp-ok-glow); }
.fp-status-dot.pending  { background: var(--gray-300); }

/* Scanner Panel */
.fp-scanner-panel {
  background: var(--fp-bg);
  border-radius: var(--fp-radius-lg);
  overflow: hidden;
  position: sticky;
  top: 24px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.3);
}

.fp-scanner-status {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--fp-border);
  font-size: 1.3rem;
  font-family: 'JetBrains Mono', 'Share Tech Mono', monospace;
  color: var(--fp-text-muted);
}

.fp-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--fp-dim);
}
.fp-dot.connected  { background: var(--fp-ok); box-shadow: 0 0 6px var(--fp-ok-glow); }
.fp-dot.disconnected { background: var(--fp-err); box-shadow: 0 0 6px var(--fp-err-glow); }
.fp-dot.busy { background: var(--fp-warn); box-shadow: 0 0 6px var(--fp-warn-glow); animation: fpPulse 1s infinite; }

@keyframes fpPulse { 0%,100%{opacity:1} 50%{opacity:.4} }

.fp-scanner-body { padding: 28px 20px; text-align: center; }

.fp-selected-teacher {
  background: rgba(59,130,246,0.08);
  border: 1px solid var(--fp-border);
  border-radius: var(--fp-radius);
  padding: 14px;
  margin-bottom: 20px;
  text-align: left;
  display: none;
}

.fp-selected-teacher .label {
  font-size: 1.3rem;
  color: var(--fp-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

.fp-selected-teacher .name {
  font-size: 1.3rem;
  color: var(--fp-text);
  font-weight: 600;
  margin-top: 5px;
}

.fp-ring {
  width: 110px; height: 110px; border-radius: 50%;
  border: 3px solid var(--fp-border);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  background: rgba(255,255,255,0.02);
}

.fp-ring svg { width: 52px; height: 52px; opacity: 0.5; transition: opacity 0.3s; }

.fp-ring.scanning {
  border-color: var(--fp-accent);
  box-shadow: 0 0 0 4px var(--fp-accent-glow), 0 0 32px var(--fp-accent-glow);
  animation: fpRingPulse 2s infinite;
}
.fp-ring.scanning svg { opacity: 1; }

.fp-ring.success {
  border-color: var(--fp-ok);
  box-shadow: 0 0 0 4px var(--fp-ok-glow), 0 0 32px var(--fp-ok-glow);
}
.fp-ring.success svg { opacity: 1; }

.fp-ring.error {
  border-color: var(--fp-err);
  box-shadow: 0 0 0 4px var(--fp-err-glow), 0 0 32px var(--fp-err-glow);
}
.fp-ring.error svg { opacity: 1; }

@keyframes fpRingPulse {
  0%,100% { transform: scale(1); }
  50% { transform: scale(1.03); }
}

.fp-hint {
  font-size: 1.3rem;
  color: var(--fp-dim);
  margin-bottom: 14px;
  min-height: 1.4em;
}
.fp-hint.ok  { color: var(--fp-ok); }
.fp-hint.busy{ color: var(--fp-accent); }
.fp-hint.bad { color: var(--fp-err); }

.fp-sample-count {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.3rem;
  color: var(--fp-dim);
  margin-bottom: 16px;
}
.fp-sample-count span { color: var(--fp-accent); font-weight: 700; }

.fp-btn-row { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-bottom: 16px; }

.fp-btn {
  padding: 9px 18px; border-radius: 8px; border: none; cursor: pointer;
  font-family: 'Inter', sans-serif; font-size: 1.3rem; font-weight: 600;
  transition: all 0.2s;
}
.fp-btn:disabled { opacity: 0.35; cursor: not-allowed; }
.fp-btn-primary { background: var(--fp-accent); color: var(--white); }
.fp-btn-primary:hover:not(:disabled) { filter: brightness(1.15); transform: translateY(-1px); }
.fp-btn-ghost { background: none; border: 1px solid var(--fp-border); color: var(--fp-text-muted); }
.fp-btn-ghost:hover:not(:disabled) { border-color: var(--fp-accent); color: var(--fp-accent); }
.fp-btn-danger { background: none; border: 1px solid var(--fp-err); color: var(--fp-err); }
.fp-btn-danger:hover:not(:disabled) { background: rgba(239,68,68,.1); }

.fp-result {
  display: none; padding: 10px 14px; border-radius: 8px;
  font-size: 1.3rem; font-weight: 500; margin-bottom: 14px;
}
.fp-result.show { display: block; }
.fp-result.ok  { background: rgba(16,185,129,0.1); border: 1px solid var(--fp-ok); color: var(--fp-ok); }
.fp-result.bad { background: rgba(239,68,68,.1); border: 1px solid var(--fp-err); color: var(--fp-err); }

.fp-log {
  background: var(--primary-deeper);
  border: 1px solid var(--fp-border);
  border-radius: var(--fp-radius);
  padding: 14px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.3rem;
  line-height: 1.8;
  min-height: 100px;
  max-height: 180px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--fp-border) transparent;
}

.fp-log-ok   { color: var(--fp-ok); }
.fp-log-err  { color: var(--fp-err); }
.fp-log-warn { color: var(--fp-warn); }
.fp-log-info { color: var(--fp-dim); }

.fp-notice {
  display: none; border-radius: var(--fp-radius); padding: 14px; margin: 0 20px 16px;
  font-size: 1.3rem; line-height: 1.7;
}
.fp-notice.info { background: rgba(59,130,246,0.08); border: 1px solid rgba(59,130,246,0.2); }
.fp-notice a { color: var(--fp-accent); }
.fp-notice code { background: rgba(59,130,246,0.15); padding: 1px 5px; border-radius: 4px; font-size: 1.3rem; }
.fp-notice strong { color: var(--fp-warn); }

/* =====================================================
   SECTION 65: YEARBOOK ENTRY FORM
   ===================================================== */
:root {
  --gold: var(--gold);
  --gold-light: var(--gold);
  --gold-dark: #9a7a2e;
  --ink: var(--gray-900);
  --cream: var(--gray-50);
  --cream-dark: #f0e9d8;
  --red: #8b1a1a;
  --green: var(--green-500);
  --green-dark: var(--green-600);
  --teal: var(--green-900);
  --teal-light: var(--green-800);
  --text-muted: var(--gray-500);
}

.yb-page * { margin: 0; padding: 0; box-sizing: border-box; }

.yb-page {
  font-family: 'DM Sans', sans-serif;
  background: var(--ink);
  min-height: 100vh;
  color: var(--cream);
  overflow-x: hidden;
}

.yb-page::before {
  content: '';
  position: fixed;
  inset: 0;
  background: var(--gray-900);
  pointer-events: none;
  z-index: 0;
}

.yb-page .page-wrap {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin: 0 auto;
  padding: 60px 20px 100px;
}

/* Header */
.yb-page .site-header { text-align: center; margin-bottom: 60px; }

.yb-page .header-badge {
  display: inline-block;
  background: var(--gold);
  color: var(--ink);
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 1.3rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  padding: 6px 20px;
  border-radius: 2px;
  margin-bottom: 20px;
}

.yb-page .site-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 900;
  line-height: 1.05;
  color: var(--cream);
  margin-bottom: 12px;
}

.yb-page .site-title span { color: var(--gold); font-style: italic; }

.yb-page .site-subtitle {
  color: var(--text-muted);
  font-size: 1.3rem;
  font-weight: 300;
  letter-spacing: 0.5px;
}

.yb-page .header-line {
  width: 80px;
  height: 2px;
  background: var(--gold);
  margin: 20px auto 0;
}

/* Form card */
.yb-page .form-card {
  background: rgba(250,246,239,0.04);
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: 4px;
  padding: 50px;
  backdrop-filter: blur(8px);
  position: relative;
  overflow: hidden;
}

.yb-page .form-card::before {
  content: '"';
  position: absolute;
  top: -20px;
  right: 30px;
  font-family: 'Playfair Display', serif;
  font-size: 200px;
  color: rgba(201,168,76,0.05);
  line-height: 1;
  pointer-events: none;
}

@media (max-width: 600px) { .yb-page .form-card { padding: 30px 22px; } }

/* Section titles */
.yb-page .section-label {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.yb-page .section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(201,168,76,0.25);
}

/* Field grid */
.yb-page .field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.yb-page .field-grid.single { grid-template-columns: 1fr; }

@media (max-width: 600px) { .yb-page .field-grid { grid-template-columns: 1fr; } }

.yb-page .field-group { display: flex; flex-direction: column; gap: 7px; }

.yb-page label {
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.yb-page label .req { color: var(--gold); margin-left: 2px; }

.yb-page input[type="text"],
.yb-page input[type="date"],
.yb-page select,
.yb-page textarea {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: 3px;
  color: var(--cream);
  font-family: 'DM Sans', sans-serif;
  font-size: 1.3rem;
  padding: 12px 16px;
  outline: none;
  transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
  width: 100%;
}

.yb-page input:focus, .yb-page select:focus, .yb-page textarea:focus {
  border-color: var(--gold);
  background: rgba(201,168,76,0.06);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.1);
}

.yb-page select option { background: var(--gray-900); color: var(--cream); }

.yb-page textarea { min-height: 100px; resize: vertical; line-height: 1.6; }

/* Photo upload */
.yb-page .photo-upload-zone {
  border: 2px dashed rgba(201,168,76,0.3);
  border-radius: 4px;
  padding: 30px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  background: rgba(201,168,76,0.03);
}

.yb-page .photo-upload-zone:hover { border-color: var(--gold); background: rgba(201,168,76,0.06); }

.yb-page .photo-upload-zone.has-image { padding: 0; border-style: solid; border-color: var(--gold); }

.yb-page .photo-upload-zone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
  z-index: 2;
}

.yb-page .photo-preview {
  width: 100%;
  max-height: 220px;
  object-fit: contain;
  border-radius: 2px;
  display: none;
}

.yb-page .upload-placeholder { pointer-events: none; }
.yb-page .upload-icon { font-size: 3.6rem; margin-bottom: 10px; opacity: 0.5; }
.yb-page .upload-text { font-size: 1.3rem; color: var(--text-muted); }
.yb-page .upload-text strong { color: var(--gold); }

.yb-page .compress-info {
  font-size: 1.3rem;
  color: var(--gold);
  margin-top: 8px;
  display: none;
}

/* Divider */
.yb-page .form-divider { border: none; border-top: 1px solid rgba(201,168,76,0.12); margin: 36px 0; }

/* Submit */
.yb-page .submit-area {
  margin-top: 40px;
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}

.yb-page .btn-submit {
  background: var(--green);
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 1.3rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  border: none;
  border-radius: 3px;
  padding: 15px 40px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(125,217,8,0.25);
  position: relative;
  overflow: hidden;
}

.yb-page .btn-submit:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(125,217,8,0.35); }
.yb-page .btn-submit:active { transform: translateY(0); }
.yb-page .btn-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.yb-page .btn-reset {
  background: transparent;
  color: var(--text-muted);
  font-family: 'DM Sans', sans-serif;
  font-size: 1.3rem;
  font-weight: 500;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 3px;
  padding: 15px 24px;
  cursor: pointer;
  transition: all 0.25s;
}

.yb-page .btn-reset:hover { color: var(--cream); border-color: rgba(255,255,255,.25); }

/* Toast */
.yb-page #toast-container {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.yb-page .toast {
  background: var(--gray-900);
  border-left: 4px solid var(--gold);
  border-radius: 3px;
  padding: 16px 20px;
  min-width: 280px;
  max-width: 380px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.4);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  animation: toastIn 0.4s cubic-bezier(0.34,1.56,0.64,1);
}

.yb-page .toast.success { border-color: var(--green); }
.yb-page .toast.error { border-color: #e74c3c; }

.yb-page .toast-icon { font-size: 1.8rem; flex-shrink: 0; margin-top: 1px; }
.yb-page .toast-body { flex: 1; }
.yb-page .toast-title { font-weight: 600; font-size: 1.3rem; color: var(--cream); margin-bottom: 3px; }
.yb-page .toast-msg { font-size: 1.3rem; color: var(--text-muted); line-height: 1.4; }

@keyframes toastIn {
  from { opacity: 0; transform: translateX(30px) scale(0.9); }
  to   { opacity: 1; transform: translateX(0) scale(1); }
}

.yb-page .spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin-right: 8px;
  vertical-align: middle;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* Entries table */
.yb-page .entries-section { margin-top: 60px; }

.yb-page .entries-title { font-family: 'Playfair Display', serif; font-size: 2.4rem; color: var(--cream); margin-bottom: 6px; }
.yb-page .entries-subtitle { color: var(--text-muted); font-size: 1.3rem; margin-bottom: 24px; }

.yb-page .entries-table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(201,168,76,0.15);
  border-radius: 4px;
}

.yb-page table { width: 100%; border-collapse: collapse; }

.yb-page th {
  background: rgba(201,168,76,0.08);
  color: var(--gold);
  font-size: 1.3rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  border-bottom: 1px solid rgba(201,168,76,0.15);
}

.yb-page td {
  padding: 12px 16px;
  font-size: 1.3rem;
  color: var(--cream);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.yb-page tr:last-child td { border-bottom: none; }
.yb-page tr:hover td { background: rgba(201,168,76,0.03); }

.yb-page .entry-thumb {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(201,168,76,0.3);
}

.yb-page .badge-class {
  display: inline-block;
  background: rgba(201,168,76,0.15);
  color: var(--gold);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 3px 9px;
  border-radius: 20px;
}

.yb-page .action-btns { display: flex; gap: 6px; align-items: center; }

.yb-page .btn-delete {
  background: transparent;
  border: 1px solid rgba(231,76,60,0.3);
  color: rgba(231,76,60,0.7);
  border-radius: 3px;
  padding: 4px 10px;
  font-size: 1.3rem;
  cursor: pointer;
  transition: all 0.2s;
}

.yb-page .btn-delete:hover { background: rgba(231,76,60,0.1); border-color: #e74c3c; color: #e74c3c; }

.yb-page .btn-edit {
  background: transparent;
  border: 1px solid rgba(201,168,76,0.3);
  color: rgba(201,168,76,0.7);
  border-radius: 3px;
  padding: 4px 10px;
  font-size: 1.3rem;
  cursor: pointer;
  transition: all 0.2s;
}

.yb-page .btn-edit:hover { background: rgba(201,168,76,0.1); border-color: var(--gold); color: var(--gold); }

.yb-page .empty-row td { text-align: center; color: var(--text-muted); padding: 40px; font-size: 1.3rem; }

.yb-page .upload-progress {
  display: none;
  height: 3px;
  background: rgba(201,168,76,0.15);
  border-radius: 2px;
  margin-top: 10px;
  overflow: hidden;
}

.yb-page .upload-progress-bar {
  height: 100%;
  background: var(--gold);
  width: 0%;
  transition: width 0.3s;
  border-radius: 2px;
}

.yb-page .field-hint { font-size: 1.3rem; color: var(--text-muted); margin-top: 4px; }
.yb-page .char-count { font-size: 1.3rem; color: var(--text-muted); text-align: right; }

.yb-page .deco-year {
  position: fixed;
  bottom: -20px;
  left: -20px;
  font-family: 'Playfair Display', serif;
  font-size: 200px;
  font-weight: 900;
  color: rgba(201,168,76,0.03);
  pointer-events: none;
  user-select: none;
  z-index: 0;
  line-height: 1;
}

/* Edit Modal */
.yb-page .modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.75);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(4px);
}

.yb-page .modal-overlay.active { display: flex; }

.yb-page .modal-box {
  background: var(--gray-900);
  border: 1px solid rgba(201,168,76,0.3);
  border-radius: 6px;
  width: 100%;
  max-width: 760px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: modalIn 0.35s cubic-bezier(0.34,1.56,0.64,1);
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.93) translateY(20px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.yb-page .modal-header {
  padding: 28px 36px 20px;
  border-bottom: 1px solid rgba(201,168,76,0.15);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  background: var(--gray-900);
  z-index: 1;
}

.yb-page .modal-title {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  color: var(--cream);
}

.yb-page .modal-title span { color: var(--gold); font-style: italic; }

.yb-page .modal-close {
  background: transparent;
  border: 1px solid rgba(255,255,255,.1);
  color: var(--text-muted);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.yb-page .modal-close:hover { border-color: #e74c3c; color: #e74c3c; }

.yb-page .modal-body { padding: 30px 36px 36px; }

@media (max-width: 600px) {
  .yb-page .modal-header { padding: 20px; }
  .yb-page .modal-body { padding: 20px; }
}

.yb-page .modal-footer {
  padding: 20px 36px;
  border-top: 1px solid rgba(201,168,76,0.15);
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  position: sticky;
  bottom: 0;
  background: var(--gray-900);
}

.yb-page .btn-save-edit {
  background: var(--gold);
  color: var(--ink);
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  border: none;
  border-radius: 3px;
  padding: 12px 30px;
  cursor: pointer;
  transition: all 0.3s;
}

.yb-page .btn-save-edit:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(201,168,76,0.3); }
.yb-page .btn-save-edit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.yb-page .btn-cancel-edit {
  background: transparent;
  color: var(--text-muted);
  font-family: 'DM Sans', sans-serif;
  font-size: 1.3rem;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 3px;
  padding: 12px 24px;
  cursor: pointer;
  transition: all 0.25s;
}

.yb-page .btn-cancel-edit:hover { color: var(--cream); border-color: rgba(255,255,255,.25); }

/* Modal photo preview */
.yb-page .modal-photo-current {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(201,168,76,0.4);
  margin-bottom: 10px;
}

.yb-page .modal-photo-wrap {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 6px;
}

.yb-page .modal-photo-info { font-size: 1.3rem; color: var(--text-muted); line-height: 1.5; }

/* scrollbar */
.yb-page .modal-box::-webkit-scrollbar { width: 6px; }
.yb-page .modal-box::-webkit-scrollbar-track { background: transparent; }
.yb-page .modal-box::-webkit-scrollbar-thumb { background: rgba(201,168,76,0.2); border-radius: 3px; }

/* =====================================================
   SECTION 66: STORE SCANNER POS
   ===================================================== */
.pos-wrap{background:var(--gray-900);min-height:100vh;padding:0;margin-top:80px;font-family:'Poppins',sans-serif}
.pos-header{background:var(--gray-800);padding:14px 20px;display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px;border-bottom:3px solid var(--accent);position:sticky;top:80px;z-index:100}
.pos-header h2{margin:0;color:var(--white);font-size:1.8rem;font-weight:700;display:flex;align-items:center;gap:8px}
.pos-header h2 span{color:var(--accent)}
.pos-stats{display:flex;gap:16px;flex-wrap:wrap;align-items:center}
.pos-stat{background:var(--gray-900);border:1px solid var(--gray-700);border-radius:6px;padding:6px 14px;color:var(--gray-400);font-size:1.3rem;text-align:center}
.pos-stat strong{display:block;color:var(--gray-50);font-size:1.6rem;font-weight:700}
.pos-header-right{display:flex;gap:8px;align-items:center}
.pos-body{display:grid;grid-template-columns:1fr 380px;gap:0;min-height:calc(100vh - 130px)}
.pos-left{padding:20px;overflow-y:auto}
.pos-right{background:var(--gray-800);border-left:1px solid var(--gray-700);display:flex;flex-direction:column;overflow:hidden}

/* Scanner section */
.scan-zone{background:var(--gray-900);border:2px solid var(--gray-700);border-radius:12px;padding:20px;margin-bottom:16px;position:relative;transition:.3s}
.scan-zone.scanning{border-color:var(--accent);box-shadow:0 0 0 4px rgba(232,119,34,.15)}
.scan-zone.success{border-color:var(--green-500);box-shadow:0 0 0 4px rgba(16,185,129,.15)}
.scan-zone.error{border-color:#ef4444;box-shadow:0 0 0 4px rgba(239,68,68,.15)}
.scan-label{font-size:1.3rem;font-weight:600;color:var(--gray-400);letter-spacing:.8px;text-transform:uppercase;margin-bottom:8px}
.scan-input-row{display:flex;gap:8px}
.scan-input{flex:1;background:var(--gray-800);border:2px solid var(--gray-600);border-radius:8px;padding:14px 16px;font-size:2.2rem;font-weight:700;color:var(--gray-50);letter-spacing:2px;outline:none;transition:.2s;font-family:'Courier New',monospace}
.scan-input:focus{border-color:var(--accent);background:var(--gray-900);box-shadow:0 0 0 3px rgba(232,119,34,.2)}
.scan-input::placeholder{font-size:1.3rem;font-weight:400;letter-spacing:0;color:var(--gray-600)}
.scan-btn{background:var(--accent);border:none;color:var(--white);padding:0 20px;border-radius:8px;font-size:1.4rem;font-weight:700;cursor:pointer;transition:.15s;white-space:nowrap}
.scan-btn:hover{background:var(--accent-dark)}
.scan-hint{font-size:1.3rem;color:var(--gray-600);margin-top:8px}

/* Student info card */
.student-card{background:var(--primary-dark);border-radius:10px;padding:16px 20px;margin-bottom:16px;display:none;border:1px solid var(--primary)}
.student-card.visible{display:flex;align-items:center;gap:14px}
.sc-avatar{width:56px;height:56px;border-radius:50%;background:var(--accent);display:flex;align-items:center;justify-content:center;font-size:2.2rem;font-weight:800;color:var(--white);flex-shrink:0;border:3px solid rgba(255,255,255,.3);overflow:hidden}
.sc-avatar img{width:100%;height:100%;object-fit:cover}
.sc-info{flex:1;min-width:0}
.sc-name{font-size:1.8rem;font-weight:800;color:var(--white);margin:0 0 2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sc-meta{font-size:1.3rem;color:rgba(255,255,255,.7);margin:0 0 6px}
.sc-balance-wrap{display:flex;gap:10px;align-items:center}
.sc-balance{font-size:2.2rem;font-weight:800;color:var(--green-400);line-height:1}
.sc-balance-lbl{font-size:1.3rem;color:rgba(255,255,255,.5);text-transform:uppercase}
.sc-balance.low{color:var(--amber-500)}
.sc-balance.zero{color:#ef4444}

/* Quick items grid */
.qi-section h4{color:var(--gray-400);font-size:1.3rem;font-weight:600;letter-spacing:.8px;text-transform:uppercase;margin:0 0 10px}
.qi-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:8px;margin-bottom:16px}
.qi-btn{background:var(--gray-800);border:2px solid var(--gray-700);border-radius:8px;padding:10px 8px;text-align:center;cursor:pointer;transition:.15s;user-select:none}
.qi-btn:hover,.qi-btn.selected{border-color:var(--accent);background:#2d1a00}
.qi-btn.selected{background:#3d2200}
.qi-name{font-size:1.3rem;font-weight:600;color:var(--gray-50);margin-bottom:3px;line-height:1.3}
.qi-price{font-size:1.4rem;font-weight:800;color:var(--accent)}
.qi-count{display:inline-block;background:var(--accent);color:var(--white);border-radius:10px;font-size:1.3rem;font-weight:700;padding:1px 7px;margin-top:3px}

/* Cart / Order */
.cart-section{background:var(--gray-900);border:1px solid var(--gray-700);border-radius:10px;padding:14px;margin-bottom:16px}
.cart-section h4{color:var(--gray-400);font-size:1.3rem;font-weight:600;letter-spacing:.8px;text-transform:uppercase;margin:0 0 10px}
.cart-empty{color:var(--gray-600);font-size:1.3rem;text-align:center;padding:12px 0}
.cart-item{display:flex;align-items:center;justify-content:space-between;padding:6px 0;border-bottom:1px solid var(--gray-800);gap:8px}
.cart-item:last-child{border-bottom:none}
.cart-item-name{color:var(--gray-50);font-size:1.3rem;flex:1;min-width:0}
.cart-item-qty{color:var(--accent);font-size:1.3rem;font-weight:700;white-space:nowrap}
.cart-item-price{color:var(--green-400);font-size:1.3rem;font-weight:700;white-space:nowrap}
.cart-item-del{background:none;border:none;color:#ef4444;cursor:pointer;font-size:1.4rem;padding:2px 4px;line-height:1}
.cart-custom-row{display:flex;gap:6px;margin-top:8px}
.cart-custom-inp{flex:1;background:var(--gray-800);border:1px solid var(--gray-700);border-radius:4px;padding:6px 10px;font-size:1.3rem;color:var(--gray-50);outline:none}
.cart-custom-inp:focus{border-color:var(--accent)}
.cart-custom-btn{background:var(--gray-600);border:none;color:var(--white);border-radius:4px;padding:0 12px;cursor:pointer;font-size:1.3rem;font-weight:700}
.cart-custom-btn:hover{background:var(--accent)}

/* Total & charge button */
.charge-section{background:var(--gray-900);border:1px solid var(--gray-700);border-radius:10px;padding:14px}
.charge-total-row{display:flex;justify-content:space-between;align-items:center;margin-bottom:14px}
.charge-total-lbl{color:var(--gray-400);font-size:1.4rem}
.charge-total-amt{font-size:2.8rem;font-weight:800;color:var(--gray-50)}
.charge-btn{width:100%;padding:16px;border:none;border-radius:10px;font-size:1.8rem;font-weight:800;cursor:pointer;transition:.2s;letter-spacing:.5px}
.charge-btn:not(:disabled){background:var(--accent);color:var(--white);box-shadow:0 4px 20px rgba(232,119,34,.4)}
.charge-btn:not(:disabled):hover{transform:translateY(-1px);box-shadow:0 6px 24px rgba(232,119,34,.5)}
.charge-btn:disabled{background:var(--gray-700);color:var(--gray-600);cursor:not-allowed}
.charge-btn.processing{animation:pulse-btn 1s infinite}
@keyframes pulse-btn{0%,100%{opacity:1}50%{opacity:.7}}
.charge-clear{width:100%;margin-top:8px;padding:10px;border:1px solid var(--gray-700);background:transparent;color:var(--gray-400);border-radius:6px;cursor:pointer;font-size:1.3rem;transition:.15s}
.charge-clear:hover{border-color:#ef4444;color:#ef4444}

/* Right panel: receipt + queue */
.pos-right-header{padding:16px 20px;border-bottom:1px solid var(--gray-700)}
.pos-right-header h3{margin:0;color:var(--gray-50);font-size:1.4rem;font-weight:700}
.pos-right-header p{margin:4px 0 0;font-size:1.3rem;color:var(--gray-500)}
.receipt-flash{padding:16px 20px;border-bottom:1px solid var(--gray-700);display:none}
.receipt-flash.show{display:block}
.rf-success{background:rgba(16,185,129,.1);border:1px solid var(--green-500);border-radius:8px;padding:14px}
.rf-fail{background:rgba(239,68,68,.1);border:1px solid #ef4444;border-radius:8px;padding:14px}
.rf-title{font-size:1.4rem;font-weight:700;margin-bottom:6px}
.rf-success .rf-title{color:var(--green-400)}
.rf-fail .rf-title{color:#ef4444}
.rf-line{display:flex;justify-content:space-between;font-size:1.3rem;margin-bottom:3px}
.rf-line span:first-child{color:var(--gray-400)}
.rf-line span:last-child{color:var(--gray-50);font-weight:600}
.rf-ref{font-size:1.3rem;color:var(--gray-500);margin-top:8px;font-family:'Courier New',monospace}
.txn-list{flex:1;overflow-y:auto;padding:10px 0}
.txn-item{padding:10px 20px;border-bottom:1px solid var(--gray-800);cursor:pointer;transition:.15s}
.txn-item:hover{background:var(--gray-900)}
.txn-row1{display:flex;justify-content:space-between;align-items:center}
.txn-name{color:var(--gray-50);font-size:1.3rem;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:160px}
.txn-amt{color:#ef4444;font-size:1.3rem;font-weight:700}
.txn-row2{display:flex;justify-content:space-between;margin-top:2px}
.txn-desc{color:var(--gray-500);font-size:1.3rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:180px}
.txn-time{color:var(--gray-600);font-size:1.3rem}
.txn-bal{color:var(--green-400);font-size:1.3rem}

/* Result overlay */
.pos-overlay{position:fixed;inset:0;z-index:9999;display:none;align-items:center;justify-content:center;background:rgba(0,0,0,.8);backdrop-filter:blur(4px)}
.pos-overlay.show{display:flex}
.pos-result-box{background:var(--gray-800);border-radius:16px;padding:36px 40px;text-align:center;max-width:400px;width:100%;animation:pop-in .25s ease}
@keyframes pop-in{from{transform:scale(.85);opacity:0}to{transform:scale(1);opacity:1}}
.pos-result-icon{font-size:6.4rem;margin-bottom:16px;line-height:1}
.pos-result-title{font-size:2.4rem;font-weight:800;margin-bottom:8px}
.pos-result-sub{font-size:1.4rem;color:var(--gray-400);margin-bottom:20px}
.pos-result-meta{background:var(--gray-900);border-radius:8px;padding:14px;text-align:left;margin-bottom:20px}
.prm-row{display:flex;justify-content:space-between;padding:4px 0;border-bottom:1px solid var(--gray-800);font-size:1.3rem}
.prm-row:last-child{border-bottom:none}
.prm-row span:first-child{color:var(--gray-500)}
.prm-row span:last-child{font-weight:700;color:var(--gray-50)}
.pos-result-ok .pos-result-title{color:var(--green-400)}
.pos-result-fail .pos-result-title{color:#ef4444}
.pos-result-close{border:none;padding:12px 32px;border-radius:8px;font-size:1.4rem;font-weight:700;cursor:pointer;width:100%}
.pos-result-ok .pos-result-close{background:var(--accent);color:var(--white)}
.pos-result-fail .pos-result-close{background:var(--gray-700);color:var(--gray-50)}

/* Misc */
.pos-btn-sm{border:1px solid var(--gray-700);background:transparent;color:var(--gray-400);border-radius:4px;padding:4px 10px;font-size:1.3rem;cursor:pointer;transition:.15s}
.pos-btn-sm:hover{border-color:var(--accent);color:var(--accent)}
@media(max-width:900px){
  .pos-body{grid-template-columns:1fr}
  .pos-right{border-left:none;border-top:1px solid var(--gray-700);max-height:300px;overflow-y:auto}
  .pos-header{top:0}
  .pos-wrap{margin-top:0}
}
/* Camera QR scanner overlay */
.cam-overlay{position:fixed;inset:0;z-index:9998;display:none;align-items:center;justify-content:center;background:rgba(0,0,0,.88);padding:20px}
.cam-overlay.open{display:flex}
.cam-box{background:var(--gray-900);border:2px solid var(--accent);border-radius:14px;padding:16px;max-width:480px;width:100%;box-shadow:0 0 40px rgba(232,119,34,.3)}
.cam-video{width:100%;max-height:360px;display:block;border-radius:8px;background:#000}
.cam-scan-wrap{position:relative;border-radius:8px;overflow:hidden}
.cam-scan-line{position:absolute;inset:0;pointer-events:none}
.cam-scan-line::after{content:'';position:absolute;left:5%;right:5%;height:2px;background:rgba(232,119,34,.85);box-shadow:0 0 10px var(--accent);animation:cam-sweep 2s ease-in-out infinite}
@keyframes cam-sweep{0%,100%{top:8%}50%{top:88%}}
.cam-status{color:var(--gray-400);font-size:1.3rem;margin-top:10px;min-height:20px;text-align:center}
.cam-btn{background:var(--gray-800);border:2px solid var(--accent);color:var(--accent);border-radius:8px;padding:9px 16px;font-size:1.3rem;font-weight:700;cursor:pointer;display:inline-flex;align-items:center;gap:6px;transition:.15s;white-space:nowrap}
.cam-btn:hover{background:var(--accent);color:var(--white)}
.cam-btn.cam-active{background:var(--accent);color:var(--white);animation:cam-glow 1.5s infinite}
@keyframes cam-glow{0%,100%{box-shadow:0 0 0 0 rgba(232,119,34,.4)}50%{box-shadow:0 0 0 6px rgba(232,119,34,0)}}

/* =====================================================
   SECTION 67: ID CARD GENERATION (ADMIN)
   ===================================================== */
:root {
  --idcard-primary-color: var(--primary);
  --idcard-primary-hover: var(--primary-dark);
  --idcard-primary-light: var(--primary-mist);
  --idcard-primary-dark: var(--primary-dark);
  --idcard-secondary-color: var(--gray-500);
  --idcard-secondary-light: var(--gray-50);
  --idcard-secondary-dark: var(--gray-600);
  --idcard-success-color: var(--green-500);
  --idcard-success-hover: var(--green-600);
  --idcard-success-light: var(--green-100);
  --idcard-success-dark: var(--green-700);
  --idcard-warning-color: var(--amber-500);
  --idcard-warning-hover: var(--amber-600);
  --idcard-warning-light: var(--amber-100);
  --idcard-danger-color: #ef4444;
  --idcard-danger-hover: #dc2626;
  --idcard-danger-light: #fee2e2;
  --idcard-white: var(--white);
  --idcard-gray-50: var(--gray-50);
  --idcard-gray-100: var(--gray-100);
  --idcard-gray-200: var(--gray-200);
  --idcard-gray-300: var(--gray-300);
  --idcard-gray-400: var(--gray-400);
  --idcard-gray-500: var(--gray-500);
  --idcard-gray-600: var(--gray-600);
  --idcard-gray-700: var(--gray-700);
  --idcard-gray-800: var(--gray-800);
  --idcard-gray-900: var(--gray-900);
  --idcard-radius-sm: 0.375rem;
  --idcard-radius-md: 0.5rem;
  --idcard-radius-lg: 1rem;
  --idcard-radius-xl: 1.25rem;
  --idcard-radius-full: 9999px;
  --idcard-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --idcard-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --idcard-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.idcard-container {
  max-width: 1400px;
  margin: 2rem auto;
  padding: 1.5rem;
  background: var(--gray-50);
  min-height: 100vh;
}

/* Alerts */
.idcard-container .alert {
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
  border-radius: var(--idcard-radius-lg);
  font-size: 1.4rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 1rem;
  animation: idcardSlideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-left: 4px solid;
}

@keyframes idcardSlideIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.idcard-container .alert-success {
  background-color: var(--green-50);
  color: var(--green-800);
  border-left-color: var(--idcard-success-color);
  box-shadow: 0 4px 6px -1px rgba(16,185,129,.15);
}

.idcard-container .alert-danger {
  background-color: #fef2f2;
  color: #7f1d1d;
  border-left-color: var(--idcard-danger-color);
  box-shadow: 0 4px 6px -1px rgba(239,68,68,.15);
}

/* Page Header */
.idcard-container .page-header {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
}

.idcard-container .page-header h2 {
  margin: 0;
  color: var(--idcard-gray-900);
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Stats grid */
.idcard-container .stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.idcard-container .stat-card {
  background: var(--idcard-white);
  padding: 2rem 1.5rem;
  border-radius: var(--idcard-radius-xl);
  box-shadow: var(--idcard-shadow-md);
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: all 250ms cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid var(--idcard-gray-100);
}

.idcard-container .stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--idcard-primary-color);
  transition: height 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.idcard-container .stat-card.generated::before { background: var(--idcard-success-color); }
.idcard-container .stat-card.pending::before { background: var(--idcard-warning-color); }

.idcard-container .stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--idcard-shadow-lg);
  border-color: var(--idcard-primary-light);
}

.idcard-container .stat-card:hover::before { height: 6px; }

.idcard-container .stat-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: inline-block;
  background: var(--idcard-primary-light);
  width: 60px; height: 60px;
  border-radius: var(--idcard-radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.idcard-container .stat-card.generated .stat-icon { background: var(--idcard-success-light); }
.idcard-container .stat-card.pending .stat-icon { background: var(--idcard-warning-light); }

.idcard-container .stat-number {
  font-size: 2.75rem;
  font-weight: 700;
  color: var(--idcard-gray-900);
  margin-bottom: 0.5rem;
  letter-spacing: -1px;
}

.idcard-container .stat-label {
  font-size: 1.4rem;
  color: var(--idcard-gray-600);
  font-weight: 500;
  letter-spacing: 0.5px;
}

/* Card */
.idcard-container .card {
  background: var(--idcard-white);
  border-radius: var(--idcard-radius-xl);
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--idcard-shadow-md);
  border: 1px solid var(--idcard-gray-100);
  transition: all 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.idcard-container .card:hover {
  box-shadow: var(--idcard-shadow-lg);
  border-color: var(--idcard-gray-200);
}

.idcard-container .card h3 {
  margin-top: 0;
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  color: var(--idcard-gray-900);
  font-size: 2rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 1rem;
  border-bottom: 2px solid var(--idcard-primary-light);
  letter-spacing: -0.5px;
}

/* Form */
.idcard-container .form-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem;
  align-items: flex-end;
}

.idcard-container .form-group { margin-bottom: 1.5rem; }

.idcard-container .form-group label {
  display: block;
  margin-bottom: 1rem;
  font-weight: 600;
  font-size: 1.4rem;
  color: var(--idcard-gray-700);
  letter-spacing: 0.3px;
  text-transform: uppercase;
  opacity: 0.9;
}

.idcard-container .form-control,
.idcard-container .filter-control {
  width: 100%;
  padding: 1rem 1.25rem;
  border: 2px solid var(--idcard-gray-200);
  border-radius: var(--idcard-radius-md);
  font-size: 1.7rem;
  color: var(--idcard-gray-900);
  background-color: var(--idcard-white);
  transition: all 250ms cubic-bezier(0.4, 0, 0.2, 1);
  box-sizing: border-box;
  font-family: inherit;
  min-height: 50px;
  line-height: 1.6;
}

.idcard-container .form-control:focus,
.idcard-container .filter-control:focus {
  outline: none;
  border-color: var(--idcard-primary-color);
  box-shadow: 0 0 0 3px var(--idcard-primary-light), 0 0 0 1px var(--idcard-primary-color);
}

.idcard-container .form-control:hover,
.idcard-container .filter-control:hover { border-color: var(--idcard-gray-300); }

.idcard-container select.form-control,
.idcard-container select.filter-control {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%234b5563' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3E%3C/svg%3E");
  background-position: right 1rem center;
  background-repeat: no-repeat;
  background-size: 1.25em 1.25em;
  padding-right: 2.5rem;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

.idcard-container select.form-control option,
.idcard-container select.filter-control option {
  padding: 1rem 0.75rem;
  font-size: 1.7rem;
  line-height: 1.8;
  color: var(--idcard-gray-900);
}

.idcard-container input.form-control::placeholder,
.idcard-container textarea.form-control::placeholder {
  color: var(--idcard-gray-400);
  opacity: 1;
}

/* Buttons */
.idcard-container .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  border: none;
  border-radius: var(--idcard-radius-md);
  cursor: pointer;
  font-size: 1.4rem;
  font-weight: 600;
  transition: all 250ms cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  white-space: nowrap;
  box-shadow: var(--idcard-shadow-sm);
  letter-spacing: 0.3px;
  position: relative;
  overflow: hidden;
}

.idcard-container .btn:before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 0; height: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.5);
  transform: translate(-50%, -50%);
  transition: width 150ms, height 150ms;
}

.idcard-container .btn:active:before { width: 300px; height: 300px; }

.idcard-container .btn:hover { transform: translateY(-2px); box-shadow: var(--idcard-shadow-md); }

.idcard-container .btn-primary { background: var(--idcard-primary-color); color: var(--idcard-white); }
.idcard-container .btn-primary:hover { background: var(--idcard-primary-hover); box-shadow: 0 8px 16px rgba(37,99,235,.3); }

.idcard-container .btn-success { background: var(--idcard-success-color); color: var(--idcard-white); }
.idcard-container .btn-success:hover { background: var(--idcard-success-hover); box-shadow: 0 8px 16px rgba(16,185,129,.3); }

.idcard-container .btn-info { background: var(--idcard-secondary-color); color: var(--idcard-white); }
.idcard-container .btn-info:hover { background: var(--idcard-secondary-dark); box-shadow: 0 8px 16px rgba(100, 116, 139, 0.3); }

.idcard-container .btn-secondary {
  background: var(--idcard-gray-200);
  color: var(--idcard-gray-800);
  border: 1px solid var(--idcard-gray-300);
}

.idcard-container .btn-secondary:hover { background: var(--idcard-gray-300); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); }

.idcard-container .btn-sm {
  padding: 0.625rem 1rem;
  font-size: 1.3rem;
  border-radius: var(--idcard-radius-sm);
  margin-right: 0.5rem;
}

/* Table */
.idcard-container .table-responsive {
  overflow-x: auto;
  border-radius: var(--idcard-radius-lg);
}

.idcard-container .students-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-top: 1.25rem;
}

.idcard-container .students-table th {
  background: var(--idcard-gray-800);
  color: var(--idcard-white);
  padding: 1rem 1.5rem;
  text-align: left;
  font-size: 1.4rem;
  font-weight: 700;
  white-space: nowrap;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  opacity: 0.95;
}

.idcard-container .students-table th:first-child { border-radius: var(--idcard-radius-lg) 0 0 0; }
.idcard-container .students-table th:last-child { border-radius: 0 var(--idcard-radius-lg) 0 0; }

.idcard-container .students-table td {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--idcard-gray-200);
  font-size: 1.4rem;
  color: var(--idcard-gray-700);
  transition: all 150ms;
}

.idcard-container .students-table tbody tr { transition: all 150ms; }
.idcard-container .students-table tbody tr:hover { background: var(--gray-50); }
.idcard-container .students-table tbody tr:last-child td { border-bottom: none; }
.idcard-container .students-table tbody tr:last-child td:first-child { border-radius: 0 0 0 var(--idcard-radius-lg); }
.idcard-container .students-table tbody tr:last-child td:last-child { border-radius: 0 0 var(--idcard-radius-lg) 0; }

/* Student photo */
.idcard-container .student-photo,
.idcard-container .no-photo {
  width: 45px; height: 45px;
  border-radius: var(--idcard-radius-full);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--idcard-gray-200);
  transition: all 150ms;
}

.idcard-container .student-photo:hover,
.idcard-container .no-photo:hover {
  border-color: var(--idcard-primary-color);
  box-shadow: 0 4px 12px rgba(37,99,235,.25);
}

.idcard-container .student-photo img { width: 100%; height: 100%; object-fit: cover; }

.idcard-container .no-photo {
  background: var(--idcard-primary-color);
  color: var(--idcard-white);
  font-size: 1.4rem;
  font-weight: 700;
}

/* Badges */
.idcard-container .card-number {
  background: var(--idcard-primary-light);
  padding: 0.375rem 0.875rem;
  border-radius: var(--idcard-radius-full);
  font-weight: 700;
  color: var(--idcard-primary-dark);
  font-size: 1.3rem;
  letter-spacing: 0.5px;
  border: 1px solid var(--idcard-primary-color);
  display: inline-block;
}

.idcard-container .status-badge {
  padding: 0.375rem 1rem;
  border-radius: var(--idcard-radius-full);
  font-size: 1.3rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.idcard-container .status-active {
  background: var(--idcard-success-light);
  color: var(--idcard-success-dark);
  border: 1px solid var(--idcard-success-color);
}

.idcard-container .status-pending {
  background: var(--idcard-warning-light);
  color: var(--idcard-warning-hover);
  border: 1px solid var(--idcard-warning-color);
}

/* Filter section */
.idcard-container .filter-dropdown {
  position: relative;
  display: inline-block;
  width: 100%;
}

/* Empty state */
.idcard-container .empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--idcard-gray-500);
}

.idcard-container .empty-state h3 {
  color: var(--idcard-gray-700);
  font-size: 1.8rem;
  margin: 1.25rem 0;
  font-weight: 600;
}

.idcard-container .empty-state p {
  color: var(--idcard-gray-500);
  font-size: 1.4rem;
}

/* Responsive */
@media (max-width: 1024px) {
  .idcard-container .form-row { grid-template-columns: 1fr; }
  .idcard-container .stats-grid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; }
}

@media (max-width: 768px) {
  .idcard-container { padding: 1.25rem; }
  .idcard-container .card { padding: 1.5rem; }
  .idcard-container .stats-grid { grid-template-columns: 1fr; }
  .idcard-container .stat-number { font-size: 2rem; }
  .idcard-container .page-header h2 { font-size: 2rem; }
  .idcard-container .students-table th,
  .idcard-container .students-table td { padding: 0.75rem 0.5rem; font-size: 1.3rem; }
  .idcard-container .students-table th { white-space: normal; }
  .idcard-container .btn-sm { padding: 0.5rem 0.75rem; font-size: 1.3rem; margin-right: 0.25rem; }
}

@media (max-width: 480px) {
  .idcard-container .card h3 { font-size: 1.8rem; flex-wrap: wrap; }
  .idcard-container .students-table { font-size: 1.3rem; }
  .idcard-container .btn { width: 100%; justify-content: center; }
  .idcard-container .form-row { gap: 1rem; }
}

/* Accessibility */
.idcard-container .btn:focus-visible,
.idcard-container .form-control:focus-visible,
.idcard-container .filter-control:focus-visible {
  outline: 2px solid var(--idcard-primary-color);
  outline-offset: 2px;
}

/* =====================================================
   SECTION 68: TEACHER FINGERPRINT ATTENDANCE (KIOSK)
   ===================================================== */
.kiosk-page *, .kiosk-page *::before, .kiosk-page *::after { box-sizing: border-box; margin: 0; padding: 0; }

.kiosk-page {
  --bg-primary: var(--gray-900);
  --bg-secondary: var(--gray-800);
  --bg-card: rgba(30, 41, 59, 0.7);
  --bg-glass: rgba(255, 255, 255, 0.03);
  --border: rgba(255,255,255,.08);
  --border-hover: rgba(255,255,255,.15);
  --text-primary: var(--gray-50);
  --text-secondary: var(--gray-400);
  --text-muted: var(--gray-500);
  --accent: var(--primary-light);
  --accent-glow: rgba(59,130,246,.3);
  --success: var(--green-500);
  --success-glow: rgba(16,185,129,.3);
  --warning: var(--amber-500);
  --warning-glow: rgba(245, 158, 11, 0.3);
  --error: #ef4444;
  --error-glow: rgba(239,68,68,.3);
  --purple: #a78bfa;
  --purple-glow: rgba(167,139,250,.3);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.5);
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  font-size: 1.5rem;
}

.kiosk-page::before {
  content: '';
  position: fixed;
  inset: 0;
  background: var(--gray-900);
  pointer-events: none;
  z-index: 0;
}

/* Header */
.kiosk-header {
  position: relative;
  z-index: 10;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.header-brand { display: flex; align-items: center; gap: 14px; }

.header-logo {
  width: 42px; height: 42px;
  border-radius: var(--radius-md);
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 4px 12px var(--accent-glow);
}

.header-title h1 {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.header-title p {
  font-size: 1.3rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.header-clock { text-align: right; }

.clock-time {
  font-family: 'JetBrains Mono', monospace;
  font-size: 2rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.05em;
}

.clock-date {
  font-size: 1.3rem;
  color: var(--text-secondary);
  margin-top: 3px;
}

/* Main Layout */
.kiosk-main {
  position: relative;
  z-index: 1;
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 0;
  min-height: 0;
}

@media (max-width: 1024px) {
  .kiosk-main { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
}

/* Scanner Area */
.kiosk-scanner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  position: relative;
}

.scanner-status {
  position: absolute;
  top: 20px; left: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.3rem;
  color: var(--text-muted);
}

.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--text-muted); }
.status-dot.connected { background: var(--success); box-shadow: 0 0 8px var(--success-glow); }
.status-dot.disconnected { background: var(--error); box-shadow: 0 0 8px var(--error-glow); }
.status-dot.busy { background: var(--warning); box-shadow: 0 0 8px var(--warning-glow); animation: kpPulse 1.5s infinite; }

@keyframes kpPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

.scanner-ring-wrap { position: relative; margin-bottom: 32px; }

.scanner-ring-wrap::before {
  content: '';
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  background: rgba(59,130,246,.3);
  opacity: 0;
  transition: opacity 0.4s;
}

.scanner-ring-wrap.active::before { opacity: 1; }

.scanner-ring {
  width: 180px; height: 180px;
  border-radius: 50%;
  border: 3px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  background: var(--bg-glass);
}

.scanner-ring svg { width: 80px; height: 80px; opacity: 0.6; transition: opacity 0.3s; }

.scanner-ring.scanning {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-glow), 0 0 48px var(--accent-glow);
  animation: kpRingPulse 2s infinite;
}

.scanner-ring.scanning svg { opacity: 1; }

.scanner-ring.success {
  border-color: var(--success);
  box-shadow: 0 0 0 4px var(--success-glow), 0 0 48px var(--success-glow);
}

.scanner-ring.success svg { opacity: 1; }

.scanner-ring.error {
  border-color: var(--error);
  box-shadow: 0 0 0 4px var(--error-glow), 0 0 48px var(--error-glow);
}

.scanner-ring.error svg { opacity: 1; }

@keyframes kpRingPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.03); }
}

.scanner-message {
  font-size: 1.5rem;
  font-weight: 600;
  text-align: center;
  min-height: 2.4em;
  margin-bottom: 10px;
  transition: all 0.3s;
}

.scanner-message.ok { color: var(--success); }
.scanner-message.busy { color: var(--accent); }
.scanner-message.bad { color: var(--error); }

.scanner-sub {
  font-size: 1.3rem;
  color: var(--text-muted);
  text-align: center;
  min-height: 1.4em;
}

/* Sidebar */
.kiosk-sidebar {
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

@media (max-width: 1024px) {
  .kiosk-sidebar {
    border-left: none;
    border-top: 1px solid var(--border);
    max-height: 50vh;
  }
}

/* Stats Bar */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--border);
}

.stat-item {
  padding: 16px 10px;
  text-align: center;
  border-right: 1px solid var(--border);
  position: relative;
  transition: background 0.2s;
}

.stat-item:hover { background: var(--bg-glass); }
.stat-item:last-child { border-right: none; }

.stat-num { font-size: 1.75rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.stat-num.green { color: var(--success); }
.stat-num.yellow { color: var(--warning); }
.stat-num.blue { color: var(--accent); }
.stat-num.purple { color: var(--purple); }

.stat-label {
  font-size: 1.3rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  margin-top: 5px;
}

/* Tabs */
.att-tabs { display: flex; border-bottom: 1px solid var(--border); background: var(--bg-glass); }

.att-tab {
  flex: 1;
  padding: 14px 12px;
  text-align: center;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  border: none;
  background: none;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.att-tab:hover { color: var(--text-secondary); background: rgba(255,255,255,0.02); }
.att-tab.active { color: var(--accent); border-bottom-color: var(--accent); }

.tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 100px;
  font-size: 1.3rem;
  font-weight: 700;
  background: rgba(59, 130, 246, 0.15);
  color: var(--accent);
}

.att-tab.active .tab-count { background: var(--accent); color: var(--white); }

/* Attendance List */
.attendance-list {
  flex: 1;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.attendance-list::-webkit-scrollbar { width: 4px; }
.attendance-list::-webkit-scrollbar-track { background: transparent; }
.attendance-list::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

.tab-panel { display: none; }
.tab-panel.active { display: block; }

.att-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  transition: all 0.2s;
  animation: kpSlideIn 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.att-item:hover { background: var(--bg-glass); }
.att-item.new { background: rgba(16, 185, 129, 0.08); border-left: 3px solid var(--success); }

@keyframes kpSlideIn {
  from { opacity: 0; transform: translateX(16px); }
  to { opacity: 1; transform: translateX(0); }
}

.att-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.3rem;
  flex-shrink: 0;
  position: relative;
}

.att-avatar::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 2px solid transparent;
}

.att-avatar.present { background: rgba(16,185,129,0.12); color: var(--success); }
.att-avatar.present::after { border-color: rgba(16,185,129,.3); }
.att-avatar.late { background: rgba(245,158,11,0.12); color: var(--warning); }
.att-avatar.late::after { border-color: rgba(245,158,11,0.3); }
.att-avatar.out { background: rgba(167,139,250,.12); color: var(--purple); }
.att-avatar.out::after { border-color: rgba(167,139,250,.3); }

.att-info { flex: 1; min-width: 0; }
.att-name {
  font-size: 1.3rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.att-time {
  font-size: 1.3rem;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
  margin-top: 3px;
}

.att-badge {
  font-size: 1.3rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}

.att-badge.present { background: rgba(16,185,129,0.12); color: var(--success); }
.att-badge.late { background: rgba(245,158,11,0.12); color: var(--warning); }
.att-badge.out { background: rgba(167,139,250,.12); color: var(--purple); }

.empty-list { padding: 56px 28px; text-align: center; color: var(--text-muted); }

.empty-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.8rem;
  margin: 0 auto 14px;
}

.empty-list p { font-size: 1.3rem; }
.empty-list .sub { font-size: 1.3rem; color: var(--text-muted); margin-top: 6px; }

/* Cert Notice */
.cert-notice {
  display: none;
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-secondary);
  border: 1px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: 16px 24px;
  font-size: 1.3rem;
  color: var(--text-primary);
  z-index: 1000;
  max-width: 480px;
  box-shadow: var(--shadow-lg), 0 0 32px var(--accent-glow);
}

.cert-notice a { color: var(--accent); text-decoration: underline; }
.cert-notice strong { color: var(--warning); }

/* Responsive */
@media (max-width: 768px) {
  .kiosk-page { font-size: 1.3rem; }
  .kiosk-header { padding: 12px 16px; }
  .header-logo { width: 36px; height: 36px; font-size: 1.6rem; }
  .clock-time { font-size: 1.4rem; }
  .kiosk-scanner { padding: 32px 16px; }
  .scanner-ring { width: 150px; height: 150px; }
  .scanner-ring svg { width: 64px; height: 64px; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }
  .stat-item:nth-child(1), .stat-item:nth-child(2) { border-bottom: 1px solid var(--border); }
}

@media (max-width: 480px) {
  .header-brand { gap: 10px; }
  .header-title h1 { font-size: 1.3rem; }
  .header-title p { display: none; }
  .scanner-ring { width: 130px; height: 130px; }
  .scanner-message { font-size: 1.3rem; }
}

/* =====================================================
   SECTION 69: PAYMENT MANAGEMENT
   ===================================================== */
.pm-page {
  --pm-primary: var(--primary);
  --pm-primary-hover: var(--primary-dark);
  --pm-primary-light: var(--primary-mist);
  --pm-primary-dark: var(--primary-dark);
  --pm-success: var(--green-500);
  --pm-success-hover: var(--green-600);
  --pm-success-light: var(--green-100);
  --pm-success-dark: var(--green-700);
  --pm-warning: var(--amber-500);
  --pm-warning-hover: var(--amber-600);
  --pm-warning-light: var(--amber-100);
  --pm-danger: #ef4444;
  --pm-danger-hover: #dc2626;
  --pm-danger-light: #fee2e2;
  --pm-white: var(--white);
  --pm-gray-50: var(--gray-50);
  --pm-gray-100: var(--gray-100);
  --pm-gray-200: var(--gray-200);
  --pm-gray-300: var(--gray-300);
  --pm-gray-400: var(--gray-400);
  --pm-gray-500: var(--gray-500);
  --pm-gray-600: var(--gray-600);
  --pm-gray-700: var(--gray-700);
  --pm-gray-800: var(--gray-800);
  --pm-radius-sm: 0.375rem;
  --pm-radius-md: 0.5rem;
  --pm-radius-lg: 0.75rem;
  --pm-radius-xl: 1rem;
  --pm-radius-full: 9999px;
  --pm-shadow-sm: 0 1px 2px rgba(0,0,0,.05);
  --pm-shadow-md: 0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -1px rgba(0,0,0,.06);
  --pm-shadow-lg: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -2px rgba(0,0,0,.05);
  --pm-transition: 250ms cubic-bezier(.4,0,.2,1);
}

.pm-page *,
.pm-page *::before,
.pm-page *::after { box-sizing: border-box; }

.pm-page {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
}

/* Top bar */
.pm-page .pm-topbar {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  width: 100%;
}

.pm-page .pm-topbar-msg {
  font-size: 1.3rem;
  color: var(--amber-600);
  font-weight: 700;
  min-width: 0;
  word-break: break-word;
}

/* Notification bell */
.pm-page .notif-wrap { position: relative; display: inline-block; flex-shrink: 0; }

.pm-page .notif-badge-dot {
  position: absolute; top: -5px; right: -8px;
  background: var(--pm-danger); color: var(--white);
  font-size: 1.3rem; font-weight: 800;
  min-width: 18px; height: 18px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px;
}

.pm-page .notif-bell-btn {
  background: var(--white);
  border: 1px solid var(--pm-gray-200);
  border-radius: var(--pm-radius-lg);
  padding: 0.55rem 0.9rem;
  cursor: pointer;
  font-size: 1.3rem;
  position: relative;
}
.pm-page .notif-bell-btn:hover { border-color: var(--pm-primary); }

.pm-page .notif-dropdown {
  position: absolute;
  right: 0; top: 42px;
  z-index: 999;
  width: min(360px, calc(100vw - 2rem));
  background: var(--white);
  border: 1px solid var(--pm-gray-200);
  border-radius: var(--pm-radius-lg);
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
  display: none;
  overflow: hidden;
}
.pm-page .notif-dropdown.open { display: block; }
.pm-page .notif-hdr {
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--pm-gray-100);
  display: flex; justify-content: space-between; align-items: center;
  font-weight: 700; font-size: 1.3rem;
}
.pm-page .notif-item {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--pm-gray-100);
  cursor: pointer; transition: background 0.15s;
  font-size: 1.3rem;
}
.pm-page .notif-item:hover { background: var(--pm-gray-50); }
.pm-page .notif-item.unread { background: var(--primary-mist); }
.pm-page .notif-item .ni-title { font-weight: 600; margin-bottom: 0.35rem; color: var(--pm-gray-800); }
.pm-page .notif-item .ni-msg   { color: var(--pm-gray-500); font-size: 1.3rem; }
.pm-page .notif-item .ni-time  { color: var(--pm-gray-400); font-size: 1.3rem; margin-top: 0.35rem; }
.pm-page .notif-empty { padding: 1.2rem; text-align: center; color: var(--pm-gray-500); font-size: 1.3rem; }
.pm-page .notif-footer { padding: 0.75rem 1rem; text-align: center; border-top: 1px solid var(--pm-gray-100); }

/* Alerts */
.pm-page .alert {
  padding: 0.875rem 1.25rem;
  border-radius: var(--pm-radius-lg);
  margin-bottom: 1rem;
  font-size: 1.3rem;
  font-weight: 500;
  border-left: 4px solid;
  word-break: break-word;
}
.pm-page .alert-success { background: var(--pm-success-light); color: var(--pm-success-dark); border-left-color: var(--pm-success); }
.pm-page .alert-error   { background: var(--pm-danger-light);  color: #991b1b;             border-left-color: var(--pm-danger); }
.pm-page .alert-info    { background: var(--pm-primary-light); color: var(--pm-primary-dark); border-left-color: var(--pm-primary); }

/* Cards */
.pm-page .card {
  background: var(--pm-white);
  border-radius: var(--pm-radius-lg);
  padding: 1.5rem;
  margin-bottom: 1rem;
  box-shadow: var(--pm-shadow-md);
  border: 1px solid var(--pm-gray-100);
  width: 100%;
  overflow: hidden;
}
.pm-page .card h3 {
  margin: 0 0 1rem;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--pm-gray-800);
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--pm-primary-light);
}

/* Pending banner */
.pm-page .pending-banner {
  background: var(--amber-100);
  border: 1px solid var(--amber-200);
  border-radius: var(--pm-radius-lg);
  padding: 1rem 1.25rem;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.pm-page .pb-icon  { font-size: 1.8rem; flex-shrink: 0; }
.pm-page .pb-text  { flex: 1; min-width: 0; font-size: 1.3rem; color: var(--pm-gray-700); }
.pm-page .pb-count {
  font-size: 2rem; font-weight: 800; color: var(--amber-700);
  background: var(--white); border-radius: var(--pm-radius-lg);
  padding: 0.4rem 0.9rem; box-shadow: var(--pm-shadow-sm);
  flex-shrink: 0;
}

/* Stats grid */
.pm-page .stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.pm-page .stat-card {
  background: var(--pm-white);
  border-radius: var(--pm-radius-lg);
  border: 1px solid var(--pm-gray-200);
  border-left: 4px solid var(--pm-primary);
  box-shadow: var(--pm-shadow-sm);
  padding: 1rem 1.1rem;
  transition: all var(--pm-transition);
  min-width: 0;
}
.pm-page .stat-card:hover { box-shadow: var(--pm-shadow-md); transform: translateY(-1px); }
.pm-page .stat-card.sc-paid    { border-left-color: var(--pm-success); background: var(--green-50); }
.pm-page .stat-card.sc-partial { border-left-color: var(--pm-warning); background: #fffbeb; }
.pm-page .stat-card.sc-unpaid  { border-left-color: var(--pm-danger);  background: #fef2f2; }

.pm-page .stat-num {
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--pm-gray-800);
  margin: 0 0 0.3rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pm-page .stat-lbl {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--pm-gray-500);
}

/* Filter strip */
.pm-page .filter-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.75rem;
  align-items: end;
  margin-bottom: 1.25rem;
}

.pm-page .fg label {
  display: block;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--pm-gray-700);
  margin-bottom: 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Forms */
.pm-page .form-group { margin-bottom: 1rem; }
.pm-page .form-group label {
  display: block; font-size: 1.4rem;
  font-weight: 600; color: var(--pm-gray-700);
  margin-bottom: 0.5rem; letter-spacing: 0.025em;
}
.pm-page .form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--pm-gray-200);
  border-radius: var(--pm-radius-md);
  font-size: 1.4rem;
  line-height: 1.5;
  color: var(--pm-gray-800);
  background: var(--pm-white);
  min-height: 44px;
  transition: all var(--pm-transition);
}
.pm-page .form-control:focus { outline: none; border-color: var(--pm-primary); box-shadow: 0 0 0 3px rgba(37,99,235,.12); }
.pm-page select.form-control {
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1.5em;
  padding-right: 2.5rem;
  cursor: pointer;
}
.pm-page textarea.form-control { min-height: 100px; resize: vertical; font-family: inherit; }

/* Buttons */
.pm-page .btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 1.25rem;
  border: none; border-radius: var(--pm-radius-md);
  font-size: 1.3rem; font-weight: 600;
  cursor: pointer; transition: all var(--pm-transition);
  text-decoration: none; line-height: 1;
  white-space: nowrap;
}
.pm-page .btn:hover { transform: translateY(-1px); box-shadow: var(--pm-shadow-md); }
.pm-page .btn-primary  { background: var(--pm-primary); color: var(--white); }
.pm-page .btn-primary:hover  { background: var(--pm-primary-hover); }
.pm-page .btn-success  { background: var(--pm-success); color: var(--white); }
.pm-page .btn-success:hover  { background: var(--pm-success-hover); }
.pm-page .btn-warning  { background: var(--pm-warning); color: var(--white); }
.pm-page .btn-danger   { background: var(--pm-danger);  color: var(--white); }
.pm-page .btn-danger:hover   { background: var(--pm-danger-hover); }
.pm-page .btn-secondary { background: var(--pm-gray-100); color: var(--pm-gray-700); border: 2px solid var(--pm-gray-200); }
.pm-page .btn-secondary:hover { background: var(--pm-gray-200); }
.pm-page .btn-block { width: 100%; }

/* Tables */
.pm-page .tbl-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; width: 100%; }

.pm-page .pay-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--pm-white);
  min-width: 700px;
}
.pm-page .pay-table th {
  background: var(--pm-gray-800); color: var(--white);
  padding: 0.75rem 1rem;
  text-align: left; font-weight: 600;
  font-size: 1.3rem;
  white-space: nowrap;
}
.pm-page .pay-table td {
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--pm-gray-200);
  vertical-align: middle;
  font-size: 1.3rem;
}
.pm-page .pay-table tr:hover td { background: var(--pm-gray-50); }

.pm-page .tbl-actions { display: flex; flex-wrap: wrap; gap: 4px; min-width: 200px; }
.pm-page .tbl-actions .btn { padding: 0.4rem 0.7rem; font-size: 1.3rem; }

/* Badges */
.pm-page .badge {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.3rem 0.75rem;
  border-radius: var(--pm-radius-full);
  font-size: 1.3rem; font-weight: 700;
  text-transform: uppercase; white-space: nowrap;
}
.pm-page .badge-paid, .pm-page .badge-approved { background: var(--pm-success-light); color: var(--pm-success-dark); }
.pm-page .badge-partial, .pm-page .badge-pending { background: var(--pm-warning-light); color: var(--amber-700); }
.pm-page .badge-unpaid, .pm-page .badge-rejected, .pm-page .badge-overdue { background: var(--pm-danger-light); color: #991b1b; }

/* Modals */
.pm-page .modal {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 10000;
  align-items: flex-start;
  justify-content: center;
  padding: 1.25rem;
  overflow-y: auto;
}
.pm-page .modal[style*="display: block"] { display: flex !important; }

.pm-page .modal-content {
  background: var(--pm-white);
  border-radius: var(--pm-radius-xl);
  width: 100%;
  max-width: 520px;
  max-height: calc(100vh - 2.5rem);
  overflow-y: auto;
  box-shadow: 0 20px 40px rgba(0,0,0,.18);
  overflow: hidden;
  animation: pmModalIn 0.2s ease;
  margin: auto;
}
@keyframes pmModalIn {
  from { opacity: 0; transform: translateY(-14px) scale(0.97); }
  to   { opacity: 1; transform: none; }
}
.pm-page .modal-hdr {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.5rem;
  background: var(--pm-primary-light);
  border-bottom: 1px solid var(--pm-primary);
  position: sticky; top: 0; z-index: 1;
}
.pm-page .modal-hdr h3 { margin: 0; font-size: 1.5rem; font-weight: 700; color: var(--pm-primary-dark); }
.pm-page .modal-body { padding: 1.5rem; overflow-y: auto; }
.pm-page .close-btn {
  background: none; border: none;
  font-size: 1.4rem; cursor: pointer;
  color: var(--pm-gray-500); line-height: 1;
  padding: 0.25rem 0.5rem; border-radius: var(--pm-radius-md);
  transition: all var(--pm-transition);
}
.pm-page .close-btn:hover { background: var(--pm-danger-light); color: var(--pm-danger); }

/* Autocomplete */
.pm-page .ac-wrap { position: relative; }
.pm-page #search_ac_list {
  position: absolute; top: 100%; left: 0; right: 0;
  background: var(--white);
  border: 1px solid var(--gray-300); border-top: none;
  z-index: 999;
  max-height: 220px; overflow-y: auto;
  display: none;
  box-shadow: 0 4px 8px rgba(0,0,0,.12);
  border-radius: 0 0 4px 4px;
}

/* Responsive */
@media (max-width: 900px) {
  .pm-page .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .pm-page .stat-num   { font-size: 2rem; }
}

@media (max-width: 767px) {
  .pm-page { padding: 0.75rem 0.75rem 2.5rem; }
  .pm-page .pm-topbar { grid-template-columns: 1fr; gap: 0.5rem; }
  .pm-page .pm-topbar-msg { text-align: left; }
  .pm-page .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 0.6rem; }
  .pm-page .stat-num   { font-size: 1.7rem; }
  .pm-page .filter-strip { grid-template-columns: 1fr 1fr; }
  .pm-page .card { padding: 1rem; }
  .pm-page .pay-table th, .pm-page .pay-table td { padding: 0.55rem 0.65rem; font-size: 1.3rem; }
  .pm-page .modal-content { max-width: 100%; margin: 0; border-radius: var(--pm-radius-lg); }
  .pm-page .modal { padding: 0.75rem; }
  .pm-page .modal-body { padding: 1rem; }
}

@media (max-width: 480px) {
  .pm-page .stats-grid    { grid-template-columns: 1fr 1fr; gap: 0.5rem; }
  .pm-page .filter-strip  { grid-template-columns: 1fr; }
  .pm-page .tbl-actions   { flex-direction: column; }
  .pm-page .tbl-actions .btn { width: 100%; justify-content: center; }
}

/* =====================================================
   SECTION 70: TEACHER CBT QUESTIONS
   Scoped to .cbt-container (page content) and #editModal
   ===================================================== */

/* ===== Scoped CSS variables ===== */
.cbt-container {
  --cbt-primary: var(--primary);
  --cbt-primary-hover: var(--primary-dark);
  --cbt-primary-light: var(--primary-mist);
  --cbt-primary-dark: var(--primary-dark);
  --cbt-success: var(--green-500);
  --cbt-success-hover: var(--green-600);
  --cbt-success-light: var(--green-100);
  --cbt-success-dark: var(--green-700);
  --cbt-warning: var(--amber-500);
  --cbt-warning-hover: var(--amber-600);
  --cbt-danger: #ef4444;
  --cbt-danger-hover: #dc2626;
  --cbt-danger-light: #fee2e2;
  --cbt-white: var(--white);
  --cbt-gray-50: var(--gray-50);
  --cbt-gray-100: var(--gray-100);
  --cbt-gray-200: var(--gray-200);
  --cbt-gray-300: var(--gray-300);
  --cbt-gray-400: var(--gray-400);
  --cbt-gray-500: var(--gray-500);
  --cbt-gray-600: var(--gray-600);
  --cbt-gray-700: var(--gray-700);
  --cbt-gray-800: var(--gray-800);
  --cbt-gray-900: var(--gray-900);
  --cbt-radius-sm: 0.375rem;
  --cbt-radius-md: 0.5rem;
  --cbt-radius-lg: 1rem;
  --cbt-radius-xl: 1.25rem;
  --cbt-radius-full: 9999px;
  --cbt-shadow-sm: 0 1px 2px 0 rgba(0,0,0,0.05);
  --cbt-shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px 0 2px 6px rgba(0,0,0,.06);
  --cbt-shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
  --cbt-shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px 0 1px 2px rgba(0,0,0,.04);
  --cbt-spacing-xs: 0.5rem;
  --cbt-spacing-sm: 1rem;
  --cbt-spacing-md: 1.25rem;
  --cbt-spacing-lg: 1.5rem;
  --cbt-spacing-xl: 2rem;
  --cbt-spacing-2xl: 3rem;
  --cbt-transition-base: 250ms cubic-bezier(0.4,0,0.2,1);
  max-width: 1200px;
  margin: var(--cbt-spacing-xl) auto;
  padding: 0 var(--cbt-spacing-md);
}

/* ===== ALERTS ===== */
.cbt-container .alert {
  padding: var(--cbt-spacing-md) var(--cbt-spacing-lg);
  margin-bottom: var(--cbt-spacing-lg);
  border-radius: var(--cbt-radius-lg);
  font-size: 1.4rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: var(--cbt-spacing-sm);
  animation: cbtSlideDown 0.3s ease-out;
  border-left: 4px solid;
}
.cbt-container .alert::before {
  content: '';
  width: 22px; height: 22px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--white); border-radius: 50%;
  font-weight: 700; font-size: 1.3rem;
}
.cbt-container .alert-success {
  background-color: var(--cbt-success-light);
  color: var(--cbt-success-dark);
  border-left-color: var(--cbt-success);
}
.cbt-container .alert-success::before { content: 'âœ“'; background-color: var(--cbt-success); }
.cbt-container .alert-error {
  background-color: var(--cbt-danger-light);
  color: #7f1d1d;
  border-left-color: var(--cbt-danger);
}
.cbt-container .alert-error::before { content: '!'; background-color: var(--cbt-danger); }
@keyframes cbtSlideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ===== CARDS ===== */
.cbt-container .cbt-card {
  background: var(--cbt-white);
  border: 1px solid var(--cbt-gray-200);
  border-radius: var(--cbt-radius-xl);
  padding: var(--cbt-spacing-xl);
  margin-bottom: var(--cbt-spacing-xl);
  box-shadow: var(--cbt-shadow-sm);
  transition: box-shadow var(--cbt-transition-base);
}
.cbt-container .cbt-card:hover { box-shadow: var(--cbt-shadow-md); }
.cbt-container .cbt-card h3 {
  margin: 0 0 var(--cbt-spacing-lg) 0;
  color: var(--cbt-gray-900);
  font-size: 2rem;
  font-weight: 700;
  padding-bottom: var(--cbt-spacing-md);
  border-bottom: 3px solid var(--cbt-primary);
  display: flex; align-items: center; gap: var(--cbt-spacing-sm);
}

/* ===== FORM ELEMENTS ===== */
.cbt-container .form-group { margin-bottom: var(--cbt-spacing-lg); }
.cbt-container .form-group label {
  display: block;
  margin-bottom: var(--cbt-spacing-sm);
  font-weight: 600;
  color: var(--cbt-gray-700);
  font-size: 1.4rem;
  letter-spacing: 0.025em;
}
.cbt-container .form-control {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid var(--cbt-gray-200);
  border-radius: var(--cbt-radius-md);
  font-size: 1.5rem;
  line-height: 1.5;
  color: var(--cbt-gray-900);
  background-color: var(--cbt-white);
  transition: all var(--cbt-transition-base);
  box-sizing: border-box;
  min-height: 45px;
  font-family: inherit;
}
.cbt-container .form-control:focus {
  outline: none;
  border-color: var(--cbt-primary);
  box-shadow: 0 0 0 3px var(--cbt-primary-light);
}
.cbt-container .form-control:hover { border-color: var(--cbt-gray-300); }
.cbt-container textarea.form-control { min-height: 120px; resize: vertical; padding: 1rem; }
.cbt-container select.form-control {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3E%3C/svg%3E");
  background-position: right 1rem center;
  background-repeat: no-repeat;
  background-size: 1.5em 1.5em;
  padding-right: 2.5rem;
  appearance: none; -webkit-appearance: none; -moz-appearance: none;
}
.cbt-container select.form-control option { padding: 0.5rem; font-size: 1.5rem; line-height: 1.5; }
.cbt-container input.form-control::placeholder,
.cbt-container textarea.form-control::placeholder { color: var(--cbt-gray-400); opacity: 1; }

/* ===== BUTTONS ===== */
.cbt-container .btn {
  display: inline-flex;
  align-items: center; justify-content: center;
  gap: var(--cbt-spacing-sm);
  padding: var(--cbt-spacing-md) var(--cbt-spacing-xl);
  border: none;
  border-radius: var(--cbt-radius-md);
  font-size: 1.4rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--cbt-transition-base);
  text-decoration: none;
  white-space: nowrap;
  box-shadow: var(--cbt-shadow-sm);
  line-height: 1.2;
}
.cbt-container .btn:active { transform: translateY(1px); }
.cbt-container .btn:hover { box-shadow: var(--cbt-shadow-md); }
.cbt-container .btn-primary { background-color: var(--cbt-primary); color: var(--white); }
.cbt-container .btn-primary:hover { background-color: var(--cbt-primary-hover); }
.cbt-container .btn-success { background-color: var(--cbt-success); color: var(--white); }
.cbt-container .btn-success:hover { background-color: var(--cbt-success-hover); }
.cbt-container .btn-warning { background-color: var(--cbt-warning); color: var(--white); }
.cbt-container .btn-warning:hover { background-color: var(--cbt-warning-hover); }
.cbt-container .btn-danger  { background-color: var(--cbt-danger);  color: var(--white); }
.cbt-container .btn-danger:hover  { background-color: var(--cbt-danger-hover); }
.cbt-container .btn-sm {
  padding: var(--cbt-spacing-sm) var(--cbt-spacing-md);
  font-size: 1.3rem;
  border-radius: var(--cbt-radius-sm);
}

/* ===== GRID ===== */
.cbt-container .options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--cbt-spacing-lg);
  margin-bottom: var(--cbt-spacing-lg);
}

/* ===== FILTER SECTION ===== */
.cbt-container .filter-section {
  background: var(--cbt-gray-50);
  padding: var(--cbt-spacing-lg);
  border-radius: var(--cbt-radius-lg);
  margin-bottom: var(--cbt-spacing-xl);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--cbt-spacing-lg);
  border: 1px solid var(--cbt-gray-200);
}
.cbt-container .filter-group { position: relative; }
.cbt-container .filter-group label {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--cbt-gray-700);
  margin-bottom: var(--cbt-spacing-sm);
  display: block;
}

/* ===== QUESTION ITEMS ===== */
.cbt-container .question-item {
  background: var(--cbt-white);
  border: 2px solid var(--cbt-gray-200);
  border-radius: var(--cbt-radius-lg);
  padding: var(--cbt-spacing-xl);
  margin-bottom: var(--cbt-spacing-lg);
  transition: all var(--cbt-transition-base);
}
.cbt-container .question-item:hover {
  border-color: var(--cbt-primary);
  box-shadow: var(--cbt-shadow-lg);
  transform: translateY(-2px);
}
.cbt-container .question-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--cbt-spacing-lg);
  flex-wrap: wrap;
  gap: var(--cbt-spacing-md);
}
.cbt-container .question-meta {
  display: flex; flex-wrap: wrap; gap: var(--cbt-spacing-sm); font-size: 1.3rem;
}
.cbt-container .question-meta span {
  background: var(--cbt-gray-100);
  color: var(--cbt-gray-700);
  padding: var(--cbt-spacing-xs) var(--cbt-spacing-md);
  border-radius: var(--cbt-radius-full);
  font-weight: 600;
  display: inline-flex; align-items: center; gap: var(--cbt-spacing-xs);
}
.cbt-container .question-text {
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--cbt-gray-900);
  margin-bottom: var(--cbt-spacing-lg);
  line-height: 1.7;
}
.cbt-container .question-image {
  max-width: 100%; height: auto; max-height: 400px;
  object-fit: contain;
  margin: var(--cbt-spacing-lg) 0;
  border-radius: var(--cbt-radius-lg);
  border: 2px solid var(--cbt-gray-200);
  box-shadow: var(--cbt-shadow-md);
}

/* ===== OPTIONS LIST ===== */
.cbt-container .options-list {
  margin-bottom: var(--cbt-spacing-lg);
  display: grid; gap: var(--cbt-spacing-md);
}
.cbt-container .option-item {
  padding: var(--cbt-spacing-md);
  background: var(--cbt-gray-50);
  border-radius: var(--cbt-radius-md);
  border: 2px solid var(--cbt-gray-200);
  transition: all 150ms cubic-bezier(0.4,0,0.2,1);
  display: flex; align-items: flex-start; gap: var(--cbt-spacing-sm);
}
.cbt-container .option-item:hover { background: var(--cbt-white); border-color: var(--cbt-gray-300); }
.cbt-container .option-item.correct {
  background: var(--cbt-success-light);
  border-color: var(--cbt-success);
  font-weight: 600;
  color: var(--cbt-success-dark);
}
.cbt-container .option-label {
  display: inline-flex;
  align-items: center; justify-content: center;
  min-width: 32px; height: 32px;
  font-weight: 700; color: var(--cbt-white);
  background-color: var(--cbt-primary);
  border-radius: var(--cbt-radius-md);
  flex-shrink: 0;
  font-size: 1.3rem;
}
.cbt-container .option-item.correct .option-label { background-color: var(--cbt-success); }
.cbt-container .option-image {
  max-width: 200px; max-height: 200px;
  object-fit: contain;
  margin-top: var(--cbt-spacing-sm);
  border-radius: var(--cbt-radius-md);
  border: 2px solid var(--cbt-gray-200);
  box-shadow: var(--cbt-shadow-sm);
}

/* ===== QUESTION ACTIONS ===== */
.cbt-container .question-actions {
  display: flex; flex-wrap: wrap; gap: var(--cbt-spacing-sm); justify-content: flex-end;
}

/* ===== STATUS BADGES ===== */
.cbt-container .status-badge {
  padding: var(--cbt-spacing-xs) var(--cbt-spacing-md);
  border-radius: var(--cbt-radius-full);
  font-size: 1.3rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: inline-flex; align-items: center;
}
.cbt-container .status-active  { background-color: var(--cbt-success-light); color: var(--cbt-success-dark); }
.cbt-container .status-blocked { background-color: var(--cbt-danger-light);  color: var(--cbt-danger-hover); }

/* ===== EMPTY STATE ===== */
.cbt-container .empty-state {
  text-align: center;
  padding: var(--cbt-spacing-2xl) var(--cbt-spacing-lg);
  color: var(--cbt-gray-500);
}
.cbt-container .empty-state h3 { color: var(--cbt-gray-700); font-size: 2rem; margin: var(--cbt-spacing-md) 0; font-weight: 600; }
.cbt-container .empty-state p  { color: var(--cbt-gray-500); font-size: 1.5rem; }

/* ===== RADIO GROUPS ===== */
.cbt-container .radio-group {
  display: flex; flex-wrap: wrap; gap: var(--cbt-spacing-lg); margin-top: var(--cbt-spacing-md);
}
.cbt-container .radio-group label {
  display: flex; align-items: center; font-weight: 500;
  cursor: pointer;
  padding: var(--cbt-spacing-sm) var(--cbt-spacing-md);
  border-radius: var(--cbt-radius-md);
  transition: background-color 150ms;
  color: var(--cbt-gray-700);
  font-size: 1.3rem;
}
.cbt-container .radio-group label:hover { background-color: var(--cbt-gray-100); }
.cbt-container .radio-group input[type="radio"] {
  margin-right: var(--cbt-spacing-sm); cursor: pointer;
  width: 18px; height: 18px; accent-color: var(--cbt-primary);
}

/* ===== IMAGE UPLOAD ===== */
.cbt-container .image-upload-section {
  background: var(--cbt-primary-light);
  border: 2px dashed var(--cbt-primary);
  border-radius: var(--cbt-radius-md);
  padding: var(--cbt-spacing-lg);
  margin-top: var(--cbt-spacing-md);
  transition: all var(--cbt-transition-base);
}
.cbt-container .image-upload-section:hover { background: var(--cbt-white); border-color: var(--cbt-primary-hover); }
.cbt-container .image-upload-section label {
  font-size: 1.4rem; color: var(--cbt-primary-dark); font-weight: 600;
  display: block; margin-bottom: var(--cbt-spacing-sm);
}
.cbt-container .file-input { margin-top: var(--cbt-spacing-sm); font-size: 1.4rem; color: var(--cbt-gray-700); }
.cbt-container .image-preview {
  margin-top: var(--cbt-spacing-md);
  max-width: 250px; max-height: 250px;
  border-radius: var(--cbt-radius-md);
  box-shadow: var(--cbt-shadow-md);
  display: none;
  border: 2px solid var(--cbt-gray-200);
}
.cbt-container .help-text {
  font-size: 1.3rem; color: var(--cbt-gray-500);
  margin-top: var(--cbt-spacing-xs); font-style: italic;
}

/* ===== TEXT UTILS ===== */
.cbt-container .text-right { text-align: right; }
.cbt-container .mb-20      { margin-bottom: var(--cbt-spacing-lg); }

/* ===== ACCESSIBILITY ===== */
.cbt-container .btn:focus-visible,
.cbt-container .form-control:focus-visible {
  outline: 3px solid var(--cbt-primary);
  outline-offset: 2px;
}

/* ===== SUBJECT COMBOBOX (inside cbt-container) ===== */
.subject-combo-wrap { position: relative; }
.subject-combo-wrap .form-control { width: 100%; }
.subject-dropdown {
  display: none;
  position: absolute;
  top: 100%; left: 0; right: 0;
  z-index: 9999;
  max-height: 220px;
  overflow-y: auto;
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-top: none;
  border-radius: 0 0 4px 4px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.15);
  margin-top: -1px;
}
.subject-dropdown .sd-item {
  padding: 9px 12px;
  cursor: pointer;
  font-size: 1.4rem;
  border-bottom: 1px solid var(--gray-100);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.subject-dropdown .sd-item:last-child  { border-bottom: none; }
.subject-dropdown .sd-item:hover       { background: #e8f4fd; }
.subject-dropdown .sd-item.sd-add      { color: #1a73e8; font-weight: 600; }
.subject-dropdown .sd-item.sd-add:hover{ background: #eaf4ff; }

/* ===== EDIT MODAL (scoped to #editModal â€” outside cbt-container) ===== */
#editModal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0; top: 0;
  width: 100%; height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,.6);
  backdrop-filter: blur(4px);
  animation: cbtFadeIn 0.3s ease;
}
#editModal .modal-content {
  background-color: var(--white);
  margin: 2% auto;
  padding: 0;
  border-radius: 12px;
  width: 90%;
  max-width: 900px;
  max-height: 90vh;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0,0,0,0.3);
  animation: cbtSlideDown2 0.3s ease;
}
#editModal .modal-header {
  background-color: var(--primary);
  color: white;
  padding: 20px 30px;
  display: flex; justify-content: space-between; align-items: center;
  border-bottom: 3px solid #4c5bbf;
}
#editModal .modal-header h3 { margin: 0; font-size: 2.2rem; font-weight: 600; color: var(--white); }
#editModal .close-btn {
  background: rgba(255,255,255,0.2);
  border: none; color: white;
  font-size: 2.8rem; font-weight: bold;
  cursor: pointer;
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.3s ease;
  line-height: 1;
}
#editModal .close-btn:hover { background: rgba(255,255,255,0.3); transform: rotate(90deg); }
#editFormContainer {
  padding: 30px;
  max-height: calc(90vh - 120px);
  overflow-y: auto;
}
#editFormContainer::-webkit-scrollbar { width: 8px; }
#editFormContainer::-webkit-scrollbar-track { background: #f1f1f1; border-radius: 10px; }
#editFormContainer::-webkit-scrollbar-thumb { background: var(--gray-400); border-radius: 10px; }
#editFormContainer::-webkit-scrollbar-thumb:hover { background: var(--gray-600); }

@keyframes cbtFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes cbtSlideDown2 {
  from { transform: translateY(-50px); opacity: 0; }
  to   { transform: translateY(0);     opacity: 1; }
}

/* ===== MODAL LOADING + SPINNER ===== */
.modal-loading { text-align: center; padding: 60px 20px; }
.modal-loading p { color: var(--gray-500); font-size: 1.5rem; margin: 0; }
.spinner {
  border: 4px solid #f3f3f3;
  border-top: 4px solid var(--primary);
  border-radius: 50%;
  width: 50px; height: 50px;
  animation: cbtSpin 1s linear infinite;
  margin: 0 auto 20px;
}
@keyframes cbtSpin {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ===== EDIT FORM (inside #editModal) ===== */
#editModal .edit-question-form { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; }
#editModal .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
#editModal .form-col { display: flex; flex-direction: column; }
#editModal .form-group { margin-bottom: 20px; }
#editModal .form-label {
  display: block; margin-bottom: 8px; font-weight: 600;
  color: var(--gray-800); font-size: 1.4rem;
}
#editModal .form-input,
#editModal .form-textarea {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid var(--gray-200);
  border-radius: 8px;
  font-size: 1.4rem;
  transition: all 0.3s ease;
  box-sizing: border-box;
  font-family: inherit;
  background: var(--white);
  color: var(--gray-800);
  line-height: 1.5;
}
#editModal .form-input:focus,
#editModal .form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(90,103,216,0.1);
}
#editModal .form-textarea { min-height: 100px; resize: vertical; }
#editModal .current-image {
  margin-top: 12px; padding: 12px;
  background: var(--gray-50);
  border-radius: 8px;
  border: 2px dashed #dee2e6;
}
#editModal .current-image img {
  max-width: 180px; max-height: 120px;
  border-radius: 6px; display: block; margin-bottom: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
#editModal .image-label { font-size: 1.3rem; color: var(--gray-600); font-weight: 500; }
#editModal .file-input-wrapper { margin-top: 12px; }
#editModal .file-label { display: block; font-size: 1.3rem; color: var(--primary-light); margin-bottom: 6px; font-weight: 500; }
#editModal .file-input {
  font-size: 1.3rem; padding: 8px;
  border: 1px solid var(--gray-200); border-radius: 6px;
  width: 100%; box-sizing: border-box; display: block;
}
#editModal .image-preview {
  max-width: 200px; max-height: 150px;
  margin-top: 10px; border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
#editModal .options-grid-edit {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 20px; margin-bottom: 20px;
}
#editModal .option-group {
  padding: 15px; background: var(--gray-50);
  border-radius: 8px; border: 1px solid var(--gray-100);
}
#editModal .radio-group-edit { display: flex; gap: 25px; flex-wrap: wrap; }
#editModal .radio-label {
  display: flex; align-items: center; cursor: pointer;
  font-size: 1.4rem; color: var(--gray-800); transition: all 0.2s ease;
}
#editModal .radio-label:hover { color: var(--primary); }
#editModal .radio-label input[type="radio"] {
  margin-right: 8px; width: 18px; height: 18px;
  cursor: pointer; accent-color: var(--primary);
}
#editModal .radio-label span { font-weight: 500; }
#editModal .form-actions {
  display: flex; justify-content: flex-end;
  gap: 15px; margin-top: 30px;
  padding-top: 20px;
  border-top: 2px solid var(--gray-100);
}
#editModal .btn-cancel {
  padding: 12px 30px;
  background: var(--gray-100); color: var(--gray-800);
  border: none; border-radius: 8px;
  cursor: pointer; font-weight: 600;
  font-size: 1.4rem;
  transition: all 0.3s ease;
}
#editModal .btn-cancel:hover { background: #bdc3c7; transform: translateY(-2px); }
#editModal .btn-submit {
  padding: 12px 30px;
  background: var(--primary); color: white;
  border: none; border-radius: 8px;
  cursor: pointer; font-weight: 600;
  font-size: 1.4rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(90,103,216,0.4);
}
#editModal .btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(90,103,216,0.6);
}
#editModal .form-input:focus-visible,
#editModal .form-textarea:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .cbt-container .options-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .cbt-container {
    --cbt-spacing-md: 0.75rem;
    --cbt-spacing-lg: 1rem;
    --cbt-spacing-xl: 1.5rem;
    --cbt-spacing-2xl: 2rem;
  }
  .cbt-container { padding: 0 var(--cbt-spacing-sm); margin: var(--cbt-spacing-md) auto; }
  .cbt-container .cbt-card { padding: var(--cbt-spacing-lg); border-radius: var(--cbt-radius-lg); }
  .cbt-container .cbt-card h3 { font-size: 1.8rem; }
  .cbt-container .options-grid { grid-template-columns: 1fr; gap: var(--cbt-spacing-md); }
  .cbt-container .filter-section { grid-template-columns: 1fr; gap: var(--cbt-spacing-md); padding: var(--cbt-spacing-md); }
  .cbt-container .question-header { flex-direction: column; align-items: stretch; }
  .cbt-container .question-actions { justify-content: flex-start; }
  .cbt-container .question-text { font-size: 1.5rem; }
  .cbt-container .btn { padding: var(--cbt-spacing-sm) var(--cbt-spacing-md); font-size: 1.3rem; }
  .cbt-container .btn-sm { padding: 6px var(--cbt-spacing-sm); }
  .cbt-container .radio-group { flex-direction: column; gap: var(--cbt-spacing-sm); }
  .cbt-container .question-meta { flex-direction: column; align-items: flex-start; }
  .cbt-container .option-image,
  .cbt-container .question-image { max-width: 100%; }
  #editModal .modal-content { width: 95%; margin: var(--cbt-spacing-md) auto; padding: var(--cbt-spacing-lg); max-height: 90vh; }
  #editModal .form-row,
  #editModal .options-grid-edit { grid-template-columns: 1fr; }
  #editModal .radio-group-edit { flex-direction: column; gap: 12px; }
}
@media (max-width: 480px) {
  .cbt-container .cbt-card h3 { font-size: 1.6rem; flex-wrap: wrap; }
  .cbt-container .question-item { padding: var(--cbt-spacing-md); }
  .cbt-container .image-upload-section { padding: var(--cbt-spacing-md); }
  #editModal .modal-content { border-radius: var(--cbt-radius-md); }
}

/* ===== PRINT ===== */
@media print {
  .cbt-container .question-actions,
  .cbt-container .filter-section,
  .cbt-container .btn { display: none; }
  .cbt-container .question-item { break-inside: avoid; border: 1px solid var(--cbt-gray-300); }
}

/* =====================================================
   SECTION 71: PARENT DASHBOARD
   ===================================================== */
.parent-page-dashboard {
  --pd-primary: var(--primary);
  --pd-primary-hover: var(--primary-dark);
  --pd-primary-light: var(--primary-soft);
  --pd-primary-dark: var(--primary-dark);
  --pd-success: var(--green-500);
  --pd-success-dark: var(--green-700);
  --pd-success-light: var(--green-100);
  --pd-warning: var(--amber-500);
  --pd-warning-light: var(--amber-100);
  --pd-danger: #ef4444;
  --pd-danger-light: #fee2e2;
  --pd-gray-50: var(--bg);
  --pd-gray-100: var(--bg-alt);
  --pd-gray-200: var(--border);
  --pd-gray-300: var(--border);
  --pd-gray-500: var(--text-muted);
  --pd-gray-700: var(--text);
  --pd-gray-800: var(--text);
  --pd-gray-900: var(--text);
  --pd-radius-md: var(--r-md);
  --pd-radius-lg: var(--r-lg);
  --pd-radius-xl: var(--r-xl);
  --pd-shadow-sm: var(--shadow-sm);
  --pd-shadow-md: var(--shadow-md);
  --pd-shadow-lg: var(--shadow-lg);
  --pd-transition-base: var(--t-base);
  --pd-spacing-xs: .25rem;
  --pd-spacing-sm: .5rem;
  --pd-spacing-md: 1rem;
  --pd-spacing-lg: 1.5rem;
  --pd-spacing-xl: 2rem;
  --pd-spacing-2xl: 3rem;
  max-width: 1200px;
  margin: var(--pd-spacing-xl) auto;
  padding: var(--pd-spacing-lg);
}
.parent-page-dashboard .pd-dashboard-container { max-width: 1200px; margin: var(--pd-spacing-xl) auto; padding: var(--pd-spacing-lg); }
.parent-page-dashboard .pd-header-card {
  background: var(--pd-primary);
  color: var(--white);
  padding: var(--pd-spacing-2xl);
  border-radius: var(--pd-radius-xl);
  margin-bottom: var(--pd-spacing-xl);
  box-shadow: var(--pd-shadow-lg);
  font-size: 1.6rem;
}
.parent-page-dashboard .pd-header-title { font-size: 2.2rem; font-weight: 700; margin-bottom: var(--pd-spacing-md); }
.parent-page-dashboard .pd-header-sub { margin-bottom: 1.5rem; }
.parent-page-dashboard .pd-select-child-label { font-size: 1.4rem; margin-bottom: 1rem; }
.parent-page-dashboard .pd-child-selector { display: flex; gap: var(--pd-spacing-sm); flex-wrap: wrap; }
.parent-page-dashboard .pd-child-btn {
  background: rgba(255,255,255,.15);
  color: var(--white);
  padding: var(--pd-spacing-sm) var(--pd-spacing-lg);
  border: 2px solid rgba(255,255,255,.3);
  border-radius: var(--r-full);
  cursor: pointer;
  transition: var(--pd-transition-base);
  text-decoration: none;
  font-size: 1.4rem;
}
.parent-page-dashboard .pd-child-btn:hover { background: rgba(255,255,255,.25); }
.parent-page-dashboard .pd-child-btn.active { background: var(--white); color: var(--pd-primary); border-color: var(--white); }
.parent-page-dashboard .pd-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--pd-spacing-lg);
  margin-bottom: var(--pd-spacing-xl);
}
.parent-page-dashboard .pd-stat-card {
  background: var(--white);
  padding: var(--pd-spacing-xl);
  border-radius: var(--pd-radius-lg);
  box-shadow: var(--pd-shadow-md);
  border-left: 5px solid var(--pd-primary);
}
.parent-page-dashboard .pd-stat-card.pd-excellent { border-left-color: var(--pd-success); }
.parent-page-dashboard .pd-stat-card.pd-warning { border-left-color: var(--pd-warning); }
.parent-page-dashboard .pd-stat-card.pd-danger { border-left-color: var(--pd-danger); }
.parent-page-dashboard .pd-stat-icon { font-size: 2.2rem; margin-bottom: var(--pd-spacing-sm); }
.parent-page-dashboard .pd-stat-number { font-size: 2rem; font-weight: 700; color: var(--text); margin-bottom: var(--pd-spacing-xs); }
.parent-page-dashboard .pd-stat-label { font-size: 1.3rem; color: var(--pd-gray-500); }
.parent-page-dashboard .pd-stat-progress { margin-top: var(--pd-spacing-sm); }
.parent-page-dashboard .pd-progress-bar { background: var(--pd-gray-200); height: 8px; border-radius: var(--r-full); overflow: hidden; }
.parent-page-dashboard .pd-progress-fill { height: 100%; background: var(--pd-primary); transition: width var(--pd-transition-base); }
.parent-page-dashboard .pd-progress-fill.pd-excellent { background: var(--pd-success); }
.parent-page-dashboard .pd-progress-fill.pd-warning { background: var(--pd-warning); }
.parent-page-dashboard .pd-progress-fill.pd-danger { background: var(--pd-danger); }
.parent-page-dashboard .pd-content-grid { display: grid; grid-template-columns: 2fr 1fr; gap: var(--pd-spacing-lg); }
.parent-page-dashboard .pd-card {
  background: var(--white);
  border-radius: var(--pd-radius-lg);
  padding: var(--pd-spacing-xl);
  box-shadow: var(--pd-shadow-md);
}
.parent-page-dashboard .pd-card h3 {
  margin-top: 0;
  font-size: 2.2rem;
  color: var(--text);
  border-bottom: 2px solid var(--pd-primary-light);
  padding-bottom: var(--pd-spacing-sm);
  margin-bottom: var(--pd-spacing-lg);
}
.parent-page-dashboard .pd-card-spaced { margin-top: 2rem; }
.parent-page-dashboard .pd-exam-item {
  padding: var(--pd-spacing-md);
  background: var(--pd-gray-50);
  border-radius: var(--pd-radius-md);
  margin-bottom: var(--pd-spacing-sm);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--pd-spacing-md);
}
.parent-page-dashboard .pd-exam-info { flex: 1; }
.parent-page-dashboard .pd-exam-title { font-weight: 600; color: var(--text); margin-bottom: var(--pd-spacing-xs); font-size: 1.8rem; }
.parent-page-dashboard .pd-exam-meta { font-size: 1.3rem; color: var(--pd-gray-500); }
.parent-page-dashboard .pd-exam-score {
  font-size: 1.7rem;
  font-weight: 700;
  padding: var(--pd-spacing-sm) var(--pd-spacing-lg);
  border-radius: var(--pd-radius-md);
  background: var(--pd-primary-light);
  color: var(--pd-primary-dark);
}
.parent-page-dashboard .pd-exam-score.pd-excellent { background: var(--pd-success-light); color: var(--pd-success-dark); }
.parent-page-dashboard .pd-exam-score.pd-good { background: var(--bg-alt); color: var(--text-secondary); }
.parent-page-dashboard .pd-exam-score.pd-fair { background: var(--pd-warning-light); color: var(--amber-700); }
.parent-page-dashboard .pd-exam-score.pd-poor { background: var(--pd-danger-light); color: #b91c1c; }
.parent-page-dashboard .pd-assignment-item {
  padding: var(--pd-spacing-md);
  background: var(--pd-warning-light);
  border-left: 4px solid var(--pd-warning);
  border-radius: var(--pd-radius-md);
  margin-bottom: var(--pd-spacing-sm);
  font-size: 1.6rem;
}
.parent-page-dashboard .pd-assignment-title { font-weight: 600; color: var(--text); margin-bottom: var(--pd-spacing-xs); font-size: 1.6rem; }
.parent-page-dashboard .pd-assignment-due { font-size: 1.4rem; color: var(--pd-gray-500); }
.parent-page-dashboard .pd-empty-state { text-align: center; padding: var(--pd-spacing-xl); color: var(--pd-gray-500); }
.parent-page-dashboard .pd-empty-state .pd-empty-icon { font-size: 4.8rem; }
.parent-page-dashboard .pd-empty-state .pd-empty-msg { font-size: 1.8rem; }
.parent-page-dashboard .pd-alert-box {
  background: var(--pd-warning-light);
  border: 2px solid var(--pd-warning);
  padding: var(--pd-spacing-md);
  border-radius: var(--pd-radius-md);
  margin-bottom: var(--pd-spacing-lg);
  display: flex;
  align-items: center;
  gap: var(--pd-spacing-sm);
}
.parent-page-dashboard .pd-alert-box.pd-success { background: var(--pd-success-light); border-color: var(--pd-success); }
.parent-page-dashboard .pd-alert-box.pd-danger { background: var(--pd-danger-light); border-color: var(--pd-danger); }
.parent-page-dashboard .pd-alert-box .pd-alert-icon { font-size: 2.4rem; }
.parent-page-dashboard .pd-alert-meta { font-size: 1.6rem; color: var(--text-secondary); }
.parent-page-dashboard .pd-stat-meta { font-size: 1.6rem; }
.parent-page-dashboard .pd-due-urgent { color: #e74c3c; }
.parent-page-dashboard .pd-mastery-rate { color: var(--gray-600); }
.parent-page-dashboard .pd-learning-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: .5rem;
  font-size: 1.8rem;
}
.parent-page-dashboard .pd-learning-block { margin-bottom: 1.5rem; }
.parent-page-dashboard .pd-dashboard-topbar { text-align: right; margin-bottom: 2rem; }
@media (max-width: 968px) {
  .parent-page-dashboard .pd-content-grid { grid-template-columns: 1fr; }
  .parent-page-dashboard .pd-stats-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .parent-page-dashboard .pd-stats-grid { grid-template-columns: 1fr; }
}

/* =====================================================
   SECTION 72: PARENT MESSAGES
   ===================================================== */
.parent-page-messages {
  --pm2-primary: var(--primary);
  --pm2-primary-hover: var(--primary-dark);
  --pm2-primary-light: var(--primary-soft);
  --pm2-primary-dark: var(--primary-dark);
  --pm2-success: var(--green-500);
  --pm2-success-dark: var(--green-700);
  --pm2-success-light: var(--green-100);
  --pm2-danger: #ef4444;
  --pm2-danger-light: #fee2e2;
  --pm2-gray-50: var(--bg);
  --pm2-gray-100: var(--bg-alt);
  --pm2-gray-200: var(--border);
  --pm2-gray-300: var(--border);
  --pm2-gray-400: var(--text-muted);
  --pm2-gray-500: var(--text-muted);
  --pm2-gray-700: var(--text);
  --pm2-gray-800: var(--text);
  --pm2-gray-900: var(--text);
  --pm2-radius-sm: var(--r-sm);
  --pm2-radius-md: var(--r-md);
  --pm2-radius-lg: var(--r-lg);
  --pm2-shadow-sm: var(--shadow-sm);
  --pm2-shadow-md: var(--shadow-md);
  --pm2-spacing-xs: .25rem;
  --pm2-spacing-sm: .5rem;
  --pm2-spacing-md: 1rem;
  --pm2-spacing-lg: 1.5rem;
  --pm2-spacing-xl: 2rem;
  --pm2-transition-fast: var(--t-fast);
  --pm2-transition-base: var(--t-base);
  --pm2-font-size-sm: 1.3rem;
  --pm2-font-size-base: 1.5rem;
}
.parent-page-messages .pm2-form-control {
  width: 100%;
  padding: .875rem 1rem;
  border: 2px solid var(--pm2-gray-200);
  border-radius: var(--pm2-radius-md);
  font-size: 1.6rem;
  line-height: 1.5;
  color: var(--text);
  background: var(--white);
  transition: all var(--pm2-transition-base);
  box-sizing: border-box;
  min-height: 4.5rem;
}
.parent-page-messages .pm2-form-control:focus {
  outline: none;
  border-color: var(--pm2-primary);
  box-shadow: 0 0 0 3px var(--pm2-primary-light);
}
.parent-page-messages .pm2-form-control:hover { border-color: var(--pm2-gray-300); }
.parent-page-messages textarea.pm2-form-control { min-height: 12rem; resize: vertical; font-family: inherit; line-height: 1.6; padding: 1rem; }
.parent-page-messages select.pm2-form-control {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1.5em 1.5em;
  padding-right: 2.5rem;
}
.parent-page-messages select.pm2-form-control option { padding: .5rem; font-size: 1.6rem; line-height: 1.5; }
.parent-page-messages input.pm2-form-control::placeholder,
.parent-page-messages textarea.pm2-form-control::placeholder { color: var(--pm2-gray-400); opacity: 1; }
.parent-page-messages .pm2-form-group { margin-bottom: 1.5rem; }
.parent-page-messages .pm2-form-group label {
  display: block;
  margin-bottom: .5rem;
  font-weight: 600;
  color: var(--pm2-gray-700);
  font-size: 1.6rem;
  letter-spacing: .025em;
}
.parent-page-messages .pm2-messages-container { max-width: 1400px; margin: var(--pm2-spacing-lg) auto; padding: var(--pm2-spacing-md); width: 100%; box-sizing: border-box; }
.parent-page-messages .pm2-messages-layout { display: grid; grid-template-columns: 250px 1fr; gap: var(--pm2-spacing-md); min-height: 60rem; width: 100%; }
.parent-page-messages .pm2-messages-content { background: var(--white); border-radius: var(--pm2-radius-lg); box-shadow: var(--pm2-shadow-md); overflow: hidden; width: 100%; }
.parent-page-messages .pm2-alert { padding: var(--pm2-spacing-md); margin-bottom: var(--pm2-spacing-md); border-radius: var(--pm2-radius-sm); font-size: 1.5rem; }
.parent-page-messages .pm2-alert-success { background: var(--pm2-success-light); color: var(--pm2-success-dark); border: 1px solid var(--pm2-success); }
.parent-page-messages .pm2-alert-error { background: var(--pm2-danger-light); color: #991b1b; border: 1px solid var(--pm2-danger); }
.parent-page-messages .pm2-messages-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--pm2-spacing-xl); }
.parent-page-messages .pm2-messages-header h2 { margin: 0; color: var(--text); }
.parent-page-messages .pm2-messages-sidebar { background: var(--white); border-radius: var(--pm2-radius-lg); padding: var(--pm2-spacing-md); box-shadow: var(--pm2-shadow-md); }
.parent-page-messages .pm2-sidebar-item {
  display: flex;
  align-items: center;
  padding: var(--pm2-spacing-sm) var(--pm2-spacing-md);
  border-radius: var(--pm2-radius-md);
  margin-bottom: var(--pm2-spacing-xs);
  cursor: pointer;
  text-decoration: none;
  color: var(--text);
  transition: all var(--pm2-transition-fast);
  position: relative;
}
.parent-page-messages .pm2-sidebar-item:hover { background: var(--pm2-gray-100); }
.parent-page-messages .pm2-sidebar-item.pm2-active { background: var(--pm2-primary); color: var(--white); }
.parent-page-messages .pm2-sidebar-icon { font-size: 2rem; margin-right: var(--pm2-spacing-sm); }
.parent-page-messages .pm2-sidebar-label { flex: 1; font-weight: 500; }
.parent-page-messages .pm2-badge { background: var(--pm2-danger); color: var(--white); padding: 2px 8px; border-radius: 10px; font-size: 1.1rem; font-weight: 700; }
.parent-page-messages .pm2-messages-list { max-height: 70rem; overflow-y: auto; }
.parent-page-messages .pm2-message-item {
  display: flex;
  padding: var(--pm2-spacing-md);
  border-bottom: 1px solid var(--pm2-gray-200);
  cursor: pointer;
  transition: all var(--pm2-transition-fast);
}
.parent-page-messages .pm2-message-item:hover { background: var(--pm2-gray-50); }
.parent-page-messages .pm2-message-item.pm2-unread { background: var(--pm2-primary-light); }
.parent-page-messages .pm2-message-avatar {
  width: 5rem;
  height: 5rem;
  border-radius: var(--r-full);
  background: var(--pm2-primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  margin-right: var(--pm2-spacing-md);
  flex-shrink: 0;
}
.parent-page-messages .pm2-message-details { flex: 1; min-width: 0; }
.parent-page-messages .pm2-message-header-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: .5rem; }
.parent-page-messages .pm2-message-sender { font-weight: 700; color: var(--text); font-size: 1.5rem; }
.parent-page-messages .pm2-message-date { font-size: 1.2rem; color: var(--pm2-gray-500); }
.parent-page-messages .pm2-message-subject { font-weight: 600; color: var(--text); margin-bottom: .5rem; font-size: 1.3rem; }
.parent-page-messages .pm2-message-preview {
  color: var(--pm2-gray-500);
  font-size: 1.3rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.parent-page-messages .pm2-attachment-indicator { margin-top: var(--pm2-spacing-xs); font-size: 1.2rem; color: var(--pm2-primary); }
.parent-page-messages .pm2-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8rem 2rem;
  color: var(--pm2-gray-500);
  text-align: center;
}
.parent-page-messages .pm2-empty-icon { font-size: 8rem; margin-bottom: var(--pm2-spacing-md); }
.parent-page-messages .pm2-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0; top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,.5);
  overflow-y: auto;
}
.parent-page-messages .pm2-modal-content {
  background: var(--white);
  margin: 5rem auto;
  padding: var(--pm2-spacing-xl);
  border-radius: var(--pm2-radius-lg);
  width: 90%;
  max-width: 70rem;
  max-height: 90vh;
  overflow-y: auto;
}
.parent-page-messages .pm2-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--pm2-spacing-xl);
  padding-bottom: var(--pm2-spacing-md);
  border-bottom: 2px solid var(--pm2-primary);
}
.parent-page-messages .pm2-modal-header h3 { margin: 0; color: var(--text); }
.parent-page-messages .pm2-close { font-size: 2.8rem; font-weight: 700; color: var(--pm2-gray-500); cursor: pointer; }
.parent-page-messages .pm2-close:hover { color: var(--text); }
.parent-page-messages .pm2-btn {
  padding: 1.2rem 2.5rem;
  border: none;
  border-radius: var(--pm2-radius-sm);
  cursor: pointer;
  font-size: 1.5rem;
  font-weight: 700;
  transition: all var(--pm2-transition-base);
}
.parent-page-messages .pm2-btn-primary { background: var(--pm2-primary); color: var(--white); }
.parent-page-messages .pm2-btn-primary:hover { background: var(--pm2-primary-dark); }
.parent-page-messages .pm2-btn-block { width: 100%; }
.parent-page-messages .pm2-topbar { text-align: right; margin-bottom: 2rem; }
.parent-page-messages .pm2-help-text { color: var(--gray-600); font-size: 1.3rem; }
@media (max-width: 768px) {
  .parent-page-messages .pm2-messages-layout { grid-template-columns: 1fr; }
  .parent-page-messages .pm2-messages-sidebar { display: flex; overflow-x: auto; padding: var(--pm2-spacing-sm); }
  .parent-page-messages .pm2-sidebar-item { margin-right: var(--pm2-spacing-sm); margin-bottom: 0; white-space: nowrap; flex-shrink: 0; }
}

/* =====================================================
   SECTION 73: PARENT PAYMENT RECEIPT
   ===================================================== */
.parent-page-receipt { background: var(--gray-100); }
.parent-page-receipt .pr-receipt-container { max-width: 800px; margin: 2rem auto; padding: 2rem; }
.parent-page-receipt .pr-receipt-card {
  background: var(--white);
  border-radius: 14px;
  padding: 4rem;
  box-shadow: 0 4px 15px rgba(0,0,0,.1);
  position: relative;
}
.parent-page-receipt .pr-receipt-header {
  text-align: center;
  border-bottom: 3px solid var(--primary);
  padding-bottom: 2rem;
  margin-bottom: 3rem;
}
.parent-page-receipt .pr-school-logo { font-size: 6.4rem; margin-bottom: 1rem; }
.parent-page-receipt .pr-school-name { font-size: 2.8rem; font-weight: 700; color: var(--text); margin-bottom: .5rem; }
.parent-page-receipt .pr-receipt-title { font-size: 2rem; color: var(--primary); font-weight: 700; margin-top: 1.5rem; }
.parent-page-receipt .pr-receipt-number {
  background: var(--primary);
  color: var(--white);
  padding: 1rem 2rem;
  border-radius: 25px;
  display: inline-block;
  margin-top: 1rem;
  font-weight: 700;
  font-size: 1.4rem;
}
.parent-page-receipt .pr-success-badge {
  background: var(--green-tint-300);
  border: 2px solid var(--green-500);
  padding: 2rem;
  border-radius: 8px;
  text-align: center;
  margin-bottom: 3rem;
}
.parent-page-receipt .pr-success-icon { font-size: 6.4rem; margin-bottom: 1rem; }
.parent-page-receipt .pr-success-text { font-size: 2.4rem; font-weight: 700; color: var(--green-ink); }
.parent-page-receipt .pr-receipt-info { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-bottom: 3rem; }
.parent-page-receipt .pr-info-section { background: var(--gray-50); padding: 2rem; border-radius: 8px; }
.parent-page-receipt .pr-info-section h4 { margin-top: 0; color: var(--primary); border-bottom: 2px solid var(--primary); padding-bottom: .8rem; margin-bottom: 1.5rem; font-size: 1.6rem; }
.parent-page-receipt .pr-info-row { display: flex; justify-content: space-between; padding: .8rem 0; border-bottom: 1px solid var(--gray-100); }
.parent-page-receipt .pr-info-row:last-child { border-bottom: none; }
.parent-page-receipt .pr-info-label { color: var(--gray-600); font-size: 1.4rem; }
.parent-page-receipt .pr-info-value { font-weight: 700; color: var(--text); }
.parent-page-receipt .pr-payment-summary { background: var(--primary-mist); padding: 2.5rem; border-radius: 8px; margin-bottom: 3rem; }
.parent-page-receipt .pr-summary-row { display: flex; justify-content: space-between; padding: 1rem 0; font-size: 1.6rem; }
.parent-page-receipt .pr-summary-row.pr-total { border-top: 3px solid var(--primary); padding-top: 1.5rem; margin-top: 1rem; font-size: 2.4rem; font-weight: 700; color: var(--text); }
.parent-page-receipt .pr-remaining-balance { background: var(--amber-100); padding: 1.5rem; border-radius: 8px; text-align: center; margin-bottom: 3rem; }
.parent-page-receipt .pr-balance-label { font-size: 1.4rem; color: var(--amber-700); margin-bottom: .5rem; }
.parent-page-receipt .pr-balance-amount { font-size: 2.8rem; font-weight: 700; color: var(--amber-500); }
.parent-page-receipt .pr-receipt-footer { text-align: center; padding-top: 3rem; border-top: 2px solid var(--gray-100); color: var(--gray-600); font-size: 1.4rem; }
.parent-page-receipt .pr-action-buttons { display: flex; gap: 1.5rem; justify-content: center; margin-top: 3rem; }
.parent-page-receipt .pr-btn {
  padding: 1.2rem 3rem;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  font-size: 1.4rem;
  font-weight: 700;
  transition: all .3s;
  text-decoration: none;
  display: inline-block;
}
.parent-page-receipt .pr-btn-primary { background: var(--primary); color: var(--white); }
.parent-page-receipt .pr-btn-primary:hover { background: var(--primary-dark); }
.parent-page-receipt .pr-btn-success { background: var(--green-500); color: var(--white); }
.parent-page-receipt .pr-btn-success:hover { background: var(--green-500); }
.parent-page-receipt .pr-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-45deg);
  font-size: 10rem;
  color: rgba(232,119,34,.1);
  font-weight: 700;
  pointer-events: none;
  z-index: 0;
}
.parent-page-receipt .pr-receipt-content { position: relative; z-index: 1; }
.parent-page-receipt .pr-receipt-wrapper { max-width: 680px; margin: 3rem auto; padding: 0 1.6rem; }
.parent-page-receipt .pr-receipt-card-new { background: var(--white); border-radius: 14px; box-shadow: 0 4px 24px rgba(0,0,0,.09); overflow: hidden; }
.parent-page-receipt .pr-receipt-head { padding: 2.8rem 3.2rem 2.2rem; text-align: center; }
.parent-page-receipt .pr-receipt-head.pr-approved { background: var(--primary); color: var(--white); }
.parent-page-receipt .pr-receipt-head.pr-pending { background: var(--primary); color: var(--white); }
.parent-page-receipt .pr-receipt-head.pr-rejected { background: var(--primary); color: var(--white); }
.parent-page-receipt .pr-receipt-icon { font-size: 5.2rem; margin-bottom: 1rem; }
.parent-page-receipt .pr-receipt-status-title { font-size: 2.2rem; font-weight: 800; margin: 0 0 .4rem; }
.parent-page-receipt .pr-receipt-ref { font-size: 1.3rem; opacity: .85; }
.parent-page-receipt .pr-receipt-body { padding: 2.8rem 3.2rem; }
.parent-page-receipt .pr-receipt-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 1rem 0;
  border-bottom: 1px solid var(--gray-50);
  font-size: 1.4rem;
  gap: 1.2rem;
}
.parent-page-receipt .pr-receipt-row:last-child { border-bottom: none; }
.parent-page-receipt .pr-receipt-label { color: var(--gray-600); min-width: 140px; }
.parent-page-receipt .pr-receipt-value { font-weight: 600; text-align: right; color: var(--gray-800); }
.parent-page-receipt .pr-receipt-value-pr-break { word-break: break-all; }
.parent-page-receipt .pr-receipt-value-pr-balance-due { color: var(--primary); }
.parent-page-receipt .pr-receipt-value-pr-balance-paid { color: var(--text-muted); }
.parent-page-receipt .pr-receipt-value-pr-remarks { font-weight: 400; color: var(--gray-600); }
.parent-page-receipt .pr-receipt-total {
  background: var(--gray-50);
  border-radius: 10px;
  padding: 1.6rem 2rem;
  margin: 1.8rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.parent-page-receipt .pr-receipt-total-label { font-size: 1.4rem; color: var(--gray-600); }
.parent-page-receipt .pr-receipt-total-value { font-size: 2.8rem; font-weight: 800; color: var(--primary); }
.parent-page-receipt .pr-receipt-footer-bar { padding: 1.8rem 3.2rem 2.4rem; border-top: 1px solid var(--gray-50); display: flex; gap: 1rem; flex-wrap: wrap; }
.parent-page-receipt .pr-pending-info-box {
  background: var(--amber-100);
  border: 1px solid var(--amber-200);
  border-radius: 10px;
  padding: 1.4rem 1.8rem;
  margin: 0 3.2rem 2rem;
  font-size: 1.3rem;
  color: var(--amber-700);
  line-height: 1.6;
}
.parent-page-receipt .pr-rejected-info-box {
  background: var(--primary-soft);
  border: 1px solid var(--primary-light);
  border-radius: 10px;
  padding: 1.4rem 1.8rem;
  margin: 0 3.2rem 2rem;
  font-size: 1.3rem;
  color: var(--primary-dark);
}
@media print {
  .parent-page-receipt { background: var(--white); }
  .parent-page-receipt .pr-action-buttons,
  .parent-page-receipt .pr-receipt-footer-bar,
  .parent-page-receipt .brd-hero,
  .parent-page-receipt nav,
  .parent-page-receipt footer,
  .parent-page-receipt .pr-btn { display: none !important; }
  .parent-page-receipt .pr-receipt-card { box-shadow: none; }
  .parent-page-receipt .pr-receipt-wrapper { margin: 0; }
}
@media (max-width: 768px) {
  .parent-page-receipt .pr-receipt-info { grid-template-columns: 1fr; }
  .parent-page-receipt .pr-action-buttons { flex-direction: column; }
}

/* =====================================================
   SECTION 74: PARENT MAKE PAYMENT
   ===================================================== */
.parent-page-pay {
  --pp-primary: var(--primary);
  --pp-primary-hover: var(--primary-dark);
  --pp-primary-light: var(--primary-soft);
  --pp-primary-dark: var(--primary-dark);
  --pp-success: var(--green-500);
  --pp-success-hover: var(--green-600);
  --pp-success-light: var(--green-100);
  --pp-success-dark: var(--green-700);
  --pp-warning: var(--amber-500);
  --pp-warning-hover: var(--amber-600);
  --pp-warning-light: var(--amber-100);
  --pp-danger: #ef4444;
  --pp-danger-hover: #dc2626;
  --pp-danger-light: #fee2e2;
  --pp-white: var(--white);
  --pp-gray-50: var(--bg);
  --pp-gray-100: var(--bg-alt);
  --pp-gray-200: var(--border);
  --pp-gray-300: var(--border);
  --pp-gray-500: var(--text-muted);
  --pp-gray-600: var(--text-secondary);
  --pp-gray-700: var(--text);
  --pp-gray-800: var(--text);
  --pp-gray-900: var(--text);
  --pp-radius-sm: var(--r-sm);
  --pp-radius-md: var(--r-md);
  --pp-radius-lg: var(--r-lg);
  --pp-radius-xl: var(--r-xl);
  --pp-radius-2xl: var(--r-xl);
  --pp-radius-full: var(--r-full);
  --pp-shadow-sm: var(--shadow-sm);
  --pp-shadow-md: var(--shadow-md);
  --pp-shadow-lg: var(--shadow-lg);
  --pp-shadow-xl: var(--shadow-lg);
  --pp-spacing-xs: .25rem;
  --pp-spacing-sm: .5rem;
  --pp-spacing-md: 1rem;
  --pp-spacing-lg: 1.5rem;
  --pp-spacing-xl: 2rem;
  --pp-spacing-2xl: 3rem;
  --pp-transition-base: var(--t-base);
  --pp-font-size-xs: 1.3rem;
  --pp-font-size-sm: 1.3rem;
  --pp-font-size-md: 1.5rem;
  --pp-font-size-lg: 1.6rem;
  --pp-font-size-xl: 1.8rem;
  --pp-font-size-2xl: 2rem;
  --pp-font-size-3xl: 2.2rem;
}
.parent-page-pay .pp-wrap, .parent-page-pay .pp-fees-container, .parent-page-pay .pp-pay-wrap { max-width: 1200px; margin: var(--pp-spacing-xl) auto; padding: 0 var(--pp-spacing-lg) var(--pp-spacing-2xl); }
.parent-page-pay .pp-alert {
  padding: var(--pp-spacing-md) var(--pp-spacing-lg);
  border-radius: var(--pp-radius-lg);
  margin-bottom: var(--pp-spacing-lg);
  font-size: var(--pp-font-size-sm);
  font-weight: 500;
  box-shadow: var(--pp-shadow-sm);
  border-left: 4px solid;
}
.parent-page-pay .pp-alert-success { background: var(--pp-success-light); color: var(--pp-success-dark); border-left-color: var(--pp-success); }
.parent-page-pay .pp-alert-error { background: var(--pp-danger-light); color: #991b1b; border-left-color: var(--pp-danger); }
.parent-page-pay .pp-alert-info { background: var(--pp-primary-light); color: var(--pp-primary-dark); border-left-color: var(--pp-primary); }
.parent-page-pay .pp-card, .parent-page-pay .pp-pay-card {
  background: var(--pp-white);
  border-radius: var(--pp-radius-lg);
  padding: var(--pp-spacing-xl);
  margin-bottom: var(--pp-spacing-lg);
  box-shadow: var(--pp-shadow-md);
  border: 1px solid var(--pp-gray-100);
  transition: box-shadow var(--pp-transition-base);
}
.parent-page-pay .pp-card:hover, .parent-page-pay .pp-pay-card:hover { box-shadow: var(--pp-shadow-lg); }
.parent-page-pay .pp-card h3, .parent-page-pay .pp-pay-card h3 {
  margin: 0 0 var(--pp-spacing-md);
  font-size: var(--pp-font-size-lg);
  font-weight: 600;
  color: var(--text);
  padding-bottom: var(--pp-spacing-sm);
  border-bottom: 2px solid var(--pp-primary-light);
}
.parent-page-pay .pp-card-edit-border { border-left: 4px solid var(--pp-warning); }
.parent-page-pay .pp-card-edit-border h3 { border-bottom-color: var(--pp-warning-light); }
.parent-page-pay .pp-card-empty { text-align: center; padding: 2.5rem 1rem; }
.parent-page-pay .pp-card-empty .pp-empty-icon { font-size: 3rem; margin-bottom: .75rem; }
.parent-page-pay .pp-card-empty h3 { border: none; color: var(--pp-success-dark); }
.parent-page-pay .pp-card-empty p { color: var(--pp-gray-500); }
.parent-page-pay .pp-filter-strip { display: flex; gap: var(--pp-spacing-md); flex-wrap: wrap; align-items: flex-end; margin-bottom: var(--pp-spacing-lg); }
.parent-page-pay .pp-fg { flex: 1; min-width: 160px; }
.parent-page-pay .pp-fg label { display: block; font-size: var(--pp-font-size-xs); font-weight: 600; color: var(--pp-gray-700); margin-bottom: var(--pp-spacing-sm); text-transform: uppercase; letter-spacing: .04em; }
.parent-page-pay .pp-form-group { margin-bottom: var(--pp-spacing-lg); }
.parent-page-pay .pp-form-group label { display: block; font-size: var(--pp-font-size-md); font-weight: 600; color: var(--pp-gray-700); margin-bottom: var(--pp-spacing-sm); letter-spacing: .025em; }
.parent-page-pay .pp-form-control {
  width: 100%;
  padding: .875rem 1rem;
  border: 2px solid var(--pp-gray-200);
  border-radius: var(--pp-radius-md);
  font-size: var(--pp-font-size-md);
  line-height: 1.5;
  color: var(--pp-gray-900);
  background: var(--pp-white);
  box-sizing: border-box;
  min-height: 4.5rem;
  transition: all var(--pp-transition-base);
}
.parent-page-pay .pp-form-control:focus { outline: none; border-color: var(--pp-primary); box-shadow: 0 0 0 3px var(--pp-primary-light); }
.parent-page-pay .pp-form-control:hover:not(:focus) { border-color: var(--pp-gray-300); }
.parent-page-pay select.pp-form-control {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1.5em 1.5em;
  padding-right: 2.5rem;
  cursor: pointer;
}
.parent-page-pay textarea.pp-form-control { min-height: 12rem; resize: vertical; font-family: inherit; line-height: 1.6; padding: 1rem; }
.parent-page-pay .pp-form-hint { font-size: 1.27rem; color: var(--pp-gray-500); margin-top: .3rem; display: block; }
.parent-page-pay .pp-form-optional { font-weight: 400; color: var(--pp-gray-500); }
.parent-page-pay .pp-balance-hint { color: var(--gray-500); font-size: 1.3rem; }
.parent-page-pay .pp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--pp-spacing-sm);
  padding: .875rem 1.75rem;
  border: none;
  border-radius: var(--pp-radius-md);
  font-size: var(--pp-font-size-md);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--pp-transition-base);
  text-decoration: none;
  line-height: 1;
}
.parent-page-pay .pp-btn:hover { transform: translateY(-1px); box-shadow: var(--pp-shadow-md); }
.parent-page-pay .pp-btn-primary { background: var(--pp-primary); color: var(--pp-white); }
.parent-page-pay .pp-btn-primary:hover { background: var(--pp-primary-hover); box-shadow: 0 8px 16px rgba(232,119,34,.25); }
.parent-page-pay .pp-btn-success { background: var(--pp-success); color: var(--pp-white); }
.parent-page-pay .pp-btn-success:hover { background: var(--pp-success-hover); box-shadow: 0 8px 16px rgba(16,185,129,.25); }
.parent-page-pay .pp-btn-warning { background: var(--pp-warning); color: var(--pp-white); }
.parent-page-pay .pp-btn-danger { background: var(--pp-danger); color: var(--pp-white); }
.parent-page-pay .pp-btn-danger:hover { background: var(--pp-danger-hover); box-shadow: 0 8px 16px rgba(239,68,68,.25); }
.parent-page-pay .pp-btn-warning-amber { background: var(--pp-warning); color: var(--white); flex: 1; }
.parent-page-pay .pp-btn-secondary { background: var(--pp-gray-100); color: var(--pp-gray-700); border: 2px solid var(--pp-gray-200); }
.parent-page-pay .pp-btn-secondary:hover { background: var(--pp-gray-200); }
.parent-page-pay .pp-btn-ghost { background: transparent; border: 2px solid var(--pp-primary); color: var(--pp-primary); }
.parent-page-pay .pp-btn-ghost:hover { background: var(--pp-primary-light); }
.parent-page-pay .pp-btn-back { background: transparent; border: 2px solid var(--pp-gray-300); color: var(--pp-gray-700); }
.parent-page-pay .pp-btn-back:hover { background: var(--pp-gray-100); }
.parent-page-pay .pp-btn-block { width: 100%; }
.parent-page-pay .pp-btn-decline { text-decoration: none; }
.parent-page-pay .pp-pay-table, .parent-page-pay .pp-fee-table { width: 100%; border-collapse: collapse; background: var(--pp-white); border-radius: var(--pp-radius-lg); overflow: hidden; }
.parent-page-pay .pp-pay-table th, .parent-page-pay .pp-fee-table th { background: var(--text); color: var(--white); padding: var(--pp-spacing-md) var(--pp-spacing-lg); text-align: left; font-weight: 600; font-size: var(--pp-font-size-sm); }
.parent-page-pay .pp-pay-table td, .parent-page-pay .pp-fee-table td { padding: var(--pp-spacing-md) var(--pp-spacing-lg); border-bottom: 1px solid var(--pp-gray-200); vertical-align: middle; font-size: var(--pp-font-size-sm); }
.parent-page-pay .pp-pay-table tr:hover, .parent-page-pay .pp-fee-table tr:hover { background: var(--pp-gray-50); }
.parent-page-pay .pp-badge, .parent-page-pay .pp-status-badge, .parent-page-pay .pp-ph-badge { display: inline-flex; align-items: center; gap: .35rem; padding: .35rem .9rem; border-radius: var(--pp-radius-full); font-size: var(--pp-font-size-xs); font-weight: 700; text-transform: uppercase; white-space: nowrap; }
.parent-page-pay .pp-badge-paid, .parent-page-pay .pp-status-paid, .parent-page-pay .pp-ph-approved { background: var(--pp-success-light); color: var(--pp-success-dark); }
.parent-page-pay .pp-badge-partial, .parent-page-pay .pp-status-partial, .parent-page-pay .pp-ph-pending { background: var(--pp-warning-light); color: var(--amber-700); }
.parent-page-pay .pp-badge-unpaid, .parent-page-pay .pp-status-unpaid { background: var(--pp-danger-light); color: #991b1b; }
.parent-page-pay .pp-badge-overdue, .parent-page-pay .pp-status-overdue, .parent-page-pay .pp-ph-rejected { background: var(--pp-danger-light); color: #991b1b; }
.parent-page-pay .pp-pending-banner {
  background: var(--pp-warning-light);
  border: 1px solid var(--pp-warning);
  border-radius: var(--pp-radius-lg);
  padding: 1rem 1.25rem;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.parent-page-pay .pp-pb-icon { font-size: 1.8rem; }
.parent-page-pay .pp-pb-text { flex: 1; font-size: var(--pp-font-size-sm); color: var(--pp-gray-700); }
.parent-page-pay .pp-pb-count { font-size: var(--pp-font-size-2xl); font-weight: 800; color: var(--amber-700); background: var(--white); border-radius: var(--pp-radius-lg); padding: .4rem .9rem; box-shadow: var(--pp-shadow-sm); }
.parent-page-pay .pp-notif-wrap { position: relative; display: inline-block; }
.parent-page-pay .pp-notif-badge-dot { position: absolute; top: -5px; right: -8px; background: var(--pp-danger); color: var(--white); font-size: .65rem; font-weight: 800; min-width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; padding: 0 4px; }
.parent-page-pay .pp-notif-bell-btn { background: var(--white); border: 1px solid var(--pp-gray-200); border-radius: var(--pp-radius-lg); padding: .55rem .9rem; cursor: pointer; font-size: 1.3rem; }
.parent-page-pay .pp-notif-bell-btn:hover { border-color: var(--pp-primary); }
.parent-page-pay .pp-notif-dropdown { position: absolute; right: 0; top: 42px; z-index: 999; width: 360px; background: var(--white); border: 1px solid var(--pp-gray-200); border-radius: var(--pp-radius-lg); box-shadow: 0 8px 24px rgba(0,0,0,.12); display: none; overflow: hidden; }
.parent-page-pay .pp-notif-dropdown.pp-open { display: block; }
.parent-page-pay .pp-notif-hdr { padding: .8rem 1rem; border-bottom: 1px solid var(--pp-gray-100); display: flex; justify-content: space-between; align-items: center; font-weight: 700; font-size: var(--pp-font-size-sm); }
.parent-page-pay .pp-notif-item { padding: .85rem 1rem; border-bottom: 1px solid var(--pp-gray-100); cursor: pointer; transition: background .15s; font-size: var(--pp-font-size-sm); }
.parent-page-pay .pp-notif-item:hover { background: var(--pp-gray-50); }
.parent-page-pay .pp-notif-item.pp-unread { background: var(--primary-mist); }
.parent-page-pay .pp-notif-item .pp-ni-title { font-weight: 600; margin-bottom: .35rem; color: var(--pp-gray-800); }
.parent-page-pay .pp-notif-item .pp-ni-msg { color: var(--pp-gray-500); font-size: 1.27rem; }
.parent-page-pay .pp-notif-item .pp-ni-time { color: var(--pp-gray-500); font-size: 1.27rem; margin-top: .35rem; }
.parent-page-pay .pp-notif-empty { padding: 1.2rem; text-align: center; color: var(--pp-gray-500); font-size: 1.3rem; }
.parent-page-pay .pp-notif-footer { padding: .75rem 1rem; text-align: center; border-top: 1px solid var(--pp-gray-100); }
.parent-page-pay .pp-topbar { display: flex; justify-content: flex-end; align-items: center; gap: .75rem; margin-bottom: 1rem; flex-wrap: wrap; }
.parent-page-pay .pp-stu-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--pp-white);
  border-radius: var(--pp-radius-lg);
  padding: 1.1rem 1.4rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--pp-shadow-sm);
  border-left: 4px solid var(--pp-primary);
}
.parent-page-pay .pp-av {
  font-size: 1.9rem;
  background: var(--pp-primary-light);
  border-radius: 50%;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.parent-page-pay .pp-stu-bar h4 { margin: 0 0 .2rem; font-size: var(--pp-font-size-md); font-weight: 700; color: var(--text); }
.parent-page-pay .pp-stu-bar p  { margin: 0; font-size: var(--pp-font-size-sm); color: var(--pp-gray-500); }
.parent-page-pay .pp-step-bar { display: flex; gap: .5rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.parent-page-pay .pp-step {
  flex: 1;
  min-width: 90px;
  text-align: center;
  padding: .6rem .8rem;
  border-radius: var(--pp-radius-md);
  font-size: var(--pp-font-size-xs);
  font-weight: 700;
  background: var(--pp-gray-100);
  color: var(--pp-gray-500);
  border: 2px solid var(--pp-gray-200);
  transition: all var(--pp-transition-base);
}
.parent-page-pay .pp-step.pp-active { background: var(--pp-primary); color: var(--pp-white); border-color: var(--pp-primary); }
.parent-page-pay .pp-step.pp-done   { background: var(--pp-success-light); color: var(--pp-success-dark); border-color: var(--pp-success); }
.parent-page-pay .pp-fee-sel-list { display: flex; flex-direction: column; gap: .75rem; }
.parent-page-pay .pp-fee-sel-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--pp-gray-50);
  border: 2px solid var(--pp-gray-200);
  border-radius: var(--pp-radius-lg);
  cursor: pointer;
  transition: all var(--pp-transition-base);
}
.parent-page-pay .pp-fee-sel-item:hover,
.parent-page-pay .pp-fee-sel-item.pp-fsi-sel { border-color: var(--pp-primary); background: var(--pp-primary-light); }
.parent-page-pay .pp-fee-sel-item input[type="radio"] { display: none; }
.parent-page-pay .pp-fsi-radio {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--pp-gray-300);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .75rem;
  color: var(--pp-primary);
  font-weight: 800;
  transition: all var(--pp-transition-base);
}
.parent-page-pay .pp-fee-sel-item.pp-fsi-sel .pp-fsi-radio { border-color: var(--pp-primary); background: var(--pp-primary); color: var(--pp-white); }
.parent-page-pay .pp-fsi-info  { flex: 1; }
.parent-page-pay .pp-fsi-title { font-size: var(--pp-font-size-md); font-weight: 700; color: var(--pp-gray-800); margin-bottom: .2rem; }
.parent-page-pay .pp-fsi-due   { font-size: var(--pp-font-size-xs); color: var(--pp-gray-500); margin-top: .3rem; }
.parent-page-pay .pp-fsi-bal   { text-align: right; flex-shrink: 0; }
.parent-page-pay .pp-fsi-bal-amt { font-size: var(--pp-font-size-lg); font-weight: 800; color: var(--pp-danger); }
.parent-page-pay .pp-fsi-bal-lbl { font-size: var(--pp-font-size-xs); color: var(--pp-gray-500); text-transform: uppercase; letter-spacing: .04em; }
.parent-page-pay .pp-fsi-tags { margin-top: 3px; }
.parent-page-pay .pp-fsi-tag {
  background: var(--pp-primary-light);
  color: var(--pp-primary-dark);
  font-size: 1.3rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--pp-radius-full);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.parent-page-pay .pp-bal-box {
  background: var(--pp-primary);
  color: var(--pp-white);
  border-radius: var(--pp-radius-lg);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.25rem;
  text-align: center;
  box-shadow: var(--pp-shadow-md);
}
.parent-page-pay .pp-bb-lbl { font-size: var(--pp-font-size-xs); font-weight: 700; text-transform: uppercase; letter-spacing: .07em; opacity: .85; margin-bottom: .4rem; }
.parent-page-pay .pp-bb-val { font-size: var(--pp-font-size-3xl); font-weight: 800; }
.parent-page-pay .pp-bb-tags { margin: 5px 0 2px; }
.parent-page-pay .pp-bb-tag {
  background: rgba(255,255,255,.6);
  color: #991b1b;
  font-size: 1.27rem;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: var(--pp-radius-full);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.parent-page-pay .pp-bb-meta { font-size: 1.28rem; color: var(--white); margin-top: 4px; }
.parent-page-pay .pp-method-section-label { font-size: var(--pp-font-size-xs); font-weight: 700; color: var(--pp-gray-700); margin-bottom: .75rem; text-transform: uppercase; letter-spacing: .04em; }
.parent-page-pay .pp-method-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: .75rem; margin-bottom: 1.5rem; }
.parent-page-pay .pp-mc {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.2rem .75rem;
  background: var(--pp-gray-50);
  border: 2px solid var(--pp-gray-200);
  border-radius: var(--pp-radius-lg);
  cursor: pointer;
  transition: all var(--pp-transition-base);
  position: relative;
  text-align: center;
  user-select: none;
}
.parent-page-pay .pp-mc:hover { border-color: var(--pp-primary); background: var(--pp-primary-light); }
.parent-page-pay .pp-mc input[type="radio"] { display: none; }
.parent-page-pay .pp-mc-tick {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--pp-primary);
  color: var(--pp-white);
  font-size: .7rem;
  display: none;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}
.parent-page-pay .pp-mc.pp-selected { border-color: var(--pp-primary); background: var(--pp-primary-light); }
.parent-page-pay .pp-mc.pp-selected .pp-mc-tick { display: flex; }
.parent-page-pay .pp-mc-icon  { font-size: 1.75rem; margin-bottom: .45rem; }
.parent-page-pay .pp-mc-label { font-size: 1.3rem; font-weight: 700; color: var(--text); margin-bottom: .2rem; }
.parent-page-pay .pp-mc-hint  { font-size: 1.27rem; color: var(--pp-gray-500); }
.parent-page-pay .pp-pay-panel { margin-top: .5rem; animation: ppFadeInUp .22s ease; }
.parent-page-pay .pp-pay-panel[hidden] { display: none; }
.parent-page-pay .pp-pending-info-box {
  background: var(--amber-100);
  border: 1px solid var(--amber-200);
  border-radius: 6px;
  padding: .75rem 1rem;
  margin-bottom: 1.25rem;
  font-size: var(--pp-font-size-sm);
  color: var(--amber-700);
}
.parent-page-pay .pp-edit-actions { display: flex; gap: .75rem; flex-wrap: wrap; }
@keyframes ppFadeInUp { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.parent-page-pay .pp-notice { padding: .85rem 1.1rem; border-radius: var(--pp-radius-md); font-size: 1.47rem; margin-bottom: 1rem; }
.parent-page-pay .pp-notice-secure  { background: var(--pp-success-light); color: var(--pp-success-dark); border-left: 4px solid var(--pp-success); }
.parent-page-pay .pp-notice-pending { background: var(--pp-warning-light); color: var(--amber-700); border-left: 4px solid var(--pp-warning); }
.parent-page-pay .pp-notice-info    { background: var(--pp-primary-light); color: var(--pp-primary-dark); border-left: 4px solid var(--pp-primary); }
.parent-page-pay .pp-hint-text { display: block; font-size: 1.3rem; color: var(--pp-gray-500); margin-top: .3rem; }
.parent-page-pay .pp-ps-calc-box { background: var(--gray-50); border-radius: 10px; padding: 1.6rem 2rem; margin: 0 0 1rem; border: 1px solid var(--gray-200); }
.parent-page-pay .pp-ps-calc-box[hidden] { display: none; }
.parent-page-pay .pp-ps-calc-title { font-weight: 700; margin: 0 0 1.2rem; font-size: var(--pp-font-size-sm); color: var(--gray-800); }
.parent-page-pay .pp-ps-calc-table { width: 100%; font-size: var(--pp-font-size-sm); border-collapse: collapse; }
.parent-page-pay .pp-ps-calc-table td { padding: 6px 0; }
.parent-page-pay .pp-ps-calc-table .pp-ps-row-base td:first-child { color: var(--gray-500); }
.parent-page-pay .pp-ps-calc-table .pp-ps-row-base td:last-child { text-align: right; font-weight: 600; color: var(--gray-800); }
.parent-page-pay .pp-ps-calc-table .pp-ps-row-fee td:first-child { color: var(--amber-600); }
.parent-page-pay .pp-ps-calc-table .pp-ps-row-fee td:last-child { text-align: right; font-weight: 600; color: var(--amber-600); }
.parent-page-pay .pp-ps-calc-table .pp-ps-row-fee small { display: block; color: var(--gray-400); font-size: 1.27rem; }
.parent-page-pay .pp-ps-calc-table .pp-ps-row-total td { border-top: 2px solid var(--gray-200); padding-top: 10px; }
.parent-page-pay .pp-ps-calc-table .pp-ps-row-total td:first-child { padding-top: 10px; font-weight: 700; color: var(--gray-800); font-size: var(--pp-font-size-md); }
.parent-page-pay .pp-ps-calc-table .pp-ps-row-total td:last-child { text-align: right; font-weight: 800; font-size: var(--pp-font-size-lg); color: var(--pp-primary); padding-top: 10px; }
.parent-page-pay .pp-ps-calc-note { margin: 1rem 0 0; font-size: 1.3rem; color: var(--gray-500); }
.parent-page-pay .pp-ps-spinner {
  display: inline-block;
  width: 13px;
  height: 13px;
  border: 2px solid rgba(255,255,255,.4);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: ppPsSpin .7s linear infinite;
  vertical-align: middle;
  margin-right: 5px;
}
@keyframes ppPsSpin { to { transform: rotate(360deg); } }
.parent-page-pay .pp-back-link { margin-top: 1.1rem; text-align: center; }
.parent-page-pay .pp-back-link .pp-btn { text-decoration: none; }
@media (max-width: 768px) {
  .parent-page-pay .pp-filter-strip { flex-direction: column; }
  .parent-page-pay .pp-pay-table th, .parent-page-pay .pp-pay-table td { padding: var(--pp-spacing-sm) var(--pp-spacing-md); font-size: var(--pp-font-size-xs); }
}

/* =====================================================
   SECTION 75: PARENT VIEW FEES
   ===================================================== */
.parent-page-fees {
  --pvf-primary: var(--primary);
  --pvf-primary-hover: var(--primary-dark);
  --pvf-primary-light: var(--primary-soft);
  --pvf-primary-dark: var(--primary-dark);
  --pvf-success: var(--green-500);
  --pvf-success-dark: var(--green-700);
  --pvf-success-light: var(--green-100);
  --pvf-warning: var(--amber-500);
  --pvf-warning-light: var(--amber-100);
  --pvf-danger: #ef4444;
  --pvf-danger-light: #fee2e2;
  --pvf-white: var(--white);
  --pvf-gray-50: var(--bg);
  --pvf-gray-100: var(--bg-alt);
  --pvf-gray-200: var(--border);
  --pvf-gray-300: var(--border);
  --pvf-gray-500: var(--text-muted);
  --pvf-gray-600: var(--text-secondary);
  --pvf-gray-700: var(--text);
  --pvf-gray-800: var(--text);
  --pvf-gray-900: var(--text);
  --pvf-radius-sm: var(--r-sm);
  --pvf-radius-md: var(--r-md);
  --pvf-radius-lg: var(--r-lg);
  --pvf-radius-xl: var(--r-xl);
  --pvf-radius-2xl: var(--r-xl);
  --pvf-radius-full: var(--r-full);
  --pvf-shadow-sm: var(--shadow-sm);
  --pvf-shadow-md: var(--shadow-md);
  --pvf-shadow-lg: var(--shadow-lg);
  --pvf-shadow-xl: var(--shadow-lg);
  --pvf-spacing-xs: .25rem;
  --pvf-spacing-sm: .5rem;
  --pvf-spacing-md: 1rem;
  --pvf-spacing-lg: 1.5rem;
  --pvf-spacing-xl: 2rem;
  --pvf-spacing-2xl: 3rem;
  --pvf-transition-base: var(--t-base);
  --pvf-font-size-xs: 1.3rem;
  --pvf-font-size-sm: 1.3rem;
  --pvf-font-size-base: 1.4rem;
  --pvf-font-size-md: 1.5rem;
  --pvf-font-size-lg: 1.6rem;
  --pvf-font-size-xl: 1.8rem;
  --pvf-font-size-2xl: 2rem;
  --pvf-font-size-3xl: 2.2rem;
}
.parent-page-fees .pvf-wrap, .parent-page-fees .pvf-fees-container, .parent-page-fees .pvf-pay-wrap { max-width: 1200px; margin: var(--pvf-spacing-xl) auto; padding: 0 var(--pvf-spacing-lg) var(--pvf-spacing-2xl); }
.parent-page-fees .pvf-alert {
  padding: var(--pvf-spacing-md) var(--pvf-spacing-lg);
  border-radius: var(--pvf-radius-lg);
  margin-bottom: var(--pvf-spacing-lg);
  font-size: var(--pvf-font-size-sm);
  font-weight: 500;
  box-shadow: var(--pvf-shadow-sm);
  border-left: 4px solid;
}
.parent-page-fees .pvf-alert-success { background: var(--pvf-success-light); color: var(--pvf-success-dark); border-left-color: var(--pvf-success); }
.parent-page-fees .pvf-alert-error { background: var(--pvf-danger-light); color: #991b1b; border-left-color: var(--pvf-danger); }
.parent-page-fees .pvf-alert-info { background: var(--pvf-primary-light); color: var(--pvf-primary-dark); border-left-color: var(--pvf-primary); }
.parent-page-fees .pvf-card, .parent-page-fees .pvf-pay-card {
  background: var(--pvf-white);
  border-radius: var(--pvf-radius-lg);
  padding: var(--pvf-spacing-xl);
  margin-bottom: var(--pvf-spacing-lg);
  box-shadow: var(--pvf-shadow-md);
  border: 1px solid var(--pvf-gray-100);
  transition: box-shadow var(--pvf-transition-base);
}
.parent-page-fees .pvf-card:hover, .parent-page-fees .pvf-pay-card:hover { box-shadow: var(--pvf-shadow-lg); }
.parent-page-fees .pvf-card h3, .parent-page-fees .pvf-pay-card h3 {
  margin: 0 0 var(--pvf-spacing-md);
  font-size: var(--pvf-font-size-lg);
  font-weight: 600;
  color: var(--text);
  padding-bottom: var(--pvf-spacing-sm);
  border-bottom: 2px solid var(--pvf-primary-light);
}
.parent-page-fees .pvf-card-banks { border-left: 4px solid var(--green-500); margin-top: 2.4rem; }
.parent-page-fees .pvf-card-banks h3 { border-bottom-color: var(--pvf-success-light); }
.parent-page-fees .pvf-card-banks .pvf-card-banks-icon { font-size: 1.4rem; margin-right: 6px; }
.parent-page-fees .pvf-banks-intro { font-size: 1.3rem; color: var(--text-secondary); margin: 0 0 1.6rem; }
.parent-page-fees .pvf-banks-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.6rem; }
.parent-page-fees .pvf-bank-card { background: var(--green-50); border: 1px solid var(--green-300); border-radius: 8px; padding: 1.6rem 2rem; }
.parent-page-fees .pvf-bank-title { font-size: 1.3rem; font-weight: 700; color: var(--green-800); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 1rem; }
.parent-page-fees .pvf-bank-table { width: 100%; border-collapse: collapse; font-size: 1.3rem; }
.parent-page-fees .pvf-bank-table td { padding: 4px 0; }
.parent-page-fees .pvf-bank-table td:first-child { color: var(--gray-500); width: 110px; }
.parent-page-fees .pvf-bank-table .pvf-bank-val { font-weight: 700; color: var(--gray-800); }
.parent-page-fees .pvf-bank-table .pvf-bank-val-acct { font-weight: 800; color: var(--green-800); font-size: 1.5rem; letter-spacing: .08em; }
.parent-page-fees .pvf-banks-note { margin-top: 1.4rem; background: var(--amber-100); border: 1px solid var(--amber-200); border-radius: 6px; padding: 1rem 1.4rem; font-size: 1.27rem; color: var(--amber-700); }
.parent-page-fees .pvf-filter-strip { display: flex; gap: var(--pvf-spacing-md); flex-wrap: wrap; align-items: flex-end; margin-bottom: var(--pvf-spacing-lg); }
.parent-page-fees .pvf-fg { flex: 1; min-width: 160px; }
.parent-page-fees .pvf-fg label { display: block; font-size: var(--pvf-font-size-xs); font-weight: 600; color: var(--pvf-gray-700); margin-bottom: var(--pvf-spacing-sm); text-transform: uppercase; letter-spacing: .04em; }
.parent-page-fees .pvf-form-group { margin-bottom: var(--pvf-spacing-lg); }
.parent-page-fees .pvf-form-group label { display: block; font-size: var(--pvf-font-size-md); font-weight: 600; color: var(--pvf-gray-700); margin-bottom: var(--pvf-spacing-sm); letter-spacing: .025em; }
.parent-page-fees .pvf-form-control {
  width: 100%;
  padding: .875rem 1rem;
  border: 2px solid var(--pvf-gray-200);
  border-radius: var(--pvf-radius-md);
  font-size: var(--pvf-font-size-md);
  line-height: 1.5;
  color: var(--pvf-gray-900);
  background: var(--pvf-white);
  box-sizing: border-box;
  min-height: 4.5rem;
  transition: all var(--pvf-transition-base);
}
.parent-page-fees .pvf-form-control:focus { outline: none; border-color: var(--pvf-primary); box-shadow: 0 0 0 3px var(--pvf-primary-light); }
.parent-page-fees .pvf-form-control:hover:not(:focus) { border-color: var(--pvf-gray-300); }
.parent-page-fees select.pvf-form-control {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1.5em 1.5em;
  padding-right: 2.5rem;
  cursor: pointer;
}
.parent-page-fees textarea.pvf-form-control { min-height: 12rem; resize: vertical; font-family: inherit; line-height: 1.6; padding: 1rem; }
.parent-page-fees .pvf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--pvf-spacing-sm);
  padding: .875rem 1.75rem;
  border: none;
  border-radius: var(--pvf-radius-md);
  font-size: var(--pvf-font-size-md);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--pvf-transition-base);
  text-decoration: none;
  line-height: 1;
}
.parent-page-fees .pvf-btn:hover { transform: translateY(-1px); box-shadow: var(--pvf-shadow-md); }
.parent-page-fees .pvf-btn-primary { background: var(--pvf-primary); color: var(--pvf-white); }
.parent-page-fees .pvf-btn-primary:hover { background: var(--pvf-primary-hover); box-shadow: 0 8px 16px rgba(232,119,34,.25); }
.parent-page-fees .pvf-btn-success { background: var(--pvf-success); color: var(--pvf-white); }
.parent-page-fees .pvf-btn-success:hover { background: var(--green-600); box-shadow: 0 8px 16px rgba(16,185,129,.25); }
.parent-page-fees .pvf-btn-warning { background: var(--pvf-warning); color: var(--pvf-white); }
.parent-page-fees .pvf-btn-danger { background: var(--pvf-danger); color: var(--pvf-white); }
.parent-page-fees .pvf-btn-secondary { background: var(--pvf-gray-100); color: var(--pvf-gray-700); border: 2px solid var(--pvf-gray-200); }
.parent-page-fees .pvf-btn-secondary:hover { background: var(--pvf-gray-200); }
.parent-page-fees .pvf-btn-ghost { background: transparent; border: 2px solid var(--pvf-primary); color: var(--pvf-primary); }
.parent-page-fees .pvf-btn-ghost:hover { background: var(--pvf-primary-light); }
.parent-page-fees .pvf-btn-back { background: transparent; border: 2px solid var(--pvf-gray-300); color: var(--pvf-gray-700); }
.parent-page-fees .pvf-btn-back:hover { background: var(--pvf-gray-100); }
.parent-page-fees .pvf-btn-block { width: 100%; }
.parent-page-fees .pvf-pay-table, .parent-page-fees .pvf-fee-table { width: 100%; border-collapse: collapse; background: var(--pvf-white); border-radius: var(--pvf-radius-lg); overflow: hidden; }
.parent-page-fees .pvf-pay-table th, .parent-page-fees .pvf-fee-table th { background: var(--text); color: var(--white); padding: var(--pvf-spacing-md) var(--pvf-spacing-lg); text-align: left; font-weight: 600; font-size: var(--pvf-font-size-sm); }
.parent-page-fees .pvf-pay-table td, .parent-page-fees .pvf-fee-table td { padding: var(--pvf-spacing-md) var(--pvf-spacing-lg); border-bottom: 1px solid var(--pvf-gray-200); vertical-align: middle; font-size: var(--pvf-font-size-sm); }
.parent-page-fees .pvf-pay-table tr:hover, .parent-page-fees .pvf-fee-table tr:hover { background: var(--pvf-gray-50); }
.parent-page-fees .pvf-badge, .parent-page-fees .pvf-status-badge, .parent-page-fees .pvf-ph-badge { display: inline-flex; align-items: center; gap: .35rem; padding: .35rem .9rem; border-radius: var(--pvf-radius-full); font-size: var(--pvf-font-size-xs); font-weight: 700; text-transform: uppercase; white-space: nowrap; }
.parent-page-fees .pvf-badge-paid, .parent-page-fees .pvf-status-paid, .parent-page-fees .pvf-ph-approved { background: var(--pvf-success-light); color: var(--pvf-success-dark); }
.parent-page-fees .pvf-badge-partial, .parent-page-fees .pvf-status-partial, .parent-page-fees .pvf-ph-pending { background: var(--pvf-warning-light); color: var(--amber-700); }
.parent-page-fees .pvf-badge-unpaid, .parent-page-fees .pvf-status-unpaid { background: var(--pvf-danger-light); color: #991b1b; }
.parent-page-fees .pvf-badge-overdue, .parent-page-fees .pvf-status-overdue, .parent-page-fees .pvf-ph-rejected { background: var(--pvf-danger-light); color: #991b1b; }
.parent-page-fees .pvf-pending-banner {
  background: var(--pvf-warning-light);
  border: 1px solid var(--pvf-warning);
  border-radius: var(--pvf-radius-lg);
  padding: 1rem 1.25rem;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.parent-page-fees .pvf-pb-icon { font-size: 1.8rem; }
.parent-page-fees .pvf-pb-text { flex: 1; font-size: var(--pvf-font-size-sm); color: var(--pvf-gray-700); }
.parent-page-fees .pvf-pb-count { font-size: var(--pvf-font-size-2xl); font-weight: 800; color: var(--amber-700); background: var(--white); border-radius: var(--pvf-radius-lg); padding: .4rem .9rem; box-shadow: var(--pvf-shadow-sm); }
.parent-page-fees .pvf-notif-wrap { position: relative; display: inline-block; }
.parent-page-fees .pvf-notif-badge-dot { position: absolute; top: -5px; right: -8px; background: var(--pvf-danger); color: var(--white); font-size: .65rem; font-weight: 800; min-width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; padding: 0 4px; }
.parent-page-fees .pvf-notif-bell-btn { background: var(--white); border: 1px solid var(--pvf-gray-200); border-radius: var(--pvf-radius-lg); padding: .55rem .9rem; cursor: pointer; font-size: 1.3rem; }
.parent-page-fees .pvf-notif-bell-btn:hover { border-color: var(--pvf-primary); }
.parent-page-fees .pvf-notif-dropdown { position: absolute; right: 0; top: 42px; z-index: 999; width: 360px; background: var(--white); border: 1px solid var(--pvf-gray-200); border-radius: var(--pvf-radius-lg); box-shadow: 0 8px 24px rgba(0,0,0,.12); display: none; overflow: hidden; }
.parent-page-fees .pvf-notif-dropdown.pvf-open { display: block; }
.parent-page-fees .pvf-notif-hdr { padding: .8rem 1rem; border-bottom: 1px solid var(--pvf-gray-100); display: flex; justify-content: space-between; align-items: center; font-weight: 700; font-size: var(--pvf-font-size-sm); }
.parent-page-fees .pvf-notif-item { padding: .85rem 1rem; border-bottom: 1px solid var(--pvf-gray-100); cursor: pointer; transition: background .15s; font-size: var(--pvf-font-size-sm); }
.parent-page-fees .pvf-notif-item:hover { background: var(--pvf-gray-50); }
.parent-page-fees .pvf-notif-item.pvf-unread { background: var(--primary-mist); }
.parent-page-fees .pvf-notif-item .pvf-ni-title { font-weight: 600; margin-bottom: .35rem; color: var(--pvf-gray-800); }
.parent-page-fees .pvf-notif-item .pvf-ni-msg { color: var(--pvf-gray-500); font-size: 1.27rem; }
.parent-page-fees .pvf-notif-item .pvf-ni-time { color: var(--pvf-gray-500); font-size: 1.27rem; margin-top: .35rem; }
.parent-page-fees .pvf-notif-empty { padding: 1.2rem; text-align: center; color: var(--pvf-gray-500); font-size: 1.3rem; }
.parent-page-fees .pvf-notif-footer { padding: .75rem 1rem; text-align: center; border-top: 1px solid var(--pvf-gray-100); }
.parent-page-fees .pvf-topbar { display: flex; justify-content: flex-end; align-items: center; gap: .75rem; margin-bottom: 1rem; flex-wrap: wrap; }
.parent-page-fees .pvf-student-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--pvf-white);
  border-radius: var(--pvf-radius-lg);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--pvf-shadow-sm);
  border-left: 4px solid var(--pvf-primary);
}
.parent-page-fees .pvf-student-avatar {
  font-size: 2.2rem;
  background: var(--pvf-primary-light);
  border-radius: 50%;
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.parent-page-fees .pvf-student-header h3 { margin: 0 0 .3rem; font-size: var(--pvf-font-size-lg); font-weight: 700; color: var(--text); }
.parent-page-fees .pvf-student-header p  { margin: 0; font-size: var(--pvf-font-size-sm); color: var(--pvf-gray-500); }
.parent-page-fees .pvf-summary-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 1.25rem; }
.parent-page-fees .pvf-summary-card {
  background: var(--pvf-white);
  border-radius: var(--pvf-radius-lg);
  padding: 1.2rem 1.5rem;
  box-shadow: var(--pvf-shadow-sm);
  border-top: 3px solid var(--pvf-gray-300);
  transition: box-shadow var(--pvf-transition-base);
}
.parent-page-fees .pvf-summary-card:hover { box-shadow: var(--pvf-shadow-md); }
.parent-page-fees .pvf-summary-card.pvf-sc-paid    { border-top-color: var(--pvf-success); }
.parent-page-fees .pvf-summary-card.pvf-sc-balance { border-top-color: var(--pvf-danger); }
.parent-page-fees .pvf-sc-label { font-size: var(--pvf-font-size-xs); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--pvf-gray-500); margin-bottom: .45rem; }
.parent-page-fees .pvf-sc-val   { font-size: var(--pvf-font-size-2xl); font-weight: 800; color: var(--text); }
.parent-page-fees .pvf-sc-val-paid { color: var(--pvf-success-dark); }
.parent-page-fees .pvf-sc-val-balance { color: var(--pvf-danger); }
.parent-page-fees .pvf-fee-card {
  background: var(--pvf-white);
  border-radius: var(--pvf-radius-lg);
  padding: 1.4rem 1.5rem;
  margin-bottom: 1rem;
  box-shadow: var(--pvf-shadow-sm);
  border-left: 4px solid var(--pvf-gray-300);
  transition: box-shadow var(--pvf-transition-base);
}
.parent-page-fees .pvf-fee-card:hover { box-shadow: var(--pvf-shadow-md); }
.parent-page-fees .pvf-fee-card.pvf-fc-paid    { border-left-color: var(--pvf-success); }
.parent-page-fees .pvf-fee-card.pvf-fc-partial { border-left-color: var(--pvf-warning); }
.parent-page-fees .pvf-fee-card.pvf-fc-overdue { border-left-color: var(--pvf-danger); }
.parent-page-fees .pvf-fee-card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 1rem; }
.parent-page-fees .pvf-fee-card-title { font-size: var(--pvf-font-size-md); font-weight: 700; color: var(--text); margin-bottom: .2rem; }
.parent-page-fees .pvf-fee-card-sub   { font-size: var(--pvf-font-size-xs); color: var(--pvf-gray-500); margin-top: .25rem; }
.parent-page-fees .pvf-fee-tags { margin-top: 5px; margin-bottom: 3px; }
.parent-page-fees .pvf-fee-tag {
  background: var(--pvf-primary-light);
  color: var(--pvf-primary-dark);
  font-size: 1.3rem;
  font-weight: 700;
  padding: 3px 11px;
  border-radius: var(--pvf-radius-full);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.parent-page-fees .pvf-overdue-tag {
  display: inline-block;
  background: var(--pvf-danger-light);
  color: #991b1b;
  font-size: var(--pvf-font-size-xs);
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--pvf-radius-full);
  margin-left: .35rem;
}
.parent-page-fees .pvf-fee-amounts { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; margin-bottom: 1rem; }
.parent-page-fees .pvf-amount-box { background: var(--pvf-gray-50); border-radius: var(--pvf-radius-md); padding: .75rem 1rem; border: 1px solid var(--pvf-gray-200); }
.parent-page-fees .pvf-amount-box.pvf-ab-paid    { border-color: var(--pvf-success); background: var(--pvf-success-light); }
.parent-page-fees .pvf-amount-box.pvf-ab-balance { border-color: var(--pvf-danger); background: var(--pvf-danger-light); }
.parent-page-fees .pvf-ab-label { font-size: var(--pvf-font-size-xs); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--pvf-gray-500); margin-bottom: .25rem; }
.parent-page-fees .pvf-ab-val   { font-size: var(--pvf-font-size-lg); font-weight: 800; color: var(--text); }
.parent-page-fees .pvf-amount-box.pvf-ab-paid .pvf-ab-val    { color: var(--pvf-success-dark); }
.parent-page-fees .pvf-amount-box.pvf-ab-balance .pvf-ab-val { color: #991b1b; }
.parent-page-fees .pvf-progress-wrap { margin-bottom: 1rem; }
.parent-page-fees .pvf-progress-meta { display: flex; justify-content: space-between; font-size: var(--pvf-font-size-xs); color: var(--pvf-gray-500); margin-bottom: .35rem; font-weight: 600; }
.parent-page-fees .pvf-progress-bar  { height: 8px; background: var(--pvf-gray-200); border-radius: var(--pvf-radius-full); overflow: hidden; }
.parent-page-fees .pvf-progress-fill { height: 100%; background: var(--pvf-primary); border-radius: var(--pvf-radius-full); transition: width .5s ease; }
.parent-page-fees .pvf-fee-actions { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.parent-page-fees .pvf-fee-actions .pvf-paid-msg { color: var(--pvf-success-dark); font-weight: 700; font-size: 1.3rem; }
.parent-page-fees .pvf-pay-history { margin-top: 1rem; border-top: 1px solid var(--pvf-gray-200); padding-top: 1rem; }
.parent-page-fees .pvf-pay-history[hidden] { display: none; }
.parent-page-fees .pvf-pay-history-head { display: flex; justify-content: flex-end; margin-bottom: .5rem; }
.parent-page-fees .pvf-pdf-link {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .35rem .8rem;
  background: var(--primary-dark);
  color: var(--white);
  border-radius: 5px;
  font-size: 1.27rem;
  font-weight: 600;
  text-decoration: none;
}
.parent-page-fees .pvf-pay-hist-table { width: 100%; border-collapse: collapse; font-size: var(--pvf-font-size-sm); }
.parent-page-fees .pvf-pay-hist-table th { background: var(--pvf-gray-100); color: var(--pvf-gray-700); padding: 7px 10px; text-align: left; font-weight: 600; font-size: var(--pvf-font-size-xs); }
.parent-page-fees .pvf-pay-hist-table td { padding: 7px 10px; border-bottom: 1px solid var(--pvf-gray-100); color: var(--pvf-gray-700); font-size: var(--pvf-font-size-xs); }
.parent-page-fees .pvf-pay-hist-table tr:last-child td { border-bottom: none; }
.parent-page-fees .pvf-edit-link {
  display: inline-block;
  padding: 3px 8px;
  background: var(--pvf-warning);
  color: var(--white);
  border-radius: 4px;
  font-size: 1.3rem;
  text-decoration: none;
  font-weight: 700;
}
.parent-page-fees .pvf-receipt-link {
  display: inline-block;
  padding: 3px 8px;
  background: var(--primary-dark);
  color: var(--white);
  border-radius: 4px;
  font-size: 1.27rem;
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
}
.parent-page-fees .pvf-empty-state { text-align: center; padding: 4rem 2rem; }
.parent-page-fees .pvf-empty-state .pvf-es-icon { font-size: 4.8rem; margin-bottom: 1rem; }
.parent-page-fees .pvf-empty-state h3 { color: var(--pvf-gray-700); }
.parent-page-fees .pvf-empty-state p { color: var(--pvf-gray-500); }
@media (max-width: 768px) {
  .parent-page-fees .pvf-filter-strip { flex-direction: column; }
  .parent-page-fees .pvf-pay-table th, .parent-page-fees .pvf-pay-table td { padding: var(--pvf-spacing-sm) var(--pvf-spacing-md); font-size: var(--pvf-font-size-xs); }
}
@media (max-width: 640px) {
  .parent-page-fees .pvf-summary-grid  { grid-template-columns: 1fr; }
  .parent-page-fees .pvf-fee-amounts   { grid-template-columns: 1fr; }
  .parent-page-fees .pvf-fee-card-top  { flex-direction: column; }
}

/* =====================================================
   SECTION 76: PORTAL (Student Portal) — HARMONIZED
   Aligned with parent payment system design language
   ===================================================== */
.portal-wrap {
  --portal-primary:       var(--green-800);
  --portal-primary-dark:  var(--green-900);
  --portal-primary-soft:  var(--green-100);
  --portal-secondary:     var(--primary-deeper);
  --portal-secondary-dk:  #122a45;
  --portal-accent:        var(--amber-500);
  --portal-bg:            var(--gray-50);
  --portal-card:          var(--white);
  --portal-text:          var(--gray-900);
  --portal-text-muted:    var(--gray-600);
  --portal-border:        var(--gray-200);
  --portal-success:       var(--green-500);
  --portal-success-soft:  var(--green-100);
  --portal-danger:        #ef4444;
  --portal-danger-soft:   #fee2e2;
  --portal-warning:       var(--amber-500);
  --portal-warning-soft:  var(--amber-100);
  --portal-info:          var(--primary-light);
  --portal-info-soft:     var(--primary-mist);
  --portal-shadow-sm:     0 2px 6px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --portal-shadow-md:     0 4px 12px rgba(0,0,0,.08), 0 1px 4px rgba(0,0,0,.04);
  --portal-shadow-lg:     0 10px 28px rgba(0,0,0,.10), 0 2px 8px rgba(0,0,0,.05);
  --portal-radius-sm:     8px;
  --portal-radius-md:     10px;
  --portal-radius-lg:     16px;
  --portal-radius-full:   9999px;
  --portal-transition:    250ms cubic-bezier(.4,0,.2,1);

  background: var(--portal-bg);
  min-height: 100vh;
  padding-bottom: 60px;
  overflow-x: hidden;
  width: 100%;
  font-family: var(--font-body);
}
.portal-wrap *, .portal-wrap *::before, .portal-wrap *::after { box-sizing: border-box; }

/* ── BANNER ──────────────────────────────────────── */
.portal-wrap .p-banner {
  background: linear-gradient(135deg, var(--portal-secondary) 0%, var(--portal-secondary-dk) 100%);
  color: var(--white);
  padding: 32px 0 60px;
  width: 100%;
  overflow: hidden;
  position: relative;
}
.portal-wrap .p-banner::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 90% 20%, rgba(245,158,11,.15) 0%, transparent 40%),
    radial-gradient(circle at 10% 80%, rgba(16,185,129,.12) 0%, transparent 40%);
  pointer-events: none;
}
.portal-wrap .p-banner .container {
  width: 100% !important;
  max-width: 1200px !important;
  padding-left: 15px !important;
  padding-right: 15px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  position: static !important;
  position: relative !important;
  z-index: 1;
}
.portal-wrap .p-banner-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

/* ── AVATAR ──────────────────────────────────────── */
.portal-wrap .p-avatar-wrap {
  position: relative;
  flex: 0 0 auto;
  width: 88px;
  height: 88px;
  transform: none !important;
  left: auto !important;
  right: auto !important;
}
.portal-wrap .p-avatar-wrap img {
  max-width: none !important;
  width: 88px !important;
  height: 88px !important;
  float: none !important;
  position: static !important;
  display: block !important;
}
.portal-wrap .p-avatar-img {
  width: 88px; height: 88px;
  border-radius: 50%;
  border: 4px solid rgba(255,255,255,.4);
  object-fit: cover;
  display: block;
  max-width: none !important;
  min-width: 88px !important;
  box-shadow: 0 4px 14px rgba(0,0,0,.18);
}
.portal-wrap .p-avatar-init {
  width: 88px; height: 88px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--portal-primary) 0%, var(--portal-primary-dark) 100%);
  border: 4px solid rgba(255,255,255,.4);
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem; font-weight: 800; color: var(--white);
  box-shadow: 0 4px 14px rgba(0,0,0,.18);
}
.portal-wrap .p-status-dot {
  position: absolute; bottom: 4px; right: 4px;
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 3px solid var(--white);
  box-shadow: 0 2px 6px rgba(0,0,0,.25);
}
.portal-wrap .p-status-active   { background: var(--portal-success); }
.portal-wrap .p-status-inactive { background: var(--portal-danger); }

/* ── BANNER INFO ─────────────────────────────────── */
.portal-wrap .p-banner-info { flex: 1 1 0; min-width: 0; }
.portal-wrap .p-banner-info h2 {
  margin: 0 0 6px;
  font-size: clamp(18px, 4vw, 26px);
  font-weight: 800;
  line-height: 1.2;
  color: var(--white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.01em;
}
.portal-wrap .p-banner-info > p {
  margin: 0 0 12px;
  font-size: 1.3rem;
  opacity: .88;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--white);
}
.portal-wrap .p-banner-info > p strong { color: var(--portal-accent); font-weight: 700; }

.portal-wrap .p-banner-badges { display: flex; gap: 8px; flex-wrap: wrap; }
.portal-wrap .p-chip {
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.3);
  border-radius: var(--portal-radius-full);
  padding: 4px 12px;
  font-size: 1.3rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  color: var(--white);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: all var(--portal-transition);
}
.portal-wrap .p-chip:hover { background: rgba(255,255,255,.26); }
.portal-wrap .p-chip.inactive { background: rgba(239,68,68,.28); border-color: rgba(239,68,68,.55); }
.portal-wrap .p-status-chip-dot { font-size: 7px; }

/* ── STATS ROW ───────────────────────────────────── */
.portal-wrap .p-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  padding: 0 15px;
  max-width: 1200px;
  margin: -40px auto 0;
  position: relative;
  z-index: 2;
}
.portal-wrap .p-stat-card {
  background: var(--portal-card);
  border-radius: var(--portal-radius-md);
  padding: 16px 14px;
  box-shadow: var(--portal-shadow-md);
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 3px solid transparent;
  min-width: 0;
  transition: all var(--portal-transition);
}
.portal-wrap .p-stat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--portal-shadow-lg);
}
.portal-wrap .p-stat-card.sc-fee      { border-top-color: var(--portal-danger); }
.portal-wrap .p-stat-card.sc-att      { border-top-color: var(--portal-success); }
.portal-wrap .p-stat-card.sc-badge    { border-top-color: var(--portal-warning); }
.portal-wrap .p-stat-card.sc-announce { border-top-color: var(--portal-info); }
.portal-wrap .p-stat-icon {
  width: 44px; height: 44px;
  border-radius: var(--portal-radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
  flex-shrink: 0;
}
.portal-wrap .p-stat-icon.si-fee      { background: var(--portal-danger-soft); }
.portal-wrap .p-stat-icon.si-att      { background: var(--portal-success-soft); }
.portal-wrap .p-stat-icon.si-badge    { background: var(--portal-warning-soft); }
.portal-wrap .p-stat-icon.si-announce { background: var(--portal-info-soft); }
.portal-wrap .p-stat-text { min-width: 0; flex: 1; }
.portal-wrap .p-stat-val {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--portal-text);
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.portal-wrap .p-stat-lbl {
  font-size: 1.2rem;
  color: var(--portal-text-muted);
  font-weight: 700;
  margin-top: 3px;
  text-transform: uppercase;
  letter-spacing: .05em;
}

/* ── MAIN CONTENT ────────────────────────────────── */
.portal-wrap .p-content { padding-top: 24px; padding-bottom: 40px; }
.portal-wrap .container.p-content {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 15px;
  padding-right: 15px;
}

.portal-wrap .p-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--portal-text-muted);
  font-size: 1.3rem;
  font-weight: 600;
  text-decoration: none;
  margin-bottom: 16px;
  padding: 8px 14px;
  border-radius: var(--portal-radius-sm);
  background: var(--portal-card);
  border: 1px solid var(--portal-border);
  transition: all var(--portal-transition);
  box-shadow: var(--portal-shadow-sm);
}
.portal-wrap .p-back:hover {
  color: var(--portal-primary);
  border-color: var(--portal-primary);
  text-decoration: none;
  transform: translateX(-2px);
}

.portal-wrap .p-inactive-banner {
  background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
  border: 2px solid #fca5a5;
  border-radius: var(--portal-radius-md);
  padding: 16px 18px;
  margin-bottom: 20px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 1.3rem;
  color: #7f1d1d;
  box-shadow: var(--portal-shadow-sm);
}
.portal-wrap .p-inactive-banner strong { font-size: 1.5rem; display: block; margin-bottom: 4px; color: #991b1b; }
.portal-wrap .p-inactive-banner .p-inactive-icon { font-size: 2.4rem; flex-shrink: 0; }

/* ── LAYOUT ──────────────────────────────────────── */
.portal-wrap .p-layout { display: grid; grid-template-columns: 240px 1fr; gap: 24px; align-items: start; }

/* ── SIDEBAR / PROFILE ───────────────────────────── */
.portal-wrap .p-sidebar { position: sticky; top: 20px; }
.portal-wrap .p-profile-card {
  background: var(--portal-card);
  border-radius: var(--portal-radius-md);
  box-shadow: var(--portal-shadow-sm);
  overflow: hidden;
  border: 1px solid var(--portal-border);
}
.portal-wrap .p-profile-head {
  background: linear-gradient(135deg, var(--portal-secondary) 0%, var(--portal-secondary-dk) 100%);
  color: var(--white);
  padding: 14px 16px;
  font-size: 1.4rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.02em;
}
.portal-wrap .p-profile-body { padding: 4px 16px 8px; }
.portal-wrap .p-info-row {
  display: flex;
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1px solid var(--portal-border);
  font-size: 1.3rem;
  align-items: center;
}
.portal-wrap .p-info-row:last-child { border-bottom: none; }
.portal-wrap .p-info-lbl {
  color: var(--portal-text-muted);
  font-weight: 600;
  width: 100px;
  flex-shrink: 0;
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.portal-wrap .p-info-val {
  color: var(--portal-text);
  font-weight: 500;
  flex: 1;
  min-width: 0;
  word-break: break-word;
  font-size: 1.3rem;
  text-align: right;
}
.portal-wrap .p-info-val strong { color: var(--portal-primary); font-weight: 700; }

/* ── MODULES / SECTIONS ──────────────────────────── */
.portal-wrap .p-main { min-width: 0; }
.portal-wrap .p-modules-wrap { margin-bottom: 26px; }
.portal-wrap .p-section-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--portal-text);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: -0.01em;
}
.portal-wrap .p-section-title::before {
  content: '';
  display: block;
  width: 5px; height: 20px;
  background: linear-gradient(180deg, var(--portal-primary) 0%, var(--portal-primary-dark) 100%);
  border-radius: 3px;
  flex-shrink: 0;
}

.portal-wrap .p-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}
.portal-wrap .p-module {
  background: var(--portal-card);
  border-radius: var(--portal-radius-md);
  padding: 18px 12px;
  text-align: center;
  box-shadow: var(--portal-shadow-sm);
  text-decoration: none;
  color: var(--portal-text);
  transition: all var(--portal-transition);
  border: 2px solid transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 110px;
  position: relative;
  overflow: hidden;
}
.portal-wrap .p-module::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--portal-primary-soft) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--portal-transition);
  pointer-events: none;
}
.portal-wrap .p-module:hover {
  transform: translateY(-4px);
  box-shadow: var(--portal-shadow-md);
  border-color: var(--portal-primary);
  color: var(--portal-text);
  text-decoration: none;
}
.portal-wrap .p-module:hover::before { opacity: 1; }
.portal-wrap .p-module-icon {
  width: 50px; height: 50px;
  border-radius: var(--portal-radius-sm);
  margin: 0 auto 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.4rem;
  position: relative;
  z-index: 1;
  transition: transform var(--portal-transition);
}
.portal-wrap .p-module:hover .p-module-icon { transform: scale(1.1); }
.portal-wrap .p-module-icon.p-wallet {
  background: linear-gradient(135deg, var(--portal-secondary) 0%, var(--portal-accent) 100%);
  font-size: 2.4rem;
  width: 52px; height: 52px;
  border-radius: 12px;
  color: var(--white);
}
.portal-wrap .p-module-label {
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.3;
  position: relative;
  z-index: 1;
}

/* Module icon color variants */
.portal-wrap .mi-orange { background: var(--portal-primary-soft); }
.portal-wrap .mi-blue   { background: var(--primary-mist); }
.portal-wrap .mi-green  { background: var(--green-50); }
.portal-wrap .mi-red    { background: #fef2f2; }
.portal-wrap .mi-purple { background: #faf5ff; }
.portal-wrap .mi-teal   { background: #f0fdfa; }
.portal-wrap .mi-yellow { background: #fefce8; }
.portal-wrap .mi-dark   { background: var(--gray-50); }

/* ── RESTRICTED CARD ─────────────────────────────── */
.portal-wrap .p-restricted-card {
  background: var(--portal-card);
  border-radius: var(--portal-radius-lg);
  padding: 5rem 2.5rem;
  text-align: center;
  box-shadow: var(--portal-shadow-sm);
  border: 1px solid var(--portal-border);
}
.portal-wrap .p-restricted-card .p-restricted-icon { font-size: 5.2rem; margin-bottom: 1.4rem; opacity: .7; }
.portal-wrap .p-restricted-card h3 { font-size: 1.8rem; color: var(--portal-text); margin: 0 0 1rem; font-weight: 800; }
.portal-wrap .p-restricted-card p { color: var(--portal-text-muted); font-size: 1.4rem; margin: 0; line-height: 1.5; }

/* ── RESPONSIVE ──────────────────────────────────── */
@media (max-width: 1024px) {
  .portal-wrap .p-stats-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .portal-wrap .p-layout { grid-template-columns: 1fr; gap: 18px; }
  .portal-wrap .p-sidebar { position: static; }
  .portal-wrap .p-stats-row { grid-template-columns: repeat(2, 1fr); }
  .portal-wrap .p-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
}
@media (max-width: 600px) {
  .portal-wrap .p-banner { padding: 22px 0 70px; }
  .portal-wrap .p-avatar-wrap    { width: 64px !important; height: 64px !important; }
  .portal-wrap .p-avatar-wrap img { width: 64px !important; height: 64px !important; }
  .portal-wrap .p-avatar-img,
  .portal-wrap .p-avatar-init {
    width: 64px !important; height: 64px !important;
    min-width: 64px !important;
    border-width: 3px;
    font-size: 2.2rem;
  }
  .portal-wrap .p-status-dot { width: 14px; height: 14px; }
  .portal-wrap .p-banner-inner { gap: 14px; }
  .portal-wrap .p-banner-info h2  { font-size: 1.7rem; }
  .portal-wrap .p-banner-info > p { font-size: 1.2rem; }
  .portal-wrap .p-chip            { font-size: 1.2rem; padding: 3px 10px; }
  .portal-wrap .p-stats-row { grid-template-columns: 1fr 1fr; gap: 10px; padding: 0 12px; margin-top: -50px; }
  .portal-wrap .p-stat-card  { padding: 12px 10px; gap: 10px; }
  .portal-wrap .p-stat-icon  { width: 36px; height: 36px; font-size: 1.7rem; }
  .portal-wrap .p-stat-val   { font-size: 1.6rem; }
  .portal-wrap .p-stat-lbl   { font-size: 1.1rem; }
  .portal-wrap .p-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .portal-wrap .p-module { padding: 14px 8px; min-height: 100px; }
  .portal-wrap .p-module-icon { width: 42px; height: 42px; font-size: 2rem; margin-bottom: 8px; }
  .portal-wrap .p-module-label { font-size: 1.2rem; }
  .portal-wrap .p-info-lbl { width: 88px; font-size: 1.1rem; }
  .portal-wrap .p-info-val { font-size: 1.2rem; }
  .portal-wrap .p-section-title { font-size: 1.4rem; }
  .portal-wrap .p-back { font-size: 1.2rem; padding: 6px 12px; }
}
@media (max-width: 360px) {
  .portal-wrap .p-banner-inner { flex-wrap: wrap; gap: 10px; }
  .portal-wrap .p-banner-info h2 { white-space: normal; font-size: 1.5rem; }
  .portal-wrap .p-grid { grid-template-columns: repeat(2, 1fr); }
  .portal-wrap .p-stats-row { grid-template-columns: 1fr; }
}

/* ── PRINT ───────────────────────────────────────── */
@media print {
  .portal-wrap .p-banner { background: var(--white) !important; color: #000 !important; padding: 0 !important; }
  .portal-wrap .p-banner::before { display: none !important; }
  .portal-wrap .p-banner-info h2, .portal-wrap .p-banner-info > p, .portal-wrap .p-chip { color: #000 !important; }
  .portal-wrap .p-stats-row { box-shadow: none; margin-top: 0; }
  .portal-wrap .p-back, .portal-wrap .p-module, .portal-wrap .p-restricted-card { display: none !important; }
  .portal-wrap .p-layout { grid-template-columns: 1fr; }
  .portal-wrap .p-sidebar { display: none; }
  .portal-wrap .p-stat-card { box-shadow: none; border: 1px solid var(--gray-300); }
}

/* =====================================================
   PORTAL LINK BUTTONS — Buttons that navigate TO portal.php
   Used in:
     - student_practice_hub.php  (.hub-back)
     - student_wallet_card.php   (.wc-action-btn.portal / .wc-action-btn)
   ===================================================== */
.wc-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin: 24px auto;
  max-width: 600px;
  padding: 0 15px;
}
.wc-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: var(--portal-radius-md);
  font-size: 1.4rem;
  font-weight: 700;
  text-decoration: none;
  font-family: var(--font-body);
  cursor: pointer;
  transition: all var(--portal-transition);
  border: 2px solid transparent;
  min-width: 160px;
  box-shadow: var(--portal-shadow-sm);
  line-height: 1.2;
}
.wc-action-btn i { font-size: 1.6rem; }
.wc-action-btn:hover {
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: var(--portal-shadow-md);
}
.wc-action-btn:active { transform: translateY(0); }
.wc-action-btn:focus-visible {
  outline: 3px solid var(--portal-primary);
  outline-offset: 2px;
}

/* "My Portal" → primary brand color */
.wc-action-btn.portal {
  background: linear-gradient(135deg, var(--portal-primary) 0%, var(--portal-primary-dark) 100%);
  color: var(--white);
  border-color: var(--portal-primary);
  box-shadow: 0 4px 14px var(--shadow-green);
}
.wc-action-btn.portal:hover {
  color: var(--white);
  background: linear-gradient(135deg, var(--portal-primary-dark) 0%, var(--portal-primary) 100%);
  box-shadow: 0 8px 22px rgba(12,84,48,.35);
  border-color: var(--portal-primary-dark);
}

/* "Print Card" → secondary outlined */
.wc-action-btn.print {
  background: var(--portal-card);
  color: var(--portal-secondary);
  border-color: var(--portal-border);
}
.wc-action-btn.print:hover {
  color: var(--portal-primary);
  border-color: var(--portal-primary);
  background: var(--portal-primary-soft);
}

@media (max-width: 480px) {
  .wc-actions { flex-direction: column; align-items: stretch; }
  .wc-action-btn { width: 100%; min-width: 0; padding: 12px 20px; font-size: 1.3rem; }
}

/* Refined hub-back (student_practice_hub back-to-portal link) */
.hub-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--portal-text-muted);
  font-size: 1.3rem;
  font-weight: 600;
  text-decoration: none;
  margin-bottom: 1.6rem;
  margin-top: 1.6rem;
  padding: 8px 14px;
  border-radius: var(--portal-radius-sm);
  background: var(--portal-card);
  border: 1px solid var(--portal-border);
  transition: all var(--portal-transition);
  box-shadow: var(--portal-shadow-sm);
}
.hub-back:hover {
  color: var(--portal-primary);
  border-color: var(--portal-primary);
  text-decoration: none;
  transform: translateX(-2px);
}

/* =====================================================
   STUDENT WALLET CARD (student_wallet_card.php)
   .wc-* class family — credit-card style store wallet
   ===================================================== */
.wc-wrap {
  min-height: 100vh;
  background:
    radial-gradient(circle at 20% 0%, rgba(12,84,48,.08) 0%, transparent 40%),
    radial-gradient(circle at 80% 100%, rgba(30,58,95,.08) 0%, transparent 40%),
    linear-gradient(180deg, var(--gray-50) 0%, var(--gray-100) 100%);
  padding: 32px 16px 80px;
  font-family: var(--font-body);
}
.wc-wrap .container { margin: 0 auto; }

/* ── The card itself ── */
.wc-card {
  position: relative;
  width: 100%;
  max-width: 460px;
  margin: 0 auto 24px;
  border-radius: 22px;
  padding: 26px 26px 22px;
  color: var(--white);
  background:
    linear-gradient(135deg, var(--green-800) 0%, var(--green-700) 35%, var(--primary-dark) 100%);
  box-shadow:
    0 20px 50px rgba(12,84,48,.35),
    0 6px 18px rgba(0,0,0,.18),
    inset 0 1px 0 rgba(255,255,255,.08);
  overflow: hidden;
  isolation: isolate;
  font-family: var(--font-body);
}
.wc-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 90% 0%, rgba(255,255,255,.18) 0%, transparent 35%),
    radial-gradient(circle at 0% 100%, rgba(255,255,255,.10) 0%, transparent 30%);
  pointer-events: none;
  z-index: 0;
}
.wc-card::after {
  content: "";
  position: absolute;
  right: -40px;
  top: -40px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(255,255,255,.05);
  z-index: 0;
}
.wc-card > * { position: relative; z-index: 1; }

.wc-suspended-banner {
  background: rgba(239,68,68,.95);
  color: var(--white);
  padding: 10px 16px;
  border-radius: 10px;
  margin: -8px -8px 16px;
  font-size: 1.3rem;
  font-weight: 600;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,.2);
}

/* ── Card top: school + label ── */
.wc-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
  gap: 12px;
}
.wc-school {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}
.wc-school img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  background: rgba(255,255,255,.95);
  border-radius: 8px;
  padding: 4px;
  flex-shrink: 0;
}
.wc-school-name {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}
.wc-card-label {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  background: rgba(255,255,255,.14);
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,.18);
  white-space: nowrap;
  flex-shrink: 0;
}

/* ── Card body: avatar + name + balance ── */
.wc-card-body { margin-bottom: 18px; }
.wc-card-info-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}
.wc-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--amber-500) 0%, var(--amber-500) 100%);
  color: var(--green-800);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -.02em;
  flex-shrink: 0;
  border: 3px solid rgba(255,255,255,.95);
  box-shadow: 0 4px 12px rgba(0,0,0,.18);
  overflow: hidden;
  text-transform: uppercase;
}
.wc-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.wc-name {
  font-size: 1.7rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.01em;
  margin-bottom: 2px;
  word-break: break-word;
}
.wc-class {
  font-size: 1.15rem;
  font-weight: 500;
  opacity: .85;
  line-height: 1.2;
}
.wc-matric {
  font-size: 1.05rem;
  font-weight: 600;
  font-family: 'Courier New', ui-monospace, monospace;
  letter-spacing: .04em;
  opacity: .75;
  margin-top: 2px;
}

/* ── Balance + QR row ── */
.wc-balance-section {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  padding-top: 18px;
  border-top: 1px dashed rgba(255,255,255,.18);
}
.wc-bal-lbl {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  opacity: .75;
  margin-bottom: 6px;
}
.wc-bal-amt {
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 2px 8px rgba(0,0,0,.18);
}
.wc-bal-amt.wc-bal-ok    { color: var(--green-100); }
.wc-bal-amt.wc-bal-low   { color: var(--amber-200); }
.wc-bal-amt.wc-bal-zero  { color: #fecaca; }
.wc-qr-wrap {
  background: var(--white);
  padding: 6px;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(0,0,0,.25);
  flex-shrink: 0;
}
.wc-qr-wrap img {
  display: block;
  width: 76px;
  height: 76px;
  object-fit: contain;
}

/* ── Card bottom: chips ── */
.wc-card-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px dashed rgba(255,255,255,.18);
}
.wc-card-chip {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: .04em;
  opacity: .85;
  line-height: 1.3;
}
.wc-card-chip span {
  display: block;
  font-size: 1.2rem;
  font-weight: 700;
  margin-top: 2px;
  opacity: 1;
}

/* ── Stats grid (3 cols) ── */
.wc-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  max-width: 460px;
  margin: 0 auto 24px;
  padding: 0;
  list-style: none;
}
.wc-stat {
  background: var(--white);
  border-radius: 14px;
  padding: 16px 10px;
  text-align: center;
  box-shadow: 0 4px 14px rgba(0,0,0,.06);
  border: 1px solid rgba(0,0,0,.05);
  transition: transform .2s ease, box-shadow .2s ease;
}
.wc-stat:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,.08);
}
.wc-stat-val {
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  margin-bottom: 4px;
  word-break: break-all;
}
.wc-stat-lbl {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gray-500);
}

/* ── Transaction history ── */
.wc-txn-section {
  max-width: 460px;
  margin: 0 auto;
  background: var(--white);
  border-radius: 16px;
  padding: 18px 18px 6px;
  box-shadow: 0 4px 14px rgba(0,0,0,.06);
  border: 1px solid rgba(0,0,0,.05);
}
.wc-txn-section h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gray-800);
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.wc-empty {
  text-align: center;
  padding: 32px 16px;
  color: var(--gray-400);
  font-size: 1.3rem;
  font-weight: 500;
}
.wc-empty i { display: block; margin-bottom: 8px; }
.wc-txn-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #f1f3f5;
}
.wc-txn-item:last-child { border-bottom: none; }
.wc-txn-left {
  flex: 1;
  min-width: 0;
}
.wc-txn-desc {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--gray-800);
  line-height: 1.3;
  margin-bottom: 3px;
  word-break: break-word;
}
.wc-txn-desc i { opacity: .7; }
.wc-txn-meta {
  font-size: 1.1rem;
  color: var(--gray-500);
  font-weight: 500;
  line-height: 1.2;
}
.wc-txn-right {
  text-align: right;
  flex-shrink: 0;
}
.wc-txn-amt {
  font-size: 1.5rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
  margin-bottom: 2px;
}
.wc-txn-amt.credit { color: var(--green-800); }
.wc-txn-amt.debit  { color: #dc2626; }
.wc-txn-bal {
  font-size: 1.05rem;
  color: var(--gray-400);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 480px) {
  .wc-card { padding: 22px 20px 18px; border-radius: 18px; }
  .wc-avatar { width: 56px; height: 56px; font-size: 1.5rem; }
  .wc-name { font-size: 1.5rem; }
  .wc-bal-amt { font-size: 2.2rem; }
  .wc-qr-wrap img { width: 64px; height: 64px; }
  .wc-school-name { font-size: 1.15rem; }
  .wc-card-label { font-size: 1rem; padding: 4px 8px; }
  .wc-stats { gap: 6px; }
  .wc-stat { padding: 12px 6px; }
  .wc-stat-val { font-size: 1.35rem; }
  .wc-stat-lbl { font-size: 1rem; }
  .wc-txn-amt { font-size: 1.3rem; }
}
@media print {
  .wc-wrap { background: var(--white); padding: 0; }
  .wc-card {
    box-shadow: none;
    border: 2px solid var(--green-800);
    page-break-inside: avoid;
  }
  .wc-stats, .wc-txn-section { box-shadow: none; }
  .wc-actions { display: none; }
}

/* =====================================================
   72. CERTIFICATE TEMPLATES (admin_certificate_templates.php)
   .tpl-* class family
   ===================================================== */
.tpl-wrap { max-width: 1400px; margin: 2rem auto; padding: 2rem; }
.tpl-alert { padding: 1.5rem; margin-bottom: 2rem; border-radius: var(--r-sm); }
.tpl-alert-success { background: var(--green-tint-300); color: var(--green-ink); border: 1px solid var(--green-tint-400); }
.tpl-alert-error   { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
.tpl-page-header {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 3rem;
}
.tpl-page-header h2 { margin: 0; color: var(--text); font-size: 2.2rem; font-family: var(--font-heading); }
.tpl-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); gap: 2.5rem;
}
.tpl-card {
  background: var(--white); border-radius: 1.2rem; padding: 2rem;
  box-shadow: var(--shadow-card); transition: transform var(--t-base), box-shadow var(--t-base);
}
.tpl-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.tpl-preview {
  background: var(--bg-alt); border: 5px solid var(--border-c, var(--primary));
  border-radius: var(--r-md); padding: 3rem; text-align: center;
  min-height: 200px; display: flex; flex-direction: column; justify-content: center; margin-bottom: 2rem;
}
.tpl-preview-title {
  font-size: 2.4rem; font-weight: 700; color: var(--text);
  margin-bottom: 1.5rem; font-family: var(--font-heading);
}
.tpl-preview-body { font-size: 1.4rem; color: var(--text-secondary); line-height: 1.6; }
.tpl-info { margin-bottom: 1.5rem; }
.tpl-name { font-size: 1.8rem; font-weight: 700; color: var(--text); margin-bottom: 0.5rem; }
.tpl-type {
  font-size: 1.3rem; color: var(--text-secondary); background: var(--bg-alt);
  padding: 0.4rem 1rem; border-radius: var(--r-sm); display: inline-block;
}
.tpl-actions { display: flex; gap: 1rem; }
.tpl-btn {
  padding: 1rem 2rem; border: none; border-radius: var(--r-sm);
  cursor: pointer; font-size: 1.4rem; font-weight: 700; transition: all var(--t-base);
  text-decoration: none; display: inline-block; text-align: center;
}
.tpl-btn-primary { background: var(--primary); color: var(--white); }
.tpl-btn-primary:hover { background: var(--primary-dark); }
.tpl-btn-success { background: var(--green-500); color: var(--white); flex: 1; }
.tpl-btn-success:hover { background: var(--green-500); }
.tpl-btn-danger  { background: #e74c3c; color: var(--white); padding: 1rem 1.5rem; }
.tpl-btn-danger:hover  { background: #c0392b; }
.tpl-btn-block { width: 100%; }
.tpl-empty {
  grid-column: 1 / -1; text-align: center; padding: 8rem 2rem; color: var(--text-secondary);
}
.tpl-empty-icon { font-size: 8rem; }
.tpl-modal { display: none; position: fixed; inset: 0; z-index: 1000; background: rgba(0,0,0,.5); overflow-y: auto; }
.tpl-modal-content {
  background: var(--white); margin: 3rem auto; padding: 3rem;
  border-radius: var(--r-md); width: 90%; max-width: 700px;
}
.tpl-modal-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 2.5rem; padding-bottom: 1.5rem; border-bottom: 2px solid var(--primary);
}
.tpl-modal-header h3 { margin: 0; color: var(--text); font-size: 1.8rem; }
.tpl-close { font-size: 2.8rem; font-weight: 700; color: var(--text-secondary); cursor: pointer; line-height: 1; }
.tpl-close:hover { color: var(--text); }
.tpl-form-group { margin-bottom: 2rem; }
.tpl-form-group label { display: block; margin-bottom: 0.5rem; font-weight: 700; color: var(--text); font-size: 1.3rem; }
.tpl-form-control {
  width: 100%; padding: 1rem; border: 1px solid var(--border); border-radius: var(--r-sm);
  font-size: 1.4rem; box-sizing: border-box; background: var(--white); color: var(--text);
}
.tpl-form-control:focus { outline: none; border-color: var(--primary); }
textarea.tpl-form-control { resize: vertical; }
.tpl-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.tpl-modal.show { display: block; }
@media (max-width: 768px) {
  .tpl-grid { grid-template-columns: 1fr; }
  .tpl-form-row { grid-template-columns: 1fr; }
  .tpl-page-header { flex-direction: column; gap: 1.5rem; align-items: flex-start; }
}

/* =====================================================
   73. SEND NOTIFICATIONS (admin_create_notification.php)
   .notif-* class family
   ===================================================== */
.notif-wrap { max-width: 1200px; margin: 2rem auto; padding: 2rem; }
.notif-page-header { margin-bottom: 2.5rem; }
.notif-page-header h2 {
  color: var(--text); margin: 0 0 0.5rem 0; font-family: var(--font-heading); font-size: 2.2rem;
}
.notif-page-header p { color: var(--text-secondary); margin: 0; }
.notif-card {
  background: var(--white); border-radius: 1.2rem; padding: 2.5rem; margin-bottom: 2.5rem;
  box-shadow: var(--shadow-card);
}
.notif-card h3 {
  margin-top: 0; color: var(--text); border-bottom: 2px solid var(--primary);
  padding-bottom: 1rem; margin-bottom: 2rem; font-size: 1.8rem;
}
.notif-list { max-height: 800px; overflow-y: auto; }
.notif-item {
  background: var(--bg-alt); border-radius: var(--r-md); padding: 2rem;
  margin-bottom: 1.5rem; border-left: 5px solid var(--primary);
}
.notif-item.type-success { border-left-color: var(--green-500); }
.notif-item.type-warning { border-left-color: var(--amber-500); }
.notif-item.type-urgent  { border-left-color: #e74c3c; }
.notif-item-header { display: flex; align-items: flex-start; gap: 1.5rem; margin-bottom: 1.5rem; }
.notif-item-icon { font-size: 3.2rem; flex-shrink: 0; }
.notif-item-details { flex: 1; }
.notif-item-title { font-size: 1.8rem; font-weight: 700; color: var(--text); margin-bottom: 0.5rem; }
.notif-item-meta {
  display: flex; gap: 1.5rem; flex-wrap: wrap; font-size: 1.3rem; color: var(--text-secondary);
}
.notif-item-msg {
  background: var(--white); padding: 1.5rem; border-radius: var(--r-sm);
  margin-bottom: 1.5rem; line-height: 1.6; color: var(--text);
}
.notif-stats { display: flex; gap: 2rem; font-size: 1.3rem; margin-bottom: 1rem; flex-wrap: wrap; }
.notif-progress {
  background: var(--border-light); height: 0.8rem; border-radius: var(--r-sm); overflow: hidden;
}
.notif-progress-fill {
  background: var(--green-500); height: 100%;
  transition: width var(--t-base);
}
.notif-del-btn {
  background: #e74c3c; color: var(--white); padding: 0.8rem 1.2rem;
  border-radius: var(--r-sm); text-decoration: none; font-size: 1.6rem; transition: all var(--t-base);
}
.notif-del-btn:hover { background: #c0392b; }
.notif-empty { text-align: center; padding: 5rem 2rem; color: var(--text-secondary); }
@media (max-width: 768px) {
  .notif-form-row { grid-template-columns: 1fr; }
  .notif-item-header { flex-direction: column; }
  .notif-stats { flex-direction: column; gap: 0.5rem; }
}

/* =====================================================
   74. GENERATE CERTIFICATE (admin_generate_certificate.php)
   .cert-gen-* class family
   ===================================================== */
.cert-gen-wrap { max-width: 1400px; margin: 2rem auto; padding: 2rem; }
.cert-gen-page-header { margin-bottom: 3rem; }
.cert-gen-page-header h2 {
  margin: 1rem 0; color: var(--text); font-family: var(--font-heading); font-size: 2.2rem;
}
.cert-gen-back {
  color: var(--primary); text-decoration: none; font-weight: 700;
  display: inline-block; margin-bottom: 1rem; font-size: 1.3rem;
}
.cert-gen-back:hover { text-decoration: underline; }
.cert-gen-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.cert-gen-form-section .notif-card,
.cert-gen-preview-section .notif-card { margin: 0; }
.cert-gen-preview {
  background: var(--white); border: 1rem solid var(--border-c, var(--primary));
  border-radius: 1rem; padding: 4rem; min-height: 600px; box-shadow: 0 0 20px rgba(0,0,0,0.1);
}
.cert-gen-header { text-align: center; margin-bottom: 3rem; }
.cert-gen-school-name {
  font-size: 2.8rem; font-weight: 700; color: var(--text);
  font-family: var(--font-heading); margin-bottom: 1rem;
}
.cert-gen-title {
  font-size: 3.2rem; font-weight: 700; color: var(--primary);
  font-family: var(--font-heading); letter-spacing: 2px;
}
.cert-gen-body { text-align: center; margin-bottom: 4rem; }
.cert-gen-presented { font-size: 1.6rem; color: var(--text-secondary); font-style: italic; margin-bottom: 1.5rem; }
.cert-gen-student-name {
  font-size: 3.6rem; font-weight: 700; color: var(--text);
  font-family: var(--font-heading); margin-bottom: 2rem;
  border-bottom: 2px solid var(--primary); padding-bottom: 1rem; display: inline-block;
}
.cert-gen-award-title { font-size: 2rem; font-weight: 700; color: var(--primary); margin-bottom: 2rem; }
.cert-gen-text { font-size: 1.6rem; line-height: 1.8; color: var(--text); margin-bottom: 1.5rem; }
.cert-gen-desc { font-size: 1.4rem; color: var(--text-secondary); font-style: italic; margin-bottom: 1.5rem; }
.cert-gen-footer-text { font-size: 1.4rem; color: var(--green-500); font-weight: 700; margin-top: 2rem; }
.cert-gen-footer {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 2rem;
  margin-top: 4rem; align-items: end;
}
.cert-gen-sig-section, .cert-gen-seal-section, .cert-gen-date-section { text-align: center; }
.cert-gen-sig-line { border-top: 2px solid var(--text); margin-bottom: 0.5rem; }
.cert-gen-sig-name { font-weight: 700; color: var(--text); font-size: 1.4rem; }
.cert-gen-sig-title { font-size: 1.3rem; color: var(--text-secondary); }
.cert-gen-seal {
  width: 100px; height: 100px; border: 3px solid var(--primary);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  margin: 0 auto;
}
.cert-gen-seal-text { font-size: 1.3rem; font-weight: 700; color: var(--primary); text-align: center; }
.cert-gen-date-label { font-size: 1.3rem; color: var(--text-secondary); margin-bottom: 0.5rem; }
.cert-gen-date-value {
  font-weight: 700; color: var(--text); font-size: 1.4rem;
  border-top: 2px solid var(--text); padding-top: 0.5rem;
}
@media (max-width: 1200px) {
  .cert-gen-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .cert-gen-footer { grid-template-columns: 1fr; gap: 3rem; }
  .cert-gen-form-row { grid-template-columns: 1fr; }
}

/* =====================================================
   75. BULK DOWNLOAD ID CARDS (bulk_download_id_cards.php)
   .bd-* class family
   ===================================================== */
.bd-wrap, .bd-wrap * { box-sizing: border-box; }
.bd-wrap {
  background: var(--bg);
  min-height: 80vh; padding: 0 0 8rem;
  color: var(--text);
  font-family: var(--font-body);
}
.bd-hero {
  background: var(--secondary);
  border-bottom: 1px solid var(--border);
  padding: 5.6rem 3.2rem 4.4rem; text-align: center;
  position: relative; overflow: hidden;
}
.bd-hero::before {
  content: ''; position: absolute; inset: 0;
  background: var(--primary-glow);
  pointer-events: none;
}
.bd-hero .badge {
  display: inline-flex; align-items: center; gap: 0.6rem;
  background: var(--primary-glow); border: 1px solid var(--primary);
  color: var(--primary);
  font-size: 1.3rem; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase;
  padding: 0.5rem 1.4rem; border-radius: var(--r-full); margin-bottom: 2rem;
  position: relative;
}
.bd-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 900;
  color: var(--white); margin: 0 0 1.4rem; line-height: 1.15;
  position: relative;
}
.bd-hero p { color: var(--text-secondary); font-size: 1.5rem; max-width: 48rem; margin: 0 auto 2.4rem; line-height: 1.6; position: relative; }
.bd-inner { max-width: 1100px; margin: 0 auto; padding: 4rem 2.4rem; }
.bd-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; margin-bottom: 3.6rem; }
.bd-stat {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 2.4rem 2.2rem; display: flex; align-items: center; gap: 1.6rem;
  position: relative; overflow: hidden; transition: transform var(--t-base), box-shadow var(--t-base);
}
.bd-stat:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.bd-stat::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--primary);
  border-radius: var(--r-lg) var(--r-lg) 0 0;
}
.bd-stat.green::before { background: var(--green-500); }
.bd-stat.gold::before  { background: var(--accent); }
.bd-stat-icon { font-size: 2.8rem; flex-shrink: 0; }
.bd-stat-num  { font-size: 3.2rem; font-weight: 800; color: var(--text); line-height: 1; margin-bottom: 0.3rem; letter-spacing: -1px; }
.bd-stat-lbl  { font-size: 1.3rem; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }
.bd-grid { display: grid; grid-template-columns: 1fr 360px; gap: 2.4rem; align-items: start; }
.bd-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--r-lg); overflow: hidden;
}
.bd-card-header {
  padding: 2.4rem 2.8rem 1.8rem; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 1rem;
}
.bd-card-header h3 { font-size: 1.6rem; font-weight: 700; color: var(--text); margin: 0; }
.bd-card-header .dot {
  width: 0.8rem; height: 0.8rem; border-radius: 50%; background: var(--primary); flex-shrink: 0;
}
.bd-card-body { padding: 2.8rem; }
.bd-form-group { margin-bottom: 2.2rem; }
.bd-form-group:last-child { margin-bottom: 0; }
.bd-form-group label {
  display: block; font-size: 1.3rem; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase;
  color: var(--text-secondary); margin-bottom: 0.8rem;
}
.bd-form-group label .req { color: var(--accent); }
.bd-form-group .opt-note { color: var(--text-secondary); font-weight: 400; text-transform: none; letter-spacing: 0; }
.bd-type-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.bd-type-option { position: relative; }
.bd-type-option input[type="radio"] { position: absolute; opacity: 0; width: 0; height: 0; }
.bd-type-option label {
  display: flex; flex-direction: column; align-items: center; gap: 0.6rem;
  padding: 1.6rem 1rem; background: var(--bg-alt);
  border: 1.5px solid var(--border); border-radius: 1.2rem; cursor: pointer;
  transition: all var(--t-base); text-align: center; text-transform: none; letter-spacing: 0;
  font-size: 1.3rem; font-weight: 600; color: var(--text);
}
.bd-type-option label .ti { font-size: 2.4rem; line-height: 1; }
.bd-type-option input:checked + label {
  border-color: var(--primary); background: var(--primary-soft); color: var(--primary-dark);
  box-shadow: 0 0 0 3px var(--primary-glow);
}
.bd-type-option label:hover { border-color: var(--primary); }
.bd-control {
  width: 100%; background: var(--white); border: 1.5px solid var(--border);
  border-radius: 1rem; color: var(--text);
  font-family: inherit; font-size: 1.4rem; padding: 1.1rem 1.4rem;
  outline: none; transition: border-color var(--t-base), box-shadow var(--t-base);
}
.bd-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-glow); }
select.bd-control {
  appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%2395a5a6' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3E%3C/svg%3E");
  background-position: right 1.2rem center; background-repeat: no-repeat;
  background-size: 1.8rem; padding-right: 3.8rem; cursor: pointer;
}
select.bd-control option { background: var(--white); color: var(--text); }
.bd-template-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(7.8rem, 1fr)); gap: 0.8rem; }
.bd-tmpl-opt { position: relative; }
.bd-tmpl-opt input[type="radio"] { position: absolute; opacity: 0; width: 0; height: 0; }
.bd-tmpl-opt label {
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem; cursor: pointer;
  border-radius: 1rem; overflow: hidden; border: 2px solid var(--border); transition: all var(--t-base);
  text-transform: none; letter-spacing: 0; font-size: 1.3rem; color: var(--text-secondary);
  font-weight: 600; background: var(--white);
}
.bd-tmpl-opt label img { width: 100%; aspect-ratio: 3/2; object-fit: cover; display: block; background: var(--gray-900); }
.bd-tmpl-opt label span { padding: 0.3rem 0.4rem 0.5rem; text-align: center; line-height: 1.2; }
.bd-tmpl-opt input:checked + label { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-glow); }
.bd-tmpl-opt label:hover { border-color: var(--primary); }
.bd-btn-download {
  width: 100%; background: var(--primary); color: var(--white); border: none;
  border-radius: 1.2rem; padding: 1.6rem; font-family: inherit;
  font-size: 1.5rem; font-weight: 700; letter-spacing: 0.5px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 1rem;
  transition: all var(--t-base); box-shadow: var(--shadow-md); margin-top: 2.8rem;
}
.bd-btn-download:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.bd-btn-download:active { transform: translateY(0); }
.bd-btn-download:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.bd-tips { display: flex; flex-direction: column; gap: 1.6rem; }
.bd-tip-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 2.2rem 2.2rem 1.8rem;
}
.bd-tip-card h4 {
  font-size: 1.3rem; font-weight: 700; color: var(--primary); margin: 0 0 1.4rem;
  text-transform: uppercase; letter-spacing: 1px;
  display: flex; align-items: center; gap: 0.7rem;
}
.bd-tip-item {
  display: flex; align-items: flex-start; gap: 1rem; padding: 0.8rem 0;
  border-bottom: 1px solid var(--border-light); font-size: 1.3rem;
  color: var(--text-secondary); line-height: 1.5;
}
.bd-tip-item:last-child { border-bottom: none; padding-bottom: 0; }
.bd-tip-icon { font-size: 1.6rem; flex-shrink: 0; margin-top: 0.1rem; }
.bd-nav-links { display: flex; flex-wrap: wrap; gap: 1rem; }
.bd-nav-link {
  display: inline-flex; align-items: center; gap: 0.6rem;
  background: var(--bg-alt); border: 1px solid var(--border); color: var(--text);
  text-decoration: none; font-size: 1.3rem; font-weight: 600;
  padding: 0.8rem 1.4rem; border-radius: var(--r-sm); transition: all var(--t-base);
}
.bd-nav-link:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-soft); }
.bd-spinner {
  display: inline-block; width: 1.6rem; height: 1.6rem;
  border: 2px solid rgba(255,255,255,0.3); border-top-color: var(--white);
  border-radius: 50%; animation: bd-spin 0.7s linear infinite; flex-shrink: 0;
}
@keyframes bd-spin { to { transform: rotate(360deg); } }
.bd-zero { text-align: center; padding: 4rem; color: var(--text-secondary); font-size: 1.4rem; }
.bd-zero .zi { font-size: 4.4rem; margin-bottom: 1.2rem; }
.bd-alert {
  padding: 1.4rem 1.8rem; border-radius: 1rem; font-size: 1.3rem; font-weight: 500;
  display: flex; align-items: center; gap: 1rem; margin-bottom: 2rem; border-left: 4px solid;
}
.bd-alert-warn { background: var(--amber-100); border-color: var(--accent); color: var(--amber-700); }
.bd-alert-warn a { color: var(--amber-700); }
@media (max-width: 900px) { .bd-grid { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .bd-stats { grid-template-columns: 1fr 1fr; } }
@media (max-width: 400px) { .bd-type-grid { grid-template-columns: 1fr; } }

/* =====================================================
   76. CHANGE CLASS (change-class3.php)
   .cc-* class family
   ===================================================== */
.cc-input-group { position: relative; margin-bottom: 2rem; }
.cc-input-group .tpl-form-control {
  border: 2px solid var(--border); border-radius: var(--r-sm);
  padding: 1.2rem 1.5rem 1.2rem 4rem; font-size: 1.6rem;
  transition: all var(--t-base);
}
.cc-input-group .tpl-form-control:focus {
  border-color: var(--primary); box-shadow: 0 0 0 0.2rem var(--primary-glow);
}
.cc-input-prepend {
  position: absolute; left: 1rem; top: 50%;
  transform: translateY(-50%); z-index: 10; color: var(--text-muted);
}
.cc-student-item {
  display: flex; justify-content: space-between; align-items: center;
  background-color: var(--bg-alt); border-radius: var(--r-sm);
  padding: 1.5rem; margin-bottom: 1.5rem; box-shadow: var(--shadow-sm);
  transition: background-color var(--t-base);
}
.cc-student-item:hover { background-color: var(--white); box-shadow: var(--shadow-card); }
.cc-student-details { display: flex; flex-direction: column; }
.cc-student-details span { margin-bottom: 0.5rem; color: var(--text-secondary); font-size: 1.3rem; }
.cc-class-update { display: flex; align-items: center; }
.cc-new-class-input { margin-right: 1rem; width: 15rem; }
.cc-update-class-btn {
  background-color: var(--primary); color: var(--white);
  border: none; border-radius: var(--r-sm);
  padding: 0.8rem 1.5rem; transition: background-color var(--t-base);
  font-size: 1.3rem; font-weight: 600; cursor: pointer;
}
.cc-update-class-btn:hover { background-color: var(--primary-dark); }
@media (max-width: 768px) {
  .cc-student-item { flex-direction: column; align-items: flex-start; }
  .cc-class-update { width: 100%; flex-direction: column; align-items: stretch; }
  .cc-new-class-input { margin-right: 0; margin-bottom: 1rem; width: 100%; }
}

/* =====================================================
   77. RESULT UPLOAD STATS (check-upload2.php)
   .rstat-* class family
   ===================================================== */
.rstat-item {
  padding: 1.2rem 0; border-bottom: 1px solid var(--border);
  font-size: 1.6rem; color: var(--text);
}
.rstat-item:last-child { border-bottom: none; }
.rstat-class-name { color: #900000; font-weight: 500; }
.rstat-total-summary {
  background: var(--secondary); color: var(--white);
  padding: 2.5rem; border-radius: 1rem; margin-bottom: 3rem;
  text-align: center; box-shadow: var(--shadow-md);
}
.rstat-total-count {
  color: var(--accent); font-size: 3.2rem; font-weight: 700;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}
.rstat-session-term {
  color: var(--white); font-weight: 600;
  background: rgba(255,255,255,0.2); padding: 0.2rem 0.8rem;
  border-radius: var(--r-sm); display: inline-block;
}
.rstat-container {
  background: var(--white); padding: 2.5rem; border-radius: var(--r-md);
  box-shadow: var(--shadow-card);
}
.rstat-section-group {
  margin-bottom: 3rem; background: var(--bg-alt); padding: 2rem;
  border-radius: var(--r-md); border-left: 4px solid #900000;
}
.rstat-section-title {
  color: #900000; font-size: 1.8rem; font-weight: 700;
  margin-bottom: 1.5rem; text-transform: uppercase; letter-spacing: 0.5px;
}
.rstat-section-total {
  background: var(--white); padding: 1rem 1.5rem; border-radius: var(--r-sm);
  margin-top: 1rem; border-left: 3px solid var(--green-500);
}
.rstat-section-total-amount { color: var(--green-500); font-weight: 700; }
.rstat-no-results { color: var(--text-muted); font-style: italic; padding: 1rem; }
@media print {
  .rstat-no-print { display: none !important; }
  .rstat-total-summary { background: var(--secondary) !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* =====================================================
   78. DOWNLOAD ALL ID CARDS ERROR (download_all_id_cards.php)
   .dlerr-* class family
   ===================================================== */
.dlerr-page {
  font-family: var(--font-body); background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  min-height: 100vh; margin: 0; padding: 2rem; box-sizing: border-box;
}
.dlerr-box {
  background: var(--white); border-radius: 1.2rem;
  padding: 4rem 4.8rem; max-width: 520px; width: 100%;
  text-align: center; box-shadow: var(--shadow-lg);
}
.dlerr-icon { font-size: 4.8rem; margin-bottom: 1.6rem; }
.dlerr-box h2 { color: var(--text); margin: 0 0 1rem; font-size: 1.4rem; }
.dlerr-box p { color: var(--text-secondary); margin: 0 0 2.4rem; line-height: 1.6; font-size: 1.3rem; }
.dlerr-box a {
  display: inline-block; background: var(--primary); color: var(--white);
  text-decoration: none; padding: 1rem 2.4rem; border-radius: var(--r-md);
  font-weight: 600; font-size: 1.3rem; transition: background var(--t-base);
}
.dlerr-box a:hover { background: var(--primary-dark); }

/* =====================================================
   80. NOTIFICATION BELL (notification_bell_component.php)
   .nbell-* class family
   ===================================================== */
.nbell-container { position: relative; display: inline-block; }
.nbell {
  position: relative; cursor: pointer; padding: 0.8rem;
  border-radius: 50%; transition: all var(--t-base);
}
.nbell:hover { background: var(--bg-alt); }
.nbell-icon { font-size: 2.4rem; display: block; }
.nbell-badge {
  position: absolute; top: 0; right: 0; background: #e74c3c; color: var(--white);
  font-size: 1.3rem; font-weight: 700; padding: 0.2rem 0.6rem;
  border-radius: 1rem; min-width: 1.8rem; text-align: center;
}
.nbell-dropdown {
  position: absolute; top: 100%; right: 0; width: 38rem;
  max-height: 50rem; background: var(--white); border-radius: var(--r-md);
  box-shadow: var(--shadow-lg); display: none; z-index: 1000; margin-top: 1rem;
}
.nbell-dropdown.show { display: block; }
.nbell-dropdown-header {
  padding: 1.5rem 2rem; border-bottom: 1px solid var(--border-light);
  display: flex; justify-content: space-between; align-items: center;
}
.nbell-dropdown-header h4 { margin: 0; color: var(--text); font-size: 1.6rem; }
.nbell-view-all { color: var(--primary); text-decoration: none; font-size: 1.3rem; font-weight: 700; }
.nbell-view-all:hover { text-decoration: underline; }
.nbell-dropdown-body { max-height: 40rem; overflow-y: auto; }
.nbell-loading { text-align: center; padding: 3rem; color: var(--text-muted); }
.nbell-item {
  padding: 1.5rem 2rem; border-bottom: 1px solid var(--bg-alt);
  cursor: pointer; transition: all var(--t-base);
  display: flex; gap: 1.2rem;
}
.nbell-item:hover { background: var(--bg-alt); }
.nbell-item.unread { background: var(--primary-mist); }
.nbell-item-icon { font-size: 2.4rem; flex-shrink: 0; }
.nbell-item-content { flex: 1; min-width: 0; }
.nbell-item-title { font-weight: 700; color: var(--text); font-size: 1.4rem; margin-bottom: 0.3rem; }
.nbell-item-msg {
  color: var(--text-secondary); font-size: 1.3rem; margin-bottom: 0.5rem;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.nbell-item-time { color: #95a5a6; font-size: 1.3rem; }
.nbell-empty { text-align: center; padding: 4rem 2rem; color: var(--text-secondary); }
.nbell-empty-icon { font-size: 4.8rem; margin-bottom: 1rem; }
@media (max-width: 768px) {
  .nbell-dropdown { width: calc(100vw - 4rem); right: -2rem; max-width: 38rem; }
}

/* =====================================================
   81. PAYSTACK CALLBACK ERROR (paystack_payment_callback.php)
   .pystk-* class family
   ===================================================== */
.pystk-page {
  font-family: var(--font-body); background: #fee2e2;
  display: flex; align-items: center; justify-content: center;
  min-height: 100vh; margin: 0; padding: 2rem; box-sizing: border-box;
}
.pystk-box {
  background: var(--white); border-radius: 1.6rem;
  padding: 4rem 3.6rem; max-width: 50rem; width: 100%;
  text-align: center; box-shadow: var(--shadow-lg);
}
.pystk-box h2 { color: #dc2626; margin: 0 0 1.6rem; font-size: 1.4rem; }
.pystk-box p { color: var(--text); line-height: 1.7; margin: 0 0 2rem; font-size: 1.3rem; }
.pystk-btn {
  display: inline-block; padding: 1.2rem 2.8rem; background: var(--primary);
  color: var(--white); border-radius: 1rem; text-decoration: none;
  font-weight: 600; font-size: 1.3rem; transition: background var(--t-base);
}
.pystk-btn:hover { background: var(--primary-dark); }

/* =====================================================
   82. QR ATTENDANCE SCANNER (scan_qr_attendance.php)
   .qscan-* class family
   ===================================================== */
.qscan-wrap { max-width: 900px; margin: 2rem auto; padding: 2rem; }
.qscan-card {
  background: var(--white); border-radius: var(--r-md);
  padding: 2rem; box-shadow: var(--shadow-md);
}
.qscan-card h2 {
  color: var(--text); margin-bottom: 1.5rem; text-align: center;
  font-size: 1.7rem;
}
.qscan-area {
  background: var(--bg-alt); border-radius: var(--r-md);
  padding: 1.5rem; margin-bottom: 2rem;
}
.qscan-manual {
  background: var(--bg-alt); padding: 1.5rem;
  border-radius: var(--r-md); margin-bottom: 2rem;
}
.qscan-manual h4 { color: var(--text); margin-bottom: 1rem; font-size: 1.6rem; }
.qscan-form-control {
  width: 100%; padding: 1.5rem 1rem; border: 1px solid var(--border);
  border-radius: var(--r-md); font-size: 1.6rem; box-sizing: border-box;
  margin-bottom: 1.5rem; font-family: monospace; background: var(--white);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.qscan-form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-glow); }
.qscan-btn {
  padding: 1.5rem 2rem; border: none; border-radius: var(--r-md);
  cursor: pointer; font-size: 1.6rem; font-weight: 600;
  transition: background-color var(--t-base), transform var(--t-fast), box-shadow var(--t-fast);
  background: var(--primary); color: var(--white); width: 100%;
}
.qscan-btn:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.qscan-today { margin-top: 2rem; }
.qscan-today h4 { color: var(--text); margin-bottom: 1rem; font-size: 1.6rem; }
.qscan-table {
  width: 100%; border-collapse: collapse; background: var(--white);
  border-radius: var(--r-md); overflow: hidden; box-shadow: var(--shadow-sm);
}
.qscan-table th {
  background: var(--text); color: var(--white);
  padding: 1rem; text-align: left; font-weight: 600; font-size: 1.4rem;
}
.qscan-table td {
  padding: 1rem; border-bottom: 1px solid var(--border);
  font-size: 1.4rem; color: var(--text);
}
.qscan-table tr:hover { background: var(--bg-alt); }
.qscan-status {
  padding: 0.5rem 1rem; border-radius: var(--r-full);
  font-size: 1.3rem; font-weight: 600; display: inline-block;
  background: var(--primary-soft); color: var(--primary-dark);
}
.qscan-empty { text-align: center; padding: 3rem 2rem; color: var(--text-muted); font-size: 1.4rem; }
@media (max-width: 768px) {
  .qscan-card { padding: 1.5rem; }
  .qscan-table th, .qscan-table td { padding: 0.8rem; font-size: 1.3rem; }
  .qscan-btn { padding: 1rem; }
}

/* =====================================================
   83. SELECT TEMPLATE â€” STUDENT (select_template.php)
   .stpl-* class family
   ===================================================== */
.stpl-body {
  background: var(--secondary); font-family: var(--font-body);
  color: var(--text); min-height: 100vh;
}
.stpl-header {
  background: var(--secondary);
  border-bottom: 1px solid var(--border);
  padding: 4.8rem 3.2rem 3.6rem; text-align: center;
  position: relative; overflow: hidden;
}
.stpl-header::before {
  content: ''; position: absolute; inset: 0;
  background: var(--accent-glow, rgba(201,168,76,0.12));
  pointer-events: none;
}
.stpl-header .badge {
  display: inline-block; background: rgba(201,168,76,0.12);
  border: 1px solid var(--accent); color: var(--accent);
  font-size: 1.3rem; font-weight: 600; letter-spacing: 2.5px; text-transform: uppercase;
  padding: 0.5rem 1.4rem; border-radius: var(--r-full); margin-bottom: 1.8rem;
  position: relative;
}
.stpl-header h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 700;
  color: var(--white); margin-bottom: 1.2rem; line-height: 1.2;
  position: relative;
}
.stpl-header p { color: var(--text-secondary); font-size: 1.5rem; max-width: 46rem; margin: 0 auto; position: relative; }
.stpl-pill {
  display: inline-flex; align-items: center; gap: 0.8rem;
  background: rgba(201,168,76,0.08); border: 1px solid var(--accent);
  color: var(--accent); font-size: 1.3rem; font-weight: 600;
  padding: 0.6rem 1.6rem; border-radius: var(--r-full); margin-top: 2rem; letter-spacing: 0.5px;
  position: relative;
}
.stpl-pill span { color: #f0d080; }
.stpl-stats-bar {
  background: var(--bg-alt); border-bottom: 1px solid var(--border);
  padding: 1.4rem 3.2rem; display: flex; align-items: center;
  justify-content: space-between; gap: 1.6rem; flex-wrap: wrap;
}
.stpl-stats-bar .count { font-size: 1.3rem; color: var(--text-secondary); }
.stpl-stats-bar .count strong { color: var(--text); }
.stpl-search {
  display: flex; align-items: center; background: var(--white);
  border: 1px solid var(--border); border-radius: var(--r-md);
  padding: 0.8rem 1.4rem; gap: 0.8rem; min-width: 22rem;
}
.stpl-search input {
  background: none; border: none; outline: none; color: var(--text);
  font-size: 1.3rem; font-family: var(--font-body); width: 100%;
}
.stpl-search input::placeholder { color: var(--text-muted); }
.stpl-search svg { color: var(--text-muted); flex-shrink: 0; }
.stpl-wrap { max-width: 1300px; margin: 0 auto; padding: 4rem 2.4rem 8rem; }
.stpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(30rem, 1fr)); gap: 2.4rem; }
.stpl-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 1.4rem; overflow: hidden; cursor: pointer;
  transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
  display: flex; flex-direction: column; position: relative;
  animation: stpl-fade 0.4s ease both;
}
.stpl-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}
.stpl-card:hover .stpl-overlay { opacity: 1; }
.stpl-card:hover .stpl-card-img { transform: scale(1.04); }
@keyframes stpl-fade { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.stpl-card-num {
  position: absolute; top: 1.2rem; left: 1.2rem;
  background: rgba(14,14,18,0.75); backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.12); color: var(--white);
  font-size: 1.3rem; font-weight: 700; width: 2.8rem; height: 2.8rem;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  z-index: 2; letter-spacing: 0;
}
.stpl-card-preview { position: relative; overflow: hidden; height: 20rem; background: var(--gray-900); }
.stpl-card-img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform var(--t-slow); }
.stpl-overlay {
  position: absolute; inset: 0; background: rgba(14,14,18,0.6);
  backdrop-filter: blur(3px); display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity var(--t-base);
}
.stpl-overlay span {
  background: var(--accent); color: #0e0e12;
  font-family: var(--font-heading); font-weight: 700; font-size: 1.3rem;
  padding: 1rem 2.4rem; border-radius: var(--r-md); letter-spacing: 0.3px;
}
.stpl-card-body { padding: 1.8rem 1.8rem 2rem; flex: 1; display: flex; flex-direction: column; gap: 1rem; }
.stpl-card-name { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 700; color: var(--text); }
.stpl-card-tags { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.stpl-tag {
  background: rgba(201,168,76,0.08); border: 1px solid rgba(201,168,76,0.2);
  color: var(--accent); font-size: 1.3rem; font-weight: 500;
  padding: 0.3rem 1rem; border-radius: var(--r-full);
}
.stpl-card-footer { margin-top: auto; padding-top: 1.2rem; border-top: 1px solid var(--border-light); }
.stpl-select-btn {
  width: 100%; background: var(--accent); color: #0e0e12;
  border: none; border-radius: var(--r-md); padding: 1.1rem;
  font-family: var(--font-heading); font-size: 1.3rem; font-weight: 700;
  cursor: pointer; letter-spacing: 0.3px;
  transition: opacity var(--t-base), transform var(--t-fast);
}
.stpl-select-btn:hover { opacity: 0.88; transform: scale(0.98); }
.stpl-no-results {
  display: none; grid-column: 1 / -1; text-align: center;
  padding: 6rem 0; color: var(--text-secondary);
}
.stpl-no-results svg { opacity: 0.3; margin-bottom: 1.6rem; }
.stpl-no-results p { font-size: 1.5rem; }
.stpl-card:nth-child(1)  { animation-delay: 0s; }
.stpl-card:nth-child(2)  { animation-delay: 0.04s; }
.stpl-card:nth-child(3)  { animation-delay: 0.08s; }
.stpl-card:nth-child(4)  { animation-delay: 0.12s; }
.stpl-card:nth-child(5)  { animation-delay: 0.16s; }
.stpl-card:nth-child(6)  { animation-delay: 0.20s; }
.stpl-card:nth-child(7)  { animation-delay: 0.24s; }
.stpl-card:nth-child(8)  { animation-delay: 0.28s; }
.stpl-card:nth-child(9)  { animation-delay: 0.32s; }
.stpl-card:nth-child(10) { animation-delay: 0.36s; }
.stpl-card:nth-child(11) { animation-delay: 0.40s; }
.stpl-card:nth-child(12) { animation-delay: 0.44s; }
.stpl-card:nth-child(13) { animation-delay: 0.48s; }
.stpl-card:nth-child(14) { animation-delay: 0.52s; }
.stpl-card:nth-child(15) { animation-delay: 0.56s; }
.stpl-card:nth-child(16) { animation-delay: 0.60s; }
.stpl-card:nth-child(17) { animation-delay: 0.64s; }

/* =====================================================
   STUDENT-VIEW2.PHP
   ===================================================== */
.stu-view-wrap {
  background: var(--bg);
  min-height: 100vh;
  padding-bottom: 50px;
}
.stu-view-hero {
  background: var(--secondary);
  padding: 40px 0 20px;
  position: relative;
  overflow: hidden;
}
.stu-view-hero::before {
  content: '';
  position: absolute;
  width: 350px;
  height: 350px;
  background: rgba(255,255,255,.05);
  border-radius: 50%;
  top: -120px;
  right: -100px;
}
.stu-view-hero::after {
  content: '';
  position: absolute;
  width: 250px;
  height: 250px;
  background: rgba(255,255,255,.04);
  border-radius: 50%;
  bottom: -120px;
  left: -100px;
}
.stu-view-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2px;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
}
.stu-view-breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.stu-view-breadcrumb a {
  color: rgba(255,255,255,.85);
  text-decoration: none;
  font-size: 1.3rem;
  font-weight: 600;
}
.stu-view-breadcrumb a:hover { color: var(--white); }
.stu-view-breadcrumb span { color: rgba(255,255,255,.55); }
.stu-view-badge {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.15);
  color: var(--white);
  padding: 8px 14px;
  border-radius: var(--r-full);
  font-size: 1.3rem;
  font-weight: 700;
}
.stu-view-profile-card {
  background: var(--white);
  margin-top: -55px;
  position: relative;
  z-index: 5;
  border-radius: 22px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.stu-view-profile-top {
  padding: 35px;
  display: flex;
  align-items: center;
  gap: 25px;
  flex-wrap: wrap;
}
.stu-view-avatar {
  width: 120px;
  height: 120px;
  border-radius: 22px;
  object-fit: cover;
  border: 5px solid var(--white);
  box-shadow: var(--shadow-md);
  background: var(--bg);
}
.stu-view-name-wrap { flex: 1; min-width: 250px; }
.stu-view-name-wrap h2 {
  font-size: 3rem;
  color: var(--text);
  margin-bottom: 8px;
  font-weight: 800;
}
.stu-view-sub {
  color: var(--text-secondary);
  font-size: 1.4rem;
  margin-bottom: 18px;
}
.stu-view-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.stu-view-tag {
  padding: 9px 14px;
  border-radius: var(--r-full);
  font-size: 1.3rem;
  font-weight: 700;
}
.stu-view-tag-primary { background: #ede9fe; color: #5b21b6; }
.stu-view-tag-success { background: var(--green-100); color: var(--green-700); }
.stu-view-tag-warning { background: var(--primary-soft); color: var(--primary-dark); }
.stu-view-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 28px;
}
.stu-view-stat-card {
  background: var(--white);
  border-radius: 18px;
  padding: 22px;
  box-shadow: var(--shadow-sm);
  transition: var(--t-base);
}
.stu-view-stat-card:hover { transform: translateY(-4px); }
.stu-view-stat-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  font-size: 2rem;
}
.stu-view-stat-icon-1 { background: var(--primary-mist); color: var(--primary); }
.stu-view-stat-icon-2 { background: var(--green-100); color: var(--green-500); }
.stu-view-stat-icon-3 { background: var(--primary-soft); color: var(--primary-dark); }
.stu-view-stat-icon-4 { background: #ede9fe; color: #7c3aed; }
.stu-view-stat-label {
  color: var(--text-secondary);
  font-size: 1.3rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.stu-view-stat-value {
  color: var(--text);
  font-size: 1.8rem;
  font-weight: 800;
}
.stu-view-content { margin-top: 28px; }
.stu-view-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.stu-view-info-card {
  background: var(--white);
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.stu-view-info-head {
  background: var(--text);
  color: var(--white);
  padding: 18px 22px;
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}
.stu-view-info-body { padding: 10px 22px 18px; }
.stu-view-info-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid var(--bg);
}
.stu-view-info-row:last-child { border-bottom: none; }
.stu-view-info-label {
  color: var(--text-secondary);
  font-size: 1.3rem;
  font-weight: 700;
  width: 45%;
}
.stu-view-info-value {
  color: var(--text);
  font-size: 1.4rem;
  font-weight: 600;
  width: 55%;
  text-align: right;
  word-break: break-word;
}
@media (max-width: 992px) {
  .stu-view-stats { grid-template-columns: repeat(2, 1fr); }
  .stu-view-info-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .stu-view-hero { padding: 30px 0 80px; }
  .stu-view-profile-top {
    padding: 25px 18px;
    flex-direction: column;
    align-items: flex-start;
  }
  .stu-view-avatar { width: 95px; height: 95px; }
  .stu-view-name-wrap h2 { font-size: 2.2rem; }
  .stu-view-stats { grid-template-columns: 1fr 1fr; gap: 12px; }
  .stu-view-stat-card { padding: 16px; }
  .stu-view-stat-value { font-size: 1.5rem; }
  .stu-view-info-body { padding: 8px 16px 16px; }
  .stu-view-info-row { flex-direction: column; gap: 5px; }
  .stu-view-info-label,
  .stu-view-info-value { width: 100%; text-align: left; }
}

/* =====================================================
   STUDENT_BADGES.PHP
   ===================================================== */
.stu-badges-wrap {
  max-width: 1200px;
  margin: var(--spacing-lg, 1.5rem) auto;
  padding: 1.5rem;
  --bd-primary: var(--primary);
  --bd-primary-hover: var(--primary-dark);
  --bd-primary-light: var(--primary-mist);
  --bd-primary-dark: var(--primary-dark);
  --bd-secondary: var(--gray-500);
  --bd-secondary-light: var(--gray-50);
  --bd-secondary-dark: var(--gray-600);
  --bd-success: var(--green-500);
  --bd-success-hover: var(--green-600);
  --bd-success-light: var(--green-100);
  --bd-success-dark: var(--green-700);
  --bd-warning: var(--amber-500);
  --bd-warning-hover: var(--amber-600);
  --bd-warning-light: var(--amber-100);
  --bd-danger: #ef4444;
  --bd-danger-hover: #dc2626;
  --bd-danger-light: #fee2e2;
  --bd-white: var(--white);
  --bd-gray-50: var(--gray-50);
  --bd-gray-100: var(--gray-100);
  --bd-gray-200: var(--gray-200);
  --bd-gray-300: var(--gray-300);
  --bd-gray-400: var(--gray-400);
  --bd-gray-500: var(--gray-500);
  --bd-gray-600: var(--gray-600);
  --bd-gray-700: var(--gray-700);
  --bd-gray-800: var(--gray-800);
  --bd-gray-900: var(--gray-900);
  --bd-radius-md: 0.5rem;
  --bd-radius-lg: 1.5rem;
  --bd-radius-xl: 1rem;
  --bd-radius-full: 9999px;
  --bd-shadow-md: 0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -1px rgba(0,0,0,.06);
  --bd-transition-base: 250ms ease-in-out;
}
.stu-badges-wrap .stu-badges-header {
  background-color: var(--bd-primary);
  color: var(--bd-white);
  padding: 3rem;
  border-radius: var(--bd-radius-lg);
  margin-bottom: 2rem;
  text-align: center;
}
.stu-badges-wrap .stu-badges-header-title {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 1rem;
}
.stu-badges-wrap .stu-badges-header-subtitle {
  font-size: 1.7rem;
  opacity: 0.9;
}
.stu-badges-wrap .stu-badges-progress {
  background-color: var(--bd-white);
  padding: 2rem;
  border-radius: var(--bd-radius-lg);
  margin-bottom: 2rem;
  box-shadow: var(--bd-shadow-md);
  text-align: center;
}
.stu-badges-wrap .stu-badges-progress-text {
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--bd-gray-800);
  margin-bottom: 1rem;
}
.stu-badges-wrap .stu-badges-progress-bar {
  background-color: var(--bd-gray-200);
  height: 30px;
  border-radius: 15px;
  overflow: hidden;
  margin-bottom: 1rem;
}
.stu-badges-wrap .stu-badges-progress-fill {
  background-color: var(--bd-primary);
  height: 100%;
  width: 0;
  transition: width var(--bd-transition-base);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bd-white);
  font-weight: bold;
}
.stu-badges-wrap .stu-badges-card {
  background-color: var(--bd-white);
  border-radius: var(--bd-radius-lg);
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--bd-shadow-md);
}
.stu-badges-wrap .stu-badges-card h3 {
  margin-top: 0;
  color: var(--bd-gray-800);
  border-bottom: 2px solid var(--bd-primary);
  padding-bottom: 1rem;
  font-size: 1.8rem;
}
.stu-badges-wrap .stu-badges-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}
.stu-badges-wrap .stu-badge-card {
  background-color: var(--bd-gray-50);
  border: 3px solid var(--bd-gray-200);
  border-radius: var(--bd-radius-lg);
  padding: 1.5rem;
  text-align: center;
  transition: transform var(--bd-transition-base), box-shadow var(--bd-transition-base);
  position: relative;
}
.stu-badges-wrap .stu-badge-card.earned {
  border-color: var(--bd-warning);
  background-color: var(--bd-warning-light);
}
.stu-badges-wrap .stu-badge-card.earned:hover {
  transform: scale(1.05) rotate(2deg);
  box-shadow: 0 10px 25px rgba(243,156,18,.3);
}
.stu-badges-wrap .stu-badge-card.locked { opacity: 0.6; }
.stu-badges-wrap .stu-badge-icon {
  font-size: 7.2rem;
  margin-bottom: 1rem;
  filter: grayscale(100%);
}
.stu-badges-wrap .stu-badge-card.earned .stu-badge-icon {
  filter: none;
  animation: stuBadgeBounce 1s ease-in-out;
}
@keyframes stuBadgeBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.stu-badges-wrap .stu-badge-name {
  font-size: 1.7rem;
  font-weight: bold;
  color: var(--bd-gray-800);
  margin-bottom: 1rem;
}
.stu-badges-wrap .stu-badge-desc {
  font-size: 1.6rem;
  color: var(--bd-gray-500);
  line-height: 1.5;
  margin-bottom: 1rem;
}
.stu-badges-wrap .stu-badge-earned-date {
  background-color: var(--bd-success);
  color: var(--bd-white);
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-size: 1.3rem;
  font-weight: bold;
}
.stu-badges-wrap .stu-badge-locked {
  background-color: var(--bd-gray-400);
  color: var(--bd-white);
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-size: 1.3rem;
  font-weight: bold;
}
.stu-badges-wrap .stu-badge-criteria {
  font-size: 1.3rem;
  color: var(--bd-gray-500);
  margin-top: 1rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--bd-gray-200);
}
.stu-badges-wrap .stu-badges-empty {
  text-align: center;
  padding: 80px 2rem;
  color: var(--bd-gray-500);
}
.stu-badges-wrap .stu-badges-empty h2 {
  font-size: 1.8rem;
  color: var(--text);
}
.stu-badges-wrap .stu-badges-empty-icon {
  font-size: 8rem;
  margin-bottom: 2rem;
}
.stu-badges-wrap .stu-badges-form-group { margin-bottom: 1.5rem; }
.stu-badges-wrap .stu-badges-form-group label {
  display: block;
  margin-bottom: 1rem;
  font-weight: 600;
  color: var(--bd-gray-700);
  font-size: 1.6rem;
  letter-spacing: 0.025em;
}
.stu-badges-wrap .stu-badges-form-control {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid var(--bd-gray-200);
  border-radius: var(--bd-radius-md);
  font-size: 1.6rem;
  line-height: 1.5;
  color: var(--bd-gray-900);
  background-color: var(--bd-white);
  transition: all var(--bd-transition-base);
  box-sizing: border-box;
  min-height: 45px;
}
.stu-badges-wrap .stu-badges-form-control:focus {
  outline: none;
  border-color: var(--bd-primary);
  box-shadow: 0 0 0 3px var(--bd-primary-light);
}
.stu-badges-wrap .stu-badges-form-control:hover { border-color: var(--bd-gray-300); }
.stu-badges-wrap textarea.stu-badges-form-control {
  min-height: 120px;
  resize: vertical;
  font-family: inherit;
  line-height: 1.6;
}
.stu-badges-wrap select.stu-badges-form-control {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3E%3C/svg%3E");
  background-position: right 1rem center;
  background-repeat: no-repeat;
  background-size: 1.5em 1.5em;
  padding-right: 2.5rem;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}
.stu-badges-wrap select.stu-badges-form-control option { padding: 0.5rem; font-size: 1.6rem; }
.stu-badges-wrap input.stu-badges-form-control::placeholder,
.stu-badges-wrap textarea.stu-badges-form-control::placeholder {
  color: var(--bd-gray-400);
  opacity: 1;
}
.stu-badges-wrap .stu-badges-spacer { text-align: right; margin-bottom: 2rem; }
@media (max-width: 768px) {
  .stu-badges-wrap .stu-badges-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }
}

/* =====================================================
   SECTION 71: TEACHER ADD GAME QUESTIONS
   ===================================================== */
.tch-agq-wrap * { box-sizing: border-box; }
.tch-agq-wrap {
  --tch-agq-primary: var(--primary);
  --tch-agq-primary-hover: var(--primary-dark);
  --tch-agq-primary-light: var(--primary-mist);
  --tch-agq-success: var(--green-500);
  --tch-agq-success-light: var(--green-100);
  --tch-agq-success-dark: var(--green-700);
  --tch-agq-danger: #ef4444;
  --tch-agq-danger-light: #fee2e2;
  --tch-agq-spacing-xs: 0.5rem;
  --tch-agq-spacing-sm: 0.75rem;
  --tch-agq-spacing-md: 1rem;
  --tch-agq-spacing-lg: 1.5rem;
  --tch-agq-spacing-xl: 2rem;
  --tch-agq-radius-sm: 0.375rem;
  --tch-agq-radius-md: 0.5rem;
  --tch-agq-radius-lg: 0.75rem;
}
.tch-agq-wrap .tch-agq-container {
  max-width: 1000px;
  margin: var(--tch-agq-spacing-xl) auto;
  padding: var(--tch-agq-spacing-lg);
}
.tch-agq-wrap .tch-agq-alert {
  padding: var(--tch-agq-spacing-md) var(--tch-agq-spacing-lg);
  margin-bottom: var(--tch-agq-spacing-lg);
  border-radius: var(--tch-agq-radius-md);
  font-size: 1.5rem;
  font-weight: 500;
  box-shadow: var(--shadow-sm);
  border-left: 4px solid;
}
.tch-agq-wrap .tch-agq-alert-success {
  background: var(--tch-agq-success-light);
  color: var(--tch-agq-success-dark);
  border-left-color: var(--tch-agq-success);
}
.tch-agq-wrap .tch-agq-alert-error {
  background: var(--tch-agq-danger-light);
  color: var(--tch-agq-danger);
  border-left-color: var(--tch-agq-danger);
}
.tch-agq-wrap .tch-agq-error-list {
  margin-top: var(--tch-agq-spacing-md);
  padding-left: var(--tch-agq-spacing-xl);
  max-height: 200px;
  overflow-y: auto;
}
.tch-agq-wrap .tch-agq-tab-nav {
  display: flex;
  gap: var(--tch-agq-spacing-sm);
  margin-bottom: var(--tch-agq-spacing-lg);
  border-bottom: 2px solid var(--border-light);
}
.tch-agq-wrap .tch-agq-tab-btn {
  padding: 12px 24px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 1.5rem;
  font-weight: 600;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: var(--t-base);
}
.tch-agq-wrap .tch-agq-tab-btn.active {
  color: var(--tch-agq-primary);
  border-bottom-color: var(--tch-agq-primary);
}
.tch-agq-wrap .tch-agq-tab-btn:hover { color: var(--tch-agq-primary-hover); }
.tch-agq-wrap .tch-agq-tab-content { display: none; }
.tch-agq-wrap .tch-agq-tab-content.active { display: block; }
.tch-agq-wrap .tch-agq-info-banner {
  background: var(--tch-agq-primary-light);
  border-left: 4px solid var(--tch-agq-primary);
  padding: var(--tch-agq-spacing-lg);
  border-radius: var(--tch-agq-radius-md);
  margin-bottom: var(--tch-agq-spacing-xl);
}
.tch-agq-wrap .tch-agq-csv-format {
  background: var(--gray-800);
  color: #00ff00;
  padding: var(--tch-agq-spacing-md);
  border-radius: var(--tch-agq-radius-md);
  font-family: 'Courier New', monospace;
  font-size: 1.3rem;
  overflow-x: auto;
  margin-top: var(--tch-agq-spacing-md);
}
.tch-agq-wrap .tch-agq-upload-area {
  border: 3px dashed var(--gray-300);
  border-radius: var(--tch-agq-radius-lg);
  padding: var(--tch-agq-spacing-xl);
  text-align: center;
  cursor: pointer;
  transition: var(--t-base);
  background: var(--gray-50);
}
.tch-agq-wrap .tch-agq-upload-area:hover {
  border-color: var(--tch-agq-primary);
  background: var(--tch-agq-primary-light);
}
.tch-agq-wrap .tch-agq-upload-area-success {
  border-color: var(--tch-agq-success) !important;
  background: var(--tch-agq-success-light) !important;
}
.tch-agq-wrap .tch-agq-selected-file {
  display: none;
  margin-top: var(--tch-agq-spacing-md);
  padding: var(--tch-agq-spacing-md);
  background: var(--tch-agq-success-light);
  border-radius: var(--tch-agq-radius-md);
  color: var(--tch-agq-success);
  font-size: 1.4rem;
}
.tch-agq-wrap .tch-agq-card {
  background: var(--white);
  border-radius: var(--tch-agq-radius-lg);
  padding: var(--tch-agq-spacing-lg);
  margin-bottom: var(--tch-agq-spacing-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
}
.tch-agq-wrap .tch-agq-card h3 {
  margin: 0 0 var(--tch-agq-spacing-md);
  font-size: 1.6rem;
  color: var(--text);
  border-bottom: 2px solid var(--tch-agq-primary);
  padding-bottom: var(--tch-agq-spacing-sm);
}
.tch-agq-wrap .tch-agq-game-header {
  background: var(--tch-agq-primary);
  color: var(--white);
  padding: var(--tch-agq-spacing-lg);
  border-radius: var(--tch-agq-radius-lg);
  margin-bottom: var(--tch-agq-spacing-xl);
  box-shadow: var(--shadow-md);
}
.tch-agq-wrap .tch-agq-game-title {
  font-size: 1.7rem;
  font-weight: 600;
  margin-bottom: var(--tch-agq-spacing-sm);
}
.tch-agq-wrap .tch-agq-game-info {
  display: flex;
  gap: var(--tch-agq-spacing-lg);
  font-size: 1.5rem;
  opacity: 0.95;
  flex-wrap: wrap;
}
.tch-agq-wrap .tch-agq-form-group {
  margin-bottom: var(--tch-agq-spacing-lg);
}
.tch-agq-wrap .tch-agq-form-group label {
  display: block;
  margin-bottom: var(--tch-agq-spacing-sm);
  font-weight: 600;
  color: var(--text);
  font-size: 1.6rem;
}
.tch-agq-wrap .tch-agq-form-control {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid var(--border-light);
  border-radius: var(--tch-agq-radius-md);
  font-size: 1.6rem;
  line-height: 1.5;
  color: var(--text);
  background-color: var(--white);
  transition: all var(--t-base);
  min-height: 45px;
  font-family: inherit;
  box-sizing: border-box;
}
.tch-agq-wrap .tch-agq-form-control:focus {
  outline: none;
  border-color: var(--tch-agq-primary);
  box-shadow: 0 0 0 3px var(--tch-agq-primary-light);
}
.tch-agq-wrap .tch-agq-form-control:hover { border-color: var(--gray-300); }
.tch-agq-wrap textarea.tch-agq-form-control {
  min-height: 120px;
  resize: vertical;
  padding: 1rem;
}
.tch-agq-wrap select.tch-agq-form-control {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3E%3C/svg%3E");
  background-position: right 1rem center;
  background-repeat: no-repeat;
  background-size: 1.5em 1.5em;
  padding-right: 2.5rem;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}
.tch-agq-wrap .tch-agq-form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--tch-agq-spacing-md);
}
.tch-agq-wrap .tch-agq-btn {
  padding: 0.65rem 1.4rem;
  border-radius: var(--tch-agq-radius-md);
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.5rem;
  transition: all var(--t-base);
  text-decoration: none;
  display: inline-block;
  font-family: inherit;
}
.tch-agq-wrap .tch-agq-btn-primary {
  background: var(--tch-agq-primary);
  color: var(--white);
}
.tch-agq-wrap .tch-agq-btn-primary:hover {
  background: var(--tch-agq-primary-hover);
  transform: translateY(-1px);
}
.tch-agq-wrap .tch-agq-btn-success {
  background: var(--tch-agq-success);
  color: var(--white);
}
.tch-agq-wrap .tch-agq-btn-success:hover { background: var(--green-600); }
.tch-agq-wrap .tch-agq-btn-danger {
  background: var(--tch-agq-danger);
  color: var(--white);
  padding: 0.5rem 1rem;
  font-size: 1.5rem;
}
.tch-agq-wrap .tch-agq-btn-danger:hover { background: #dc2626; }
.tch-agq-wrap .tch-agq-question-item {
  background: var(--gray-50);
  border: 1px solid var(--border-light);
  border-radius: var(--tch-agq-radius-md);
  padding: var(--tch-agq-spacing-md);
  margin-bottom: var(--tch-agq-spacing-md);
}
.tch-agq-wrap .tch-agq-question-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--tch-agq-spacing-sm);
  flex-wrap: wrap;
  gap: var(--tch-agq-spacing-sm);
}
.tch-agq-wrap .tch-agq-question-number {
  background: var(--tch-agq-primary);
  color: var(--white);
  padding: 0.3rem 0.75rem;
  border-radius: var(--tch-agq-radius-sm);
  font-weight: 600;
  font-size: 1.5rem;
}
.tch-agq-wrap .tch-agq-question-points {
  color: var(--text-muted);
  font-size: 1.4rem;
}
.tch-agq-wrap .tch-agq-question-text {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: var(--tch-agq-spacing-sm);
}
.tch-agq-wrap .tch-agq-answer-text {
  background: var(--tch-agq-success-light);
  border-left: 4px solid var(--tch-agq-success);
  padding: var(--tch-agq-spacing-sm);
  border-radius: var(--tch-agq-radius-sm);
  color: var(--tch-agq-success-dark);
  font-size: 1.5rem;
}
.tch-agq-wrap .tch-agq-options-list {
  margin-top: var(--tch-agq-spacing-sm);
}
.tch-agq-wrap .tch-agq-option-item {
  padding: var(--tch-agq-spacing-sm);
  background: var(--white);
  border-radius: var(--tch-agq-radius-sm);
  border: 1px solid var(--border-light);
  margin-bottom: var(--tch-agq-spacing-xs);
  transition: background var(--t-fast);
  font-size: 1.5rem;
}
.tch-agq-wrap .tch-agq-option-item.tch-agq-correct {
  background: var(--tch-agq-success-light);
  border-color: var(--tch-agq-success);
  font-weight: 600;
}
.tch-agq-wrap .tch-agq-empty-state {
  text-align: center;
  padding: var(--tch-agq-spacing-xl);
  color: var(--text-muted);
  font-size: 1.5rem;
}
.tch-agq-wrap .tch-agq-hidden { display: none; }
.tch-agq-wrap .tch-agq-text-right { text-align: right; margin-bottom: 20px; }
.tch-agq-wrap .tch-agq-banner-title { margin: 0 0 10px 0; font-size: 1.6rem; }
.tch-agq-wrap .tch-agq-empty-icon { font-size: 48px; margin-bottom: 15px; }
.tch-agq-wrap .tch-agq-upload-icon {
  font-size: 3rem;
  margin-bottom: 10px;
}
.tch-agq-wrap .tch-agq-upload-text {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 5px;
}
.tch-agq-wrap .tch-agq-upload-subtext {
  font-size: 1.4rem;
  color: var(--text-muted);
}
@media (max-width: 768px) {
  .tch-agq-wrap .tch-agq-form-row { grid-template-columns: 1fr; }
  .tch-agq-wrap .tch-agq-game-info { flex-direction: column; gap: var(--tch-agq-spacing-sm); }
  .tch-agq-wrap .tch-agq-card h3 { font-size: 1.5rem; }
}

/* =====================================================
   SECTION 72: TEACHER ASSIGNMENT SUBMISSIONS
   ===================================================== */
.tch-as-wrap * { box-sizing: border-box; }
.tch-as-wrap {
  --tch-as-primary: var(--primary);
  --tch-as-primary-hover: var(--primary-dark);
  --tch-as-primary-light: var(--primary-mist);
  --tch-as-primary-dark: var(--primary-dark);
  --tch-as-success: var(--green-500);
  --tch-as-success-hover: var(--green-600);
  --tch-as-success-light: var(--green-100);
  --tch-as-success-dark: var(--green-700);
  --tch-as-warning: var(--amber-500);
  --tch-as-warning-hover: var(--amber-600);
  --tch-as-warning-light: var(--amber-100);
  --tch-as-danger: #ef4444;
  --tch-as-danger-light: #fee2e2;
  --tch-as-spacing-xs: 0.5rem;
  --tch-as-spacing-sm: 0.75rem;
  --tch-as-spacing-md: 1rem;
  --tch-as-spacing-lg: 1.5rem;
  --tch-as-spacing-xl: 2rem;
  --tch-as-radius-sm: 0.375rem;
  --tch-as-radius-md: 0.5rem;
  --tch-as-radius-lg: 0.75rem;
}
.tch-as-wrap .tch-as-container { max-width: 1400px; margin: var(--tch-as-spacing-xl) auto; padding: var(--tch-as-spacing-lg); }
.tch-as-wrap .tch-as-alert {
  padding: var(--tch-as-spacing-md) var(--tch-as-spacing-lg);
  margin-bottom: var(--tch-as-spacing-lg);
  border-radius: var(--tch-as-radius-md);
  font-size: 1.5rem;
  font-weight: 500;
}
.tch-as-wrap .tch-as-alert-success {
  background: var(--tch-as-success-light);
  color: var(--tch-as-success-dark);
  border: 1px solid rgba(16,185,129,.3);
}
.tch-as-wrap .tch-as-alert-error {
  background: var(--tch-as-danger-light);
  color: var(--tch-as-danger);
  border: 1px solid rgba(239,68,68,.3);
}
.tch-as-wrap .tch-as-header-card {
  background: var(--white);
  border-radius: var(--tch-as-radius-lg);
  padding: var(--tch-as-spacing-xl);
  margin-bottom: var(--tch-as-spacing-xl);
  box-shadow: var(--shadow-md);
}
.tch-as-wrap .tch-as-back-link {
  color: var(--tch-as-primary);
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  margin-bottom: var(--tch-as-spacing-md);
  font-size: 1.5rem;
}
.tch-as-wrap .tch-as-back-link:hover { color: var(--tch-as-primary-hover); text-decoration: underline; }
.tch-as-wrap .tch-as-header-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: var(--tch-as-spacing-md);
}
.tch-as-wrap .tch-as-header-info {
  display: flex;
  flex-wrap: wrap;
  gap: var(--tch-as-spacing-md);
  color: var(--text-secondary);
  margin-bottom: var(--tch-as-spacing-md);
}
.tch-as-wrap .tch-as-header-info span {
  background: var(--bg-alt);
  padding: 6px 14px;
  border-radius: var(--tch-as-radius-sm);
  font-size: 1.5rem;
}
.tch-as-wrap .tch-as-overdue {
  color: var(--tch-as-danger) !important;
  font-weight: bold;
}
.tch-as-wrap .tch-as-description {
  background: var(--gray-50);
  padding: var(--tch-as-spacing-md);
  border-radius: var(--tch-as-radius-md);
  line-height: 1.7;
  color: var(--text-secondary);
  font-size: 1.5rem;
  margin-top: var(--tch-as-spacing-md);
}
.tch-as-wrap .tch-as-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--tch-as-spacing-lg);
  margin-bottom: var(--tch-as-spacing-xl);
}
.tch-as-wrap .tch-as-stat-card {
  background: var(--white);
  padding: var(--tch-as-spacing-lg);
  border-radius: var(--tch-as-radius-lg);
  box-shadow: var(--shadow-sm);
  text-align: center;
  border-left: 5px solid var(--tch-as-primary);
}
.tch-as-wrap .tch-as-stat-card.tch-as-submitted { border-left-color: var(--tch-as-success); }
.tch-as-wrap .tch-as-stat-card.tch-as-late { border-left-color: var(--tch-as-warning); }
.tch-as-wrap .tch-as-stat-card.tch-as-pending { border-left-color: var(--tch-as-danger); }
.tch-as-wrap .tch-as-stat-card.tch-as-graded { border-left-color: var(--gray-500); }
.tch-as-wrap .tch-as-stat-icon { font-size: 2rem; margin-bottom: var(--tch-as-spacing-sm); }
.tch-as-wrap .tch-as-stat-number { font-size: 1.9rem; font-weight: 700; color: var(--text); }
.tch-as-wrap .tch-as-stat-label { font-size: 1.5rem; color: var(--text-secondary); }
.tch-as-wrap .tch-as-card {
  background: var(--white);
  border-radius: var(--tch-as-radius-lg);
  padding: var(--tch-as-spacing-lg);
  box-shadow: var(--shadow-sm);
}
.tch-as-wrap .tch-as-card h3 {
  color: var(--text);
  border-bottom: 2px solid var(--tch-as-primary);
  padding-bottom: var(--tch-as-spacing-sm);
  margin-bottom: var(--tch-as-spacing-md);
  font-size: 1.6rem;
}
.tch-as-wrap .tch-as-submissions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: var(--tch-as-spacing-lg);
}
.tch-as-wrap .tch-as-submission-card {
  background: var(--gray-50);
  border: 1px solid var(--border-light);
  border-radius: var(--tch-as-radius-md);
  padding: var(--tch-as-spacing-lg);
  transition: var(--t-base);
  font-size: 1.5rem;
}
.tch-as-wrap .tch-as-submission-card:hover { box-shadow: var(--shadow-md); }
.tch-as-wrap .tch-as-submission-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--tch-as-spacing-sm);
  flex-wrap: wrap;
  gap: var(--tch-as-spacing-sm);
}
.tch-as-wrap .tch-as-student-info { display: flex; align-items: center; gap: var(--tch-as-spacing-md); }
.tch-as-wrap .tch-as-student-avatar {
  width: 50px;
  height: 50px;
  background: var(--tch-as-primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.6rem;
}
.tch-as-wrap .tch-as-student-name { font-weight: 600; color: var(--text); font-size: 1.5rem; }
.tch-as-wrap .tch-as-student-matric { font-size: 1.2rem; color: var(--text-muted); }
.tch-as-wrap .tch-as-status-badge {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 1.2rem;
  font-weight: 600;
}
.tch-as-wrap .tch-as-status-submitted { background: var(--tch-as-success-light); color: var(--tch-as-success-dark); }
.tch-as-wrap .tch-as-status-late { background: var(--tch-as-warning-light); color: var(--tch-as-warning-hover); }
.tch-as-wrap .tch-as-status-pending { background: var(--tch-as-danger-light); color: var(--tch-as-danger); }
.tch-as-wrap .tch-as-submission-meta { font-size: 1.4rem; color: var(--text-secondary); margin-bottom: var(--tch-as-spacing-sm); }
.tch-as-wrap .tch-as-submission-content { font-size: 1.5rem; margin-bottom: var(--tch-as-spacing-sm); }
.tch-as-wrap .tch-as-answer-box {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--tch-as-radius-sm);
  padding: var(--tch-as-spacing-md);
  max-height: 160px;
  overflow: auto;
  margin-top: 4px;
  color: var(--text);
}
.tch-as-wrap .tch-as-grade-display {
  background: var(--tch-as-primary-light);
  padding: var(--tch-as-spacing-md);
  border-radius: var(--tch-as-radius-md);
  margin-bottom: var(--tch-as-spacing-sm);
}
.tch-as-wrap .tch-as-grade-badge {
  background: var(--tch-as-primary);
  color: var(--white);
  padding: 8px 20px;
  border-radius: 999px;
  font-weight: 700;
  display: inline-block;
}
.tch-as-wrap .tch-as-grade-date {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-top: 5px;
}
.tch-as-wrap .tch-as-teacher-remark { margin-top: var(--tch-as-spacing-sm); color: var(--text-secondary); font-size: 1.4rem; }
.tch-as-wrap .tch-as-submission-actions { display: flex; gap: 8px; margin-top: var(--tch-as-spacing-md); flex-wrap: wrap; }
.tch-as-wrap .tch-as-no-submission { color: var(--text-muted); font-size: 1.4rem; }
.tch-as-wrap .tch-as-btn {
  padding: 10px 20px;
  border-radius: var(--tch-as-radius-sm);
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: var(--t-fast);
  text-decoration: none;
  display: inline-block;
  font-size: 1.4rem;
  font-family: inherit;
}
.tch-as-wrap .tch-as-btn-primary { background: var(--tch-as-primary); color: var(--white); }
.tch-as-wrap .tch-as-btn-primary:hover { background: var(--tch-as-primary-hover); }
.tch-as-wrap .tch-as-btn-success { background: var(--tch-as-success); color: var(--white); }
.tch-as-wrap .tch-as-btn-success:hover { background: var(--tch-as-success-hover); }
.tch-as-wrap .tch-as-empty-state {
  text-align: center;
  padding: var(--tch-as-spacing-xl);
  color: var(--text-muted);
  font-size: 1.5rem;
}
.tch-as-wrap .tch-as-empty-state-icon { font-size: 48px; }
.tch-as-wrap .tch-as-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}
.tch-as-wrap .tch-as-modal-content {
  background: var(--white);
  border-radius: var(--tch-as-radius-lg);
  padding: var(--tch-as-spacing-xl);
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
}
.tch-as-wrap .tch-as-modal-header {
  border-bottom: 2px solid var(--tch-as-primary);
  margin-bottom: var(--tch-as-spacing-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.tch-as-wrap .tch-as-modal-header h3 { margin: 0; padding-bottom: 8px; font-size: 1.6rem; }
.tch-as-wrap .tch-as-close {
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-secondary);
  background: none;
  border: none;
}
.tch-as-wrap .tch-as-close:hover { color: var(--text); }
.tch-as-wrap .tch-as-modal-body { padding: 20px 0; }
.tch-as-wrap .tch-as-modal-body-content { padding: 20px; max-height: 60vh; overflow-y: auto; }
.tch-as-wrap .tch-as-modal-loading { text-align: center; padding: 40px; }
.tch-as-wrap .tch-as-modal-loading-icon { font-size: 24px; }
.tch-as-wrap .tch-as-modal-error { color: var(--tch-as-danger); padding: 20px; }
.tch-as-wrap .tch-as-grading-name {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: var(--tch-as-spacing-md);
}
.tch-as-wrap .tch-as-form-group { margin-bottom: var(--tch-as-spacing-lg); }
.tch-as-wrap .tch-as-form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: var(--text);
  font-size: 1.5rem;
}
.tch-as-wrap .tch-as-form-control {
  width: 100%;
  padding: 10px 12px;
  border: 2px solid var(--border-light);
  border-radius: var(--tch-as-radius-md);
  font-size: 1.5rem;
  font-family: inherit;
  box-sizing: border-box;
}
.tch-as-wrap .tch-as-form-control:focus {
  outline: none;
  border-color: var(--tch-as-primary);
  box-shadow: 0 0 0 3px var(--tch-as-primary-light);
}
.tch-as-wrap .tch-as-submit-full { width: 100%; padding: 12px 24px; font-size: 1.5rem; }
.tch-as-wrap .tch-as-text-right { text-align: right; margin-bottom: 20px; }
@media (max-width: 768px) {
  .tch-as-wrap .tch-as-submissions-grid { grid-template-columns: 1fr; }
  .tch-as-wrap .tch-as-header-info { flex-direction: column; gap: var(--tch-as-spacing-sm); }
  .tch-as-wrap .tch-as-modal-content { width: 95%; }
}

/* =====================================================
   SECTION 73: TEACHER EXAM QUESTIONS
   ===================================================== */
.tch-eq-wrap * { box-sizing: border-box; }
.tch-eq-wrap {
  --tch-eq-primary: var(--primary);
  --tch-eq-primary-hover: var(--primary-dark);
  --tch-eq-primary-light: var(--primary-mist);
  --tch-eq-success: var(--green-500);
  --tch-eq-success-light: var(--green-100);
  --tch-eq-spacing-xs: 0.5rem;
  --tch-eq-spacing-sm: 0.75rem;
  --tch-eq-spacing-md: 1rem;
  --tch-eq-spacing-lg: 1.5rem;
  --tch-eq-spacing-xl: 2rem;
  --tch-eq-radius-sm: 0.375rem;
  --tch-eq-radius-md: 0.5rem;
  --tch-eq-radius-lg: 0.75rem;
}
.tch-eq-wrap .tch-eq-container { max-width: 1000px; margin: var(--tch-eq-spacing-xl) auto; padding: var(--tch-eq-spacing-lg); }
.tch-eq-wrap .tch-eq-header {
  background: var(--tch-eq-primary);
  color: var(--white);
  padding: var(--tch-eq-spacing-lg);
  border-radius: var(--tch-eq-radius-lg);
  margin-bottom: var(--tch-eq-spacing-xl);
  box-shadow: var(--shadow-md);
}
.tch-eq-wrap .tch-eq-title { font-size: 1.8rem; font-weight: 700; margin-bottom: var(--tch-eq-spacing-sm); }
.tch-eq-wrap .tch-eq-info {
  display: flex;
  gap: var(--tch-eq-spacing-lg);
  font-size: 1.5rem;
  color: var(--tch-eq-primary-light);
  flex-wrap: wrap;
}
.tch-eq-wrap .tch-eq-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--tch-eq-radius-lg);
  padding: var(--tch-eq-spacing-xl);
  margin-bottom: var(--tch-eq-spacing-xl);
  box-shadow: var(--shadow-sm);
}
.tch-eq-wrap .tch-eq-card h3 {
  margin-top: 0;
  color: var(--text);
  border-bottom: 2px solid var(--tch-eq-primary);
  padding-bottom: var(--tch-eq-spacing-sm);
  font-size: 1.6rem;
}
.tch-eq-wrap .tch-eq-question-item {
  background: var(--gray-50);
  border: 1px solid var(--border-light);
  border-radius: var(--tch-eq-radius-md);
  padding: var(--tch-eq-spacing-lg);
  margin-bottom: var(--tch-eq-spacing-md);
}
.tch-eq-wrap .tch-eq-question-number {
  background: var(--tch-eq-primary);
  color: var(--white);
  padding: 6px 14px;
  border-radius: var(--tch-eq-radius-sm);
  display: inline-block;
  font-weight: 600;
  margin-bottom: var(--tch-eq-spacing-sm);
  font-size: 1.5rem;
}
.tch-eq-wrap .tch-eq-question-text {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: var(--tch-eq-spacing-md);
  line-height: 1.6;
}
.tch-eq-wrap .tch-eq-question-image {
  max-width: 100%;
  max-height: 300px;
  margin: var(--tch-eq-spacing-sm) 0;
  border-radius: var(--tch-eq-radius-md);
  border: 1px solid var(--gray-300);
  display: block;
}
.tch-eq-wrap .tch-eq-options-list { margin-bottom: var(--tch-eq-spacing-md); }
.tch-eq-wrap .tch-eq-option-item {
  padding: var(--tch-eq-spacing-sm) var(--tch-eq-spacing-md);
  margin-bottom: var(--tch-eq-spacing-sm);
  background: var(--white);
  border-radius: var(--tch-eq-radius-sm);
  border: 1px solid var(--gray-300);
  display: flex;
  align-items: flex-start;
  gap: var(--tch-eq-spacing-sm);
  transition: var(--t-fast);
  font-size: 1.5rem;
}
.tch-eq-wrap .tch-eq-option-item:hover { background: var(--bg-alt); }
.tch-eq-wrap .tch-eq-option-item.tch-eq-correct { background: var(--tch-eq-success-light); border-color: var(--tch-eq-success); font-weight: 600; }
.tch-eq-wrap .tch-eq-option-label { font-weight: 700; color: var(--tch-eq-primary); min-width: 24px; }
.tch-eq-wrap .tch-eq-option-content { flex: 1; }
.tch-eq-wrap .tch-eq-option-image {
  max-width: 150px;
  max-height: 150px;
  margin-top: var(--tch-eq-spacing-sm);
  border-radius: var(--tch-eq-radius-sm);
  border: 1px solid var(--gray-300);
  display: block;
}
.tch-eq-wrap .tch-eq-btn {
  padding: var(--tch-eq-spacing-sm) var(--tch-eq-spacing-lg);
  border: none;
  border-radius: var(--tch-eq-radius-md);
  cursor: pointer;
  font-size: 1.5rem;
  font-weight: 600;
  text-decoration: none;
  background: var(--tch-eq-primary);
  color: var(--white);
  transition: var(--t-fast);
  display: inline-block;
}
.tch-eq-wrap .tch-eq-btn:hover { background: var(--tch-eq-primary-hover); }
.tch-eq-wrap .tch-eq-empty-state {
  text-align: center;
  padding: var(--tch-eq-spacing-xl);
  color: var(--text-muted);
  font-size: 1.5rem;
}
.tch-eq-wrap .tch-eq-empty-state-icon { font-size: 48px; }
.tch-eq-wrap .tch-eq-back-wrap { text-align: center; margin-top: 25px; }
.tch-eq-wrap .tch-eq-text-right { text-align: right; margin-bottom: 20px; }
@media (max-width: 768px) {
  .tch-eq-wrap .tch-eq-info { flex-direction: column; gap: var(--tch-eq-spacing-sm); }
  .tch-eq-wrap .tch-eq-card h3 { font-size: 1.5rem; }
}

/* =====================================================
   STUDENT_ENTER_EXAM.PHP
   ===================================================== */
.stu-enter-exam-wrap {
  max-width: 600px;
  margin: 3rem auto;
  padding: 1.5rem;
  --ee-primary: var(--primary);
  --ee-primary-hover: var(--primary-dark);
  --ee-primary-light: var(--primary-mist);
  --ee-primary-dark: var(--primary-dark);
  --ee-secondary: var(--gray-500);
  --ee-secondary-light: var(--gray-50);
  --ee-success: var(--green-500);
  --ee-success-light: var(--green-100);
  --ee-danger: #ef4444;
  --ee-danger-light: #fee2e2;
  --ee-white: var(--white);
  --ee-gray-50: var(--gray-50);
  --ee-gray-200: var(--gray-200);
  --ee-gray-300: var(--gray-300);
  --ee-gray-500: var(--gray-500);
  --ee-gray-600: var(--gray-600);
  --ee-gray-700: var(--gray-700);
  --ee-gray-800: var(--gray-800);
  --ee-radius-md: 0.5rem;
  --ee-radius-lg: 0.75rem;
  --ee-radius-xl: 1rem;
  --ee-shadow-sm: 0 1px 2px 0 rgba(0,0,0,.05);
  --ee-shadow-lg: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -2px rgba(0,0,0,.05);
  --ee-shadow-xl: 0 20px 25px -5px rgba(0,0,0,.1), 0 10px 10px -5px rgba(0,0,0,.04);
  --ee-transition-fast: 150ms ease-in-out;
  --ee-transition-base: 250ms ease-in-out;
}
.stu-enter-exam-wrap .stu-entry-card {
  background: var(--ee-white);
  border-radius: var(--ee-radius-xl);
  padding: 3rem;
  box-shadow: var(--ee-shadow-xl);
  text-align: center;
}
.stu-enter-exam-wrap .stu-entry-icon {
  width: 80px;
  height: 80px;
  background: var(--ee-primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
  font-size: 2.5rem;
}
.stu-enter-exam-wrap .stu-entry-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--ee-gray-800);
  margin-bottom: 0.5rem;
}
.stu-enter-exam-wrap .stu-entry-subtitle {
  color: var(--ee-gray-600);
  font-size: 1.6rem;
  margin-bottom: 2rem;
  line-height: 1.5;
}
.stu-enter-exam-wrap .stu-code-input-group { margin: 2rem 0; }
.stu-enter-exam-wrap .stu-code-input {
  width: 100%;
  padding: 1.2rem 1.5rem;
  border: 2px solid var(--ee-gray-300);
  border-radius: var(--ee-radius-md);
  font-size: 1.8rem;
  font-weight: 600;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  transition: all var(--ee-transition-base);
}
.stu-enter-exam-wrap .stu-code-input:focus {
  outline: none;
  border-color: var(--ee-primary);
  box-shadow: 0 0 0 4px var(--ee-primary-light);
}
.stu-enter-exam-wrap .stu-code-input::placeholder {
  text-transform: none;
  letter-spacing: normal;
  font-weight: 400;
}
.stu-enter-exam-wrap .stu-btn-enter-exam {
  width: 100%;
  padding: 1rem 2rem;
  background: var(--ee-primary);
  color: var(--ee-white);
  border: none;
  border-radius: var(--ee-radius-md);
  font-size: 1.6rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--ee-transition-base);
  margin-top: 1rem;
}
.stu-enter-exam-wrap .stu-btn-enter-exam:hover {
  background: var(--ee-primary-hover);
  transform: translateY(-2px);
  box-shadow: var(--ee-shadow-lg);
}
.stu-enter-exam-wrap .stu-btn-enter-exam:active { transform: translateY(0); }
.stu-enter-exam-wrap .stu-alert {
  padding: 1rem;
  margin-bottom: 1.5rem;
  border-radius: var(--ee-radius-md);
  font-weight: 500;
  font-size: 1.4rem;
  box-shadow: var(--ee-shadow-sm);
}
.stu-enter-exam-wrap .stu-alert-error {
  background: var(--ee-danger-light);
  color: var(--ee-danger);
  border-left: 4px solid var(--ee-danger);
}
.stu-enter-exam-wrap .stu-available-exams {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--ee-gray-200);
}
.stu-enter-exam-wrap .stu-available-exams-title {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--ee-gray-700);
  margin-bottom: 1rem;
  text-align: left;
}
.stu-enter-exam-wrap .stu-exam-chip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--ee-gray-50);
  border: 1px solid var(--ee-gray-200);
  border-radius: var(--ee-radius-md);
  margin-bottom: 0.5rem;
  text-align: left;
  transition: all var(--ee-transition-fast);
}
.stu-enter-exam-wrap .stu-exam-chip:hover {
  background: var(--ee-primary-light);
  border-color: var(--ee-primary);
}
.stu-enter-exam-wrap .stu-exam-chip-code {
  font-weight: 700;
  color: var(--ee-primary);
  font-size: 1.5rem;
  min-width: 80px;
}
.stu-enter-exam-wrap .stu-exam-chip-details { flex: 1; }
.stu-enter-exam-wrap .stu-exam-chip-title {
  font-size: 1.5rem;
  color: var(--ee-gray-800);
  font-weight: 600;
}
.stu-enter-exam-wrap .stu-exam-chip-meta {
  font-size: 1.3rem;
  color: var(--ee-gray-500);
}
.stu-enter-exam-wrap .stu-help-text {
  margin-top: 1.5rem;
  padding: 1rem;
  background: var(--ee-gray-50);
  border-radius: var(--ee-radius-md);
  font-size: 1.4rem;
  color: var(--ee-gray-600);
  line-height: 1.6;
}
.stu-enter-exam-wrap .stu-help-text strong { color: var(--ee-gray-800); }
@media (max-width: 768px) {
  .stu-enter-exam-wrap { padding: 1rem; }
  .stu-enter-exam-wrap .stu-entry-card { padding: 2rem; }
  .stu-enter-exam-wrap .stu-entry-title { font-size: 1.75rem; }
  .stu-enter-exam-wrap .stu-code-input { font-size: 1.6rem; }
}

/* =====================================================
   STUDENT_EXAMS_LIST.PHP
   ===================================================== */
.stu-exams-list-wrap {
  max-width: 1200px;
  margin: 1.5rem auto;
  padding: 1.5rem;
  --el-primary: var(--primary);
  --el-primary-hover: var(--primary-dark);
  --el-primary-light: var(--primary-mist);
  --el-primary-dark: var(--primary-dark);
  --el-success: var(--green-500);
  --el-success-hover: var(--green-600);
  --el-success-light: var(--green-100);
  --el-warning: var(--amber-500);
  --el-warning-light: var(--amber-100);
  --el-danger: #ef4444;
  --el-danger-light: #fee2e2;
  --el-white: var(--white);
  --el-gray-50: var(--gray-50);
  --el-gray-200: var(--gray-200);
  --el-gray-300: var(--gray-300);
  --el-gray-500: var(--gray-500);
  --el-gray-600: var(--gray-600);
  --el-gray-700: var(--gray-700);
  --el-gray-800: var(--gray-800);
  --el-gray-900: var(--gray-900);
  --el-radius-md: 0.5rem;
  --el-radius-lg: 1.5rem;
  --el-radius-xl: 1rem;
  --el-radius-full: 9999px;
  --el-shadow-sm: 0 1px 2px 0 rgba(0,0,0,.05);
  --el-shadow-md: 0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -1px rgba(0,0,0,.06);
  --el-transition-base: 250ms ease-in-out;
}
.stu-exams-list-wrap .stu-list-alert {
  padding: 1rem;
  margin-bottom: 1.5rem;
  border-radius: var(--el-radius-md);
  font-size: 1.4rem;
}
.stu-exams-list-wrap .stu-list-alert-error {
  background-color: var(--el-danger-light);
  color: var(--el-danger);
  border: 1px solid #f5c6cb;
}
.stu-exams-list-wrap .stu-list-spacer { text-align: right; margin-bottom: 2rem; }
.stu-exams-list-wrap .stu-list-card {
  background: var(--el-white);
  border: 1px solid var(--el-gray-200);
  border-radius: var(--el-radius-lg);
  padding: 2rem;
  margin-bottom: 3rem;
  box-shadow: var(--el-shadow-sm);
  transition: var(--el-transition-base);
  font-size: 1.7rem;
}
.stu-exams-list-wrap .stu-list-card h3 {
  margin-top: 0;
  color: var(--el-gray-800);
  border-bottom: 2px solid var(--el-primary);
  padding-bottom: 1rem;
  font-size: 2.1rem;
}
.stu-exams-list-wrap .stu-list-code-entry {
  background: var(--el-primary-light);
  border: 2px solid var(--el-primary);
  border-radius: var(--el-radius-lg);
  padding: 2rem;
  margin-bottom: 3rem;
  text-align: center;
  font-size: 1.8rem;
}
.stu-exams-list-wrap .stu-list-code-entry h4 {
  margin-top: 0;
  color: var(--el-primary-dark);
  font-size: 2.2rem;
}
.stu-exams-list-wrap .stu-list-code-entry p {
  font-size: 1.6rem;
  color: var(--el-gray-700);
  margin-bottom: 1rem;
}
.stu-exams-list-wrap .stu-list-code-input-group {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 1rem;
  flex-wrap: wrap;
}
.stu-exams-list-wrap .stu-list-code-input {
  padding: 0.5rem 1rem;
  border: 2px solid var(--el-primary);
  border-radius: var(--el-radius-md);
  font-size: 1.7rem;
  font-weight: bold;
  text-align: center;
  width: 200px;
  text-transform: uppercase;
  transition: var(--el-transition-base);
  min-height: 45px;
}
.stu-exams-list-wrap .stu-list-code-input:focus {
  outline: none;
  box-shadow: 0 0 0 3px var(--el-primary-light);
}
.stu-exams-list-wrap .stu-list-btn {
  padding: 0.5rem 1.5rem;
  border: none;
  border-radius: var(--el-radius-md);
  cursor: pointer;
  font-size: 1.7rem;
  font-weight: bold;
  transition: var(--el-transition-base);
  text-decoration: none;
  display: inline-block;
}
.stu-exams-list-wrap .stu-list-btn-primary {
  background-color: var(--el-primary);
  color: var(--el-white);
}
.stu-exams-list-wrap .stu-list-btn-primary:hover { background-color: var(--el-primary-hover); }
.stu-exams-list-wrap .stu-list-btn-success {
  background-color: var(--el-success);
  color: var(--el-white);
}
.stu-exams-list-wrap .stu-list-btn-success:hover { background-color: var(--el-success-hover); }
.stu-exams-list-wrap .stu-list-exam-item {
  background: var(--el-gray-50);
  border: 2px solid var(--el-gray-200);
  border-radius: var(--el-radius-lg);
  padding: 1.5rem;
  margin-bottom: 1rem;
  transition: var(--el-transition-base);
  font-size: 1.7rem;
}
.stu-exams-list-wrap .stu-list-exam-item:hover {
  border-color: var(--el-primary);
  box-shadow: var(--el-shadow-md);
}
.stu-exams-list-wrap .stu-list-exam-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 1rem;
  font-size: 1.8rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.stu-exams-list-wrap .stu-list-exam-title {
  font-size: 1.9rem;
  font-weight: bold;
  color: var(--el-gray-800);
  margin-bottom: 0.5rem;
}
.stu-exams-list-wrap .stu-list-code-badge {
  background: var(--el-primary);
  color: var(--el-white);
  padding: 6px 15px;
  border-radius: var(--el-radius-full);
  font-size: 1.4rem;
  font-weight: bold;
  display: inline-block;
}
.stu-exams-list-wrap .stu-list-exam-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}
.stu-exams-list-wrap .stu-list-meta-tag {
  background: var(--el-white);
  padding: 6px 12px;
  border-radius: 0.5rem;
  font-size: 1.5rem;
  border: 1px solid var(--el-gray-200);
}
.stu-exams-list-wrap .stu-list-exam-date {
  font-size: 1.5rem;
  color: var(--gray-600);
  margin-bottom: 1.5rem;
}
.stu-exams-list-wrap .stu-list-exam-status {
  display: inline-block;
  padding: 6px 15px;
  border-radius: var(--el-radius-full);
  font-size: 1.5rem;
  font-weight: bold;
}
.stu-exams-list-wrap .stu-list-status-available {
  background: var(--el-success-light);
  color: var(--el-success);
}
.stu-exams-list-wrap .stu-list-status-completed {
  background: var(--el-primary-light);
  color: var(--el-primary-dark);
}
.stu-exams-list-wrap .stu-list-score-display {
  font-size: 2.2rem;
  font-weight: bold;
  color: var(--el-success);
}
.stu-exams-list-wrap .stu-list-empty {
  text-align: center;
  padding: 5rem 1rem;
  color: var(--el-gray-500);
  font-size: 1.7rem;
}
.stu-exams-list-wrap .stu-list-empty-icon { font-size: 5rem; margin-bottom: 1rem; }
.stu-exams-list-wrap .stu-list-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
@media (max-width: 768px) {
  .stu-exams-list-wrap .stu-list-grid-2 { grid-template-columns: 1fr; }
  .stu-exams-list-wrap .stu-list-code-input-group { flex-direction: column; }
  .stu-exams-list-wrap .stu-list-code-input { width: 100%; }
  .stu-exams-list-wrap .stu-list-exam-header {
    flex-direction: column;
    gap: 0.5rem;
  }
}

/* =====================================================
   STUDENT_EXAM_HISTORY.PHP
   ===================================================== */
.stu-history-wrap {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 1.5rem;
  --eh-primary: var(--primary);
  --eh-primary-hover: var(--primary-dark);
  --eh-primary-light: var(--primary-mist);
  --eh-success: var(--green-500);
  --eh-success-light: var(--green-100);
  --eh-success-dark: var(--green-700);
  --eh-warning: var(--amber-500);
  --eh-warning-light: var(--amber-100);
  --eh-danger: #ef4444;
  --eh-danger-light: #fee2e2;
  --eh-white: var(--white);
  --eh-gray-50: var(--gray-50);
  --eh-gray-200: var(--gray-200);
  --eh-gray-300: var(--gray-300);
  --eh-gray-500: var(--gray-500);
  --eh-gray-600: var(--gray-600);
  --eh-gray-700: var(--gray-700);
  --eh-gray-800: var(--gray-800);
  --eh-gray-900: var(--gray-900);
  --eh-radius-md: 0.5rem;
  --eh-radius-lg: 0.75rem;
  --eh-radius-full: 9999px;
  --eh-shadow-md: 0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -1px rgba(0,0,0,.06);
  --eh-shadow-lg: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -2px rgba(0,0,0,.05);
  --eh-transition-base: 250ms ease-in-out;
}
.stu-history-wrap .stu-history-spacer { text-align: right; margin-bottom: 2rem; }
.stu-history-wrap .stu-history-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}
.stu-history-wrap .stu-history-stat-card {
  background: var(--eh-white);
  border-radius: var(--eh-radius-lg);
  padding: 2rem;
  box-shadow: var(--eh-shadow-md);
  transition: var(--eh-transition-base);
}
.stu-history-wrap .stu-history-stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--eh-shadow-lg);
}
.stu-history-wrap .stu-history-stat-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--eh-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 1rem;
}
.stu-history-wrap .stu-history-stat-icon.primary { background: var(--eh-primary-light); color: var(--eh-primary); }
.stu-history-wrap .stu-history-stat-icon.success { background: var(--eh-success-light); color: var(--eh-success); }
.stu-history-wrap .stu-history-stat-icon.warning { background: var(--eh-warning-light); color: var(--eh-warning); }
.stu-history-wrap .stu-history-stat-value {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--eh-gray-900);
  margin-bottom: 0.25rem;
}
.stu-history-wrap .stu-history-stat-label {
  font-size: 1.4rem;
  color: var(--eh-gray-600);
  font-weight: 500;
}
.stu-history-wrap .stu-history-subject {
  background: var(--eh-white);
  border-radius: var(--eh-radius-lg);
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--eh-shadow-md);
}
.stu-history-wrap .stu-history-subject-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--eh-gray-200);
}
.stu-history-wrap .stu-history-subject-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--eh-gray-800);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.stu-history-wrap .stu-history-subject-count {
  background: var(--eh-primary-light);
  color: var(--eh-primary);
  padding: 4px 12px;
  border-radius: var(--eh-radius-full);
  font-size: 1.3rem;
  font-weight: 600;
}
.stu-history-wrap .stu-history-exam-list { display: grid; gap: 1rem; }
.stu-history-wrap .stu-history-exam-item {
  background: var(--eh-gray-50);
  border: 2px solid var(--eh-gray-200);
  border-radius: var(--eh-radius-md);
  padding: 1.5rem;
  transition: var(--eh-transition-base);
  cursor: pointer;
}
.stu-history-wrap .stu-history-exam-item:hover {
  border-color: var(--eh-primary);
  box-shadow: var(--eh-shadow-md);
  transform: translateX(4px);
}
.stu-history-wrap .stu-history-exam-item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.stu-history-wrap .stu-history-exam-item-title {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--eh-gray-800);
}
.stu-history-wrap .stu-history-score-badge {
  padding: 6px 16px;
  border-radius: var(--eh-radius-full);
  font-size: 1.5rem;
  font-weight: 700;
  white-space: nowrap;
}
.stu-history-wrap .stu-history-score-excellent { background: var(--eh-success-light); color: var(--eh-success-dark); }
.stu-history-wrap .stu-history-score-good { background: var(--eh-primary-light); color: var(--eh-primary); }
.stu-history-wrap .stu-history-score-fair { background: var(--eh-warning-light); color: var(--eh-warning); }
.stu-history-wrap .stu-history-score-poor { background: var(--eh-danger-light); color: var(--eh-danger); }
.stu-history-wrap .stu-history-exam-item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 1.4rem;
  color: var(--eh-gray-600);
}
.stu-history-wrap .stu-history-exam-item-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}
.stu-history-wrap .stu-history-exam-item-footer {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--eh-gray-300);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.stu-history-wrap .stu-history-exam-stats {
  font-size: 1.3rem;
  color: var(--eh-gray-500);
}
.stu-history-wrap .stu-history-view-btn {
  background: var(--eh-primary);
  color: var(--eh-white);
  padding: 8px 20px;
  border-radius: var(--eh-radius-md);
  border: none;
  font-size: 1.4rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--eh-transition-base);
  text-decoration: none;
  display: inline-block;
}
.stu-history-wrap .stu-history-view-btn:hover {
  background: var(--eh-primary-hover);
  transform: translateY(-2px);
}
.stu-history-wrap .stu-history-empty {
  text-align: center;
  padding: 3rem;
  color: var(--eh-gray-500);
}
.stu-history-wrap .stu-history-empty-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
}
.stu-history-wrap .stu-history-empty-text {
  font-size: 1.6rem;
  color: var(--eh-gray-600);
}
@media (max-width: 768px) {
  .stu-history-wrap .stu-history-stats-grid { grid-template-columns: 1fr; }
  .stu-history-wrap .stu-history-exam-item-header { flex-direction: column; }
  .stu-history-wrap .stu-history-exam-item-footer {
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
  }
}

/* =====================================================
   STUDENT_EXAM_RESULT.PHP
   ===================================================== */
.stu-result-wrap {
  max-width: 700px;
  margin: 1.5rem auto;
  padding: 1.5rem;
  --sr-primary: var(--primary);
  --sr-primary-hover: var(--primary-dark);
  --sr-primary-light: var(--primary-mist);
  --sr-primary-dark: var(--primary-dark);
  --sr-success: var(--green-500);
  --sr-success-light: var(--green-100);
  --sr-success-dark: var(--green-700);
  --sr-white: var(--white);
  --sr-gray-100: var(--gray-100);
  --sr-gray-500: var(--gray-500);
  --sr-gray-700: var(--gray-700);
  --sr-gray-800: var(--gray-800);
  --sr-radius-md: 0.5rem;
  --sr-radius-lg: 1.5rem;
  --sr-radius-full: 9999px;
  --sr-shadow-lg: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -2px rgba(0,0,0,.05);
  --sr-transition-base: 250ms ease-in-out;
}
.stu-result-wrap .stu-result-spacer { text-align: right; margin-bottom: 2rem; }
.stu-result-wrap .stu-result-card {
  background: var(--sr-white);
  border-radius: var(--sr-radius-lg);
  padding: 3rem;
  text-align: center;
  box-shadow: var(--sr-shadow-lg);
}
.stu-result-wrap .stu-result-trophy {
  font-size: 6rem;
  margin-bottom: 1rem;
  color: var(--sr-primary);
}
.stu-result-wrap .stu-result-title {
  font-size: 1.875rem;
  font-weight: bold;
  color: var(--sr-gray-800);
  margin-bottom: 1rem;
}
.stu-result-wrap .stu-result-exam-name {
  font-size: 1.7rem;
  color: var(--sr-gray-500);
  margin-bottom: 1.5rem;
}
.stu-result-wrap .stu-result-score-display {
  background: var(--sr-primary-light);
  color: var(--sr-primary-dark);
  padding: 3rem;
  border-radius: var(--sr-radius-lg);
  margin-bottom: 2rem;
}
.stu-result-wrap .stu-result-score-number {
  font-size: 4rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}
.stu-result-wrap .stu-result-score-label {
  font-size: 1.7rem;
  opacity: 0.9;
}
.stu-result-wrap .stu-result-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}
.stu-result-wrap .stu-result-stat-box {
  background: var(--sr-gray-100);
  padding: 1rem;
  border-radius: var(--sr-radius-md);
}
.stu-result-wrap .stu-result-stat-number {
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--sr-gray-800);
}
.stu-result-wrap .stu-result-stat-label {
  font-size: 1.4rem;
  color: var(--sr-gray-500);
  margin-top: 0.5rem;
}
.stu-result-wrap .stu-result-perf-badge {
  display: inline-block;
  padding: 1rem 3rem;
  border-radius: var(--sr-radius-full);
  font-size: 1.7rem;
  font-weight: bold;
  background: var(--sr-success-light);
  color: var(--sr-success-dark);
  margin-bottom: 2rem;
}
.stu-result-wrap .stu-result-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
}
.stu-result-wrap .stu-result-btn {
  padding: 0.75rem 2rem;
  border: none;
  border-radius: var(--sr-radius-full);
  font-size: 1.4rem;
  font-weight: bold;
  cursor: pointer;
  transition: var(--sr-transition-base);
  text-decoration: none;
  display: inline-block;
}
.stu-result-wrap .stu-result-btn-primary {
  background: var(--sr-primary);
  color: var(--sr-white);
}
.stu-result-wrap .stu-result-btn-primary:hover {
  background: var(--sr-primary-hover);
  transform: scale(1.05);
}
@media (max-width: 768px) {
  .stu-result-wrap .stu-result-stats-grid { grid-template-columns: 1fr; }
  .stu-result-wrap .stu-result-actions { flex-direction: column; }
}

/* =====================================================
   STUDENT_EXAM_REVIEW.PHP
   ===================================================== */
.stu-review-wrap {
  max-width: 1000px;
  margin: 2rem auto;
  padding: 1.5rem;
  --rv-primary: var(--primary);
  --rv-primary-dark: var(--primary-dark);
  --rv-success: var(--green-500);
  --rv-success-light: var(--green-100);
  --rv-success-dark: var(--green-700);
  --rv-danger: #ef4444;
  --rv-danger-light: #fee2e2;
  --rv-danger-dark: #dc2626;
  --rv-warning: var(--amber-500);
  --rv-warning-light: var(--amber-100);
  --rv-white: var(--white);
  --rv-gray-50: var(--gray-50);
  --rv-gray-100: var(--gray-100);
  --rv-gray-200: var(--gray-200);
  --rv-gray-300: var(--gray-300);
  --rv-gray-500: var(--gray-500);
  --rv-gray-600: var(--gray-600);
  --rv-gray-700: var(--gray-700);
  --rv-gray-800: var(--gray-800);
  --rv-radius-md: 0.5rem;
  --rv-radius-lg: 0.75rem;
  --rv-radius-xl: 1rem;
  --rv-shadow-sm: 0 1px 2px 0 rgba(0,0,0,.05);
  --rv-shadow-md: 0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -1px rgba(0,0,0,.06);
  --rv-shadow-lg: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -2px rgba(0,0,0,.05);
  --rv-transition-base: 250ms ease-in-out;
}
.stu-review-wrap .stu-review-spacer { text-align: right; margin-bottom: 2rem; }
.stu-review-wrap .stu-review-header {
  background: var(--rv-primary);
  color: var(--rv-white);
  border-radius: var(--rv-radius-xl);
  padding: 3rem;
  margin-bottom: 2rem;
  box-shadow: var(--rv-shadow-lg);
}
.stu-review-wrap .stu-review-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.stu-review-wrap .stu-review-subtitle {
  font-size: 1.5rem;
  opacity: 0.9;
  margin-bottom: 1.5rem;
}
.stu-review-wrap .stu-review-score-section {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.stu-review-wrap .stu-review-score-circle {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--rv-white);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  box-shadow: var(--rv-shadow-md);
  flex-shrink: 0;
}
.stu-review-wrap .stu-review-score-value {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--rv-primary);
}
.stu-review-wrap .stu-review-score-label {
  font-size: 1.3rem;
  color: var(--rv-gray-600);
  font-weight: 600;
}
.stu-review-wrap .stu-review-stats-row {
  display: flex;
  gap: 1.5rem;
  flex: 1;
  flex-wrap: wrap;
}
.stu-review-wrap .stu-review-stat-item { flex: 1; min-width: 120px; }
.stu-review-wrap .stu-review-stat-item-value {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}
.stu-review-wrap .stu-review-stat-item-label {
  font-size: 1.3rem;
  opacity: 0.9;
}
.stu-review-wrap .stu-review-actions {
  margin-bottom: 2rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.stu-review-wrap .stu-review-btn {
  padding: 12px 24px;
  border-radius: var(--rv-radius-md);
  border: none;
  font-size: 1.5rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--rv-transition-base);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.stu-review-wrap .stu-review-btn-primary {
  background: var(--rv-primary);
  color: var(--rv-white);
}
.stu-review-wrap .stu-review-btn-primary:hover {
  background: var(--rv-primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--rv-shadow-md);
}
.stu-review-wrap .stu-review-btn-secondary {
  background: var(--rv-gray-200);
  color: var(--rv-gray-700);
}
.stu-review-wrap .stu-review-btn-secondary:hover { background: var(--rv-gray-300); }
.stu-review-wrap .stu-review-question-card {
  background: var(--rv-white);
  border-radius: var(--rv-radius-lg);
  padding: 2rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--rv-shadow-md);
  border-left: 4px solid var(--rv-gray-300);
}
.stu-review-wrap .stu-review-question-card.correct {
  border-left-color: var(--rv-success);
  background: var(--rv-success-light);
}
.stu-review-wrap .stu-review-question-card.wrong {
  border-left-color: var(--rv-danger);
  background: var(--rv-danger-light);
}
.stu-review-wrap .stu-review-question-card.unanswered {
  border-left-color: var(--rv-warning);
  background: var(--rv-warning-light);
}
.stu-review-wrap .stu-review-question-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
  gap: 1rem;
}
.stu-review-wrap .stu-review-question-number {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--rv-gray-600);
}
.stu-review-wrap .stu-review-status-badge {
  padding: 6px 16px;
  border-radius: 9999px;
  font-size: 1.3rem;
  font-weight: 700;
  white-space: nowrap;
}
.stu-review-wrap .stu-review-badge-correct { background: var(--rv-success); color: var(--rv-white); }
.stu-review-wrap .stu-review-badge-wrong { background: var(--rv-danger); color: var(--rv-white); }
.stu-review-wrap .stu-review-badge-unanswered { background: var(--rv-warning); color: var(--rv-white); }
.stu-review-wrap .stu-review-question-text {
  font-size: 1.6rem;
  color: var(--rv-gray-800);
  margin-bottom: 1.5rem;
  line-height: 1.6;
  font-weight: 500;
}
.stu-review-wrap .stu-review-question-image {
  max-width: 100%;
  border-radius: var(--rv-radius-md);
  margin: 1rem 0;
}
.stu-review-wrap .stu-review-options { display: grid; gap: 1rem; margin-top: 1.5rem; }
.stu-review-wrap .stu-review-option {
  padding: 1rem;
  border-radius: var(--rv-radius-md);
  border: 2px solid var(--rv-gray-200);
  background: var(--rv-gray-50);
  display: flex;
  gap: 0.5rem;
  font-size: 1.5rem;
}
.stu-review-wrap .stu-review-option.correct-answer {
  border-color: var(--rv-success);
  background: var(--rv-success-light);
}
.stu-review-wrap .stu-review-option.student-wrong {
  border-color: var(--rv-danger);
  background: var(--rv-danger-light);
}
.stu-review-wrap .stu-review-option-label {
  font-weight: 700;
  color: var(--rv-gray-700);
  min-width: 30px;
}
.stu-review-wrap .stu-review-option.correct-answer .stu-review-option-label { color: var(--rv-success-dark); }
.stu-review-wrap .stu-review-option.student-wrong .stu-review-option-label { color: var(--rv-danger-dark); }
.stu-review-wrap .stu-review-option-text { flex: 1; color: var(--rv-gray-800); }
.stu-review-wrap .stu-review-option-image {
  max-width: 200px;
  margin-top: 0.5rem;
  border-radius: 0.375rem;
}
.stu-review-wrap .stu-review-option-icon {
  font-size: 1.6rem;
  margin-left: auto;
}
.stu-review-wrap .stu-review-filter {
  background: var(--rv-white);
  border-radius: var(--rv-radius-lg);
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: var(--rv-shadow-sm);
}
.stu-review-wrap .stu-review-filter-label {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--rv-gray-700);
  margin-bottom: 0.5rem;
}
.stu-review-wrap .stu-review-filter-buttons {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.stu-review-wrap .stu-review-filter-btn {
  padding: 8px 20px;
  border-radius: var(--rv-radius-md);
  border: 2px solid var(--rv-gray-300);
  background: var(--rv-white);
  color: var(--rv-gray-700);
  font-size: 1.4rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--rv-transition-base);
}
.stu-review-wrap .stu-review-filter-btn:hover {
  border-color: var(--rv-primary);
  color: var(--rv-primary);
}
.stu-review-wrap .stu-review-filter-btn.active {
  background: var(--rv-primary);
  color: var(--rv-white);
  border-color: var(--rv-primary);
}
.stu-review-wrap .stu-review-answer-summary {
  margin-top: 1rem;
  padding: 1rem;
  background: var(--rv-gray-100);
  border-radius: var(--rv-radius-md);
  font-size: 1.4rem;
}
.stu-review-wrap .stu-review-answer-summary strong { color: var(--rv-gray-700); }
.stu-review-wrap .stu-review-answer-summary .stu-review-yours { color: var(--rv-danger); font-weight: 600; }
.stu-review-wrap .stu-review-answer-summary .stu-review-correct { color: var(--rv-success); font-weight: 600; }
@media (max-width: 768px) {
  .stu-review-wrap .stu-review-score-section {
    flex-direction: column;
    align-items: flex-start;
  }
  .stu-review-wrap .stu-review-stats-row { width: 100%; }
}

/* =====================================================
   STUDENT_FLASHCARD_STUDY.PHP
   ===================================================== */
.stu-flash-study-wrap {
  max-width: 800px;
  margin: 2rem auto;
  padding: 1.5rem;
  --fs-primary: var(--primary);
  --fs-primary-hover: var(--primary-dark);
  --fs-primary-light: var(--primary-mist);
  --fs-primary-dark: var(--primary-dark);
  --fs-success: var(--green-500);
  --fs-success-hover: var(--green-600);
  --fs-danger: #ef4444;
  --fs-danger-hover: #dc2626;
  --fs-white: var(--white);
  --fs-gray-100: var(--gray-100);
  --fs-gray-200: var(--gray-200);
  --fs-gray-500: var(--gray-500);
  --fs-gray-700: var(--gray-700);
  --fs-gray-800: var(--gray-800);
  --fs-gray-900: var(--gray-900);
  --fs-radius-md: 0.5rem;
  --fs-radius-lg: 1.5rem;
  --fs-radius-xl: 1rem;
  --fs-radius-full: 9999px;
  --fs-shadow-sm: 0 1px 2px 0 rgba(0,0,0,.05);
  --fs-shadow-md: 0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -1px rgba(0,0,0,.06);
  --fs-shadow-lg: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -2px rgba(0,0,0,.05);
  --fs-transition-base: 250ms ease-in-out;
}
.stu-flash-study-wrap .stu-flash-spacer { text-align: right; margin-bottom: 2rem; }
.stu-flash-study-wrap .stu-flash-header {
  background: var(--fs-gray-900);
  color: var(--fs-white);
  padding: 1.5rem;
  border-radius: var(--fs-radius-lg);
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--fs-shadow-md);
  flex-wrap: wrap;
  gap: 1rem;
}
.stu-flash-study-wrap .stu-flash-header-title {
  font-size: 1.7rem;
  font-weight: 700;
}
.stu-flash-study-wrap .stu-flash-progress {
  font-size: 1.6rem;
  color: var(--fs-gray-200);
}
.stu-flash-study-wrap .stu-flash-card-wrapper {
  perspective: 1000px;
  margin-bottom: 1.5rem;
}
.stu-flash-study-wrap .stu-flash-card {
  background: var(--fs-white);
  border-radius: var(--fs-radius-xl);
  padding: 3rem;
  min-height: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  box-shadow: var(--fs-shadow-lg);
  cursor: pointer;
  transition: transform 0.6s ease;
  transform-style: preserve-3d;
  position: relative;
}
.stu-flash-study-wrap .stu-flash-card.flipped { transform: rotateY(180deg); }
.stu-flash-study-wrap .stu-flash-card-face {
  backface-visibility: hidden;
  position: absolute;
  width: 100%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 3rem;
}
.stu-flash-study-wrap .stu-flash-card-back {
  transform: translate(-50%, -50%) rotateY(180deg);
}
.stu-flash-study-wrap .stu-flash-label {
  background: var(--fs-primary);
  color: var(--fs-white);
  padding: 0.5rem 1.5rem;
  border-radius: var(--fs-radius-full);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  display: inline-block;
}
.stu-flash-study-wrap .stu-flash-content {
  font-size: 1.7rem;
  color: var(--fs-gray-800);
  line-height: 1.7;
  margin-bottom: 1rem;
}
.stu-flash-study-wrap .stu-flash-hint {
  background: var(--fs-primary-light);
  border-left: 4px solid var(--fs-primary);
  padding: 1.5rem;
  border-radius: 0.5rem;
  margin-top: 1rem;
  font-size: 1.6rem;
  color: var(--fs-gray-700);
  text-align: left;
}
.stu-flash-study-wrap .stu-flash-flip-hint {
  font-size: 1.5rem;
  color: var(--fs-gray-500);
  margin-top: 1rem;
}
.stu-flash-study-wrap .stu-flash-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 1.5rem;
}
.stu-flash-study-wrap .stu-flash-btn {
  padding: 1rem 3rem;
  border: none;
  border-radius: var(--fs-radius-lg);
  cursor: pointer;
  font-size: 1.6rem;
  font-weight: 600;
  transition: transform 150ms, background 150ms, box-shadow 150ms;
  box-shadow: var(--fs-shadow-sm);
}
.stu-flash-study-wrap .stu-flash-btn:active { transform: scale(0.97); }
.stu-flash-study-wrap .stu-flash-btn-correct { background: var(--fs-success); color: var(--fs-white); }
.stu-flash-study-wrap .stu-flash-btn-correct:hover { background: var(--fs-success-hover); box-shadow: var(--fs-shadow-md); }
.stu-flash-study-wrap .stu-flash-btn-wrong { background: var(--fs-danger); color: var(--fs-white); }
.stu-flash-study-wrap .stu-flash-btn-wrong:hover { background: var(--fs-danger-hover); box-shadow: var(--fs-shadow-md); }
.stu-flash-study-wrap .stu-flash-btn-flip { background: var(--fs-primary); color: var(--fs-white); }
.stu-flash-study-wrap .stu-flash-btn-flip:hover { background: var(--fs-primary-hover); box-shadow: var(--fs-shadow-md); }
.stu-flash-study-wrap .stu-flash-completion {
  background: var(--fs-white);
  border-radius: var(--fs-radius-xl);
  padding: 3rem;
  text-align: center;
  box-shadow: var(--fs-shadow-lg);
}
.stu-flash-study-wrap .stu-flash-completion-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
}
.stu-flash-study-wrap .stu-flash-completion-title {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--fs-gray-800);
  margin-bottom: 0.5rem;
}
.stu-flash-study-wrap .stu-flash-completion-text {
  color: var(--gray-600);
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
}
.stu-flash-study-wrap .stu-flash-completion-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 2rem 0;
}
.stu-flash-study-wrap .stu-flash-completion-stat {
  background: var(--fs-gray-100);
  padding: 1.5rem;
  border-radius: var(--fs-radius-lg);
}
.stu-flash-study-wrap .stu-flash-completion-stat-num {
  font-size: 2rem;
  font-weight: 700;
  color: var(--fs-gray-900);
}
.stu-flash-study-wrap .stu-flash-completion-stat-lbl {
  font-size: 1.3rem;
  color: var(--fs-gray-500);
  margin-top: 0.5rem;
}
.stu-flash-study-wrap .stu-flash-completion-actions {
  margin-top: 3rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.stu-flash-study-wrap .stu-flash-completion-actions .stu-flash-btn {
  text-decoration: none;
  display: inline-block;
}
.stu-flash-study-wrap .stu-flash-flip-standalone {
  display: block;
  width: 200px;
  margin: 0 auto 2rem;
}
@media (max-width: 768px) {
  .stu-flash-study-wrap { padding: 1rem; }
  .stu-flash-study-wrap .stu-flash-card { padding: 1.5rem; min-height: 240px; }
  .stu-flash-study-wrap .stu-flash-card-face { padding: 1.5rem; }
  .stu-flash-study-wrap .stu-flash-content { font-size: 1.8rem; }
  .stu-flash-study-wrap .stu-flash-actions { flex-direction: column; }
  .stu-flash-study-wrap .stu-flash-btn { width: 100%; }
  .stu-flash-study-wrap .stu-flash-flip-standalone { width: 100%; }
}

/* =====================================================
   STUDENT_GAMES.PHP
   ===================================================== */
.stu-games-wrap {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 1.5rem;
  --sg-primary: var(--primary);
  --sg-primary-light: var(--primary-mist);
  --sg-success: var(--green-500);
  --sg-success-hover: var(--green-600);
  --sg-success-light: var(--green-100);
  --sg-success-dark: var(--green-700);
  --sg-warning: var(--amber-500);
  --sg-warning-hover: var(--amber-600);
  --sg-warning-light: var(--amber-100);
  --sg-danger: #ef4444;
  --sg-danger-hover: #dc2626;
  --sg-danger-light: #fee2e2;
  --sg-white: var(--white);
  --sg-gray-50: var(--gray-50);
  --sg-gray-100: var(--gray-100);
  --sg-gray-200: var(--gray-200);
  --sg-gray-500: var(--gray-500);
  --sg-gray-600: var(--gray-600);
  --sg-gray-700: var(--gray-700);
  --sg-gray-800: var(--gray-800);
  --sg-radius-md: 0.5rem;
  --sg-radius-lg: 1.5rem;
  --sg-radius-xl: 1rem;
  --sg-radius-full: 9999px;
  --sg-shadow-sm: 0 1px 2px 0 rgba(0,0,0,.05);
  --sg-shadow-md: 0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -1px rgba(0,0,0,.06);
  --sg-shadow-lg: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -2px rgba(0,0,0,.05);
  --sg-shadow-xl: 0 20px 25px -5px rgba(0,0,0,.1), 0 10px 10px -5px rgba(0,0,0,.04);
  --sg-transition-base: 250ms ease-in-out;
}
.stu-games-wrap .stu-games-spacer { text-align: right; margin-bottom: 2rem; }
.stu-games-wrap .stu-games-header {
  background: var(--sg-primary);
  color: var(--sg-white);
  padding: 3rem;
  border-radius: var(--sg-radius-xl);
  margin-bottom: 2rem;
  text-align: center;
  box-shadow: var(--sg-shadow-lg);
}
.stu-games-wrap .stu-games-header-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.stu-games-wrap .stu-games-header-sub {
  font-size: 1.7rem;
  opacity: 0.9;
}
.stu-games-wrap .stu-games-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}
.stu-games-wrap .stu-games-stat-card {
  background: var(--sg-white);
  padding: 1.5rem;
  border-radius: var(--sg-radius-lg);
  text-align: center;
  box-shadow: var(--sg-shadow-sm);
}
.stu-games-wrap .stu-games-stat-num {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--sg-gray-800);
}
.stu-games-wrap .stu-games-stat-lbl {
  font-size: 1.4rem;
  color: var(--sg-gray-500);
  margin-top: 0.5rem;
}
.stu-games-wrap .stu-games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}
.stu-games-wrap .stu-game-card {
  background: var(--sg-white);
  border-radius: var(--sg-radius-xl);
  padding: 2rem;
  box-shadow: var(--sg-shadow-md);
  transition: transform var(--sg-transition-base), box-shadow var(--sg-transition-base);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
}
.stu-games-wrap .stu-game-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--sg-shadow-xl);
}
.stu-games-wrap .stu-game-icon {
  font-size: 3.5rem;
  text-align: center;
  margin-bottom: 1rem;
}
.stu-games-wrap .stu-game-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--sg-gray-800);
  margin-bottom: 0.5rem;
  text-align: center;
}
.stu-games-wrap .stu-game-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 1rem;
}
.stu-games-wrap .stu-game-meta-badge {
  background: var(--sg-gray-100);
  padding: 1rem 1.5rem;
  border-radius: var(--sg-radius-full);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--sg-gray-700);
}
.stu-games-wrap .stu-game-difficulty {
  padding: 1rem 1.5rem;
  border-radius: var(--sg-radius-full);
  font-size: 1.3rem;
  font-weight: 700;
}
.stu-games-wrap .stu-game-difficulty-easy { background: var(--sg-success-light); color: var(--sg-success-dark); }
.stu-games-wrap .stu-game-difficulty-medium { background: var(--sg-warning-light); color: var(--sg-warning-hover); }
.stu-games-wrap .stu-game-difficulty-hard { background: var(--sg-danger-light); color: var(--sg-danger-hover); }
.stu-games-wrap .stu-game-stats {
  background: var(--sg-gray-50);
  padding: 1rem;
  border-radius: var(--sg-radius-md);
  margin-bottom: 1rem;
}
.stu-games-wrap .stu-game-stat-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
  font-size: 1.4rem;
  color: var(--sg-gray-700);
}
.stu-games-wrap .stu-game-stat-row:last-child { margin-bottom: 0; }
.stu-games-wrap .stu-game-best {
  background: var(--sg-warning-light);
  border: 1px solid var(--sg-warning);
  padding: 1rem;
  border-radius: var(--sg-radius-md);
  text-align: center;
  margin-bottom: 1rem;
}
.stu-games-wrap .stu-game-best-lbl {
  font-size: 1.3rem;
  color: var(--sg-gray-600);
}
.stu-games-wrap .stu-game-best-val {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--sg-warning-hover);
}
.stu-games-wrap .stu-game-play {
  background: var(--sg-success);
  color: var(--sg-white);
  padding: 0.5rem 2rem;
  border-radius: var(--sg-radius-full);
  text-align: center;
  font-weight: 700;
  border: none;
  cursor: pointer;
  width: 100%;
  font-size: 1.7rem;
  transition: background var(--sg-transition-base), transform var(--sg-transition-base);
}
.stu-games-wrap .stu-game-play:hover {
  background: var(--sg-success-hover);
  transform: scale(1.04);
}
.stu-games-wrap .stu-games-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--sg-gray-500);
  background: var(--sg-white);
  border-radius: var(--sg-radius-xl);
  box-shadow: var(--sg-shadow-sm);
}
.stu-games-wrap .stu-games-empty-icon {
  font-size: 8rem;
  margin-bottom: 2rem;
}
@media (max-width: 768px) {
  .stu-games-wrap { padding: 1rem; }
  .stu-games-wrap .stu-games-grid { grid-template-columns: 1fr; }
  .stu-games-wrap .stu-games-header-title { font-size: 1.5rem; }
}

/* =====================================================
   SECTION 74: TEACHER EXAM RESULTS
   ===================================================== */
.tch-er-wrap * { box-sizing: border-box; }
.tch-er-wrap {
  --tch-er-primary: var(--primary);
  --tch-er-primary-hover: var(--primary-dark);
  --tch-er-primary-light: var(--primary-mist);
  --tch-er-primary-dark: var(--primary-dark);
  --tch-er-success: var(--green-500);
  --tch-er-success-hover: var(--green-600);
  --tch-er-success-light: var(--green-100);
  --tch-er-success-dark: var(--green-700);
  --tch-er-warning: var(--amber-500);
  --tch-er-warning-hover: var(--amber-600);
  --tch-er-warning-light: var(--amber-100);
  --tch-er-danger: #ef4444;
  --tch-er-danger-light: #fee2e2;
  --tch-er-info: #0ea5e9;
  --tch-er-info-light: var(--primary-mist);
  --tch-er-spacing-xs: 0.5rem;
  --tch-er-spacing-sm: 0.75rem;
  --tch-er-spacing-md: 1rem;
  --tch-er-spacing-lg: 1.5rem;
  --tch-er-spacing-xl: 2rem;
  --tch-er-spacing-2xl: 3rem;
  --tch-er-radius-sm: 0.375rem;
  --tch-er-radius-md: 0.5rem;
  --tch-er-radius-lg: 0.75rem;
  --tch-er-radius-xl: 1rem;
  --tch-er-radius-full: 9999px;
}
.tch-er-wrap .tch-er-container { max-width: 1400px; margin: var(--tch-er-spacing-xl) auto; padding: var(--tch-er-spacing-lg); }
.tch-er-wrap .tch-er-header-card {
  background: var(--tch-er-primary);
  color: var(--white);
  border-radius: var(--tch-er-radius-xl);
  padding: var(--tch-er-spacing-2xl);
  margin-bottom: var(--tch-er-spacing-xl);
  box-shadow: var(--shadow-lg);
}
.tch-er-wrap .tch-er-header-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--tch-er-spacing-lg);
  gap: var(--tch-er-spacing-lg);
  flex-wrap: wrap;
}
.tch-er-wrap .tch-er-header-title { font-size: 2.2rem; font-weight: 700; margin-bottom: var(--tch-er-spacing-sm); }
.tch-er-wrap .tch-er-exam-code-display {
  background: rgba(255, 255, 255, 0.2);
  padding: var(--tch-er-spacing-md) var(--tch-er-spacing-xl);
  border-radius: var(--tch-er-radius-md);
  border: 2px solid rgba(255, 255, 255, 0.3);
}
.tch-er-wrap .tch-er-exam-code-label { font-size: 1.2rem; opacity: 0.9; margin-bottom: var(--tch-er-spacing-xs); }
.tch-er-wrap .tch-er-exam-code-value {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  font-family: 'Courier New', monospace;
}
.tch-er-wrap .tch-er-copy-code-btn {
  background: rgba(255,255,255,.9);
  color: var(--tch-er-primary);
  border: none;
  padding: 6px 12px;
  border-radius: var(--tch-er-radius-sm);
  margin-left: var(--tch-er-spacing-sm);
  cursor: pointer;
  font-size: 1.3rem;
  font-weight: 600;
  transition: var(--t-base);
}
.tch-er-wrap .tch-er-copy-code-btn:hover { background: var(--white); }
.tch-er-wrap .tch-er-header-info { display: flex; gap: var(--tch-er-spacing-xl); flex-wrap: wrap; font-size: 1.5rem; }
.tch-er-wrap .tch-er-header-info span { display: flex; align-items: center; gap: var(--tch-er-spacing-xs); }
.tch-er-wrap .tch-er-header-meta { display: flex; gap: var(--tch-er-spacing-md); align-items: center; flex-wrap: wrap; }
.tch-er-wrap .tch-er-status-badge {
  padding: 6px 16px;
  border-radius: var(--tch-er-radius-full);
  font-size: 1.3rem;
  font-weight: 700;
  display: inline-block;
  margin-left: var(--tch-er-spacing-sm);
}
.tch-er-wrap .tch-er-status-active { background: var(--tch-er-success); color: var(--white); animation: tchErPulse 2s infinite; }
.tch-er-wrap .tch-er-status-ended { background: var(--gray-600); color: var(--white); }
.tch-er-wrap .tch-er-status-upcoming { background: var(--tch-er-warning); color: var(--white); }
@keyframes tchErPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.7; } }
.tch-er-wrap .tch-er-action-bar { display: flex; gap: var(--tch-er-spacing-md); margin-bottom: var(--tch-er-spacing-xl); flex-wrap: wrap; }
.tch-er-wrap .tch-er-btn {
  padding: 12px 24px;
  border-radius: var(--tch-er-radius-md);
  border: none;
  font-size: 1.5rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--t-base);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: var(--tch-er-spacing-sm);
}
.tch-er-wrap .tch-er-btn-primary { background: var(--tch-er-primary); color: var(--white); }
.tch-er-wrap .tch-er-btn-primary:hover { background: var(--tch-er-primary-hover); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.tch-er-wrap .tch-er-btn-success { background: var(--tch-er-success); color: var(--white); }
.tch-er-wrap .tch-er-btn-success:hover { background: var(--tch-er-success-hover); transform: translateY(-2px); }
.tch-er-wrap .tch-er-btn-info { background: var(--tch-er-info); color: var(--white); }
.tch-er-wrap .tch-er-btn-info:hover { background: var(--primary); transform: translateY(-2px); }
.tch-er-wrap .tch-er-btn-secondary { background: var(--gray-200); color: var(--text); }
.tch-er-wrap .tch-er-btn-secondary:hover { background: var(--gray-300); }
.tch-er-wrap .tch-er-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--tch-er-spacing-lg);
  margin-bottom: var(--tch-er-spacing-xl);
}
.tch-er-wrap .tch-er-stat-card {
  background: var(--white);
  border-radius: var(--tch-er-radius-lg);
  padding: var(--tch-er-spacing-xl);
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: var(--t-base);
}
.tch-er-wrap .tch-er-stat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.tch-er-wrap .tch-er-stat-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--tch-er-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto var(--tch-er-spacing-md);
}
.tch-er-wrap .tch-er-stat-icon-primary { background: var(--tch-er-primary-light); color: var(--tch-er-primary); }
.tch-er-wrap .tch-er-stat-icon-success { background: var(--tch-er-success-light); color: var(--tch-er-success); }
.tch-er-wrap .tch-er-stat-icon-warning { background: var(--tch-er-warning-light); color: var(--tch-er-warning); }
.tch-er-wrap .tch-er-stat-icon-danger { background: var(--tch-er-danger-light); color: var(--tch-er-danger); }
.tch-er-wrap .tch-er-stat-icon-info { background: var(--tch-er-info-light); color: var(--tch-er-info); }
.tch-er-wrap .tch-er-stat-number { font-size: 2.5rem; font-weight: 700; color: var(--gray-900); margin-bottom: var(--tch-er-spacing-xs); }
.tch-er-wrap .tch-er-stat-label { font-size: 1.4rem; color: var(--gray-600); font-weight: 500; }
.tch-er-wrap .tch-er-grade-distribution {
  background: var(--white);
  border-radius: var(--tch-er-radius-lg);
  padding: var(--tch-er-spacing-xl);
  margin-bottom: var(--tch-er-spacing-xl);
  box-shadow: var(--shadow-md);
}
.tch-er-wrap .tch-er-section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: var(--tch-er-spacing-lg);
  display: flex;
  align-items: center;
  gap: var(--tch-er-spacing-sm);
}
.tch-er-wrap .tch-er-grade-bars { display: grid; gap: var(--tch-er-spacing-md); }
.tch-er-wrap .tch-er-grade-bar-item { display: flex; align-items: center; gap: var(--tch-er-spacing-md); }
.tch-er-wrap .tch-er-grade-label { min-width: 100px; font-size: 1.4rem; font-weight: 600; color: var(--gray-700); }
.tch-er-wrap .tch-er-grade-bar-container {
  flex: 1;
  height: 30px;
  background: var(--bg-alt);
  border-radius: var(--tch-er-radius-md);
  overflow: hidden;
  position: relative;
}
.tch-er-wrap .tch-er-grade-bar-fill {
  height: 100%;
  border-radius: var(--tch-er-radius-md);
  display: flex;
  align-items: center;
  padding: 0 var(--tch-er-spacing-sm);
  color: var(--white);
  font-size: 1.3rem;
  font-weight: 600;
  transition: width 0.5s ease-in-out;
  width: var(--bar-width, 0%);
}
.tch-er-wrap .tch-er-grade-bar-fill.tch-er-excellent { background: var(--tch-er-success); }
.tch-er-wrap .tch-er-grade-bar-fill.tch-er-good { background: var(--tch-er-primary); }
.tch-er-wrap .tch-er-grade-bar-fill.tch-er-average { background: var(--tch-er-info); }
.tch-er-wrap .tch-er-grade-bar-fill.tch-er-fair { background: var(--tch-er-warning); }
.tch-er-wrap .tch-er-grade-bar-fill.tch-er-poor { background: var(--tch-er-danger); }
.tch-er-wrap .tch-er-grade-count { min-width: 60px; text-align: right; font-size: 1.5rem; font-weight: 700; color: var(--gray-700); }
.tch-er-wrap .tch-er-difficult-questions {
  background: var(--white);
  border-radius: var(--tch-er-radius-lg);
  padding: var(--tch-er-spacing-xl);
  margin-bottom: var(--tch-er-spacing-xl);
  box-shadow: var(--shadow-md);
}
.tch-er-wrap .tch-er-question-difficulty-item {
  padding: var(--tch-er-spacing-md);
  background: var(--bg);
  border-radius: var(--tch-er-radius-md);
  margin-bottom: var(--tch-er-spacing-sm);
  border-left: 4px solid var(--tch-er-danger);
}
.tch-er-wrap .tch-er-difficulty-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--tch-er-spacing-xs);
  gap: var(--tch-er-spacing-sm);
  flex-wrap: wrap;
}
.tch-er-wrap .tch-er-question-preview { font-size: 1.4rem; color: var(--gray-700); font-weight: 500; }
.tch-er-wrap .tch-er-success-rate {
  font-size: 1.3rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--tch-er-radius-sm);
  background: var(--tch-er-danger-light);
  color: var(--tch-er-danger);
}
.tch-er-wrap .tch-er-difficulty-stats { font-size: 1.3rem; color: var(--gray-600); }
.tch-er-wrap .tch-er-card {
  background: var(--white);
  border-radius: var(--tch-er-radius-lg);
  padding: var(--tch-er-spacing-xl);
  box-shadow: var(--shadow-md);
}
.tch-er-wrap .tch-er-card h3 {
  margin: 0 0 var(--tch-er-spacing-lg);
  color: var(--gray-800);
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  gap: var(--tch-er-spacing-sm);
}
.tch-er-wrap .tch-er-table-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--tch-er-spacing-lg);
  gap: var(--tch-er-spacing-md);
  flex-wrap: wrap;
}
.tch-er-wrap .tch-er-search-box { flex: 1; min-width: 250px; max-width: 400px; }
.tch-er-wrap .tch-er-search-box input {
  width: 100%;
  padding: 10px 15px;
  border: 2px solid var(--gray-300);
  border-radius: var(--tch-er-radius-md);
  font-size: 1.5rem;
  font-family: inherit;
}
.tch-er-wrap .tch-er-search-box input:focus { outline: none; border-color: var(--tch-er-primary); }
.tch-er-wrap .tch-er-result-count-label { color: var(--gray-600); font-size: 1.4rem; }
.tch-er-wrap .tch-er-table-wrap { overflow-x: auto; }
.tch-er-wrap .tch-er-results-table { width: 100%; border-collapse: collapse; margin-top: var(--tch-er-spacing-lg); }
.tch-er-wrap .tch-er-results-table thead { background: var(--bg-alt); }
.tch-er-wrap .tch-er-results-table th {
  padding: var(--tch-er-spacing-md);
  text-align: left;
  font-weight: 700;
  color: var(--gray-700);
  font-size: 1.4rem;
  border-bottom: 2px solid var(--gray-300);
}
.tch-er-wrap .tch-er-results-table td {
  padding: var(--tch-er-spacing-md);
  border-bottom: 1px solid var(--border-light);
  font-size: 1.5rem;
}
.tch-er-wrap .tch-er-results-table tbody tr:hover { background: var(--bg); }
.tch-er-wrap .tch-er-rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  font-weight: 700;
  font-size: 1.4rem;
}
.tch-er-wrap .tch-er-rank-1 { background: #ffd700; color: var(--gray-800); }
.tch-er-wrap .tch-er-rank-2 { background: #c0c0c0; color: var(--gray-800); }
.tch-er-wrap .tch-er-rank-3 { background: #cd7f32; color: var(--white); }
.tch-er-wrap .tch-er-rank-other { background: var(--gray-200); color: var(--gray-700); }
.tch-er-wrap .tch-er-score-badge {
  padding: 6px 16px;
  border-radius: var(--tch-er-radius-full);
  font-weight: 700;
  font-size: 1.4rem;
  display: inline-block;
}
.tch-er-wrap .tch-er-score-excellent { background: var(--tch-er-success-light); color: var(--tch-er-success-dark); }
.tch-er-wrap .tch-er-score-good { background: var(--tch-er-primary-light); color: var(--tch-er-primary-dark); }
.tch-er-wrap .tch-er-score-fair { background: var(--tch-er-warning-light); color: var(--tch-er-warning); }
.tch-er-wrap .tch-er-score-poor { background: var(--tch-er-danger-light); color: var(--tch-er-danger); }
.tch-er-wrap .tch-er-action-link {
  color: var(--tch-er-primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.4rem;
  transition: var(--t-fast);
}
.tch-er-wrap .tch-er-action-link:hover { color: var(--tch-er-primary-dark); text-decoration: underline; }
.tch-er-wrap .tch-er-empty-state { text-align: center; padding: var(--tch-er-spacing-2xl); color: var(--gray-500); }
.tch-er-wrap .tch-er-empty-state-icon { font-size: 4rem; margin-bottom: var(--tch-er-spacing-md); }
.tch-er-wrap .tch-er-text-right { text-align: right; margin-bottom: 20px; }
@media print {
  .tch-er-wrap .tch-er-action-bar, .tch-er-wrap .tch-er-btn { display: none; }
  .tch-er-wrap .tch-er-header-card { background: var(--white); color: var(--gray-800); }
}
@media (max-width: 768px) {
  .tch-er-wrap .tch-er-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .tch-er-wrap .tch-er-header-top { flex-direction: column; }
  .tch-er-wrap .tch-er-results-table { font-size: 1.3rem; }
  .tch-er-wrap .tch-er-results-table th, .tch-er-wrap .tch-er-results-table td { padding: var(--tch-er-spacing-sm); }
}

/* =====================================================
   SECTION 75: TEACHER GAME LEADERBOARD (teacher_game_leaderboard.php)
   ===================================================== */
.tgl-page { font-size: 1.3rem; }
.tgl-page * { box-sizing: border-box; }
.tgl-page {
  --tgl-primary: var(--primary);
  --tgl-primary-hover: var(--primary-dark);
  --tgl-primary-light: var(--primary-mist);
  --tgl-primary-dark: var(--primary-dark);
  --tgl-success: var(--green-500);
  --tgl-success-light: var(--green-100);
  --tgl-success-dark: var(--green-700);
  --tgl-warning: var(--amber-500);
  --tgl-warning-dark: var(--amber-700);
  --tgl-danger: #ef4444;
  --tgl-white: var(--white);
  --tgl-gray-50: var(--gray-50);
  --tgl-gray-100: var(--gray-100);
  --tgl-gray-200: var(--gray-200);
  --tgl-gray-300: var(--gray-300);
  --tgl-gray-400: var(--gray-400);
  --tgl-gray-500: var(--gray-500);
  --tgl-gray-600: var(--gray-600);
  --tgl-gray-700: var(--gray-700);
  --tgl-gray-800: var(--gray-800);
  --tgl-gray-900: var(--gray-900);
  --tgl-shadow-sm: 0 1px 3px 0 4px 12px rgba(0,0,0,.08);
  --tgl-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px 0 2px 6px rgba(0,0,0,.06);
  --tgl-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --tgl-radius-sm: 0.375rem;
  --tgl-radius-md: 0.5rem;
  --tgl-radius-lg: 0.75rem;
  --tgl-radius-full: 9999px;
  --tgl-spacing-xs: 0.5rem;
  --tgl-spacing-sm: 0.75rem;
  --tgl-spacing-md: 1rem;
  --tgl-spacing-lg: 1.5rem;
  --tgl-spacing-xl: 2rem;
  --tgl-spacing-2xl: 3rem;
  --tgl-transition: 220ms cubic-bezier(0.4, 0, 0.2, 1);
}

.tgl-page .leaderboard-container {
  max-width: 1200px;
  margin: var(--tgl-spacing-xl) auto;
  padding: var(--tgl-spacing-lg);
}

.tgl-page .header-card {
  background: var(--tgl-primary);
  color: var(--tgl-white);
  padding: var(--tgl-spacing-xl);
  border-radius: var(--tgl-radius-lg);
  margin-bottom: var(--tgl-spacing-xl);
  box-shadow: var(--tgl-shadow-md);
}

.tgl-page .header-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0 0 var(--tgl-spacing-sm);
  line-height: 1.2;
}

.tgl-page .header-info {
  display: flex;
  flex-wrap: wrap;
  gap: var(--tgl-spacing-md);
  font-size: 1.3rem;
  opacity: 0.95;
}

.tgl-page .filter-section {
  background: var(--tgl-white);
  padding: var(--tgl-spacing-lg);
  border-radius: var(--tgl-radius-md);
  margin-bottom: var(--tgl-spacing-lg);
  box-shadow: var(--tgl-shadow-sm);
}

.tgl-page .filter-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--tgl-spacing-md);
}

.tgl-page .filter-row > div { display: flex; align-items: center; flex-wrap: wrap; gap: 0.5rem; }

.tgl-page .filter-label {
  font-weight: 700;
  margin-right: 0.5rem;
  font-size: 1.3rem;
  color: var(--tgl-gray-700);
}

.tgl-page .filter-select {
  padding: 0.6rem 1rem;
  border: 2px solid var(--tgl-gray-200);
  border-radius: var(--tgl-radius-md);
  font-size: 1.3rem;
  min-width: 200px;
  background: var(--tgl-white);
  color: var(--tgl-gray-900);
  cursor: pointer;
  font-family: inherit;
  transition: border-color var(--tgl-transition);
}
.tgl-page .filter-select:focus { outline: none; border-color: var(--tgl-primary); }

.tgl-page .filter-tag {
  background: var(--tgl-primary-light);
  color: var(--tgl-primary-dark);
  padding: 0.5rem 1rem;
  border-radius: var(--tgl-radius-full);
  font-size: 1.3rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.tgl-page .filter-tag a {
  margin-left: 0.3rem;
  color: var(--tgl-danger);
  text-decoration: none;
  font-weight: 700;
}

.tgl-page .stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--tgl-spacing-md);
  margin-bottom: var(--tgl-spacing-xl);
}

.tgl-page .stat-card {
  background: var(--tgl-white);
  padding: var(--tgl-spacing-lg);
  border-radius: var(--tgl-radius-md);
  text-align: center;
  box-shadow: var(--tgl-shadow-sm);
  border: 1px solid var(--tgl-gray-100);
  transition: transform var(--tgl-transition), box-shadow var(--tgl-transition);
}
.tgl-page .stat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--tgl-shadow-md);
}

.tgl-page .stat-number {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--tgl-primary);
  line-height: 1.1;
}

.tgl-page .stat-label {
  font-size: 1.3rem;
  color: var(--tgl-gray-500);
  margin-top: 0.4rem;
  font-weight: 500;
}

.tgl-page .card {
  background: var(--tgl-white);
  border-radius: var(--tgl-radius-lg);
  padding: var(--tgl-spacing-xl);
  box-shadow: var(--tgl-shadow-sm);
  border: 1px solid var(--tgl-gray-100);
}

.tgl-page .card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--tgl-spacing-md);
  flex-wrap: wrap;
  gap: 0.5rem;
}
.tgl-page .card-head h3 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--tgl-gray-800);
}

.tgl-page .table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-top: var(--tgl-spacing-md);
  border-radius: var(--tgl-radius-md);
  border: 1px solid var(--tgl-gray-100);
}

.tgl-page .leaderboard-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 700px;
}

.tgl-page .leaderboard-table th {
  background: var(--tgl-gray-800);
  color: var(--tgl-white);
  padding: 0.9rem 1rem;
  text-align: left;
  font-weight: 600;
  font-size: 1.3rem;
  white-space: nowrap;
}

.tgl-page .leaderboard-table td {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--tgl-gray-200);
  font-size: 1.3rem;
  color: var(--tgl-gray-700);
  vertical-align: middle;
}

.tgl-page .leaderboard-table tr:hover td { background: var(--tgl-gray-50); }
.tgl-page .leaderboard-table tbody tr:last-child td { border-bottom: none; }

.tgl-page .rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-weight: 700;
  color: var(--tgl-white);
  background: var(--tgl-primary);
  font-size: 1.3rem;
}
.tgl-page .rank-badge.gold   { background: var(--tgl-warning); }
.tgl-page .rank-badge.silver { background: var(--tgl-gray-400); }
.tgl-page .rank-badge.bronze { background: #cd7f32; }

.tgl-page .score-badge {
  background: var(--tgl-success);
  color: var(--tgl-white);
  padding: 0.4rem 0.9rem;
  border-radius: var(--tgl-radius-full);
  font-weight: 600;
  font-size: 1.3rem;
  display: inline-block;
  white-space: nowrap;
}

.tgl-page .btn {
  padding: 0.7rem 1.4rem;
  border: none;
  border-radius: var(--tgl-radius-md);
  cursor: pointer;
  font-size: 1.3rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--tgl-primary);
  color: var(--tgl-white);
  transition: background var(--tgl-transition), transform var(--tgl-transition);
  font-family: inherit;
}
.tgl-page .btn:hover {
  background: var(--tgl-primary-hover);
  transform: translateY(-1px);
  color: var(--tgl-white);
}
.tgl-page .btn-sm { padding: 0.5rem 1rem; font-size: 1.3rem; }
.tgl-page .btn-back {
  background: var(--tgl-gray-700);
  margin-top: var(--tgl-spacing-lg);
  text-align: center;
  display: inline-flex;
}
.tgl-page .btn-back:hover { background: var(--tgl-gray-800); }

.tgl-page .back-row { text-align: center; }

.tgl-page .empty-state {
  text-align: center;
  padding: var(--tgl-spacing-2xl) var(--tgl-spacing-lg);
  color: var(--tgl-gray-500);
  font-size: 1.3rem;
}
.tgl-page .empty-state h3 {
  margin: 0.5rem 0 0.5rem;
  font-size: 1.5rem;
  color: var(--tgl-gray-700);
}
.tgl-page .empty-state p { margin: 0 0 0.5rem; }
.tgl-page .empty-state .btn { margin-top: 1rem; }

.tgl-page .form-group {
  margin-bottom: var(--tgl-spacing-lg);
}
.tgl-page .form-group label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 600;
  color: var(--tgl-gray-700);
  font-size: 1.3rem;
}
.tgl-page .form-control {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 2px solid var(--tgl-gray-200);
  border-radius: var(--tgl-radius-md);
  font-size: 1.3rem;
  line-height: 1.5;
  color: var(--tgl-gray-900);
  background-color: var(--tgl-white);
  transition: border-color var(--tgl-transition), box-shadow var(--tgl-transition);
  font-family: inherit;
  min-height: 44px;
}
.tgl-page .form-control:focus {
  outline: none;
  border-color: var(--tgl-primary);
  box-shadow: 0 0 0 3px var(--tgl-primary-light);
}
.tgl-page .form-control:hover { border-color: var(--tgl-gray-300); }
.tgl-page textarea.form-control { min-height: 120px; resize: vertical; line-height: 1.6; }
.tgl-page select.form-control {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3E%3C/svg%3E");
  background-position: right 0.9rem center;
  background-repeat: no-repeat;
  background-size: 1.4em 1.4em;
  padding-right: 2.4rem;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}
.tgl-page select.form-control option { padding: 0.4rem; font-size: 1.3rem; }
.tgl-page .form-control::placeholder { color: var(--tgl-gray-400); opacity: 1; }

@media (max-width: 768px) {
  .tgl-page .header-title { font-size: 1.5rem; }
  .tgl-page .header-info { font-size: 1.2rem; }
  .tgl-page .leaderboard-container { padding: var(--tgl-spacing-md); }
  .tgl-page .card { padding: var(--tgl-spacing-md); }
  .tgl-page .stat-number { font-size: 1.6rem; }
  .tgl-page .filter-row { flex-direction: column; align-items: stretch; }
  .tgl-page .filter-select { width: 100%; }
  .tgl-page .btn { font-size: 1.2rem; padding: 0.6rem 1rem; }
}

@media (max-width: 480px) {
  .tgl-page .header-card { padding: var(--tgl-spacing-md); }
  .tgl-page .stats-grid { grid-template-columns: 1fr 1fr; }
  .tgl-page .stat-card { padding: var(--tgl-spacing-md); }
  .tgl-page .stat-number { font-size: 1.5rem; }
  .tgl-page .stat-label { font-size: 1.2rem; }
  .tgl-page .card-head h3 { font-size: 1.3rem; }
  .tgl-page .leaderboard-table th,
  .tgl-page .leaderboard-table td { padding: 0.6rem 0.5rem; font-size: 1.2rem; }
  .tgl-page .rank-badge { width: 32px; height: 32px; font-size: 1.2rem; }
}


/* =====================================================
   SECTION 76: TEACHER ID CARD MANAGEMENT (teacher_manage.php)
   ===================================================== */
.tc-wrap, .tc-wrap * { box-sizing: border-box !important; }
.tc-wrap { clear: both; float: none !important; position: relative; overflow-x: hidden; }
.tc-inner { clear: both; float: none !important; }
.tc-inner > * { float: none !important; width: auto; }
.tc-stats-grid, .tc-card { float: none !important; clear: both; }

.tc-wrap {
  --tc-primary: var(--primary);
  --tc-primary-hover: var(--primary-dark);
  --tc-primary-light: var(--primary-mist);
  --tc-primary-dark: var(--primary-dark);
  --tc-success: var(--green-500);
  --tc-success-light: var(--green-100);
  --tc-success-dark: var(--green-700);
  --tc-warning: var(--amber-500);
  --tc-warning-light: var(--amber-100);
  --tc-warning-dark: var(--amber-700);
  --tc-danger: #ef4444;
  --tc-danger-dark: #991b1b;
  --tc-white: var(--white);
  --tc-gray-50: var(--gray-50);
  --tc-gray-100: var(--gray-100);
  --tc-gray-200: var(--gray-200);
  --tc-gray-300: var(--gray-300);
  --tc-gray-400: var(--gray-400);
  --tc-gray-500: var(--gray-500);
  --tc-gray-600: var(--gray-600);
  --tc-gray-700: var(--gray-700);
  --tc-gray-800: var(--gray-800);
  --tc-gray-900: var(--gray-900);
  --tc-radius-sm: 0.25rem;
  --tc-radius-md: 0.5rem;
  --tc-radius-lg: 0.75rem;
  --tc-radius-xl: 1rem;
  --tc-radius-2xl: 1.25rem;
  --tc-radius-full: 9999px;
  --tc-shadow-sm: 0 1px 3px 0 4px 12px rgba(0,0,0,.08);
  --tc-shadow-md: 0 4px 12px 0 10px 28px rgba(0,0,0,.10);
  --tc-shadow-lg: 0 8px 24px 0 20px 50px rgba(0,0,0,.12);
  --tc-shadow-blue: 0 6px 20px rgba(37, 99, 235, 0.35);
  --tc-shadow-green: 0 6px 20px rgba(16,185,129,.35);
  --tc-shadow-red: 0 6px 20px rgba(239,68,68,.35);
  --tc-shadow-indigo: 0 6px 20px rgba(99, 102, 241, 0.35);
  --tc-transition: 220ms cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 1.3rem;
}

.tc-wrap, .tc-wrap *::before, .tc-wrap *::after { box-sizing: border-box; }

.tc-wrap {
  width: 100%;
  padding: 0;
  margin: 0;
  background: #f0f4ff;
  min-height: 80vh;
}

.tc-inner {
  max-width: 1260px;
  width: 100%;
  margin: 0 auto;
  padding: 1.5rem 1.25rem;
}

.tc-alert {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.9rem 1.1rem;
  margin-bottom: 1.25rem;
  border-radius: var(--tc-radius-lg);
  font-size: 1.3rem;
  font-weight: 500;
  border-left: 4px solid;
  box-shadow: var(--tc-shadow-sm);
  animation: tcSlideIn 0.3s ease;
}
@keyframes tcSlideIn {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.tc-alert-success { background: var(--green-50); color: var(--green-800); border-left-color: var(--tc-success); }
.tc-alert-danger  { background: #fef2f2; color: var(--tc-danger-dark); border-left-color: var(--tc-danger); }

.tc-page-header h2 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--tc-gray-900);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 1.25rem;
  line-height: 1.2;
}

.tc-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.25rem;
  width: 100%;
}
@media (max-width: 900px) { .tc-stats-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .tc-stats-grid { grid-template-columns: 1fr; } }

.tc-stat-card {
  background: var(--tc-white);
  border-radius: var(--tc-radius-2xl);
  box-shadow: var(--tc-shadow-md);
  border: 1px solid var(--tc-gray-100);
  overflow: hidden;
  position: relative;
  transition: transform var(--tc-transition), box-shadow var(--tc-transition);
  min-width: 0;
}
.tc-stat-card:hover { transform: translateY(-4px); box-shadow: var(--tc-shadow-lg); }

.tc-stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--tc-primary);
}
.tc-stat-card.tc-generated::before { background: var(--tc-success); }
.tc-stat-card.tc-pending::before   { background: var(--tc-warning); }

.tc-stat-card-body {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
}

.tc-stat-icon {
  width: 54px;
  height: 54px;
  border-radius: var(--tc-radius-xl);
  background: var(--tc-primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
  transition: transform var(--tc-transition);
}
.tc-stat-card.tc-generated .tc-stat-icon { background: var(--tc-success-light); }
.tc-stat-card.tc-pending .tc-stat-icon { background: var(--tc-warning-light); }
.tc-stat-card:hover .tc-stat-icon { transform: scale(1.08) rotate(-3deg); }

.tc-stat-text { flex: 1; min-width: 0; }

.tc-stat-number {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--tc-primary-dark);
  line-height: 1;
  margin-bottom: 0.25rem;
  letter-spacing: -0.5px;
}
.tc-stat-card.tc-generated .tc-stat-number { color: var(--tc-success-dark); }
.tc-stat-card.tc-pending .tc-stat-number { color: var(--tc-warning-dark); }

.tc-stat-label {
  font-size: 1.2rem;
  color: var(--tc-gray-500);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.tc-card {
  background: var(--tc-white);
  border-radius: var(--tc-radius-2xl);
  padding: 1.5rem;
  margin-bottom: 1rem;
  box-shadow: var(--tc-shadow-md);
  border: 1px solid var(--tc-gray-100);
  width: 100%;
  display: block;
}

.tc-card h3 {
  margin: 0 0 1rem;
  padding-bottom: 0.75rem;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--tc-gray-900);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 2px solid var(--tc-primary-light);
  position: relative;
}
.tc-card h3::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 44px; height: 2px;
  background: var(--tc-primary);
  border-radius: var(--tc-radius-full);
}

.tc-tabs {
  display: flex;
  gap: 2px;
  border-bottom: 2px solid var(--tc-gray-100);
  margin-bottom: 1.25rem;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.tc-tabs::-webkit-scrollbar { display: none; }

.tc-tab-btn {
  padding: 0.7rem 1.1rem;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--tc-gray-400);
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  border-radius: var(--tc-radius-sm) var(--tc-radius-sm) 0 0;
  white-space: nowrap;
  transition: color var(--tc-transition), background var(--tc-transition);
  line-height: 1.4;
  font-family: inherit;
}
.tc-tab-btn:hover { color: var(--tc-primary); background: #f0f5ff; }
.tc-tab-btn.active {
  color: var(--tc-primary);
  border-bottom-color: var(--tc-primary);
  background: #eff4ff;
}

.tc-tab-pane { display: none; }
.tc-tab-pane.active { display: block; animation: tcTabFade 0.2s ease; }
@keyframes tcTabFade {
  from { opacity: 0; transform: translateY(5px); }
  to   { opacity: 1; transform: translateY(0); }
}

.tc-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.tc-form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.tc-form-group label {
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--tc-gray-600);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.tc-form-control {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 2px solid var(--tc-gray-200);
  border-radius: var(--tc-radius-md);
  font-size: 1.3rem;
  line-height: 1.5;
  color: var(--tc-gray-900);
  background: var(--tc-white);
  font-family: inherit;
  transition: border-color var(--tc-transition), box-shadow var(--tc-transition);
  min-height: 44px;
}
.tc-form-control:focus {
  outline: none;
  border-color: var(--tc-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
  background: #fafcff;
}
.tc-form-control:hover:not(:focus) { border-color: var(--tc-gray-300); }
.tc-form-control::placeholder { color: var(--tc-gray-400); opacity: 1; }

select.tc-form-control {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3E%3C/svg%3E");
  background-position: right 0.7rem center;
  background-repeat: no-repeat;
  background-size: 1.1em;
  padding-right: 2.2rem;
  cursor: pointer;
}

.tc-photo-preview {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}
.tc-photo-thumb {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--tc-primary);
  box-shadow: 0 0 0 4px var(--tc-primary-light), var(--tc-shadow-sm);
  flex-shrink: 0;
  display: block;
}
.tc-photo-placeholder {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: var(--tc-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--tc-white);
  font-size: 1.6rem;
  font-weight: 700;
  box-shadow: 0 0 0 4px var(--tc-primary-light), var(--tc-shadow-sm);
  flex-shrink: 0;
}

.tc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  padding: 0.7rem 1.1rem;
  border: none;
  border-radius: var(--tc-radius-md);
  cursor: pointer;
  font-size: 1.3rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1.3;
  box-shadow: var(--tc-shadow-sm);
  transition: transform var(--tc-transition), box-shadow var(--tc-transition), background var(--tc-transition);
  font-family: inherit;
  vertical-align: middle;
  color: var(--tc-white);
}
.tc-btn:hover { transform: translateY(-2px); }
.tc-btn:active { transform: translateY(0); box-shadow: none; }

.tc-btn-primary  { background: var(--tc-primary); }
.tc-btn-primary:hover  { background: var(--tc-primary-hover); box-shadow: var(--tc-shadow-blue); }

.tc-btn-success  { background: var(--tc-success); }
.tc-btn-success:hover  { background: var(--green-600); box-shadow: var(--tc-shadow-green); }

.tc-btn-danger   { background: var(--tc-danger); }
.tc-btn-danger:hover   { background: #dc2626; box-shadow: var(--tc-shadow-red); }

.tc-btn-info     { background: #6366f1; }
.tc-btn-info:hover     { background: #4f46e5; box-shadow: var(--tc-shadow-indigo); }

.tc-btn-secondary {
  background: var(--tc-white);
  color: var(--tc-gray-700);
  border: 2px solid var(--tc-gray-200);
  box-shadow: none;
}
.tc-btn-secondary:hover { background: var(--tc-gray-50); border-color: var(--tc-gray-300); color: var(--tc-gray-800); }

.tc-btn-sm { padding: 0.4rem 0.7rem; font-size: 1.2rem; border-radius: var(--tc-radius-sm); gap: 0.2rem; }

.tc-btn-group {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 1rem;
  align-items: center;
}

.tc-table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--tc-radius-xl);
  box-shadow: var(--tc-shadow-md);
  border: 1px solid var(--tc-gray-100);
}

.tc-tbl {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  min-width: 800px;
}

.tc-tbl th {
  background: var(--tc-gray-800);
  color: var(--tc-white);
  padding: 0.8rem 1rem;
  text-align: left;
  font-size: 1.2rem;
  font-weight: 700;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.tc-tbl th:first-child { border-radius: var(--tc-radius-xl) 0 0 0; }
.tc-tbl th:last-child  { border-radius: 0 var(--tc-radius-xl) 0 0; }

.tc-tbl td {
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--tc-gray-100);
  font-size: 1.3rem;
  color: var(--tc-gray-700);
  background: var(--tc-white);
  vertical-align: middle;
  transition: background var(--tc-transition);
}
.tc-tbl tbody tr:hover td { background: #f5f7ff; }
.tc-tbl tbody tr:nth-child(even) td { background: var(--tc-gray-50); }
.tc-tbl tbody tr:nth-child(even):hover td { background: #f0f3ff; }
.tc-tbl tbody tr:last-child td { border-bottom: none; }
.tc-tbl tbody tr:last-child td:first-child { border-radius: 0 0 0 var(--tc-radius-xl); }
.tc-tbl tbody tr:last-child td:last-child  { border-radius: 0 0 var(--tc-radius-xl) 0; }

.tc-tbl td:last-child { white-space: nowrap; }
.tc-tbl td:last-child form { display: inline; }
.tc-tbl td:last-child form.tc-action-form { display: inline; }
.tc-tbl td:last-child .tc-btn { margin: 0 2px; }

.tc-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--tc-gray-200);
  box-shadow: var(--tc-shadow-sm);
  flex-shrink: 0;
  background: var(--tc-gray-100);
}
.tc-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }

.tc-avatar-init {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #7c3aed;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--tc-white);
  font-weight: 700;
  font-size: 1.3rem;
  box-shadow: var(--tc-shadow-sm);
  flex-shrink: 0;
}

.tc-card-number {
  background: var(--tc-primary-light);
  padding: 0.3rem 0.7rem;
  border-radius: var(--tc-radius-full);
  font-weight: 700;
  color: var(--tc-primary-dark);
  font-size: 1.2rem;
  border: 1px solid var(--primary-mist);
  display: inline-block;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.tc-status-badge {
  padding: 0.3rem 0.7rem;
  border-radius: var(--tc-radius-full);
  font-size: 1.2rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.tc-status-active {
  background: var(--tc-success-light);
  color: var(--tc-success-dark);
  border: 1px solid var(--green-200);
}
.tc-status-pending {
  background: var(--tc-warning-light);
  color: var(--tc-warning-dark);
  border: 1px solid var(--amber-200);
}

.tc-role-tag {
  background: var(--primary-mist);
  color: #6d28d9;
  border: 1px solid var(--primary-mist);
  padding: 0.3rem 0.7rem;
  border-radius: var(--tc-radius-full);
  font-size: 1.2rem;
  font-weight: 600;
  display: inline-block;
  white-space: nowrap;
}

.tc-editing-banner {
  background: var(--primary-mist);
  border: 1.5px solid #93c5fd;
  border-radius: var(--tc-radius-lg);
  padding: 0.75rem 1rem;
  margin-bottom: 0.9rem;
  font-weight: 600;
  font-size: 1.3rem;
  color: var(--tc-primary-dark);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.tc-editing-banner a { color: var(--tc-danger); font-weight: 700; text-decoration: none; }
.tc-editing-banner a:hover { text-decoration: underline; }

.tc-page-header-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #6366f1;
  color: var(--tc-white);
  text-decoration: none;
  padding: 0.7rem 1.25rem;
  border-radius: var(--tc-radius-md);
  font-size: 1.3rem;
  font-weight: 700;
  box-shadow: var(--tc-shadow-indigo);
  transition: transform var(--tc-transition), box-shadow var(--tc-transition), background var(--tc-transition);
}
.tc-page-header-link:hover {
  background: #4f46e5;
  transform: translateY(-2px);
  color: var(--tc-white);
}

.tc-checkbox-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.8rem;
  background: var(--tc-gray-50);
  border-radius: var(--tc-radius-md);
  border: 1px solid var(--tc-gray-200);
  cursor: pointer;
  font-size: 1.3rem;
  transition: background var(--tc-transition);
}
.tc-checkbox-row:hover { background: #f0f5ff; }
.tc-checkbox-row input[type="checkbox"] { width: 18px; height: 18px; cursor: pointer; }

.tc-form-row-spacer { margin-top: 1rem; }
.tc-photo-file-input {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 1.3rem;
  font-family: inherit;
}
.tc-photo-helper-text {
  color: var(--tc-gray-500);
  font-size: 1.2rem;
  display: block;
  margin-top: 0.3rem;
}
.tc-not-generated {
  color: var(--tc-gray-400);
  font-size: 1.2rem;
  font-style: italic;
}
.tc-empty-row {
  text-align: center;
  padding: 3rem 1.5rem;
  color: var(--tc-gray-500);
  font-size: 1.3rem;
}
.tc-empty-row-icon { font-size: 4rem; margin-bottom: 0.75rem; }
.tc-empty-row strong { display: block; margin-bottom: 0.4rem; color: var(--tc-gray-700); font-size: 1.4rem; }
.tc-bulk-text {
  color: var(--tc-gray-600);
  font-size: 1.3rem;
  margin-bottom: 1rem;
  line-height: 1.6;
}
.tc-back-center { text-align: center; margin-top: 1rem; }

@media (max-width: 768px) {
  .tc-inner { padding: 1rem 0.75rem; }
  .tc-form-grid { grid-template-columns: 1fr; }
  .tc-btn-group { flex-direction: column; align-items: stretch; }
  .tc-btn-group .tc-btn { width: 100%; }
  .tc-card { padding: 1rem; }
  .tc-stat-number { font-size: 1.6rem; }
  .tc-page-header h2 { font-size: 1.4rem; }
  .tc-tbl th, .tc-tbl td { padding: 0.5rem 0.6rem; font-size: 1.2rem; }
}

@media (max-width: 480px) {
  .tc-stat-card-body { padding: 0.9rem; gap: 0.75rem; }
  .tc-stat-icon { width: 44px; height: 44px; font-size: 1.4rem; }
  .tc-stat-number { font-size: 1.5rem; }
  .tc-card h3 { font-size: 1.3rem; }
  .tc-tab-btn { padding: 0.6rem 0.8rem; font-size: 1.2rem; }
}

/* =====================================================
   SECTION 77: TEST PRINTER (fingerprint kiosk)
   ===================================================== */
.tp-page {
  --tp-bg: var(--gray-900);
  --tp-surface: var(--gray-900);
  --tp-border: var(--gray-700);
  --tp-accent: var(--primary-light);
  --tp-ok: var(--green-400);
  --tp-warn: #ffb300;
  --tp-err: #ff1744;
  --tp-dim: #8b949e;
  --tp-text: #e6edf3;
  --tp-font-mono: 'Share Tech Mono', monospace;
  --tp-font-body: 'Barlow', sans-serif;
  background: var(--tp-bg);
  color: var(--tp-text);
  font-family: var(--tp-font-body);
  min-height: 100vh;
}
.tp-page *, .tp-page *::before, .tp-page *::after { box-sizing: border-box; margin: 0; padding: 0; }
.tp-page header {
  background: var(--tp-surface);
  border-bottom: 1px solid var(--tp-border);
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.tp-page .tp-logo-mark {
  background: var(--tp-accent);
  color: #000;
  font-family: var(--tp-font-mono);
  font-weight: 700;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  font-size: 1.4rem;
}
.tp-page header h1 { font-size: 1.7rem; letter-spacing: 0.1em; font-weight: 600; }
.tp-page header small {
  color: var(--tp-dim);
  font-size: 1.3rem;
  font-family: var(--tp-font-mono);
  margin-left: auto;
}
.tp-page main { max-width: 780px; margin: 2rem auto; padding: 0 1.5rem; }
.tp-page #status-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--tp-surface);
  border: 1px solid var(--tp-border);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  margin-bottom: 1.5rem;
}
.tp-page .tp-status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--tp-dim);
  flex-shrink: 0;
  transition: background 0.3s;
}
.tp-page .tp-status-dot.tp-connected { background: var(--tp-ok); box-shadow: 0 0 8px var(--tp-ok); }
.tp-page .tp-status-dot.tp-disconnected { background: var(--tp-err); }
.tp-page .tp-status-dot.tp-busy { background: var(--tp-warn); animation: tpPulse 1s infinite; }
.tp-page #status-text { font-size: 1.5rem; font-family: var(--tp-font-mono); }
@keyframes tpPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
.tp-page .tp-notice {
  display: none;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  line-height: 1.8;
}
.tp-page #lite-notice { background: #2d1f00; border: 1px solid var(--tp-warn); }
.tp-page #lite-notice a { color: var(--tp-warn); }
.tp-page #core-notice { background: #1a0030; border: 1px solid #9b59b6; }
.tp-page #core-notice code {
  background: rgba(155, 89, 182, 0.2);
  padding: 0.1rem 0.3rem;
  border-radius: 3px;
  font-family: var(--tp-font-mono);
  font-size: 1.4rem;
}
.tp-page #core-notice a { color: #bb86fc; }
.tp-page #cert-notice { background: #001e33; border: 1px solid var(--tp-accent); }
.tp-page #cert-notice a { color: var(--tp-accent); font-family: var(--tp-font-mono); }
.tp-page #cert-notice ol { margin: 0.4rem 0 0.4rem 1.2rem; }
.tp-page #cert-notice small { color: var(--tp-dim); }
.tp-page .tp-vertical-btn { padding: 0.2rem 0.7rem; font-size: 1.4rem; vertical-align: middle; }
.tp-page .tp-tabs { display: flex; gap: 0.5rem; margin-bottom: 1.5rem; }
.tp-page .tp-tab {
  background: none;
  border: 1px solid var(--tp-border);
  color: var(--tp-dim);
  padding: 0.5rem 1.2rem;
  border-radius: 6px;
  cursor: pointer;
  font-family: var(--tp-font-mono);
  font-size: 1.5rem;
  transition: all 0.2s;
}
.tp-page .tp-tab:hover, .tp-page .tp-tab.tp-active { border-color: var(--tp-accent); color: var(--tp-accent); background: rgba(0, 200, 255, 0.05); }
.tp-page .tp-panel { display: none; }
.tp-page .tp-panel.tp-active { display: block; }
.tp-page .tp-scanner-card {
  background: var(--tp-surface);
  border: 1px solid var(--tp-border);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  margin-bottom: 1.5rem;
}
.tp-page .tp-fp-ring {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 3px solid var(--tp-border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  transition: all 0.3s;
}
.tp-page .tp-fp-ring.tp-scanning {
  border-color: var(--tp-accent);
  box-shadow: 0 0 20px rgba(0, 200, 255, 0.3);
  animation: tpPulse 1.2s infinite;
}
.tp-page .tp-fp-ring.tp-success { border-color: var(--tp-ok); box-shadow: 0 0 20px rgba(0, 230, 118, 0.3); }
.tp-page .tp-fp-ring.tp-error { border-color: var(--tp-err); box-shadow: 0 0 20px rgba(255, 23, 68, 0.3); }
.tp-page .tp-fp-icon { width: 64px; height: 64px; }
.tp-page .tp-scanner-hint {
  font-size: 1.5rem;
  color: var(--tp-dim);
  margin-bottom: 1rem;
  min-height: 1.4em;
}
.tp-page .tp-scanner-hint.tp-ok { color: var(--tp-ok); }
.tp-page .tp-scanner-hint.tp-busy { color: var(--tp-accent); }
.tp-page .tp-scanner-hint.tp-bad { color: var(--tp-err); }
.tp-page .tp-quality-wrap { margin: 0.5rem auto; max-width: 240px; }
.tp-page .tp-quality-label {
  font-family: var(--tp-font-mono);
  font-size: 1.3rem;
  color: var(--tp-dim);
  margin-bottom: 0.3rem;
  letter-spacing: 0.08em;
}
.tp-page .tp-quality-bar-bg { background: var(--tp-border); height: 6px; border-radius: 3px; overflow: hidden; }
.tp-page .tp-quality-bar-fill {
  height: 100%;
  width: 0;
  background: var(--tp-accent);
  transition: width 0.3s;
  border-radius: 3px;
}
.tp-page #sample-count { font-family: var(--tp-font-mono); font-size: 1.5rem; color: var(--tp-dim); margin-top: 0.75rem; }
.tp-page #sample-count span { color: var(--tp-accent); font-weight: 700; }
.tp-page .tp-field-group { margin-bottom: 1rem; }
.tp-page .tp-field-group label {
  display: block;
  font-size: 1.4rem;
  color: var(--tp-dim);
  margin-bottom: 0.4rem;
  font-family: var(--tp-font-mono);
  letter-spacing: 0.06em;
}
.tp-page .tp-field-group input {
  width: 100%;
  background: var(--tp-surface);
  border: 1px solid var(--tp-border);
  color: var(--tp-text);
  padding: 0.6rem 0.9rem;
  border-radius: 6px;
  font-family: var(--tp-font-mono);
  font-size: 1.5rem;
  outline: none;
  transition: border-color 0.2s;
}
.tp-page .tp-field-group input:focus { border-color: var(--tp-accent); }
.tp-page .tp-btn-row { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.tp-page .tp-btn {
  padding: 0.55rem 1.2rem;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  font-family: var(--tp-font-mono);
  font-size: 1.5rem;
  transition: all 0.2s;
}
.tp-page .tp-btn:disabled { opacity: 0.35; cursor: not-allowed; }
.tp-page .tp-btn-primary { background: var(--tp-accent); color: #000; font-weight: 700; }
.tp-page .tp-btn-primary:hover:not(:disabled) { filter: brightness(1.15); }
.tp-page .tp-btn-ghost { background: none; border: 1px solid var(--tp-border); color: var(--tp-text); }
.tp-page .tp-btn-ghost:hover:not(:disabled) { border-color: var(--tp-accent); color: var(--tp-accent); }
.tp-page .tp-btn-danger { background: none; border: 1px solid var(--tp-err); color: var(--tp-err); }
.tp-page .tp-btn-danger:hover:not(:disabled) { background: rgba(255, 23, 68, 0.1); }
.tp-page .tp-result-badge {
  display: none;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  font-family: var(--tp-font-mono);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}
.tp-page .tp-result-badge.tp-show { display: block; }
.tp-page .tp-result-badge.tp-ok { background: rgba(0, 230, 118, 0.1); border: 1px solid var(--tp-ok); color: var(--tp-ok); }
.tp-page .tp-result-badge.tp-bad { background: rgba(255, 23, 68, 0.1); border: 1px solid var(--tp-err); color: var(--tp-err); }
.tp-page .tp-log-box {
  background: #010409;
  border: 1px solid var(--tp-border);
  border-radius: 8px;
  padding: 1rem;
  font-family: var(--tp-font-mono);
  font-size: 1.4rem;
  line-height: 1.7;
  min-height: 140px;
  max-height: 260px;
  overflow-y: auto;
}
.tp-page .tp-log-ok { color: var(--tp-ok); }
.tp-page .tp-log-err { color: var(--tp-err); }
.tp-page .tp-log-warn { color: var(--tp-warn); }
.tp-page .tp-log-info { color: var(--tp-dim); }
.tp-page .tp-log-timestamp { color: var(--tp-dim); }
.tp-page .tp-log-warn-link { color: var(--tp-warn); }
.tp-page .tp-log-dim-link { color: var(--tp-dim); }
.tp-page #reader-select-wrap { margin-bottom: 1rem; }
.tp-page #reader-select-wrap label {
  display: block;
  font-size: 1.4rem;
  color: var(--tp-dim);
  margin-bottom: 0.4rem;
  font-family: var(--tp-font-mono);
  letter-spacing: 0.06em;
}
.tp-page #reader-select {
  width: 100%;
  background: var(--tp-surface);
  border: 1px solid var(--tp-border);
  color: var(--tp-text);
  padding: 0.6rem 0.9rem;
  border-radius: 6px;
  font-family: var(--tp-font-mono);
  font-size: 1.5rem;
}
.tp-page .tp-tall-log { min-height: 260px; }
.tp-page .tp-mt-1 { margin-top: 1rem; }
@media (max-width: 600px) {
  .tp-page header { flex-wrap: wrap; padding: 0.75rem 1rem; }
  .tp-page header small { margin-left: 0; }
  .tp-page .tp-btn-row { flex-direction: column; align-items: stretch; }
}

/* =====================================================
   SECTION 78: YEARBOOK FLIPBOOK VIEWER
   ===================================================== */
.yb-flip-page * { margin: 0; padding: 0; box-sizing: border-box; }
.yb-flip-page {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--primary-deeper);
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--white);
}
.yb-flip-app-hidden { display: none; }
.yb-flip-loading-screen {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: var(--green-900);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}
.yb-flip-loading-content { text-align: center; color: var(--white); }
.yb-flip-loader {
  width: 60px;
  height: 60px;
  border: 4px solid rgba(125, 217, 8, 0.3);
  border-top: 4px solid var(--green-500);
  border-radius: 50%;
  animation: ybFlipSpin 1.5s cubic-bezier(0.68, -0.55, 0.27, 1.55) infinite;
  margin: 0 auto 20px;
  position: relative;
}
.yb-flip-loader::after {
  content: '';
  position: absolute;
  top: -4px; left: -4px; right: -4px; bottom: -4px;
  border: 4px solid transparent;
  border-bottom: 4px solid rgba(125, 217, 8, 0.6);
  border-radius: 50%;
  animation: ybFlipSpinReverse 2s linear infinite;
}
@keyframes ybFlipSpin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
@keyframes ybFlipSpinReverse { 0% { transform: rotate(0deg); } 100% { transform: rotate(-720deg); } }
.yb-flip-particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.yb-flip-app-container { min-height: 100vh; display: flex; flex-direction: column; position: relative; z-index: 1; }
.yb-flip-header-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(15px);
  border-bottom: 1px solid rgba(255,255,255,.1);
  position: relative;
  z-index: 100;
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.2);
}
.yb-flip-control-group { display: flex; gap: 15px; }
.yb-flip-year-filter-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 9999px;
  border: 1px solid rgba(125, 217, 8, 0.55);
  background: rgba(125, 217, 8, 0.14);
  color: var(--green-100);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 14px rgba(125, 217, 8, 0.12);
}
.yb-flip-year-filter-badge .yb-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green-500);
  box-shadow: 0 0 0 4px rgba(125, 217, 8, 0.22);
}
.yb-flip-control-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 10px;
  color: var(--white);
  font-size: 1.4rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}
.yb-flip-control-btn:hover {
  background: rgba(125, 217, 8, 0.3);
  border-color: var(--green-500);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(125, 217, 8, 0.2);
}
.yb-flip-control-btn.yb-flip-active {
  background: var(--green-500);
  border-color: var(--green-500);
  color: var(--primary-deeper);
  font-weight: 600;
}
.yb-flip-control-btn.yb-flip-accent {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
}
.yb-flip-control-btn.yb-flip-accent:hover {
  background: #ff6b6b;
  border-color: #ff6b6b;
  box-shadow: 0 6px 20px rgba(238, 90, 36, 0.4);
}
.yb-flip-book-container {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 20px;
  position: relative;
  min-height: calc(100vh - 100px);
}
.yb-flip-book-perspective {
  perspective: 2000px;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 20px;
  min-height: 100vh;
}
.yb-flip-flipbook {
  position: relative;
  background: #f8f8f8;
  border-radius: 5px 15px 15px 5px;
  box-shadow:
    0 10px 50px rgba(0, 0, 0, 0.4),
    0 30px 80px rgba(0, 0, 0, 0.3),
    inset 0 0 0 1px rgba(255,255,255,.1);
  overflow: hidden;
  transform-style: preserve-3d;
  transform: rotateY(0deg) rotateX(5deg);
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.yb-flip-flipbook:hover {
  transform: rotateY(0deg) rotateX(5deg) translateY(-10px);
  box-shadow: 0 15px 60px rgba(0,0,0,.5);
}
.yb-flip-flipbook::before {
  content: '';
  position: absolute;
  left: -15px;
  top: 0;
  width: 15px;
  height: 100%;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 5px 0 0 5px;
  box-shadow:
    inset 2px 0 5px rgba(0, 0, 0, 0.4),
    0 0 10px rgba(0, 0, 0, 0.2);
  transform: translateZ(-10px);
  z-index: -1;
}
.yb-flip-flipbook::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 0; right: 0;
  height: 30px;
  background: rgba(0, 0, 0, 0.15);
  border-radius: 50%;
  filter: blur(10px);
  transform: translateZ(-20px) rotateX(80deg);
  z-index: -2;
  opacity: 0.7;
}
.yb-flip-double-page-mode .yb-flip-flipbook { border-radius: 15px 15px 15px 5px; }
.yb-flip-double-page-mode .yb-flip-flipbook::before { left: -15px; width: 15px; }
.yb-flip-modern-page {
  background: var(--primary);
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  border-radius: 20px;
  box-shadow:
    0 25px 50px rgba(0, 0, 0, 0.15),
    0 0 0 1px rgba(255,255,255,.1) inset;
  backdrop-filter: blur(10px);
}
.yb-flip-animated-bg {
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(255,255,255,.08) 0%, transparent 50%),
    radial-gradient(circle at 40% 60%, rgba(255,255,255,.05) 0%, transparent 50%);
  animation: ybFlipFloat 20s ease-in-out infinite;
  z-index: 1;
}
@keyframes ybFlipFloat { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(20px, -20px); } }
.yb-flip-glass-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(255,255,255,.1);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  z-index: 1;
}
.yb-flip-modern-page .yb-flip-page-content {
  padding: 40px;
  height: calc(100% - 20px);
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 3;
  gap: 20px;
  background: transparent;
}
.yb-flip-title-container { position: relative; margin-bottom: 10px; }
.yb-flip-modern-page .yb-flip-page-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--white);
  margin: 0;
  text-align: center;
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
  letter-spacing: -0.5px;
  line-height: 1.2;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
.yb-flip-title-underline {
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: #ff6b6b;
  border-radius: 2px;
  animation: ybFlipGlow 2s ease-in-out infinite alternate;
}
@keyframes ybFlipGlow { from { box-shadow: 0 0 5px rgba(255, 107, 107, 0.4); } to { box-shadow: 0 0 15px rgba(78, 205, 196, 0.6); } }
.yb-flip-image-container {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 20px 0;
  min-height: 0;
  position: relative;
}
.yb-flip-image-wrapper {
  position: relative;
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.2),
    0 0 0 1px rgba(255, 255, 255, 0.2) inset;
  backdrop-filter: blur(10px);
  border-radius: 20px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.yb-flip-modern-page .yb-flip-page-image {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 3px solid var(--white);
  transition: transform 0.3s ease;
}
.yb-flip-image-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,.05);
  pointer-events: none;
  border-radius: 20px;
}
.yb-flip-text-container {
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(15px);
  border-radius: 16px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.yb-flip-text-container.yb-flip-full-height {
  flex: 1;
  display: flex;
  align-items: center;
}
.yb-flip-modern-page .yb-flip-page-text {
  font-size: clamp(1.3rem, 2.5vw, 1.6rem);
  line-height: 1.7;
  color: rgba(255,255,255,.95);
  text-align: justify;
  margin: 0;
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 400;
  text-indent: 24px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  letter-spacing: 0.3px;
}
.yb-flip-modern-page-number {
  position: absolute;
  bottom: 20px;
  right: 24px;
  font-size: 1.2rem;
  color: rgba(255,255,255,.8);
  font-weight: 600;
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(10px);
  padding: 8px 12px;
  border-radius: 20px;
  font-family: 'Segoe UI', sans-serif;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  z-index: 4;
}
.yb-flip-decorative-circle-yb-tr {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,.15);
  border-radius: 50%;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  z-index: 2;
}
.yb-flip-decorative-circle-yb-bl {
  position: absolute;
  bottom: 20px;
  left: 20px;
  width: 20px;
  height: 20px;
  background: rgba(255, 107, 107, 0.6);
  border-radius: 50%;
  backdrop-filter: blur(5px);
  animation: ybFlipPulse 3s ease-in-out infinite;
  z-index: 2;
}
@keyframes ybFlipPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.1); } }
.yb-flip-modern-cover {
  background: var(--primary);
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}
.yb-flip-cover-page {
  background: var(--primary-deeper);
  color: var(--white);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.yb-flip-cover-page::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('https://images.unsplash.com/photo-1507842217343-583bb7270b66?auto=format&fit=crop&w=1200&q=80') center/cover;
  opacity: 0.15;
  z-index: 0;
}
.yb-flip-modern-cover .yb-flip-page-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  padding: 40px 20px;
  text-align: center;
  position: relative;
  z-index: 2;
  background: transparent;
}
.yb-flip-modern-cover .yb-flip-cover-image {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--green-500);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  margin-bottom: 30px;
  transition: transform 0.3s ease;
}
.yb-flip-modern-cover .yb-flip-cover-title {
  font-size: 3.6rem;
  font-weight: 700;
  color: var(--white);
  text-shadow: 2px 2px 4px rgba(0,0,0,.5);
  margin: 20px 0 15px 0;
  letter-spacing: 1px;
  font-family: 'Arial', sans-serif;
}
.yb-flip-modern-cover .yb-flip-cover-subtitle {
  font-size: 1.8rem;
  color: rgba(255,255,255,.9);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
  margin: 0;
  font-weight: 300;
  line-height: 1.4;
  font-family: 'Arial', sans-serif;
}
.yb-flip-cover-decorative-bg {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: rgba(125, 217, 8, 0.1);
  animation: ybFlipRotate 20s linear infinite;
  pointer-events: none;
}
@keyframes ybFlipRotate { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.yb-flip-nav-controls {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 25px;
  z-index: 1000;
  pointer-events: all;
}
.yb-flip-nav-btn {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  background: rgba(125, 217, 8, 0.95);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: var(--white);
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 10px 30px rgba(125, 217, 8, 0.4);
  backdrop-filter: blur(5px);
  position: relative;
  overflow: hidden;
}
.yb-flip-nav-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: scale(0);
  transition: transform 0.3s ease;
}
.yb-flip-nav-btn:hover { transform: scale(1.1); box-shadow: 0 15px 40px rgba(125, 217, 8, 0.5); }
.yb-flip-nav-btn:hover::before { transform: scale(1); }
.yb-flip-nav-btn:active { transform: scale(0.95); }
.yb-flip-nav-btn.yb-flip-disabled { opacity: 0.4; cursor: not-allowed; transform: none; }
.yb-flip-progress-bar {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 4px;
  background: rgba(255,255,255,.1);
  z-index: 1001;
}
.yb-flip-progress-fill {
  height: 100%;
  background: var(--green-500);
  transition: width 0.3s ease;
  box-shadow: 0 0 8px rgba(125, 217, 8, 0.5);
  width: 0%;
}
.yb-flip-help-tooltip {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.85);
  color: var(--white);
  padding: 20px 30px;
  border-radius: 12px;
  font-size: 1.5rem;
  z-index: 1002;
  text-align: center;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.1);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.yb-flip-help-tooltip.yb-flip-show { opacity: 1; }
.yb-flip-help-tooltip .yb-flip-help-key {
  background: rgba(255,255,255,.15);
  padding: 4px 8px;
  border-radius: 4px;
  font-family: monospace;
  font-weight: 700;
  margin: 0 2px;
}
.yb-flip-help-tooltip .yb-flip-help-content { display: block; margin: 6px 0; }
.yb-flip-help-tooltip .yb-flip-help-desc { font-size: 1.3rem; color: rgba(255,255,255,.7); }
.yb-flip-page-info {
  position: fixed;
  top: 80px;
  right: 20px;
  background: rgba(0,0,0,.5);
  color: var(--white);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 1.4rem;
  z-index: 100;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.1);
}
.yb-flip-search-bar {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 25px;
  padding: 8px 16px;
  backdrop-filter: blur(10px);
}
.yb-flip-search-bar input {
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.4rem;
  width: 200px;
  outline: none;
}
.yb-flip-search-bar input::placeholder { color: rgba(255,255,255,.6); }
.yb-flip-search-bar svg { margin-right: 8px; opacity: 0.6; }
.yb-flip-fullscreen-btn {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  color: var(--white);
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.3rem;
  transition: all 0.3s ease;
}
.yb-flip-fullscreen-btn:hover { background: rgba(125, 217, 8, 0.2); border-color: var(--green-500); }
.yb-flip-swipe-blocked {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.85);
  color: var(--white);
  padding: 12px 24px;
  border-radius: 12px;
  font-size: 1.4rem;
  z-index: 1002;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.1);
}
.yb-flip-swipe-blocked.yb-flip-show { opacity: 1; }
.yb-flip-overlay-base {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(5px);
}
.yb-flip-overlay-card {
  background: var(--white);
  border-radius: 20px;
  padding: 40px;
  max-width: 450px;
  width: 90%;
  text-align: center;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
  animation: ybFlipSlideIn 0.3s ease;
  color: var(--gray-800);
}
.yb-flip-overlay-card-dark {
  background: var(--gray-900);
  color: var(--white);
  border-radius: 20px;
  padding: 40px;
  max-width: 500px;
  width: 90%;
  text-align: center;
  box-shadow: 0 25px 80px rgba(0,0,0,.6);
  border: 1px solid rgba(255,255,255,.1);
  animation: ybFlipSlideIn 0.3s ease;
}
@keyframes ybFlipSlideIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.yb-flip-overlay-icon-lg { font-size: 48px; margin-bottom: 20px; }
.yb-flip-overlay-icon-sm { font-size: 24px; margin-bottom: 15px; }
.yb-flip-overlay-title {
  margin: 0 0 25px 0;
  color: var(--white);
  font-size: 2.4rem;
  font-weight: 600;
}
.yb-flip-overlay-title-light {
  margin: 0 0 15px 0;
  color: var(--gray-800);
  font-size: 1.8rem;
  font-weight: 600;
}
.yb-flip-overlay-text { margin: 0 0 30px 0; color: rgba(255,255,255,.9); line-height: 1.5; font-size: 1.6rem; }
.yb-flip-overlay-text-light { margin: 0 0 25px 0; color: var(--gray-500); line-height: 1.4; font-size: 1.5rem; }
.yb-flip-overlay-actions { display: flex; gap: 15px; justify-content: center; }
.yb-flip-overlay-actions-col { display: flex; flex-direction: column; gap: 15px; margin-bottom: 30px; }
.yb-flip-overlay-btn-row { display: flex; gap: 15px; justify-content: center; }
.yb-flip-confirm-btn {
  background: var(--green-500);
  color: var(--white);
  border: none;
  padding: 12px 30px;
  border-radius: 10px;
  font-size: 1.5rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}
.yb-flip-confirm-btn:hover { background: var(--green-600); transform: translateY(-1px); }
.yb-flip-cancel-btn {
  background: var(--gray-100);
  color: var(--gray-800);
  border: none;
  padding: 12px 30px;
  border-radius: 10px;
  font-size: 1.5rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}
.yb-flip-cancel-btn:hover { background: #bdc3c7; }
.yb-flip-quality-btn {
  background: rgba(255,255,255,.08);
  border: 2px solid rgba(255, 255, 255, 0.2);
  color: var(--white);
  padding: 20px;
  border-radius: 12px;
  text-align: left;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
}
.yb-flip-quality-btn:hover {
  background: rgba(125, 217, 8, 0.15);
  border-color: var(--green-500);
  transform: translateY(-1px);
}
.yb-flip-quality-btn-title { font-weight: 600; margin-bottom: 4px; font-size: 1.5rem; }
.yb-flip-quality-btn-desc { font-size: 1.3rem; opacity: 0.8; }
.yb-flip-quality-btn-size { font-size: 1.2rem; opacity: 0.7; margin-top: 4px; }
.yb-flip-music-popup {
  background: var(--gray-900);
  color: var(--white);
  border-radius: 20px;
  padding: 40px;
  max-width: 540px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 80px rgba(0,0,0,.6);
  border: 1px solid rgba(255,255,255,.1);
  animation: ybFlipSlideIn 0.3s ease;
}
.yb-flip-music-header { text-align: center; margin-bottom: 30px; }
.yb-flip-music-icon-box {
  width: 80px;
  height: 80px;
  background: rgba(125, 217, 8, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  border: 2px solid var(--green-500);
  font-size: 32px;
}
.yb-flip-music-title {
  margin: 0 0 8px 0;
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--white);
}
.yb-flip-music-subtitle { margin: 0; color: rgba(255,255,255,.7); font-size: 1.4rem; }
.yb-flip-music-section { margin-bottom: 25px; }
.yb-flip-music-label {
  display: block;
  font-size: 1.4rem;
  font-weight: 600;
  color: rgba(255,255,255,.9);
  margin-bottom: 8px;
}
.yb-flip-music-upload-wrap { position: relative; }
.yb-flip-music-upload-input { display: none; }
.yb-flip-music-upload-btn {
  width: 100%;
  background: rgba(125, 217, 8, 0.2);
  border: 2px dashed var(--green-500);
  color: var(--white);
  padding: 16px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-family: inherit;
}
.yb-flip-music-upload-btn:hover { background: rgba(125, 217, 8, 0.3); }
.yb-flip-music-upload-icon { margin-right: 8px; vertical-align: middle; }
.yb-flip-music-info { display: none; margin-top: 12px; padding: 12px; background: rgba(255,255,255,.05); border-radius: 8px; }
.yb-flip-music-info-row { display: flex; align-items: center; justify-content: space-between; }
.yb-flip-music-info-text { flex: 1; min-width: 0; }
.yb-flip-music-name { font-weight: 600; color: var(--white); font-size: 1.4rem; word-break: break-all; }
.yb-flip-music-duration { font-size: 1.3rem; color: rgba(255,255,255,.6); }
.yb-flip-music-remove-btn {
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid #ef4444;
  color: #ef4444;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1.3rem;
  transition: all 0.3s ease;
  margin-left: 12px;
  font-family: inherit;
}
.yb-flip-music-remove-btn:hover { background: rgba(239,68,68,.3); }
.yb-flip-music-controls { display: none; }
.yb-flip-music-control-row { margin-bottom: 20px; }
.yb-flip-music-slider-wrap { position: relative; }
.yb-flip-music-slider-wrap input[type="range"] {
  width: 100%;
  -webkit-appearance: none;
  height: 6px;
  background: rgba(255,255,255,.1);
  border-radius: 3px;
  outline: none;
}
.yb-flip-music-slider-wrap input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  background: var(--green-500);
  border-radius: 50%;
  cursor: pointer;
}
.yb-flip-music-time-row { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; }
.yb-flip-music-time-flex { flex: 1; }
.yb-flip-music-time-label { font-size: 1.2rem; color: var(--gray-500); display: block; margin-bottom: 5px; }
.yb-flip-music-time-display { font-size: 1.1rem; color: var(--gray-500); }
.yb-flip-music-preview-row { display: flex; gap: 10px; margin-top: 12px; }
.yb-flip-music-preview-btn {
  flex: 1;
  background: rgba(125, 217, 8, 0.2);
  border: 1px solid var(--green-500);
  color: var(--white);
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.4rem;
  font-family: inherit;
}
.yb-flip-music-checkbox-row { margin-bottom: 30px; display: flex; align-items: center; gap: 8px; }
.yb-flip-music-checkbox { margin-right: 8px; }
.yb-flip-progress-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
}
.yb-flip-progress-content { text-align: center; }
.yb-flip-progress-msg { font-size: 1.8rem; margin-bottom: 8px; }
.yb-flip-progress-sub { font-size: 1.4rem; opacity: 0.8; margin-bottom: 20px; }
.yb-flip-progress-bar-bg { width: 300px; height: 6px; background: rgba(255, 255, 255, 0.2); border-radius: 3px; overflow: hidden; }
.yb-flip-progress-bar-fill { height: 100%; background: var(--green-500); width: 0%; transition: width 0.3s; }
.yb-flip-success-msg {
  position: fixed;
  top: 20px;
  right: 20px;
  background: var(--green-500);
  color: var(--white);
  padding: 12px 24px;
  border-radius: 8px;
  z-index: 3000;
  font-size: 1.4rem;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  animation: ybFlipSlideIn 0.3s ease;
}
@media (max-width: 768px) {
  .yb-flip-header-controls { padding: 12px 16px; flex-direction: column; gap: 12px; }
  .yb-flip-control-group { flex-wrap: wrap; justify-content: center; }
  .yb-flip-search-bar input { width: 140px; font-size: 1.3rem; }
  .yb-flip-modern-page .yb-flip-page-content { padding: 20px; }
  .yb-flip-modern-cover .yb-flip-cover-title { font-size: 2.8rem; }
  .yb-flip-modern-cover .yb-flip-cover-subtitle { font-size: 1.5rem; }
  .yb-flip-nav-controls { bottom: 12px; gap: 14px; }
  .yb-flip-nav-btn { width: 48px; height: 48px; }
  .yb-flip-page-info { top: auto; bottom: 100px; right: 10px; font-size: 1.2rem; }
  .yb-flip-overlay-card, .yb-flip-overlay-card-dark, .yb-flip-music-popup { padding: 24px; }
}

/* =========================================================
   SECTION 84: SELECT TEMPLATE - TEACHER (select_template_teacher.php)
   .stplt-* prefix
   ========================================================= */
.stplt-body {
  background: var(--stplt-dark, #0e0e12);
  font-family: 'DM Sans', sans-serif;
  color: var(--stplt-text, #e8e8f0);
  min-height: 100vh;
}
.stplt-pg-header {
  background: var(--stplt-dark, #0e0e12);
  border-bottom: 1px solid var(--stplt-border, rgba(201,168,76,0.18));
  padding: 48px 32px 36px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.stplt-pg-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(167,139,250,.12);
  pointer-events: none;
}
.stplt-badge {
  display: inline-block;
  background: rgba(167,139,250,.12);
  border: 1px solid rgba(167,139,250,.3);
  color: var(--stplt-accent, #a78bfa);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 18px;
}
.stplt-pg-header h1 {
  font-family: 'Sora', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}
.stplt-pg-header p {
  color: var(--stplt-muted, #8888aa);
  font-size: 1.5rem;
  max-width: 460px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.stplt-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(167,139,250,0.15);
  border: 1px solid rgba(167,139,250,.3);
  color: var(--stplt-accent, #a78bfa);
  font-size: 1.3rem;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 100px;
  margin-top: 20px;
  letter-spacing: 0.5px;
  position: relative;
  z-index: 1;
}
.stplt-pill .stplt-role { color: #c4b5fd; font-style: italic; }
.stplt-stats-bar {
  background: var(--stplt-surface, #16161d);
  border-bottom: 1px solid var(--stplt-border, rgba(201,168,76,0.18));
  padding: 14px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.stplt-stats-bar .stplt-count { font-size: 1.3rem; color: var(--stplt-muted, #8888aa); }
.stplt-stats-bar .stplt-count strong { color: var(--stplt-text, #e8e8f0); }
.stplt-search-box {
  display: flex;
  align-items: center;
  background: var(--stplt-card, #1c1c26);
  border: 1px solid var(--stplt-border, rgba(201,168,76,0.18));
  border-radius: 8px;
  padding: 8px 14px;
  gap: 8px;
  min-width: 220px;
}
.stplt-search-box input {
  background: none;
  border: none;
  outline: none;
  color: var(--stplt-text, #e8e8f0);
  font-size: 1.3rem;
  width: 100%;
}
.stplt-search-box input::placeholder { color: var(--stplt-muted, #8888aa); }
.stplt-template-wrap { max-width: 1300px; margin: 0 auto; padding: 40px 24px 80px; }
.stplt-template-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.stplt-template-card {
  background: var(--stplt-card, #1c1c26);
  border: 1px solid var(--stplt-border, rgba(201,168,76,0.18));
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  display: flex;
  flex-direction: column;
  position: relative;
  animation: stpltFadeUp .4s ease both;
}
.stplt-template-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(0,0,0,.5), 0 0 0 1px rgba(167,139,250,0.35);
  border-color: rgba(167,139,250,0.4);
}
.stplt-template-card:hover .stplt-overlay-btn { opacity: 1; }
.stplt-template-card:hover .stplt-card-img { transform: scale(1.04); }
.stplt-card-num {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(14,14,18,0.75);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.12);
  color: var(--white);
  font-size: 1.3rem;
  font-weight: 700;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.stplt-card-preview {
  position: relative;
  overflow: hidden;
  height: 200px;
  background: var(--gray-900);
}
.stplt-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}
.stplt-overlay-btn {
  position: absolute;
  inset: 0;
  background: rgba(14,14,18,0.6);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .25s ease;
}
.stplt-overlay-btn span {
  background: var(--stplt-accent, #a78bfa);
  color: #0e0e12;
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  padding: 10px 24px;
  border-radius: 8px;
}
.stplt-card-body { padding: 18px 18px 20px; flex: 1; display: flex; flex-direction: column; gap: 10px; }
.stplt-card-name {
  font-family: 'Sora', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
}
.stplt-card-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.stplt-tag {
  background: rgba(167,139,250,0.15);
  border: 1px solid rgba(167,139,250,0.2);
  color: var(--stplt-accent, #a78bfa);
  font-size: 1.3rem;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 100px;
}
.stplt-card-footer {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,.06);
}
.stplt-select-btn {
  width: 100%;
  background: #7c3aed;
  color: var(--white);
  border: none;
  border-radius: 8px;
  padding: 11px;
  font-family: 'Sora', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity .2s, transform .15s;
}
.stplt-select-btn:hover { opacity: .88; transform: scale(0.98); }
.stplt-no-results {
  display: none;
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 0;
  color: var(--stplt-muted, #8888aa);
}
@keyframes stpltFadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.stplt-template-card:nth-child(1)  { animation-delay: 0.00s; }
.stplt-template-card:nth-child(2)  { animation-delay: 0.04s; }
.stplt-template-card:nth-child(3)  { animation-delay: 0.08s; }
.stplt-template-card:nth-child(4)  { animation-delay: 0.12s; }
.stplt-template-card:nth-child(5)  { animation-delay: 0.16s; }
.stplt-template-card:nth-child(6)  { animation-delay: 0.20s; }
.stplt-template-card:nth-child(7)  { animation-delay: 0.24s; }
.stplt-template-card:nth-child(8)  { animation-delay: 0.28s; }
.stplt-template-card:nth-child(9)  { animation-delay: 0.32s; }
.stplt-template-card:nth-child(10) { animation-delay: 0.36s; }
.stplt-template-card:nth-child(11) { animation-delay: 0.40s; }
.stplt-template-card:nth-child(12) { animation-delay: 0.44s; }
.stplt-template-card:nth-child(13) { animation-delay: 0.48s; }
.stplt-template-card:nth-child(14) { animation-delay: 0.52s; }
.stplt-template-card:nth-child(15) { animation-delay: 0.56s; }
.stplt-template-card:nth-child(16) { animation-delay: 0.60s; }
.stplt-template-card:nth-child(17) { animation-delay: 0.64s; }
@media (max-width: 768px) {
  .stplt-pg-header { padding: 32px 20px 28px; }
  .stplt-stats-bar { padding: 12px 20px; }
  .stplt-template-wrap { padding: 24px 16px 60px; }
  .stplt-template-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   SECTION 85: WALLET SETUP (store_wallet_setup.php)
   .wsetup-* prefix
   ========================================================= */
.wsetup-body {
  font-family: sans-serif;
  padding: 40px;
  background: var(--bg-alt);
  color: var(--gray-800);
}
.wsetup-body h2 { color: var(--gray-800); margin-bottom: 18px; }
.wsetup-ok   { color: var(--green-500); font-weight: 700; }
.wsetup-fail { color: #e74c3c; font-weight: 700; }
.wsetup-table {
  border-collapse: collapse;
  margin-top: 20px;
  width: 100%;
  max-width: 700px;
}
.wsetup-table td,
.wsetup-table th {
  border: 1px solid var(--gray-200);
  padding: 10px 16px;
  text-align: left;
  font-size: 1.4rem;
}
.wsetup-table th { background: var(--gray-800); color: var(--white); }
.wsetup-table tr:nth-child(even) { background: var(--gray-50); }
.wsetup-notice {
  background: var(--amber-100);
  border: 1px solid var(--amber-500);
  border-radius: 6px;
  padding: 16px;
  margin-top: 24px;
  max-width: 700px;
  font-size: 1.4rem;
}
.wsetup-notice-fail {
  background: #ffeaea;
  border-color: #e74c3c;
}
.wsetup-notice strong { font-weight: 700; }
.wsetup-notice em { color: #c0392b; }
.wsetup-btn {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 24px;
  background: var(--accent);
  color: var(--white);
  border-radius: 4px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.4rem;
}
.wsetup-btn:hover { opacity: 0.9; }
@media (max-width: 768px) {
  .wsetup-body { padding: 20px; }
  .wsetup-table { font-size: 1.3rem; }
  .wsetup-table td,
  .wsetup-table th { padding: 8px 10px; }
}


/* =========================================================
   SECTION 86: UPLOAD MULTIPIX (upload-multipix2.php)
   .upm-* prefix  (dark green theme)
   ========================================================= */
.upm-page-header {
  background: var(--green-900);
  color: var(--white);
  padding: 30px;
  border-radius: 15px;
  margin-bottom: 30px;
  box-shadow: 0 10px 30px rgba(8,75,51,0.3);
}
.upm-page-header h3 {
  margin: 0;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--white);
}
.upm-table-wrap {
  background: var(--white);
  border-radius: 15px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.1);
  overflow: hidden;
  margin: 20px 0;
}
.upm-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}
.upm-table thead { background: var(--green-900); }
.upm-table thead th {
  color: var(--white);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 1.3rem;
  letter-spacing: 1px;
  padding: 20px 15px;
  border: none;
  text-align: left;
}
.upm-table tbody tr {
  transition: all 0.3s ease;
  border-bottom: 1px solid var(--gray-100);
}
.upm-table tbody tr:hover {
  background: #f8f9ff;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(8,75,51,0.1);
}
.upm-table tbody td {
  padding: 20px 15px;
  vertical-align: middle;
  font-size: 1.4rem;
  color: var(--gray-800);
}
.upm-cell-rel { position: relative; }
.upm-select {
  width: 100%;
  padding: 10px 15px;
  border: 2px solid var(--gray-200);
  border-radius: 8px;
  font-size: 1.4rem;
  color: var(--gray-800);
  background: var(--white);
  transition: all 0.3s ease;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23084b33' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 20px;
  padding-right: 40px;
}
.upm-select:focus {
  outline: none;
  border-color: var(--green-900);
  box-shadow: 0 0 0 3px rgba(8,75,51,0.15);
}
.upm-select:hover { border-color: var(--green-900); }
.upm-img-upload {
  position: relative;
  display: flex;
  align-items: center;
  gap: 15px;
}
.upm-img-wrapper {
  position: relative;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--green-900);
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}
.upm-img-wrapper:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(8,75,51,0.3);
}
.upm-img-wrapper img { width: 100%; height: 100%; object-fit: cover; }
.upm-btn-wrap { position: relative; }
.upm-btn-wrap input[type="file"] { display: none; }
.upm-upload-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--green-900);
  color: var(--white);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(8,75,51,0.3);
}
.upm-upload-label:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(8,75,51,0.5);
}
.upm-upload-label i { font-size: 1.6rem; }
.upm-loading-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,.9);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  z-index: 10;
}
.upm-spinner {
  width: 30px;
  height: 30px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid var(--green-900);
  border-radius: 50%;
  animation: upmSpin 1s linear infinite;
}
@keyframes upmSpin {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
.upm-swal-popup { border-radius: 15px; font-family: inherit; }
.upm-swal-title { font-size: 1.8rem; font-weight: 600; }
.upm-swal-confirm {
  background: var(--green-900) !important;
  border-radius: 8px !important;
  padding: 10px 30px !important;
  font-weight: 600 !important;
}
.upm-swal-cancel {
  border-radius: 8px !important;
  padding: 10px 30px !important;
  font-weight: 600 !important;
}
.upm-name { font-weight: 600; color: var(--gray-800); }
.upm-name small {
  display: block;
  color: var(--gray-400);
  font-weight: 400;
  margin-top: 5px;
}
.upm-serial {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
  background: var(--green-900);
  color: var(--white);
  border-radius: 8px;
  font-weight: 600;
  font-size: 1.4rem;
}
.upm-portal {
  display: inline-block;
  background: #f0f3ff;
  color: var(--green-900);
  padding: 6px 12px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1.3rem;
}
@media (max-width: 768px) {
  .upm-table thead { display: none; }
  .upm-table tbody tr {
    display: block;
    margin-bottom: 20px;
    border: 1px solid var(--gray-200);
    border-radius: 10px;
    padding: 15px;
  }
  .upm-table tbody td {
    display: block;
    text-align: left;
    padding: 10px 0;
    border: none;
  }
  .upm-table tbody td::before {
    content: attr(data-label);
    font-weight: 600;
    display: block;
    margin-bottom: 5px;
    color: var(--green-900);
    font-size: 1.3rem;
    text-transform: uppercase;
  }
  .upm-img-upload { justify-content: flex-start; }
}

/* =========================================================
   SECTION 87: UPLOAD RESULT DC (upload-result2dc.php)
   .upd-* prefix  (blue theme, no gradients)
   ========================================================= */
.upd-body {
  background: var(--gray-50);
  overflow-x: hidden;
}
.upd-breadcrumb {
  position: relative;
  overflow: hidden;
  background: var(--gray-900);
  padding: 70px 0 40px !important;
  margin-bottom: 0 !important;
}
.upd-breadcrumb::before {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  top: -200px;
  right: -100px;
}
.upd-breadcrumb::after {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(37,99,235,.15);
  bottom: -180px;
  left: -80px;
}
.upd-breadcrumb .page_title h2 {
  color: var(--white);
  font-size: 2.5rem;
  font-weight: 800;
  margin: 0;
  position: relative;
  z-index: 2;
}
.upd-breadcrumb .breadcrumb {
  background: none;
  padding: 0;
  margin: 10px 0 0;
  justify-content: flex-end;
}
.upd-breadcrumb .breadcrumb li {
  color: rgba(255,255,255,.8);
  font-size: 1.4rem;
}
.upd-breadcrumb .breadcrumb li a {
  color: var(--white);
  text-decoration: none;
  transition: var(--transition, 0.25s);
}
.upd-breadcrumb .breadcrumb li a:hover { color: #93c5fd; }
.upd-wrap { padding: 40px 0 80px; min-height: 100vh; }
.upd-card {
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  border-radius: 24px;
  padding: 35px;
  margin-bottom: 32px;
  border: 1px solid rgba(255,255,255,.4);
  box-shadow: 0 10px 25px 0 4px 12px rgba(0,0,0,.08);
  transition: 0.25s cubic-bezier(.4,0,.2,1);
  position: relative;
  overflow: hidden;
}
.upd-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: var(--primary);
}
.upd-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 45px 0 20px 50px rgba(0,0,0,.12);
}
.upd-card h3 {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--gray-900);
  margin: 0 0 28px;
  padding-bottom: 18px;
  border-bottom: 2px solid var(--primary-mist);
  display: flex;
  align-items: center;
  gap: 14px;
  letter-spacing: -0.4px;
}
.upd-card h3 i {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--primary-mist);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.4rem;
}
.upd-info-bar {
  background: var(--primary-mist);
  border-left: 5px solid var(--primary);
  border-radius: 16px;
  padding: 15px;
  margin-bottom: 20px;
  font-size: 1.4rem;
}
.upd-student {
  background: var(--white);
  border-radius: 24px;
  padding: 24px;
  margin-bottom: 28px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: 0.25s cubic-bezier(.4,0,.2,1);
  border: 1px solid var(--gray-200);
}
.upd-student:hover {
  box-shadow: 0 10px 25px 0 4px 12px rgba(0,0,0,.08);
  border-color: var(--primary-mist);
}
.upd-student-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid var(--gray-200);
}
.upd-student-info { font-size: 1.4rem; }
.upd-student-info b { color: var(--primary); }
.upd-student-actions .upd-btn {
  border: none;
  padding: 8px 18px;
  border-radius: 40px;
  font-size: 1.3rem;
  font-weight: 600;
  cursor: pointer;
  transition: 0.25s cubic-bezier(.4,0,.2,1);
}
.upd-btn {
  border: none;
  padding: 12px 24px;
  border-radius: 40px;
  font-weight: 600;
  transition: 0.25s cubic-bezier(.4,0,.2,1);
  cursor: pointer;
  font-size: 1.4rem;
}
.upd-btn-primary { background: var(--primary); color: var(--white); }
.upd-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
.upd-btn-success { background: var(--green-500); color: var(--white); }
.upd-btn-danger  { background: #ef4444; color: var(--white); }
.upd-btn-sm { padding: 5px 12px; font-size: 1.3rem; }
.upd-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin: 20px 0;
}
.upd-form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.upd-form-field label {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--gray-600);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.upd-form-field input,
.upd-form-field select {
  border: 2px solid var(--gray-200);
  border-radius: 16px;
  padding: 12px 15px;
  font-size: 1.4rem;
  transition: 0.25s cubic-bezier(.4,0,.2,1);
  background: var(--white);
}
.upd-form-field input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(37,99,235,0.12);
}
.upd-hr {
  margin: 25px 0;
  border: none;
  height: 1px;
  background: var(--gray-300);
}
.upd-alert {
  padding: 15px 20px;
  border-radius: 20px;
  margin-bottom: 25px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
  font-size: 1.4rem;
}
.upd-alert-success { background: var(--green-100); color: var(--green-800); border-left: 5px solid var(--green-500); }
.upd-alert-error   { background: #fee2e2; color: #7f1d1d; border-left: 5px solid #ef4444; }
@keyframes updFadeIn { from { opacity: 0; } to { opacity: 1; } }
.upd-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  backdrop-filter: blur(5px);
  animation: updFadeIn 0.3s ease-out;
}
.upd-modal-box {
  background: var(--white);
  padding: 30px;
  border-radius: 24px;
  box-shadow: 0 20px 45px 0 20px 50px rgba(0,0,0,.12);
  max-width: 400px;
  margin: 20px;
  text-align: center;
  transform: scale(1);
  transition: transform 0.3s ease-out;
}
.upd-modal-icon {
  width: 60px;
  height: 60px;
  background: var(--green-500);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--white);
  font-size: 2rem;
}
.upd-modal-icon.upd-modal-error   { background: #ef4444; }
.upd-modal-icon.upd-modal-info    { background: var(--primary); }
.upd-modal-box h3 { margin: 0 0 15px; color: var(--gray-900); font-size: 1.7rem; }
.upd-modal-box p  { margin: 0 0 20px; color: var(--gray-600); line-height: 1.5; font-size: 1.4rem; }
.upd-modal-ok {
  background: var(--green-500);
  color: var(--white);
  border: none;
  padding: 12px 24px;
  border-radius: 40px;
  cursor: pointer;
  font-size: 1.4rem;
  font-weight: 600;
  transition: all 0.2s;
}
.upd-modal-ok:hover { opacity: 0.9; }
@media (max-width: 768px) {
  .upd-student-header { flex-direction: column; gap: 10px; }
  .upd-form-grid { grid-template-columns: 1fr; }
  .upd-card { padding: 20px; }
  .upd-breadcrumb .page_title h2 { font-size: 1.8rem; }
  .upd-breadcrumb .breadcrumb { justify-content: flex-start; margin-top: 15px; }
}


/* Test */


/* =====================================================
   SECTION 88: VIEW ANNOUNCEMENTS (view_announcements.php)
   ===================================================== */
.announcement-page {
  --an-primary: var(--primary);
  --an-primary-dark: var(--primary-dark);
  --an-primary-light: var(--primary-mist);
  --an-accent: var(--amber-500);
  --an-success: var(--green-500);
  --an-danger: #ef4444;
  --an-bg: #f7f9fc;
  max-width: 1000px;
  margin: 4rem auto;
  padding: 2rem;
}

.announcement-page .announcement-container {
  max-width: 100%;
  margin: 0;
  padding: 0;
}

.announcement-page .header-card {
  background-color: var(--an-primary);
  color: var(--white);
  padding: 3rem 2rem;
  border-radius: 1.6rem;
  margin-bottom: 2.5rem;
  text-align: center;
  box-shadow: 0 4px 12px rgba(37,99,235,.25);
}
.announcement-page .header-title {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: .8rem;
  letter-spacing: -.02em;
}
.announcement-page .header-subtitle {
  font-size: 1.6rem;
  opacity: .9;
  font-weight: 500;
}
.announcement-page .unread-badge {
  display: inline-block;
  background-color: var(--an-danger);
  color: var(--white);
  padding: .6rem 1.4rem;
  border-radius: 999px;
  font-size: 1.4rem;
  font-weight: 700;
  margin-top: 1.4rem;
  letter-spacing: .03em;
}

.announcement-page .announcement-item {
  background-color: var(--white);
  border-radius: 1.6rem;
  padding: 2rem 2.4rem;
  margin-bottom: 1.6rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 1px 3px rgba(0, 0, 0, .03);
  border-left: 5px solid var(--an-primary);
  transition: transform .25s ease, box-shadow .25s ease;
  position: relative;
}
.announcement-page .announcement-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, .08), 0 1px 4px rgba(0, 0, 0, .04);
}
.announcement-page .announcement-item.unread {
  background-color: var(--amber-100);
}
.announcement-page .announcement-item.urgent {
  border-left-color: var(--an-danger);
}
.announcement-page .announcement-item.high {
  border-left-color: var(--an-accent);
}

.announcement-page .announcement-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.4rem;
  gap: 1.4rem;
}
.announcement-page .announcement-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: .8rem;
  line-height: 1.3;
}
.announcement-page .announcement-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
}

.announcement-page .meta-badge,
.announcement-page .priority-badge {
  padding: .5rem 1rem;
  border-radius: .6rem;
  font-size: 1.3rem;
  font-weight: 700;
  display: inline-block;
  letter-spacing: .02em;
}
.announcement-page .category-general { background: var(--an-primary-light); color: var(--an-primary-dark); }
.announcement-page .category-academic { background: var(--primary-mist); color: #6b21a8; }
.announcement-page .category-event    { background: var(--green-100); color: var(--green-700); }
.announcement-page .category-urgent   { background: #fee2e2; color: #b91c1c; }
.announcement-page .category-fee      { background: var(--amber-100); color: var(--amber-700); }
.announcement-page .priority-urgent  { background-color: var(--an-danger); color: var(--white); }
.announcement-page .priority-high    { background-color: var(--an-accent); color: var(--white); }
.announcement-page .new-badge {
  display: inline-block;
  background-color: var(--an-danger);
  color: var(--white);
  padding: .3rem .8rem;
  border-radius: .5rem;
  font-size: 1.25rem;
  font-weight: 800;
  margin-left: .8rem;
  letter-spacing: .08em;
}

.announcement-page .announcement-content {
  font-size: 1.6rem;
  line-height: 1.75;
  color: var(--gray-800);
  margin-bottom: 1.6rem;
}
.announcement-page .announcement-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.4rem;
  border-top: 1px solid var(--gray-200);
  font-size: 1.4rem;
  color: var(--gray-500);
  flex-wrap: wrap;
  gap: 1.2rem;
}
.announcement-page .mark-read-btn {
  background-color: var(--an-success);
  color: var(--white);
  padding: .8rem 1.6rem;
  border: none;
  border-radius: .6rem;
  cursor: pointer;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: .02em;
  transition: background-color .2s ease, transform .2s ease;
}
.announcement-page .mark-read-btn:hover { background-color: var(--green-600); transform: translateY(-1px); }
.announcement-page .read-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .6rem 1.2rem;
  background-color: var(--green-100);
  color: var(--green-700);
  border-radius: .6rem;
  font-size: 1.3rem;
  font-weight: 700;
}
.announcement-page .empty-state {
  text-align: center;
  padding: 6rem 2rem;
  color: var(--gray-500);
  background-color: var(--white);
  border-radius: 1.6rem;
  font-size: 1.7rem;
}
.announcement-page .empty-state h2 { color: var(--gray-800); margin-bottom: 1rem; font-size: 2.4rem; }
.announcement-page .empty-state p { color: var(--gray-500); font-size: 1.6rem; }

@media (max-width: 768px) {
  .announcement-page { padding: 1.6rem; }
  .announcement-page .header-card { padding: 2.4rem 1.6rem; }
  .announcement-page .header-title { font-size: 2.4rem; }
  .announcement-page .announcement-item { padding: 1.6rem; }
  .announcement-page .announcement-header { flex-direction: column; gap: 1rem; }
  .announcement-page .announcement-footer { flex-direction: column; align-items: flex-start; }
  .announcement-page .mark-read-btn { width: 100%; }
}

/* =====================================================
   SECTION 89: VIEW CALENDAR (view_calendar.php)
   ===================================================== */
.calendar-page {
  --cal-primary: var(--primary);
  --cal-primary-dark: var(--primary-dark);
  --cal-primary-light: var(--primary-mist);
  --cal-bg: #f7f9fc;
  max-width: 1200px;
  margin: 4rem auto;
  padding: 2rem;
}

.calendar-page .calendar-container {
  max-width: 100%;
  margin: 0;
  padding: 0;
}

.calendar-page .header-card {
  background-color: var(--cal-primary);
  color: var(--white);
  padding: 3rem 2rem;
  border-radius: 1.6rem;
  margin-bottom: 2.4rem;
  text-align: center;
  box-shadow: 0 4px 12px rgba(37,99,235,.25);
}
.calendar-page .header-title {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1rem;
  letter-spacing: -.02em;
}
.calendar-page .calendar-nav {
  display: flex;
  justify-content: center;
  gap: 1.6rem;
  align-items: center;
  margin-top: 1.4rem;
  flex-wrap: wrap;
}
.calendar-page .nav-btn {
  background-color: rgba(255, 255, 255, .2);
  color: var(--white);
  padding: .8rem 1.6rem;
  border: none;
  border-radius: .6rem;
  cursor: pointer;
  font-weight: 700;
  font-size: 1.4rem;
  transition: background-color .2s ease, transform .2s ease;
}
.calendar-page .nav-btn:hover { background-color: rgba(255, 255, 255, .3); transform: translateY(-1px); }
.calendar-page .current-month {
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: .02em;
}

.calendar-page .content-grid {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 2.4rem;
}
.calendar-page .card {
  background-color: var(--white);
  border-radius: 1.6rem;
  padding: 2rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 1px 3px rgba(0, 0, 0, .03);
}
.calendar-page .card h3 {
  margin: 0 0 1.6rem;
  color: var(--gray-800);
  border-bottom: 2px solid var(--cal-primary);
  padding-bottom: 1rem;
  font-size: 2rem;
  font-weight: 700;
}

.calendar-page .calendar-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  table-layout: fixed;
}
.calendar-page .calendar-table th {
  background-color: var(--gray-700);
  color: var(--white);
  padding: 1rem;
  font-weight: 700;
  text-align: center;
  font-size: 1.4rem;
  letter-spacing: .03em;
}
.calendar-page .calendar-table td {
  border: 1px solid var(--gray-200);
  padding: .8rem;
  height: 100px;
  vertical-align: top;
  background-color: var(--white);
}
.calendar-page .calendar-table td.empty {
  background-color: var(--gray-100);
}
.calendar-page .calendar-table td.today {
  background-color: var(--amber-100);
  border: 2px solid var(--amber-500);
}
.calendar-page .day-number {
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: .4rem;
  font-size: 1.4rem;
}
.calendar-page .event-dot {
  padding: .3rem .8rem;
  border-radius: .5rem;
  font-size: 1.25rem;
  margin-bottom: .3rem;
  display: block;
  color: var(--white);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
}

.calendar-page .upcoming-item {
  background-color: var(--gray-50);
  padding: 1.4rem;
  border-radius: 1rem;
  margin-bottom: 1.4rem;
  border-left: 4px solid var(--cal-primary);
}
.calendar-page .event-title {
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: .4rem;
  font-size: 1.5rem;
  letter-spacing: .01em;
}
.calendar-page .event-details {
  font-size: 1.3rem;
  color: var(--gray-500);
  line-height: 1.6;
}
.calendar-page .event-type-badge {
  display: inline-block;
  padding: .3rem 1rem;
  border-radius: .5rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  margin-top: .6rem;
  letter-spacing: .03em;
}
.calendar-page .empty-state {
  text-align: center;
  padding: 3rem 2rem;
  color: var(--gray-500);
  font-size: 1.6rem;
}

@media (max-width: 1024px) {
  .calendar-page .content-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .calendar-page { padding: 1.6rem; }
  .calendar-page .calendar-table th, .calendar-page .calendar-table td { font-size: 1.3rem; padding: .4rem; }
  .calendar-page .header-title { font-size: 2.4rem; }
  .calendar-page .nav-btn { padding: .6rem 1.2rem; font-size: 1.3rem; }
  .calendar-page .calendar-table td { height: 80px; }
}

/* =====================================================
   SECTION 90: VIEW ALL NOTIFICATIONS (view_all_notifications.php)
   ===================================================== */
.notif-page {
  max-width: 900px;
  margin: 2.4rem auto;
  padding: 2rem;
}

.notif-page .notifications-page-container {
  max-width: 100%;
  margin: 0;
  padding: 0;
}

.notif-page .page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2.4rem;
  flex-wrap: wrap;
  gap: 1.2rem;
}
.notif-page .page-header h2 {
  color: var(--gray-800);
  margin: 0;
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -.01em;
}

.notif-page .notifications-timeline {
  position: relative;
  padding-left: 4rem;
}
.notif-page .notifications-timeline::before {
  content: '';
  position: absolute;
  left: 2rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--gray-200);
}
.notif-page .timeline-item {
  position: relative;
  margin-bottom: 2.4rem;
  background: var(--white);
  border-radius: 1.2rem;
  padding: 1.8rem 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .06), 0 1px 3px rgba(0, 0, 0, .04);
  border-left: 4px solid var(--primary-light);
  transition: transform .2s ease, box-shadow .2s ease;
}
.notif-page .timeline-item:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, .08);
}
.notif-page .timeline-item.type-success { border-left-color: var(--green-500); }
.notif-page .timeline-item.type-warning { border-left-color: var(--amber-500); }
.notif-page .timeline-item.type-urgent  { border-left-color: #ef4444; }
.notif-page .timeline-item.unread { background: var(--primary-mist); }

.notif-page .timeline-marker {
  position: absolute;
  left: -3rem;
  top: 1.6rem;
  width: 3.6rem;
  height: 3.6rem;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  font-size: 1.6rem;
}
.notif-page .timeline-item.type-success .timeline-marker { border-color: var(--green-500); }
.notif-page .timeline-item.type-warning .timeline-marker { border-color: var(--amber-500); }
.notif-page .timeline-item.type-urgent  .timeline-marker { border-color: #ef4444; }

.notif-page .timeline-content { position: relative; }
.notif-page .timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
  gap: 1rem;
}
.notif-page .timeline-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--gray-800);
  margin: 0;
  line-height: 1.3;
}
.notif-page .timeline-time {
  font-size: 1.3rem;
  color: var(--gray-600);
  white-space: nowrap;
}
.notif-page .timeline-message {
  color: var(--gray-800);
  line-height: 1.7;
  margin: 0 0 1.2rem;
  font-size: 1.5rem;
}
.notif-page .timeline-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.4rem;
}
.notif-page .timeline-link:hover { text-decoration: underline; }

.notif-page .unread-indicator {
  position: absolute;
  top: -.8rem;
  right: -.8rem;
  background: #ef4444;
  color: var(--white);
  padding: .4rem 1rem;
  border-radius: 999px;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: .04em;
}

.notif-page .empty-state {
  text-align: center;
  padding: 6rem 2rem;
  color: var(--gray-600);
  background: var(--white);
  border-radius: 1.2rem;
  font-size: 1.7rem;
}
.notif-page .empty-state h3 { color: var(--gray-800); font-size: 2.2rem; margin-bottom: 1rem; }

@media (max-width: 768px) {
  .notif-page { padding: 1.6rem; }
  .notif-page .page-header { flex-direction: column; align-items: flex-start; }
  .notif-page .notifications-timeline { padding-left: 3rem; }
  .notif-page .timeline-marker { left: -2.4rem; width: 3rem; height: 3rem; font-size: 1.3rem; }
  .notif-page .timeline-header { flex-direction: column; gap: .4rem; }
}

/* =====================================================
   SECTION 91: VIEW CERTIFICATE (view_certificate.php)
   ===================================================== */
.cert-page {
  --cert-primary: var(--primary-light);
  --cert-primary-dark: var(--primary-light);
  --cert-success: var(--green-500);
  --cert-success-dark: var(--green-500);
  --cert-border: var(--primary-light);
  background: var(--gray-100);
  font-family: 'Georgia', serif;
  padding: 2rem;
  min-height: 100vh;
}

.cert-page *, .cert-page *::before, .cert-page *::after { box-sizing: border-box; }

.cert-page .certificate-container {
  max-width: 1000px;
  margin: 0 auto;
  background: var(--white);
  padding: 2rem;
  border-radius: .8rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, .1);
}
.cert-page .action-buttons {
  text-align: center;
  margin-bottom: 2rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.cert-page .btn {
  padding: 1.2rem 2.4rem;
  border: none;
  border-radius: .6rem;
  cursor: pointer;
  font-size: 1.4rem;
  font-weight: 700;
  transition: all .2s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  letter-spacing: .02em;
}
.cert-page .btn-primary { background-color: var(--primary-light); color: var(--white); }
.cert-page .btn-primary:hover { background-color: var(--primary-light); }
.cert-page .btn-success { background-color: var(--green-500); color: var(--white); }
.cert-page .btn-success:hover { background-color: var(--green-500); }

.cert-page .certificate {
  background: var(--white);
  border: 15px solid var(--cert-border);
  border-radius: 1rem;
  padding: 6rem;
  position: relative;
  min-height: 700px;
}
.cert-page .certificate::before {
  content: '';
  position: absolute;
  top: 3rem;
  left: 3rem;
  right: 3rem;
  bottom: 3rem;
  border: 2px solid var(--cert-border);
  border-radius: .5rem;
  opacity: .3;
}
.cert-page .certificate-content { position: relative; z-index: 1; }
.cert-page .cert-header { text-align: center; margin-bottom: 3.2rem; }
.cert-page .school-logo { font-size: 5rem; margin-bottom: .8rem; }
.cert-page .school-name {
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: .4rem;
  letter-spacing: .05em;
}
.cert-page .school-address {
  font-size: 1.3rem;
  color: var(--gray-600);
  margin-bottom: 1.6rem;
}
.cert-page .cert-title {
  font-size: 3.2rem;
  font-weight: 700;
  color: var(--cert-border);
  letter-spacing: .15em;
  margin-top: 1.6rem;
  text-transform: uppercase;
}
.cert-page .cert-number {
  font-size: 1.3rem;
  color: var(--gray-600);
  margin-top: .8rem;
  letter-spacing: .04em;
}

.cert-page .cert-body { text-align: center; margin: 3.2rem 0; }
.cert-page .presented-to {
  font-size: 1.6rem;
  color: var(--gray-600);
  font-style: italic;
  margin-bottom: 1.6rem;
}
.cert-page .student-name {
  font-size: 3.6rem;
  font-weight: 700;
  color: var(--gray-800);
  margin: 2.4rem 0;
  border-bottom: 3px solid var(--cert-border);
  padding-bottom: 1.2rem;
  display: inline-block;
  letter-spacing: .03em;
}
.cert-page .award-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--cert-border);
  margin: 2rem 0;
}
.cert-page .cert-text {
  font-size: 1.6rem;
  line-height: 1.8;
  color: var(--gray-800);
  margin: 2rem 0;
}
.cert-page .award-description {
  font-size: 1.5rem;
  color: var(--gray-600);
  font-style: italic;
  margin: 1.6rem 0;
}
.cert-page .footer-text {
  font-size: 1.5rem;
  color: var(--green-500);
  font-weight: 700;
  margin-top: 2.4rem;
}

.cert-page .cert-footer {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 3.2rem;
  margin-top: 4.8rem;
  align-items: end;
}
.cert-page .signature-section { text-align: center; }
.cert-page .signature-line {
  border-top: 2px solid var(--gray-800);
  width: 18rem;
  margin: 0 auto .6rem;
}
.cert-page .signature-name {
  font-weight: 700;
  color: var(--gray-800);
  font-size: 1.4rem;
  margin-bottom: .3rem;
}
.cert-page .signature-title { font-size: 1.3rem; color: var(--gray-600); }
.cert-page .seal-section { text-align: center; }
.cert-page .official-seal {
  width: 10rem;
  height: 10rem;
  border: 4px solid var(--cert-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  background: rgba(52, 152, 219, .1);
}
.cert-page .seal-text {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--cert-border);
  text-align: center;
  line-height: 1.3;
}
.cert-page .date-section { text-align: center; }
.cert-page .date-label { font-size: 1.3rem; color: var(--gray-600); margin-bottom: .6rem; }
.cert-page .date-value {
  font-weight: 700;
  color: var(--gray-800);
  font-size: 1.4rem;
  border-top: 2px solid var(--gray-800);
  padding-top: .6rem;
  width: 13rem;
  margin: 0 auto;
}
.cert-page .verification-code {
  text-align: center;
  margin-top: 2.4rem;
  padding-top: 1.6rem;
  border-top: 1px dashed var(--gray-200);
}
.cert-page .verification-text { font-size: 1.3rem; color: var(--gray-600); letter-spacing: .02em; }

@media print {
  .cert-page { background: var(--white); padding: 0; }
  .cert-page .action-buttons { display: none; }
  .cert-page .certificate-container { box-shadow: none; padding: 0; }
  .cert-page .certificate { page-break-inside: avoid; }
}
@media (max-width: 768px) {
  .cert-page { padding: 0; }
  .cert-page .certificate { padding: 3rem 2rem; }
  .cert-page .school-name { font-size: 2.2rem; }
  .cert-page .cert-title { font-size: 2.4rem; letter-spacing: .1em; }
  .cert-page .student-name { font-size: 2.8rem; }
  .cert-page .cert-footer { grid-template-columns: 1fr; gap: 2.4rem; }
}

/* =====================================================
   SECTION 92: VIEW QR CODE (view_qr.php)
   ===================================================== */
.qr-page {
  max-width: 500px;
  margin: 3rem auto;
  background: var(--white);
  border-radius: 1.2rem;
  padding: 3rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, .1);
  text-align: center;
}
.qr-page .qr-container {
  max-width: 100%;
  margin: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
  border-radius: 0;
  text-align: center;
}
.qr-page .qr-container .student-name {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: 1rem;
  letter-spacing: -.01em;
}
.qr-page .qr-container .student-matric {
  font-size: 1.5rem;
  color: var(--gray-500);
  margin-bottom: 1.6rem;
  letter-spacing: .04em;
}
.qr-page .qr-container .qr-code-large {
  width: 28rem;
  max-width: 100%;
  height: 28rem;
  margin: 1.6rem auto;
  border: 3px solid var(--primary-light);
  border-radius: 1.2rem;
  padding: 1rem;
  background: var(--white);
}
.qr-page .qr-container .qr-code-large img { width: 100%; height: 100%; }
.qr-page .qr-container .card-info {
  background: var(--gray-50);
  padding: 1.4rem;
  border-radius: .8rem;
  margin-top: 1.6rem;
  text-align: left;
}
.qr-page .qr-container .info-row {
  display: flex;
  justify-content: space-between;
  padding: .8rem 0;
  border-bottom: 1px solid var(--gray-100);
}
.qr-page .qr-container .info-row:last-child { border-bottom: none; }
.qr-page .qr-container .info-label { color: var(--gray-600); font-size: 1.3rem; font-weight: 500; }
.qr-page .qr-container .info-value { font-weight: 700; color: var(--gray-800); font-size: 1.3rem; }
.qr-page .qr-container .btn {
  padding: 1.2rem 2.4rem;
  border: none;
  border-radius: .6rem;
  cursor: pointer;
  font-size: 1.4rem;
  font-weight: 700;
  margin-top: 1.6rem;
  background-color: var(--primary-light);
  color: var(--white);
  text-decoration: none;
  display: inline-block;
  transition: background-color .2s ease;
}
.qr-page .qr-container .btn:hover { background-color: var(--primary-light); }
.qr-page .qr-container .download-link { margin-top: 1.2rem; font-size: 1.3rem; }
.qr-page .qr-container .download-link a {
  color: var(--primary-light);
  text-decoration: none;
  font-weight: 600;
}
.qr-page .qr-container .download-link a:hover { text-decoration: underline; }

@media (max-width: 600px) {
  .qr-page { padding: 2rem 1.6rem; }
  .qr-page .qr-container .qr-code-large { width: 100%; height: auto; aspect-ratio: 1; }
}

/* =====================================================
   SECTION 93: YEARBOOK DEBUG TOOL (y2.php)
   ===================================================== */
.yb-debug-page {
  font-family: monospace;
  background: var(--gray-900);
  color: #c9d1d9;
  padding: 3rem;
  min-height: 100vh;
  max-width: 100%;
  margin: 0;
}
.yb-debug-page h1 {
  color: var(--green-500);
  margin-bottom: .4rem;
  font-size: 2.4rem;
}
.yb-debug-page h2 {
  color: var(--gold);
  margin: 2.4rem 0 .8rem;
  font-size: 1.4rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.yb-debug-page .card {
  background: var(--gray-900);
  border: 1px solid var(--gray-700);
  border-radius: .6rem;
  padding: 1.6rem;
  margin-bottom: 1.2rem;
}
.yb-debug-page .ok   { color: #3fb950; }
.yb-debug-page .fail { color: #f85149; }
.yb-debug-page .warn { color: #e3b341; }
.yb-debug-page .info { color: #79c0ff; }
.yb-debug-page pre {
  background: var(--gray-900);
  border: 1px solid #21262d;
  border-radius: .4rem;
  padding: 1.2rem;
  overflow-x: auto;
  font-size: 1.3rem;
  white-space: pre-wrap;
  word-break: break-all;
  max-height: 400px;
  overflow-y: auto;
}
.yb-debug-page .btn {
  background: #238636;
  color: var(--white);
  border: none;
  border-radius: .4rem;
  padding: .8rem 1.8rem;
  cursor: pointer;
  font-family: monospace;
  font-size: 1.3rem;
  margin-right: .8rem;
  margin-top: .8rem;
  transition: background-color .2s ease;
}
.yb-debug-page .btn:hover { background: #2ea043; }
.yb-debug-page .btn.red { background: #b62324; }
.yb-debug-page .btn.red:hover { background: #da3633; }

.yb-debug-page table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.3rem;
}
.yb-debug-page th {
  text-align: left;
  padding: .8rem 1.2rem;
  border-bottom: 1px solid var(--gray-700);
  color: var(--gold);
}
.yb-debug-page td {
  padding: .8rem 1.2rem;
  border-bottom: 1px solid #21262d;
}
.yb-debug-page .badge {
  display: inline-block;
  padding: .2rem .8rem;
  border-radius: .3rem;
  font-size: 1.25rem;
  font-weight: 700;
}
.yb-debug-page .badge-ok   { background: rgba(63, 185, 80, .2);  color: #3fb950; }
.yb-debug-page .badge-fail { background: rgba(248, 81, 73, .2);  color: #f85149; }
.yb-debug-page .badge-warn { background: rgba(227, 179, 65, .2); color: #e3b341; }
.yb-debug-page #log { max-height: 350px; overflow-y: auto; }
.yb-debug-page .log-line {
  padding: .3rem 0;
  border-bottom: 1px solid #21262d;
  font-size: 1.3rem;
}

/* =====================================================
   SECTION 94: STUDENT PRACTICE HUB (student_practice_hub.php)
   ===================================================== */
.hub-wrap {
  background: var(--bg-alt);
  min-height: 100vh;
  padding-bottom: 6rem;
}

.hub-banner {
  background: var(--primary-dark);
  color: var(--white);
  padding: 2.6rem 0;
}
.hub-banner h2 { margin: 0 0 .4rem; font-size: 2.2rem; font-weight: 800; color: var(--white); }
.hub-banner p  { margin: 0; font-size: 1.3rem; opacity: .85; }

.hub-section-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--gray-800);
  margin: 2.4rem 0 1.2rem;
  display: flex;
  align-items: center;
  gap: .8rem;
}
.hub-section-title::before {
  content: '';
  width: .4rem; height: 1.8rem;
  background: var(--accent);
  border-radius: .2rem;
  flex-shrink: 0;
}

.hub-type-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.6rem;
  margin-bottom: 2.8rem;
}
.hub-type-card {
  border-radius: 1.2rem;
  padding: 2.4rem 2rem;
  cursor: pointer;
  transition: all .2s ease;
  border: .3rem solid transparent;
  position: relative;
  overflow: hidden;
  user-select: none;
  background: var(--white);
}
.hub-type-card.jamb-card {
  background: var(--primary-deeper);
  color: var(--white);
}
.hub-type-card.waec-card {
  background: var(--green-800);
  color: var(--white);
}
.hub-type-card:hover, .hub-type-card.selected {
  transform: translateY(-.3rem);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .18);
}
.hub-type-card.selected { border-color: var(--accent); }
.hub-type-badge {
  display: inline-block;
  background: rgba(255, 255, 255, .2);
  border: .1rem solid rgba(255, 255, 255, .35);
  border-radius: 999px;
  padding: .4rem 1.2rem;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.hub-type-card h3 { margin: 0 0 .6rem; font-size: 2rem; font-weight: 900; color: var(--white); }
.hub-type-card p  { margin: 0; font-size: 1.3rem; opacity: .85; color: var(--white); }
.hub-type-icon {
  font-size: 4rem;
  position: absolute;
  right: 1.6rem;
  top: 1.6rem;
  opacity: .2;
}

.hub-form-card {
  background: var(--white);
  border-radius: 1rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .08);
  overflow: hidden;
  margin-bottom: 2.4rem;
  display: none;
}
.hub-form-card.visible { display: block; animation: hubFadeIn .25s ease; }
@keyframes hubFadeIn { from { opacity: 0; transform: translateY(.6rem); } to { opacity: 1; transform: translateY(0); } }
.hub-form-head {
  padding: 1.4rem 2rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: .8rem;
}
.hub-form-head.jamb-head { background: var(--primary-deeper); }
.hub-form-head.waec-head { background: var(--green-800); }
.hub-form-body { padding: 2rem; }

.hub-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1.4rem;
  margin-bottom: 1.6rem;
}
.hub-label { font-size: 1.3rem; font-weight: 700; color: var(--gray-700); margin-bottom: .5rem; display: block; }
.hub-select {
  width: 100%;
  padding: 1rem 1.2rem;
  border: .15rem solid var(--gray-300);
  border-radius: .6rem;
  font-size: 1.3rem;
  appearance: none;
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%236b7280'/%3E%3C/svg%3E") no-repeat right 1rem center;
  transition: border-color .2s;
}
.hub-select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 .3rem rgba(37,99,235,.1); }

.hub-num-grid {
  display: flex;
  gap: .8rem;
  flex-wrap: wrap;
  margin-top: .4rem;
}
.hub-num-btn {
  padding: .8rem 1.6rem;
  border: .2rem solid var(--gray-300);
  border-radius: .6rem;
  background: var(--white);
  font-size: 1.3rem;
  font-weight: 700;
  cursor: pointer;
  transition: all .15s;
  color: var(--gray-700);
}
.hub-num-btn:hover { border-color: var(--accent); color: var(--accent); }
.hub-num-btn.selected { background: var(--accent); border-color: var(--accent); color: var(--white); }

.hub-start-btn {
  display: inline-flex;
  align-items: center;
  gap: .8rem;
  padding: 1.2rem 2.8rem;
  background: var(--accent);
  color: var(--white);
  border: none;
  border-radius: .7rem;
  font-size: 1.5rem;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s;
  text-decoration: none;
}
.hub-start-btn:hover { background: var(--accent-dark); color: var(--white); transform: translateY(-.1rem); text-decoration: none; }
.hub-start-btn:disabled { background: var(--gray-400); cursor: not-allowed; transform: none; }

.hub-avail-note {
  font-size: 1.3rem;
  color: var(--gray-500);
  margin-top: .6rem;
}
.hub-avail-note.good  { color: var(--green-600); }
.hub-avail-note.warn  { color: var(--amber-600); }
.hub-avail-note.bad   { color: #dc2626; }

.hub-recent-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(20rem, 1fr));
  gap: 1rem;
}
.hub-recent-card {
  background: var(--white);
  border-radius: .8rem;
  padding: 1.4rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .06);
  border-top: .3rem solid var(--accent);
}
.hub-recent-type { font-size: 1.3rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; margin-bottom: .4rem; }
.hub-recent-subj { font-size: 1.3rem; font-weight: 700; color: var(--gray-800); margin-bottom: .2rem; }
.hub-recent-year { font-size: 1.3rem; color: var(--gray-500); margin-bottom: .8rem; }
.hub-recent-score {
  font-size: 2.2rem;
  font-weight: 900;
  margin-bottom: .2rem;
}
.hub-recent-score.good  { color: var(--green-500); }
.hub-recent-score.avg   { color: var(--amber-500); }
.hub-recent-score.poor  { color: #ef4444; }
.hub-recent-date { font-size: 1.3rem; color: var(--gray-400); }
.hub-recent-retry {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  margin-top: .6rem;
}
.hub-recent-retry:hover { color: var(--primary-dark); text-decoration: underline; }

.hub-back {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  color: var(--gray-500);
  font-size: 1.3rem;
  font-weight: 600;
  text-decoration: none;
  margin-bottom: 1.4rem;
  margin-top: 1.6rem;
}
.hub-back:hover { color: var(--accent); text-decoration: none; }

@media (max-width: 700px) {
  .hub-type-grid  { grid-template-columns: 1fr; }
  .hub-form-grid  { grid-template-columns: 1fr; }
}

/* =====================================================
   SECTION 95: STUDENT PRACTICE RESULT (student_practice_result.php)
   ===================================================== */
.pr-page {
  --pr-primary: var(--primary);
  --pr-success: var(--green-500);
  --pr-warning: var(--amber-500);
  --pr-danger:  #ef4444;
  --pr-gray50:  var(--gray-50);
  --pr-gray100: var(--gray-100);
  --pr-gray200: var(--gray-200);
  --pr-gray300: var(--gray-300);
  --pr-gray500: var(--gray-500);
  --pr-gray700: var(--gray-700);
  --pr-gray800: var(--gray-800);
  --pr-text:    var(--gray-800);
  background: var(--bg-alt);
  font-family: var(--font-body);
}
.pr-page *, .pr-page *::before, .pr-page *::after { box-sizing: border-box; }
.pr-page .pr-wrap { max-width: 94rem; margin: 2.4rem auto; padding: 0 1.2rem 6rem; }

.pr-page .pr-score-card {
  background: var(--gray-800);
  color: var(--white);
  border-radius: 1.2rem;
  padding: 3.2rem;
  text-align: center;
  margin-bottom: 2rem;
}
.pr-page .pr-score-ring {
  position: relative;
  width: 16rem;
  height: 16rem;
  margin: 0 auto 2rem;
}
.pr-page .pr-score-ring svg { transform: rotate(-90deg); }
.pr-page .pr-ring-bg  { fill: none; stroke: rgba(255, 255, 255, .15); stroke-width: 1.2; }
.pr-page .pr-ring-fg  { fill: none; stroke-width: 1.2; stroke-linecap: round; transition: stroke-dashoffset 1.2s ease; }
.pr-page .pr-ring-text {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}
.pr-page .pr-score-pct  { font-size: 3.6rem; font-weight: 900; display: block; line-height: 1.1; }
.pr-page .pr-score-lbl  { font-size: 1.3rem; opacity: .7; }
.pr-page .pr-grade-badge {
  display: inline-block; padding: .8rem 2.2rem; border-radius: 999px;
  font-size: 2.2rem; font-weight: 900; margin-bottom: 1.4rem;
  background: rgba(255, 255, 255, .15);
}
.pr-page .pr-info-row { font-size: 1.4rem; opacity: .8; }

.pr-page .pr-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; margin-bottom: 2.2rem;
}
.pr-page .pr-stat {
  background: var(--white); border-radius: 1rem; padding: 1.8rem; text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .07); border-top: .4rem solid transparent;
}
.pr-page .pr-stat.sc { border-top-color: var(--pr-success); }
.pr-page .pr-stat.si { border-top-color: var(--pr-danger); }
.pr-page .pr-stat.su { border-top-color: var(--pr-warning); }
.pr-page .pr-stat.st { border-top-color: var(--pr-primary); }
.pr-page .pr-stat-val { font-size: 2.8rem; font-weight: 900; color: var(--pr-gray800); }
.pr-page .pr-stat-lbl { font-size: 1.3rem; font-weight: 700; color: var(--pr-gray500); text-transform: uppercase; letter-spacing: .05em; margin-top: .4rem; }

.pr-page .pr-filters {
  display: flex; gap: .8rem; flex-wrap: wrap; margin-bottom: 1.8rem;
}
.pr-page .pr-filter-btn {
  padding: .8rem 1.8rem; border-radius: 999px; font-size: 1.3rem; font-weight: 700;
  border: .2rem solid var(--pr-gray300); background: var(--white); color: var(--pr-gray700); cursor: pointer;
  transition: all .2s;
}
.pr-page .pr-filter-btn.active, .pr-page .pr-filter-btn:hover {
  background: var(--pr-primary); border-color: var(--pr-primary); color: var(--white);
}

.pr-page .pr-question-card {
  background: var(--white);
  border-radius: 1rem;
  padding: 1.8rem 2rem;
  margin-bottom: 1.2rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .06);
  border-left: .4rem solid var(--pr-primary);
}
.pr-page .pr-question-card.correct { border-left-color: var(--pr-success); }
.pr-page .pr-question-card.wrong   { border-left-color: var(--pr-danger); }
.pr-page .pr-q-num { font-size: 1.4rem; font-weight: 700; color: var(--pr-gray500); margin-bottom: .8rem; }
.pr-page .pr-q-text { font-size: 1.6rem; font-weight: 600; color: var(--pr-gray800); margin-bottom: 1.2rem; }
.pr-page .pr-options { display: flex; flex-direction: column; gap: .6rem; }
.pr-page .pr-option {
  padding: 1rem 1.2rem;
  border-radius: .6rem;
  background: var(--pr-gray50);
  border: .15rem solid var(--pr-gray200);
  font-size: 1.4rem;
  color: var(--pr-gray700);
  display: flex;
  align-items: center;
  gap: .8rem;
}
.pr-page .pr-option.correct { background: var(--green-100); border-color: var(--pr-success); color: var(--green-700); font-weight: 700; }
.pr-page .pr-option.wrong   { background: #fee2e2; border-color: var(--pr-danger); color: #b91c1c; }
.pr-page .pr-option.user-pick { box-shadow: 0 0 0 .2rem rgba(37, 99, 235, .2); }

.pr-page .pr-explanation {
  margin-top: 1rem;
  padding: 1rem 1.4rem;
  background: var(--primary-mist);
  border-left: .4rem solid var(--pr-primary);
  border-radius: .4rem;
  font-size: 1.4rem;
  color: var(--pr-gray700);
}

@media (max-width: 700px) {
  .pr-page .pr-stats { grid-template-columns: repeat(2, 1fr); }
  .pr-page .pr-score-card { padding: 2rem 1.6rem; }
}

/* =====================================================
   SECTION 96: STUDENT GAME LEADERBOARD (student_game_leaderboard.php)
   ===================================================== */
.lb-page { background: var(--gray-100); }
.lb-page .leaderboard-container {
  max-width: 90rem;
  margin: 2rem auto;
  padding: 2rem;
}
.lb-page .header-card {
  background: var(--primary);
  color: var(--white);
  padding: 3rem;
  border-radius: 1.2rem;
  margin-bottom: 2.5rem;
  text-align: center;
}
.lb-page .header-title { font-size: 3.2rem; font-weight: 800; margin-bottom: 1rem; }
.lb-page .header-subtitle { font-size: 1.6rem; opacity: .9; }

.lb-page .my-rank-card {
  background: #ffeaa7;
  border: .3rem solid #fdcb6e;
  padding: 2rem;
  border-radius: 1.2rem;
  margin-bottom: 2.5rem;
  text-align: center;
}
.lb-page .my-rank-title { font-size: 1.6rem; color: var(--gray-600); margin-bottom: 1rem; }
.lb-page .my-rank-display { display: flex; justify-content: center; align-items: center; gap: 3rem; flex-wrap: wrap; }
.lb-page .rank-item { text-align: center; }
.lb-page .rank-number { font-size: 3.6rem; font-weight: 800; color: var(--amber-500); }
.lb-page .rank-label { font-size: 1.4rem; color: var(--gray-600); }

.lb-page .leaderboard-card {
  background: var(--white);
  border-radius: 1.2rem;
  padding: 2.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .1);
}
.lb-page .leaderboard-title {
  font-size: 2.4rem; font-weight: 800; color: var(--gray-800); margin-bottom: 2rem; text-align: center;
}
.lb-page .leaderboard-item {
  display: flex; align-items: center; padding: 1.5rem; margin-bottom: 1rem;
  border-radius: .8rem; background: var(--gray-50);
  transition: all .3s;
}
.lb-page .leaderboard-item:hover { transform: translateX(.5rem); box-shadow: 0 2px 8px rgba(0, 0, 0, .1); }
.lb-page .leaderboard-item.top1 { background: #ffd700; }
.lb-page .leaderboard-item.top2 { background: #c0c0c0; }
.lb-page .leaderboard-item.top3 { background: #cd7f32; color: var(--white); }
.lb-page .leaderboard-item.you { background: var(--green-tint-300); border: .2rem solid var(--green-500); }

.lb-page .lb-rank {
  width: 4rem; height: 4rem; border-radius: 50%; background: var(--white); display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.8rem; color: var(--gray-800); margin-right: 1.5rem; flex-shrink: 0;
}
.lb-page .lb-avatar {
  width: 4rem; height: 4rem; border-radius: 50%; background: var(--primary-light); color: var(--white); display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.6rem; margin-right: 1.5rem; flex-shrink: 0;
}
.lb-page .lb-info { flex: 1; }
.lb-page .lb-name { font-size: 1.6rem; font-weight: 700; color: var(--gray-800); }
.lb-page .lb-meta { font-size: 1.3rem; color: var(--gray-600); }
.lb-page .lb-score { font-size: 2.4rem; font-weight: 900; color: var(--gray-800); margin-left: auto; padding-left: 1rem; }

@media (max-width: 600px) {
  .lb-page .leaderboard-container { padding: 1.6rem; }
  .lb-page .header-title { font-size: 2.4rem; }
  .lb-page .leaderboard-item { padding: 1rem; }
  .lb-page .lb-rank, .lb-page .lb-avatar { width: 3.4rem; height: 3.4rem; font-size: 1.4rem; }
}

/* =====================================================
   SECTION 97: STUDENT GAME RESULT (student_game_result.php)
   ===================================================== */
.sgr-page { background: var(--gray-100); font-family: var(--font-body); }
.sgr-page .results-container {
  max-width: 70rem;
  margin: 2rem auto;
  padding: 2rem;
}
.sgr-page .results-card {
  background: var(--white);
  border-radius: 1.2rem;
  padding: 4rem;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, .1);
  animation: sgrSlideIn .5s ease-out;
}
@keyframes sgrSlideIn {
  from { transform: translateY(-3rem); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.sgr-page .trophy-icon {
  font-size: 10rem;
  margin-bottom: 2rem;
  animation: sgrBounce 1s infinite;
}
@keyframes sgrBounce {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-1rem); }
}
.sgr-page .results-title { font-size: 3.2rem; font-weight: 800; color: var(--gray-800); margin-bottom: 1rem; }
.sgr-page .game-name    { font-size: 1.8rem; color: var(--gray-600); margin-bottom: 3rem; }

.sgr-page .score-display {
  background: var(--primary);
  color: var(--white);
  padding: 3rem;
  border-radius: 1.2rem;
  margin-bottom: 3rem;
}
.sgr-page .score-number { font-size: 6.4rem; font-weight: 900; margin-bottom: 1rem; }
.sgr-page .score-label  { font-size: 1.8rem; opacity: .9; }

.sgr-page .stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}
.sgr-page .stat-box {
  background: var(--gray-50);
  padding: 2rem;
  border-radius: .8rem;
  border-left: .4rem solid var(--primary-light);
}
.sgr-page .stat-box.correct { border-left-color: var(--green-500); }
.sgr-page .stat-box.wrong   { border-left-color: #dc3545; }
.sgr-page .stat-box.time    { border-left-color: var(--amber-500); }
.sgr-page .stat-box.streak  { border-left-color: #9b59b6; }
.sgr-page .stat-number { font-size: 3.2rem; font-weight: 900; color: var(--gray-800); }
.sgr-page .stat-label  { font-size: 1.4rem; color: var(--gray-600); margin-top: .5rem; }

.sgr-page .action-buttons { display: flex; gap: 1.2rem; justify-content: center; flex-wrap: wrap; }
.sgr-page .action-buttons .btn {
  padding: 1.2rem 2.4rem;
  border: none;
  border-radius: .6rem;
  cursor: pointer;
  font-size: 1.4rem;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  transition: all .2s;
}
.sgr-page .btn-primary { background: var(--primary-light); color: var(--white); }
.sgr-page .btn-primary:hover { background: var(--primary-light); }
.sgr-page .btn-success { background: var(--green-500); color: var(--white); }
.sgr-page .btn-success:hover { background: var(--green-500); }
.sgr-page .btn-warning { background: var(--amber-500); color: var(--white); }
.sgr-page .btn-warning:hover { background: #e67e22; }

@media (max-width: 600px) {
  .sgr-page .results-container { padding: 1.6rem; }
  .sgr-page .results-card { padding: 2rem 1.6rem; }
  .sgr-page .trophy-icon { font-size: 6rem; }
  .sgr-page .results-title { font-size: 2.4rem; }
  .sgr-page .score-number { font-size: 4.4rem; }
  .sgr-page .stats-grid { grid-template-columns: 1fr; }
}

/* =====================================================
   SECTION 98: STUDENT PRACTICE EXAM (student_practice_exam.php)
   ===================================================== */
.spe-page {
  --spe-primary: var(--primary);
  --spe-success: var(--green-500);
  --spe-warning: var(--amber-500);
  --spe-danger:  #ef4444;
  background: var(--bg);
  font-family: var(--font-body);
}
.spe-page *, .spe-page *::before, .spe-page *::after { box-sizing: border-box; }

.spe-page .exam-container {
  max-width: 90rem;
  margin: 2rem auto;
  padding: 0 1.2rem;
}
.spe-page .exam-header {
  background: var(--gray-800);
  color: var(--white);
  padding: 2rem;
  border-radius: .8rem .8rem 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 5px rgba(0, 0, 0, .2);
  flex-wrap: wrap;
  gap: 1.2rem;
}
.spe-page .exam-title { font-size: 2.6rem; font-weight: 800; margin: 0; }
.spe-page .exam-info  { display: flex; gap: 1.6rem; font-size: 1.5rem; margin-top: .6rem; flex-wrap: wrap; opacity: .85; }
.spe-page .timer-section { text-align: center; }
.spe-page .timer-circle-container { position: relative; width: 13rem; height: 13rem; margin: 0 auto; }
.spe-page .timer-circle { transform: rotate(-90deg); }
.spe-page .timer-circle-bg { fill: none; stroke: var(--gray-200); stroke-width: .8; }
.spe-page .timer-circle-progress {
  fill: none; stroke: var(--green-500); stroke-width: .8; stroke-linecap: round;
  stroke-dasharray: 376; stroke-dashoffset: 0;
  transition: stroke-dashoffset 1s linear;
}
.spe-page .timer-text {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%); text-align: center; color: var(--white);
}
.spe-page .timer-display { font-size: 1.9rem; font-weight: 800; display: block; }
.spe-page .timer-lbl-sm  { font-size: 1.3rem; color: var(--gray-400); display: block; margin-top: .2rem; }

.spe-page .exam-body {
  background: var(--white);
  border: .1rem solid var(--gray-300);
  border-top: none;
  border-radius: 0 0 .8rem .8rem;
  padding: 2.8rem;
}

.spe-page .question-card {
  background: var(--gray-50);
  border: .2rem solid var(--gray-200);
  border-radius: 1rem;
  padding: 2rem;
  margin-bottom: 1.6rem;
}
.spe-page .question-num {
  display: inline-block;
  background: var(--primary);
  color: var(--white);
  padding: .3rem 1rem;
  border-radius: 999px;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
.spe-page .question-text { font-size: 1.6rem; font-weight: 600; color: var(--gray-800); margin-bottom: 1.4rem; line-height: 1.6; }

.spe-page .options-list { list-style: none; padding: 0; margin: 0; }
.spe-page .option-item {
  background: var(--white);
  border: .2rem solid var(--gray-200);
  border-radius: .8rem;
  padding: 1.2rem 1.4rem;
  margin-bottom: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  font-size: 1.5rem;
  color: var(--gray-700);
  transition: all .2s;
}
.spe-page .option-item:hover { background: var(--primary-mist); border-color: var(--primary); }
.spe-page .option-item.selected { background: var(--primary-mist); border-color: var(--primary); color: var(--primary-deeper); font-weight: 600; }
.spe-page .option-letter {
  width: 3rem; height: 3rem;
  border-radius: 50%;
  background: var(--gray-100);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  font-size: 1.4rem;
  flex-shrink: 0;
}
.spe-page .option-item.selected .option-letter { background: var(--primary); color: var(--white); }

.spe-page .exam-nav {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 2rem; flex-wrap: wrap; gap: 1rem;
}
.spe-page .nav-btn {
  padding: 1rem 2.4rem; border-radius: .6rem; font-size: 1.4rem; font-weight: 700;
  border: none; cursor: pointer; transition: all .2s;
  display: inline-flex; align-items: center; gap: .6rem;
}
.spe-page .nav-btn.primary { background: var(--primary); color: var(--white); }
.spe-page .nav-btn.primary:hover { background: var(--primary-dark); }
.spe-page .nav-btn.ghost { background: var(--gray-100); color: var(--gray-700); }
.spe-page .nav-btn.ghost:hover { background: var(--gray-200); }
.spe-page .nav-btn:disabled { background: var(--gray-200); color: var(--gray-400); cursor: not-allowed; }
.spe-page .nav-btn.submit { background: var(--green-500); color: var(--white); }
.spe-page .nav-btn.submit:hover { background: var(--green-600); }

.spe-page .question-palette {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(4rem, 1fr));
  gap: .6rem;
  margin-top: 2rem;
  padding: 1.6rem;
  background: var(--gray-50);
  border-radius: 1rem;
}
.spe-page .palette-btn {
  width: 4rem; height: 4rem;
  border: .15rem solid var(--gray-300);
  background: var(--white);
  border-radius: .6rem;
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--gray-700);
  cursor: pointer;
  transition: all .2s;
}
.spe-page .palette-btn:hover { background: var(--primary-mist); border-color: var(--primary); }
.spe-page .palette-btn.current { background: var(--primary); color: var(--white); border-color: var(--primary); }
.spe-page .palette-btn.answered { background: var(--green-500); color: var(--white); border-color: var(--green-500); }

@media (max-width: 768px) {
  .spe-page .exam-header { padding: 1.4rem; }
  .spe-page .exam-title  { font-size: 2rem; }
  .spe-page .exam-body   { padding: 1.6rem; }
  .spe-page .timer-circle-container { width: 10rem; height: 10rem; }
  .spe-page .question-card { padding: 1.4rem; }
}

/* =====================================================
   SECTION 99: STUDENT VIEW ATTENDANCE (student_view_attendance.php)
   ===================================================== */
.sva-page {
  --sva-primary: var(--primary);
  --sva-primary-light: var(--primary-mist);
  --sva-success: var(--green-500);
  --sva-success-light: var(--green-100);
  --sva-warning: var(--amber-500);
  --sva-warning-light: var(--amber-100);
  --sva-danger: #ef4444;
  --sva-danger-light: #fee2e2;
  background: var(--bg);
  font-family: var(--font-body);
}
.sva-page .sva-wrap {
  max-width: 110rem;
  margin: 2.4rem auto;
  padding: 0 1.2rem 6rem;
}
.sva-page .sva-header {
  background: var(--primary);
  color: var(--white);
  padding: 2.4rem;
  border-radius: 1.2rem;
  margin-bottom: 2rem;
  text-align: center;
}
.sva-page .sva-title { font-size: 2.6rem; font-weight: 800; margin: 0 0 .6rem; }
.sva-page .sva-sub   { font-size: 1.5rem; opacity: .9; }

.sva-page .sva-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; margin-bottom: 2rem;
}
.sva-page .sva-stat {
  background: var(--white); padding: 1.8rem; border-radius: 1rem; text-align: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .06);
  border-top: .4rem solid transparent;
}
.sva-page .sva-stat.present { border-top-color: var(--green-500); }
.sva-page .sva-stat.absent  { border-top-color: #ef4444; }
.sva-page .sva-stat.late    { border-top-color: var(--amber-500); }
.sva-page .sva-stat.total   { border-top-color: var(--primary); }
.sva-page .sva-stat-val { font-size: 2.8rem; font-weight: 900; color: var(--gray-800); }
.sva-page .sva-stat-lbl { font-size: 1.3rem; color: var(--gray-500); text-transform: uppercase; letter-spacing: .05em; font-weight: 700; }

.sva-page .sva-calendar {
  background: var(--white);
  border-radius: 1.2rem;
  padding: 2rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .06);
  margin-bottom: 2rem;
}
.sva-page .sva-cal-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 1.6rem; flex-wrap: wrap; gap: 1rem;
}
.sva-page .sva-cal-title { font-size: 2rem; font-weight: 800; color: var(--gray-800); }
.sva-page .sva-cal-nav { display: flex; gap: .8rem; align-items: center; }
.sva-page .sva-cal-nav button {
  padding: .6rem 1.2rem; border: .15rem solid var(--gray-300); background: var(--white);
  border-radius: .6rem; cursor: pointer; font-weight: 700; font-size: 1.3rem;
  transition: all .2s;
}
.sva-page .sva-cal-nav button:hover { background: var(--primary); color: var(--white); border-color: var(--primary); }

.sva-page .sva-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: .4rem;
}
.sva-page .sva-day-name {
  text-align: center; font-size: 1.3rem; font-weight: 700; color: var(--gray-500);
  padding: .6rem 0; text-transform: uppercase; letter-spacing: .05em;
}
.sva-page .sva-day {
  aspect-ratio: 1;
  display: flex; align-items: center; justify-content: center;
  border: .1rem solid var(--gray-200);
  border-radius: .6rem;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--gray-700);
  position: relative;
  background: var(--white);
  cursor: pointer;
  transition: all .2s;
}
.sva-page .sva-day:hover { transform: scale(1.05); box-shadow: 0 4px 12px rgba(0, 0, 0, .1); z-index: 2; }
.sva-page .sva-day.empty { background: var(--gray-50); color: var(--gray-300); cursor: default; }
.sva-page .sva-day.today { border: .2rem solid var(--primary); font-weight: 900; }
.sva-page .sva-day.present { background: var(--green-100); color: var(--green-700); }
.sva-page .sva-day.absent  { background: #fee2e2; color: #b91c1c; }
.sva-page .sva-day.late    { background: var(--amber-100); color: var(--amber-700); }
.sva-page .sva-day .dot {
  position: absolute; bottom: .4rem; left: 50%; transform: translateX(-50%);
  width: .5rem; height: .5rem; border-radius: 50%; background: currentColor;
}

.sva-page .sva-legend {
  display: flex; gap: 1.6rem; justify-content: center; flex-wrap: wrap;
  margin-top: 1.4rem; padding-top: 1.4rem; border-top: .1rem solid var(--gray-200);
}
.sva-page .sva-legend-item { display: flex; align-items: center; gap: .6rem; font-size: 1.3rem; color: var(--gray-600); }
.sva-page .sva-legend-swatch {
  width: 1.6rem; height: 1.6rem; border-radius: .4rem;
}
.sva-page .sva-legend-swatch.present { background: var(--green-100); }
.sva-page .sva-legend-swatch.absent  { background: #fee2e2; }
.sva-page .sva-legend-swatch.late    { background: var(--amber-100); }

@media (max-width: 768px) {
  .sva-page .sva-stats { grid-template-columns: repeat(2, 1fr); }
  .sva-page .sva-grid { gap: .2rem; }
  .sva-page .sva-day { font-size: 1.2rem; }
  .sva-page .sva-day-name { font-size: 1.1rem; }
}

/* =====================================================
   SECTION 100: PRINT WALLET CARD (print_wallet_card.php)
   ===================================================== */
@page { margin: 8mm; size: A4; }

.pwc-page {
  font-family: 'Segoe UI', Arial, sans-serif;
  background: var(--gray-100);
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
  margin: 0;
  padding: 0;
}
.pwc-page *, .pwc-page *::before, .pwc-page *::after { box-sizing: border-box; }

.pwc-page .no-print-btn {
  position: fixed; top: 2rem; right: 2rem;
  background: var(--primary); color: var(--white); border: none; padding: 1.2rem 2.4rem;
  border-radius: .6rem; font-size: 1.4rem; font-weight: 700; cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .15); z-index: 999;
  display: flex; align-items: center; gap: .6rem;
  transition: background-color .2s;
}
.pwc-page .no-print-btn:hover { background: var(--primary-dark); }
@media print { .pwc-page .no-print-btn { display: none; } }

.pwc-page .cards-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6mm;
  padding: 6mm;
  justify-content: flex-start;
}

.pwc-page .wallet-card {
  width: 85.6mm;
  height: 54mm;
  background: var(--primary-dark);
  border-radius: 4mm;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
  page-break-inside: avoid;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .25);
}
.pwc-page .wallet-card::before {
  content: '';
  position: absolute;
  width: 60mm; height: 60mm;
  background: var(--accent);
  opacity: .2;
  border-radius: 50%;
  top: -20mm; right: -10mm;
  pointer-events: none;
}
.pwc-page .wallet-card::after {
  content: '';
  position: absolute;
  width: 40mm; height: 40mm;
  background: var(--primary-light);
  opacity: .15;
  border-radius: 50%;
  bottom: -10mm; left: -5mm;
  pointer-events: none;
}

.pwc-page .card-front {
  width: 100%; height: 100%;
  padding: 3mm 4mm;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.pwc-page .card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2mm;
}
.pwc-page .card-school { display: flex; align-items: center; gap: 2mm; }
.pwc-page .card-school-logo {
  width: 7mm; height: 7mm;
  border-radius: 50%;
  object-fit: cover;
  border: 0.5mm solid rgba(255, 255, 255, .3);
}
.pwc-page .card-school-name {
  font-size: 1.4rem;
  font-weight: 700;
  color: rgba(255, 255, 255, .8);
  text-transform: uppercase;
  letter-spacing: .03em;
  max-width: 40mm;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pwc-page .card-type-badge {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--accent);
  border: 0.4mm solid rgba(232,119,34,.5);
  border-radius: 3mm;
  padding: 0.5mm 2mm;
  text-transform: uppercase;
  letter-spacing: .03em;
}

.pwc-page .card-body {
  display: flex; align-items: center; gap: 3mm; flex: 1;
}
.pwc-page .card-avatar {
  width: 12mm; height: 12mm;
  border-radius: 50%;
  background: var(--accent);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; font-weight: 800; flex-shrink: 0;
}
.pwc-page .card-info { flex: 1; min-width: 0; }
.pwc-page .card-name {
  font-size: 1.6rem; font-weight: 800; color: var(--white);
  margin-bottom: .5mm;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.pwc-page .card-matric { font-size: 1.2rem; color: rgba(255, 255, 255, .6); }
.pwc-page .card-class-badge {
  display: inline-block;
  font-size: 1.2rem;
  color: var(--accent);
  font-weight: 700;
  margin-top: .5mm;
}
.pwc-page .card-qr {
  width: 16mm; height: 16mm;
  background: var(--white);
  padding: 1mm;
  border-radius: 1.5mm;
  flex-shrink: 0;
}
.pwc-page .card-qr img { width: 100%; height: 100%; display: block; }

.pwc-page .card-footer {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 1.1rem; color: rgba(255, 255, 255, .6);
}
.pwc-page .card-balance {
  font-size: 1.4rem; color: var(--accent); font-weight: 800;
}

/* =====================================================
   SECTION 101: STUDENT STUDY FLASHCARDS (student_study_flashcards.php)
   ===================================================== */
.ssf-page {
  --ssf-primary: var(--primary);
  --ssf-primary-dark: var(--primary-dark);
  --ssf-primary-light: var(--primary-mist);
  --ssf-success: var(--green-500);
  --ssf-warning: var(--amber-500);
  --ssf-danger: #ef4444;
  background: var(--bg);
  font-family: var(--font-body);
  padding: 2.4rem 0 6rem;
}
.ssf-page .flashcard-container {
  max-width: 110rem;
  margin: 0 auto;
  padding: 0 1.2rem;
}
.ssf-page .card {
  background: var(--white);
  border-radius: 1.2rem;
  padding: 2.4rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .06);
  margin-bottom: 2rem;
}
.ssf-page .card h3 {
  color: var(--gray-800);
  font-size: 2.4rem;
  font-weight: 800;
  margin: 0 0 1rem;
  display: flex;
  align-items: center;
  gap: .8rem;
}
.ssf-page .card > p {
  color: var(--gray-500);
  font-size: 1.5rem;
  margin: 0 0 1.6rem;
}

.ssf-page .subject-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(20rem, 1fr));
  gap: 1.4rem;
  margin-top: 1.6rem;
}
.ssf-page .subject-card {
  background: var(--white);
  border: .2rem solid var(--gray-200);
  border-radius: 1rem;
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: all .25s ease;
  text-decoration: none;
  color: inherit;
  display: block;
}
.ssf-page .subject-card:hover {
  border-color: var(--primary);
  transform: translateY(-.4rem);
  box-shadow: 0 8px 20px rgba(37,99,235,.15);
  text-decoration: none;
}
.ssf-page .subject-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  display: block;
}
.ssf-page .subject-name {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: .4rem;
}
.ssf-page .subject-count {
  font-size: 1.3rem;
  color: var(--gray-500);
}

.ssf-page .stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1.4rem;
  margin: 1.6rem 0;
}
.ssf-page .stat-box {
  background: var(--gray-50);
  border-radius: 1rem;
  padding: 1.6rem;
  text-align: center;
  border-top: .4rem solid var(--primary);
}
.ssf-page .stat-number {
  font-size: 3rem;
  font-weight: 900;
  color: var(--gray-800);
  line-height: 1.2;
}
.ssf-page .stat-label {
  font-size: 1.3rem;
  color: var(--gray-500);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: .05em;
  margin-top: .4rem;
}

.ssf-page .empty-state {
  text-align: center;
  padding: 6rem 2rem;
  color: var(--gray-500);
  font-size: 1.6rem;
}
.ssf-page .empty-state .icon { font-size: 6rem; margin-bottom: 1.6rem; }

@media (max-width: 768px) {
  .ssf-page .flashcard-container { padding: 0 1.6rem; }
  .ssf-page .card { padding: 1.6rem; }
}

/* =====================================================
   SECTION 102: STUDENT LIBRARY (student_library.php)
   ===================================================== */
.slib-page {
  --slib-primary: var(--primary);
  --slib-success: var(--green-500);
  background: var(--bg);
  font-family: var(--font-body);
  padding: 2.4rem 0 6rem;
}
.slib-page .library-wrap {
  max-width: 130rem;
  margin: 0 auto;
  padding: 0 1.2rem;
}
.slib-page .library-header {
  background: var(--primary);
  color: var(--white);
  padding: 2.4rem 3rem;
  border-radius: 1.2rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.2rem;
}
.slib-page .library-title {
  font-size: 2.6rem;
  font-weight: 800;
  margin: 0;
}
.slib-page .library-sub {
  font-size: 1.5rem;
  opacity: .9;
  margin: .4rem 0 0;
}

.slib-page .lib-filters {
  display: flex; gap: .8rem; flex-wrap: wrap; margin-bottom: 1.6rem;
  background: var(--white); padding: 1.4rem; border-radius: 1rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .06);
}
.slib-page .lib-search {
  flex: 1; min-width: 20rem;
  padding: 1rem 1.4rem;
  border: .15rem solid var(--gray-300);
  border-radius: .6rem;
  font-size: 1.4rem;
  transition: border-color .2s;
}
.slib-page .lib-search:focus { outline: none; border-color: var(--primary); }
.slib-page .lib-filter {
  padding: 1rem 1.6rem;
  border: .15rem solid var(--gray-300);
  background: var(--white);
  border-radius: .6rem;
  font-size: 1.4rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
  color: var(--gray-700);
}
.slib-page .lib-filter:hover, .lib-filter.active {
  background: var(--primary); color: var(--white); border-color: var(--primary);
}

.slib-page .lib-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(28rem, 1fr));
  gap: 1.6rem;
}
.slib-page .lib-card {
  background: var(--white);
  border-radius: 1.2rem;
  padding: 2rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .06);
  display: flex;
  gap: 1.4rem;
  align-items: flex-start;
  transition: all .25s ease;
  border-left: .4rem solid var(--primary);
}
.slib-page .lib-card:hover {
  transform: translateY(-.3rem);
  box-shadow: 0 8px 20px rgba(0, 0, 0, .1);
}
.slib-page .lib-icon {
  width: 6rem; height: 6rem;
  border-radius: 1rem;
  background: var(--primary-mist);
  color: var(--primary-deeper);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.6rem;
  flex-shrink: 0;
}
.slib-page .lib-info { flex: 1; min-width: 0; }
.slib-page .lib-name {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--gray-800);
  margin: 0 0 .4rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.slib-page .lib-meta {
  font-size: 1.3rem;
  color: var(--gray-500);
  margin-bottom: .8rem;
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 1.2rem;
}
.slib-page .lib-meta span { display: inline-flex; align-items: center; gap: .4rem; }
.slib-page .lib-actions { display: flex; gap: .6rem; margin-top: 1rem; flex-wrap: wrap; }
.slib-page .lib-btn {
  padding: .6rem 1.2rem;
  border-radius: .6rem;
  font-size: 1.3rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  border: none;
  transition: all .2s;
}
.slib-page .lib-btn.primary { background: var(--primary); color: var(--white); }
.slib-page .lib-btn.primary:hover { background: var(--primary-dark); }
.slib-page .lib-btn.ghost { background: var(--gray-100); color: var(--gray-700); }
.slib-page .lib-btn.ghost:hover { background: var(--gray-200); }
.slib-page .lib-btn.success { background: var(--green-500); color: var(--white); }
.slib-page .lib-btn.success:hover { background: var(--green-600); }

.slib-page .lib-empty {
  text-align: center;
  padding: 6rem 2rem;
  color: var(--gray-500);
  background: var(--white);
  border-radius: 1.2rem;
  font-size: 1.6rem;
}
.slib-page .lib-empty-icon { font-size: 6rem; margin-bottom: 1.4rem; }

@media (max-width: 768px) {
  .slib-page .library-wrap { padding: 0 1.6rem; }
  .slib-page .library-header { padding: 1.6rem; }
  .slib-page .library-title { font-size: 2rem; }
  .slib-page .lib-grid { grid-template-columns: 1fr; }
  .slib-page .lib-filters { flex-direction: column; }
  .slib-page .lib-search { min-width: 100%; }
}

/* =====================================================
   SECTION 103: STUDENT PLAY GAME (student_play_game.php)
   ===================================================== */
.spg-page {
  --spg-primary: var(--primary);
  --spg-success: var(--green-500);
  --spg-warning: var(--amber-500);
  --spg-danger: #ef4444;
  background: var(--bg);
  font-family: var(--font-body);
  min-height: 100vh;
  padding: 0;
}
.spg-page *, .spg-page *::before, .spg-page *::after { box-sizing: border-box; }

.spg-page .play-wrap { max-width: 100rem; margin: 0 auto; padding: 2rem 1.2rem 4rem; }

.spg-page .play-header {
  background: var(--primary);
  color: var(--white);
  padding: 2.4rem;
  border-radius: 1.2rem;
  margin-bottom: 2rem;
  text-align: center;
}
.spg-page .play-title { font-size: 2.6rem; font-weight: 800; margin: 0 0 .4rem; }
.spg-page .play-sub   { font-size: 1.5rem; opacity: .9; margin: 0; }

.spg-page .play-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
  margin-bottom: 2rem;
}
.spg-page .play-stat {
  background: var(--white);
  border-radius: 1rem;
  padding: 1.6rem;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .06);
  border-top: .4rem solid transparent;
}
.spg-page .play-stat.q   { border-top-color: var(--primary); }
.spg-page .play-stat.s   { border-top-color: var(--green-500); }
.spg-page .play-stat.c   { border-top-color: var(--amber-500); }
.spg-page .play-stat.t   { border-top-color: #ef4444; }
.spg-page .play-stat-val { font-size: 2.8rem; font-weight: 900; color: var(--gray-800); line-height: 1.2; }
.spg-page .play-stat-lbl { font-size: 1.3rem; color: var(--gray-500); text-transform: uppercase; font-weight: 700; letter-spacing: .05em; margin-top: .4rem; }

.spg-page .question-area {
  background: var(--white);
  border-radius: 1.2rem;
  padding: 3rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .06);
  margin-bottom: 2rem;
}
.spg-page .question-text {
  font-size: 2rem;
  font-weight: 700;
  color: var(--gray-800);
  text-align: center;
  margin-bottom: 2.4rem;
  line-height: 1.5;
}

.spg-page .options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}
.spg-page .opt-btn {
  background: var(--gray-50);
  border: .2rem solid var(--gray-200);
  border-radius: 1rem;
  padding: 1.8rem 1.4rem;
  cursor: pointer;
  text-align: left;
  font-size: 1.6rem;
  color: var(--gray-800);
  font-weight: 600;
  transition: all .2s;
  display: flex; align-items: center; gap: 1.2rem;
}
.spg-page .opt-btn:hover:not(.locked) { background: var(--primary-mist); border-color: var(--primary); }
.spg-page .opt-btn .opt-letter {
  width: 3.4rem; height: 3.4rem;
  border-radius: 50%;
  background: var(--white);
  border: .15rem solid var(--gray-300);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.5rem;
  flex-shrink: 0;
}
.spg-page .opt-btn.correct { background: var(--green-100); border-color: var(--green-500); color: var(--green-700); }
.spg-page .opt-btn.correct .opt-letter { background: var(--green-500); color: var(--white); border-color: var(--green-500); }
.spg-page .opt-btn.wrong { background: #fee2e2; border-color: #ef4444; color: #b91c1c; }
.spg-page .opt-btn.wrong .opt-letter { background: #ef4444; color: var(--white); border-color: #ef4444; }
.spg-page .opt-btn.locked { cursor: not-allowed; opacity: .8; }

.spg-page .play-actions {
  display: flex; justify-content: center; gap: 1.2rem; margin-top: 2rem; flex-wrap: wrap;
}
.spg-page .play-btn {
  padding: 1.2rem 2.4rem;
  border: none;
  border-radius: .6rem;
  font-size: 1.4rem;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s;
  display: inline-flex; align-items: center; gap: .6rem;
  text-decoration: none;
}
.spg-page .play-btn.primary { background: var(--primary); color: var(--white); }
.spg-page .play-btn.primary:hover { background: var(--primary-dark); }
.spg-page .play-btn.success { background: var(--green-500); color: var(--white); }
.spg-page .play-btn.success:hover { background: var(--green-600); }
.spg-page .play-btn.ghost   { background: var(--gray-100); color: var(--gray-700); }
.spg-page .play-btn.ghost:hover { background: var(--gray-200); }
.spg-page .play-btn.danger { background: #ef4444; color: var(--white); }
.spg-page .play-btn.danger:hover { background: #dc2626; }

.spg-page .progress-bar {
  width: 100%; height: .8rem;
  background: var(--gray-200);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 1.6rem;
}
.spg-page .progress-fill {
  height: 100%;
  background: var(--primary);
  transition: width .3s ease;
}

.spg-page .game-over {
  text-align: center;
  padding: 4rem 2rem;
  background: var(--white);
  border-radius: 1.2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .06);
}
.spg-page .trophy {
  font-size: 8rem;
  margin-bottom: 1.6rem;
}
.spg-page .game-over h2 { font-size: 3rem; color: var(--gray-800); margin: 0 0 1rem; font-weight: 800; }
.spg-page .game-over p  { font-size: 1.6rem; color: var(--gray-500); margin: 0 0 2rem; }

@media (max-width: 768px) {
  .spg-page .play-stats { grid-template-columns: repeat(2, 1fr); }
  .spg-page .options-grid { grid-template-columns: 1fr; }
  .spg-page .question-text { font-size: 1.6rem; }
  .spg-page .play-title    { font-size: 2rem; }
  .spg-page .question-area { padding: 1.6rem; }
}

/* =====================================================
   SECTION 104: STUDENT TAKE EXAM (student_take_exam.php)
   ===================================================== */
.ste-page {
  --ste-primary: var(--primary);
  --ste-success: var(--green-500);
  --ste-warning: var(--amber-500);
  --ste-danger:  #ef4444;
  background: var(--bg);
  font-family: var(--font-body);
  padding: 0;
  min-height: 100vh;
}
.ste-page *, .ste-page *::before, .ste-page *::after { box-sizing: border-box; }

.ste-page .exam-container {
  max-width: 100rem;
  margin: 0 auto;
  padding: 0 1.2rem 6rem;
}
.ste-page .exam-header {
  background: var(--gray-800);
  color: var(--white);
  padding: 2rem;
  border-radius: .8rem .8rem 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 5px rgba(0, 0, 0, .2);
  flex-wrap: wrap;
  gap: 1.2rem;
}
.ste-page .exam-info-block { flex: 1; min-width: 20rem; }
.ste-page .exam-title {
  font-size: 2.2rem;
  font-weight: 800;
  margin: 0 0 .4rem;
}
.ste-page .exam-info {
  display: flex; gap: 1.4rem; font-size: 1.3rem; opacity: .85; flex-wrap: wrap;
}
.ste-page .exam-info span { display: inline-flex; align-items: center; gap: .4rem; }

.ste-page .timer-section { text-align: center; }
.ste-page .timer-circle-container {
  position: relative; width: 11rem; height: 11rem; margin: 0 auto;
}
.ste-page .timer-circle { transform: rotate(-90deg); }
.ste-page .timer-circle-bg { fill: none; stroke: var(--gray-600); stroke-width: .8; }
.ste-page .timer-circle-progress {
  fill: none; stroke: var(--green-500); stroke-width: .8; stroke-linecap: round;
  stroke-dasharray: 376; stroke-dashoffset: 0;
  transition: stroke-dashoffset 1s linear;
}
.ste-page .timer-circle-progress.warning { stroke: var(--amber-500); }
.ste-page .timer-circle-progress.danger  { stroke: #ef4444; }
.ste-page .timer-text {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  text-align: center; color: var(--white);
}
.ste-page .timer-display { font-size: 1.8rem; font-weight: 800; display: block; }
.ste-page .timer-label { font-size: 1.1rem; color: var(--gray-400); display: block; margin-top: .2rem; }
.ste-page .timer-label-text { font-size: 1.1rem; color: var(--gray-400); }

.ste-page .auto-save-indicator {
  font-size: 1.3rem;
  color: var(--green-500);
  display: flex; align-items: center; gap: .4rem;
}

.ste-page .progress-bar {
  width: 100%; height: .6rem;
  background: rgba(255, 255, 255, .1);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 1rem;
}
.ste-page .progress-fill {
  height: 100%;
  background: var(--primary);
  transition: width .3s ease;
}

.ste-page .exam-body {
  background: var(--white);
  border: .1rem solid var(--gray-300);
  border-top: none;
  border-radius: 0 0 .8rem .8rem;
  padding: 2.4rem;
  display: grid;
  grid-template-columns: 1fr 24rem;
  gap: 2rem;
}

.ste-page .question-card {
  background: var(--gray-50);
  border: .2rem solid var(--gray-200);
  border-radius: 1rem;
  padding: 2rem;
  margin-bottom: 1.6rem;
}
.ste-page .question-num {
  display: inline-block;
  background: var(--primary);
  color: var(--white);
  padding: .3rem 1rem;
  border-radius: 999px;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
.ste-page .question-text {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: 1.4rem;
  line-height: 1.6;
}
.ste-page .question-image {
  max-width: 100%;
  border-radius: .6rem;
  margin-bottom: 1.4rem;
  display: block;
}

.ste-page .options-container { list-style: none; padding: 0; margin: 0; }
.ste-page .option-label {
  background: var(--white);
  border: .2rem solid var(--gray-200);
  border-radius: .8rem;
  padding: 1.2rem 1.4rem;
  margin-bottom: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  font-size: 1.5rem;
  color: var(--gray-700);
  transition: all .2s;
}
.ste-page .option-label:hover { background: var(--primary-mist); border-color: var(--primary); }
.ste-page .option-label.selected { background: var(--primary-mist); border-color: var(--primary); color: var(--primary-deeper); font-weight: 600; }
.ste-page .option-label input { display: none; }
.ste-page .option-marker {
  width: 2.6rem; height: 2.6rem;
  border-radius: 50%;
  background: var(--gray-100);
  border: .15rem solid var(--gray-300);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.3rem; flex-shrink: 0;
}
.ste-page .option-label.selected .option-marker { background: var(--primary); color: var(--white); border-color: var(--primary); }
.ste-page .option-content { flex: 1; }
.ste-page .option-image { max-width: 12rem; border-radius: .4rem; margin-top: .6rem; }

.ste-page .nav-buttons {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 2rem; flex-wrap: wrap; gap: 1rem;
}
.ste-page .nav-btn {
  padding: 1rem 2rem; border-radius: .6rem; font-size: 1.4rem; font-weight: 700;
  border: none; cursor: pointer; transition: all .2s;
  display: inline-flex; align-items: center; gap: .6rem;
}
.ste-page .nav-btn.primary  { background: var(--primary); color: var(--white); }
.ste-page .nav-btn.primary:hover { background: var(--primary-dark); }
.ste-page .nav-btn.ghost    { background: var(--gray-100); color: var(--gray-700); }
.ste-page .nav-btn.ghost:hover { background: var(--gray-200); }
.ste-page .nav-btn:disabled { background: var(--gray-200); color: var(--gray-400); cursor: not-allowed; }
.ste-page .nav-btn.submit   { background: var(--green-500); color: var(--white); }
.ste-page .nav-btn.submit:hover { background: var(--green-600); }
.ste-page .nav-btn.danger   { background: #ef4444; color: var(--white); }

.ste-page .navigation-section {
  background: var(--gray-50);
  border-radius: 1rem;
  padding: 1.6rem;
  height: fit-content;
  position: sticky;
  top: 14rem;
}
.ste-page .nav-title {
  font-size: 1.4rem; font-weight: 800; color: var(--gray-800);
  text-transform: uppercase; letter-spacing: .05em; margin: 0 0 1rem;
}
.ste-page .question-palette {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: .5rem; margin-bottom: 1.4rem;
}
.ste-page .page-btn {
  aspect-ratio: 1;
  border: .15rem solid var(--gray-300);
  background: var(--white);
  border-radius: .4rem;
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--gray-700);
  cursor: pointer;
  transition: all .2s;
}
.ste-page .page-btn:hover { background: var(--primary-mist); border-color: var(--primary); }
.ste-page .page-btn.current { background: var(--primary); color: var(--white); border-color: var(--primary); }
.ste-page .page-btn.answered { background: var(--green-500); color: var(--white); border-color: var(--green-500); }
.ste-page .page-btn.flagged { background: var(--amber-500); color: var(--white); border-color: var(--amber-500); }

.ste-page .legend { display: flex; flex-direction: column; gap: .6rem; font-size: 1.3rem; color: var(--gray-600); }
.ste-page .legend-item { display: flex; align-items: center; gap: .6rem; }
.ste-page .legend-box {
  width: 1.4rem; height: 1.4rem; border-radius: .3rem; border: .1rem solid var(--gray-300);
}
.ste-page .legend-box.answered { background: var(--green-500); border-color: var(--green-500); }
.ste-page .legend-box.current  { background: var(--primary); border-color: var(--primary); }
.ste-page .legend-box.flagged  { background: var(--amber-500); border-color: var(--amber-500); }

.ste-page .submit-section {
  background: var(--white);
  border: .2rem solid var(--gray-200);
  border-radius: 1rem;
  padding: 2rem;
  margin-top: 2rem;
  text-align: center;
}
.ste-page .submit-section h3 { margin: 0 0 1rem; font-size: 1.8rem; color: var(--gray-800); font-weight: 800; }
.ste-page .submit-section p  { margin: 0 0 1.4rem; color: var(--gray-500); font-size: 1.4rem; }

@media (max-width: 900px) {
  .ste-page .exam-body { grid-template-columns: 1fr; }
  .ste-page .navigation-section { position: static; }
}
@media (max-width: 768px) {
  .ste-page .exam-header { padding: 1.4rem; }
  .ste-page .exam-title  { font-size: 1.8rem; }
  .ste-page .exam-body   { padding: 1.4rem; }
  .ste-page .timer-circle-container { width: 9rem; height: 9rem; }
  .ste-page .question-palette { grid-template-columns: repeat(6, 1fr); }
}

/* =====================================================
   SECTION 105: STUDENT VIEW ASSIGNMENTS (student_view_assignments.php)
   ===================================================== */
.svas-page {
  --svas-primary: var(--primary);
  --svas-success: var(--green-500);
  --svas-warning: var(--amber-500);
  --svas-danger:  #ef4444;
  background: var(--bg);
  font-family: var(--font-body);
  padding: 2.4rem 0 6rem;
}
.svas-page .asn-wrap { max-width: 110rem; margin: 0 auto; padding: 0 1.2rem; }

.svas-page .asn-header {
  background: var(--primary);
  color: var(--white);
  padding: 2.4rem;
  border-radius: 1.2rem;
  margin-bottom: 2rem;
}
.svas-page .asn-title { font-size: 2.6rem; font-weight: 800; margin: 0 0 .4rem; }
.svas-page .asn-sub   { font-size: 1.5rem; opacity: .9; margin: 0; }

.svas-page .asn-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
  margin-bottom: 2rem;
}
.svas-page .asn-stat {
  background: var(--white);
  border-radius: 1rem;
  padding: 1.6rem;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .06);
  border-top: .4rem solid transparent;
}
.svas-page .asn-stat.total    { border-top-color: var(--primary); }
.svas-page .asn-stat.pending  { border-top-color: var(--amber-500); }
.svas-page .asn-stat.done     { border-top-color: var(--green-500); }
.svas-page .asn-stat.overdue  { border-top-color: #ef4444; }
.svas-page .asn-stat-val { font-size: 2.8rem; font-weight: 900; color: var(--gray-800); }
.svas-page .asn-stat-lbl { font-size: 1.3rem; color: var(--gray-500); text-transform: uppercase; font-weight: 700; letter-spacing: .05em; margin-top: .4rem; }

.svas-page .asn-filters {
  display: flex; gap: .8rem; flex-wrap: wrap; margin-bottom: 1.6rem;
  background: var(--white); padding: 1.4rem; border-radius: 1rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .06);
}
.svas-page .asn-tab {
  padding: .8rem 1.6rem;
  border-radius: 999px;
  border: .2rem solid var(--gray-300);
  background: var(--white);
  font-size: 1.3rem;
  font-weight: 700;
  cursor: pointer;
  color: var(--gray-600);
  transition: all .2s;
}
.svas-page .asn-tab:hover, .svas-page .asn-tab.active {
  background: var(--primary); color: var(--white); border-color: var(--primary);
}

.svas-page .asn-list { display: flex; flex-direction: column; gap: 1.2rem; }
.svas-page .asn-card {
  background: var(--white);
  border-radius: 1.2rem;
  padding: 2rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .06);
  border-left: .5rem solid transparent;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.6rem;
  align-items: center;
  transition: all .25s ease;
}
.svas-page .asn-card:hover {
  transform: translateY(-.2rem);
  box-shadow: 0 4px 12px rgba(0, 0, 0, .08);
}
.svas-page .asn-card.pending { border-left-color: var(--amber-500); }
.svas-page .asn-card.done    { border-left-color: var(--green-500); }
.svas-page .asn-card.overdue { border-left-color: #ef4444; }

.svas-page .asn-icon {
  width: 5rem; height: 5rem;
  border-radius: 1rem;
  background: var(--primary-mist);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.4rem;
  flex-shrink: 0;
}
.svas-page .asn-icon.done    { background: var(--green-100); color: var(--green-500); }
.svas-page .asn-icon.overdue { background: #fee2e2; color: #ef4444; }
.svas-page .asn-icon.pending { background: var(--amber-100); color: var(--amber-500); }

.svas-page .asn-body { min-width: 0; }
.svas-page .asn-name {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--gray-800);
  margin: 0 0 .4rem;
}
.svas-page .asn-subj {
  font-size: 1.4rem;
  color: var(--gray-500);
  margin-bottom: .6rem;
}
.svas-page .asn-meta {
  display: flex; gap: 1.2rem; flex-wrap: wrap;
  font-size: 1.3rem; color: var(--gray-600);
}
.svas-page .asn-meta span { display: inline-flex; align-items: center; gap: .4rem; }
.svas-page .asn-due { font-weight: 600; }
.svas-page .asn-due.overdue { color: #dc2626; }
.svas-page .asn-due.urgent  { color: var(--amber-500); }

.svas-page .asn-actions { display: flex; flex-direction: column; gap: .6rem; }
.svas-page .asn-btn {
  padding: .8rem 1.4rem;
  border-radius: .6rem;
  font-size: 1.3rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  transition: all .2s;
  white-space: nowrap;
}
.svas-page .asn-btn.primary  { background: var(--primary); color: var(--white); }
.svas-page .asn-btn.primary:hover  { background: var(--primary-dark); }
.svas-page .asn-btn.success  { background: var(--green-500); color: var(--white); }
.svas-page .asn-btn.success:hover  { background: var(--green-600); }
.svas-page .asn-btn.ghost    { background: var(--gray-100); color: var(--gray-700); }
.svas-page .asn-btn.ghost:hover    { background: var(--gray-200); }
.svas-page .asn-btn.danger   { background: #ef4444; color: var(--white); }
.svas-page .asn-btn.danger:hover   { background: #dc2626; }

.svas-page .asn-empty {
  text-align: center;
  padding: 6rem 2rem;
  color: var(--gray-500);
  background: var(--white);
  border-radius: 1.2rem;
  font-size: 1.6rem;
}
.svas-page .asn-empty-icon { font-size: 6rem; margin-bottom: 1.4rem; }

@media (max-width: 768px) {
  .svas-page .asn-stats { grid-template-columns: repeat(2, 1fr); }
  .svas-page .asn-card  { grid-template-columns: 1fr; text-align: center; }
  .svas-page .asn-icon  { margin: 0 auto; }
  .svas-page .asn-actions { flex-direction: row; justify-content: center; }
}

/* =====================================================
   SECTION 106: AJAX VIEW MESSAGE (ajax/ajax_view_message.php)
   ===================================================== */
.ajx-msg-page {
  font-family: var(--font-body);
  background: var(--bg);
}
.ajx-msg-page .message-view {
  max-height: 60rem;
  overflow-y: auto;
  padding: 0 1rem;
}
.ajx-msg-page .message-thread { margin-bottom: 3rem; }
.ajx-msg-page .thread-message {
  margin-bottom: 2rem;
  padding: 1.5rem;
  border-radius: .8rem;
  background: var(--gray-50);
  font-size: 1.4rem;
  line-height: 1.6;
}
.ajx-msg-page .thread-message.sent {
  background: var(--primary-mist);
  margin-left: 4rem;
}
.ajx-msg-page .thread-message.received {
  background: var(--gray-50);
  margin-right: 4rem;
}
.ajx-msg-page .thread-header {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  gap: 1rem;
}
.ajx-msg-page .thread-avatar {
  width: 4rem; height: 4rem;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.4rem;
  flex-shrink: 0;
}
.ajx-msg-page .thread-author {
  font-weight: 700;
  color: var(--gray-800);
  font-size: 1.4rem;
}
.ajx-msg-page .thread-time {
  font-size: 1.25rem;
  color: var(--gray-500);
  margin-left: auto;
}
.ajx-msg-page .thread-content {
  color: var(--gray-800);
  font-size: 1.4rem;
  line-height: 1.6;
}
.ajx-msg-page .reply-form {
  background: var(--white);
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .06);
  margin-top: 1.6rem;
}
.ajx-msg-page .reply-form textarea {
  width: 100%;
  min-height: 10rem;
  padding: 1rem;
  border: .15rem solid var(--gray-300);
  border-radius: .6rem;
  font-family: inherit;
  font-size: 1.4rem;
  resize: vertical;
  margin-bottom: 1rem;
}
.ajx-msg-page .reply-form textarea:focus { outline: none; border-color: var(--primary-light); }
.ajx-msg-page .btn-primary {
  background: var(--primary-light);
  color: var(--white);
  padding: 1rem 2rem;
  border: none;
  border-radius: .6rem;
  font-size: 1.4rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color .2s;
}
.ajx-msg-page .btn-primary:hover { background: var(--primary-light); }

@media (max-width: 600px) {
  .ajx-msg-page .thread-message.sent { margin-left: 0; }
  .ajx-msg-page .thread-message.received { margin-right: 0; }
}

/* =====================================================
   SECTION 107: AJAX VIEW SUBMISSION (ajax/ajax_view_submission.php)
   ===================================================== */
.ajx-sub-page {
  font-family: var(--font-body);
  background: var(--bg);
}
.ajx-sub-page .submission-view { padding: 0 1rem; }
.ajx-sub-page .sub-header {
  background: var(--white);
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .06);
  margin-bottom: 2rem;
}
.ajx-sub-page .sub-title {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--gray-800);
  margin: 0 0 1rem;
}
.ajx-sub-page .sub-meta {
  display: flex;
  gap: 1.4rem;
  flex-wrap: wrap;
  font-size: 1.4rem;
  color: var(--gray-600);
}
.ajx-sub-page .sub-meta span { display: inline-flex; align-items: center; gap: .4rem; }

.ajx-sub-page .sub-content {
  background: var(--white);
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .06);
  margin-bottom: 2rem;
  font-size: 1.4rem;
  line-height: 1.7;
  color: var(--gray-800);
}
.ajx-sub-page .sub-content h4 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--gray-800);
  margin: 1.4rem 0 .6rem;
}
.ajx-sub-page .sub-content p { margin: 0 0 1rem; }

.ajx-sub-page .sub-attachment {
  background: var(--gray-100);
  border: .15rem dashed var(--gray-300);
  border-radius: .6rem;
  padding: 1.4rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.4rem;
}
.ajx-sub-page .sub-attachment-icon {
  width: 4rem; height: 4rem;
  background: var(--primary);
  color: var(--white);
  border-radius: .6rem;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem;
  flex-shrink: 0;
}
.ajx-sub-page .sub-attachment-info { flex: 1; min-width: 0; }
.ajx-sub-page .sub-attachment-name { font-weight: 700; color: var(--gray-800); font-size: 1.4rem; }
.ajx-sub-page .sub-attachment-size { color: var(--gray-500); font-size: 1.3rem; }
.ajx-sub-page .sub-attachment a {
  background: var(--primary);
  color: var(--white);
  padding: .6rem 1.2rem;
  border-radius: .6rem;
  text-decoration: none;
  font-size: 1.3rem;
  font-weight: 700;
}
.ajx-sub-page .sub-attachment a:hover { background: var(--primary-dark); }

.ajx-sub-page .grade-section {
  background: var(--white);
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .06);
}
.ajx-sub-page .grade-title {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--gray-800);
  margin: 0 0 1.4rem;
}
.ajx-sub-page .grade-form-row {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 1.4rem;
  margin-bottom: 1.4rem;
  align-items: start;
}
.ajx-sub-page .grade-form-row label {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--gray-700);
  padding-top: .8rem;
}
.ajx-sub-page .grade-form-row input,
.ajx-sub-page .grade-form-row textarea,
.ajx-sub-page .grade-form-row select {
  width: 100%;
  padding: .8rem 1rem;
  border: .15rem solid var(--gray-300);
  border-radius: .6rem;
  font-size: 1.4rem;
  font-family: inherit;
}
.ajx-sub-page .grade-form-row textarea { min-height: 8rem; resize: vertical; }
.ajx-sub-page .grade-form-row input:focus,
.ajx-sub-page .grade-form-row textarea:focus,
.ajx-sub-page .grade-form-row select:focus { outline: none; border-color: var(--primary); }

.ajx-sub-page .grade-submit {
  background: var(--green-500);
  color: var(--white);
  padding: 1rem 2rem;
  border: none;
  border-radius: .6rem;
  font-size: 1.4rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color .2s;
}
.ajx-sub-page .grade-submit:hover { background: var(--green-600); }

@media (max-width: 600px) {
  .ajx-sub-page .grade-form-row { grid-template-columns: 1fr; }
}

.slib-page .filter-tag {
  display: inline-block;
  background: var(--primary);
  color: var(--white);
  padding: .4rem 1.2rem;
  border-radius: 999px;
  margin-right: 1rem;
  font-size: 1.3rem;
  font-weight: 500;
}

/* =====================================================
   SECTION 108: YEARBOOK FLIPBOOK VIEWER (yearbook.php)
   ===================================================== */
.yb-page {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --yb-green: var(--green-500);
  --yb-green-dark: var(--green-600);
  --yb-bg-1: var(--primary-deeper);
  --yb-bg-2: var(--gray-900);
  --yb-bg-3: #2c5364;
  --yb-bg-loading-1: var(--green-900);
  --yb-bg-loading-2: var(--green-800);
  --yb-purple: #764ba2;
  --yb-pink: #f093fb;
  --yb-indigo: var(--primary);
  background: var(--primary-deeper);
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--white);
}
.yb-page *, .yb-page *::before, .yb-page *::after { margin: 0; padding: 0; box-sizing: border-box; }

/* Loading Screen */
.yb-page #loading-screen {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: var(--green-900);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}
.yb-page .loading-content { text-align: center; color: var(--white); }
.yb-page .loader {
  width: 6rem; height: 6rem;
  border: .4rem solid rgba(125, 217, 8, .3);
  border-top: .4rem solid var(--green-500);
  border-radius: 50%;
  animation: ybSpin 1.5s cubic-bezier(.68, -.55, .27, 1.55) infinite;
  margin: 0 auto 2rem;
  position: relative;
}
.yb-page .loader::after {
  content: '';
  position: absolute;
  top: -.4rem; left: -.4rem; right: -.4rem; bottom: -.4rem;
  border: .4rem solid transparent;
  border-bottom: .4rem solid rgba(125, 217, 8, .6);
  border-radius: 50%;
  animation: ybSpinReverse 2s linear infinite;
}
@keyframes ybSpin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
@keyframes ybSpinReverse { 0% { transform: rotate(0deg); } 100% { transform: rotate(-720deg); } }

/* 3D Book Perspective Container */
.yb-page .book-perspective {
  perspective: 2000px;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 4rem 2rem;
  min-height: 100vh;
}

/* App Container */
.yb-page #app-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header Controls */
.yb-page .header-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 4rem;
  background: rgba(0, 0, 0, .3);
  backdrop-filter: blur(1.5rem);
  border-bottom: .1rem solid rgba(255, 255, 255, .1);
  position: relative;
  z-index: 100;
  box-shadow: 0 .5rem 3rem rgba(0, 0, 0, .2);
  flex-wrap: wrap;
  gap: 1.2rem;
}
.yb-page .control-group { display: flex; gap: 1.5rem; }
.yb-page .year-filter-badge {
  display: inline-flex;
  align-items: center;
  gap: .8rem;
  padding: 1rem 1.4rem;
  border-radius: 9999px;
  border: .1rem solid rgba(125, 217, 8, .55);
  background: rgba(125, 217, 8, .14);
  color: var(--green-100);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: .02em;
  box-shadow: 0 .4rem 1.4rem rgba(125, 217, 8, .12);
}
.yb-page .year-filter-badge .yb-dot {
  width: .8rem; height: .8rem;
  border-radius: 50%;
  background: var(--green-500);
  box-shadow: 0 0 0 .4rem rgba(125, 217, 8, .22);
}
.yb-page .control-btn {
  display: flex;
  align-items: center;
  gap: .8rem;
  padding: 1.2rem 1.8rem;
  background: rgba(255, 255, 255, .08);
  border: .1rem solid rgba(255, 255, 255, .15);
  border-radius: 1rem;
  color: var(--white);
  font-size: 1.4rem;
  font-weight: 500;
  cursor: pointer;
  transition: all .3s ease;
  backdrop-filter: blur(.5rem);
  box-shadow: 0 .4rem 1.5rem rgba(0, 0, 0, .1);
}
.yb-page .control-btn:hover {
  background: rgba(125, 217, 8, .3);
  border-color: var(--green-500);
  transform: translateY(-.2rem);
  box-shadow: 0 .6rem 2rem rgba(125, 217, 8, .2);
}
.yb-page .control-btn.active {
  background: var(--green-500);
  border-color: var(--green-500);
  color: var(--primary-deeper);
  font-weight: 600;
}

/* Book Container */
.yb-page .book-container {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 4rem 2rem;
  position: relative;
  min-height: calc(100vh - 10rem);
}

/* Flipbook 3D Book */
.yb-page #flipbook {
  position: relative;
  background: #f8f8f8;
  border-radius: .5rem 1.5rem 1.5rem .5rem;
  box-shadow: 
    0 1rem 5rem rgba(0, 0, 0, .4),
    0 3rem 8rem rgba(0, 0, 0, .3),
    inset 0 0 0 .1rem rgba(255, 255, 255, .1);
  overflow: hidden;
  transform-style: preserve-3d;
  transform: rotateY(0deg) rotateX(5deg);
  transition: transform .8s cubic-bezier(.22, 1, .36, 1);
}
.yb-page #flipbook:hover {
  transform: rotateY(0deg) rotateX(5deg) translateY(-1rem);
  box-shadow: 0 1.5rem 6rem rgba(0, 0, 0, .5);
}
.yb-page #flipbook::before {
  content: '';
  position: absolute;
  left: -1.5rem; top: 0;
  width: 1.5rem; height: 100%;
  background: #1a2528;
  border-radius: .5rem 0 0 .5rem;
  box-shadow: 
    inset .2rem 0 .5rem rgba(0, 0, 0, .4),
    0 0 1rem rgba(0, 0, 0, .2);
  transform: translateZ(-1rem);
  z-index: -1;
}
.yb-page #flipbook::after {
  content: '';
  position: absolute;
  bottom: -1.5rem;
  left: 0; right: 0;
  height: 3rem;
  background: rgba(0, 0, 0, .3);
  border-radius: 50%;
  filter: blur(1rem);
  transform: translateZ(-2rem) rotateX(80deg);
  z-index: -2;
  opacity: .7;
}
.yb-page .double-page-mode #flipbook {
  border-radius: 1.5rem 1.5rem 1.5rem .5rem;
}
.yb-page .double-page-mode #flipbook::before {
  left: -1.5rem;
  width: 1.5rem;
}
.yb-page #flipbook::after {
  bottom: -.5rem;
  left: .5rem; right: -.3rem;
  height: .5rem;
  background: rgba(0, 0, 0, .1);
  border-radius: 0 0 .8rem .8rem;
  z-index: -2;
}

/* Modern Page Styles */
.yb-page .modern-page {
  background: var(--primary);
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  border-radius: 2rem;
  box-shadow: 
    0 2.5rem 5rem rgba(0, 0, 0, .15),
    0 0 0 .1rem rgba(255, 255, 255, .1) inset;
  backdrop-filter: blur(1rem);
}
.yb-page .animated-bg {
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: rgba(255, 255, 255, .08);
  animation: ybFloat 20s ease-in-out infinite;
  z-index: 1;
}
@keyframes ybFloat {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33%      { transform: translate(2%, 2%) rotate(120deg); }
  66%      { transform: translate(-2%, -2%) rotate(240deg); }
}
.yb-page .glass-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(255, 255, 255, .1);
  backdrop-filter: blur(2rem);
  border-radius: 2rem;
  z-index: 1;
}
.yb-page .modern-page .page-content {
  padding: 4rem;
  height: calc(100% - 2rem);
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 3;
  gap: 2rem;
  background: transparent;
}

/* Cover Page */
.yb-page .cover-page {
  background: var(--primary-deeper);
  color: var(--white);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 4rem;
}
.yb-page .cover-title {
  font-size: 4.8rem;
  font-weight: 900;
  margin-bottom: 1.4rem;
  color: var(--green-500);
  text-transform: uppercase;
  letter-spacing: .05em;
  line-height: 1.1;
}
.yb-page .cover-subtitle {
  font-size: 2.4rem;
  font-weight: 500;
  margin-bottom: 1.6rem;
  opacity: .9;
}
.yb-page .cover-year {
  font-size: 7.2rem;
  font-weight: 900;
  color: var(--green-500);
  margin: 2rem 0;
  text-shadow: 0 0 3rem rgba(125, 217, 8, .5);
}

/* Page Title and Text */
.yb-page .page-title {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 1.4rem;
  line-height: 1.3;
  text-shadow: 0 .2rem .4rem rgba(0, 0, 0, .2);
}
.yb-page .page-subtitle {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--green-100);
  margin-bottom: 1.4rem;
  opacity: .95;
}
.yb-page .page-text {
  font-size: 1.4rem;
  line-height: 1.6;
  color: var(--white);
  text-align: left;
  flex: 1;
  opacity: .9;
}
.yb-page .page-number {
  position: absolute;
  bottom: 1.5rem; right: 2rem;
  font-size: 1.3rem;
  color: var(--gray-500);
  font-weight: 600;
  background: rgba(255, 255, 255, .9);
  padding: .4rem 1rem;
  border-radius: 1.5rem;
  border: .1rem solid rgba(0, 0, 0, .1);
  box-shadow: 0 .2rem .5rem rgba(0, 0, 0, .05);
}

/* Photo Pages */
.yb-page .photo-page {
  background: var(--white);
  color: var(--gray-800);
}
.yb-page .photo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
  flex: 1;
}
.yb-page .photo-item {
  position: relative;
  background: var(--gray-100);
  border-radius: 1rem;
  overflow: hidden;
  aspect-ratio: 3/4;
  display: flex;
  align-items: center;
  justify-content: center;
}
.yb-page .photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.yb-page .photo-caption {
  font-size: 1.3rem;
  text-align: center;
  color: var(--gray-800);
  margin-top: 1rem;
  font-weight: 500;
}

/* Student Profile Page */
.yb-page .student-profile {
  background: var(--white);
  color: var(--gray-800);
  padding: 2.4rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.yb-page .student-photo {
  width: 16rem; height: 20rem;
  border-radius: 1rem;
  overflow: hidden;
  margin-bottom: 2rem;
  border: .3rem solid var(--green-500);
  box-shadow: 0 .8rem 2rem rgba(0, 0, 0, .15);
}
.yb-page .student-photo img { width: 100%; height: 100%; object-fit: cover; }
.yb-page .student-name {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--gray-800);
  margin-bottom: .6rem;
}
.yb-page .student-quote {
  font-size: 1.4rem;
  color: var(--gray-600);
  font-style: italic;
  line-height: 1.6;
  margin-top: 1.4rem;
  padding: 0 1.4rem;
  border-left: .3rem solid var(--green-500);
  text-align: left;
}

/* Navigation Controls */
.yb-page .nav-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.4rem;
  padding: 2rem;
  background: rgba(0, 0, 0, .3);
  backdrop-filter: blur(1.5rem);
  border-top: .1rem solid rgba(255, 255, 255, .1);
}
.yb-page .nav-btn {
  display: flex;
  align-items: center;
  gap: .8rem;
  padding: 1.2rem 2rem;
  background: var(--green-500);
  border: none;
  border-radius: 1rem;
  color: var(--primary-deeper);
  font-size: 1.4rem;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s ease;
  box-shadow: 0 .4rem 1.5rem rgba(125, 217, 8, .3);
}
.yb-page .nav-btn:hover:not(:disabled) {
  transform: translateY(-.2rem);
  box-shadow: 0 .6rem 2rem rgba(125, 217, 8, .4);
  background: var(--green-600);
}
.yb-page .nav-btn:disabled { background: var(--gray-600); color: var(--gray-400); cursor: not-allowed; box-shadow: none; }
.yb-page .page-indicator {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
  background: rgba(0, 0, 0, .4);
  padding: .8rem 1.6rem;
  border-radius: 999px;
  letter-spacing: .05em;
}
.yb-page .zoom-controls {
  display: flex;
  align-items: center;
  gap: .8rem;
}
.yb-page .zoom-btn {
  width: 4rem; height: 4rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, .15);
  border: .1rem solid rgba(255, 255, 255, .3);
  color: var(--white);
  font-size: 1.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s;
  display: flex; align-items: center; justify-content: center;
}
.yb-page .zoom-btn:hover {
  background: var(--green-500);
  color: var(--primary-deeper);
  border-color: var(--green-500);
}

/* Music / Video config popup */
.yb-page #music-config-popup {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, .7);
  display: none; align-items: center; justify-content: center;
  z-index: 9999;
  animation: ybFadeIn .25s ease;
  padding: 2rem;
}
.yb-page #music-config-popup.open { display: flex; }
.yb-page #music-config-popup > div {
  background: var(--gray-800);
  color: var(--white);
  border-radius: 1.6rem;
  padding: 3rem;
  max-width: 50rem; width: 100%;
  box-shadow: 0 2rem 6rem rgba(0, 0, 0, .5);
  animation: ybSlideUp .35s ease;
  max-height: 90vh; overflow-y: auto;
}
@keyframes ybFadeIn  { from { opacity: 0; } to { opacity: 1; } }
@keyframes ybSlideUp { from { opacity: 0; transform: translateY(5rem) scale(.9); } to { opacity: 1; transform: translateY(0) scale(1); } }

.yb-page #music-config-popup h3 { font-size: 2.2rem; font-weight: 800; margin: 0 0 1.4rem; color: var(--green-500); }
.yb-page #music-config-popup label { display: block; font-size: 1.4rem; font-weight: 700; margin: 1.2rem 0 .6rem; color: var(--green-100); }
.yb-page #music-config-popup input[type="file"],
.yb-page #music-config-popup input[type="range"],
.yb-page #music-config-popup input[type="number"] {
  width: 100%;
  padding: .8rem 1rem;
  border: .1rem solid var(--gray-600);
  background: var(--gray-900);
  color: var(--white);
  border-radius: .6rem;
  font-size: 1.4rem;
  font-family: inherit;
}
.yb-page #music-config-popup input[type="range"] { padding: 0; accent-color: var(--green-500); }
.yb-page #music-config-popup button {
  padding: 1.2rem 2.4rem;
  background: var(--green-500);
  color: var(--primary-deeper);
  border: none;
  border-radius: 1rem;
  font-size: 1.4rem;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Segoe UI', sans-serif;
  margin: .6rem .4rem 0 0;
  transition: all .2s;
}
.yb-page #music-config-popup button:hover { transform: translateY(-.1rem); }
.yb-page #music-config-popup button[onclick*="close"] { background: var(--gray-600); color: var(--white); }
.yb-page #music-config-popup #proceed-video {
  background: var(--green-600); color: var(--white);
  box-shadow: 0 .4rem 1.5rem rgba(125, 217, 8, .3);
}
.yb-page #music-config-popup #proceed-video:hover { background: #4d9605; }

/* Custom range slider styling */
.yb-page #volume-slider::-webkit-slider-thumb,
.yb-page #start-time-slider::-webkit-slider-thumb,
.yb-page #end-time-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 1.8rem; height: 1.8rem;
  border-radius: 50%;
  background: var(--green-500);
  cursor: pointer;
  box-shadow: 0 .2rem .6rem rgba(0, 0, 0, .2);
  transition: all .3s ease;
}
.yb-page #volume-slider::-webkit-slider-thumb:hover,
.yb-page #start-time-slider::-webkit-slider-thumb:hover,
.yb-page #end-time-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  box-shadow: 0 .4rem 1.2rem rgba(125, 217, 8, .4);
}
.yb-page #volume-slider::-webkit-slider-track {
  height: .6rem;
  border-radius: .3rem;
  background: var(--gray-200);
}

/* Page turn helpers */
.yb-page .turn-page {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

@media (max-width: 768px) {
  .yb-page .book-perspective { padding: 2rem 1rem; }
  .yb-page .header-controls { padding: 1.4rem; }
  .yb-page .book-container { padding: 2rem 1rem; }
  .yb-page .modern-page .page-content { padding: 1.5rem 1rem; font-size: 1.3rem; }
  .yb-page .page-title { font-size: 1.6rem; margin-bottom: 1rem; line-height: 1.3; }
  .yb-page .page-text { font-size: 1.3rem; line-height: 1.4; text-align: left; }
  .yb-page .cover-title { font-size: 2.4rem; margin-bottom: 1rem; }
  .yb-page .cover-subtitle { font-size: 1.6rem; margin-bottom: 1.5rem; }
  .yb-page .cover-year { font-size: 4.8rem; }
  .yb-page .nav-controls { padding: 1.4rem; gap: 1rem; }
  .yb-page .nav-btn { padding: 1rem 1.4rem; font-size: 1.3rem; }
  .yb-page .zoom-btn { width: 3.6rem; height: 3.6rem; font-size: 1.6rem; }
  .yb-page .page-indicator { font-size: 1.3rem; padding: .6rem 1.2rem; }
  .yb-page .student-photo { width: 12rem; height: 15rem; }
  .yb-page .student-name { font-size: 2rem; }
}
@media (max-width: 480px) {
  .yb-page .modern-page .page-content { padding: 1rem .8rem; font-size: 1.3rem; }
  .yb-page .page-title { font-size: 1.5rem; margin-bottom: .6rem; }
  .yb-page .page-text { font-size: 1.25rem; line-height: 1.3; }
  .yb-page .cover-title { font-size: 2rem; }
  .yb-page .cover-year { font-size: 3.6rem; }
  .yb-page .header-controls { padding: 1rem; }
  .yb-page .control-btn { padding: .8rem 1.2rem; font-size: 1.3rem; }
}

/* =====================================================
   PARENT PAYMENT SYSTEM — HARMONIZED UNSCOPED STYLES
   --------------------------------------------------------------
   Targets the actual class names used in:
     • parent_dashboard.php      (.dashboard-container)
     • parent_view_fees.php      (.fees-container)
     • parent_make_payment.php   (.pay-wrap)
     • parent_payment_receipt.php(.receipt-wrapper)
     • parent_messages.php       (.messages-container)
     • view_fee_structure.php    (.fee-details-container)

   Scoping under each page's container prevents conflict with
   existing .card / .fee-card / .status-badge rules used by
   other parts of the site (admin fee structure, etc.).
   ===================================================== */

/* ---------- shared tokens (re-used by all parent pages) ---------- */
.dashboard-container,
.fees-container,
.pay-wrap,
.receipt-wrapper,
.messages-container,
.fee-details-container {
  --pp-primary:        var(--primary);
  --pp-primary-dark:   var(--primary-dark);
  --pp-primary-light:  var(--primary-soft);
  --pp-success:        var(--green-500);
  --pp-success-light:  var(--green-100);
  --pp-success-dark:   var(--green-700);
  --pp-warning:        var(--amber-500);
  --pp-warning-light:  var(--amber-100);
  --pp-warning-dark:   var(--amber-700);
  --pp-danger:         #ef4444;
  --pp-danger-light:   #fee2e2;
  --pp-info:           var(--primary-light);
  --pp-info-light:     var(--primary-mist);
  --pp-info-dark:      var(--primary-dark);
  --pp-radius-sm:      var(--r-sm);
  --pp-radius-md:      var(--r-md);
  --pp-radius-lg:      var(--r-lg);
  --pp-radius-xl:      var(--r-xl);
  --pp-radius-full:    var(--r-full);
  --pp-shadow-sm:      var(--shadow-sm);
  --pp-shadow-md:      var(--shadow-md);
  --pp-shadow-lg:      var(--shadow-lg);
  --pp-transition:     var(--t-base);
  max-width: 1200px;
  margin: 3rem auto;
  padding: 0 1.5rem 4rem;
  font-family: var(--font-body);
  color: var(--text);
  font-size: 1.5rem;
  line-height: 1.65;
}

/* ---------- common form fields / buttons used inside ---------- */
.dashboard-container .form-group,
.fees-container .form-group,
.pay-wrap .form-group,
.messages-container .form-group,
.fee-details-container .form-group {
  margin-bottom: 1.6rem;
}
.dashboard-container .form-group label,
.fees-container .form-group label,
.pay-wrap .form-group label,
.messages-container .form-group label,
.fee-details-container .form-group label {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: .6rem;
  letter-spacing: .02em;
}
.pay-wrap .form-group small,
.fees-container .form-group small {
  display: block;
  margin-top: .4rem;
  font-size: 1.25rem;
  color: var(--text-muted);
}

/* alerts (success / error / info) */
.dashboard-container .alert,
.fees-container .alert,
.pay-wrap .alert,
.messages-container .alert,
.fee-details-container .alert {
  padding: 1.4rem 1.8rem;
  border-radius: var(--pp-radius-md);
  margin-bottom: 1.8rem;
  font-size: 1.45rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: .8rem;
  box-shadow: var(--pp-shadow-sm);
  border-left: 4px solid;
  line-height: 1.5;
}
.pay-wrap .alert-success,
.fees-container .alert-success,
.messages-container .alert-success,
.fee-details-container .alert-success,
.dashboard-container .alert-success {
  background: var(--pp-success-light);
  color: var(--pp-success-dark);
  border-left-color: var(--pp-success);
}
.pay-wrap .alert-error,
.fees-container .alert-error,
.messages-container .alert-error,
.fee-details-container .alert-error,
.dashboard-container .alert-error {
  background: var(--pp-danger-light);
  color: #991b1b;
  border-left-color: var(--pp-danger);
}
.pay-wrap .alert-info,
.fees-container .alert-info,
.messages-container .alert-info,
.fee-details-container .alert-info,
.dashboard-container .alert-info {
  background: var(--pp-info-light);
  color: var(--pp-info-dark);
  border-left-color: var(--pp-info);
}

/* generic .card (used inside dashboard, fees container, fee-details) */
.dashboard-container .card,
.fees-container .card,
.fee-details-container .card {
  background: var(--white);
  border-radius: var(--pp-radius-lg);
  padding: 2.4rem 2.6rem;
  margin-bottom: 2rem;
  box-shadow: var(--pp-shadow-md);
  border: 1px solid var(--border-light);
  transition: box-shadow var(--pp-transition);
}
.dashboard-container .card:hover,
.fees-container .card:hover,
.fee-details-container .card:hover {
  box-shadow: var(--pp-shadow-lg);
}
.dashboard-container .card h3,
.fees-container .card h3,
.fee-details-container .card h3 {
  margin: 0 0 1.6rem;
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--green-100);
  display: flex;
  align-items: center;
  gap: .8rem;
}
.fees-container .card[style*="border-left:4px solid var(--green-500)"] h3,
.fees-container .card[style*="border-left:4px solid var(--green-500);"] h3 {
  border-bottom-color: var(--pp-success-light);
  color: var(--pp-success-dark);
}

/* =====================================================
   PARENT DASHBOARD  (.dashboard-container)
   ===================================================== */
.dashboard-container .header-card {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  padding: 3rem 3.2rem;
  border-radius: var(--pp-radius-xl);
  margin-bottom: 2.4rem;
  box-shadow: var(--shadow-green-lg);
  font-size: 1.6rem;
}
.dashboard-container .header-title {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 800;
  margin-bottom: .8rem;
  color: var(--white);
}
.dashboard-container .header-card > div { color: rgba(255,255,255,.92); }

.dashboard-container .child-selector {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  margin-top: 1rem;
}
.dashboard-container .child-btn {
  display: inline-flex;
  align-items: center;
  padding: .7rem 1.6rem;
  background: rgba(255,255,255,.15);
  color: var(--white) !important;
  border: 2px solid rgba(255,255,255,.3);
  border-radius: var(--pp-radius-full);
  font-size: 1.4rem;
  font-weight: 600;
  text-decoration: none !important;
  transition: all var(--pp-transition);
}
.dashboard-container .child-btn:hover {
  background: rgba(255,255,255,.28);
  color: var(--white) !important;
  transform: translateY(-1px);
}
.dashboard-container .child-btn.active {
  background: var(--white);
  color: var(--primary) !important;
  border-color: var(--white);
  box-shadow: 0 4px 14px rgba(0,0,0,.15);
}

.dashboard-container .alert-box {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  background: var(--pp-warning-light);
  border: 1px solid var(--pp-warning);
  border-left: 4px solid var(--pp-warning);
  padding: 1.4rem 1.8rem;
  border-radius: var(--pp-radius-md);
  margin-bottom: 1.6rem;
  font-size: 1.5rem;
  color: var(--pp-warning-dark);
  line-height: 1.55;
}
.dashboard-container .alert-box.danger {
  background: var(--pp-danger-light);
  border-color: var(--pp-danger);
  border-left-color: var(--pp-danger);
  color: #991b1b;
}

.dashboard-container .stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(24rem, 1fr));
  gap: 2rem;
  margin-bottom: 2.4rem;
}
.dashboard-container .stat-card {
  background: var(--white);
  border-radius: var(--pp-radius-lg);
  padding: 2.4rem 2.2rem;
  box-shadow: var(--pp-shadow-md);
  border-left: 5px solid var(--primary);
  transition: all var(--pp-transition);
  position: relative;
  overflow: hidden;
}
.dashboard-container .stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--pp-shadow-lg);
}
.dashboard-container .stat-card.excellent { border-left-color: var(--pp-success); }
.dashboard-container .stat-card.danger    { border-left-color: var(--pp-danger); }
.dashboard-container .stat-icon {
  font-size: 2.4rem;
  margin-bottom: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 5rem;
  height: 5rem;
  border-radius: var(--pp-radius-md);
  background: var(--green-50);
}
.dashboard-container .stat-card.excellent .stat-icon { background: var(--pp-success-light); }
.dashboard-container .stat-card.danger    .stat-icon { background: var(--pp-danger-light); }
.dashboard-container .stat-number {
  font-family: var(--font-heading);
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: .4rem;
  line-height: 1.1;
}
.dashboard-container .stat-label {
  font-size: 1.4rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 1rem;
}
.dashboard-container .stat-progress {
  margin-top: 1rem;
  font-size: 1.4rem;
  color: var(--text-secondary);
}
.dashboard-container .stat-progress small { color: var(--text-muted); }

.dashboard-container .progress-bar {
  height: .8rem;
  background: var(--border);
  border-radius: var(--pp-radius-full);
  overflow: hidden;
  margin-top: .5rem;
}
.dashboard-container .progress-fill {
  height: 100%;
  background: var(--primary);
  border-radius: var(--pp-radius-full);
  transition: width .5s ease;
}
.dashboard-container .progress-fill.excellent { background: var(--pp-success); }
.dashboard-container .progress-fill.danger    { background: var(--pp-danger); }
.dashboard-container .progress-fill.warning   { background: var(--pp-warning); }

.dashboard-container .content-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2.4rem;
  align-items: start;
}

.dashboard-container .exam-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.2rem;
  padding: 1.2rem 1.4rem;
  background: var(--bg-alt);
  border: 1px solid var(--border-light);
  border-radius: var(--pp-radius-md);
  margin-bottom: .8rem;
  transition: all var(--pp-transition);
}
.dashboard-container .exam-item:hover {
  border-color: var(--green-200);
  background: var(--green-50);
}
.dashboard-container .exam-info  { flex: 1; min-width: 0; }
.dashboard-container .exam-title {
  font-weight: 700;
  color: var(--text);
  margin-bottom: .2rem;
  font-size: 1.55rem;
}
.dashboard-container .exam-meta  { font-size: 1.3rem; color: var(--text-muted); }
.dashboard-container .exam-score {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  padding: .6rem 1.4rem;
  border-radius: var(--pp-radius-md);
  background: var(--green-100);
  color: var(--primary-dark);
  white-space: nowrap;
}
.dashboard-container .exam-score.excellent { background: var(--pp-success-light); color: var(--pp-success-dark); }
.dashboard-container .exam-score.good      { background: var(--green-100);        color: var(--primary-dark); }
.dashboard-container .exam-score.fair      { background: var(--pp-warning-light); color: var(--pp-warning-dark); }
.dashboard-container .exam-score.poor      { background: var(--pp-danger-light);  color: #991b1b; }

.dashboard-container .assignment-item {
  padding: 1.2rem 1.4rem;
  background: var(--pp-warning-light);
  border-left: 4px solid var(--pp-warning);
  border-radius: var(--pp-radius-md);
  margin-bottom: .8rem;
  font-size: 1.4rem;
  color: var(--text-secondary);
}
.dashboard-container .assignment-title {
  font-weight: 700;
  color: var(--text);
  margin-bottom: .4rem;
  font-size: 1.5rem;
}
.dashboard-container .assignment-due  { font-size: 1.3rem; color: var(--text-secondary); line-height: 1.6; }

.dashboard-container .empty-state {
  text-align: center;
  padding: 3.2rem 1.6rem;
  color: var(--text-muted);
}
.dashboard-container .empty-state p  { color: var(--text-muted); margin: 0; }

@media (max-width: 900px) {
  .dashboard-container .content-grid { grid-template-columns: 1fr; }
  .dashboard-container .stats-grid   { grid-template-columns: repeat(2, 1fr); }
  .dashboard-container .header-card  { padding: 2.2rem 1.8rem; }
  .dashboard-container .header-title { font-size: 2rem; }
}
@media (max-width: 540px) {
  .dashboard-container .stats-grid   { grid-template-columns: 1fr; }
}

/* =====================================================
   PARENT VIEW FEES  (.fees-container)
   ===================================================== */
.fees-container .student-header {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  background: var(--white);
  border-radius: var(--pp-radius-lg);
  padding: 1.6rem 2rem;
  margin-bottom: 1.8rem;
  box-shadow: var(--pp-shadow-md);
  border-left: 4px solid var(--primary);
}
.fees-container .student-avatar {
  font-size: 2.2rem;
  background: var(--green-100);
  color: var(--primary);
  border-radius: 50%;
  width: 5.6rem;
  height: 5.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.fees-container .student-header h3 {
  margin: 0 0 .3rem;
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
}
.fees-container .student-header p {
  margin: 0;
  font-size: 1.4rem;
  color: var(--text-muted);
}
.fees-container .student-header strong { color: var(--text); }

.fees-container .summary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
  margin-bottom: 2rem;
}
.fees-container .summary-card {
  background: var(--white);
  border-radius: var(--pp-radius-lg);
  padding: 1.6rem 2rem;
  box-shadow: var(--pp-shadow-sm);
  border-top: 3px solid var(--border);
  transition: all var(--pp-transition);
}
.fees-container .summary-card:hover { box-shadow: var(--pp-shadow-md); transform: translateY(-2px); }
.fees-container .summary-card.sc-paid    { border-top-color: var(--pp-success); }
.fees-container .summary-card.sc-balance { border-top-color: var(--pp-danger); }
.fees-container .sc-label {
  font-size: 1.25rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--text-muted);
  margin-bottom: .5rem;
}
.fees-container .sc-val {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.15;
}

.fees-container .fee-card {
  background: var(--white);
  border-radius: var(--pp-radius-lg);
  padding: 1.8rem 2rem;
  margin-bottom: 1.4rem;
  box-shadow: var(--pp-shadow-sm);
  border: 1px solid var(--border-light);
  border-left: 4px solid var(--border);
  transition: all var(--pp-transition);
}
.fees-container .fee-card:hover { box-shadow: var(--pp-shadow-md); transform: translateY(-2px); }
.fees-container .fee-card.fc-paid    { border-left-color: var(--pp-success); }
.fees-container .fee-card.fc-partial { border-left-color: var(--pp-warning); }
.fees-container .fee-card.fc-overdue { border-left-color: var(--pp-danger); }

.fees-container .fee-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.4rem;
  margin-bottom: 1.2rem;
  flex-wrap: wrap;
}
.fees-container .fee-card-title {
  font-family: var(--font-heading);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: .4rem;
  line-height: 1.3;
}
.fees-container .fee-card-sub {
  font-size: 1.3rem;
  color: var(--text-muted);
  margin-top: .4rem;
}
.fees-container .overdue-tag {
  display: inline-block;
  background: var(--pp-danger-light);
  color: #991b1b;
  font-size: 1.2rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: var(--pp-radius-full);
  margin-left: .4rem;
  text-transform: uppercase;
  letter-spacing: .03em;
}

.fees-container .status-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .45rem 1rem;
  border-radius: var(--pp-radius-full);
  font-size: 1.2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  white-space: nowrap;
  border: 1px solid transparent;
}
.fees-container .status-badge.status-paid    { background: var(--pp-success-light); color: var(--pp-success-dark); border-color: var(--pp-success); }
.fees-container .status-badge.status-partial { background: var(--pp-warning-light); color: var(--pp-warning-dark); border-color: var(--pp-warning); }
.fees-container .status-badge.status-unpaid  { background: var(--pp-danger-light);  color: #991b1b;               border-color: var(--pp-danger); }
.fees-container .status-badge.status-overdue { background: var(--pp-danger-light);  color: #991b1b;               border-color: var(--pp-danger); }

.fees-container .fee-amounts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.2rem;
}
.fees-container .amount-box {
  background: var(--bg-alt);
  border: 1px solid var(--border-light);
  border-radius: var(--pp-radius-md);
  padding: 1rem 1.2rem;
}
.fees-container .amount-box.ab-paid    { background: var(--pp-success-light); border-color: var(--pp-success); }
.fees-container .amount-box.ab-balance { background: var(--pp-danger-light);  border-color: var(--pp-danger); }
.fees-container .ab-label {
  font-size: 1.2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--text-muted);
  margin-bottom: .4rem;
}
.fees-container .ab-val {
  font-family: var(--font-heading);
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--text);
}
.fees-container .amount-box.ab-paid    .ab-val { color: var(--pp-success-dark); }
.fees-container .amount-box.ab-balance .ab-val { color: #991b1b; }

.fees-container .progress-wrap { margin-bottom: 1.2rem; }
.fees-container .progress-meta {
  display: flex;
  justify-content: space-between;
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: .4rem;
  font-weight: 600;
}
.fees-container .progress-bar {
  height: .8rem;
  background: var(--border);
  border-radius: var(--pp-radius-full);
  overflow: hidden;
}
.fees-container .progress-fill {
  height: 100%;
  background: var(--primary);
  border-radius: var(--pp-radius-full);
  transition: width .5s ease;
}

.fees-container .pay-history {
  margin-top: 1.2rem;
  border-top: 1px solid var(--border-light);
  padding-top: 1.2rem;
}
.fees-container .pay-hist-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.35rem;
  background: var(--bg-alt);
  border-radius: var(--pp-radius-md);
  overflow: hidden;
}
.fees-container .pay-hist-table th {
  background: var(--gray-100);
  color: var(--text);
  padding: .8rem 1rem;
  text-align: left;
  font-weight: 700;
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.fees-container .pay-hist-table td {
  padding: .8rem 1rem;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-secondary);
  background: var(--white);
  font-size: 1.3rem;
}
.fees-container .pay-hist-table tr:last-child td { border-bottom: none; }
.fees-container .pay-hist-table tr:hover td { background: var(--green-50); }

.fees-container .ph-badge {
  display: inline-flex;
  align-items: center;
  padding: .3rem .8rem;
  border-radius: var(--pp-radius-full);
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  white-space: nowrap;
}
.fees-container .ph-badge.ph-approved { background: var(--pp-success-light); color: var(--pp-success-dark); }
.fees-container .ph-badge.ph-pending  { background: var(--pp-warning-light); color: var(--pp-warning-dark); }
.fees-container .ph-badge.ph-rejected { background: var(--pp-danger-light);  color: #991b1b; }

.fees-container .empty-state { text-align: center; padding: 4rem 2rem; }
.fees-container .empty-state h3 { color: var(--text); font-size: 1.8rem; margin: 0 0 .6rem; }
.fees-container .empty-state p  { color: var(--text-muted); margin: 0; font-size: 1.4rem; }
.fees-container .es-icon { font-size: 4.8rem; margin-bottom: 1.2rem; }

@media (max-width: 768px) {
  .fees-container .summary-grid  { grid-template-columns: 1fr; }
  .fees-container .fee-amounts   { grid-template-columns: 1fr; }
  .fees-container .fee-card-top  { flex-direction: column; align-items: flex-start; }
  .fees-container .student-header{ flex-direction: column; align-items: flex-start; }
  .fees-container .pay-hist-table{ font-size: 1.2rem; }
  .fees-container .pay-hist-table th,
  .fees-container .pay-hist-table td { padding: .6rem .5rem; }
}

/* =====================================================
   PARENT MAKE PAYMENT  (.pay-wrap)
   ===================================================== */
.pay-wrap .stu-bar {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  background: var(--white);
  border-radius: var(--pp-radius-lg);
  padding: 1.4rem 1.8rem;
  margin-bottom: 1.6rem;
  box-shadow: var(--pp-shadow-sm);
  border-left: 4px solid var(--primary);
}
.pay-wrap .stu-bar .av {
  font-size: 2rem;
  background: var(--green-100);
  color: var(--primary);
  border-radius: 50%;
  width: 5rem;
  height: 5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.pay-wrap .stu-bar h4 {
  margin: 0 0 .3rem;
  font-family: var(--font-heading);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--text);
}
.pay-wrap .stu-bar p  { margin: 0; font-size: 1.35rem; color: var(--text-muted); }
.pay-wrap .stu-bar strong { color: var(--text); }

.pay-wrap .pay-card {
  background: var(--white);
  border-radius: var(--pp-radius-lg);
  padding: 2.4rem 2.6rem;
  margin-bottom: 1.8rem;
  box-shadow: var(--pp-shadow-md);
  border: 1px solid var(--border-light);
  transition: box-shadow var(--pp-transition);
}
.pay-wrap .pay-card:hover { box-shadow: var(--pp-shadow-lg); }
.pay-wrap .pay-card h3 {
  margin: 0 0 1.4rem;
  font-family: var(--font-heading);
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--text);
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--green-100);
  display: flex;
  align-items: center;
  gap: .8rem;
}

.pay-wrap .step-bar {
  display: flex;
  gap: .6rem;
  margin-bottom: 1.6rem;
  flex-wrap: wrap;
}
.pay-wrap .step {
  flex: 1;
  min-width: 9rem;
  text-align: center;
  padding: .8rem 1rem;
  border-radius: var(--pp-radius-md);
  font-size: 1.3rem;
  font-weight: 700;
  background: var(--bg-alt);
  color: var(--text-muted);
  border: 2px solid var(--border);
  transition: all var(--pp-transition);
}
.pay-wrap .step.active { background: var(--primary); color: var(--white); border-color: var(--primary); box-shadow: 0 4px 12px var(--primary-glow); }
.pay-wrap .step.done   { background: var(--pp-success-light); color: var(--pp-success-dark); border-color: var(--pp-success); }

.pay-wrap .fee-sel-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.pay-wrap .fee-sel-item {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1.4rem 1.6rem;
  background: var(--bg-alt);
  border: 2px solid var(--border);
  border-radius: var(--pp-radius-lg);
  cursor: pointer;
  transition: all var(--pp-transition);
  margin: 0;
}
.pay-wrap .fee-sel-item:hover,
.pay-wrap .fee-sel-item.fsi-sel {
  border-color: var(--primary);
  background: var(--green-50);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px var(--primary-glow);
}
.pay-wrap .fee-sel-item input[type="radio"] { display: none; }
.pay-wrap .fsi-radio {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--white);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .9rem;
  color: var(--white);
  font-weight: 800;
  transition: all var(--pp-transition);
}
.pay-wrap .fee-sel-item.fsi-sel .fsi-radio { border-color: var(--primary); background: var(--primary); }
.pay-wrap .fsi-info  { flex: 1; min-width: 0; }
.pay-wrap .fsi-title {
  font-family: var(--font-heading);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: .3rem;
  line-height: 1.3;
}
.pay-wrap .fsi-due   { font-size: 1.25rem; color: var(--text-muted); margin-top: .3rem; }
.pay-wrap .fsi-bal   { text-align: right; flex-shrink: 0; }
.pay-wrap .fsi-bal-amt {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--pp-danger);
  line-height: 1.1;
}
.pay-wrap .fsi-bal-lbl {
  font-size: 1.1rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-top: .2rem;
  font-weight: 700;
}

.pay-wrap .bal-box {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  border-radius: var(--pp-radius-lg);
  padding: 2rem 2.2rem;
  margin-bottom: 1.8rem;
  text-align: center;
  box-shadow: var(--shadow-green);
  position: relative;
  overflow: hidden;
}
.pay-wrap .bal-box::after {
  content: '';
  position: absolute;
  top: -3rem; right: -3rem;
  width: 10rem; height: 10rem;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  pointer-events: none;
}
.pay-wrap .bb-lbl {
  font-size: 1.25rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  opacity: .9;
  margin-bottom: .5rem;
}
.pay-wrap .bb-val {
  font-family: var(--font-heading);
  font-size: 3.4rem;
  font-weight: 800;
  line-height: 1.1;
  position: relative;
  z-index: 1;
}

.pay-wrap .method-section-label {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  margin: 1.4rem 0 1rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.pay-wrap .method-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
  gap: 1rem;
  margin-bottom: 1.8rem;
}
.pay-wrap .mc {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.6rem 1rem;
  background: var(--bg-alt);
  border: 2px solid var(--border);
  border-radius: var(--pp-radius-lg);
  cursor: pointer;
  transition: all var(--pp-transition);
  position: relative;
  text-align: center;
  margin: 0;
  user-select: none;
}
.pay-wrap .mc:hover {
  border-color: var(--primary);
  background: var(--green-50);
  transform: translateY(-2px);
}
.pay-wrap .mc.selected {
  border-color: var(--primary);
  background: var(--green-50);
  box-shadow: 0 4px 14px var(--primary-glow);
}
.pay-wrap .mc input[type="radio"] { display: none; }
.pay-wrap .mc-tick {
  position: absolute;
  top: .8rem;
  right: .8rem;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  font-size: .9rem;
  display: none;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}
.pay-wrap .mc.selected .mc-tick { display: flex; }
.pay-wrap .mc-icon  { font-size: 2rem; margin-bottom: .6rem; }
.pay-wrap .mc-label {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: .25rem;
}
.pay-wrap .mc-hint  { font-size: 1.2rem; color: var(--text-muted); }

.pay-wrap .pay-panel { margin-top: .8rem; animation: ppFadeInUp .25s ease; }
@keyframes ppFadeInUp { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

.pay-wrap .notice {
  padding: 1.2rem 1.5rem;
  border-radius: var(--pp-radius-md);
  font-size: 1.4rem;
  margin-bottom: 1.4rem;
  display: flex;
  align-items: flex-start;
  gap: .8rem;
  line-height: 1.55;
  border-left: 4px solid;
}
.pay-wrap .notice-secure {
  background: var(--pp-success-light);
  color: var(--pp-success-dark);
  border-left-color: var(--pp-success);
}
.pay-wrap .notice-pending {
  background: var(--pp-warning-light);
  color: var(--pp-warning-dark);
  border-left-color: var(--pp-warning);
}
.pay-wrap .notice-info {
  background: var(--pp-info-light);
  color: var(--pp-info-dark);
  border-left-color: var(--pp-info);
}
.pay-wrap .hint-text {
  display: block;
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-top: .4rem;
}

.pay-wrap #ps-calc-box {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--pp-radius-md);
  padding: 1.6rem 2rem;
  margin: 0 0 1.4rem;
}
.pay-wrap #ps-calc-box h6 {
  margin: 0 0 1.2rem;
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
}
.pay-wrap #ps-calc-box table { width: 100%; font-size: 1.35rem; border-collapse: collapse; }
.pay-wrap #ps-calc-box table td { padding: .6rem 0; vertical-align: top; }
.pay-wrap #ps-calc-box table tr:last-child td { border-top: 2px solid var(--border); padding-top: 1rem; }
.pay-wrap #ps-calc-box table tr:last-child td:first-child { font-weight: 700; color: var(--text); font-size: 1.5rem; }
.pay-wrap #ps-calc-box table tr:last-child td:last-child  { font-weight: 800; font-size: 1.8rem; color: var(--primary); text-align: right; }
.pay-wrap #ps-calc-box table td small { display: block; color: var(--text-muted); font-size: 1.15rem; margin-top: 2px; }
.pay-wrap #ps-calc-box p { margin: 1rem 0 0; font-size: 1.2rem; color: var(--text-muted); }

@media (max-width: 600px) {
  .pay-wrap .step-bar { flex-direction: column; }
  .pay-wrap .step     { min-width: 0; }
  .pay-wrap .method-grid { grid-template-columns: repeat(2, 1fr); }
  .pay-wrap .pay-card  { padding: 1.8rem 1.4rem; }
  .pay-wrap .bb-val    { font-size: 2.6rem; }
  .pay-wrap .stu-bar   { flex-direction: column; align-items: flex-start; }
}

/* =====================================================
   PARENT PAYMENT RECEIPT  (.receipt-wrapper)
   ===================================================== */
.receipt-wrapper {
  background: var(--bg-alt);
  max-width: 100% !important;
  padding: 3rem 1.5rem 5rem !important;
  margin: 0 !important;
  min-height: 60vh;
}
.receipt-wrapper .receipt-card {
  max-width: 720px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--pp-radius-xl);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  border: 1px solid var(--border-light);
}
.receipt-wrapper .receipt-header {
  padding: 3.2rem 3rem 2.6rem;
  text-align: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}
.receipt-wrapper .receipt-header::before {
  content: '';
  position: absolute;
  top: -5rem; right: -5rem;
  width: 16rem; height: 16rem;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  pointer-events: none;
}
.receipt-wrapper .receipt-header.approved { background: linear-gradient(135deg, var(--pp-success) 0%, var(--pp-success-dark) 100%); }
.receipt-wrapper .receipt-header.pending  { background: linear-gradient(135deg, var(--pp-warning) 0%, var(--pp-warning-dark) 100%); }
.receipt-wrapper .receipt-header.rejected { background: linear-gradient(135deg, var(--pp-danger) 0%, #991b1b 100%); }

.receipt-wrapper .receipt-icon { font-size: 5.4rem; margin-bottom: 1rem; line-height: 1; position: relative; z-index: 1; }
.receipt-wrapper .receipt-status-title {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 800;
  margin: 0 0 .6rem;
  color: var(--white);
  position: relative;
  z-index: 1;
}
.receipt-wrapper .receipt-ref {
  font-size: 1.35rem;
  opacity: .9;
  position: relative;
  z-index: 1;
}
.receipt-wrapper .receipt-ref strong { font-weight: 700; }

.receipt-wrapper .pending-info-box {
  background: var(--pp-warning-light);
  border: 1px solid var(--pp-warning);
  color: var(--pp-warning-dark);
  border-radius: var(--pp-radius-md);
  padding: 1.4rem 1.8rem;
  margin: 2rem 3rem 0;
  font-size: 1.35rem;
  line-height: 1.6;
}
.receipt-wrapper .rejected-info-box {
  background: var(--pp-danger-light);
  border: 1px solid var(--pp-danger);
  color: #991b1b;
  border-radius: var(--pp-radius-md);
  padding: 1.4rem 1.8rem;
  margin: 2rem 3rem 0;
  font-size: 1.35rem;
  line-height: 1.6;
}

.receipt-wrapper .receipt-body { padding: 2.6rem 3rem 1rem; }
.receipt-wrapper .receipt-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 1.4rem;
  gap: 1.2rem;
}
.receipt-wrapper .receipt-row:last-child { border-bottom: none; }
.receipt-wrapper .receipt-label {
  color: var(--text-muted);
  font-weight: 500;
  flex-shrink: 0;
  min-width: 14rem;
}
.receipt-wrapper .receipt-value {
  font-weight: 700;
  color: var(--text);
  text-align: right;
  word-break: break-word;
}

.receipt-wrapper .receipt-total {
  background: linear-gradient(135deg, var(--green-50) 0%, var(--green-100) 100%);
  border: 2px solid var(--primary);
  border-radius: var(--pp-radius-md);
  padding: 1.6rem 2rem;
  margin: 1.8rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.receipt-wrapper .receipt-total-label {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--text);
  font-weight: 600;
}
.receipt-wrapper .receipt-total-value {
  font-family: var(--font-heading);
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--primary);
}

.receipt-wrapper .receipt-footer {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  padding: 1.8rem 3rem 2.4rem;
  border-top: 1px solid var(--border-light);
  background: var(--bg-alt);
}
.receipt-wrapper .receipt-footer .btn { text-decoration: none; }

@media (max-width: 640px) {
  .receipt-wrapper .receipt-body    { padding: 2rem 1.6rem 1rem; }
  .receipt-wrapper .receipt-header  { padding: 2.4rem 1.6rem 2rem; }
  .receipt-wrapper .receipt-row     { flex-direction: column; gap: .4rem; }
  .receipt-wrapper .receipt-label   { min-width: 0; }
  .receipt-wrapper .receipt-value   { text-align: left; }
  .receipt-wrapper .pending-info-box,
  .receipt-wrapper .rejected-info-box { margin: 1.4rem 1.6rem 0; }
  .receipt-wrapper .receipt-footer  { padding: 1.6rem 1.4rem 2rem; }
  .receipt-wrapper .receipt-status-title { font-size: 1.8rem; }
  .receipt-wrapper .receipt-total-value  { font-size: 2rem; }
}
@media print {
  .receipt-wrapper { background: var(--white); padding: 0 !important; }
  .receipt-wrapper .receipt-card { box-shadow: none; border: 1px solid var(--gray-300); }
  .receipt-wrapper .receipt-footer,
  .receipt-wrapper .brd-hero,
  .receipt-wrapper nav,
  .receipt-wrapper footer { display: none !important; }
}

/* =====================================================
   PARENT MESSAGES  (.messages-container)
   ===================================================== */
.messages-container .messages-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  background: var(--white);
  border-radius: var(--pp-radius-lg);
  padding: 1.6rem 2rem;
  margin-bottom: 1.8rem;
  box-shadow: var(--pp-shadow-sm);
  flex-wrap: wrap;
}
.messages-container .messages-header h2 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
}

.messages-container .messages-layout {
  display: grid;
  grid-template-columns: 24rem 1fr;
  gap: 1.8rem;
  align-items: start;
}
.messages-container .messages-sidebar {
  background: var(--white);
  border-radius: var(--pp-radius-lg);
  padding: 1.2rem;
  box-shadow: var(--pp-shadow-sm);
  border: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  gap: .4rem;
}
.messages-container .sidebar-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.4rem;
  border-radius: var(--pp-radius-md);
  color: var(--text-secondary) !important;
  text-decoration: none !important;
  font-size: 1.45rem;
  font-weight: 600;
  transition: all var(--pp-transition);
  margin-bottom: .2rem;
}
.messages-container .sidebar-item:hover {
  background: var(--green-50);
  color: var(--primary) !important;
}
.messages-container .sidebar-item.active {
  background: var(--primary);
  color: var(--white) !important;
  box-shadow: 0 4px 12px var(--primary-glow);
}
.messages-container .sidebar-item.active .sidebar-label { color: var(--white); }
.messages-container .sidebar-icon { font-size: 1.5rem; }
.messages-container .sidebar-label { flex: 1; }
.messages-container .badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.2rem;
  height: 2.2rem;
  padding: 0 .6rem;
  background: var(--pp-danger);
  color: var(--white);
  font-size: 1.15rem;
  font-weight: 700;
  border-radius: var(--pp-radius-full);
}
.messages-container .sidebar-item.active .badge { background: var(--white); color: var(--pp-danger); }

.messages-container .messages-content { min-width: 0; }
.messages-container .messages-list {
  background: var(--white);
  border-radius: var(--pp-radius-lg);
  box-shadow: var(--pp-shadow-sm);
  border: 1px solid var(--border-light);
  overflow: hidden;
}
.messages-container .message-item {
  display: flex;
  align-items: flex-start;
  gap: 1.4rem;
  padding: 1.6rem 1.8rem;
  border-bottom: 1px solid var(--border-light);
  cursor: pointer;
  transition: all var(--pp-transition);
}
.messages-container .message-item:last-child { border-bottom: none; }
.messages-container .message-item:hover { background: var(--green-50); }
.messages-container .message-item.unread  { background: var(--pp-info-light); }
.messages-container .message-item.unread:hover { background: #d1e5fd; }
.messages-container .message-avatar {
  width: 4.6rem;
  height: 4.6rem;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.9rem;
  font-weight: 700;
  flex-shrink: 0;
}
.messages-container .message-details { flex: 1; min-width: 0; }
.messages-container .message-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: .4rem;
  gap: 1rem;
}
.messages-container .message-sender { font-weight: 700; color: var(--text); font-size: 1.5rem; }
.messages-container .message-date   { font-size: 1.2rem; color: var(--text-muted); white-space: nowrap; }
.messages-container .message-subject {
  font-weight: 600;
  color: var(--text);
  margin-bottom: .4rem;
  font-size: 1.35rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.messages-container .message-preview {
  color: var(--text-muted);
  font-size: 1.3rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.messages-container .attachment-indicator {
  margin-top: .4rem;
  font-size: 1.2rem;
  color: var(--primary);
}

.messages-container .empty-state { text-align: center; padding: 5rem 2rem; }
.messages-container .empty-icon { font-size: 5.2rem; margin-bottom: 1.2rem; opacity: .8; }
.messages-container .empty-state h3 { color: var(--text); font-size: 1.8rem; margin: 0 0 .6rem; }
.messages-container .empty-state p  { color: var(--text-muted); font-size: 1.4rem; margin: 0; }

@media (max-width: 768px) {
  .messages-container .messages-layout { grid-template-columns: 1fr; }
  .messages-container .messages-sidebar { flex-direction: row; overflow-x: auto; padding: 1rem; gap: .6rem; }
  .messages-container .sidebar-item { flex-shrink: 0; padding: .9rem 1.2rem; }
  .messages-container .messages-header { flex-direction: column; align-items: stretch; }
  .messages-container .messages-header h2 { font-size: 1.7rem; }
}

/* =====================================================
   VIEW FEE STRUCTURE  (.fee-details-container)
   ===================================================== */
.fee-details-container .header-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  padding: 2.8rem 3rem;
  border-radius: var(--pp-radius-xl);
  margin-bottom: 2rem;
  box-shadow: var(--shadow-green-lg);
  position: relative;
  overflow: hidden;
}
.fee-details-container .header-banner::after {
  content: '';
  position: absolute;
  top: -4rem; right: -4rem;
  width: 14rem; height: 14rem;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
}
.fee-details-container .header-title {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 800;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}
.fee-details-container .header-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.6rem;
  font-size: 1.4rem;
  color: rgba(255,255,255,.92);
  position: relative;
  z-index: 1;
}
.fee-details-container .header-meta span { display: inline-flex; align-items: center; gap: .4rem; }

.fee-details-container .action-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.fee-details-container .stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  gap: 1.4rem;
  margin-bottom: 2.2rem;
}
.fee-details-container .stat-card {
  background: var(--white);
  border-radius: var(--pp-radius-lg);
  padding: 1.8rem 2rem;
  box-shadow: var(--pp-shadow-sm);
  border: 1px solid var(--border-light);
  text-align: center;
  transition: all var(--pp-transition);
}
.fee-details-container .stat-card:hover { box-shadow: var(--pp-shadow-md); transform: translateY(-2px); }
.fee-details-container .stat-card .stat-number {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: .4rem;
  line-height: 1.1;
}
.fee-details-container .stat-card .stat-label {
  font-size: 1.3rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.fee-details-container .fee-breakdown-grid {
  display: flex;
  flex-direction: column;
  gap: .8rem;
}
.fee-details-container .breakdown-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.2rem;
  padding: 1.2rem 1.4rem;
  background: var(--bg-alt);
  border: 1px solid var(--border-light);
  border-radius: var(--pp-radius-md);
  transition: all var(--pp-transition);
}
.fee-details-container .breakdown-item:hover { border-color: var(--green-200); background: var(--green-50); }
.fee-details-container .breakdown-item.total-row {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
  margin-top: 1rem;
}
.fee-details-container .breakdown-item.total-row .breakdown-item-name { color: var(--white); font-weight: 800; }
.fee-details-container .breakdown-item.total-row .breakdown-item-amount { color: var(--white); }
.fee-details-container .breakdown-item-name {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text);
}
.fee-details-container .breakdown-item-desc {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-top: .2rem;
}
.fee-details-container .breakdown-item-amount {
  font-family: var(--font-heading);
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--primary);
  white-space: nowrap;
}

.fee-details-container .student-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.4rem;
  margin-top: 1rem;
}
.fee-details-container .student-table th {
  background: var(--primary);
  color: var(--white);
  padding: 1.2rem 1.4rem;
  text-align: left;
  font-weight: 700;
  font-size: 1.3rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.fee-details-container .student-table td {
  padding: 1.2rem 1.4rem;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-secondary);
  vertical-align: middle;
}
.fee-details-container .student-table tr:last-child td { border-bottom: none; }
.fee-details-container .student-table tr:hover td { background: var(--green-50); }
.fee-details-container .student-photo {
  width: 4.2rem;
  height: 4.2rem;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 1rem;
  vertical-align: middle;
  border: 2px solid var(--white);
  box-shadow: var(--shadow-xs);
}

.fee-details-container .empty-state { text-align: center; padding: 4rem 2rem; color: var(--text-muted); font-size: 1.4rem; }
.fee-details-container .empty-state p  { color: var(--text-muted); margin: 0; }

@media (max-width: 600px) {
  .fee-details-container .header-banner { padding: 2rem 1.6rem; }
  .fee-details-container .header-title  { font-size: 1.9rem; }
  .fee-details-container .breakdown-item { flex-direction: column; align-items: flex-start; }
  .fee-details-container .student-table  { font-size: 1.2rem; }
  .fee-details-container .student-table th,
  .fee-details-container .student-table td { padding: .8rem .6rem; }
}

/* =====================================================
   STUDENT FILES — HARMONIZED LEGACY STYLES
   Targets the actual class names still used in:
     student_take_exam.php, student_practice_exam.php,
     student_play_game.php, student_view_assignments.php,
     student_study_flashcards.php, student_view_attendance.php,
     student_game_leaderboard.php, student_game_result.php,
     student_practice_result.php, student_wallet_history.php,
     student_library.php
   Plus global utility classes reused across them.
   ===================================================== */

/* ── GLOBAL UTILITIES ────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--r-md);
  font-size: 1.4rem;
  font-weight: 700;
  font-family: var(--font-body);
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--t-base);
  line-height: 1.2;
  box-shadow: var(--shadow-xs);
}
.btn:hover  { text-decoration: none; transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn:active { transform: translateY(0); }
.btn:disabled, .btn[disabled] { opacity: .55; cursor: not-allowed; transform: none !important; }
.btn-primary   { background: var(--primary);        color: var(--white); border-color: var(--primary); }
.btn-primary:hover  { background: var(--primary-dark); color: var(--white); }
.btn-success   { background: var(--portal-success, var(--green-500)); color: var(--white); border-color: var(--green-500); }
.btn-success:hover  { background: var(--green-600);            color: var(--white); }
.btn-info      { background: var(--primary);               color: var(--white); border-color: var(--primary); }
.btn-info:hover     { background: var(--primary-dark);            color: var(--white); }
.btn-secondary { background: var(--gray-100);       color: var(--text); border-color: var(--border); }
.btn-secondary:hover{ background: var(--gray-200);   color: var(--text); border-color: var(--gray-300); }
.btn-danger    { background: #ef4444;               color: var(--white); border-color: #ef4444; }
.btn-danger:hover   { background: #dc2626;            color: var(--white); }
.btn-sm        { padding: 6px 12px; font-size: 1.25rem; border-radius: var(--r-sm); }
.btn-sm.btn-orange { background: var(--accent); color: var(--white); border-color: var(--accent); }
.btn-sm.btn-orange:hover { background: var(--accent-dark); color: var(--white); }

.alert {
  padding: 14px 18px;
  border-radius: var(--r-md);
  margin-bottom: 18px;
  font-size: 1.4rem;
  font-weight: 600;
  border: 1px solid transparent;
  display: flex; align-items: center; gap: 10px;
}
.alert-success { background: var(--green-tint-300); color: var(--green-ink); border-color: var(--green-tint-400); }
.alert-error,
.alert-danger  { background: #f8d7da; color: #721c24; border-color: #f5c6cb; }
.alert-info    { background: var(--primary-mist); color: var(--green-800); border-color: var(--primary-mist); border-left: 4px solid var(--primary); border-radius: 8px; }
.alert-warning { background: var(--amber-100); color: var(--amber-700); border-color: var(--amber-100); }

.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.form-control,
.form-group input[type="text"],
.form-group input[type="date"],
.form-group input[type="number"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group textarea,
.form-group select,
.filter-section select,
.sh-filters input[type="date"],
.sh-filters select {
  width: 100%;
  padding: 11px 14px;
  border: 2px solid var(--border);
  border-radius: var(--r-sm);
  font-size: 1.4rem;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  transition: border-color var(--t-base), box-shadow var(--t-base);
}
.form-control:focus,
.filter-section select:focus,
.sh-filters select:focus,
.sh-filters input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}
.form-group textarea { min-height: 120px; resize: vertical; }

.header-card {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  padding: 28px 32px;
  border-radius: var(--r-lg);
  margin-bottom: 24px;
  box-shadow: var(--shadow-green);
  position: relative;
  overflow: hidden;
}
.header-card::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 90% 20%, rgba(255,255,255,.15) 0%, transparent 50%);
  pointer-events: none;
}
.header-card .header-title,
.header-card .header-subtitle,
.header-card > div { position: relative; z-index: 1; }
.header-card .header-title {
  font-size: 2.4rem;
  font-weight: 800;
  margin: 0 0 6px;
  color: var(--white);
}
.header-card .header-subtitle {
  font-size: 1.4rem;
  opacity: .9;
  margin: 0;
}

.card {
  background: var(--white);
  border-radius: var(--r-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  margin-bottom: 24px;
}
.card h3 { font-size: 1.8rem; font-weight: 800; margin: 0 0 10px; color: var(--text); }

.breadcrumb {
  display: flex; align-items: center; gap: 8px; list-style: none; padding: 0; margin: 0;
  font-size: 1.3rem;
}
.breadcrumb li { display: inline-flex; align-items: center; gap: 6px; }
.breadcrumb li + li::before { content: '/'; color: var(--gray-400); margin: 0 4px; }
.breadcrumb a { color: var(--gray-700); text-decoration: none; transition: color var(--t-base); }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb li:last-child a { color: var(--gold); font-weight: 700; }

.tabs {
  display: flex; gap: 4px; margin-bottom: 20px;
  background: var(--white); padding: 6px; border-radius: var(--r-md);
  box-shadow: var(--shadow-sm); border: 1px solid var(--border-light);
  width: max-content; max-width: 100%;
}
.tab {
  padding: 10px 20px;
  border-radius: var(--r-sm);
  font-size: 1.4rem; font-weight: 700;
  color: var(--text-muted);
  cursor: pointer; user-select: none;
  transition: all var(--t-base);
}
.tab:hover { background: var(--gray-50); color: var(--text); }
.tab.active {
  background: var(--primary); color: var(--white);
  box-shadow: 0 2px 8px var(--primary-glow);
}

.meta-badge {
  display: inline-block;
  padding: 3px 10px;
  background: var(--primary-soft);
  color: var(--primary-dark);
  border-radius: var(--r-full);
  font-size: 1.2rem; font-weight: 700;
  margin-right: 4px; margin-bottom: 4px;
}
.filter-tag {
  display: inline-block;
  padding: 4px 12px;
  background: var(--primary); color: var(--white);
  border-radius: var(--r-full);
  font-size: 1.2rem; font-weight: 600;
  margin-left: 8px; margin-top: 4px;
}

.modal {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,.6);
  z-index: 9999;
  align-items: center; justify-content: center;
  padding: 20px;
  animation: modalFadeIn .2s ease;
}
@keyframes modalFadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal-content {
  background: var(--white);
  border-radius: var(--r-lg);
  max-width: 720px; width: 100%;
  max-height: 90vh; overflow-y: auto;
  box-shadow: var(--shadow-xl);
  padding: 28px;
  position: relative;
  animation: modalSlideUp .3s ease;
}
@keyframes modalSlideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--border-light);
  margin-bottom: 20px;
}
.modal-header h3 { margin: 0; font-size: 1.8rem; font-weight: 800; color: var(--text); }
.close {
  font-size: 2.4rem; line-height: 1;
  color: var(--text-muted); cursor: pointer;
  background: none; border: none;
  transition: color var(--t-base);
}
.close:hover { color: var(--text); }

.back-button {
  margin: 24px auto; text-align: center;
}
.back-button .btn { background: var(--gray-100); color: var(--text); border: 1px solid var(--border); }
.back-button .btn:hover { background: var(--gray-200); }

/* ── student_take_exam.php / .ste-page ───────────── */
.ste-page, .spe-page {
  --ste-primary: var(--green-800);
  --ste-danger:  #ef4444;
  --ste-warning: var(--amber-500);
  --ste-success: var(--green-500);
  --ste-text:    var(--gray-900);
  --ste-muted:   var(--gray-600);
  --ste-border:  var(--gray-200);
  --ste-shadow:  0 2px 6px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  background: var(--bg);
  font-family: var(--font-body);
  min-height: 60vh;
  padding: 32px 0 60px;
}
.ste-page .container, .spe-page .container { max-width: 1100px; margin: 0 auto; padding: 0 15px; }
.ste-page .exam-container, .spe-page .exam-container {
  background: var(--white); border-radius: var(--r-lg);
  box-shadow: 0 4px 18px rgba(0,0,0,.08);
  padding: 0; overflow: hidden;
}
.ste-page .exam-header, .spe-page .exam-header {
  background: linear-gradient(135deg, var(--ste-primary) 0%, var(--green-900) 100%);
  color: var(--white); padding: 26px 30px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 20px;
}
.ste-page .exam-title, .spe-page .exam-title {
  font-size: 2.2rem; font-weight: 800; margin: 0 0 6px; color: var(--white);
}
.ste-page .exam-info, .spe-page .exam-info {
  display: flex; flex-wrap: wrap; gap: 18px;
  font-size: 1.3rem; opacity: .9;
}
.ste-page .exam-body, .spe-page .exam-body { padding: 30px; }

.ste-page .timer-section, .spe-page .timer-section {
  background: rgba(0,0,0,.18);
  padding: 16px 22px;
  border-radius: var(--r-md);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  min-width: 180px;
}
.ste-page .timer-label {
  font-size: 1.1rem; font-weight: 800; letter-spacing: 0.1em; opacity: .85;
  text-transform: uppercase;
}
.ste-page .timer-circle-container, .spe-page .timer-circle-container {
  position: relative; width: 130px; height: 130px;
  display: flex; align-items: center; justify-content: center;
}
.ste-page .timer-circle, .spe-page .timer-circle { transform: rotate(-90deg); }
.ste-page .timer-circle-bg, .spe-page .timer-circle-bg {
  fill: none; stroke: rgba(255,255,255,.18); stroke-width: 8;
}
.ste-page .timer-circle-progress, .spe-page .timer-circle-progress {
  fill: none; stroke: var(--ste-success); stroke-width: 8;
  stroke-linecap: round;
  transition: stroke-dashoffset 1s linear, stroke .3s ease;
}
.ste-page .timer-circle-container.timer-danger .timer-circle-progress { stroke: var(--ste-danger); }
.ste-page .timer-text, .spe-page .timer-text {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: var(--white); font-weight: 800;
}
.ste-page #time-display-circle, .spe-page #time-display-circle,
.ste-page .timer-display, .spe-page .timer-display {
  font-size: 2rem; font-family: 'Courier New', monospace; line-height: 1;
}
.ste-page .timer-label-text, .spe-page .timer-lbl-sm {
  font-size: 1rem; opacity: .75; text-transform: uppercase; letter-spacing: 0.1em; margin-top: 4px;
}

.ste-page .warning-box, .spe-page .warning-box {
  display: flex; align-items: center; gap: 14px;
  background: var(--amber-100); border: 1px solid var(--amber-200); border-left: 4px solid var(--ste-warning);
  padding: 14px 18px; border-radius: var(--r-md);
  color: var(--amber-700); font-size: 1.4rem; margin-bottom: 18px;
}
.ste-page .warning-box strong, .spe-page .warning-box strong { color: #5a3f00; }

.ste-page .progress-bar, .spe-page .progress-bar {
  width: 100%; height: 28px;
  background: var(--gray-100); border-radius: var(--r-full);
  overflow: hidden; margin-bottom: 18px;
  box-shadow: inset 0 1px 3px rgba(0,0,0,.06);
}
.ste-page .progress-fill, .spe-page .progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--ste-primary) 0%, var(--green-600) 100%);
  color: var(--white); font-size: 1.2rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  transition: width .3s ease;
  white-space: nowrap;
}

.ste-page .question-status-legend, .spe-page .question-status-legend {
  display: flex; flex-wrap: wrap; gap: 18px; margin-bottom: 18px;
  padding: 12px 18px; background: var(--gray-50);
  border-radius: var(--r-md);
}
.ste-page .legend-item, .spe-page .legend-item {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 1.3rem; color: var(--text-secondary);
}
.ste-page .legend-box, .spe-page .legend-box {
  width: 18px; height: 18px; border-radius: 4px;
  background: var(--white); border: 2px solid var(--gray-300);
}
.ste-page .legend-box.answered, .spe-page .legend-box.answered { background: var(--green-500); border-color: var(--green-600); }
.ste-page .legend-box.current,  .spe-page .legend-box.current  { background: var(--amber-500); border-color: var(--amber-600); box-shadow: 0 0 0 3px rgba(245,158,11,.25); }

.ste-page .pagination, .spe-page .pagination {
  display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 28px;
  padding: 12px; background: var(--white); border-radius: var(--r-md);
  box-shadow: var(--ste-shadow);
}
.ste-page .page-btn, .spe-page .page-btn {
  min-width: 40px; height: 40px;
  padding: 0 10px;
  background: var(--white); color: var(--text);
  border: 2px solid var(--border); border-radius: var(--r-sm);
  font-size: 1.3rem; font-weight: 700;
  cursor: pointer; transition: all var(--t-base);
  font-family: var(--font-body);
}
.ste-page .page-btn:hover, .spe-page .page-btn:hover { background: var(--primary-soft); border-color: var(--primary); color: var(--primary-dark); }
.ste-page .page-btn.active, .spe-page .page-btn.active {
  background: var(--primary); color: var(--white); border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}
.ste-page .page-btn.answered, .spe-page .page-btn.answered {
  background: var(--green-100); border-color: var(--green-500); color: var(--green-800);
}
.ste-page .page-btn.answered.active, .spe-page .page-btn.answered.active {
  background: var(--amber-500); border-color: var(--amber-600); color: var(--white);
}

.ste-page .question-card, .spe-page .question-card {
  background: var(--white);
  border: 2px solid var(--border); border-radius: var(--r-md);
  padding: 24px 26px; margin-bottom: 20px;
  display: none;
  box-shadow: var(--ste-shadow);
  transition: border-color .2s ease;
}
.ste-page .question-card.active, .spe-page .question-card.active { display: block; border-color: var(--primary); }
.ste-page .question-number, .spe-page .question-number {
  display: inline-block;
  background: var(--primary-soft); color: var(--primary-dark);
  padding: 4px 14px; border-radius: var(--r-full);
  font-size: 1.2rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em;
  margin-bottom: 14px;
}
.ste-page .question-text, .spe-page .question-text {
  font-size: 1.6rem; font-weight: 600; color: var(--text);
  line-height: 1.6; margin-bottom: 18px;
}
.ste-page .question-image, .spe-page .question-image {
  max-width: 100%; height: auto; border-radius: var(--r-sm);
  margin: 12px 0; display: block;
  box-shadow: var(--shadow-sm);
}

.ste-page .options-container, .spe-page .options-container {
  display: flex; flex-direction: column; gap: 10px;
}
.ste-page .option,
.ste-page .option-button,
.spe-page .option {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 18px;
  background: var(--white);
  border: 2px solid var(--border); border-radius: var(--r-md);
  cursor: pointer; transition: all var(--t-base);
  font-size: 1.4rem; line-height: 1.5;
  color: var(--text);
}
.ste-page .option:hover, .ste-page .option-button:hover,
.spe-page .option:hover {
  background: var(--primary-soft); border-color: var(--primary);
}
.ste-page .option.selected, .ste-page .option-button.selected,
.spe-page .option.selected {
  background: var(--primary-soft); border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
  color: var(--primary-dark); font-weight: 600;
}
.ste-page .option input[type="radio"], .ste-page .option-button input[type="radio"],
.spe-page .option input[type="radio"] {
  margin-top: 4px; accent-color: var(--primary);
  width: 18px; height: 18px; flex-shrink: 0;
}
.ste-page .option-content, .spe-page .option-content {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px; flex: 1;
}
.ste-page .option-label, .spe-page .option-label {
  width: 28px; height: 28px;
  background: var(--gray-100); color: var(--text-muted);
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.2rem; font-weight: 800; flex-shrink: 0;
}
.ste-page .option.selected .option-label, .spe-page .option.selected .option-label {
  background: var(--primary); color: var(--white);
}
.ste-page .option-image, .spe-page .option-image {
  max-width: 160px; max-height: 100px;
  border-radius: var(--r-xs);
  margin-top: 6px;
}

.ste-page .answer-input, .spe-page .answer-input {
  width: 100%; padding: 12px 16px;
  border: 2px solid var(--border); border-radius: var(--r-sm);
  font-size: 1.5rem; font-family: var(--font-body);
  transition: border-color var(--t-base);
}
.ste-page .answer-input:focus, .spe-page .answer-input:focus { outline: none; border-color: var(--primary); }

.ste-page .navigation-section, .spe-page .navigation-section {
  margin: 24px 0; padding: 20px;
  background: var(--white); border-radius: var(--r-md);
  box-shadow: var(--ste-shadow);
}
.ste-page .nav-buttons, .spe-page .nav-buttons {
  display: flex; gap: 12px; justify-content: space-between;
}
.ste-page .submit-section, .spe-page .submit-section {
  text-align: center; margin-top: 20px; padding: 20px;
  background: var(--white); border-radius: var(--r-md);
  box-shadow: var(--ste-shadow);
}

.ste-page .auto-save-indicator, .spe-page .auto-save-indicator {
  position: fixed; bottom: 24px; right: 24px;
  background: var(--ste-success); color: var(--white);
  padding: 12px 20px; border-radius: var(--r-full);
  font-size: 1.3rem; font-weight: 700;
  box-shadow: 0 4px 16px rgba(16,185,129,.4);
  display: none; z-index: 1000;
  animation: steSlideUp .3s ease;
}
@keyframes steSlideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* Submit modal (practice exam) */
.spe-page .submit-modal {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.6); z-index: 9999;
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.spe-page .submit-modal.open { display: flex; }
.spe-page .submit-modal-inner {
  background: var(--white); border-radius: var(--r-lg);
  max-width: 480px; width: 100%; padding: 32px;
  box-shadow: var(--shadow-xl);
  animation: modalSlideUp .3s ease;
}
.spe-page .submit-modal-inner h3 { margin: 0 0 10px; font-size: 1.8rem; color: var(--text); }
.spe-page .submit-modal-inner > p { color: var(--text-muted); font-size: 1.4rem; margin: 0 0 20px; }
.spe-page .sm-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 20px;
  background: var(--gray-50); padding: 16px; border-radius: var(--r-md);
}
.spe-page .sm-stats > div { text-align: center; }
.spe-page .sm-stat-val { display: block; font-size: 2rem; font-weight: 800; color: var(--text); line-height: 1; }
.spe-page .sm-stat-lbl { display: block; font-size: 1.1rem; color: var(--text-muted); text-transform: uppercase; font-weight: 700; letter-spacing: 0.05em; margin-top: 4px; }
.spe-page .sm-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.spe-page .sm-btns .btn { flex: 1; min-width: 140px; }

@media (max-width: 768px) {
  .ste-page .exam-header, .spe-page .exam-header { flex-direction: column; align-items: flex-start; }
  .ste-page .timer-section, .spe-page .timer-section { width: 100%; }
  .ste-page .exam-title, .spe-page .exam-title { font-size: 1.8rem; }
  .ste-page .exam-body, .spe-page .exam-body { padding: 18px; }
}

/* ── student_play_game.php / .spg-page ───────────── */
.spg-page {
  --spg-primary: var(--primary);
  background: var(--bg);
  font-family: var(--font-body);
  padding: 32px 0 60px;
  min-height: 60vh;
}
.spg-page .container { max-width: 900px; margin: 0 auto; padding: 0 15px; }
.spg-page .game-container {
  background: var(--white); border-radius: var(--r-lg);
  box-shadow: 0 4px 18px rgba(0,0,0,.08);
  overflow: hidden;
}
.spg-page .game-header {
  background: linear-gradient(135deg, var(--spg-primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  padding: 24px 30px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
}
.spg-page .game-title {
  font-size: 2.2rem; font-weight: 800; color: var(--white); margin: 0;
}
.spg-page .timer {
  background: rgba(0,0,0,.2); color: var(--white);
  padding: 10px 20px; border-radius: var(--r-full);
  font-size: 1.6rem; font-weight: 800;
  font-family: 'Courier New', monospace;
  transition: background .3s ease;
}
.spg-page .timer.warning { background: var(--ste-danger); animation: spgPulse 1s infinite; }
@keyframes spgPulse { 0%,100% { opacity: 1; } 50% { opacity: .7; } }

.spg-page .game-body { padding: 30px; }

.spg-page .question-card {
  background: var(--white); border: 2px solid var(--border); border-radius: var(--r-md);
  padding: 24px 26px; margin-bottom: 18px;
  box-shadow: var(--ste-shadow);
}
.spg-page .question-number {
  display: inline-block; background: var(--primary-mist); color: var(--primary-dark);
  padding: 4px 14px; border-radius: var(--r-full);
  font-size: 1.2rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em;
  margin-bottom: 12px;
}
.spg-page .question-text {
  font-size: 1.6rem; font-weight: 600; color: var(--text);
  line-height: 1.6; margin-bottom: 16px;
}
.spg-page .options-container { display: flex; flex-direction: column; gap: 10px; }
.spg-page .option-button {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px; background: var(--gray-50);
  border: 2px solid var(--border); border-radius: var(--r-md);
  cursor: pointer; font-size: 1.4rem; color: var(--text);
  transition: all var(--t-base);
}
.spg-page .option-button:hover { background: var(--primary-mist); border-color: var(--spg-primary); }
.spg-page .option-button.selected { background: var(--primary-mist); border-color: var(--spg-primary); box-shadow: 0 0 0 3px rgba(37,99,235,.15); }
.spg-page .option-button input[type="radio"] { accent-color: var(--spg-primary); width: 18px; height: 18px; }
.spg-page .submit-button {
  width: 100%; margin-top: 20px;
  background: linear-gradient(135deg, var(--spg-primary) 0%, var(--primary-dark) 100%);
  color: var(--white); border: none; padding: 16px 32px;
  border-radius: var(--r-md); font-size: 1.6rem; font-weight: 800;
  cursor: pointer; transition: all var(--t-base);
  box-shadow: 0 4px 14px rgba(37,99,235,.3);
}
.spg-page .submit-button:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(37,99,235,.4); }

/* ── .spg-page extras (warning-box, progress, answer-input) ─ */
.spg-page .warning-box {
  display: flex; align-items: center; gap: 14px;
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border: 1px solid #fcd34d; border-left: 5px solid var(--ste-warning);
  padding: 14px 18px; border-radius: var(--r-md);
  color: #92400e; font-size: 1.4rem; margin-bottom: 20px;
  box-shadow: 0 2px 6px rgba(245,158,11,.15);
}
.spg-page .warning-box strong { color: #78350f; }

.spg-page .progress-bar {
  width: 100%; height: 30px;
  background: var(--gray-100); border-radius: var(--r-full);
  overflow: hidden; margin-bottom: 22px;
  box-shadow: inset 0 2px 4px rgba(0,0,0,.08);
  border: 1px solid var(--border);
}
.spg-page .progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--spg-primary) 0%, var(--green-500) 100%);
  color: var(--white); font-size: 1.2rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  transition: width .4s ease;
  white-space: nowrap;
  text-shadow: 0 1px 1px rgba(0,0,0,.2);
}

.spg-page .answer-input {
  width: 100%; padding: 14px 18px;
  border: 2px solid var(--border); border-radius: var(--r-md);
  font-size: 1.5rem; font-family: var(--font-body);
  transition: all var(--t-base);
  background: var(--gray-50);
}
.spg-page .answer-input:focus {
  outline: none; border-color: var(--spg-primary);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(37,99,235,.12);
}

.spg-page .game-header .timer-label {
  display: block; font-size: 1rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .12em;
  opacity: .85; margin-bottom: 2px;
}

/* ── .spg-page responsive ─ */
@media (max-width: 600px) {
  .spg-page .game-container { border-radius: var(--r-md); }
  .spg-page .game-header { padding: 18px 16px; flex-direction: column; align-items: flex-start; gap: 12px; }
  .spg-page .game-title { font-size: 1.7rem; }
  .spg-page .timer { font-size: 1.4rem; padding: 8px 16px; }
  .spg-page .game-body { padding: 18px 14px; }
  .spg-page .question-card { padding: 18px 16px; }
  .spg-page .question-text { font-size: 1.4rem; }
  .spg-page .option-button { font-size: 1.3rem; padding: 12px 14px; gap: 10px; }
  .spg-page .option-button input[type="radio"] { width: 16px; height: 16px; }
  .spg-page .submit-button { font-size: 1.4rem; padding: 14px 20px; }
  .spg-page .warning-box { font-size: 1.25rem; padding: 12px 14px; gap: 10px; }
  .spg-page .answer-input { font-size: 1.3rem; padding: 12px 14px; }
}
@media print {
  .spg-page .timer,
  .spg-page .submit-button,
  .spg-page .option-button { display: none !important; }
}

/* ── student_study_flashcards.php / .ssf-page ─────── */
.ssf-page {
  background: var(--bg);
  font-family: var(--font-body);
  padding: 32px 0 60px;
}
.ssf-page .container { max-width: 1200px; margin: 0 auto; padding: 0 15px; }
.ssf-page .flashcard-container { max-width: 1100px; margin: 0 auto; }
.ssf-page .subject-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 18px; margin-top: 20px;
}
.ssf-page .subject-card {
  background: var(--white); border: 2px solid var(--border-light); border-radius: var(--r-md);
  padding: 24px 18px; text-align: center;
  text-decoration: none; color: var(--text);
  transition: all var(--t-base);
  box-shadow: var(--shadow-sm);
}
.ssf-page .subject-card:hover {
  transform: translateY(-4px); box-shadow: var(--shadow-md);
  border-color: var(--primary); color: var(--text); text-decoration: none;
}
.ssf-page .subject-icon {
  font-size: 3.6rem; margin-bottom: 10px;
  display: block; line-height: 1;
}
.ssf-page .subject-name { font-size: 1.5rem; font-weight: 800; margin-bottom: 6px; color: var(--text); }
.ssf-page .subject-stats { font-size: 1.2rem; color: var(--text-muted); line-height: 1.5; }
.ssf-page .progress-section {
  margin-top: 32px; padding: 24px; background: var(--white);
  border-radius: var(--r-md); box-shadow: var(--shadow-sm);
}
.ssf-page .progress-title {
  font-size: 1.6rem; font-weight: 800; color: var(--text);
  margin-bottom: 16px; display: flex; align-items: center; gap: 8px;
}
.ssf-page .stats-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
}
.ssf-page .stat-box {
  text-align: center; padding: 18px 12px;
  background: var(--primary-soft); border-radius: var(--r-sm);
  border-top: 3px solid var(--primary);
}
.ssf-page .stat-number {
  font-size: 2.4rem; font-weight: 800; color: var(--primary-dark);
  line-height: 1; margin-bottom: 6px;
}
.ssf-page .stat-label {
  font-size: 1.2rem; color: var(--text-muted); font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.04em;
}

/* ── student_view_attendance.php / .sva-page ──────── */
.sva-page {
  background: var(--bg);
  font-family: var(--font-body);
  padding: 32px 0 60px;
}
.sva-page .container { max-width: 1100px; margin: 0 auto; padding: 0 15px; }
.sva-page .sva-wrap, .sva-page .attendance-container { max-width: 1000px; margin: 0 auto; }
.sva-page .attendance-card {
  background: var(--white); border-radius: var(--r-lg);
  padding: 30px; box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}
.sva-page .attendance-card h3 { font-size: 1.8rem; font-weight: 800; margin: 0 0 16px; color: var(--text); }
.sva-page .month-selector {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 24px; flex-wrap: wrap; gap: 14px;
  padding: 16px; background: var(--gray-50); border-radius: var(--r-md);
}
.sva-page .month-selector select {
  padding: 8px 12px; border: 2px solid var(--border); border-radius: var(--r-sm);
  font-size: 1.3rem; background: var(--white); min-width: 140px;
}
.sva-page .month-selector .btn { padding: 8px 18px; font-size: 1.3rem; }

.sva-page .stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 14px; margin-bottom: 28px;
}
.sva-page .stat-card {
  background: var(--white); border-radius: var(--r-md);
  padding: 20px 16px; text-align: center;
  box-shadow: var(--shadow-sm); border-top: 3px solid var(--primary);
  border: 1px solid var(--border-light);
}
.sva-page .stat-card.present    { border-top-color: var(--ste-success); }
.sva-page .stat-card.absent     { border-top-color: var(--ste-danger); }
.sva-page .stat-card.late       { border-top-color: var(--ste-warning); }
.sva-page .stat-card.percentage { border-top-color: var(--spg-primary); }
.sva-page .stat-number { font-size: 2.6rem; font-weight: 800; color: var(--text); line-height: 1; margin-bottom: 6px; }
.sva-page .stat-card.present    .stat-number { color: var(--ste-success); }
.sva-page .stat-card.absent     .stat-number { color: var(--ste-danger); }
.sva-page .stat-card.late       .stat-number { color: var(--ste-warning); }
.sva-page .stat-card.percentage .stat-number { color: var(--spg-primary); }
.sva-page .stat-label { font-size: 1.2rem; color: var(--text-muted); font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }

.sva-page .calendar {
  width: 100%; border-collapse: separate; border-spacing: 4px;
  margin-bottom: 18px;
}
.sva-page .calendar th {
  padding: 10px; background: var(--primary); color: var(--white);
  font-size: 1.2rem; font-weight: 800; text-align: center;
  border-radius: var(--r-xs);
  text-transform: uppercase; letter-spacing: 0.05em;
}
.sva-page .calendar td {
  background: var(--white); border: 1px solid var(--border-light);
  border-radius: var(--r-sm);
  padding: 8px; vertical-align: top;
  height: 80px; min-width: 80px;
  transition: all var(--t-base);
}
.sva-page .calendar td.empty { background: transparent; border: none; }
.sva-page .calendar td.today {
  border: 2px solid var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}
.sva-page .calendar .day-number {
  font-size: 1.3rem; font-weight: 800; color: var(--text);
  margin-bottom: 4px;
}
.sva-page .calendar .day-status {
  font-size: 1.1rem; font-weight: 700; padding: 2px 6px;
  border-radius: var(--r-xs); text-align: center;
}
.sva-page .calendar .day-status.status-present { background: var(--green-100); color: var(--green-800); }
.sva-page .calendar .day-status.status-absent  { background: #fee2e2; color: #991b1b; }
.sva-page .calendar .day-status.status-late    { background: var(--amber-100); color: var(--amber-700); }
.sva-page .calendar .day-status.status-excused { background: var(--primary-mist); color: var(--primary-deeper); }

.sva-page .legend {
  display: flex; flex-wrap: wrap; gap: 16px; margin-top: 16px;
  padding: 12px 16px; background: var(--gray-50); border-radius: var(--r-md);
}
.sva-page .legend-item { display: inline-flex; align-items: center; gap: 8px; font-size: 1.3rem; color: var(--text-secondary); }
.sva-page .legend-color { width: 16px; height: 16px; border-radius: 3px; }
.sva-page .legend-color.status-present { background: var(--green-500); }
.sva-page .legend-color.status-absent  { background: #ef4444; }
.sva-page .legend-color.status-late    { background: var(--amber-500); }
.sva-page .legend-color.status-excused { background: var(--primary); }

.sva-page .no-data {
  text-align: center; padding: 40px 20px; color: var(--text-muted);
  background: var(--gray-50); border-radius: var(--r-md);
}
.sva-page .no-data h3 { font-size: 1.6rem; color: var(--text); margin: 12px 0 6px; }

@media (max-width: 768px) {
  .sva-page .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .sva-page .calendar td { min-width: 60px; height: 60px; padding: 4px; }
}

/* ── student_view_assignments.php (no page-scope) ── */
.assignment-container { max-width: 1100px; margin: 0 auto; padding: 30px 15px 60px; }
.assignment-container .form-group { position: relative; }
.assignment-card {
  background: var(--white); border-radius: var(--r-md);
  padding: 24px 28px; margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  border-left: 4px solid var(--primary);
  transition: all var(--t-base);
}
.assignment-card:hover { box-shadow: var(--shadow-md); }
.assignment-card.submitted { border-left-color: var(--ste-success); }
.assignment-card.overdue   { border-left-color: var(--ste-danger); }
.assignment-card.pending   { border-left-color: var(--ste-warning); }
.assignment-header {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; flex-wrap: wrap; margin-bottom: 12px;
}
.assignment-title {
  font-size: 1.7rem; font-weight: 800; color: var(--text); flex: 1; min-width: 200px;
}
.assignment-meta {
  display: flex; flex-wrap: wrap; gap: 14px;
  font-size: 1.25rem; color: var(--text-muted);
  margin-bottom: 14px;
}
.assignment-meta span { display: inline-flex; align-items: center; gap: 4px; }
.assignment-description {
  background: var(--gray-50); padding: 14px 16px;
  border-radius: var(--r-sm); font-size: 1.35rem;
  color: var(--text-secondary); line-height: 1.6;
  margin-bottom: 14px;
}
.due-info {
  font-size: 1.3rem; font-weight: 700; color: var(--text-muted);
  margin-bottom: 14px; padding: 8px 12px; background: var(--gray-50);
  border-radius: var(--r-sm);
}
.due-info.overdue { color: var(--ste-danger); background: #fee2e2; }
.status-badge {
  display: inline-block; padding: 4px 12px;
  border-radius: var(--r-full); font-size: 1.2rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.05em;
}
.status-badge.status-submitted { background: var(--green-100); color: var(--green-800); }
.status-badge.status-late      { background: var(--amber-100); color: var(--amber-700); }
.status-badge.status-pending   { background: var(--primary-mist); color: var(--primary-deeper); }

.submit-section { margin-top: 16px; }
.submitted-info { margin-top: 16px; }
.submitted-work {
  background: var(--gray-50); padding: 14px 16px;
  border-radius: var(--r-sm); margin-bottom: 14px;
  font-size: 1.35rem; color: var(--text);
}
.submission-content { color: var(--text-secondary); line-height: 1.6; }

.grade-section {
  background: #fffbeb; border: 1px solid var(--amber-200);
  border-radius: var(--r-md); padding: 20px; margin: 14px 0;
}
.grade-header {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 16px; padding-bottom: 12px;
  border-bottom: 2px solid var(--amber-200);
}
.grade-header h4 { margin: 0; font-size: 1.5rem; color: var(--text); }
.grade-icon { font-size: 2rem; }
.grade-display-student {
  display: flex; align-items: center; gap: 18px; margin-bottom: 16px;
}
.grade-badge-large {
  width: 72px; height: 72px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.4rem; font-weight: 900; color: var(--white);
  box-shadow: var(--shadow-md);
}
.grade-badge-large.grade-a { background: var(--green-500); }
.grade-badge-large.grade-b { background: var(--primary-light); }
.grade-badge-large.grade-c { background: #16a085; }
.grade-badge-large.grade-d { background: var(--amber-500); }
.grade-badge-large.grade-e { background: #e67e22; }
.grade-badge-large.grade-f,
.grade-badge-large.grade-incomplete { background: #95a5a6; }
.grade-details { flex: 1; }
.grade-label { font-size: 1.2rem; color: var(--text-muted); text-transform: uppercase; font-weight: 700; letter-spacing: 0.05em; }
.graded-date { font-size: 1.2rem; color: var(--text-muted); margin-top: 2px; }
.teacher-feedback {
  background: var(--white); border: 1px solid var(--amber-200);
  border-radius: var(--r-sm); padding: 14px 16px; margin-top: 12px;
}
.feedback-label {
  display: flex; align-items: center; gap: 6px;
  font-size: 1.3rem; color: var(--text); margin-bottom: 8px;
}
.feedback-content { color: var(--text-secondary); line-height: 1.6; }
.grade-meaning { text-align: center; font-weight: 700; margin-top: 12px; }

.awaiting-grade {
  background: var(--gray-100); border-radius: var(--r-md);
  padding: 24px; text-align: center; margin: 14px 0;
}
.awaiting-icon { font-size: 3rem; margin-bottom: 8px; opacity: .6; }
.awaiting-grade h4 { font-size: 1.5rem; color: var(--text); margin: 0 0 6px; }
.awaiting-grade p { color: var(--text-muted); font-size: 1.3rem; margin: 0; }

/* ── student_game_leaderboard.php / .lb-page extras ─ */
.lb-page .my-rank-card {
  background: var(--white); border-radius: var(--r-md); padding: 24px 28px;
  box-shadow: var(--shadow-sm); border: 1px solid var(--border-light);
  margin-bottom: 20px; text-align: center;
}
.lb-page .my-rank-title {
  font-size: 1.5rem; color: var(--text-muted); text-transform: uppercase;
  font-weight: 700; letter-spacing: 0.05em; margin-bottom: 16px;
}
.lb-page .my-rank-display {
  display: flex; justify-content: center; gap: 40px; flex-wrap: wrap;
}
.lb-page .rank-item { text-align: center; }
.lb-page .rank-number { font-size: 3rem; font-weight: 800; color: var(--amber-500); line-height: 1; }
.lb-page .rank-label { font-size: 1.2rem; color: var(--text-muted); margin-top: 4px; text-transform: uppercase; font-weight: 700; letter-spacing: 0.04em; }
.lb-page .leaderboard-item {
  display: flex; align-items: center; gap: 16px;
  padding: 14px 18px; background: var(--white);
  border-radius: var(--r-md); margin-bottom: 8px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-xs);
  transition: all .2s ease;
}
.lb-page .leaderboard-item:hover { transform: translateX(4px); box-shadow: var(--shadow-sm); }
.lb-page .leaderboard-item.top1 { background: linear-gradient(90deg, #ffd700 0%, #ffec99 100%); border-color: #f1c40f; }
.lb-page .leaderboard-item.top2 { background: linear-gradient(90deg, #e8e8e8 0%, var(--gray-100) 100%); border-color: #bdc3c7; }
.lb-page .leaderboard-item.top3 { background: linear-gradient(90deg, #cd7f32 0%, #e6a370 100%); color: var(--white); border-color: #a8590d; }
.lb-page .leaderboard-item.top3 .lb-name,
.lb-page .leaderboard-item.top3 .lb-meta,
.lb-page .leaderboard-item.top3 .lb-score { color: var(--white); }
.lb-page .leaderboard-item.you,
.lb-page .leaderboard-item.me { background: var(--green-tint-300); border: 2px solid var(--green-500); }
.lb-page .rank-badge {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--gray-100); color: var(--text);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; font-weight: 800; flex-shrink: 0;
}
.lb-page .leaderboard-item.top1 .rank-badge { background: var(--white); color: #b8860b; }
.lb-page .leaderboard-item.top2 .rank-badge { background: var(--white); color: var(--gray-600); }
.lb-page .leaderboard-item.top3 .rank-badge { background: rgba(255,255,255,.3); color: var(--white); }
.lb-page .medal { font-size: 1.8rem; }
.lb-page .player-info { flex: 1; min-width: 0; }
.lb-page .player-name { font-size: 1.5rem; font-weight: 700; color: var(--text); }
.lb-page .player-details { font-size: 1.2rem; color: var(--text-muted); margin-top: 2px; }
.lb-page .score-info { text-align: right; flex-shrink: 0; }
.lb-page .score-number { font-size: 2rem; font-weight: 800; color: var(--text); line-height: 1; }
.lb-page .score-label { font-size: 1.1rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; margin-top: 2px; }

/* ── student_game_result.php / .sgr-page extras ───── */
.sgr-page .trophy-icon { font-size: 5rem; text-align: center; margin-bottom: 8px; }
.sgr-page .results-title { font-size: 2.2rem; font-weight: 800; color: var(--text); text-align: center; margin: 0 0 4px; }
.sgr-page .game-name { font-size: 1.4rem; color: var(--text-muted); text-align: center; margin-bottom: 18px; }
.sgr-page .congrats-message {
  text-align: center; font-size: 1.4rem; color: var(--text-secondary);
  background: var(--amber-100); padding: 12px 16px; border-radius: var(--r-sm);
  margin-bottom: 18px;
}
.sgr-page .score-display { text-align: center; margin: 18px 0; }
.sgr-page .score-number { font-size: 4rem; font-weight: 900; color: var(--text); line-height: 1; }
.sgr-page .score-label { font-size: 1.3rem; color: var(--text-muted); text-transform: uppercase; font-weight: 700; letter-spacing: 0.05em; margin-top: 4px; }
.sgr-page .performance-badge {
  display: inline-block; padding: 8px 20px; border-radius: var(--r-full);
  color: var(--white); font-size: 1.4rem; font-weight: 800;
  margin: 0 auto 18px; text-align: center;
}
.sgr-page .rank-display { text-align: center; margin: 14px 0; }
.sgr-page .rank-text { font-size: 1.4rem; color: var(--text); font-weight: 700; }
.sgr-page .action-buttons {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
  margin-top: 24px;
}

/* ── student_practice_result.php / .pr-page extras ── */
.pr-page .pr-wrap { max-width: 1100px; margin: 0 auto; padding: 30px 15px 60px; }
.pr-page .pr-score-card {
  background: var(--white); border-radius: var(--r-lg); padding: 32px;
  box-shadow: var(--shadow-sm); border: 1px solid var(--border-light);
  text-align: center; margin-bottom: 24px;
}
.pr-page .pr-score-ring { position: relative; width: 160px; height: 160px; margin: 0 auto 16px; }
.pr-page .pr-score-ring svg { transform: rotate(-90deg); }
.pr-page .pr-ring-bg { fill: none; stroke: var(--gray-100); stroke-width: 12; }
.pr-page .pr-ring-fg { fill: none; stroke-width: 12; stroke-linecap: round; transition: stroke-dashoffset 1s ease; }
.pr-page .pr-ring-text {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.pr-page .pr-score-pct { font-size: 3rem; font-weight: 900; line-height: 1; }
.pr-page .pr-score-lbl { font-size: 1.1rem; color: var(--text-muted); text-transform: uppercase; font-weight: 700; letter-spacing: 0.05em; margin-top: 4px; }
.pr-page .pr-grade-badge {
  display: inline-block; font-size: 4rem; font-weight: 900;
  line-height: 1; margin-bottom: 8px;
}
.pr-page .pr-info-row { color: var(--text-muted); font-size: 1.3rem; }

.pr-page .pr-stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 14px; margin-bottom: 24px;
}
.pr-page .pr-stat {
  background: var(--white); border-radius: var(--r-md); padding: 18px 12px;
  text-align: center; box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  border-top: 3px solid var(--primary);
}
.pr-page .pr-stat.sc { border-top-color: var(--ste-success); }
.pr-page .pr-stat.si { border-top-color: var(--ste-danger); }
.pr-page .pr-stat.su { border-top-color: var(--ste-warning); }
.pr-page .pr-stat.st { border-top-color: var(--spg-primary); }
.pr-page .pr-stat-val { font-size: 2.4rem; font-weight: 800; line-height: 1; margin-bottom: 4px; }
.pr-page .pr-stat-lbl { font-size: 1.1rem; color: var(--text-muted); text-transform: uppercase; font-weight: 700; letter-spacing: 0.04em; }

.pr-page .pr-action-row {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center;
  margin-bottom: 24px;
}
.pr-page .pr-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 22px; border-radius: var(--r-md);
  font-size: 1.4rem; font-weight: 700; text-decoration: none;
  border: 2px solid transparent; cursor: pointer;
  transition: all var(--t-base); font-family: var(--font-body);
}
.pr-page .pr-btn:hover { transform: translateY(-1px); text-decoration: none; }
.pr-page .pr-btn-bl { background: var(--primary-dark); color: var(--white); }
.pr-page .pr-btn-bl:hover { background: var(--primary-deeper); color: var(--white); }
.pr-page .pr-btn-gr { background: var(--green-500); color: var(--white); }
.pr-page .pr-btn-gr:hover { background: var(--green-600); color: var(--white); }
.pr-page .pr-btn-gy { background: var(--gray-100); color: var(--text); border-color: var(--border); }
.pr-page .pr-btn-gy:hover { background: var(--gray-200); }

.pr-page .pr-filters {
  display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px;
}
.pr-page .pr-filter-btn {
  padding: 8px 18px; background: var(--white); color: var(--text);
  border: 2px solid var(--border); border-radius: var(--r-full);
  font-size: 1.3rem; font-weight: 700; cursor: pointer;
  transition: all var(--t-base); font-family: var(--font-body);
}
.pr-page .pr-filter-btn:hover { background: var(--gray-50); }
.pr-page .pr-filter-btn.active-all,
.pr-page .pr-filter-btn.active-cor,
.pr-page .pr-filter-btn.active-inc,
.pr-page .pr-filter-btn.active-una {
  background: var(--primary); color: var(--white); border-color: var(--primary);
  box-shadow: 0 2px 8px var(--primary-glow);
}

.pr-page .pr-q-card {
  background: var(--white); border-radius: var(--r-md); margin-bottom: 16px;
  box-shadow: var(--shadow-sm); border: 1px solid var(--border-light);
  border-left: 4px solid var(--gray-300);
  overflow: hidden;
}
.pr-page .pr-q-card.correct    { border-left-color: var(--ste-success); }
.pr-page .pr-q-card.incorrect  { border-left-color: var(--ste-danger); }
.pr-page .pr-q-card.unanswered { border-left-color: var(--gray-400); }
.pr-page .pr-q-head {
  padding: 12px 18px; background: var(--gray-50);
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 10px;
  border-bottom: 1px solid var(--border-light);
}
.pr-page .pr-q-num { font-size: 1.3rem; font-weight: 800; color: var(--text); }
.pr-page .pr-q-badge {
  padding: 3px 10px; border-radius: var(--r-full);
  font-size: 1.15rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em;
}
.pr-page .pr-q-badge.bq-c { background: var(--green-100); color: var(--green-800); }
.pr-page .pr-q-badge.bq-i { background: #fee2e2; color: #991b1b; }
.pr-page .pr-q-badge.bq-u { background: var(--gray-100); color: var(--text-muted); }
.pr-page .pr-q-body { padding: 18px; }
.pr-page .pr-qtext { font-size: 1.5rem; font-weight: 600; color: var(--text); line-height: 1.6; margin-bottom: 14px; }
.pr-page .pr-qimg { max-width: 100%; border-radius: var(--r-sm); margin: 10px 0; }
.pr-page .pr-opt-row {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 10px 12px; border-radius: var(--r-sm);
  margin-bottom: 6px; background: var(--gray-50);
}
.pr-page .pr-opt-row.opt-correct { background: var(--green-100); color: var(--green-800); font-weight: 600; }
.pr-page .pr-opt-row.opt-wrong   { background: #fee2e2; color: #991b1b; }
.pr-page .pr-opt-row.opt-chosen  { border: 2px solid var(--primary); }
.pr-page .pr-opt-icon { font-size: 1.2rem; flex-shrink: 0; line-height: 1.6; }
.pr-page .pr-opt-lbl { font-weight: 800; margin-right: 6px; }
.pr-page .pr-opt-img { max-width: 140px; max-height: 80px; border-radius: var(--r-xs); margin-top: 4px; display: block; }
.pr-page .pr-explanation {
  background: #fffbeb; border-left: 3px solid var(--ste-warning);
  padding: 10px 14px; border-radius: var(--r-sm);
  margin-top: 10px; font-size: 1.3rem; color: var(--text); line-height: 1.5;
}
.pr-page .pr-explanation strong { color: var(--amber-700); }

@media (max-width: 768px) {
  .pr-page .pr-stats { grid-template-columns: repeat(2, 1fr); }
}

/* ── student_wallet_history.php / .sh-wrap ────────── */
.sh-wrap { max-width: 1200px; margin: 30px auto; padding: 0 15px 60px; }
.sh-wrap .container { max-width: none; padding: 0; }
.sh-back {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 18px; background: var(--white); color: var(--text-muted);
  border: 1px solid var(--border); border-radius: var(--r-sm);
  font-size: 1.3rem; font-weight: 600; text-decoration: none;
  margin-bottom: 18px; transition: all var(--t-base);
  box-shadow: var(--shadow-xs);
}
.sh-back:hover { color: var(--primary); border-color: var(--primary); text-decoration: none; transform: translateX(-2px); }
.sh-card {
  background: var(--white); border-radius: var(--r-md);
  padding: 28px; box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}
.sh-header-bar {
  display: flex; align-items: center; gap: 16px;
  padding-bottom: 20px; border-bottom: 2px solid var(--border-light);
  margin-bottom: 20px;
}
.sh-avatar {
  width: 64px; height: 64px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white); display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; font-weight: 800; flex-shrink: 0;
  overflow: hidden; box-shadow: var(--shadow-sm);
}
.sh-avatar img { width: 100%; height: 100%; object-fit: cover; }

.sh-stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 14px; margin-bottom: 24px;
}
.sh-stat {
  background: var(--white); border-radius: var(--r-md); padding: 18px 16px;
  border: 1px solid var(--border-light);
  border-left: 4px solid var(--primary);
  box-shadow: var(--shadow-xs);
}
.sh-stat-val { font-size: 2rem; font-weight: 800; line-height: 1; margin-bottom: 4px; }
.sh-stat-lbl { font-size: 1.2rem; color: var(--text-muted); text-transform: uppercase; font-weight: 700; letter-spacing: 0.04em; }

.sh-filters {
  display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end;
  margin-bottom: 20px; padding: 16px;
  background: var(--gray-50); border-radius: var(--r-md);
}
.sh-filters > div { display: flex; flex-direction: column; min-width: 150px; }
.sh-filters label { font-size: 1.1rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 4px; }
.sh-filters select, .sh-filters input[type="date"] {
  padding: 8px 12px; border: 2px solid var(--border); border-radius: var(--r-sm);
  font-size: 1.3rem; font-family: var(--font-body);
  background: var(--white);
}
.sh-filters .btn-sm { padding: 8px 16px; font-size: 1.3rem; }

.sh-table {
  width: 100%; border-collapse: collapse; font-size: 1.3rem;
  background: var(--white); border-radius: var(--r-sm); overflow: hidden;
  box-shadow: var(--shadow-xs);
}
.sh-table th, .sh-table td {
  padding: 12px 14px; text-align: left;
  border-bottom: 1px solid var(--border-light);
}
.sh-table th {
  background: var(--primary); color: var(--white); font-weight: 800;
  font-size: 1.2rem; text-transform: uppercase; letter-spacing: 0.04em;
}
.sh-table tbody tr:hover { background: var(--gray-50); }
.sh-table tbody tr:last-child td { border-bottom: none; }

.bx {
  display: inline-block; padding: 3px 10px;
  border-radius: var(--r-full); font-size: 1.15rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.04em;
}
.bx.bx-r { background: #fee2e2; color: #991b1b; }
.bx.bx-g { background: var(--green-100); color: var(--green-800); }
.bx.bx-o { background: var(--amber-100); color: var(--amber-700); }
.bx.bx-b { background: var(--gray-100); color: var(--text-muted); }

@media (max-width: 768px) {
  .sh-stats { grid-template-columns: repeat(2, 1fr); }
  .sh-filters > div { min-width: 0; flex: 1; }
}

/* ── student_library.php / .slib-page ─────────────── */
.slib-page {
  background: var(--bg);
  font-family: var(--font-body);
  padding: 32px 0 60px;
}
.slib-page .container { max-width: 1200px; margin: 0 auto; padding: 0 15px; }
.slib-page .library-container { max-width: 1200px; margin: 0 auto; }
.slib-page .materials-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}
.slib-page .material-card {
  background: var(--white); border: 1px solid var(--border-light); border-radius: var(--r-md);
  padding: 22px; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: 10px;
  transition: all var(--t-base);
}
.slib-page .material-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.slib-page .material-icon {
  font-size: 3rem; line-height: 1;
  width: 64px; height: 64px; border-radius: var(--r-sm);
  background: var(--primary-soft);
  display: flex; align-items: center; justify-content: center;
}
.slib-page .material-title {
  font-size: 1.5rem; font-weight: 800; color: var(--text);
  line-height: 1.3;
}
.slib-page .material-meta { display: flex; flex-wrap: wrap; gap: 4px; }
.slib-page .material-description {
  font-size: 1.3rem; color: var(--text-muted); line-height: 1.5;
  flex: 1;
}
.slib-page .material-stats {
  font-size: 1.2rem; color: var(--text-muted);
  padding-top: 8px; border-top: 1px dashed var(--border);
}
.slib-page .material-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.slib-page .material-actions a {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: var(--r-sm);
  font-size: 1.3rem; font-weight: 700;
  text-decoration: none; transition: all var(--t-base);
  flex: 1; justify-content: center; min-width: 100px;
}
.slib-page .material-actions a:hover { text-decoration: none; transform: translateY(-1px); }
.slib-page .material-actions .btn-success { background: var(--green-500); color: var(--white); }
.slib-page .material-actions .btn-success:hover { background: var(--green-600); color: var(--white); }
.slib-page .material-actions .btn-info { background: var(--primary); color: var(--white); }
.slib-page .material-actions .btn-info:hover { background: var(--primary-dark); color: var(--white); }

.slib-page .filter-section {
  background: var(--white); border-radius: var(--r-md);
  padding: 20px; margin-bottom: 18px;
  box-shadow: var(--shadow-sm); border: 1px solid var(--border-light);
}
.slib-page .filter-row {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px; align-items: end;
}
.slib-page .filter-row .form-group { margin-bottom: 0; }
.slib-page .filter-row .btn { width: 100%; }

/* ── student_practice_hub.php already styled ──────── */
/* student_practice_hub uses .hub-* which is already styled at line 19771+ */

/* ── student_flashcard_study.php already styled ────── */
/* Uses .stu-flash-study-wrap at line 15267+ */

/* ── student_exam_* already styled ─────────────────── */
/* .stu-result-wrap, .stu-review-wrap, .stu-history-wrap, .stu-enter-exam-wrap,
   .stu-exams-list-wrap, .stu-badges-wrap, .stu-games-wrap, .stu-view-* are
   all already defined in earlier sections of stylenew.css */

/* ── student_badges.php already styled ─────────────── */
/* .stu-badges-* at line 13238+ */

/* ── student_enter_exam.php / .stu-enter-exam-wrap extras ── */
.stu-enter-exam-wrap .stu-list-grid-2 {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}

/* ── Common emoji / icon fix for student files ──────── */
.game-name, .game-title { word-break: break-word; }

/* ── Print styles for student pages ────────────────── */
@media print {
  .ste-page, .spe-page, .spg-page, .ssf-page, .sva-page,
  .sgr-page, .lb-page, .pr-page, .slib-page, .sh-wrap {
    background: var(--white) !important; padding: 0 !important;
  }
  .ste-page .auto-save-indicator, .spe-page .auto-save-indicator,
  .spe-page .submit-modal, .modal, .sh-back, .sh-filters,
  .header-card, .actions, .action-buttons, .pr-action-row,
  .pr-filters, .auto-save-indicator, .tabs, .back-button {
    display: none !important;
  }
  .question-card, .pr-q-card, .assignment-card, .attendance-card,
  .material-card, .sh-card { break-inside: avoid; box-shadow: none !important; border: 1px solid var(--gray-300) !important; }
}

/* ── Section spacer (replaces inline spacer divs) ──── */
.section-spacer { text-align: right; margin-bottom: 20px; }

/* ── Game type card description text ──────────────── */
.game-type-desc { font-size: 12px; color: var(--gray-400); margin-top: 5px; }

/* ── Flashcard filter grid ────────────────────────── */
.filter-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 15px; margin-bottom: 25px; }

/* ── Library material description text ────────────── */
.material-description { font-size: 15px; color: var(--gray-400); margin: 15px 0; min-height: 40px; }

/* ── Notification form helpers ────────────────────── */
.notification-note { color: var(--gray-500); font-size: 1.3rem; margin-top: 0.25rem; display: block; }
.notification-textarea { min-height: 150px; resize: vertical; }
.char-count { margin-top: 0.5rem; font-size: 1.4rem; color: var(--gray-500); }
.template-preview { color: var(--gray-400); font-size: 16px; }

/* ── Settings section heading ─────────────────────── */
.section-heading { color: #2c3e50; }

/* ── Hint / helper text ───────────────────────────── */
.hint-text { color: var(--gray-400); font-size: 14px; }

/* ── Full-width button ────────────────────────────── */
.btn-full-width { width: 100%; }

/* ═══════════════════════════════════════════════════════
   PART 1: teacher_upload_questions_csv.php + teacher_create_flashcards.php
   ═══════════════════════════════════════════════════════ */

/* ── Shared form-row (standalone) ──────────────────── */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1.6rem; }
.form-row-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.button-group { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }

@media (max-width: 768px) {
  .form-row, .form-row-3, .form-row-4 { grid-template-columns: 1fr; }
}

/* ── teacher_upload_questions_csv.php ──────────────── */
.upload-container { max-width: 1100px; margin: 0 auto; padding: 30px 15px 60px; }
.upload-container .card {
  background: var(--white); border-radius: var(--r-lg);
  padding: 2.4rem; box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light); margin-bottom: 24px;
}
.upload-container .card h3 {
  font-size: 1.8rem; font-weight: 800; margin: 0 0 18px; color: var(--text);
  padding-bottom: 12px; border-bottom: 2px solid var(--border-light);
  font-family: var(--font-heading);
}
.upload-container .form-group { margin-bottom: 16px; }
.upload-container .form-group label {
  display: block; margin-bottom: 6px; font-weight: 600;
  color: var(--text-secondary); font-size: 1.4rem;
}
.upload-container .form-control {
  width: 100%; padding: 11px 14px; border: 2px solid var(--border);
  border-radius: var(--r-sm); font-size: 1.4rem;
  font-family: var(--font-body); color: var(--text);
  background: var(--white); transition: border-color .2s, box-shadow .2s;
}
.upload-container .form-control:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}
.upload-container .info-box { margin-top: 0; margin-bottom: 18px; }
.upload-container .info-box h4 { margin: 0 0 10px; font-size: 1.5rem; font-weight: 700; }
.upload-container .info-box ul {
  padding-left: 20px; margin: 0; line-height: 1.8; font-size: 1.3rem;
}

.csv-format {
  background: var(--gray-100); border: 1px solid var(--border);
  border-radius: var(--r-sm); padding: 14px 16px;
  font-family: 'Courier New',Consolas,monospace; font-size: 1.25rem;
  color: var(--text-secondary); line-height: 1.7; margin-top: 12px;
  overflow-x: auto; white-space: nowrap;
}

.file-upload-area {
  border: 2px dashed var(--border); border-radius: var(--r-md);
  padding: 30px 20px; text-align: center; cursor: pointer;
  transition: all .2s; background: var(--bg-alt);
}
.file-upload-area:hover,
.file-upload-area.dragover { border-color: var(--primary); background: var(--primary-mist); }
.file-icon { font-size: 3rem; margin-bottom: 10px; }
.file-icon::before { content: '\01F4C1'; }
.file-upload-text { font-size: 1.4rem; color: var(--text-secondary); font-weight: 600; }
.file-upload-hint { font-size: 1.2rem; color: var(--gray-400); margin-top: 6px; }
.selected-file {
  margin-top: 10px; padding: 8px 14px; background: var(--primary-mist);
  border-radius: var(--r-sm); font-size: 1.3rem; color: var(--primary-dark); display: none;
}
.error-list { margin: 10px 0 0; padding-left: 20px; font-size: 1.2rem; line-height: 1.7; }

/* ── teacher_create_flashcards.php ─────────────────── */
.flashcard-container { max-width: 1100px; margin: 0 auto; padding: 30px 15px 60px; }
.flashcard-container .card {
  background: var(--white); border-radius: var(--r-lg);
  padding: 2.4rem; box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light); margin-bottom: 24px;
}
.flashcard-container .card h3 {
  font-size: 1.8rem; font-weight: 800; margin: 0 0 18px; color: var(--text);
  padding-bottom: 12px; border-bottom: 2px solid var(--border-light);
  font-family: var(--font-heading);
}
.flashcard-container .form-group { margin-bottom: 16px; }
.flashcard-container .form-group label {
  display: block; margin-bottom: 6px; font-weight: 600;
  color: var(--text-secondary); font-size: 1.4rem;
}
.flashcard-container .form-control {
  width: 100%; padding: 11px 14px; border: 2px solid var(--border);
  border-radius: var(--r-sm); font-size: 1.4rem;
  font-family: var(--font-body); color: var(--text);
  background: var(--white); transition: border-color .2s, box-shadow .2s;
}
.flashcard-container .form-control:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}
.flashcard-container textarea.form-control { min-height: 100px; resize: vertical; }

.filter-group { min-width: 0; }
.filter-group label {
  display: block; font-size: 1.2rem; font-weight: 700;
  color: var(--text-secondary); margin-bottom: 5px;
  text-transform: uppercase; letter-spacing: .03em;
}

.flashcard-item {
  background: var(--bg-alt); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 18px; margin-bottom: 14px;
}
.flashcard-header {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 12px; gap: 10px; flex-wrap: wrap;
}
.flashcard-meta { display: flex; flex-wrap: wrap; gap: 5px; }
.flashcard-content { margin-bottom: 8px; }
.flashcard-label { font-size: 1.2rem; font-weight: 700; color: var(--primary); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 4px; }
.flashcard-text { font-size: 1.45rem; color: var(--text); line-height: 1.6; }

.difficulty-badge {
  display: inline-block; padding: 3px 10px; border-radius: var(--r-full);
  font-size: 1.15rem; font-weight: 700; text-transform: uppercase;
}
.difficulty-easy { background: var(--green-100); color: var(--green-700); }
.difficulty-medium { background: var(--amber-100); color: var(--amber-700); }
.difficulty-hard { background: #fee2e2; color: #b91c1c; }

.hint-box {
  background: #fffbeb; border: 1px solid #fde68a; border-left: 4px solid var(--amber-500);
  padding: 10px 14px; border-radius: var(--r-sm); margin-top: 10px;
  font-size: 1.3rem; color: #92400e;
}

/* ═══════════════════════════════════════════════════════
   PART 2: teacher_create_game.php + upload_library_material.php
   ═══════════════════════════════════════════════════════ */

/* ── teacher_create_game.php ───────────────────────── */
.game-container { max-width: 1100px; margin: 0 auto; padding: 30px 15px 60px; }
.game-container .card {
  background: var(--white); border-radius: var(--r-lg);
  padding: 2.4rem; box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light); margin-bottom: 24px;
}
.game-container .card h3 {
  font-size: 1.8rem; font-weight: 800; margin: 0 0 18px; color: var(--text);
  padding-bottom: 12px; border-bottom: 2px solid var(--border-light);
  font-family: var(--font-heading);
}
.game-container .form-group { margin-bottom: 16px; position: relative; }
.game-container .form-group label {
  display: block; margin-bottom: 6px; font-weight: 600;
  color: var(--text-secondary); font-size: 1.4rem;
}
.game-container .form-control {
  width: 100%; padding: 11px 14px; border: 2px solid var(--border);
  border-radius: var(--r-sm); font-size: 1.4rem;
  font-family: var(--font-body); color: var(--text);
  background: var(--white); transition: border-color .2s, box-shadow .2s;
}
.game-container .form-control:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.game-type-selector { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.game-type-card {
  background: var(--bg-alt); border: 2px solid var(--border);
  border-radius: var(--r-md); padding: 16px 12px; text-align: center;
  cursor: pointer; transition: all .2s; user-select: none;
}
.game-type-card:hover { border-color: var(--primary); background: var(--primary-mist); }
.game-type-card.selected { border-color: var(--primary); background: var(--primary-mist); box-shadow: 0 0 0 3px var(--primary-glow); }
.game-type-card input[type="radio"] { display: none; }
.game-type-card .type-icon { font-size: 2.4rem; margin-bottom: 6px; }
.game-type-card .type-icon::before { content: '\01F3AE'; }
.game-type-card:nth-child(1) .type-icon::before { content: '\01F4DD'; }
.game-type-card:nth-child(2) .type-icon::before { content: '\01F522'; }
.game-type-card:nth-child(3) .type-icon::before { content: '\01F4DD'; }
.game-type-card:nth-child(4) .type-icon::before { content: '\01F517'; }
.game-type-card .type-name { font-size: 1.4rem; font-weight: 700; color: var(--text); }

.game-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; margin-top: 10px; }
.game-card {
  background: var(--bg-alt); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 18px;
  transition: all .2s;
}
.game-card:hover { box-shadow: var(--shadow-md); border-color: var(--primary); }
.game-icon { font-size: 2.4rem; margin-bottom: 8px; }
.game-title { font-size: 1.5rem; font-weight: 700; color: var(--text); margin-bottom: 10px; word-break: break-word; }
.game-meta { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 6px; }
.game-stats { font-size: 1.2rem; color: var(--text-muted); margin: 8px 0; }
.game-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }

/* ── upload_library_material.php ───────────────────── */
.library-container { max-width: 1100px; margin: 0 auto; padding: 30px 15px 60px; }
.library-container .card {
  background: var(--white); border-radius: var(--r-lg);
  padding: 2.4rem; box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light); margin-bottom: 24px;
}
.library-container .card h3 {
  font-size: 1.8rem; font-weight: 800; margin: 0 0 18px; color: var(--text);
  padding-bottom: 12px; border-bottom: 2px solid var(--border-light);
  font-family: var(--font-heading);
}
.library-container .form-group { margin-bottom: 16px; position: relative; }
.library-container .form-group label {
  display: block; margin-bottom: 6px; font-weight: 600;
  color: var(--text-secondary); font-size: 1.4rem;
}
.library-container .form-control {
  width: 100%; padding: 11px 14px; border: 2px solid var(--border);
  border-radius: var(--r-sm); font-size: 1.4rem;
  font-family: var(--font-body); color: var(--text);
  background: var(--white); transition: border-color .2s, box-shadow .2s;
}
.library-container .form-control:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.materials-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; margin-top: 10px; }
.material-card {
  background: var(--bg-alt); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 18px;
  transition: all .2s;
}
.material-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.material-icon { font-size: 2.4rem; margin-bottom: 8px; }
.material-title { font-size: 1.5rem; font-weight: 700; color: var(--text); margin-bottom: 10px; }
.material-meta { display: flex; flex-wrap: wrap; gap: 4px; }
.material-stats { font-size: 1.2rem; color: var(--text-muted); margin: 8px 0; }
.material-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }


/* ═══════════════════════════════════════════════════════
   PART 3: admin_send_notification.php + admin_notification_settings.php
   ═══════════════════════════════════════════════════════ */

/* ── admin_send_notification.php ───────────────────── */
.notification-container { max-width: 1100px; margin: 0 auto; padding: 30px 15px 60px; }
.notification-container .card {
  background: var(--white); border-radius: var(--r-lg);
  padding: 2.4rem; box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light); margin-bottom: 24px;
}
.notification-container .card h3 {
  font-size: 1.8rem; font-weight: 800; margin: 0 0 18px; color: var(--text);
  padding-bottom: 12px; border-bottom: 2px solid var(--border-light);
  font-family: var(--font-heading);
}
.notification-container .form-group { margin-bottom: 16px; }
.notification-container .form-group label {
  display: block; margin-bottom: 6px; font-weight: 600;
  color: var(--text-secondary); font-size: 1.4rem;
}
.notification-container .form-control {
  width: 100%; padding: 11px 14px; border: 2px solid var(--border);
  border-radius: var(--r-sm); font-size: 1.4rem;
  font-family: var(--font-body); color: var(--text);
  background: var(--white); transition: border-color .2s, box-shadow .2s;
}
.notification-container .form-control:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}
.notification-container textarea.form-control { min-height: 150px; resize: vertical; }

.templates-section { margin-bottom: 20px; }
.templates-section h4 {
  font-size: 1.4rem; font-weight: 700; color: var(--text-secondary);
  margin: 0 0 10px;
}
.template-item {
  display: inline-block; background: var(--bg-alt); border: 1px solid var(--border);
  border-radius: var(--r-sm); padding: 8px 14px; margin: 0 8px 8px 0;
  cursor: pointer; transition: all .2s; font-size: 1.3rem;
}
.template-item:hover { border-color: var(--primary); background: var(--primary-mist); }
.template-name { font-weight: 700; color: var(--primary); margin-bottom: 3px; }

/* ── admin_notification_settings.php ───────────────── */
.settings-container { max-width: 1100px; margin: 0 auto; padding: 30px 15px 60px; }
.settings-container .card {
  background: var(--white); border-radius: var(--r-lg);
  padding: 2.4rem; box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light); margin-bottom: 24px;
}
.settings-container .card h3 {
  font-size: 1.8rem; font-weight: 800; margin: 0 0 18px; color: var(--text);
  padding-bottom: 12px; border-bottom: 2px solid var(--border-light);
  font-family: var(--font-heading);
}
.settings-container .form-group { margin-bottom: 16px; }
.settings-container .form-group label {
  display: block; margin-bottom: 6px; font-weight: 600;
  color: var(--text-secondary); font-size: 1.4rem;
}
.settings-container .form-control {
  width: 100%; padding: 11px 14px; border: 2px solid var(--border);
  border-radius: var(--r-sm); font-size: 1.4rem;
  font-family: var(--font-body); color: var(--text);
  background: var(--white); transition: border-color .2s, box-shadow .2s;
}
.settings-container .form-control:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}
.settings-container .info-box { margin-top: 0; margin-bottom: 20px; }

.checkbox-group { display: flex; align-items: center; gap: 10px; margin: 8px 0; }
.checkbox-group input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--primary); cursor: pointer; }
.checkbox-group label { font-size: 1.4rem; font-weight: 600; color: var(--text); cursor: pointer; margin-bottom: 0 !important; }

/* ═══════════════════════════════════════════════════════
   PART 4: admin_manage_events.php + admin_manage_badges.php
   ═══════════════════════════════════════════════════════ */

/* ── admin_manage_events.php ───────────────────────── */
.calendar-container { max-width: 1200px; margin: 0 auto; padding: 30px 15px 60px; }
.calendar-container .card {
  background: var(--white); border-radius: var(--r-lg);
  padding: 2.4rem; box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light); margin-bottom: 24px;
}
.calendar-container .card h3 {
  font-size: 1.8rem; font-weight: 800; margin: 0 0 18px; color: var(--text);
  padding-bottom: 12px; border-bottom: 2px solid var(--border-light);
  font-family: var(--font-heading);
}
.calendar-container .form-group { margin-bottom: 16px; }
.calendar-container .form-group label {
  display: block; margin-bottom: 6px; font-weight: 600;
  color: var(--text-secondary); font-size: 1.4rem;
}
.calendar-container .form-control {
  width: 100%; padding: 11px 14px; border: 2px solid var(--border);
  border-radius: var(--r-sm); font-size: 1.4rem;
  font-family: var(--font-body); color: var(--text);
  background: var(--white); transition: border-color .2s, box-shadow .2s;
}
.calendar-container .form-control:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}
.calendar-container textarea.form-control { min-height: 100px; resize: vertical; }

.calendar-header {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px; margin-bottom: 24px;
}
.calendar-title { font-size: 2rem; font-weight: 800; color: var(--text); font-family: var(--font-heading); }
.calendar-nav { display: flex; align-items: center; gap: 12px; }
.nav-btn {
  padding: 8px 16px; background: var(--white); border: 1px solid var(--border);
  border-radius: var(--r-sm); cursor: pointer; font-size: 1.3rem;
  font-weight: 600; color: var(--text); transition: all .2s;
  font-family: var(--font-body);
}
.nav-btn:hover { background: var(--bg-alt); border-color: var(--primary); }
.current-month { font-size: 1.6rem; font-weight: 700; color: var(--text); min-width: 160px; text-align: center; }

.content-grid {
  display: grid; grid-template-columns: 2fr 1fr; gap: 24px; align-items: start;
}
@media (max-width: 900px) {
  .content-grid { grid-template-columns: 1fr; }
}

.calendar-table { width: 100%; border-collapse: collapse; }
.calendar-table th {
  background: var(--primary-mist); color: var(--primary-dark);
  padding: 10px 6px; font-size: 1.2rem; font-weight: 700;
  text-align: center; border: 1px solid var(--border-light);
}
.calendar-table td {
  height: 80px; vertical-align: top; padding: 4px;
  border: 1px solid var(--border-light); width: 14.28%;
  font-size: 1.2rem; transition: background .2s;
}
.calendar-table td.empty { background: var(--bg-alt); }
.calendar-table td.today { background: var(--primary-mist); }
.calendar-table .day-number { font-weight: 700; font-size: 1.2rem; margin-bottom: 2px; padding: 2px 4px; }
.calendar-table td.today .day-number { background: var(--primary); color: var(--white); border-radius: 50%; display: inline-block; width: 22px; height: 22px; line-height: 22px; text-align: center; }

.event-dot {
  display: block; color: var(--white); font-size: 1rem; padding: 2px 4px;
  border-radius: 3px; margin-top: 2px; text-decoration: none;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  font-weight: 600;
}

.legend { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.legend-item { display: flex; align-items: center; gap: 6px; font-size: 1.2rem; color: var(--text-secondary); }
.legend-color { width: 14px; height: 14px; border-radius: 3px; flex-shrink: 0; }

.color-selector { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.color-option {
  width: 32px; height: 32px; border-radius: 50%; cursor: pointer;
  border: 3px solid transparent; transition: all .15s;
}
.color-option:hover { transform: scale(1.15); }
.color-option.selected { border-color: var(--text); box-shadow: 0 0 0 2px var(--white), 0 0 0 4px var(--text); }

/* ── admin_manage_badges.php ───────────────────────── */
.badge-container { max-width: 1100px; margin: 0 auto; padding: 30px 15px 60px; }
.badge-container .card {
  background: var(--white); border-radius: var(--r-lg);
  padding: 2.4rem; box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light); margin-bottom: 24px;
}
.badge-container .card h3 {
  font-size: 1.8rem; font-weight: 800; margin: 0 0 18px; color: var(--text);
  padding-bottom: 12px; border-bottom: 2px solid var(--border-light);
  font-family: var(--font-heading);
}
.badge-container .form-group { margin-bottom: 16px; }
.badge-container .form-group label {
  display: block; margin-bottom: 6px; font-weight: 600;
  color: var(--text-secondary); font-size: 1.4rem;
}
.badge-container .form-control {
  width: 100%; padding: 11px 14px; border: 2px solid var(--border);
  border-radius: var(--r-sm); font-size: 1.4rem;
  font-family: var(--font-body); color: var(--text);
  background: var(--white); transition: border-color .2s, box-shadow .2s;
}
.badge-container .form-control:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}
.badge-container textarea.form-control { min-height: 100px; resize: vertical; }

.emoji-selector { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.emoji-option {
  width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
  font-size: 2rem; border: 2px solid var(--border); border-radius: var(--r-sm);
  cursor: pointer; transition: all .15s; background: var(--white);
}
.emoji-option:hover { border-color: var(--primary); background: var(--primary-mist); transform: scale(1.1); }
.emoji-option.selected { border-color: var(--primary); background: var(--primary-mist); box-shadow: 0 0 0 3px var(--primary-glow); }

.badges-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; margin-top: 10px;
}
.badge-card {
  background: var(--bg-alt); border: 2px solid var(--border);
  border-radius: var(--r-md); padding: 18px; text-align: center;
  transition: all .2s; border-top-width: 4px;
}
.badge-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.badge-icon { font-size: 3rem; margin-bottom: 8px; }
.badge-name { font-size: 1.5rem; font-weight: 700; margin-bottom: 6px; }
.badge-description { font-size: 1.3rem; color: var(--text-secondary); margin-bottom: 10px; line-height: 1.5; }
.badge-criteria { font-size: 1.2rem; color: var(--text-muted); margin-bottom: 8px; }
.badge-stats { font-size: 1.2rem; color: var(--gray-500); font-weight: 600; }


/* ═══════════════════════════════════════════════════════
   PART 5: admin_store_dashboard.php
   ═══════════════════════════════════════════════════════ */

.sd-wrap { max-width: 1300px; margin: 0 auto; padding: 30px 15px 60px; }

.sd-header {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px; margin-bottom: 24px;
  background: var(--white); border-radius: var(--r-lg); padding: 20px 24px;
  box-shadow: var(--shadow-sm); border: 1px solid var(--border-light);
}
.sd-header h2 { font-size: 2rem; font-weight: 800; margin: 0; color: var(--text); font-family: var(--font-heading); }
.sd-header p { font-size: 1.3rem; color: var(--text-muted); margin: 4px 0 0; }

.sd-stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 24px; }
.sd-stat {
  background: var(--white); border-radius: var(--r-lg); padding: 18px 20px;
  box-shadow: var(--shadow-sm); border: 1px solid var(--border-light);
  border-top: 4px solid var(--gray-400);
}
.sd-stat.orange { border-top-color: #e87722; }
.sd-stat.green  { border-top-color: var(--green-500); }
.sd-stat.blue   { border-top-color: var(--primary); }
.sd-stat.purple { border-top-color: #9b59b6; }
.sd-stat h3 { font-size: 2.2rem; font-weight: 900; margin: 0 0 4px; color: var(--text); }
.sd-stat p  { font-size: 1.2rem; color: var(--text-muted); margin: 0; }

.sd-card { background: var(--white); border-radius: var(--r-lg); padding: 24px; box-shadow: var(--shadow-sm); border: 1px solid var(--border-light); margin-bottom: 24px; }
.sd-card h4 { font-size: 1.5rem; font-weight: 700; margin: 0 0 16px; color: var(--text); font-family: var(--font-heading); }

.sd-tabs {
  display: flex; gap: 4px; flex-wrap: wrap; padding: 6px;
  background: var(--white); border-radius: var(--r-md);
  box-shadow: var(--shadow-sm); border: 1px solid var(--border-light);
  margin-bottom: 20px;
}
.sd-tab {
  padding: 10px 16px; border-radius: var(--r-sm); border: none;
  background: transparent; color: var(--text-muted); cursor: pointer;
  font-size: 1.3rem; font-weight: 600; transition: all .2s;
  font-family: var(--font-body); white-space: nowrap;
}
.sd-tab:hover { background: var(--bg-alt); color: var(--text); }
.sd-tab.active { background: var(--primary); color: var(--white); box-shadow: 0 2px 8px var(--primary-glow); }
.sd-tab-content { display: none; }
.sd-tab-content.active { display: block; }

.sd-table { width: 100%; border-collapse: collapse; font-size: 1.3rem; }
.sd-table th {
  background: var(--bg-alt); color: var(--text-secondary); font-weight: 700;
  padding: 10px 12px; text-align: left; border-bottom: 2px solid var(--border);
  font-size: 1.2rem; text-transform: uppercase; letter-spacing: .03em; white-space: nowrap;
}
.sd-table td { padding: 10px 12px; border-bottom: 1px solid var(--border-light); color: var(--text); }
.sd-table tbody tr:hover { background: var(--bg-alt); }

.sd-search {
  padding: 8px 14px; border: 2px solid var(--border); border-radius: var(--r-sm);
  font-size: 1.3rem; font-family: var(--font-body); color: var(--text);
  background: var(--white); max-width: 260px; width: 100%; transition: border-color .2s;
}
.sd-search:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-glow); }

.sd-btn {
  display: inline-block; padding: 8px 16px; border: none; border-radius: var(--r-sm);
  font-size: 1.3rem; font-weight: 600; cursor: pointer; text-decoration: none;
  font-family: var(--font-body); transition: all .2s; line-height: 1.4;
}
.sd-btn-orange { background: #e87722; color: var(--white); }
.sd-btn-orange:hover { background: #d0651a; color: var(--white); }
.sd-btn-green  { background: var(--green-500); color: var(--white); }
.sd-btn-green:hover  { background: var(--green-600); color: var(--white); }
.sd-btn-blue   { background: var(--primary); color: var(--white); }
.sd-btn-blue:hover   { background: var(--primary-dark); color: var(--white); }
.sd-btn-red    { background: #ef4444; color: var(--white); }
.sd-btn-red:hover    { background: #dc2626; color: var(--white); }
.sd-btn-gray   { background: var(--gray-200); color: var(--text); }
.sd-btn-gray:hover   { background: var(--gray-300); color: var(--text); }

.sd-lbl { display: block; font-size: 1.3rem; font-weight: 600; color: var(--text-secondary); margin-bottom: 4px; }
.sd-inp {
  width: 100%; padding: 10px 14px; border: 2px solid var(--border);
  border-radius: var(--r-sm); font-size: 1.4rem; font-family: var(--font-body);
  color: var(--text); background: var(--white); transition: border-color .2s;
}
.sd-inp:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-glow); }
.sd-sel {
  width: 100%; padding: 10px 14px; border: 2px solid var(--border);
  border-radius: var(--r-sm); font-size: 1.4rem; font-family: var(--font-body);
  color: var(--text); background: var(--white); transition: border-color .2s;
}
.sd-sel:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-glow); }

.sd-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 768px) { .sd-row { grid-template-columns: 1fr; } }
.sd-col2 { min-width: 0; }

.sd-err {
  background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb;
  padding: 12px 16px; border-radius: var(--r-md); margin-bottom: 16px;
  font-size: 1.4rem; font-weight: 600; display: flex; align-items: center; gap: 8px;
}
.sd-ok {
  background: var(--green-tint-300); color: var(--green-ink); border: 1px solid var(--green-tint-400);
  padding: 12px 16px; border-radius: var(--r-md); margin-bottom: 16px;
  font-size: 1.4rem; font-weight: 600; display: flex; align-items: center; gap: 8px;
}

.bx {
  display: inline-block; padding: 3px 12px; border-radius: var(--r-full);
  font-size: 1.15rem; font-weight: 700; text-transform: uppercase;
}
.bx-g { background: var(--green-100); color: var(--green-700); }
.bx-r { background: #fee2e2; color: #b91c1c; }
.bx-o { background: var(--amber-100); color: var(--amber-700); }
.bx-b { background: var(--primary-mist); color: var(--primary-dark); }

.bal-chip {
  display: inline-block; padding: 3px 12px; border-radius: var(--r-full);
  font-size: 1.2rem; font-weight: 700;
}
.bal-ok   { background: var(--green-100); color: var(--green-700); }
.bal-low  { background: var(--amber-100); color: var(--amber-700); }
.bal-zero { background: #fee2e2; color: #b91c1c; }

/* ── Student browser (store dashboard) ──────────────── */
.stu-filter-bar {
  display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
  margin-bottom: 16px; padding: 12px;
  background: var(--bg-alt); border-radius: var(--r-md);
}
.stu-class-btn {
  padding: 6px 14px; border-radius: var(--r-full); border: 1px solid var(--border);
  background: var(--white); color: var(--text-secondary); cursor: pointer;
  font-size: 1.2rem; font-weight: 600; font-family: var(--font-body); transition: all .2s;
}
.stu-class-btn:hover { border-color: var(--primary); color: var(--primary); }
.stu-class-btn.stu-active { background: var(--primary); color: var(--white); border-color: var(--primary); }
.stu-search { padding: 8px 14px; border: 2px solid var(--border); border-radius: var(--r-sm); font-size: 1.3rem; min-width: 200px; transition: border-color .2s; }
.stu-search:focus { outline: none; border-color: var(--primary); }
.stu-count-info { font-size: 1.2rem; color: var(--text-muted); margin-left: auto; font-weight: 600; }

.stu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.stu-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 14px;
  transition: all .2s;
}
.stu-card:hover { box-shadow: var(--shadow-md); }
.stu-card-top { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.stu-av {
  width: 42px; height: 42px; border-radius: 50%; background: #e87722;
  display: flex; align-items: center; justify-content: center;
  color: var(--white); font-size: 1.3rem; font-weight: 700; flex-shrink: 0;
  overflow: hidden;
}
.stu-av img { width: 100%; height: 100%; object-fit: cover; }
.stu-name { font-size: 1.4rem; font-weight: 700; color: var(--text); margin: 0; }
.stu-meta { font-size: 1.1rem; color: var(--text-muted); margin: 2px 0 0; }
.stu-bal-row { display: flex; justify-content: space-between; align-items: center; margin: 8px 0; }
.stu-matric { font-size: 1.1rem; color: var(--gray-500); }
.stu-actions { display: flex; gap: 6px; margin-top: 10px; }
.stu-act-btn {
  padding: 5px 10px; border: 1px solid var(--border); border-radius: var(--r-sm);
  background: var(--white); color: var(--text-secondary); cursor: pointer;
  font-size: 1.1rem; font-weight: 600; text-decoration: none; transition: all .2s;
  font-family: var(--font-body); display: inline-flex; align-items: center; gap: 4px;
}
.stu-act-btn:hover { border-color: var(--primary); color: var(--primary); }

/* ── Store modal ───────────────────────────────────── */
.sd-modal { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 9999; align-items: center; justify-content: center; padding: 20px; }
.sd-modal.open { display: flex; }
.sd-modal-box {
  background: var(--white); border-radius: var(--r-lg); max-width: 500px; width: 100%;
  padding: 24px; box-shadow: var(--shadow-xl); position: relative;
}
.sd-modal-box h5 { font-size: 1.6rem; font-weight: 700; margin: 0 0 16px; color: var(--text); font-family: var(--font-heading); }
.sd-modal-close {
  position: absolute; top: 10px; right: 14px; font-size: 2.2rem;
  background: none; border: none; color: var(--text-muted); cursor: pointer;
  line-height: 1;
}
.sd-modal-close:hover { color: var(--text); }

/* =====================================================
   99. ADMIN TOPBAR v2 — Beautiful breadcrumb hero
   Combines the .brd-hero gradient aesthetic with the
   .pq-topbar layout, role pill, dashboard back-link,
   and action buttons. Fully responsive.
   ===================================================== */
.atb {
  position: relative;
  background:
    radial-gradient(circle at 0% 0%,    rgba(201, 168, 76, .18) 0%, transparent 35%),
    radial-gradient(circle at 100% 100%, rgba(255, 255, 255, .06) 0%, transparent 40%),
    linear-gradient(135deg, var(--navy-850) 0%, var(--green-800) 50%, var(--navy-850) 100%);
  color: var(--white);
  overflow: hidden;
  padding: 2.4rem 0 2.2rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.atb::before {
  content: '';
  position: absolute;
  top: -8rem; right: -6rem;
  width: 28rem; height: 28rem;
  border-radius: 50%;
  background: rgba(201, 168, 76, .10);
  filter: blur(2px);
  pointer-events: none;
}
.atb::after {
  content: '';
  position: absolute;
  bottom: -6rem; left: -4rem;
  width: 22rem; height: 22rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, .04);
  filter: blur(2px);
  pointer-events: none;
}
.atb-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.atb-main { flex: 1 1 auto; min-width: 0; }

.atb-bc {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
  list-style: none;
  margin: 0 0 .6rem;
  padding: 0;
  font-size: 1.25rem;
}
.atb-bc li {
  display: inline-flex;
  align-items: center;
  color: rgba(255,255,255,.65);
  line-height: 1.4;
}
.atb-bc li + li::before {
  content: '\f105';
  font-family: 'FontAwesome';
  margin: 0 .8rem;
  color: rgba(255,255,255,.35);
  font-size: 1.1rem;
}
.atb-bc a {
  color: rgba(255,255,255,.85);
  text-decoration: none;
  font-weight: 500;
  padding: .3rem .6rem;
  border-radius: var(--r-xs);
  transition: all var(--t-base);
}
.atb-bc a:hover {
  color: var(--gold);
  background: rgba(255,255,255,.08);
  text-decoration: none;
}
.atb-bc li.active {
  color: var(--gold);
  font-weight: 700;
  padding: .3rem .6rem;
}
.atb-bc li.active::before { color: rgba(201, 168, 76, .55); }

.atb-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: .4rem;
}
.atb-title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1.2;
  letter-spacing: -.01em;
  display: flex;
  align-items: center;
  gap: .9rem;
}
.atb-title i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.6rem;
  height: 3.6rem;
  border-radius: var(--r-md);
  background: linear-gradient(135deg, rgba(201,168,76,.25), rgba(201,168,76,.10));
  color: var(--gold);
  font-size: 1.5rem;
  border: 1px solid rgba(201,168,76,.30);
  flex-shrink: 0;
}
.atb-pill {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .35rem 1rem;
  border-radius: var(--r-full);
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  background: var(--primary);
  color: var(--white);
  line-height: 1.6;
  box-shadow: 0 2px 6px rgba(0,0,0,.15);
}
.atb-pill.pill-super   { background: linear-gradient(135deg, #c9a84c, #a8842f); color: #1a1a1a; }
.atb-pill.pill-subadmin { background: linear-gradient(135deg, #b45309, #7c2d12); }
.atb-pill.pill-account { background: linear-gradient(135deg, #1e40af, #1e3a8a); }
.atb-pill.pill-result  { background: linear-gradient(135deg, var(--green-800), var(--green-900)); }
.atb-pill.pill-teacher { background: linear-gradient(135deg, #0d9488, #115e59); }
.atb-pill.pill-nonteacher { background: linear-gradient(135deg, #0e7490, #155e75); }
.atb-pill.pill-other   { background: linear-gradient(135deg, #475569, #334155); }

.atb-sub {
  margin: .3rem 0 0;
  font-size: 1.35rem;
  color: rgba(255,255,255,.78);
  line-height: 1.5;
  font-weight: 500;
}
.atb-sub strong { color: var(--white); font-weight: 700; }
.atb-sub i { color: var(--gold); margin-right: .4rem; }

.atb-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .7rem;
  flex-shrink: 0;
}
.atb-btn {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .85rem 1.5rem;
  border-radius: var(--r-md);
  font-size: 1.3rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: 1.5px solid rgba(255,255,255,.55);
  color: var(--white);
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(6px);
  transition: all var(--t-base);
  white-space: nowrap;
  line-height: 1.2;
  font-family: var(--font-body);
}
.atb-btn:hover {
  background: rgba(255,255,255,.18);
  border-color: var(--white);
  color: var(--white);
  text-decoration: none;
  transform: translateY(-1px);
}
.atb-btn.btn-gold {
  background: linear-gradient(135deg, #c9a84c, #a8842f);
  border-color: #c9a84c;
  color: #1a1a1a;
}
.atb-btn.btn-gold:hover {
  background: linear-gradient(135deg, #d4b25a, #b8902f);
  border-color: #d4b25a;
  color: #1a1a1a;
  box-shadow: 0 6px 18px rgba(201, 168, 76, .35);
}
.atb-btn.btn-danger {
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  border-color: #dc2626;
}
.atb-btn.btn-danger:hover {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  border-color: #ef4444;
  box-shadow: 0 6px 18px rgba(220, 38, 38, .35);
}
.atb-btn.btn-ghost {
  border-color: transparent;
  background: transparent;
}
.atb-btn.btn-ghost:hover {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.30);
}
.atb-btn.btn-sm {
  padding: .55rem 1rem;
  font-size: 1.2rem;
}
.atb-btn i { font-size: 1.15em; }

/* Notif bell inside topbar (matches pq-wrap style) */
.atb-bell {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4.4rem;
  height: 4.4rem;
  border-radius: var(--r-md);
  background: rgba(255,255,255,.10);
  border: 1.5px solid rgba(255,255,255,.40);
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
  transition: all var(--t-base);
}
.atb-bell:hover {
  background: rgba(255,255,255,.20);
  border-color: var(--white);
}
.atb-bell-count {
  position: absolute;
  top: -5px; right: -6px;
  background: linear-gradient(135deg, #ef4444, #b91c1c);
  color: var(--white);
  font-size: 1rem;
  font-weight: 800;
  min-width: 1.8rem;
  height: 1.8rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  border: 2px solid var(--navy-850);
  box-shadow: 0 2px 6px rgba(239, 68, 68, .40);
}

.atb-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + .6rem);
  z-index: 99999;
  width: min(38rem, calc(100vw - 2rem));
  background: var(--white);
  border-radius: var(--r-md);
  box-shadow: 0 12px 40px rgba(0,0,0,.20);
  display: none;
  overflow: hidden;
  color: var(--text);
}
.atb-dropdown.open { display: block; }
.atb-dropdown-head {
  padding: 1.1rem 1.4rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--text);
  background: var(--bg-alt);
}
.atb-dropdown-item {
  padding: 1.1rem 1.4rem;
  border-bottom: 1px solid var(--border-light);
  cursor: pointer;
  transition: background .15s;
  font-size: 1.3rem;
}
.atb-dropdown-item:hover { background: var(--bg-alt); }
.atb-dropdown-item-title { font-weight: 600; color: var(--text); margin-bottom: .35rem; }
.atb-dropdown-item-title i { color: var(--primary); margin-right: .5rem; }
.atb-dropdown-item-msg   { color: var(--text-muted); font-size: 1.2rem; }
.atb-dropdown-item-time  { color: var(--text-muted); font-size: 1.1rem; margin-top: .35rem; }
.atb-dropdown-empty { padding: 2rem; text-align: center; color: var(--text-muted); font-size: 1.3rem; }
.atb-dropdown-foot {
  padding: .9rem 1.4rem;
  text-align: center;
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
}
.atb-dropdown-foot a {
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
  font-size: 1.25rem;
}

.atb-bell-wrap { position: relative; }

/* Responsive */
@media (max-width: 991px) {
  .atb { padding: 2rem 0 1.8rem; }
  .atb-title { font-size: 2rem; }
  .atb-title i { width: 3.2rem; height: 3.2rem; font-size: 1.3rem; }
  .atb-sub { font-size: 1.25rem; }
  .atb-actions { width: 100%; justify-content: flex-start; }
}
@media (max-width: 600px) {
  .atb { padding: 1.6rem 0 1.4rem; }
  .atb-inner { gap: 1.2rem; }
  .atb-title { font-size: 1.7rem; gap: .7rem; }
  .atb-title i { width: 2.8rem; height: 2.8rem; font-size: 1.15rem; }
  .atb-bc { font-size: 1.15rem; margin-bottom: .4rem; }
  .atb-bc li + li::before { margin: 0 .5rem; }
  .atb-bc a, .atb-bc li.active { padding: .2rem .4rem; }
  .atb-sub { font-size: 1.15rem; }
  .atb-actions { gap: .5rem; }
  .atb-btn { padding: .7rem 1.1rem; font-size: 1.2rem; }
  .atb-btn.btn-sm { padding: .5rem .8rem; font-size: 1.1rem; }
  .atb-pill { font-size: 1rem; padding: .25rem .8rem; }
}

/* =====================================================
   99b. ADMIN ROLE BANNERS (role notice strips on dashboard)
   ===================================================== */
.adm-role-banner {
  background: var(--white);
  border-radius: var(--r-lg);
  padding: 1.4rem 1.8rem;
  margin-bottom: 1.8rem;
  border-left: 4px solid var(--primary);
  box-shadow: var(--shadow-card);
  border-top: 1px solid var(--border-light);
  border-right: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}
.adm-role-banner strong { display: block; margin-bottom: .4rem; }
.adm-role-banner p { margin: .6rem 0 0; font-size: 1.3rem; line-height: 1.55; }
.adm-role-banner--sub {
  background: linear-gradient(135deg, var(--amber-100), #ffedd5);
  border-left-color: var(--amber-700);
  color: #7c2d12;
}
.adm-role-banner--sub strong { color: #7c2d12; }
.adm-role-banner--sub p { color: #7c2d12; }
.adm-role-banner--nonacademic {
  background: linear-gradient(135deg, #ecfeff, #cffafe);
  border-left-color: #0e7490;
  color: #155e75;
}
.adm-role-banner--nonacademic strong { color: #155e75; }
.adm-role-banner--nonacademic p { color: #155e75; }

/* =====================================================
   100. ADMIN LOGIN PAGE v2 — Beautiful & Responsive
   ===================================================== */
.auth-page-v2 {
  min-height: calc(100vh - 22rem);
  display: flex;
  align-items: center;
  padding: 5rem 0 7rem;
  background:
    radial-gradient(circle at 20% 30%, rgba(12, 84, 48, .08) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(201, 168, 76, .10) 0%, transparent 50%),
    var(--bg-alt);
  position: relative;
  overflow: hidden;
}
.auth-page-v2::before {
  content: '';
  position: absolute;
  top: -10rem; right: -8rem;
  width: 32rem; height: 32rem;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(12, 84, 48, .10), rgba(201, 168, 76, .10));
  pointer-events: none;
}
.auth-page-v2::after {
  content: '';
  position: absolute;
  bottom: -8rem; left: -6rem;
  width: 26rem; height: 26rem;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(201, 168, 76, .10), rgba(12, 84, 48, .05));
  pointer-events: none;
}
.auth-card-v2 {
  max-width: 46rem;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--r-xl);
  padding: 4.2rem 4rem 3.6rem;
  box-shadow: 0 24px 60px rgba(0,0,0,.10), 0 6px 18px rgba(0,0,0,.05);
  border: 1px solid var(--border-light);
  position: relative;
  z-index: 1;
  overflow: hidden;
}
.auth-card-v2::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--green-800) 0%, #c9a84c 50%, var(--green-800) 100%);
}
.auth-card-v2 .auth-icon-wrap {
  width: 7rem;
  height: 7rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green-800) 0%, var(--green-900) 100%);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.6rem;
  margin: 0 auto 1.6rem;
  box-shadow: 0 12px 30px rgba(12, 84, 48, .30);
  position: relative;
}
.auth-card-v2 .auth-icon-wrap::after {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 2px dashed rgba(201, 168, 76, .40);
  animation: authSpin 20s linear infinite;
}
@keyframes authSpin {
  to { transform: rotate(360deg); }
}
.auth-card-v2 h1 {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--text);
  text-align: center;
  margin: 0 0 .4rem;
  letter-spacing: -.01em;
}
.auth-card-v2 .auth-sub {
  text-align: center;
  color: var(--text-secondary);
  font-size: 1.4rem;
  margin: 0 0 2.6rem;
  line-height: 1.5;
}
.auth-form-v2 .form-row-v2 {
  margin-bottom: 1.6rem;
}
.auth-form-v2 label {
  display: block;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: .6rem;
  color: var(--text);
  letter-spacing: .02em;
}
.auth-form-v2 .input-wrap {
  position: relative;
}
.auth-form-v2 .input-wrap i.input-icon {
  position: absolute;
  left: 1.4rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1.5rem;
  pointer-events: none;
  transition: color var(--t-base);
}
.auth-form-v2 .form-control-v2 {
  width: 100%;
  height: 4.8rem;
  border-radius: var(--r-md);
  border: 1.5px solid var(--border);
  padding: 0 1.4rem 0 4.2rem;
  font-size: 1.5rem;
  background: var(--bg-alt);
  color: var(--text);
  font-family: var(--font-body);
  transition: all var(--t-base);
}
.auth-form-v2 .form-control-v2:focus {
  outline: none;
  background: var(--white);
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(12, 84, 48, .12);
}
.auth-form-v2 .form-control-v2:focus + i.input-icon,
.auth-form-v2 .input-wrap:focus-within i.input-icon {
  color: var(--primary);
}
.auth-form-v2 .pwd-wrap-v2 { position: relative; }
.auth-form-v2 .pwd-toggle-v2 {
  position: absolute;
  right: 1.4rem;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: var(--text-muted);
  font-size: 1.5rem;
  z-index: 2;
  padding: .4rem;
  transition: color var(--t-base);
}
.auth-form-v2 .pwd-toggle-v2:hover { color: var(--primary); }
.auth-form-v2 .btn-login-v2 {
  width: 100%;
  height: 5.2rem;
  border: 0;
  border-radius: var(--r-md);
  background: linear-gradient(135deg, var(--green-800) 0%, var(--green-900) 100%);
  color: var(--white);
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: .04em;
  cursor: pointer;
  margin-top: .8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .7rem;
  transition: all var(--t-base);
  font-family: var(--font-body);
  box-shadow: 0 8px 20px rgba(12, 84, 48, .25);
  text-transform: uppercase;
}
.auth-form-v2 .btn-login-v2:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(12, 84, 48, .35);
  background: linear-gradient(135deg, var(--green-800) 0%, var(--green-900) 100%);
}
.auth-form-v2 .btn-login-v2:active { transform: translateY(0); }
.auth-form-v2 .forgot-link-v2 {
  text-align: center;
  margin-top: 1.6rem;
  font-size: 1.3rem;
}
.auth-form-v2 .forgot-link-v2 a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  transition: color var(--t-base);
}
.auth-form-v2 .forgot-link-v2 a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}
.auth-form-v2 .role-note-v2 {
  background: linear-gradient(135deg, rgba(12, 84, 48, .05), rgba(201, 168, 76, .05));
  border-left: 3px solid var(--gold);
  padding: 1.2rem 1.6rem;
  border-radius: 0 var(--r-md) var(--r-md) 0;
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-top: 2rem;
  line-height: 1.6;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.auth-form-v2 .role-note-v2 i {
  color: var(--gold);
  font-size: 1.6rem;
  flex-shrink: 0;
  margin-top: .15rem;
}
.auth-form-v2 .role-note-v2 strong { color: var(--text); }

@media (max-width: 600px) {
  .auth-card-v2 { padding: 3rem 2rem 2.6rem; }
  .auth-card-v2 h1 { font-size: 2rem; }
  .auth-card-v2 .auth-sub { font-size: 1.3rem; }
  .auth-card-v2 .auth-icon-wrap { width: 6rem; height: 6rem; font-size: 2.2rem; }
  .auth-form-v2 .form-control-v2 { height: 4.6rem; font-size: 1.4rem; }
  .auth-form-v2 .btn-login-v2 { height: 5rem; font-size: 1.4rem; }
}

/* =====================================================
   101. ADMIN DASHBOARD v2 — Mobile responsive tiles
   ===================================================== */
.adm-dash-wrap-v2 {
  background: var(--bg-alt);
  padding: 0 0 6rem;
  min-height: 60vh;
}
.adm-stats-v2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
  gap: 1.6rem;
  margin: 0 0 3rem;
}
.adm-stat-v2 {
  background: var(--white);
  border-radius: var(--r-lg);
  padding: 2rem 2.2rem;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: 1.4rem;
  transition: all var(--t-base);
  position: relative;
  overflow: hidden;
}
.adm-stat-v2::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--primary);
}
.adm-stat-v2:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}
.adm-stat-v2 .adm-stat-icon-v2 {
  width: 5rem;
  height: 5rem;
  border-radius: var(--r-md);
  background: linear-gradient(135deg, var(--green-100), var(--green-50, var(--green-tint-50)));
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  flex-shrink: 0;
}
.adm-stat-v2 .adm-stat-icon-v2.blue   { background: linear-gradient(135deg, var(--primary-mist), #dbeafe); color: var(--primary-dark); }
.adm-stat-v2 .adm-stat-icon-v2.green  { background: linear-gradient(135deg, var(--green-100), var(--green-50, var(--green-tint-50))); color: var(--green-700); }
.adm-stat-v2 .adm-stat-icon-v2.orange { background: linear-gradient(135deg, var(--amber-100), #fef3c7); color: var(--amber-700); }
.adm-stat-v2 .adm-stat-icon-v2.purple { background: linear-gradient(135deg, #ede9fe, #ddd6fe); color: #6d28d9; }
.adm-stat-v2 .adm-stat-icon-v2.red    { background: linear-gradient(135deg, #fee2e2, #fecaca); color: #b91c1c; }
.adm-stat-v2 .adm-stat-icon-v2.gold   { background: linear-gradient(135deg, #fef3c7, #fde68a); color: #a8842f; }
.adm-stat-v2 .adm-stat-value-v2 {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.1;
  margin: 0 0 .2rem;
}
.adm-stat-v2 .adm-stat-label-v2 {
  font-size: 1.2rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: .04em;
  font-weight: 700;
}

.adm-section-v2 {
  background: var(--white);
  border-radius: var(--r-lg);
  padding: 2.4rem 2.6rem;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-light);
  margin-bottom: 2.4rem;
}
.adm-section-title-v2 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 1.6rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--primary);
  display: flex;
  align-items: center;
  gap: .9rem;
}
.adm-section-title-v2 i {
  width: 3.4rem;
  height: 3.4rem;
  border-radius: var(--r-sm);
  background: var(--green-100);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}
.adm-section-title-v2 .adm-section-count {
  margin-left: auto;
  font-size: 1.1rem;
  color: var(--text-muted);
  font-weight: 600;
  background: var(--bg-alt);
  padding: .3rem .9rem;
  border-radius: var(--r-full);
}
.adm-grid-v2 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(22rem, 1fr));
  gap: 1.4rem;
}
.adm-item-v2 {
  background: var(--white);
  border: 1.5px solid var(--border-light);
  border-radius: var(--r-md);
  padding: 1.6rem 1.8rem;
  display: flex;
  align-items: center;
  gap: 1.4rem;
  text-decoration: none;
  color: var(--text);
  transition: all var(--t-base);
  position: relative;
  overflow: hidden;
  min-height: 7rem;
}
.adm-item-v2::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--primary);
  transform: scaleY(0);
  transform-origin: center;
  transition: transform var(--t-base);
}
.adm-item-v2:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  text-decoration: none;
  color: var(--primary);
}
.adm-item-v2:hover::before { transform: scaleY(1); }
.adm-item-v2 .adm-icon-v2 {
  width: 4.4rem;
  height: 4.4rem;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  flex-shrink: 0;
  background: var(--green-100);
  color: var(--primary);
  transition: all var(--t-base);
}
.adm-item-v2:hover .adm-icon-v2 {
  transform: scale(1.1) rotate(-5deg);
}
.adm-item-v2 .adm-icon-v2.ic-orange { background: linear-gradient(135deg, var(--amber-100), #fde68a); color: var(--primary); }
.adm-item-v2 .adm-icon-v2.ic-blue   { background: linear-gradient(135deg, var(--primary-mist), #dbeafe); color: var(--primary-dark); }
.adm-item-v2 .adm-icon-v2.ic-green  { background: linear-gradient(135deg, var(--green-100), var(--green-tint-100)); color: var(--green-700); }
.adm-item-v2 .adm-icon-v2.ic-red    { background: linear-gradient(135deg, #fee2e2, #fecaca); color: #b91c1c; }
.adm-item-v2 .adm-icon-v2.ic-purple { background: linear-gradient(135deg, #ede9fe, #ddd6fe); color: #6d28d9; }
.adm-item-v2 .adm-icon-v2.ic-teal   { background: linear-gradient(135deg, #ccfbf1, #99f6e4); color: #0f766e; }
.adm-item-v2 .adm-icon-v2.ic-dark   { background: linear-gradient(135deg, var(--gray-200), #cbd5e1); color: var(--gray-600); }
.adm-item-v2 .adm-icon-v2.ic-gold   { background: linear-gradient(135deg, #fef3c7, #fde68a); color: #a8842f; }
.adm-item-v2 .adm-icon-v2.ic-pos    { background: linear-gradient(135deg, #1f2937, #111827); color: var(--gold); }
.adm-item-v2 .adm-label-v2 {
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.3;
  flex: 1;
  min-width: 0;
}
.adm-item-v2.super {
  border: 2px dashed var(--gold);
  background: linear-gradient(135deg, #fffbeb, #fef3c7);
}
.adm-item-v2.super:hover {
  border-style: solid;
  background: linear-gradient(135deg, #fef3c7, #fde68a);
}

@media (max-width: 767px) {
  .adm-grid-v2 { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .adm-section-v2 { padding: 1.8rem 1.6rem; }
  .adm-item-v2 { padding: 1.2rem 1.2rem; gap: 1rem; min-height: 5.5rem; }
  .adm-item-v2 .adm-icon-v2 { width: 3.6rem; height: 3.6rem; font-size: 1.4rem; }
  .adm-item-v2 .adm-label-v2 { font-size: 1.2rem; }
  .adm-section-title-v2 { font-size: 1.4rem; }
  .adm-section-title-v2 i { width: 2.8rem; height: 2.8rem; font-size: 1.2rem; }
}
@media (max-width: 400px) {
  .adm-grid-v2 { grid-template-columns: 1fr; }
}

/* =====================================================
   SECTION 102: PORTAL TOPBAR (Student/Parent Portal Pages)
   Unified breadcrumb/header used on all portal-linked pages.
   Harmonized with portal green/blue gradient design.
   Used in:
     - portal.php (master)
     - result_list.php
     - student_enter_exam.php
     - student_exams_list.php
     - student_exam_history.php
     - student_view_attendance.php
     - student_view_assignments.php
     - student_study_flashcards.php
     - student_games.php
     - student_library.php
     - view_announcements.php
     - parent_messages.php
     - view_calendar.php
     - student_badges.php
     - student_practice_hub.php
     - parent_view_fees.php
     - parent_dashboard.php
     - student_wallet_card.php
   ===================================================== */
.ptb {
  --ptb-primary:        var(--green-800);
  --ptb-primary-dark:   var(--green-900);
  --ptb-primary-soft:   var(--green-100);
  --ptb-secondary:      var(--primary-deeper);
  --ptb-secondary-dk:   var(--navy-800);
  --ptb-accent:         var(--amber-500);
  --ptb-text:           var(--white);
  --ptb-text-muted:     rgba(255,255,255,.78);
  --ptb-border:         rgba(255,255,255,.18);
  --ptb-radius-md:      10px;
  --ptb-radius-lg:      16px;
  --ptb-radius-full:    9999px;
  --ptb-shadow-sm:      0 2px 6px rgba(0,0,0,.08);
  --ptb-shadow-md:      0 6px 18px rgba(0,0,0,.12);
  --ptb-transition:     250ms cubic-bezier(.4,0,.2,1);

  background:
    radial-gradient(circle at 88% 18%, rgba(245,158,11,.18) 0%, transparent 42%),
    radial-gradient(circle at 8% 88%, rgba(16,185,129,.14) 0%, transparent 42%),
    linear-gradient(135deg, var(--ptb-secondary) 0%, var(--ptb-secondary-dk) 60%, var(--ptb-primary-dark) 100%);
  color: var(--ptb-text);
  padding: 22px 0 26px;
  position: relative;
  overflow: hidden;
  font-family: var(--font-body);
  width: 100%;
  margin-bottom: 28px;
  box-shadow: 0 4px 18px rgba(18,42,69,.18);
}
.ptb::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(45deg, transparent 0 30px, rgba(255,255,255,.02) 30px 31px);
  pointer-events: none;
  opacity: .9;
}
.ptb .container {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}
.ptb-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  min-width: 0;
}
.ptb-main { flex: 1 1 0; min-width: 0; }

/* ── Breadcrumb ─────────────────────────────────── */
.ptb-bc {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: .2px;
}
.ptb-bc li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ptb-text-muted);
  text-transform: uppercase;
  font-size: 1.1rem;
  letter-spacing: .8px;
}
.ptb-bc li + li::before {
  content: "›";
  font-size: 1.5rem;
  color: rgba(255,255,255,.45);
  margin-right: 4px;
  font-weight: 400;
}
.ptb-bc li a {
  color: var(--ptb-text-muted);
  text-decoration: none;
  padding: 4px 10px;
  border-radius: var(--ptb-radius-full);
  background: rgba(255,255,255,.08);
  border: 1px solid transparent;
  transition: all var(--ptb-transition);
  text-transform: uppercase;
  font-size: 1.1rem;
  letter-spacing: .8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.ptb-bc li a:hover {
  color: var(--white);
  background: rgba(255,255,255,.18);
  border-color: rgba(255,255,255,.22);
  text-decoration: none;
  transform: translateY(-1px);
}
.ptb-bc li.active {
  color: var(--ptb-accent);
  font-weight: 700;
}
.ptb-bc li.active::before { color: var(--ptb-accent); }

/* ── Title row with avatar ──────────────────────── */
.ptb-title-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}
.ptb-avatar {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ptb-accent) 0%, #d97706 100%);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.6rem;
  box-shadow: 0 3px 10px rgba(0,0,0,.22), inset 0 -2px 0 rgba(0,0,0,.08);
  border: 2px solid rgba(255,255,255,.32);
  overflow: hidden;
  letter-spacing: .5px;
  position: relative;
}
.ptb-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ptb-avatar i.fa { font-size: 1.7rem; }
.ptb-title {
  margin: 0;
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.2;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--white);
  text-shadow: 0 1px 2px rgba(0,0,0,.18);
  letter-spacing: -.3px;
}
.ptb-title i.fa {
  font-size: 1.9rem;
  color: var(--ptb-accent);
  background: rgba(255,255,255,.10);
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.18);
}
.ptb-sub {
  margin: 6px 0 0;
  font-size: 1.3rem;
  color: var(--ptb-text-muted);
  font-weight: 500;
  line-height: 1.5;
  max-width: 720px;
}

/* ── Actions ────────────────────────────────────── */
.ptb-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  flex: 0 0 auto;
}
.ptb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: var(--ptb-radius-md);
  font-size: 1.3rem;
  font-weight: 700;
  text-decoration: none;
  font-family: var(--font-body);
  cursor: pointer;
  transition: all var(--ptb-transition);
  border: 2px solid transparent;
  line-height: 1.2;
  white-space: nowrap;
  text-transform: none;
  letter-spacing: 0;
}
.ptb-btn i { font-size: 1.4rem; }
.ptb-btn:hover {
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: var(--ptb-shadow-md);
}
.ptb-btn:active { transform: translateY(0); }
.ptb-btn:focus-visible {
  outline: 3px solid var(--ptb-accent);
  outline-offset: 2px;
}
.ptb-btn.btn-sm { padding: 8px 14px; font-size: 1.2rem; }

.ptb-btn.btn-portal {
  background: linear-gradient(135deg, var(--ptb-accent) 0%, #b45309 100%);
  color: var(--white);
  border-color: rgba(255,255,255,.22);
  box-shadow: 0 3px 10px rgba(245,158,11,.32);
}
.ptb-btn.btn-portal:hover {
  color: var(--white);
  background: linear-gradient(135deg, #f59e0b 0%, var(--ptb-accent) 100%);
  box-shadow: 0 6px 18px rgba(245,158,11,.45);
}

.ptb-btn.btn-ghost {
  background: rgba(255,255,255,.10);
  color: var(--white);
  border-color: rgba(255,255,255,.20);
}
.ptb-btn.btn-ghost:hover {
  background: rgba(255,255,255,.22);
  color: var(--white);
  border-color: rgba(255,255,255,.34);
}

.ptb-btn.btn-gold {
  background: linear-gradient(135deg, var(--gold) 0%, #a8842f 100%);
  color: var(--white);
  border-color: rgba(255,255,255,.20);
}
.ptb-btn.btn-gold:hover {
  color: var(--white);
  background: linear-gradient(135deg, #d4af55 0%, var(--gold) 100%);
}

.ptb-btn.btn-danger {
  background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
  color: var(--white);
  border-color: rgba(255,255,255,.20);
}
.ptb-btn.btn-danger:hover {
  color: var(--white);
  background: linear-gradient(135deg, #f87171 0%, #ef4444 100%);
}

/* ── Responsive ─────────────────────────────────── */
@media (max-width: 900px) {
  .ptb { padding: 18px 0 22px; margin-bottom: 22px; }
  .ptb-inner { flex-direction: column; align-items: stretch; gap: 14px; }
  .ptb-actions { justify-content: flex-start; }
  .ptb-title { font-size: 2rem; }
  .ptb-title i.fa { width: 38px; height: 38px; font-size: 1.7rem; }
  .ptb-avatar { width: 44px; height: 44px; flex-basis: 44px; font-size: 1.5rem; }
  .ptb-sub { font-size: 1.25rem; }
}
@media (max-width: 600px) {
  .ptb { padding: 16px 0 20px; margin-bottom: 18px; }
  .ptb .container { padding: 0 12px; }
  .ptb-bc { font-size: 1rem; gap: 4px; margin-bottom: 10px; }
  .ptb-bc li { font-size: 1rem; letter-spacing: .5px; }
  .ptb-bc li a { padding: 3px 8px; font-size: 1rem; }
  .ptb-title-row { gap: 10px; }
  .ptb-title { font-size: 1.7rem; gap: 8px; }
  .ptb-title i.fa { width: 34px; height: 34px; font-size: 1.5rem; border-radius: 10px; }
  .ptb-avatar { width: 40px; height: 40px; flex-basis: 40px; font-size: 1.4rem; }
  .ptb-sub { font-size: 1.15rem; }
  .ptb-actions { gap: 6px; }
  .ptb-btn.btn-sm { padding: 7px 12px; font-size: 1.1rem; }
  .ptb-btn.btn-sm span { display: none; }   /* hide label on tiny screens, keep icon */
  .ptb-btn.btn-ghost { padding: 7px 10px; }
  .ptb-btn.btn-portal { padding: 7px 12px; }
}
@media (max-width: 380px) {
  .ptb-title { font-size: 1.5rem; }
  .ptb-avatar { width: 36px; height: 36px; flex-basis: 36px; font-size: 1.3rem; }
  .ptb-title i.fa { width: 30px; height: 30px; font-size: 1.3rem; }
  .ptb-bc li a span { display: none; }
}

/* ── Print ──────────────────────────────────────── */
@media print {
  .ptb { display: none !important; }
}

/* =====================================================
   SECTION 103: PORTAL PAGE BODY (sub-pages under portal)
   Container & card helpers for portal-linked pages.
   Each page can use:
     <div class="ppb-wrap">
       <div class="container">
         ...page content...
       </div>
     </div>
   ===================================================== */
.ppb-wrap {
  background: var(--gray-50);
  min-height: 60vh;
  padding: 0 0 60px;
  font-family: var(--font-body);
  width: 100%;
}
.ppb-wrap .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

.ppb-card {
  background: var(--white);
  border-radius: 14px;
  padding: 22px 24px;
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
  border: 1px solid var(--gray-200);
  margin-bottom: 18px;
  transition: all 250ms cubic-bezier(.4,0,.2,1);
}
.ppb-card:hover {
  box-shadow: 0 6px 22px rgba(0,0,0,.08);
  transform: translateY(-1px);
}
.ppb-card-head {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--green-900);
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--gray-100);
}
.ppb-card-head i.fa {
  color: var(--green-700);
  font-size: 1.4rem;
  background: var(--green-100);
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

@media (max-width: 600px) {
  .ppb-wrap .container { padding: 0 12px; }
  .ppb-card { padding: 16px 14px; border-radius: 12px; }
  .ppb-card-head { font-size: 1.3rem; }
  .ppb-card-head i.fa { width: 30px; height: 30px; font-size: 1.2rem; }
}

/* =====================================================
   SECTION 104: PORTAL v2 ENHANCEMENTS (portal.php)
   New card patterns, stats row, navigation, alerts,
   and a beautiful "coming up next" sidebar block.
   ===================================================== */

/* ── Enhanced banner gradient ─────────────────────── */
.portal-wrap .p-banner {
  background:
    radial-gradient(circle at 88% 14%, rgba(245,158,11,.22) 0%, transparent 45%),
    radial-gradient(circle at 8% 90%, rgba(16,185,129,.18) 0%, transparent 45%),
    linear-gradient(135deg, var(--portal-secondary) 0%, var(--portal-secondary-dk) 55%, var(--portal-primary-dark) 100%) !important;
  position: relative;
}
.portal-wrap .p-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(45deg, transparent 0 36px, rgba(255,255,255,.025) 36px 37px);
  pointer-events: none;
}

/* ── Stat cards: lift on hover, color-coded top bar ── */
.portal-wrap .p-stat-card {
  position: relative;
  overflow: hidden;
  cursor: default;
  transition: all var(--portal-transition);
}
.portal-wrap .p-stat-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--portal-primary), var(--portal-accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--portal-transition);
}
.portal-wrap .p-stat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--portal-shadow-lg);
}
.portal-wrap .p-stat-card:hover::before { transform: scaleX(1); }

/* ── Module card: ripple, gradient hover, scale icon ── */
.portal-wrap .p-module {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.portal-wrap .p-module::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--portal-primary) 0%, var(--portal-primary-dark) 100%);
  opacity: 0;
  z-index: -1;
  transition: opacity var(--portal-transition);
  border-radius: inherit;
}
.portal-wrap .p-module:hover {
  color: var(--white);
  transform: translateY(-4px);
  box-shadow: var(--portal-shadow-lg);
  border-color: var(--portal-primary);
}
.portal-wrap .p-module:hover::after { opacity: 1; }
.portal-wrap .p-module:hover .p-module-icon {
  background: rgba(255,255,255,.18) !important;
  color: var(--white);
  transform: scale(1.1) rotate(-3deg);
}
.portal-wrap .p-module:hover .p-module-label { color: var(--white); }
.portal-wrap .p-module .p-module-icon {
  transition: all var(--portal-transition);
}

/* ── Quick action row in banner (logout, print, etc.) ── */
.portal-wrap .p-banner-actions {
  position: absolute;
  top: 18px;
  right: 18px;
  display: flex;
  gap: 8px;
  z-index: 2;
}
.portal-wrap .p-banner-actions a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: rgba(255,255,255,.12);
  color: var(--white);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px;
  font-size: 1.2rem;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--portal-transition);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.portal-wrap .p-banner-actions a:hover {
  background: rgba(255,255,255,.22);
  color: var(--white);
  text-decoration: none;
  transform: translateY(-1px);
}
.portal-wrap .p-banner-actions a i { font-size: 1.1rem; }

/* ── Beautiful active/inactive badge ────────────── */
.portal-wrap .p-banner .p-chip {
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  font-weight: 600;
  letter-spacing: .3px;
}

/* ── Section title with gradient bar ─────────────── */
.portal-wrap .p-section-title {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding-left: 0;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--portal-text);
  margin: 0 0 16px;
  text-transform: none;
  letter-spacing: 0;
}
.portal-wrap .p-section-title::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 22px;
  background: linear-gradient(180deg, var(--portal-primary), var(--portal-accent));
  border-radius: 4px;
  flex-shrink: 0;
}
.portal-wrap .p-section-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--portal-border) 0%, transparent 100%);
  margin-left: 6px;
  min-width: 24px;
}

/* ── "Welcome" notice ─────────────────────────── */
.portal-wrap .p-welcome {
  background: linear-gradient(135deg, var(--green-tint-50) 0%, #f0f9ff 100%);
  border: 1px solid var(--portal-primary-soft);
  border-left: 4px solid var(--portal-primary);
  border-radius: 10px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}
.portal-wrap .p-welcome-icon {
  width: 42px; height: 42px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--portal-primary), var(--portal-primary-dark));
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.7rem;
  flex-shrink: 0;
  box-shadow: 0 3px 8px rgba(12,84,48,.18);
}
.portal-wrap .p-welcome-text { flex: 1; min-width: 0; }
.portal-wrap .p-welcome-text strong {
  display: block;
  color: var(--portal-primary-dark);
  font-size: 1.4rem;
  margin-bottom: 2px;
}
.portal-wrap .p-welcome-text span { color: var(--portal-text-muted); font-size: 1.25rem; }

/* ── Inactive portal alert (enhanced) ─────────── */
.portal-wrap .p-inactive-banner {
  background: linear-gradient(135deg, #fef2f2 0%, #fff7ed 100%);
  border: 1px solid #fecaca;
  border-left: 5px solid var(--portal-danger);
  border-radius: 10px;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  color: #991b1b;
  font-size: 1.35rem;
}
.portal-wrap .p-inactive-banner strong { display: block; font-size: 1.5rem; margin-bottom: 2px; }

/* ── Sidebar quick links (added nav block) ─────── */
.portal-wrap .p-side-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 14px;
  padding: 12px;
  background: var(--gray-50);
  border-radius: 10px;
  border: 1px solid var(--gray-100);
}
.portal-wrap .p-side-nav-title {
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--portal-text-muted);
  margin: 0 0 6px;
  padding: 0 4px;
}
.portal-wrap .p-side-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--portal-text);
  text-decoration: none;
  transition: all var(--portal-transition);
  background: var(--white);
  border: 1px solid var(--gray-100);
}
.portal-wrap .p-side-nav a i {
  width: 22px;
  text-align: center;
  color: var(--portal-primary);
  font-size: 1.2rem;
}
.portal-wrap .p-side-nav a:hover {
  background: var(--portal-primary);
  color: var(--white);
  border-color: var(--portal-primary);
  transform: translateX(2px);
  text-decoration: none;
}
.portal-wrap .p-side-nav a:hover i { color: var(--white); }

/* ── Upcoming / announcements preview block ────── */
.portal-wrap .p-side-feed {
  margin-top: 16px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 14px;
  box-shadow: var(--portal-shadow-sm);
}
.portal-wrap .p-side-feed-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--portal-text);
  margin: 0 0 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.portal-wrap .p-side-feed-title i { color: var(--portal-accent); font-size: 1.2rem; }
.portal-wrap .p-side-feed-item {
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-100);
  font-size: 1.2rem;
  line-height: 1.45;
  color: var(--portal-text);
}
.portal-wrap .p-side-feed-item:last-child { border-bottom: none; }
.portal-wrap .p-side-feed-item .pf-meta {
  display: block;
  font-size: 1.05rem;
  color: var(--portal-text-muted);
  margin-top: 2px;
}
.portal-wrap .p-side-feed-empty {
  font-size: 1.2rem;
  color: var(--portal-text-muted);
  text-align: center;
  padding: 12px;
  font-style: italic;
}

/* ── Responsive tweaks for portal v2 ─────────── */
@media (max-width: 900px) {
  .portal-wrap .p-banner-actions {
    position: static;
    margin-top: 12px;
    flex-wrap: wrap;
  }
}
@media (max-width: 600px) {
  .portal-wrap .p-welcome { padding: 12px 14px; gap: 10px; }
  .portal-wrap .p-welcome-icon { width: 36px; height: 36px; font-size: 1.4rem; }
  .portal-wrap .p-welcome-text strong { font-size: 1.3rem; }
  .portal-wrap .p-welcome-text span { font-size: 1.15rem; }
  .portal-wrap .p-side-nav a { padding: 8px 10px; font-size: 1.2rem; }
  .portal-wrap .p-section-title { font-size: 1.4rem; }
}
@media print {
  .portal-wrap .p-banner-actions,
  .portal-wrap .p-welcome,
  .portal-wrap .p-side-nav,
  .portal-wrap .p-side-feed { display: none !important; }
}
