/* ============================================
   STUDYPATHDE — Premium Dark Theme Stylesheet
   ============================================ */

:root {
  --gold: #d4a843;
  --gold-light: #f0c966;
  --gold-dark: #a8832e;
  --bg: #080b12;
  --bg-card: #0e1420;
  --bg-card-2: #121826;
  --border: rgba(212, 168, 67, 0.18);
  --border-subtle: rgba(255,255,255,0.06);
  --text: #e8eaf0;
  --text-muted: #7a8299;
  --text-dim: #4a5168;
  --green: #22c55e;
  --green-bg: rgba(34, 197, 94, 0.08);
  --glow-gold: rgba(212, 168, 67, 0.3);
  --glow-blue: rgba(99, 102, 241, 0.3);
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 4px 32px rgba(0,0,0,0.5);
  --shadow-gold: 0 0 32px rgba(212,168,67,0.2);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ---- SCROLLBAR ---- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--gold-dark); border-radius: 3px; }

/* ---- UTILS ---- */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

.gradient-text {
  background: linear-gradient(135deg, var(--gold-light), var(--gold), #f59e0b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---- NAVBAR ---- */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 20px 40px;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.3s, backdrop-filter 0.3s, border-bottom 0.3s;
}
.navbar.scrolled {
  background: rgba(8,11,18,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; max-width: 1100px;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--text);
  font-size: 1.25rem; font-weight: 700;
}
.logo-icon { color: var(--gold); font-size: 1.4rem; }
.nav-links {
  list-style: none; display: flex; gap: 36px;
}
.nav-links a {
  text-decoration: none; color: var(--text-muted);
  font-size: 0.9rem; font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--gold); }

.nav-cta {
  text-decoration: none;
  background: var(--gold);
  color: #080b12;
  padding: 10px 22px;
  border-radius: 8px;
  font-size: 0.9rem; font-weight: 700;
  transition: background 0.2s, transform 0.1s;
}
.nav-cta:hover { background: var(--gold-light); transform: translateY(-1px); }

/* ---- HERO ---- */
.hero {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
  padding: 120px 24px 80px;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
}
.orb {
  position: absolute; border-radius: 50%;
  filter: blur(80px); opacity: 0.35;
  animation: orbFloat 8s ease-in-out infinite;
}
.orb-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(212,168,67,0.4), transparent 70%);
  top: -200px; left: -150px;
  animation-delay: 0s;
}
.orb-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(99,102,241,0.4), transparent 70%);
  bottom: -100px; right: -100px;
  animation-delay: -3s;
}
.orb-3 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(212,168,67,0.2), transparent 70%);
  top: 40%; left: 50%; transform: translate(-50%, -50%);
  animation-delay: -5s;
}
@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0); }
  33% { transform: translate(30px, -20px); }
  66% { transform: translate(-20px, 15px); }
}
.grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(212,168,67,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212,168,67,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}
.hero-content {
  position: relative; z-index: 1;
  text-align: center; max-width: 780px;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(212,168,67,0.1);
  border: 1px solid var(--border);
  color: var(--gold);
  padding: 8px 18px; border-radius: 100px;
  font-size: 0.85rem; font-weight: 600;
  margin-bottom: 28px;
}
.badge-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 8px var(--gold);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.hero-title {
  font-family: 'Inter', sans-serif;
  font-size: clamp(2.8rem, 6vw, 5.2rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}
.hero-subtitle {
  font-size: 1.15rem; color: var(--text-muted);
  max-width: 560px; margin: 0 auto 40px;
  line-height: 1.7;
}
.hero-actions {
  display: flex; gap: 16px; justify-content: center;
  flex-wrap: wrap; margin-bottom: 60px;
}

/* ---- BUTTONS ---- */
.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #080b12;
  padding: 16px 32px;
  border-radius: 12px;
  font-size: 1rem; font-weight: 700;
  text-decoration: none; border: none; cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 24px rgba(212,168,67,0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(212,168,67,0.5);
}
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 16px 28px;
  border-radius: 12px;
  font-size: 1rem; font-weight: 500;
  text-decoration: none; cursor: pointer;
  transition: all 0.2s;
}
.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(212,168,67,0.05);
}

.btn-full { width: 100%; justify-content: center; }

