:root {
  --bg: #060912;
  --bg-card: #0f1424;
  --bg-elevated: #161d32;
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --accent: #4f8cff;
  --accent-2: #a78bfa;
  --accent-gold: #fbbf24;
  --accent-glow: rgba(79, 140, 255, 0.4);
  --success: #22c55e;
  --warning: #f59e0b;
  --danger: #ef4444;
  --radius: 14px;
  --radius-lg: 22px;
  --font: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  --glass: rgba(15, 20, 36, 0.65);
  --border-glow: rgba(79, 140, 255, 0.25);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

video {
  max-width: 100%;
  height: auto;
  display: block;
}

img {
  max-width: 100%;
  display: block;
}

/* Default img height — gallery/cards override locally */
img:not(.slide-video):not(.slide-bg-img) {
  height: auto;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(79, 140, 255, 0.08), transparent),
    radial-gradient(ellipse 60% 40% at 100% 50%, rgba(167, 139, 250, 0.05), transparent);
  pointer-events: none;
  z-index: -1;
}

.page-home .site-header {
  position: fixed;
  left: 0;
  right: 0;
  background: transparent;
  border-bottom-color: transparent;
  transition: background 0.35s, border-color 0.35s, box-shadow 0.35s;
}

.page-home .site-header.header-scrolled {
  background: rgba(6, 9, 18, 0.92);
  border-bottom-color: rgba(255, 255, 255, 0.06);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.page-home main {
  padding-top: 0;
}

/* Keep hero media clear of fixed header */
.page-home .hero-slider {
  margin-top: calc(4.75rem + env(safe-area-inset-top));
}

a {
  color: var(--accent);
  text-decoration: none;
}

.container {
  width: min(1140px, 92%);
  margin: 0 auto;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

/* Inner pages — space for sticky header */
body:not(.page-home) main {
  padding-top: 0;
}

body:not(.page-home) .page-hero {
  padding-top: calc(4.5rem + env(safe-area-inset-top));
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 14, 26, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: env(safe-area-inset-top);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0.75rem 0;
  gap: 0.75rem;
}

.nav-links {
  margin-left: auto;
}

.header-book-btn {
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  box-shadow: 0 4px 16px var(--accent-glow);
}

.header-book-btn:hover {
  opacity: 0.95;
  transform: translateY(-1px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  font-weight: 700;
  font-size: 1.1rem;
}

.brand img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  padding: 0.45rem 0.85rem;
  border-radius: 8px;
  font-size: 0.9rem;
  transition: color 0.2s, background 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  background: var(--bg-elevated);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.35rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s, opacity 0.2s;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: 0 4px 24px var(--accent-glow);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 32px var(--accent-glow);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-outline:hover {
  background: var(--bg-elevated);
}

.btn-whatsapp {
  background: #25d366;
  color: #fff;
}

.menu-toggle {
  display: none;
  background: var(--bg-elevated);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: var(--text);
  font-size: 1.35rem;
  cursor: pointer;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  z-index: 110;
}

.nav-book-mobile {
  display: none;
}

.nav-book-mobile .header-book-btn {
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
}

/* Hero video slider */
.hero-slider {
  position: relative;
  min-height: min(92vh, 720px);
  overflow: hidden;
  background: #000;
}

.slider-track {
  position: relative;
  width: 100%;
  height: min(92vh, 720px);
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.9s ease, visibility 0.9s;
}

.slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.slide-video,
.slide-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.slide-video {
  object-fit: contain;
  object-position: center;
  background: #000;
}

.slide-bg-img {
  object-fit: contain;
  object-position: center;
  background: #000;
}

.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(6, 9, 18, 0.92) 0%,
    rgba(6, 9, 18, 0.55) 45%,
    rgba(6, 9, 18, 0.35) 100%
  );
  z-index: 1;
}

.slide-overlay-strong {
  background: linear-gradient(
    105deg,
    rgba(6, 9, 18, 0.94) 0%,
    rgba(6, 9, 18, 0.7) 50%,
    rgba(6, 9, 18, 0.5) 100%
  );
}

.slide-overlay-light {
  background: linear-gradient(
    180deg,
    rgba(6, 9, 18, 0.4) 0%,
    rgba(6, 9, 18, 0.1) 40%,
    rgba(6, 9, 18, 0.3) 100%
  );
}

.slide-content {
  position: relative;
  z-index: 2;
  height: min(92vh, 720px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6rem 0 4rem;
  max-width: 640px;
}

.slide-content h1 {
  font-size: clamp(1.85rem, 4.5vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.slide-content h1 span {
  background: linear-gradient(135deg, #fff 0%, var(--accent) 50%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.slide-content p {
  color: rgba(241, 245, 249, 0.85);
  font-size: 1.08rem;
  margin-bottom: 1.75rem;
  max-width: 520px;
}

.badge-glow {
  background: rgba(79, 140, 255, 0.2);
  border: 1px solid var(--border-glow);
  box-shadow: 0 0 24px rgba(79, 140, 255, 0.15);
}

.btn-glow {
  box-shadow: 0 4px 28px var(--accent-glow), 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}

.btn-glass {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.35rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  transition: background 0.2s, transform 0.15s;
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-1px);
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(15, 20, 36, 0.6);
  backdrop-filter: blur(10px);
  color: #fff;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.slider-arrow:hover {
  background: rgba(79, 140, 255, 0.35);
  border-color: var(--border-glow);
}

.slider-prev { left: 1rem; }
.slider-next { right: 1rem; }

.slider-dots {
  position: absolute;
  bottom: 1.75rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 0.5rem;
}

.slider-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  padding: 0;
  transition: width 0.3s, background 0.3s;
}

.slider-dots button.active {
  width: 28px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.section-stats {
  margin-top: -2rem;
  position: relative;
  z-index: 5;
}

.stats-premium .stat-card {
  background: var(--glass);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-glow);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
  transition: transform 0.25s, box-shadow 0.25s;
}

.stats-premium .stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(79, 140, 255, 0.12);
}

.premium-panel {
  position: relative;
  overflow: hidden;
}

.premium-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), var(--accent-2), transparent);
  opacity: 0.6;
}

