/* ============================================================
   EduVisa Consultancy — Student Registration Portal
   Matching: eduvisaconsultancy.com branding
   Colors: Navy #133880, Red #E53935, Gold #F4A300
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

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

:root {
  --navy:          #133880;
  --navy-dark:     #0C255A;
  --navy-light:    #EBF1FA;
  --red:           #E53935;
  --red-dark:      #C62828;
  --gold:          #F4A300;
  --gold-dark:     #D48F00;
  --success:       #2E7D32;
  --success-light: #E8F5E9;
  --warning:       #E65100;
  --warning-light: #FFF3E0;
  --error:         #C62828;
  --error-light:   #FFEBEE;
  --bg:            #F4F6FC;
  --card:          #FFFFFF;
  --text:          #1C2B45;
  --muted:         #6B7A99;
  --border:        #D5DCF0;
  --radius:        10px;
  --radius-lg:     16px;
  --shadow:        0 4px 20px rgba(19,56,128,.10);
  --shadow-lg:     0 8px 40px rgba(19,56,128,.16);
  --font:          'Inter', 'Segoe UI', Arial, sans-serif;
}

html { scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--bg); color: var(--text); min-height: 100vh; font-size: 14.5px; line-height: 1.6; }

/* =====================================================
   ADMIN LOGIN SCREEN
===================================================== */
#login-screen, #student-landing-screen {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 55%, #1A5CCE 100%);
  padding: 20px;
  position: relative;
  overflow: hidden;
}

#login-screen::before, #student-landing-screen::before {
  content: '';
  position: absolute;
  width: 500px; height: 500px;
  background: rgba(255,255,255,.04);
  border-radius: 50%;
  top: -150px; right: -100px;
}

#login-screen::after, #student-landing-screen::after {
  content: '';
  position: absolute;
  width: 350px; height: 350px;
  background: rgba(244,163,0,.06);
  border-radius: 50%;
  bottom: -100px; left: -80px;
}

.login-mode-toggle {
  display: flex;
  gap: 8px;
  background: var(--navy-light);
  padding: 5px;
  border-radius: var(--radius);
  margin-bottom: 22px;
}

.login-mode-toggle .mode-btn {
  flex: 1;
  padding: 10px 12px;
  border: none;
  background: transparent;
  border-radius: 8px;
  font-family: var(--font);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
  transition: all .15s;
}

.login-mode-toggle .mode-btn:hover { color: var(--navy); }

.login-mode-toggle .mode-btn.selected {
  background: var(--navy);
  color: #fff;
  box-shadow: var(--shadow);
}

.login-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 44px 40px;
  width: 100%;
  max-width: 440px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.login-logo-img {
  height: 64px;
  object-fit: contain;
  margin-bottom: 20px;
}

.login-card h2 {
  font-size: 22px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 6px;
}

.login-card .login-subtitle {
  font-size: 13.5px;
  color: var(--muted);
  margin-bottom: 30px;
}

.login-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
  text-align: left;
}

.login-field label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

.login-input {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 15px;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  outline: none;
  transition: all .2s;
}

.login-input:focus {
  border-color: var(--navy);
  background: #fff;
  box-shadow: 0 0 0 3.5px var(--navy-light);
}

.login-error {
  background: var(--error-light);
  border: 1px solid #FFCDD2;
  color: var(--error);
  border-radius: var(--radius);
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 16px;
  display: none;
  align-items: center;
  gap: 8px;
}

.btn-login {
  width: 100%;
  background: var(--navy);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  padding: 14px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: all .2s;
  font-family: var(--font);
  letter-spacing: .3px;
  margin-top: 6px;
}

.btn-login:hover { background: var(--navy-dark); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(19,56,128,.3); }

.login-portal-link {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}

.portal-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(90deg, var(--gold) 0%, #FFB800 100%);
  color: var(--navy-dark);
  font-weight: 800;
  font-size: 14px;
  border-radius: 50px;
  padding: 11px 22px;
  text-decoration: none;
  transition: all .2s;
  box-shadow: 0 3px 12px rgba(244,163,0,.35);
}

.portal-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(244,163,0,.4);
  text-decoration: none;
}

/* =====================================================
   TOP NAV
===================================================== */
#app-screen { display: none; }

/* ---------- Top Navigation Bar ---------- */
.topnav {
  background: rgba(255, 255, 255, 0.95); /* Light, semi-transparent background */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(19, 56, 128, 0.06);
  border-bottom: 1px solid rgba(19, 56, 128, 0.08);
}