/* ---- HERO STATS ---- */
.hero-stats {
  display: flex; align-items: center; justify-content: center;
  gap: 40px;
}
.stat { text-align: center; }
.stat-num {
  display: block; font-size: 2rem; font-weight: 800;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label { font-size: 0.8rem; color: var(--text-muted); }
.stat-divider {
  width: 1px; height: 48px;
  background: linear-gradient(to bottom, transparent, var(--border), transparent);
}

/* ---- SECTIONS ---- */
.section { padding: 100px 0; }
.checker-section {
  background: linear-gradient(180deg, transparent, rgba(212,168,67,0.04), transparent);
}
.section-header { text-align: center; margin-bottom: 64px; }
.section-tag {
  display: inline-block;
  background: rgba(212,168,67,0.1);
  border: 1px solid var(--border);
  color: var(--gold);
  padding: 6px 16px; border-radius: 100px;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; margin-bottom: 16px;
}
.section-title {
  font-family: 'Inter', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800; line-height: 1.15;
  letter-spacing: -0.02em;
}
.section-subtitle { color: var(--text-muted); margin-top: 16px; font-size: 1rem; }

/* ---- STEPS ---- */
.steps-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 36px 32px;
  position: relative; overflow: hidden;
  transition: transform 0.2s, border-color 0.2s;
}
.step-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0; transition: opacity 0.3s;
}
.step-card:hover { transform: translateY(-4px); border-color: var(--border); }
.step-card:hover::before { opacity: 1; }
.step-number {
  font-size: 0.75rem; font-weight: 800; letter-spacing: 0.1em;
  color: var(--gold); margin-bottom: 16px; opacity: 0.7;
}
.step-icon { font-size: 2.5rem; margin-bottom: 16px; }
.step-card h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 10px; }
.step-card p { color: var(--text-muted); font-size: 0.93rem; line-height: 1.65; }

/* ---- CHECKER ---- */
.checker-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 24px;
  padding: 48px;
  box-shadow: var(--shadow);
}
.checker-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 40px; align-items: start;
}
.form-section-title {
  font-size: 1.05rem; font-weight: 700; margin-bottom: 20px;
  color: var(--text);
  display: flex; align-items: center; gap: 8px;
}

/* ---- UPLOAD ZONE ---- */
.upload-zone {
  border: 2px dashed rgba(212,168,67,0.3);
  border-radius: var(--radius);
  min-height: 260px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
  position: relative;
  background: rgba(212,168,67,0.02);
}
.upload-zone:hover, .upload-zone.drag-over {
  border-color: var(--gold);
  background: rgba(212,168,67,0.06);
}
.upload-idle { text-align: center; padding: 32px; }
.upload-icon-wrap {
  width: 72px; height: 72px;
  background: rgba(212,168,67,0.1);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
  color: var(--gold);
}
.upload-main-text { font-weight: 600; font-size: 1rem; margin-bottom: 6px; }
.upload-sub-text { color: var(--text-muted); font-size: 0.88rem; margin-bottom: 12px; }
.upload-formats {
  display: inline-block;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-dim);
  padding: 4px 12px; border-radius: 6px;
  font-size: 0.78rem;
}

