/*
Theme Name: EduPortal School Management Theme
Theme URI: https://aaustudio.com
Author: AAU Studio
Author URI: https://aaustudio.com
Description: A complete school management WordPress theme with admission portal, payment gateway, result checker, student dashboard, fee management, and full school administration features.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: eduportal
Tags: school, education, management, admission, payment, results
*/

/* ============================================================
   GLOBAL RESET & CSS VARIABLES
   ============================================================ */
:root {
  --primary:       #0B2447;
  --primary-light: #19376D;
  --accent:        #C9A84C;
  --accent-light:  #E8C97E;
  --success:       #2ECC71;
  --danger:        #E74C3C;
  --warning:       #F39C12;
  --info:          #3498DB;
  --white:         #FFFFFF;
  --off-white:     #F8F9FC;
  --light-gray:    #EEF1F6;
  --mid-gray:      #B0BAC9;
  --dark-gray:     #4A5568;
  --text:          #1A202C;
  --border:        #E2E8F0;
  --shadow-sm:     0 1px 3px rgba(0,0,0,.08);
  --shadow-md:     0 4px 16px rgba(11,36,71,.12);
  --shadow-lg:     0 8px 32px rgba(11,36,71,.18);
  --radius-sm:     6px;
  --radius-md:     12px;
  --radius-lg:     20px;
  --transition:    all .25s cubic-bezier(.4,0,.2,1);
  --font-heading:  'Playfair Display', Georgia, serif;
  --font-body:     'DM Sans', system-ui, sans-serif;
  --font-mono:     'JetBrains Mono', monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--off-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent); }

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

h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-heading);
  line-height: 1.25;
  color: var(--primary);
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-wide { max-width: 1400px; margin: 0 auto; padding: 0 32px; }

.flex  { display: flex; }
.grid  { display: grid; }
.hidden { display: none; }

.text-center { text-align: center; }
.text-right  { text-align: right; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: .9rem; font-weight: 600;
  cursor: pointer; border: 2px solid transparent;
  transition: var(--transition); white-space: nowrap;
}
.btn-primary   { background: var(--primary); color: var(--white); border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-light); color: var(--white); border-color: var(--primary-light); }
.btn-accent    { background: var(--accent); color: var(--primary); border-color: var(--accent); }
.btn-accent:hover { background: var(--accent-light); }
.btn-outline   { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: var(--white); }
.btn-danger    { background: var(--danger); color: var(--white); }
.btn-sm        { padding: 8px 18px; font-size: .82rem; }
.btn-lg        { padding: 16px 36px; font-size: 1rem; }
.btn-block     { width: 100%; justify-content: center; }