.topnav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.topnav-brand img {
  height: 50px;
  object-fit: contain;
  display: inline-block;
}

.topnav-brand-text .brand-name {
  color: var(--navy);
  font-size: 17px;
  font-weight: 850;
  letter-spacing: .4px;
  line-height: 1.1;
}

.topnav-brand-text .brand-tagline {
  color: var(--red);
  font-size: 10.5px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: .8px;
}

.topnav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.topnav-right a, .topnav-right button {
  font-family: var(--font);
  font-size: 13.5px;
  font-weight: 600;
  padding: 8px 15px;
  border-radius: 6px;
  cursor: pointer;
  border: none;
  transition: all .2s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nav-btn-ghost {
  background: var(--navy-light);
  color: var(--navy);
  border: 1.5px solid rgba(19, 56, 128, 0.1) !important;
}

.nav-btn-ghost:hover {
  background: rgba(19, 56, 128, 0.08);
  color: var(--navy-dark);
}

.nav-btn-portal {
  background: var(--gold);
  color: var(--navy-dark) !important;
  font-weight: 800;
}

.nav-btn-portal:hover {
  background: var(--gold-dark);
  color: var(--navy-dark);
}

.nav-btn-logout {
  background: #FFEBEE;
  color: var(--red);
  border: 1.5px solid rgba(229, 57, 53, 0.1) !important;
}

.nav-btn-logout:hover {
  background: var(--red);
  color: #fff;
}

#adminLabel {
  color: var(--text) !important;
  font-weight: 700 !important;
}

/* =====================================================
   PAGE WRAPPER & TABS
===================================================== */
.page-wrapper {
  max-width: 1280px;
  margin: 0 auto;
  padding: 28px 20px 60px;
}

.main-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 8px;
  margin-bottom: 26px;
  box-shadow: var(--shadow);
}

.main-tab-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: var(--radius);
  font-size: 14.5px;
  font-weight: 700;
  color: var(--muted);
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: var(--font);
  transition: all .2s;
  white-space: nowrap;
}

.main-tab-btn:hover {
  color: var(--navy);
  background: var(--navy-light);
}

.main-tab-btn.active {
  background: var(--navy);
  color: #fff;
}

.tab-badge {
  background: var(--red);
  color: #fff;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 7px;
  min-width: 20px;
  text-align: center;
}

.tab-badge.gold { background: var(--gold); color: var(--navy-dark); }

.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* =====================================================
   REGISTRATION FORM LAYOUT
===================================================== */
.reg-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
  align-items: start;
}

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

/* Card Blocks */
.block-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: 22px;
}

.block-header {
  background: linear-gradient(90deg, var(--navy-light) 0%, #F8FBFF 100%);
  border-bottom: 2px solid var(--border);
  padding: 18px 24px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.block-header-icon {
  width: 42px; height: 42px;
  background: var(--navy);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.block-header-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--navy);
}

.block-header-sub {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 2px;
}

.block-body { padding: 24px; }

/* Form Fields */
.field-row {
  display: grid;
  gap: 18px;
  margin-bottom: 18px;
}

.field-row.col-2 { grid-template-columns: 1fr 1fr; }
.field-row.col-3 { grid-template-columns: 1fr 1fr 1fr; }

@media (max-width: 640px) {
  .field-row.col-2, .field-row.col-3 { grid-template-columns: 1fr; }
}

.field { display: flex; flex-direction: column; gap: 6px; }

.field label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 4px;
}

.req { color: var(--red); font-size: 14px; }

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
input[type="number"],
select,
textarea {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 14px;
  font-size: 14px;
  font-family: var(--font);
  color: var(--text);
  background: #fff;
  outline: none;
  transition: all .2s;
  appearance: none;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px var(--navy-light);
}

input.err, select.err, textarea.err {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(229,57,53,.12);
}

select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236B7A99' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
  cursor: pointer;
}

textarea { resize: vertical; min-height: 80px; }

.field-hint { font-size: 12px; color: var(--muted); }
.field-err { font-size: 12px; color: var(--red); font-weight: 600; display: none; }

.section-sep {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 22px 0 16px;
}

.section-sep span {
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--navy);
  white-space: nowrap;
  background: var(--navy-light);
  padding: 3px 10px;
  border-radius: 4px;
}

.section-sep::before, .section-sep::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* =====================================================
   PHOTO CAPTURE
===================================================== */
.photo-capture-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  background: var(--bg);
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  text-align: center;
}