/* SUCCESS STATE */
.upload-success {
  text-align: center; padding: 32px;
  animation: fadeInUp 0.4s ease;
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.success-checkmark { margin-bottom: 16px; }
.success-checkmark svg { filter: drop-shadow(0 0 12px rgba(34,197,94,0.5)); }
.success-title {
  font-size: 1.1rem; font-weight: 700; color: var(--green);
  margin-bottom: 6px;
}
.success-filename {
  font-size: 0.9rem; color: var(--text-muted);
  background: rgba(34,197,94,0.08);
  border: 1px solid rgba(34,197,94,0.2);
  padding: 6px 14px; border-radius: 6px;
  margin-bottom: 10px; display: inline-block;
  max-width: 100%; word-break: break-all;
}
.success-confirm {
  font-size: 0.85rem; color: var(--text-muted); margin-bottom: 16px;
}
.btn-change-file {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 8px 18px; border-radius: 8px;
  font-size: 0.82rem; cursor: pointer;
  transition: all 0.2s;
}
.btn-change-file:hover { border-color: var(--gold); color: var(--gold); }

/* ---- FORM FIELDS ---- */
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block; font-size: 0.85rem; font-weight: 600;
  color: var(--text-muted); margin-bottom: 8px;
}
.form-group select,
.form-group input {
  width: 100%; padding: 12px 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  color: var(--text);
  font-family: inherit; font-size: 0.93rem;
  appearance: none;
  transition: border-color 0.2s, background 0.2s;
  outline: none;
}
.form-group select:focus,
.form-group input:focus {
  border-color: var(--gold);
  background: rgba(212,168,67,0.05);
}
.form-group select option { background: #1a2030; }

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

/* ---- CHECKER CONTENT FADE-IN ---- */
@keyframes fadeInReveal {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
.checker-content-visible {
  animation: fadeInReveal 0.45s ease forwards;
}

/* ---- LEAD GATE ---- */
.lead-gate {
  max-width: 480px; margin: 0 auto;
  text-align: center; padding: 24px 0 32px;
}
.gate-icon { font-size: 3rem; margin-bottom: 16px; }
.gate-title { font-size: 1.7rem; font-weight: 800; margin-bottom: 10px; }
.gate-sub { color: var(--text-muted); font-size: 0.93rem; margin-bottom: 28px; line-height: 1.6; }
.gate-form { text-align: left; }
.lead-privacy { font-size: 0.8rem; color: var(--text-dim); margin-top: 14px; text-align: center; }

/* ---- RESULTS ---- */
.results-header { text-align: center; margin-bottom: 36px; }
.results-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--green-bg);
  border: 1px solid rgba(34,197,94,0.25);
  color: var(--green);
  padding: 6px 16px; border-radius: 100px;
  font-size: 0.82rem; font-weight: 600;
  margin-bottom: 16px;
}
.results-title { font-size: 1.6rem; font-weight: 800; margin-bottom: 8px; }
.results-subtitle { color: var(--text-muted); font-size: 0.93rem; }