.badge {
  display: inline-block; padding: 3px 10px; border-radius: 20px;
  font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .5px;
}
.badge-success { background: #D4EDDA; color: #155724; }
.badge-danger  { background: #F8D7DA; color: #721C24; }
.badge-warning { background: #FFF3CD; color: #856404; }
.badge-info    { background: #D1ECF1; color: #0C5460; }
.badge-primary { background: #CCE5FF; color: #004085; }

.card {
  background: var(--white); border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm); border: 1px solid var(--border);
  overflow: hidden; transition: var(--transition);
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card-body  { padding: 24px; }
.card-header { padding: 20px 24px; border-bottom: 1px solid var(--border); background: var(--off-white); }
.card-footer { padding: 16px 24px; border-top: 1px solid var(--border); }

.form-group  { margin-bottom: 20px; }
.form-label  { display: block; font-weight: 600; font-size: .88rem; color: var(--dark-gray); margin-bottom: 6px; }
.form-label .required { color: var(--danger); }
.form-control {
  width: 100%; padding: 11px 16px; border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); font-family: var(--font-body); font-size: .92rem;
  color: var(--text); background: var(--white); transition: var(--transition);
}
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(11,36,71,.1); }
.form-control.error { border-color: var(--danger); }
.form-hint { font-size: .8rem; color: var(--mid-gray); margin-top: 4px; }
.form-error { font-size: .8rem; color: var(--danger); margin-top: 4px; font-weight: 600; }
select.form-control { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%234A5568' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 44px; }

.alert {
  padding: 14px 18px; border-radius: var(--radius-sm); font-size: .9rem;
  margin-bottom: 20px; border-left: 4px solid transparent;
}
.alert-success { background: #D4EDDA; color: #155724; border-color: var(--success); }
.alert-danger  { background: #F8D7DA; color: #721C24; border-color: var(--danger); }
.alert-warning { background: #FFF3CD; color: #856404; border-color: var(--warning); }
.alert-info    { background: #D1ECF1; color: #0C5460; border-color: var(--info); }

.table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
thead th { background: var(--primary); color: var(--white); padding: 13px 16px; text-align: left; font-weight: 600; font-size: .82rem; text-transform: uppercase; letter-spacing: .6px; }
tbody td { padding: 12px 16px; border-bottom: 1px solid var(--border); }
tbody tr:hover { background: var(--off-white); }
tbody tr:last-child td { border-bottom: none; }

.stat-card {
  background: var(--white); border-radius: var(--radius-md);
  padding: 24px; border: 1px solid var(--border);
  display: flex; align-items: center; gap: 18px;
}
.stat-card .stat-icon {
  width: 56px; height: 56px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; flex-shrink: 0;
}
.stat-card .stat-value { font-size: 1.8rem; font-weight: 700; color: var(--primary); line-height: 1; }
.stat-card .stat-label { font-size: .82rem; color: var(--mid-gray); margin-top: 4px; font-weight: 500; text-transform: uppercase; letter-spacing: .5px; }

.section-title {
  font-size: 2rem; color: var(--primary); margin-bottom: 8px;
}
.section-subtitle { color: var(--dark-gray); font-size: 1.05rem; }
.section-divider { width: 60px; height: 4px; background: var(--accent); border-radius: 2px; margin: 12px 0 24px; }

/* Page header */
.page-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  padding: 60px 0 50px; position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: var(--white); font-size: 2.4rem; }
.page-hero .breadcrumb { color: rgba(255,255,255,.7); font-size: .88rem; margin-top: 10px; }
.page-hero .breadcrumb a { color: var(--accent-light); }
.page-hero .breadcrumb span { margin: 0 8px; }

/* ============================================================
   HEADER / NAVIGATION
   ============================================================ */
#site-header {
  background: var(--white); box-shadow: var(--shadow-sm);
  position: sticky; top: 0; z-index: 1000;
}
.header-top {
  background: var(--primary); padding: 8px 0;
  font-size: .82rem; color: rgba(255,255,255,.8);
}
.header-top .container { display: flex; justify-content: space-between; align-items: center; }
.header-top a { color: var(--accent-light); }
.header-top .header-top-right { display: flex; gap: 20px; align-items: center; }

.header-main .container {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 24px; gap: 24px;
}
.site-logo { display: flex; align-items: center; gap: 12px; }
.site-logo .logo-mark {
  width: 48px; height: 48px; background: var(--primary);
  border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center;
  color: var(--accent); font-size: 1.4rem; font-weight: 800; font-family: var(--font-heading);
}
.site-logo .logo-text { line-height: 1.2; }
.site-logo .school-name { font-family: var(--font-heading); font-size: 1.1rem; font-weight: 700; color: var(--primary); }
.site-logo .school-tagline { font-size: .75rem; color: var(--mid-gray); }

#main-nav ul { list-style: none; display: flex; gap: 4px; align-items: center; }
#main-nav ul li a {
  display: block; padding: 9px 14px; border-radius: var(--radius-sm);
  font-size: .88rem; font-weight: 600; color: var(--dark-gray);
  transition: var(--transition);
}
#main-nav ul li a:hover,
#main-nav ul li.current-menu-item > a { color: var(--primary); background: var(--light-gray); }
#main-nav .has-dropdown { position: relative; }
#main-nav .dropdown {
  position: absolute; top: 100%; left: 0; min-width: 200px;
  background: var(--white); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg); border: 1px solid var(--border);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: var(--transition); z-index: 100; list-style: none;
}
#main-nav .has-dropdown:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
#main-nav .dropdown li a { padding: 10px 16px; border-radius: 0; font-size: .86rem; }

.header-actions { display: flex; align-items: center; gap: 10px; }
.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--primary); margin: 5px 0; transition: var(--transition); }

/* ============================================================
   HERO SECTION (Homepage)
   ============================================================ */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, #0d2e5e 50%, var(--primary-light) 100%);
  min-height: 600px; display: flex; align-items: center;
  position: relative; overflow: hidden;
}
.hero::after {
  content: ''; position: absolute; right: -100px; top: -100px;
  width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(201,168,76,.15) 0%, transparent 70%);
}
.hero-content { position: relative; z-index: 1; max-width: 580px; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); font-size: .85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px; }
.hero h1 { font-size: 3.2rem; color: var(--white); line-height: 1.15; margin-bottom: 20px; }
.hero h1 em { color: var(--accent); font-style: normal; }
.hero p { color: rgba(255,255,255,.75); font-size: 1.05rem; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 32px; margin-top: 48px; padding-top: 32px; border-top: 1px solid rgba(255,255,255,.15); }
.hero-stat .number { font-family: var(--font-heading); font-size: 2rem; font-weight: 700; color: var(--accent); }
.hero-stat .label  { font-size: .8rem; color: rgba(255,255,255,.6); text-transform: uppercase; letter-spacing: .5px; }