.photo-preview-ring {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 3px solid var(--navy);
  overflow: hidden;
  background: var(--navy-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 44px;
  flex-shrink: 0;
  position: relative;
}

.photo-preview-ring img#photoPreviewImg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
  position: absolute;
  inset: 0;
}

.photo-preview-ring .default-avatar {
  font-size: 50px;
}

.camera-video-wrapper {
  width: 100%;
  max-width: 280px;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  display: none;
  background: #000;
}

#cameraVideo {
  width: 100%;
  display: block;
}

#captureCanvas { display: none; }

.camera-action-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

/* =====================================================
   PAYMENT SECTION
===================================================== */
.payment-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

@media (max-width: 500px) { .payment-options { grid-template-columns: 1fr; } }

.payment-card {
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 12px;
  text-align: center;
  cursor: pointer;
  transition: all .2s;
  background: var(--bg);
  position: relative;
}

.payment-card:hover { border-color: var(--navy); background: var(--navy-light); }

.payment-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.payment-card .pay-icon { font-size: 26px; display: block; margin-bottom: 6px; }
.payment-card .pay-title { font-size: 14px; font-weight: 800; color: var(--text); }
.payment-card .pay-sub { font-size: 11.5px; color: var(--muted); margin-top: 2px; }

.payment-card.selected {
  border-color: var(--navy);
  background: var(--navy-light);
}

.payment-card.selected .pay-title { color: var(--navy); }

.fee-calculator {
  background: var(--navy-light);
  border: 1.5px solid rgba(19,56,128,.15);
  border-radius: var(--radius);
  padding: 20px;
}

.fee-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 14px;
}

.fee-row:last-child { border-bottom: none; }
.fee-row .fee-label { color: var(--muted); font-weight: 600; }
.fee-row .fee-val { font-weight: 800; color: var(--text); }
.fee-row.total .fee-val { color: var(--navy); font-size: 16px; }
.fee-row.paid .fee-val { color: var(--success); font-size: 15px; }
.fee-row.remaining .fee-val { color: var(--red); font-size: 15px; }
.fee-row.prev .fee-val { color: var(--gold); font-size: 14px; }

/* Payment Mode Chips */
.pay-mode-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.pay-mode-chip {
  padding: 7px 14px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 700;
  border: 1.5px solid var(--border);
  cursor: pointer;
  background: var(--bg);
  color: var(--text);
  transition: all .2s;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.pay-mode-chip:hover, .pay-mode-chip.selected {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

/* =====================================================
   SIDEBAR INFO CARDS
===================================================== */
.sidebar-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: 18px;
}

.sidebar-card-header {
  background: var(--navy);
  color: #fff;
  padding: 13px 18px;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sidebar-card-body { padding: 16px 18px; }

.info-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13.5px;
}

.info-row:last-child { border-bottom: none; }
.info-row .info-icon { font-size: 18px; flex-shrink: 0; }

.alert-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius);
  margin-bottom: 10px;
  font-size: 13.5px;
}

.alert-item.warning { background: var(--warning-light); border-left: 3px solid var(--warning); }
.alert-item.success { background: var(--success-light); border-left: 3px solid var(--success); }
.alert-item.error   { background: var(--error-light);   border-left: 3px solid var(--red); }
.alert-item.info    { background: var(--navy-light);    border-left: 3px solid var(--navy); }

.study-material-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--radius);
  background: var(--bg);
  border: 1px solid var(--border);
  margin-bottom: 8px;
  font-size: 13px;
  cursor: pointer;
  transition: all .2s;
}

.study-material-item:hover { background: var(--navy-light); border-color: var(--navy); }
.study-material-item .sm-icon { font-size: 20px; flex-shrink: 0; }

/* =====================================================
   SUBMIT BUTTONS AREA
===================================================== */
.form-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--radius);
  font-size: 14.5px;
  font-weight: 700;
  font-family: var(--font);
  cursor: pointer;
  border: none;
  transition: all .2s;
}