.unis-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px; margin-bottom: 36px;
}
.uni-card {
  background: var(--bg-card-2);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 24px;
  transition: transform 0.2s, border-color 0.2s;
}
.uni-card:hover { transform: translateY(-2px); border-color: var(--border); }
.uni-match-score {
  display: inline-flex; align-items: center;
  background: rgba(212,168,67,0.12);
  border: 1px solid var(--border);
  color: var(--gold); font-size: 0.75rem; font-weight: 700;
  padding: 3px 10px; border-radius: 6px; margin-bottom: 10px;
}
.uni-name { font-size: 1rem; font-weight: 700; margin-bottom: 6px; }
.uni-city { font-size: 0.83rem; color: var(--text-muted); margin-bottom: 10px; }
.uni-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.uni-tag {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted); font-size: 0.73rem;
  padding: 3px 9px; border-radius: 5px;
}
.uni-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.uni-badges-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; }
.uni-badge {
  font-size: 0.7rem; font-weight: 700; padding: 2px 9px;
  border-radius: 5px; white-space: nowrap;
}
.badge-uni { background: rgba(99,102,241,0.15); color: #818cf8; border: 1px solid rgba(99,102,241,0.25); }
.badge-fh  { background: rgba(34,197,94,0.12);  color: #4ade80; border: 1px solid rgba(34,197,94,0.25); }
.badge-eng { background: rgba(59,130,246,0.12); color: #60a5fa; border: 1px solid rgba(59,130,246,0.25); }
.uni-meta  { font-size: 0.73rem; color: var(--text-muted); }

.results-actions {
  display: flex; gap: 16px; justify-content: center; flex-wrap: wrap;
}

/* ---- PRICING ---- */
.pricing-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px; max-width: 780px; margin: 0 auto;
}
.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 36px 32px;
  position: relative; overflow: hidden;
}
.pricing-featured {
  border-color: var(--border);
  box-shadow: 0 0 60px rgba(212,168,67,0.15);
}
.plan-badge {
  position: absolute; top: 20px; right: 20px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #080b12; font-size: 0.72rem; font-weight: 800;
  padding: 4px 12px; border-radius: 100px;
  text-transform: uppercase; letter-spacing: 0.05em;
}
.plan-tag-wrap { margin-bottom: 16px; }
.plan-tag {
  display: inline-block;
  font-size: 0.8rem; font-weight: 700;
  padding: 5px 14px; border-radius: 8px;
}
.plan-tag.early-bird {
  background: rgba(239,68,68,0.12);
  border: 1px solid rgba(239,68,68,0.3);
  color: #f87171;
}
.plan-name { font-size: 1.4rem; font-weight: 800; margin-bottom: 12px; }
.plan-price-wrap { display: flex; align-items: baseline; gap: 10px; margin-bottom: 6px; }
.plan-price {
  font-size: 3rem; font-weight: 900;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.plan-price-old {
  font-size: 1.5rem; font-weight: 700;
  color: var(--text-dim);
  text-decoration: line-through;
}
.plan-period { font-size: 0.85rem; color: var(--text-muted); }
.plan-urgency {
  font-size: 0.83rem; color: #f59e0b;
  margin-bottom: 24px; font-weight: 500;
}
.plan-desc { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 24px; }
.plan-features {
  list-style: none; margin-bottom: 28px;
}
.plan-features li {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 8px 0; font-size: 0.9rem;
  border-bottom: 1px solid var(--border-subtle);
}
.plan-features li:last-child { border-bottom: none; }
.feat-check { color: var(--green); font-weight: 700; flex-shrink: 0; }
.feat-check.gold { color: var(--gold); }
.feat-check.muted { color: var(--text-dim); }
.feat-muted { color: var(--text-dim); font-style: italic; }

.btn-plan {
  display: block; width: 100%; text-align: center;
  padding: 14px 24px; border-radius: 12px;
  font-size: 0.95rem; font-weight: 700;
  text-decoration: none;
  background: rgba(212,168,67,0.1);
  border: 1px solid var(--border);
  color: var(--gold);
  cursor: pointer; transition: all 0.2s;
}
.btn-plan:hover {
  background: rgba(212,168,67,0.2);
  transform: translateY(-1px);
}
.btn-plan-premium {
  background: linear-gradient(135deg, rgba(212,168,67,0.15), rgba(212,168,67,0.08));
  border-color: var(--border);
  color: var(--text-muted);
  cursor: not-allowed;
  opacity: 0.6;
}
.btn-plan-premium:hover { transform: none; background: linear-gradient(135deg, rgba(212,168,67,0.15), rgba(212,168,67,0.08)); }

/* ---- COMING SOON OVERLAY ---- */
.coming-soon-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(8,11,18,0.75);
  backdrop-filter: blur(4px);
  display: flex; align-items: flex-start; justify-content: flex-end;
  padding: 80px 32px 32px;
  border-radius: 20px;
  z-index: 5;
  pointer-events: none;
}
.coming-soon-inner {
  text-align: center;
  background: rgba(14,20,32,0.9);
  border: 1px solid var(--border);
  padding: 16px 24px; border-radius: 12px;
  box-shadow: 0 0 24px rgba(212,168,67,0.2);
}
.cs-icon { font-size: 1.5rem; margin-bottom: 4px; }
.cs-title { font-size: 0.9rem; font-weight: 700; color: var(--gold); }
.cs-sub { font-size: 0.75rem; color: var(--text-muted); }

/* ---- FOOTER ---- */
.footer {
  border-top: 1px solid var(--border-subtle);
  padding: 48px 0;
}
.footer-inner { text-align: center; }
.footer-brand {
  display: inline-flex; align-items: center; gap: 8px;
  margin-bottom: 12px; font-size: 1.1rem; font-weight: 700;
}
.footer-tagline { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 10px; }
.footer-copy { font-size: 0.8rem; color: var(--text-dim); }

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  /* Prevent horizontal scroll */
  html, body { overflow-x: hidden; max-width: 100vw; }

  /* NAVBAR */
  .navbar { padding: 14px 16px; }
  .nav-links { display: none; }
  .nav-cta { padding: 8px 14px; font-size: 0.82rem; }

  /* HERO */
  .hero { padding: 100px 16px 56px; }
  .hero-title { font-size: 2.2rem !important; line-height: 1.1; }
  .hero-subtitle { font-size: 1rem; margin-bottom: 28px; }
  .hero-actions { flex-direction: column; align-items: stretch; gap: 12px; }
  .hero-actions .btn-primary,
  .hero-actions .btn-ghost { width: 100%; justify-content: center; min-height: 52px; }
  .hero-badge { font-size: 0.78rem; padding: 6px 12px; }
  .hero-stats { gap: 16px; flex-wrap: wrap; justify-content: center; }
  .stat-num { font-size: 1.5rem; }
  .stat-divider { height: 32px; }

  /* SECTIONS */
  .section { padding: 56px 0; }
  .section-header { margin-bottom: 36px; }
  .section-title { font-size: 1.8rem; }
  .container { padding: 0 16px; }

  /* STEPS */
  .steps-grid { grid-template-columns: 1fr; gap: 14px; }
  .step-card { padding: 24px 20px; }

  /* CHECKER */
  .checker-wrapper { padding: 22px 16px; border-radius: 16px; }
  .checker-grid { grid-template-columns: 1fr; gap: 24px; }

  /* DEGREE TABS */
  .degree-tabs { flex-direction: column; gap: 8px; }
  .degree-tab {
    flex-direction: row; align-items: center;
    gap: 12px; padding: 14px 16px; min-height: 56px;
  }
  .tab-label { display: none; }

  /* DOC CARDS */
  .doc-card { flex-wrap: wrap; padding: 14px 14px; }
  .doc-card-body { flex: 1 1 100%; margin-bottom: 10px; }
  .doc-right { width: 100%; justify-content: space-between; }
  .doc-filename { max-width: 140px; }
  .btn-upload-doc { min-height: 44px; }

  /* FORM */
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .form-group select,
  .form-group input {
    font-size: 16px; /* prevents iOS auto-zoom */
    min-height: 48px;
    padding: 12px 14px;
  }

  /* BUTTONS — min 44px touch target */
  .btn-primary { min-height: 52px; font-size: 0.95rem; padding: 14px 24px; }
  .btn-ghost   { min-height: 52px; font-size: 0.95rem; padding: 14px 24px; }
  .btn-primary.btn-full { width: 100%; justify-content: center; }

  /* UNIVERSITY RESULTS */
  .unis-grid { grid-template-columns: 1fr; gap: 14px; }
  .results-actions { flex-direction: column; align-items: stretch; }
  .results-actions .btn-primary,
  .results-actions .btn-ghost { width: 100%; justify-content: center; min-height: 52px; }

  /* PRICING */
  .pricing-grid { grid-template-columns: 1fr; gap: 18px; }
  .pricing-card { padding: 28px 20px; }
  .plan-price { font-size: 2.4rem; }

  /* MODAL */
  .modal-overlay { padding: 12px; align-items: flex-end; }
  .modal-card {
    max-width: 100%; width: 95vw;
    padding: 32px 20px 28px;
    border-radius: 20px 20px 14px 14px;
    max-height: 88vh;
    overflow-y: auto;
  }
  .modal-title { font-size: 1.3rem; }

  /* FOOTER */
  .footer { padding: 32px 0; }

  /* GENERAL TOUCH */
  * { -webkit-tap-highlight-color: transparent; }
  a, button { touch-action: manipulation; }
  p, li, label { font-size: 14px; }
}