.section-title-premium .section-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.section-title-premium h2 {
  font-weight: 800;
  letter-spacing: -0.02em;
}

.premium-card {
  background: linear-gradient(145deg, var(--bg-card) 0%, rgba(22, 29, 50, 0.8) 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

.premium-card:hover {
  border-color: var(--border-glow);
  box-shadow: 0 12px 40px rgba(79, 140, 255, 0.1);
}

.premium-plan {
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.35);
}

.premium-plan:hover {
  border-color: var(--border-glow);
  box-shadow: 0 20px 60px rgba(79, 140, 255, 0.15);
}

.section-cta-final {
  padding-bottom: 3rem;
}

.section-cta-final .container {
  text-align: center;
  padding: 3rem 2rem;
  background: linear-gradient(135deg, rgba(79, 140, 255, 0.1), rgba(167, 139, 250, 0.08));
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
}

/* Hero (inner pages) */
.hero {
  padding: 3.5rem 0 4rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -40% -20% auto;
  height: 70%;
  background: radial-gradient(ellipse at 30% 20%, rgba(59, 130, 246, 0.18), transparent 55%),
    radial-gradient(ellipse at 70% 10%, rgba(139, 92, 246, 0.12), transparent 50%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
  position: relative;
}

.hero h1 {
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.hero h1 span {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-video-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  background: var(--bg-card);
}

.hero-video-wrap video {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.badge {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  background: rgba(59, 130, 246, 0.15);
  color: var(--accent);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

/* Stats */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin: 3rem 0;
}

.stat-card {
  text-align: center;
  padding: 1.25rem;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.stat-card:not(.stat-card-visual) strong {
  display: block;
  font-size: 1.75rem;
  color: var(--accent);
}

.stat-card:not(.stat-card-visual) span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Sections */
.section {
  padding: 4rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-title h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 0.5rem;
}

.section-title p {
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: border-color 0.2s, transform 0.2s;
}

.feature-card-visual {
  padding: 0;
}

.feature-card:hover {
  border-color: rgba(59, 130, 246, 0.35);
  transform: translateY(-2px);
}

.feature-card .icon {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}

.feature-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Plans */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.plan-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.2s, box-shadow 0.2s;
}

.plan-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
}

.plan-card img {
  width: 100%;
  cursor: pointer;
}

.plan-card .plan-body {
  padding: 1.25rem;
  text-align: center;
}

.plan-card h3 {
  margin-bottom: 0.75rem;
}

/* Tools banner */
.tools-banner {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.12), rgba(139, 92, 246, 0.12));
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem;
  align-items: center;
}

.tools-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Video section */
.video-section video {
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Forms (predictor + contact) */
.page-hero {
  padding: 2.5rem 0 1.5rem;
  text-align: center;
}

.page-hero h1 {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  margin-bottom: 0.5rem;
}

.page-hero p {
  color: var(--text-muted);
}

.tool-layout {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 1.5rem;
  padding-bottom: 3rem;
  align-items: start;
}

.form-panel {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

.form-panel h2 {
  font-size: 1.15rem;
  margin-bottom: 1.25rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--text-muted);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  background: var(--bg);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: var(--text);
  font-size: 0.95rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-group small {
  display: block;
  margin-top: 0.25rem;
  color: var(--text-muted);
  font-size: 0.78rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.toggle-tabs {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 1rem;
  background: var(--bg);
  padding: 0.25rem;
  border-radius: 8px;
}

.toggle-tabs button {
  flex: 1;
  padding: 0.5rem;
  border: none;
  background: transparent;
  color: var(--text-muted);
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.85rem;
}

.toggle-tabs button.active {
  background: var(--accent);
  color: #fff;
}

.results-panel {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  min-height: 320px;
}

.results-panel.empty {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--text-muted);
}

.result-highlight {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.result-box {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 1rem;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.result-box .value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
}

.result-box .label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.college-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.college-tabs button {
  padding: 0.45rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--bg);
  color: var(--text-muted);
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
}

.college-tabs button.active.safe {
  background: rgba(34, 197, 94, 0.2);
  color: var(--success);
  border-color: var(--success);
}

.college-tabs button.active.moderate {
  background: rgba(245, 158, 11, 0.2);
  color: var(--warning);
  border-color: var(--warning);
}

.college-tabs button.active.reach {
  background: rgba(239, 68, 68, 0.2);
  color: var(--danger);
  border-color: var(--danger);
}

.college-list {
  list-style: none;
  max-height: 420px;
  overflow-y: auto;
}

.college-list li {
  padding: 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem;
  align-items: start;
}

.college-list li:last-child {
  border-bottom: none;
}

.college-list .name {
  font-weight: 600;
  word-break: break-word;
}

.college-list .meta {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.college-list .cutoff {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--accent);
  white-space: nowrap;
}

.tag {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.tag.safe { background: rgba(34, 197, 94, 0.2); color: var(--success); }
.tag.moderate { background: rgba(245, 158, 11, 0.2); color: var(--warning); }
.tag.reach { background: rgba(239, 68, 68, 0.2); color: var(--danger); }

.recent-list {
  margin-top: 1rem;
  font-size: 0.85rem;
}

.recent-list h4 {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.recent-list ul {
  list-style: none;
}

.recent-list li {
  padding: 0.4rem 0;
  color: var(--text-muted);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  cursor: pointer;
}

.recent-list li:hover {
  color: var(--accent);
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  padding-bottom: 3rem;
}

.contact-info-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.contact-info-card h3 {
  margin-bottom: 1rem;
}

.contact-item {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
  color: var(--text-muted);
}

.contact-item strong {
  color: var(--text);
  display: block;
}

.phone-list {
  margin-top: 0.35rem;
}

.phone-line {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}

.phone-line a {
  color: var(--accent);
  font-weight: 600;
}

.phone-line .phone-wa {
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0.2rem 0.55rem;
  background: rgba(37, 211, 102, 0.15);
  color: #25d366;
  border-radius: 6px;
}

.phone-line .phone-wa:hover {
  background: rgba(37, 211, 102, 0.25);
}

.wa-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.wa-number-btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
  font-size: 0.92rem;
}

.wa-number-btn:hover {
  opacity: 0.95;
  transform: translateY(-1px);
}

.phone-call {
  font-size: 1rem;
}

.site-footer .wa-buttons {
  margin-top: 0.35rem;
}

.site-footer .wa-number-btn {
  font-size: 0.8rem;
  padding: 0.55rem 0.65rem;
}

.alert {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  margin-top: 1rem;
  font-size: 0.9rem;
  display: none;
}

.alert.show {
  display: block;
}

.alert.success {
  background: rgba(34, 197, 94, 0.15);
  color: var(--success);
  border: 1px solid rgba(34, 197, 94, 0.3);
}

/* Footer */
.site-footer {
  background: var(--bg-card);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 2.5rem 0 1.5rem;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-grid h4 {
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}

.footer-grid ul {
  list-style: none;
}

.footer-grid li {
  margin-bottom: 0.4rem;
}

.footer-grid a {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-grid a:hover {
  color: var(--text);
}

.footer-bottom {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  font-size: 0.85rem;
}

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.9);
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-height: 90vh;
  border-radius: var(--radius);
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
}

/* Counselling booking modal */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 300;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal.open {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
}

.modal-dialog {
  position: relative;
  width: min(420px, 100%);
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
  animation: modalIn 0.25s ease;
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-dialog h2 {
  font-size: 1.25rem;
  margin-bottom: 0.35rem;
  padding-right: 2rem;
}

.modal-subtitle {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--bg-elevated);
  border: none;
  color: var(--text);
  width: 32px;
  height: 32px;
  border-radius: 8px;
  font-size: 1.25rem;
  cursor: pointer;
  line-height: 1;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* Predictor lead gate — no dismiss until form submit */
.modal-locked .modal-close {
  display: none;
}

.modal-locked .modal-backdrop {
  cursor: default;
}

.predictor-lead-error {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--danger, #f87171);
  min-height: 1.25rem;
}

.counselling-cta {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(139, 92, 246, 0.12));
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  text-align: center;
}

.counselling-cta h2 {
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  margin-bottom: 0.5rem;
}

.counselling-cta p {
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* ========== TABLET & MOBILE ========== */
@media (max-width: 1100px) {
  .menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    order: 3;
  }

  .header-book-btn.header-book-desktop {
    display: none;
  }

  .nav-book-mobile {
    display: block;
    width: 100%;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    flex-direction: column;
    align-items: stretch;
    background: rgba(6, 9, 18, 0.98);
    padding: calc(4.5rem + env(safe-area-inset-top)) 1.25rem 2rem;
    margin-left: 0;
    z-index: 105;
    overflow-y: auto;
    gap: 0.25rem;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    width: 100%;
    padding: 0.85rem 1rem;
    font-size: 1rem;
  }
}

@media (max-width: 900px) {
  .container {
    width: min(1140px, 94%);
  }

  .section {
    padding: 2.75rem 0;
  }

  .hero-slider,
  .slider-track {
    min-height: min(88vh, 680px);
    height: min(88vh, 680px);
  }

  .slide-content {
    min-height: min(88vh, 680px);
    height: min(88vh, 680px);
    padding: 5.5rem 0 4.5rem;
    max-width: 100%;
  }

  .slide-content h1 {
    font-size: clamp(1.5rem, 5vw, 2.25rem);
  }

  .slide-content .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .slide-content .hero-actions .btn,
  .slide-content .hero-actions .btn-glass {
    width: 100%;
    text-align: center;
  }

  .slider-arrow {
    width: 40px;
    height: 40px;
    font-size: 1.4rem;
  }

  .slider-prev { left: 0.5rem; }
  .slider-next { right: 0.5rem; }

  .section-stats {
    margin-top: -1rem;
  }

  .hero-grid,
  .tool-layout,
  .contact-grid,
  .tools-banner,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .tools-banner {
    text-align: center;
  }

  .tools-links {
    justify-content: center;
    width: 100%;
  }

  .tools-links .btn {
    flex: 1;
    min-width: 140px;
  }

  .stats-row {
    grid-template-columns: repeat(2, 1fr);
    margin: 1.5rem 0;
  }

  .plans-grid {
    grid-template-columns: 1fr;
  }

  .result-highlight {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .tool-layout {
    padding-bottom: 2rem;
  }

  .form-panel,
  .results-panel {
    padding: 1.25rem;
  }

  .college-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 0.25rem;
    -webkit-overflow-scrolling: touch;
  }

  .college-tabs button {
    flex-shrink: 0;
  }

  .menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    order: 3;
  }

  .header-book-btn.header-book-desktop {
    display: none;
  }

  .nav-book-mobile {
    display: block;
    width: 100%;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    flex-direction: column;
    align-items: stretch;
    background: rgba(6, 9, 18, 0.98);
    padding: calc(4.5rem + env(safe-area-inset-top)) 1.25rem 2rem;
    margin-left: 0;
    z-index: 105;
    overflow-y: auto;
    gap: 0.25rem;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    width: 100%;
    padding: 0.85rem 1rem;
    font-size: 1rem;
  }

  .header-inner {
    position: relative;
    flex-wrap: nowrap;
    gap: 0.5rem;
  }

  .brand {
    flex: 1;
    min-width: 0;
    order: 1;
  }

  .brand span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.95rem;
  }

  .nav-links {
    order: 4;
  }

  .site-header {
    z-index: 110;
  }

  .page-home .site-header {
    position: fixed;
  }

  .counselling-cta,
  .section-cta-final .container {
    padding: 2rem 1.25rem;
  }

  .contact-info-card {
    padding: 1.5rem;
  }

  .footer-grid {
    gap: 1.5rem;
    text-align: center;
  }

  .footer-grid .brand {
    justify-content: center;
  }
}

/* ========== SMALL PHONES ========== */
@media (max-width: 640px) {
  .container {
    width: min(1140px, 96%);
  }

  .hero-slider,
  .slider-track,
  .slide-content {
    min-height: min(100dvh, 640px);
    height: min(100dvh, 640px);
  }

  .page-home .hero-slider {
    margin-top: calc(4rem + env(safe-area-inset-top));
  }

  .slide-content {
    padding: 5rem 0 4rem;
    justify-content: flex-end;
  }

  .slide-content p {
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
  }

  .slider-arrow {
    display: none;
  }

  .slider-dots {
    bottom: 1.25rem;
  }

  .stats-row {
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
  }

  .stats-premium .stat-card-visual .stat-card-img {
    height: 120px;
  }

  .stat-card-body strong {
    font-size: 1.45rem;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .college-list li {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .college-list .cutoff {
    text-align: left;
  }

  .college-list .meta .tag {
    display: inline-block;
    margin-top: 0.25rem;
  }

  .page-hero {
    padding-top: calc(4rem + env(safe-area-inset-top));
    padding-bottom: 1rem;
  }

  .page-hero h1 {
    font-size: 1.45rem;
  }

  .btn,
  .header-book-btn,
  .btn-glass {
    min-height: 44px;
  }

  .wa-number-btn {
    font-size: 0.85rem;
    padding: 0.65rem 0.75rem;
    word-break: break-word;
  }

  .modal-dialog {
    padding: 1.35rem;
    max-height: 90dvh;
    overflow-y: auto;
  }

  .toggle-tabs button {
    min-height: 44px;
    font-size: 0.8rem;
  }
}

/* ========== VERY SMALL (320–400px) ========== */
@media (max-width: 400px) {
  .brand span {
    display: none;
  }

  .brand img {
    width: 40px;
    height: 40px;
  }

  .stats-row {
    grid-template-columns: 1fr;
  }

  .slide-content h1 {
    font-size: 1.35rem;
  }

  .badge,
  .badge-glow {
    font-size: 0.72rem;
  }

  .section-title h2 {
    font-size: 1.35rem;
  }

  .tools-links {
    flex-direction: column;
  }

  .tools-links .btn {
    width: 100%;
  }
}

/* ========== LARGE SCREENS ========== */
@media (min-width: 1200px) {
  .slide-content {
    max-width: 720px;
  }
}