/* Quick Access Cards */
.quick-access { background: var(--white); padding: 0; }
.quick-access-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 4px solid var(--accent);
}
.quick-access-item {
  padding: 32px 24px; text-align: center; border-right: 1px solid var(--border);
  transition: var(--transition); cursor: pointer;
}
.quick-access-item:last-child { border-right: none; }
.quick-access-item:hover { background: var(--primary); }
.quick-access-item:hover .qa-icon,
.quick-access-item:hover h3,
.quick-access-item:hover p { color: var(--white) !important; }
.quick-access-item:hover .qa-icon { color: var(--accent) !important; }
.qa-icon { font-size: 2.2rem; margin-bottom: 12px; color: var(--primary); display: block; }
.quick-access-item h3 { font-size: 1rem; color: var(--primary); margin-bottom: 6px; }
.quick-access-item p { font-size: .82rem; color: var(--mid-gray); }

/* ============================================================
   FOOTER
   ============================================================ */
#site-footer { background: var(--primary); color: rgba(255,255,255,.8); }
.footer-main { padding: 60px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand .school-name { color: var(--white); font-size: 1.2rem; margin-bottom: 12px; }
.footer-brand p { font-size: .88rem; line-height: 1.7; margin-bottom: 20px; }
.footer-col h4 { color: var(--accent); font-size: .85rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { color: rgba(255,255,255,.7); font-size: .88rem; }
.footer-col ul li a:hover { color: var(--accent-light); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 20px 0; display: flex; justify-content: space-between; align-items: center; font-size: .82rem; }

/* ============================================================
   PORTAL LAYOUT (Dashboard / Portal Pages)
   ============================================================ */
.portal-layout { display: flex; min-height: 100vh; }

.portal-sidebar {
  width: 260px; background: var(--primary); flex-shrink: 0;
  position: fixed; top: 0; left: 0; height: 100vh;
  overflow-y: auto; z-index: 200; transition: var(--transition);
}
.sidebar-header {
  padding: 24px 20px; border-bottom: 1px solid rgba(255,255,255,.1);
}
.sidebar-user { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid rgba(255,255,255,.1); }
.sidebar-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--accent); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1rem; flex-shrink: 0;
}
.sidebar-user-info .name  { color: var(--white); font-weight: 600; font-size: .92rem; }
.sidebar-user-info .role  { color: rgba(255,255,255,.5); font-size: .78rem; }