/* Reduce animations on mobile for performance */
@media (max-width: 768px) {
  * { animation-duration: 0.1s !important; }
}

/* ================================================================
   MODAL
   ================================================================ */
.modal-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(4, 6, 12, 0.88);
  backdrop-filter: blur(12px);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease;
}
.modal-overlay.active {
  opacity: 1; pointer-events: all;
}
.modal-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 44px 40px 36px;
  max-width: 480px; width: 100%;
  position: relative;
  box-shadow: 0 0 80px rgba(212,168,67,0.15), 0 24px 64px rgba(0,0,0,0.6);
  transform: translateY(24px) scale(0.97);
  transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1);
}
.modal-overlay.active .modal-card { transform: translateY(0) scale(1); }
.modal-close {
  position: absolute; top: 18px; right: 18px;
  background: rgba(255,255,255,0.05); border: 1px solid var(--border-subtle);
  color: var(--text-muted); border-radius: 8px;
  width: 34px; height: 34px; display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all 0.2s;
}
.modal-close:hover { background: rgba(239,68,68,0.12); border-color: rgba(239,68,68,0.4); color: #ef4444; }
.modal-icon-wrap { font-size: 2.8rem; margin-bottom: 14px; text-align: center; }
.modal-title {
  font-size: 1.5rem; font-weight: 800; text-align: center; margin-bottom: 10px;
}
.modal-sub {
  color: var(--text-muted); font-size: 0.9rem; text-align: center;
  margin-bottom: 28px; line-height: 1.6;
}
.modal-sub strong { color: var(--gold); }
.label-opt { font-size: 0.75rem; color: var(--text-dim); font-weight: 400; margin-left: 4px; }
.input-readonly { opacity: 0.65; cursor: default; }

/* ================================================================
   SKELETON LOADER
   ================================================================ */
@keyframes shimmer {
  0%   { background-position: -600px 0; }
  100% { background-position:  600px 0; }
}
.skeleton {
  background: linear-gradient(90deg,
    rgba(255,255,255,0.04) 0%,
    rgba(212,168,67,0.08) 50%,
    rgba(255,255,255,0.04) 100%);
  background-size: 600px 100%;
  animation: shimmer 1.6s infinite linear;
  border-radius: 8px;
}
.skeleton-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 24px; overflow: hidden;
}
.skeleton-line { height: 12px; margin-bottom: 10px; }
.skeleton-line.w-60 { width: 60%; }
.skeleton-line.w-80 { width: 80%; }
.skeleton-line.w-40 { width: 40%; }
.skeleton-line.h-16 { height: 16px; }

