/* ── Variables ───────────────────────────────────────────────────────────── */
:root {
  --saffron:      #FF6B00;
  --saffron-light:#FF8C33;
  --saffron-pale: #FFF3E8;
  --navy:         #0A1F44;
  --navy-mid:     #1A3560;
  --teal:         #00897B;
  --teal-light:   #4DB6AC;
  --gold:         #FFC107;
  --cream:        #FFFDF8;
  --gray:         #6B7280;
  --border:       #E5E0D8;
  --shadow:       rgba(10, 31, 68, 0.12);
}

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

body {
  font-family: 'Noto Sans', sans-serif;
  background: var(--cream);
  min-height: 100vh;
  color: var(--navy);
}

/* ── Header ──────────────────────────────────────────────────────────────── */
header {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  color: white;
  position: relative;
  overflow: hidden;
}

header::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(255,107,0,.25) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

header::after {
  content: '';
  position: absolute;
  bottom: -30px; left: 20%;
  width: 160px; height: 160px;
  background: radial-gradient(circle, rgba(0,137,123,.2) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.header-top {
  background: var(--saffron);
  padding: 6px 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .5px;
  color: white;
}

.header-top .dot {
  width: 6px; height: 6px;
  background: white;
  border-radius: 50%;
  opacity: .7;
}

.header-main {
  padding: 20px 32px 24px;
  display: flex;
  align-items: center;
  gap: 18px;
  position: relative; z-index: 1;
}

.logo-box {
  width: 52px; height: 52px;
  background: white;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,.2);
  font-size: 26px;
  flex-shrink: 0;
}

.logo-box i { color: var(--navy); }

.header-text h1 {
  font-family: 'Baloo 2', cursive;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.3px;
}

.header-text p {
  font-size: 11.5px;
  opacity: .75;
  margin-top: 2px;
  letter-spacing: .3px;
}

.header-badge {
  margin-left: auto;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,.9);
  display: flex; align-items: center; gap: 6px;
}

.header-badge .live-dot {
  width: 7px; height: 7px;
  background: #4CAF50;
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .5; transform: scale(1.3); }
}

/* ── Layout ──────────────────────────────────────────────────────────────── */
.container {
  max-width: 820px;
  margin: 0 auto;
  padding: 28px 16px 48px;
}