.sidebar-nav { padding: 16px 12px; }
.sidebar-nav-group { margin-bottom: 24px; }
.sidebar-nav-group-title {
  color: rgba(255,255,255,.4); font-size: .7rem; text-transform: uppercase;
  letter-spacing: 1.2px; padding: 0 10px; margin-bottom: 8px; font-weight: 700;
}
.sidebar-nav a {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  border-radius: var(--radius-sm); color: rgba(255,255,255,.7);
  font-size: .88rem; transition: var(--transition); margin-bottom: 2px;
}
.sidebar-nav a:hover, .sidebar-nav a.active {
  background: rgba(255,255,255,.1); color: var(--white);
}
.sidebar-nav a.active { background: var(--accent); color: var(--primary); font-weight: 600; }
.sidebar-nav a .nav-icon { width: 18px; text-align: center; font-size: 1rem; flex-shrink: 0; }
.sidebar-nav a .badge { margin-left: auto; font-size: .7rem; padding: 2px 8px; }

.portal-main { margin-left: 260px; flex: 1; display: flex; flex-direction: column; }

.portal-topbar {
  background: var(--white); border-bottom: 1px solid var(--border);
  padding: 16px 32px; display: flex; align-items: center;
  justify-content: space-between; position: sticky; top: 0; z-index: 100;
}
.portal-topbar .topbar-title h2 { font-size: 1.2rem; color: var(--primary); }
.portal-topbar .topbar-title p  { font-size: .82rem; color: var(--mid-gray); }
.topbar-actions { display: flex; align-items: center; gap: 16px; }
.topbar-actions .notification-btn {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--off-white); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; position: relative; font-size: 1rem; color: var(--dark-gray);
}
.topbar-actions .notification-btn .notif-dot {
  width: 8px; height: 8px; background: var(--danger);
  border-radius: 50%; position: absolute; top: 8px; right: 8px;
}

.portal-content { padding: 32px; flex: 1; }

/* ============================================================
   DASHBOARD SPECIFIC
   ============================================================ */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 32px; }
.dashboard-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; }

.activity-feed { list-style: none; }
.activity-feed li {
  display: flex; gap: 14px; padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.activity-feed li:last-child { border-bottom: none; }
.activity-dot {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .9rem; flex-shrink: 0; margin-top: 2px;
}
.activity-feed .activity-text { font-size: .88rem; color: var(--dark-gray); }
.activity-feed .activity-time { font-size: .78rem; color: var(--mid-gray); margin-top: 2px; }

.quick-links-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.quick-link-btn {
  padding: 16px; border-radius: var(--radius-sm); text-align: center;
  background: var(--off-white); border: 1px solid var(--border);
  transition: var(--transition); cursor: pointer; display: block;
}
.quick-link-btn:hover { background: var(--primary); color: var(--white); border-color: var(--primary); }
.quick-link-btn:hover .ql-icon, .quick-link-btn:hover .ql-label { color: var(--white) !important; }
.quick-link-btn .ql-icon { font-size: 1.6rem; color: var(--primary); margin-bottom: 6px; }
.quick-link-btn .ql-label { font-size: .8rem; font-weight: 600; color: var(--dark-gray); }

/* ============================================================
   ADMISSION PORTAL
   ============================================================ */
.admission-steps {
  display: flex; gap: 0; margin-bottom: 40px;
  background: var(--white); border-radius: var(--radius-md);
  border: 1px solid var(--border); overflow: hidden;
}
.admission-step {
  flex: 1; padding: 20px 16px; text-align: center;
  border-right: 1px solid var(--border); position: relative;
  transition: var(--transition);
}
.admission-step:last-child { border-right: none; }
.admission-step.active { background: var(--primary); }
.admission-step.done { background: var(--success); }
.admission-step .step-num {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--light-gray); color: var(--dark-gray);
  font-weight: 700; font-size: .9rem; display: flex; align-items: center;
  justify-content: center; margin: 0 auto 8px;
}
.admission-step.active .step-num { background: var(--accent); color: var(--primary); }
.admission-step.done .step-num { background: var(--white); color: var(--success); }
.admission-step .step-label { font-size: .8rem; font-weight: 600; color: var(--dark-gray); }
.admission-step.active .step-label { color: var(--white); }
.admission-step.done .step-label { color: var(--white); }