/* ================================================================
   PAGE TRANSITIONS & ENHANCED ANIMATIONS
   ================================================================ */
@keyframes fadeOutDown {
  from { opacity: 1; transform: translateX(-50%) translateY(0); }
  to   { opacity: 0; transform: translateX(-50%) translateY(10px); }
}
@keyframes fadeInScale {
  from { opacity: 0; transform: scale(0.95) translateY(12px); }
  to   { opacity: 1; transform: scale(1)    translateY(0); }
}
.checker-step { animation: fadeInScale 0.4s ease; }

/* Enhanced button hover */
.btn-primary { position: relative; overflow: hidden; }
.btn-primary::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
  opacity: 0; transition: opacity 0.2s;
}
.btn-primary:hover::after { opacity: 1; }

/* Uni card hover glow */
.uni-card {
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.uni-card:hover {
  transform: translateY(-3px);
  border-color: var(--border);
  box-shadow: 0 8px 32px rgba(212,168,67,0.12);
}

/* Step card hover */
.step-card { transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease; }
.step-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(212,168,67,0.1);
}

/* ================================================================
   MODAL RESPONSIVE
   ================================================================ */
@media (max-width: 520px) {
  .modal-card { padding: 32px 20px 28px; border-radius: 18px; }
  .modal-title { font-size: 1.3rem; }
}

/* ================================================================
   DEGREE SELECTOR TABS
   ================================================================ */
.degree-selector-wrap {
  margin-bottom: 32px;
}

.degree-question {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}

.degree-tabs {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.degree-tab {
  flex: 1;
  min-width: 140px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  text-align: left;
}

.degree-tab:hover {
  border-color: var(--gold-dark);
  background: var(--bg-card-2);
}

.degree-tab.active {
  border-color: var(--gold);
  background: rgba(212, 168, 67, 0.08);
  box-shadow: 0 0 20px rgba(212, 168, 67, 0.15);
}

.tab-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.1em;
  opacity: 0.7;
}

.degree-tab.active .tab-label { opacity: 1; }

.tab-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}

.tab-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ================================================================
   DOCUMENT UPLOAD CARDS
   ================================================================ */
.doc-cards-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.doc-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s, background 0.2s;
}

.doc-card.doc-card-done {
  border-color: rgba(34, 197, 94, 0.35);
  background: rgba(34, 197, 94, 0.04);
}

.doc-card-body {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 0;
}

.doc-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.doc-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.doc-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.doc-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.doc-badge {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 8px;
  border-radius: 20px;
  white-space: nowrap;
}

.badge-required {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.25);
}

.badge-recommended {
  background: rgba(251, 191, 36, 0.12);
  color: var(--gold-light);
  border: 1px solid rgba(251, 191, 36, 0.2);
}

.badge-optional {
  background: rgba(148, 163, 184, 0.1);
  color: var(--text-muted);
  border: 1px solid rgba(148, 163, 184, 0.15);
}

.doc-action { flex-shrink: 0; }

.btn-upload-doc {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: rgba(212, 168, 67, 0.1);
  border: 1.5px solid var(--gold-dark);
  border-radius: 8px;
  color: var(--gold-light);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  white-space: nowrap;
}

.btn-upload-doc:hover {
  background: rgba(212, 168, 67, 0.2);
  border-color: var(--gold);
  color: #fff;
}

.doc-success-state {
  display: flex;
  align-items: center;
  gap: 10px;
}