.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover:not(:disabled) { background: var(--navy-dark); box-shadow: 0 4px 14px rgba(19,56,128,.3); transform: translateY(-1px); }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover:not(:disabled) { background: var(--red-dark); }
.btn-gold { background: var(--gold); color: var(--navy-dark); }
.btn-gold:hover:not(:disabled) { background: var(--gold-dark); }
.btn-outline { background: #fff; color: var(--navy); border: 2px solid var(--navy); }
.btn-outline:hover:not(:disabled) { background: var(--navy-light); }
.btn-outline-red { background: #fff; color: var(--red); border: 2px solid var(--red); }
.btn-outline-red:hover:not(:disabled) { background: var(--error-light); }
.btn-green { background: #2E7D32; color: #fff; }
.btn-green:hover:not(:disabled) { background: #1B5E20; }

.btn-sm { padding: 7px 14px; font-size: 13px; }
.btn-xs { padding: 5px 10px; font-size: 12px; }
.btn-full { width: 100%; }

/* =====================================================
   REGISTRATIONS LIST / DASHBOARD TAB
===================================================== */
.dashboard-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 14px;
  flex-wrap: wrap;
}

.search-box {
  display: flex;
  align-items: center;
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 0 14px;
  gap: 8px;
  flex: 1;
  max-width: 340px;
  box-shadow: var(--shadow);
}

.search-box input {
  border: none;
  background: transparent;
  outline: none;
  padding: 10px 0;
  font-size: 14px;
  font-family: var(--font);
  width: 100%;
}

.search-box .search-icon { font-size: 18px; color: var(--muted); }

.dashboard-actions { display: flex; gap: 10px; flex-wrap: wrap; }

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

@media (max-width: 700px) { .stats-bar { grid-template-columns: repeat(2, 1fr); } }

.stat-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--navy);
  display: flex;
  align-items: center;
  gap: 12px;
}

.stat-card.red-border { border-left-color: var(--red); }
.stat-card.gold-border { border-left-color: var(--gold); }
.stat-card.green-border { border-left-color: var(--success); }

.stat-icon { font-size: 28px; }
.stat-val { font-size: 22px; font-weight: 900; color: var(--navy); }
.stat-lbl { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; }

.table-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  border: 1px solid var(--border);
}

.table-toolbar {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--navy-light);
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 12px;
}

.table-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 8px;
}

table.reg-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 900px;
}

table.reg-table th {
  background: var(--navy);
  color: #fff;
  padding: 13px 16px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  text-align: left;
  white-space: nowrap;
}

table.reg-table td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 13.5px;
  vertical-align: middle;
  white-space: nowrap;
}

table.reg-table tr:hover td { background: #FAFBFD; }

.student-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--navy-light);
  background: var(--navy-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--navy);
  font-weight: 700;
  flex-shrink: 0;
}

.student-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }

.name-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}

.name-text { font-weight: 700; color: var(--text); font-size: 14px; }
.id-text { font-size: 11.5px; color: var(--muted); font-weight: 500; }

.badge {
  display: inline-block;
  padding: 4px 9px;
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .3px;
}

.badge-full    { background: var(--success-light); color: var(--success); }
.badge-partial { background: var(--warning-light); color: var(--warning); }
.badge-pending { background: var(--error-light);   color: var(--red); }

.table-scroll-wrapper { overflow-x: auto; }

.empty-state {
  padding: 60px 30px;
  text-align: center;
  color: var(--muted);
}

.empty-state .empty-icon { font-size: 54px; margin-bottom: 12px; }
.empty-state h3 { font-size: 18px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.empty-state p { font-size: 14px; }

/* =====================================================
   RECEIPT MODAL
===================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 5000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(4px);
}

.modal-overlay.open { display: flex; }

.modal-box {
  background: var(--card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 580px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}

.modal-header {
  background: var(--navy);
  color: #fff;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.modal-header h3 { font-size: 17px; font-weight: 800; flex: 1; }
.modal-close { background: rgba(255,255,255,.15); border: none; color: #fff; cursor: pointer; padding: 6px; border-radius: 6px; font-size: 18px; line-height: 1; }
.modal-close:hover { background: rgba(255,255,255,.25); }

.modal-body { padding: 24px; }

/* Receipt Style */
.receipt-wrapper {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.receipt-header-logo { text-align: center; margin-bottom: 16px; }
.receipt-header-logo img { height: 52px; object-fit: contain; }
.receipt-header-logo .receipt-org { font-size: 17px; font-weight: 800; color: var(--navy); }
.receipt-header-logo .receipt-addr { font-size: 12px; color: var(--muted); line-height: 1.5; margin-top: 3px; }

.receipt-divider { border: none; border-top: 2px dashed var(--border); margin: 16px 0; }

.receipt-title {
  text-align: center;
  font-size: 15px;
  font-weight: 800;
  color: var(--navy);
  background: var(--navy-light);
  padding: 8px;
  border-radius: var(--radius);
  margin-bottom: 16px;
}

.receipt-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px dotted var(--border);
  font-size: 13.5px;
}

.receipt-row:last-child { border-bottom: none; }
.receipt-row .rl { color: var(--muted); font-weight: 600; }
.receipt-row .rv { font-weight: 700; color: var(--text); text-align: right; }
.receipt-row.highlight .rv { color: var(--navy); font-size: 16px; }

.receipt-stamp {
  text-align: center;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 2px solid var(--navy-light);
  font-size: 12px;
  color: var(--muted);
}

/* =====================================================
   NOTIFICATIONS PANEL
===================================================== */
.notif-list { display: flex; flex-direction: column; gap: 10px; }

.notif-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius);
  background: var(--bg);
  border: 1px solid var(--border);
  font-size: 13.5px;
}