.form-section { background: var(--white); border-radius: var(--radius-md); border: 1px solid var(--border); margin-bottom: 24px; }
.form-section-header { padding: 20px 24px; border-bottom: 1px solid var(--border); background: var(--off-white); display: flex; align-items: center; gap: 12px; }
.form-section-header h3 { font-size: 1rem; color: var(--primary); margin: 0; }
.form-section-body { padding: 24px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-row-3 { grid-template-columns: 1fr 1fr 1fr; }
.photo-upload-area {
  border: 2px dashed var(--border); border-radius: var(--radius-md);
  padding: 32px; text-align: center; cursor: pointer; transition: var(--transition);
  background: var(--off-white);
}
.photo-upload-area:hover { border-color: var(--primary); background: var(--light-gray); }
.photo-upload-area .upload-icon { font-size: 2.5rem; color: var(--mid-gray); margin-bottom: 8px; }

/* ============================================================
   RESULT CHECKER
   ============================================================ */
.result-header { background: var(--primary); padding: 32px; border-radius: var(--radius-md); color: var(--white); margin-bottom: 24px; display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 20px; }
.result-header .student-info h2 { color: var(--white); font-size: 1.4rem; }
.result-header .student-info p { color: rgba(255,255,255,.7); font-size: .88rem; }
.result-header .result-meta { text-align: right; }
.result-header .result-meta .term-badge { background: var(--accent); color: var(--primary); padding: 6px 16px; border-radius: 20px; font-size: .82rem; font-weight: 700; }
.result-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.result-summary-card { text-align: center; padding: 20px 12px; background: var(--white); border-radius: var(--radius-md); border: 1px solid var(--border); }
.result-summary-card .value { font-size: 1.8rem; font-weight: 700; color: var(--primary); font-family: var(--font-heading); }
.result-summary-card .label { font-size: .78rem; color: var(--mid-gray); margin-top: 4px; text-transform: uppercase; letter-spacing: .5px; }
.grade-chip {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%; font-weight: 700; font-size: .88rem;
}
.grade-A { background: #D4EDDA; color: #155724; }
.grade-B { background: #CCE5FF; color: #004085; }
.grade-C { background: #FFF3CD; color: #856404; }
.grade-D { background: #FFEEBA; color: #856404; }
.grade-F { background: #F8D7DA; color: #721C24; }

/* Score bar */
.score-bar { width: 100%; height: 6px; background: var(--light-gray); border-radius: 3px; overflow: hidden; }
.score-bar-fill { height: 100%; border-radius: 3px; transition: width .5s ease; }

/* ============================================================
   PAYMENT PORTAL
   ============================================================ */
.payment-layout { display: grid; grid-template-columns: 1fr 380px; gap: 24px; }
.fee-items { list-style: none; }
.fee-item { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--border); }
.fee-item:last-child { border-bottom: none; }
.fee-item-name { font-weight: 600; font-size: .92rem; }
.fee-item-desc { font-size: .8rem; color: var(--mid-gray); }
.fee-item-amount { font-weight: 700; font-size: .95rem; color: var(--primary); }
.fee-item.outstanding .fee-item-amount { color: var(--danger); }
.fee-item.paid .fee-item-amount { color: var(--success); }
.payment-summary { background: var(--primary); color: var(--white); border-radius: var(--radius-md); padding: 28px; position: sticky; top: 100px; }
.payment-summary h3 { color: var(--white); margin-bottom: 20px; }
.payment-summary-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.1); font-size: .9rem; }
.payment-summary-row .label { color: rgba(255,255,255,.7); }
.payment-summary-row .value { color: var(--white); font-weight: 600; }
.payment-summary-row.total { border-bottom: none; padding-top: 16px; }
.payment-summary-row.total .label { color: var(--accent); font-weight: 700; font-size: 1rem; }
.payment-summary-row.total .value { color: var(--accent); font-weight: 700; font-size: 1.2rem; }
.payment-methods { display: flex; flex-direction: column; gap: 10px; margin: 20px 0; }
.payment-method-option { display: flex; align-items: center; gap: 12px; padding: 14px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15); border-radius: var(--radius-sm); cursor: pointer; transition: var(--transition); }
.payment-method-option:hover, .payment-method-option.selected { background: rgba(201,168,76,.2); border-color: var(--accent); }
.payment-method-option .method-icon { font-size: 1.4rem; }
.payment-method-option .method-name { color: var(--white); font-size: .88rem; font-weight: 600; }

/* Receipt */
.receipt {
  background: var(--white); border-radius: var(--radius-md);
  border: 2px solid var(--border); padding: 40px;
  max-width: 600px; margin: 0 auto;
}
.receipt-header { text-align: center; border-bottom: 2px dashed var(--border); padding-bottom: 24px; margin-bottom: 24px; }
.receipt-header .receipt-logo { width: 60px; height: 60px; background: var(--primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; color: var(--accent); font-size: 1.6rem; font-weight: 800; font-family: var(--font-heading); }
.receipt-status { display: inline-flex; align-items: center; gap: 8px; background: #D4EDDA; color: #155724; padding: 10px 24px; border-radius: 30px; font-weight: 700; margin-top: 16px; }
.receipt-body .receipt-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: .9rem; }
.receipt-body .receipt-row .key { color: var(--mid-gray); }
.receipt-body .receipt-row .val { font-weight: 600; }
.receipt-total { background: var(--primary); color: var(--white); padding: 16px 20px; border-radius: var(--radius-sm); margin-top: 20px; display: flex; justify-content: space-between; align-items: center; }
.receipt-total .key { font-size: .9rem; color: rgba(255,255,255,.7); }
.receipt-total .val { font-size: 1.4rem; font-weight: 700; color: var(--accent); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .dashboard-grid { grid-template-columns: 1fr; }
  .payment-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .quick-access-grid { grid-template-columns: repeat(2, 1fr); }
  .result-summary { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .portal-sidebar { transform: translateX(-100%); }
  .portal-sidebar.open { transform: translateX(0); }
  .portal-main { margin-left: 0; }
  .portal-content { padding: 20px 16px; }
  .hero h1 { font-size: 2.2rem; }
  .form-row, .form-row-3 { grid-template-columns: 1fr; }
  .admission-steps { flex-direction: column; }
  #main-nav { display: none; }
  #main-nav.open { display: block; position: absolute; top: 100%; left: 0; right: 0; background: var(--white); border-top: 1px solid var(--border); box-shadow: var(--shadow-lg); }
  #main-nav.open ul { flex-direction: column; padding: 12px; }
  .hamburger { display: block; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .quick-access-grid { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 1.8rem; }
  .hero-stats { gap: 20px; }
}

/* ============================================================
   PRINT STYLES (Receipt/Result)
   ============================================================ */
@media print {
  .portal-sidebar, .portal-topbar, .btn, .no-print { display: none !important; }
  .portal-main { margin-left: 0; }
  body { background: white; }
}