.doc-filename {
  font-size: 0.8rem;
  color: var(--green);
  font-weight: 500;
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.doc-remove-btn {
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  padding: 2px 4px;
  border-radius: 4px;
  transition: color 0.2s;
}

.doc-remove-btn:hover { color: #f87171; }

/* ================================================================
   DEGREE / DOC RESPONSIVE
   ================================================================ */
@media (max-width: 640px) {
  .degree-tabs { flex-direction: column; }
  .degree-tab { min-width: unset; flex-direction: row; align-items: center; gap: 10px; }
  .tab-label { display: none; }
  .doc-card { flex-wrap: wrap; }
  .doc-card-body { flex: 1 1 100%; }
  .doc-right { width: 100%; justify-content: space-between; }
  .doc-filename { max-width: 120px; }
}

/* ================================================================
   PORTRAIT MOBILE FIXES (max-width: 480px)
   ================================================================ */
@media (max-width: 480px) {
  /* NAVBAR — prevent overlap with content */
  .navbar { padding: 10px 12px; }
  .logo-text { font-size: 1rem; }
  .logo-icon { font-size: 1.1rem; }
  .nav-cta { padding: 7px 11px; font-size: 0.78rem; white-space: nowrap; }

  /* HERO — prevent text overflow */
  .hero { padding: 88px 12px 44px; }
  .hero-title { font-size: 1.85rem !important; line-height: 1.12; }
  .hero-subtitle { font-size: 0.93rem; margin-bottom: 24px; }
  .hero-badge { font-size: 0.72rem; padding: 5px 10px; gap: 6px; }
  .badge-dot { width: 6px; height: 6px; }

  /* HERO STATS — prevent overflow on tiny screens */
  .hero-stats { gap: 8px; flex-wrap: nowrap; }
  .stat-num { font-size: 1.2rem; }
  .stat-label { font-size: 0.7rem; }
  .stat-divider { height: 28px; }

  /* SECTIONS */
  .section { padding: 48px 0; }
  .section-title { font-size: 1.6rem; }
  .container { padding: 0 12px; }

  /* STEPS */
  .step-card { padding: 20px 16px; }
  .step-card h3 { font-size: 1.05rem; }
  .step-icon { font-size: 2rem; }

  /* CHECKER WRAPPER */
  .checker-wrapper { padding: 16px 12px; border-radius: 14px; }

  /* DEGREE TABS */
  .degree-tab { padding: 10px 12px; gap: 8px; min-height: 50px; }
  .tab-title { font-size: 0.85rem; }
  .tab-sub { font-size: 0.68rem; }

  /* DOC CARDS — prevent text overflow */
  .doc-name { font-size: 0.82rem; white-space: normal; }
  .doc-hint { font-size: 0.7rem; }
  .doc-badge { font-size: 0.6rem; padding: 2px 6px; }
  .doc-filename { max-width: 90px; font-size: 0.72rem; }
  .btn-upload-doc { font-size: 0.75rem; padding: 7px 12px; }

  /* FORM FIELDS */
  .form-section-title { font-size: 0.95rem; }
  .form-group label { font-size: 0.8rem; }

  /* BUTTONS */
  .btn-primary { font-size: 0.88rem; padding: 13px 20px; min-height: 48px; }
  .btn-ghost   { font-size: 0.88rem; padding: 13px 20px; min-height: 48px; }

  /* LEAD GATE */
  .gate-title { font-size: 1.4rem; }
  .gate-sub { font-size: 0.87rem; margin-bottom: 20px; }
  .gate-form .form-group { margin-bottom: 14px; }
  .gate-form input { font-size: 0.9rem; padding: 12px 14px; }

  /* FORM SELECTS — prevent overflow */
  .form-row { flex-direction: column; gap: 10px; }
  select { font-size: 0.88rem; max-width: 100%; width: 100%; }
  .form-group select { padding: 11px 12px; }

  /* CHECKER GRID — stack on mobile */
  .checker-grid { grid-template-columns: 1fr; gap: 20px; }

  /* RESULTS */
  .results-title { font-size: 1.25rem; }
  .uni-name { font-size: 0.92rem; }
  .results-actions { flex-direction: column; align-items: stretch; gap: 10px; }
  .results-actions .btn-primary,
  .results-actions .btn-ghost { justify-content: center; text-align: center; }

  /* PRICING */
  .pricing-card { padding: 24px 16px; }
  .plan-price { font-size: 2rem; }
  .plan-name { font-size: 1.15rem; }
  .plan-features li { font-size: 0.83rem; }
  .pricing-grid { grid-template-columns: 1fr; }

  /* FOOTER */
  .footer { padding: 28px 0; }
  .footer-tagline, .footer-copy { font-size: 0.78rem; }
}