.notif-item .notif-icon { font-size: 22px; flex-shrink: 0; }
.notif-item .notif-text strong { display: block; font-size: 14px; font-weight: 700; margin-bottom: 2px; }
.notif-item .notif-time { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.notif-item.unread { background: var(--navy-light); border-color: rgba(19,56,128,.2); }

/* =====================================================
   STUDY MATERIALS TAB
===================================================== */
.materials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
}

.material-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: all .2s;
  cursor: pointer;
  border: 1.5px solid transparent;
}

.material-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--navy); }

.material-thumb {
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 50px;
}

.material-thumb.bg-ielts { background: linear-gradient(135deg, #EBF1FA, #C5D6F5); }
.material-thumb.bg-pte   { background: linear-gradient(135deg, #FFF8E7, #FFE0A0); }
.material-thumb.bg-toefl { background: linear-gradient(135deg, #E8F5E9, #A5D6A7); }
.material-thumb.bg-visa  { background: linear-gradient(135deg, #FCE4EC, #F48FB1); }
.material-thumb.bg-docs  { background: linear-gradient(135deg, #F3E5F5, #CE93D8); }

.material-info { padding: 14px 16px; }
.material-title { font-size: 14px; font-weight: 800; color: var(--text); margin-bottom: 4px; }
.material-desc  { font-size: 12px; color: var(--muted); margin-bottom: 10px; }
.material-meta  { font-size: 11.5px; color: var(--navy); font-weight: 700; }

/* =====================================================
   TOAST
===================================================== */
.toast-container {
  position: fixed; bottom: 24px; right: 24px; z-index: 9999;
  display: flex; flex-direction: column; gap: 10px; pointer-events: none;
}

.toast {
  display: flex; align-items: center; gap: 10px;
  background: var(--text); color: #fff;
  border-radius: var(--radius); padding: 13px 18px;
  font-size: 14px; box-shadow: var(--shadow-lg);
  animation: toastin .3s ease both; max-width: 360px;
  pointer-events: all;
}

.toast.success { background: #2E7D32; }
.toast.error   { background: var(--red); }
.toast.warning { background: var(--warning); color: #fff; }

@keyframes toastin { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* =====================================================
   FOOTER
===================================================== */
.footer {
  background: var(--navy-dark);
  padding: 26px 28px;
  margin-top: 60px;
  border-top: 4px solid var(--gold);
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-left { color: rgba(255,255,255,.75); font-size: 13px; }
.footer-left a { color: var(--gold); text-decoration: none; }
.footer-left a:hover { text-decoration: underline; }
.footer-contact { color: rgba(255,255,255,.7); font-size: 13px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer-contact a { color: rgba(255,255,255,.9); }

/* =====================================================
   SPINNER
===================================================== */
.spinner {
  display: inline-block; width: 17px; height: 17px;
  border: 3px solid rgba(255,255,255,.4); border-top-color: #fff;
  border-radius: 50%; animation: spin .7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* Print */
@media print {
  html, body { min-height: 0 !important; height: auto !important; }

  /* Hide everything on the page except the receipt modal */
  body > *:not(#receiptModal) { display: none !important; }

  /* Reset the modal overlay so it prints as normal page flow, not a fixed full-screen layer */
  #receiptModal {
    display: block !important;
    position: static !important;
    inset: auto !important;
    background: none !important;
    padding: 0 !important;
    backdrop-filter: none !important;
  }

  #receiptModal .modal-box {
    max-width: 100% !important;
    max-height: none !important;
    overflow: visible !important;
    box-shadow: none !important;
    border-radius: 0 !important;
  }

  #receiptModal .modal-header,
  #receiptModal .no-print,
  .no-print {
    display: none !important;
  }

  #receiptModal .modal-body { padding: 0 !important; }

  .receipt-wrapper { box-shadow: none; border: 1px solid #ccc; }
}