/* ── Intro card ──────────────────────────────────────────────────────────── */
.intro-card {
  background: linear-gradient(135deg, var(--saffron-pale) 0%, #FFF8F0 100%);
  border: 1px solid rgba(255,107,0,.2);
  border-left: 4px solid var(--saffron);
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 24px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13px;
  color: #7a3800;
  line-height: 1.6;
}

.intro-card .icon { font-size: 20px; flex-shrink: 0; margin-top: 1px; color: var(--saffron); }

/* ── Form cards ──────────────────────────────────────────────────────────── */
.form-card {
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 24px var(--shadow);
  overflow: hidden;
  margin-bottom: 24px;
}

.form-section-title {
  background: var(--navy);
  color: white;
  padding: 14px 22px;
  font-family: 'Baloo 2', cursive;
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 9px;
}

.form-section-title .step-badge {
  width: 24px; height: 24px;
  background: var(--saffron);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800;
}

.form-body { padding: 22px; }

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group.full-width { grid-column: 1 / -1; }

label {
  font-size: 12px;
  font-weight: 600;
  color: var(--navy-mid);
  letter-spacing: .4px;
  text-transform: uppercase;
}

label .required { color: var(--saffron); margin-left: 2px; }
label .hint {
  text-transform: none;
  font-weight: 400;
  color: var(--gray);
  margin-left: 4px;
  letter-spacing: 0;
}

.sub-hint { font-size: 9px; text-transform: none; color: var(--gray); }

input[type="number"],
select {
  height: 44px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 0 13px;
  font-family: 'Noto Sans', sans-serif;
  font-size: 14px;
  color: var(--navy);
  background: #FAFAF8;
  transition: border-color .2s, box-shadow .2s;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

select {
  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 d='M1 1l5 5 5-5' stroke='%230A1F44' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
  padding-right: 36px;
}

input[type="number"]:focus,
select:focus {
  border-color: var(--saffron);
  box-shadow: 0 0 0 3px rgba(255,107,0,.1);
  background: white;
}

/* ── Marks row ───────────────────────────────────────────────────────────── */
.marks-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

.subject-input { display: flex; flex-direction: column; gap: 5px; }
.subject-input label { text-align: center; font-size: 10.5px; }
.subject-input input { text-align: center; padding: 0 8px; }

/* ── Marks total bar ─────────────────────────────────────────────────────── */
.marks-total-bar {
  margin-top: 14px;
  background: var(--saffron-pale);
  border: 1.5px solid rgba(255,107,0,.3);
  border-radius: 8px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.marks-total-bar .label { font-size: 13px; font-weight: 600; color: #7a3800; }

.marks-total-display { display: flex; align-items: baseline; gap: 6px; }

.total-number {
  font-family: 'Baloo 2', cursive;
  font-size: 28px;
  font-weight: 800;
  color: var(--saffron);
  line-height: 1;
}

.total-denom { font-size: 14px; color: var(--gray); }

.percent-badge {
  background: var(--saffron);
  color: white;
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 13px;
  font-weight: 700;
}

.marks-progress {
  height: 5px;
  background: rgba(255,107,0,.15);
  border-radius: 3px;
  margin-top: 8px;
  overflow: hidden;
}

.marks-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--saffron), var(--gold));
  border-radius: 3px;
  transition: width .4s ease;
}

/* ── Stream cards ────────────────────────────────────────────────────────── */
.stream-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.stream-option { position: relative; cursor: pointer; }
.stream-option input { position: absolute; opacity: 0; }

.stream-card {
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 12px 10px;
  text-align: center;
  transition: all .2s;
  background: #FAFAF8;
}

.stream-option input:checked + .stream-card {
  border-color: var(--saffron);
  background: var(--saffron-pale);
  box-shadow: 0 0 0 3px rgba(255,107,0,.1);
}

.stream-card .s-icon  { font-size: 22px; display: block; margin-bottom: 7px; color: var(--saffron); }
.stream-card .s-name  { font-size: 12px; font-weight: 700; color: var(--navy); display: block; }
.stream-card .s-sub   { font-size: 10px; color: var(--gray); display: block; margin-top: 2px; }

/* ── Submit button ───────────────────────────────────────────────────────── */
.submit-btn {
  width: 100%;
  height: 52px;
  background: linear-gradient(135deg, var(--saffron) 0%, #E55A00 100%);
  color: white;
  border: none;
  border-radius: 10px;
  font-family: 'Baloo 2', cursive;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all .2s;
  letter-spacing: .3px;
  margin-top: 8px;
  box-shadow: 0 4px 14px rgba(255,107,0,.35);
}

.submit-btn:hover  { transform: translateY(-2px); box-shadow: 0 7px 20px rgba(255,107,0,.4); }
.submit-btn:active { transform: translateY(0); }
.submit-btn:disabled { opacity: .65; cursor: not-allowed; transform: none; }

/* ── Result section ──────────────────────────────────────────────────────── */
#result-section { animation: slideUp .5s ease; }

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

.result-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 60%, #1a4a6e 100%);
  color: white;
  border-radius: 16px;
  padding: 28px 28px 24px;
  margin-top: 24px;
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
}

.result-hero::before {
  content: '';
  position: absolute;
  top: -50px; right: -50px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(255,107,0,.2) 0%, transparent 70%);
  border-radius: 50%;
}

.result-hero-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  opacity: .6;
  margin-bottom: 8px;
}

.result-hero-rank {
  font-family: 'Baloo 2', cursive;
  font-size: 56px;
  font-weight: 800;
  line-height: 1;
  color: white;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.rank-prefix { font-size: 22px; opacity: .7; margin-right: 2px; }
.rank-suffix { font-size: 18px; opacity: .7; }

.result-hero-sub { font-size: 13px; opacity: .7; margin-top: 6px; }

.result-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }

.result-pill {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 12px;
  font-weight: 500;
  display: flex; align-items: center; gap: 6px;
}

.result-pill .dot { width: 6px; height: 6px; border-radius: 50%; }

/* ── Stats grid ──────────────────────────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.stat-card {
  background: white;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 2px 12px var(--shadow);
  text-align: center;
}

.stat-icon  {
  font-size: 22px;
  margin: 0 auto 8px;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,107,0,.08);
  color: var(--saffron);
}
.stat-value {
  font-family: 'Baloo 2', cursive;
  font-size: 22px;
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 3px;
}
.stat-label { font-size: 11px; color: var(--gray); font-weight: 500; }

/* ── Colleges table ──────────────────────────────────────────────────────── */
.colleges-card {
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 24px var(--shadow);
  overflow: hidden;
  margin-bottom: 16px;
}

.colleges-header {
  background: var(--teal);
  color: white;
  padding: 14px 20px;
  font-family: 'Baloo 2', cursive;
  font-size: 15px;
  font-weight: 700;
  display: flex; align-items: center; gap: 8px;
}

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

thead th {
  background: #F0FAF9;
  color: var(--teal);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  padding: 10px 16px;
  text-align: left;
  border-bottom: 1.5px solid #D0EDEA;
}

tbody tr { border-bottom: 1px solid #F0F0EC; transition: background .15s; }
tbody tr:last-child { border-bottom: none; }
tbody tr:hover { background: #F7FDFC; }

td {
  padding: 12px 16px;
  font-size: 13px;
  color: var(--navy);
  vertical-align: middle;
}

.chance-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
}

.chance-high       { background: #E8F5E9; color: #2E7D32; }
.chance-moderate   { background: #FFF8E1; color: #F57F17; }
.chance-borderline { background: #FFF8E1; color: #F57F17; }
.chance-low        { background: #FFEBEE; color: #C62828; }

.college-name { font-weight: 600; }
.college-loc  { font-size: 11px; color: var(--gray); margin-top: 2px; }

/* ── Disclaimer ──────────────────────────────────────────────────────────── */
.disclaimer {
  background: #FFF3E8;
  border: 1px solid rgba(255,107,0,.2);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 11.5px;
  color: #7a3800;
  line-height: 1.6;
  display: flex; gap: 10px; align-items: flex-start;
}

.disclaimer .icon { flex-shrink: 0; font-size: 15px; margin-top: 1px; }

/* ── Error message ───────────────────────────────────────────────────────── */
.error-msg { font-size: 11px; color: #C62828; margin-top: 4px; display: none; }

/* ── Reset button ────────────────────────────────────────────────────────── */
.reset-btn {
  width: 100%;
  height: 44px;
  background: white;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-family: 'Baloo 2', cursive;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  color: var(--navy);
  transition: all .2s;
  margin-top: 12px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}

.reset-btn:hover { border-color: var(--saffron); color: var(--saffron); }

/* ── Footer ──────────────────────────────────────────────────────────────── */
footer {
  background: var(--navy);
  color: rgba(255,255,255,.5);
  text-align: center;
  padding: 16px;
  font-size: 11.5px;
  margin-top: 16px;
}

footer strong { color: rgba(255,255,255,.8); }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 14px;
  margin-top: 10px;
}

.footer-links a {
  color: var(--saffron-light);
  text-decoration: none;
}

.footer-links a:hover { color: #ffffff; }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .form-grid      { grid-template-columns: 1fr; }
  .marks-row      { grid-template-columns: repeat(2, 1fr); }
  .stream-options { grid-template-columns: 1fr 1fr; }
  .stats-grid     { grid-template-columns: 1fr 1fr; }
  .result-hero-rank { font-size: 44px; }
  .header-badge   { display: none; }
  .header-main    { padding: 16px 18px 18px; }
  .colleges-card  { overflow-x: auto; }
  table           { min-width: 480px; }
}

@media (max-width: 420px) {
  .marks-row      { grid-template-columns: repeat(3, 1fr); }
  .stream-options { grid-template-columns: 1fr; }
  .stats-grid     { grid-template-columns: 1fr; }
  .result-hero-rank { font-size: 36px; }
  .header-text h1 { font-size: 18px; }
  td, thead th    { padding: 8px 10px; font-size: 12px; }
  .container      { padding: 20px 12px 40px; }
  .form-body      { padding: 16px; }
}

/* --- GEN-Z DARK THEME OVERRIDES (FYJC RANK PAGE) --- */
:root {
  --primary: #ff6600 !important;
  --primary-dark: #e05500 !important;
  --text: #ffffff !important;
  --muted: #94a3b8 !important;
  --bg-main: #050a15 !important;
  --bg-card: rgba(13, 22, 39, 0.65) !important;
}

body {
  background: var(--bg-main) !important;
  color: var(--text) !important;
  font-family: 'Inter', sans-serif !important;
  transition: background-color 0.4s ease, color 0.4s ease;
}

/* HEADER */
header {
  background: radial-gradient(circle at top right, rgba(255,102,0, 0.1), transparent 40%),
              radial-gradient(circle at bottom left, rgba(255, 102, 0, 0.05), transparent 40%),
              #0a1128 !important;
  border-bottom: 1px solid rgba(255,255,255,0.06) !important;
}
.header-top { background: rgba(5, 10, 21, 0.8) !important; border-bottom: 1px solid rgba(255,255,255,0.06) !important; color: #cbd5e1 !important; }
.header-text h1 { font-family: 'Poppins', sans-serif !important; color: #fff !important; }
.header-text p { color: #94a3b8 !important; }
.header-badge { border-color: rgba(255,102,0, 0.3) !important; color: var(--primary) !important; }

/* INTRO CARD */
.intro-card {
  background: rgba(255,102,0, 0.05) !important;
  border: 1px solid rgba(255,102,0, 0.2) !important;
  border-left: 4px solid var(--primary) !important;
  color: #cbd5e1 !important;
  backdrop-filter: blur(12px) !important;
}
.intro-card strong { color: #fff !important; }

/* FORM CARDS (Glassmorphism) */
.form-card {
  background: var(--bg-card) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  border-radius: 20px !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2) !important;
}
.form-section-title {
  background: rgba(255,255,255,0.02) !important;
  border-bottom: 1px solid rgba(255,255,255,0.06) !important;
  color: #fff !important;
  font-family: 'Poppins', sans-serif !important;
}
.form-section-title .step-badge {
  background: var(--primary) !important;
  color: #050a15 !important;
}

label { color: #fff !important; }
.sub-hint, label .hint { color: #94a3b8 !important; }

input[type="number"], select {
  background-color: rgba(255,255,255,0.05) !important;
  color: #fff !important;
  border: 1px solid rgba(255,255,255,0.1) !important;
}
input[type="number"]:focus, select:focus {
  border-color: var(--primary) !important;
  box-shadow: 0 0 15px rgba(255,102,0, 0.2) !important;
}
select {
  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 d='M1 1l5 5 5-5' stroke='%23b6ff5c' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 13px center !important;
}

/* MARKS TOTAL BAR */
.marks-total-bar {
  background: rgba(255,102,0, 0.05) !important;
  border: 1.5px solid rgba(255,102,0, 0.2) !important;
  backdrop-filter: blur(8px) !important;
}
.marks-total-bar .label { color: var(--primary) !important; }
.total-number { color: #fff !important; }
.total-denom { color: #94a3b8 !important; }
.percent-badge { background: var(--primary) !important; color: #050a15 !important; }
.marks-progress-fill { background: var(--primary) !important; }

/* STREAM CARDS */
.stream-card {
  background: rgba(255,255,255,0.03) !important;
  border: 1.5px solid rgba(255,255,255,0.1) !important;
}
.stream-card .s-name { color: #fff !important; }
.stream-option input:checked + .stream-card {
  border-color: var(--primary) !important;
  background: rgba(255,102,0, 0.1) !important;
  box-shadow: 0 0 0 3px rgba(255,102,0, 0.2) !important;
}

/* BUTTONS */
.submit-btn {
  background: var(--primary) !important;
  color: #050a15 !important;
  font-family: 'Poppins', sans-serif !important;
}
.submit-btn:hover {
  background: var(--primary-dark) !important;
  box-shadow: 0 7px 20px rgba(255,102,0, 0.3) !important;
}
.reset-btn {
  background: rgba(255,255,255,0.05) !important;
  border: 1px solid rgba(255,255,255,0.1) !important;
  color: #fff !important;
}
.reset-btn:hover {
  border-color: var(--primary) !important;
  color: var(--primary) !important;
}

/* RESULTS SECTION */
.result-hero {
  background: var(--bg-card) !important;
  backdrop-filter: blur(12px) !important;
  border: 1px solid var(--primary) !important;
  box-shadow: 0 10px 30px rgba(255,102,0, 0.1) !important;
  color: #fff !important;
}
.result-hero-rank { color: var(--primary) !important; }
.result-pill { background: rgba(255,102,0, 0.1) !important; border-color: rgba(255,102,0, 0.2) !important; color: #fff !important; }
.result-pill .dot { background: var(--primary) !important; }

/* STATS GRID */
.stat-card {
  background: var(--bg-card) !important;
  backdrop-filter: blur(12px) !important;
  border: 1px solid rgba(255,255,255,0.06) !important;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2) !important;
}
.stat-value { color: var(--primary) !important; }
.stat-label { color: #cbd5e1 !important; }

/* COLLEGES TABLE */
.colleges-card {
  background: var(--bg-card) !important;
  backdrop-filter: blur(12px) !important;
  border: 1px solid rgba(255,255,255,0.06) !important;
}
.colleges-header {
  background: rgba(255,102,0, 0.1) !important;
  color: var(--primary) !important;
  border-bottom: 1px solid rgba(255,102,0, 0.2) !important;
}
thead th { background: rgba(255,255,255,0.02) !important; color: #fff !important; border-bottom: 1px solid rgba(255,255,255,0.1) !important; }
tbody tr { border-bottom: 1px solid rgba(255,255,255,0.03) !important; }
tbody tr:hover { background: rgba(255,255,255,0.05) !important; }
td { color: #cbd5e1 !important; }
.college-name { color: #fff !important; }
.college-loc { color: #94a3b8 !important; }

/* DISCLAIMER */
.disclaimer {
  background: rgba(255, 107, 0, 0.1) !important;
  border-color: rgba(255, 107, 0, 0.2) !important;
  color: #ffb366 !important;
}
footer { background: var(--bg-main) !important; border-top: 1px solid rgba(255,255,255,0.06); }

/* -- LIGHT MODE OVERRIDES ------------------------------------------ */
body.light-mode { background: #f8fafc !important; color: #1e293b !important; }

body.light-mode header {
  background: radial-gradient(circle at top right, rgba(255,102,0, 0.2), transparent 40%),
              radial-gradient(circle at bottom left, rgba(255, 102, 0, 0.1), transparent 40%),
              #ffffff !important;
  border-bottom: 2px solid var(--primary) !important;
}
body.light-mode .header-top { background: #f1f5f9 !important; color: #475569 !important; border-bottom-color: #e2e8f0 !important; }
body.light-mode .header-text h1 { color: #0f172a !important; }
body.light-mode .header-text p { color: #475569 !important; }
body.light-mode .header-badge { border-color: var(--primary) !important; color: #c2410c !important; background: rgba(255,102,0, 0.1) !important; }

body.light-mode .intro-card {
  background: rgba(255,102,0, 0.1) !important;
  border-color: var(--primary) !important;
  color: #c2410c !important;
}
body.light-mode .intro-card strong { color: #0f172a !important; }

body.light-mode .form-card, body.light-mode .colleges-card, body.light-mode .stat-card {
  background: rgba(255, 255, 255, 0.8) !important;
  border-color: #e2e8f0 !important;
  box-shadow: 0 8px 24px rgba(0,0,0,0.04) !important;
}
body.light-mode .form-section-title { background: #f1f5f9 !important; border-bottom-color: #e2e8f0 !important; color: #0f172a !important; }
body.light-mode .form-section-title .step-badge { background: var(--primary) !important; color: #0f172a !important; }

body.light-mode label { color: #0f172a !important; }
body.light-mode .sub-hint, body.light-mode label .hint { color: #64748b !important; }

body.light-mode input[type="number"], body.light-mode select {
  background-color: #f8fafc !important; color: #0f172a !important; border-color: #cbd5e1 !important;
}
body.light-mode input[type="number"]:focus, body.light-mode select:focus {
  border-color: var(--primary) !important;
  box-shadow: 0 0 15px rgba(255,102,0, 0.3) !important;
}
body.light-mode select {
  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 d='M1 1l5 5 5-5' stroke='%230f172a' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 13px center !important;
}

body.light-mode .marks-total-bar { background: rgba(255,102,0, 0.15) !important; border-color: var(--primary) !important; }
body.light-mode .marks-total-bar .label { color: #c2410c !important; }
body.light-mode .total-number { color: #0f172a !important; }
body.light-mode .total-denom { color: #475569 !important; }
body.light-mode .percent-badge { background: var(--primary) !important; color: #0f172a !important; }

body.light-mode .stream-card { background: #ffffff !important; border-color: #e2e8f0 !important; }
body.light-mode .stream-card .s-name { color: #0f172a !important; }
body.light-mode .stream-option input:checked + .stream-card { border-color: var(--primary) !important; background: rgba(255,102,0, 0.2) !important; }

body.light-mode .submit-btn { background: var(--primary) !important; color: #0f172a !important; }
body.light-mode .submit-btn:hover { background: var(--primary-dark) !important; box-shadow: 0 7px 20px rgba(255,102,0, 0.4) !important; }

body.light-mode .result-hero { background: rgba(255, 255, 255, 0.95) !important; border-color: var(--primary) !important; color: #0f172a !important; }
body.light-mode .result-hero-rank { color: #c2410c !important; }
body.light-mode .result-pill { background: rgba(255,102,0, 0.2) !important; border-color: var(--primary) !important; color: #0f172a !important; }

body.light-mode .stat-value { color: #c2410c !important; }
body.light-mode .stat-label { color: #475569 !important; }

body.light-mode .colleges-header { background: rgba(255,102,0, 0.2) !important; color: #c2410c !important; border-bottom-color: var(--primary) !important; }
body.light-mode thead th { background: #f1f5f9 !important; color: #0f172a !important; border-bottom-color: #e2e8f0 !important; }
body.light-mode tbody tr { border-bottom-color: #e2e8f0 !important; }
body.light-mode tbody tr:hover { background: #f8fafc !important; }
body.light-mode td { color: #475569 !important; }
body.light-mode .college-name { color: #0f172a !important; }

body.light-mode .disclaimer { background: #fff7ed !important; border-color: #fed7aa !important; color: #9a3412 !important; }
body.light-mode .reset-btn { background: #ffffff !important; border-color: #cbd5e1 !important; color: #0f172a !important; }
body.light-mode .reset-btn:hover { border-color: var(--primary) !important; color: #c2410c !important; }
body.light-mode footer { background: #f8fafc !important; color: #475569 !important; border-top-color: #e2e8f0 !important; }
body.light-mode footer strong { color: #0f172a !important; }

/* Select Option Overrides */
select option {
  background-color: #050a15 !important;
  color: #ffffff !important;
}
body.light-mode select option {
  background-color: #ffffff !important;
  color: #0f172a !important;
}
