/* ==========================================================================
   NEWTON THE TUTOR — PREMIUM REFINEMENT LAYER (refine.css)
   Loaded last. Overrides & enhancements only.
   Covers: Apple liquid-glass nav buttons, bigger logos everywhere,
   redesigned hero success card, redesigned stats section, global polish.
   ========================================================================== */

/* ========================================================================
   1. APPLE-INSPIRED LIQUID-GLASS NAV BUTTONS (Login / Get Started)
   ======================================================================== */
.lg-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  font-family: 'Sora', 'DM Sans', sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.2px;
  line-height: 1;
  white-space: nowrap;
  border-radius: var(--radius-pill);
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  text-decoration: none;
  -webkit-backdrop-filter: blur(18px) saturate(1.8);
  backdrop-filter: blur(18px) saturate(1.8);
  transition: transform 0.4s cubic-bezier(0.16,1,0.3,1),
              box-shadow 0.4s cubic-bezier(0.16,1,0.3,1),
              background 0.4s ease, border-color 0.4s ease;
}
.lg-btn-label { position: relative; z-index: 2; display: inline-flex; align-items: center; }
.lg-btn-icon  { position: relative; z-index: 2; font-size: 11px; transition: transform 0.35s cubic-bezier(0.16,1,0.3,1); }
.lg-btn:hover .lg-btn-icon { transform: translateX(4px); }

/* Liquid moving glow */
.lg-btn-glow {
  position: absolute;
  z-index: 1;
  top: -60%;
  left: -30%;
  width: 60%;
  height: 220%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent);
  transform: skewX(-18deg) translateX(-140%);
  transition: transform 0.7s cubic-bezier(0.16,1,0.3,1);
  pointer-events: none;
}
.lg-btn:hover .lg-btn-glow { transform: skewX(-18deg) translateX(320%); }

/* Ghost (Login) — frosted transparent glass */
.lg-btn-ghost {
  color: var(--text-primary);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.16);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.22),
              inset 0 -8px 18px rgba(255,255,255,0.04),
              0 4px 18px rgba(0,0,0,0.25);
}
.lg-btn-ghost::before {
  content: "";
  position: absolute; inset: 0; z-index: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255,255,255,0.14), rgba(255,255,255,0.02) 55%, transparent);
  opacity: 0.9;
  pointer-events: none;
}
.lg-btn-ghost:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.30);
  transform: translateY(-2px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.30),
              0 10px 30px rgba(0,0,0,0.35),
              0 0 0 1px rgba(124,77,204,0.25);
}

/* Solid (Get Started) — glossy gradient liquid glass */
.lg-btn-solid {
  color: #fff;
  background: linear-gradient(135deg, #2900a6 0%, #4e2780 48%, #7c4dcc 100%);
  border: 1px solid rgba(255,255,255,0.22);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.35),
              inset 0 -10px 20px rgba(0,0,0,0.18),
              0 8px 26px rgba(78,39,128,0.45);
}
.lg-btn-solid::before {
  content: "";
  position: absolute; inset: 0; z-index: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255,255,255,0.35), rgba(255,255,255,0.05) 45%, transparent 70%);
  opacity: 0.85;
  pointer-events: none;
}
.lg-btn-solid:hover {
  transform: translateY(-2px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.45),
              0 14px 36px rgba(78,39,128,0.6),
              0 0 40px rgba(124,77,204,0.4);
}
.lg-btn:active { transform: translateY(0) scale(0.98); }

/* Light-mode tuning */
[data-theme="light"] .lg-btn-ghost {
  color: #1a103a;
  background: rgba(255,255,255,0.55);
  border: 1px solid rgba(78,39,128,0.18);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.9), 0 4px 16px rgba(78,39,128,0.12);
}
[data-theme="light"] .lg-btn-ghost:hover {
  background: rgba(255,255,255,0.85);
  border-color: rgba(78,39,128,0.30);
}

/* Hide the old CTA button style if it ever appears */
.btn-nav-cta { display: none !important; }

@media (max-width: 620px) {
  .nav-auth-btn.lg-btn-ghost { display: none; }
  .nav-auth-btn.lg-btn-solid { padding: 9px 16px; font-size: 12.5px; }
}

/* ========================================================================
   2. BIGGER LOGOS — EVERYWHERE
   ======================================================================== */
:root { --nav-height: 104px; }

/* Navbar logo — significantly larger */
.nav-logo-img { height: 96px !important; }
#navbar.scrolled { height: 84px; }
#navbar.scrolled .nav-logo-img { height: 78px !important; }
.nav-logo:hover .nav-logo-img { transform: scale(1.06); }

/* Mobile drawer logo */
.mobile-nav-logo { height: 60px !important; }

/* Page loader logo */
.loader-logo-img { height: 104px !important; }

/* Footer logo */
.footer-logo-img { height: 68px !important; }

@media (max-width: 960px) {
  :root { --nav-height: 88px; }
  .nav-logo-img { height: 76px !important; }
  #navbar.scrolled .nav-logo-img { height: 66px !important; }
}
@media (max-width: 520px) {
  .nav-logo-img { height: 62px !important; }
  #navbar.scrolled .nav-logo-img { height: 56px !important; }
}

/* ========================================================================
   3. HERO SUCCESS CARD — premium liquid-glass with progress ring
   ======================================================================== */
.hero-success-card {
  position: absolute;
  top: 24%;
  right: 6%;
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 26px 20px 20px;
  border-radius: 22px;
  background: linear-gradient(160deg, rgba(255,255,255,0.10), rgba(255,255,255,0.03));
  border: 1px solid rgba(255,255,255,0.16);
  -webkit-backdrop-filter: blur(26px) saturate(1.7);
  backdrop-filter: blur(26px) saturate(1.7);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.28),
              0 24px 60px rgba(0,0,0,0.45),
              0 0 60px rgba(124,77,204,0.25);
  overflow: hidden;
  opacity: 0;
  animation: hscIn 0.9s 1.3s forwards cubic-bezier(0.16,1,0.3,1),
             hscFloat 7s 2.4s ease-in-out infinite;
}
.hsc-glow {
  position: absolute;
  top: -40%; right: -30%;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(124,77,204,0.5), transparent 70%);
  filter: blur(10px);
  pointer-events: none;
}
@keyframes hscIn { to { opacity: 1; } }
@keyframes hscFloat {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
.hsc-ring { position: relative; width: 84px; height: 84px; flex-shrink: 0; }
.hsc-ring-svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.hsc-ring-track { fill: none; stroke: rgba(255,255,255,0.14); stroke-width: 8; }
.hsc-ring-prog {
  fill: none;
  stroke: url(#hscGrad);
  stroke: #a78bfa;
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 327;
  stroke-dashoffset: 327;
  filter: drop-shadow(0 0 6px rgba(167,139,250,0.9));
  animation: hscRing 1.8s 1.9s forwards cubic-bezier(0.16,1,0.3,1);
}
@keyframes hscRing { to { stroke-dashoffset: 6.5; } }
.hsc-ring-num {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  font-size: 24px;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0,0,0,0.4);
}
.hsc-body { position: relative; z-index: 2; }
.hsc-title {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: #fff;
  line-height: 1.25;
  max-width: 140px;
}
.hsc-sub {
  margin-top: 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--accent-green);
  display: flex; align-items: center; gap: 6px;
  max-width: 150px;
  line-height: 1.3;
}
[data-theme="light"] .hero-success-card {
  background: linear-gradient(160deg, rgba(255,255,255,0.85), rgba(255,255,255,0.6));
  border-color: rgba(78,39,128,0.18);
}
[data-theme="light"] .hsc-ring-num,
[data-theme="light"] .hsc-title { color: #1a103a; }
[data-theme="light"] .hsc-ring-track { stroke: rgba(78,39,128,0.14); }
@media (max-width: 1040px) { .hero-success-card { display: none; } }

/* ========================================================================
   4. STATS SECTION — completely redesigned premium glass cards
   ======================================================================== */
.stats-band-v2 {
  padding: 96px 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(124,77,204,0.14), transparent 60%),
              linear-gradient(180deg, var(--bg-secondary), var(--bg-primary));
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}
.stats-band-v2::before { display: none; }
.stats-aurora {
  position: absolute;
  top: 0; left: 50%;
  width: 900px; height: 340px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(78,39,128,0.35), transparent 75%);
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
}
.stats-head {
  position: relative; z-index: 1;
  text-align: center;
  margin-bottom: 56px;
}
.stats-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-glass);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent-alt);
  margin-bottom: 20px;
}
.stats-eyebrow-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 10px var(--accent-green);
  animation: pulseDot 1.8s ease-in-out infinite;
}
@keyframes pulseDot { 0%,100% { opacity: 1; transform: scale(1);} 50% { opacity: 0.5; transform: scale(0.7);} }
.stats-heading {
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  font-size: clamp(28px, 3.4vw, 46px);
  line-height: 1.1;
  color: var(--text-primary);
}
.stats-cards-grid {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.stat-glass-card {
  position: relative;
  overflow: hidden;
  padding: 34px 26px 30px;
  border-radius: var(--radius-lg);
  text-align: center;
  background: linear-gradient(160deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.12);
  -webkit-backdrop-filter: blur(22px) saturate(1.6);
  backdrop-filter: blur(22px) saturate(1.6);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.20), 0 18px 44px rgba(0,0,0,0.32);
  transition: transform 0.45s cubic-bezier(0.16,1,0.3,1),
              box-shadow 0.45s cubic-bezier(0.16,1,0.3,1),
              border-color 0.45s ease;
}
.stat-glass-card:hover {
  transform: translateY(-8px);
  border-color: rgba(124,77,204,0.4);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.28),
              0 30px 64px rgba(0,0,0,0.45),
              0 0 50px rgba(124,77,204,0.3);
}
.sgc-sheen {
  position: absolute;
  top: 0; left: -100%;
  width: 70%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
  transform: skewX(-18deg);
  transition: left 0.7s ease;
  pointer-events: none;
}
.stat-glass-card:hover .sgc-sheen { left: 160%; }
.sgc-icon {
  width: 58px; height: 58px;
  margin: 0 auto 18px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 16px;
  font-size: 22px;
  color: #fff;
  background: linear-gradient(135deg, #2900a6, #7c4dcc);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.3), 0 8px 22px rgba(78,39,128,0.5);
}
.stat-glass-card .sgc-num .stat-big {
  font-family: 'Sora', sans-serif;
  font-size: clamp(38px, 3.6vw, 54px);
  font-weight: 900;
  line-height: 1;
  display: inline-block;
  background: linear-gradient(135deg, #ffffff 0%, #c9b6ff 60%, #7c4dcc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.sgc-label {
  margin-top: 10px;
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: var(--text-primary);
}
.sgc-desc {
  margin-top: 8px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--text-muted);
}
[data-theme="light"] .stat-glass-card {
  background: linear-gradient(160deg, rgba(255,255,255,0.9), rgba(255,255,255,0.7));
  border-color: rgba(78,39,128,0.12);
}
[data-theme="light"] .stat-glass-card .sgc-num .stat-big {
  background: linear-gradient(135deg, #2900a6, #7c4dcc);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
[data-theme="light"] .sgc-desc { color: var(--text-secondary); }

@media (max-width: 900px) {
  .stats-cards-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .stats-band-v2 { padding: 72px 0; }
}
@media (max-width: 480px) {
  .stats-cards-grid { grid-template-columns: 1fr; }
}

/* ========================================================================
   5. GLOBAL PREMIUM POLISH — applies across all pages
   ======================================================================== */

/* Smoother, richer card hovers site-wide */
.service-card, .why-card, .tutor-card, .price-card, .blog-card, .value-card, .subject-card {
  transition: transform 0.5s cubic-bezier(0.16,1,0.3,1),
              box-shadow 0.5s cubic-bezier(0.16,1,0.3,1),
              border-color 0.4s ease !important;
}
.service-card:hover, .blog-card:hover {
  transform: translateY(-10px) !important;
}
.subject-card:hover, .value-card:hover {
  transform: translateY(-6px) !important;
}

/* Refined outline buttons across all pages — subtle glass */
.btn-outline {
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

/* Section headings get a touch more presence */
.accent-word {
  background: linear-gradient(120deg, #7c4dcc, #a78bfa, #4f7fff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Marquee polish */
.marquee-item { transition: color 0.3s ease; }

/* Scroll-reveal default state polish (respects existing .reveal system) */
@media (prefers-reduced-motion: reduce) {
  .hero-success-card, .stats-eyebrow-dot, .hsc-ring-prog { animation: none !important; }
  .lg-btn, .stat-glass-card, .service-card, .blog-card { transition: none !important; }
}

/* ========================================================================
   NEWTON UPDATES — ALL CHANGES (July 2026)
   ======================================================================== */

/* ── 1. HERO TEXT — bigger, bring in, overflow visible for descenders ── */
.hero-title {
  font-size: clamp(56px, 9vw, 120px) !important;
  line-height: 1.05 !important;
  overflow: visible !important;
  padding-bottom: 0.15em !important;
  padding-left: 0 !important;
}
.hero-title .split-line {
  overflow: visible !important;
  display: block !important;
}
.hero-title .split-inner {
  display: inline-block !important;
  overflow: visible !important;
  padding-bottom: 0.18em !important;
}
/* Ensure hero-content doesn't clip text */
.hero-content {
  overflow: visible !important;
}
.hero-content .container {
  padding-left: clamp(32px, 5vw, 80px) !important;
  padding-right: clamp(32px, 5vw, 80px) !important;
}

/* ── 2. ABOUT BADGE — "10+ Years of Excellence" redesign ── */
.about-badge {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  padding: 16px 24px !important;
  border-radius: 18px !important;
  min-width: 200px !important;
  width: auto !important;
}
.about-badge-num {
  font-size: 32px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
}
.about-badge-text {
  font-size: 13px !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
  max-width: 120px !important;
  white-space: normal !important;
}

/* ── 3. SECOND FLOATING PILL ── */
.hero-float-pill {
  position: absolute;
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 28px 20px 22px;
  border-radius: 22px;
  background: linear-gradient(160deg, rgba(255,255,255,0.10), rgba(255,255,255,0.03));
  border: 1px solid rgba(255,255,255,0.16);
  -webkit-backdrop-filter: blur(26px) saturate(1.7);
  backdrop-filter: blur(26px) saturate(1.7);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.28),
              0 24px 60px rgba(0,0,0,0.45),
              0 0 60px rgba(78,39,128,0.25);
  overflow: hidden;
  opacity: 0;
  animation: hscIn 0.9s 1.7s forwards cubic-bezier(0.16,1,0.3,1),
             hfpFloat 9s 2.8s ease-in-out infinite;
}
@keyframes hfpFloat {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.hero-float-pill-1 {
  top: 24%;
  right: 6%;
}
.hero-float-pill-2 {
  top: 54%;
  right: 6%;
}
.hfp-glow {
  position: absolute;
  top: -40%; left: -30%;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(78,39,128,0.5), transparent 70%);
  filter: blur(10px);
  pointer-events: none;
}
.hfp-icon {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-alt));
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 4px 20px rgba(78,39,128,0.4);
}
.hfp-num {
  font-family: 'Sora', sans-serif;
  font-weight: 900;
  font-size: 28px;
  color: #fff;
  line-height: 1;
  margin-bottom: 4px;
}
.hfp-title {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: #fff;
  line-height: 1.3;
  max-width: 160px;
}
.hfp-sub {
  margin-top: 5px;
  font-size: 11px;
  font-weight: 600;
  color: var(--accent-gold);
  display: flex; align-items: center; gap: 5px;
}
[data-theme="light"] .hero-float-pill {
  background: linear-gradient(160deg, rgba(255,255,255,0.85), rgba(255,255,255,0.6));
  border-color: rgba(78,39,128,0.18);
}
[data-theme="light"] .hfp-num,
[data-theme="light"] .hfp-title { color: #1a103a; }
@media (max-width: 1040px) {
  .hero-float-pill { display: none; }
  .hero-success-card { display: none; }
}

/* ── 4. HERO ACTIONS spacing — push buttons lower ── */
.hero-actions {
  margin-top: 12px !important;
  margin-bottom: 56px !important;
}

/* ── 5. SUBJECTS GRID — updated for 10 items ── */
.subjects-grid {
  grid-template-columns: repeat(5, 1fr) !important;
  gap: 16px !important;
}
@media (max-width: 1100px) { .subjects-grid { grid-template-columns: repeat(4, 1fr) !important; } }
@media (max-width: 768px)  { .subjects-grid { grid-template-columns: repeat(3, 1fr) !important; } }
@media (max-width: 520px)  { .subjects-grid { grid-template-columns: repeat(2, 1fr) !important; } }

/* ── 6. TUTOR CARDS — info-only redesign, no images ── */
.tutor-card-info-only {
  overflow: visible !important;
}
.tutor-card-info-only .tutor-card-photo {
  display: none !important;
}
.tutor-card-avatar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 28px 20px 16px;
  background: linear-gradient(160deg, rgba(78,39,128,0.15), rgba(124,77,204,0.06));
  border-bottom: 1px solid var(--border-card);
}
.tutor-avatar-ring {
  width: 88px; height: 88px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-alt));
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 4px rgba(124,77,204,0.25), 0 8px 24px rgba(78,39,128,0.4);
}
.tutor-avatar-icon {
  font-size: 36px;
  color: #fff;
}
.tutor-credential {
  font-size: 12px;
  color: var(--accent-alt);
  display: flex; align-items: center; gap: 6px;
  margin-top: 4px;
  font-weight: 600;
}
.tutor-achievement {
  font-size: 12px;
  color: var(--accent-green);
  display: flex; align-items: center; gap: 6px;
  margin-top: 4px;
  font-weight: 600;
}
.tutor-card-info-only .tutor-card-info {
  padding: 20px;
}
/* Remove old photo hover effect for info-only cards */
.tutor-card-info-only:hover .tutor-card-photo { transform: none; }

/* ── 7. NAVBAR — slightly more transparent ── */
#navbar {
  background: rgba(5, 4, 14, 0.03) !important;
}
#navbar.scrolled {
  background: rgba(5, 3, 18, 0.55) !important;
}
[data-theme="light"] #navbar {
  background: rgba(255, 255, 255, 0.05) !important;
}
[data-theme="light"] #navbar.scrolled {
  background: rgba(255, 255, 255, 0.65) !important;
}

/* ── 8. THEME TOGGLE — premium pill design ── */
.theme-toggle {
  width: auto !important;
  height: 36px !important;
  padding: 0 14px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(255,255,255,0.18) !important;
  background: linear-gradient(135deg, rgba(78,39,128,0.25), rgba(124,77,204,0.12)) !important;
  color: rgba(255,255,255,0.85) !important;
  display: flex !important;
  align-items: center !important;
  gap: 7px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  font-family: 'Inter', sans-serif !important;
  backdrop-filter: blur(16px) saturate(1.5) !important;
  -webkit-backdrop-filter: blur(16px) saturate(1.5) !important;
  transition: all 0.25s ease !important;
  box-shadow: 0 2px 12px rgba(78,39,128,0.3), inset 0 1px 0 rgba(255,255,255,0.15) !important;
  white-space: nowrap !important;
}
.theme-toggle::after {
  content: 'Mode';
  font-size: 11px;
  font-weight: 500;
  opacity: 0.7;
}
.theme-toggle:hover {
  background: linear-gradient(135deg, rgba(78,39,128,0.45), rgba(124,77,204,0.25)) !important;
  color: #fff !important;
  border-color: rgba(124,77,204,0.5) !important;
  box-shadow: 0 4px 20px rgba(78,39,128,0.45), inset 0 1px 0 rgba(255,255,255,0.2) !important;
  transform: translateY(-1px);
}
[data-theme="light"] .theme-toggle {
  background: linear-gradient(135deg, rgba(78,39,128,0.12), rgba(124,77,204,0.06)) !important;
  border-color: rgba(78,39,128,0.2) !important;
  color: var(--accent-deep) !important;
}
[data-theme="light"] .theme-toggle:hover {
  background: linear-gradient(135deg, rgba(78,39,128,0.22), rgba(124,77,204,0.14)) !important;
}
.theme-icon { font-size: 14px !important; }

/* ── 9. FAQ FONT FIX — services page ── */
.faq-a,
.faq-a.body-md {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif !important;
  font-size: 15px !important;
  font-weight: 400 !important;
  line-height: 1.8 !important;
  color: var(--text-secondary) !important;
  letter-spacing: 0 !important;
}
/* FAQ question text premium style */
[onclick] > .flex-between > span {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif !important;
  font-size: 17px !important;
  font-weight: 600 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  color: var(--text-primary) !important;
}

/* ── 10. PAGE HERO IMAGE CARDS — premium style used across pages ── */
.page-hero-image-card {
  position: relative;
  width: 100%;
  min-height: 520px;
  border-radius: 24px;
  overflow: hidden;
  margin-bottom: 0;
}
.page-hero-image-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}
.page-hero-image-card:hover img {
  transform: scale(1.04);
}
.page-hero-image-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(5,8,20,0.85) 0%, rgba(5,8,20,0.45) 60%, transparent 100%);
  display: flex;
  align-items: flex-end;
  padding: 48px;
}
[data-theme="light"] .page-hero-image-card-overlay {
  background: linear-gradient(135deg, rgba(10,5,30,0.75) 0%, rgba(10,5,30,0.35) 60%, transparent 100%);
}

/* ── 11. ESSAYS PAGE — replace orange with theme purple/indigo ── */
.badge-gold,
.badge-gold * {
  background: rgba(124,77,204,0.18) !important;
  color: var(--accent-alt) !important;
  border-color: rgba(124,77,204,0.35) !important;
}
/* Any inline orange color on essays page */
[style*="f59e0b"],[style*="fbbf24"],[style*="f97316"],[style*="fb923c"] {
  color: var(--accent-alt) !important;
}
/* Stats band on essays page */
section[style*="rgba(251,191,36"] {
  background: rgba(124,77,204,0.04) !important;
  border-color: rgba(124,77,204,0.1) !important;
}
/* Essay type card borders */
.service-feature-card {
  border-color: rgba(124,77,204,0.2) !important;
}

/* ── 12. AUTH PAGES — logo, text color, layout ── */
.auth-logo {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
}
.auth-logo-img {
  height: 72px !important;
  width: auto !important;
  display: block !important;
}
.nav-logo-mark {
  display: none !important;
}
.auth-panel-left-inner .logo-name,
.auth-panel-left-inner .logo-sub {
  color: #fff !important;
}
/* Heading and text legibility on left panels */
.auth-panel-content .heading-lg,
.auth-panel-content .heading-lg em {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}
.auth-panel-content .heading-lg em.accent-word {
  background: linear-gradient(120deg, #a78bfa, #c4b5fd, #818cf8) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  color: transparent !important;
}
.auth-panel-content .label {
  color: rgba(255,255,255,0.75) !important;
  background: rgba(255,255,255,0.12) !important;
  border-color: rgba(255,255,255,0.2) !important;
}
.auth-panel-content .body,
.auth-panel-content p.body {
  color: rgba(255,255,255,0.82) !important;
}
.auth-panel-left h2.heading-lg {
  margin-top: 8px;
}
/* Signup specific — title on left panel */
.auth-panel-content h2 {
  color: #fff !important;
  -webkit-text-fill-color: unset !important;
}

/* ── 13. SIGN UP PAGE — bigger card, remove plans indicator ── */
.plan-selector-wrap {
  display: none !important;
}
.auth-form-wrap {
  padding: 48px !important;
}
.auth-panel-right-wide .auth-form-wrap {
  max-width: 580px !important;
}
/* Sign up heading on left */
.auth-panel-left .auth-panel-content h2 {
  font-size: clamp(32px, 4vw, 52px) !important;
  color: #fff !important;
}

/* ── 14. STATS BAND — hide original hero-stats bar ── */
.hero-stats {
  display: none !important;
}

/* ── 15. STATS BAND V2 numbers in main body — keep visible ── */
.stats-band-v2 { display: block !important; }


/* ── Image card height fix — ensure image fills container ── */
.page-hero-image-card {
  display: block !important;
}
.page-hero-image-card img {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}
/* Ensure min-height is respected */
.page-hero-image-card[style*="min-height"] {
  height: auto !important;
}

/* ── Contact image card grid on mobile ── */
@media (max-width: 768px) {
  .page-hero-image-card-overlay[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }
}

/* ── Tutor card — ensure equal height ── */
.tutors-grid {
  align-items: stretch !important;
}
.tutor-card-info-only {
  display: flex;
  flex-direction: column;
}
.tutor-card-info-only .tutor-card-info {
  flex: 1;
}

/* ── Auth logo size on mobile ── */
@media (max-width: 768px) {
  .auth-logo-img {
    height: 56px !important;
  }
}

/* ========================================================================
   NEWTON UPDATES — v3 FIXES (July 2026)
   ======================================================================== */

/* ── 1. FOOTER LOGO — theme-aware (handled in overhaul.css, extra safety) ── */
/* Already fixed in overhaul.css — no duplicate needed */

/* ── 2. CTA BUTTONS spacing — bigger gap from text above ── */
.cta-content .flex.gap-16.flex-wrap {
  margin-top: 48px !important;
}

/* ── 3. FLOATING PILLS — bigger, better positioned, premium design ── */
/* Override both pills to be larger and better balanced */
.hero-success-card {
  top: 18% !important;
  right: 4% !important;
  padding: 24px 32px 24px 24px !important;
  border-radius: 26px !important;
  gap: 22px !important;
  min-width: 280px !important;
  background: linear-gradient(160deg, rgba(255,255,255,0.13), rgba(255,255,255,0.05)) !important;
  border: 1px solid rgba(255,255,255,0.22) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.32),
    0 32px 80px rgba(0,0,0,0.5),
    0 0 80px rgba(124,77,204,0.3) !important;
}

/* Larger progress ring */
.hsc-ring {
  width: 96px !important;
  height: 96px !important;
}
.hsc-ring-num {
  font-size: 27px !important;
}
.hsc-title {
  font-size: 16px !important;
  max-width: 160px !important;
}
.hsc-sub {
  font-size: 12px !important;
}

/* Pill 2 — bigger and repositioned */
.hero-float-pill {
  padding: 22px 32px 22px 26px !important;
  border-radius: 26px !important;
  gap: 22px !important;
  min-width: 280px !important;
  background: linear-gradient(160deg, rgba(255,255,255,0.13), rgba(255,255,255,0.05)) !important;
  border: 1px solid rgba(255,255,255,0.22) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.32),
    0 32px 80px rgba(0,0,0,0.5),
    0 0 80px rgba(78,39,128,0.3) !important;
}
.hero-float-pill-1 {
  top: 18% !important;
  right: 4% !important;
}
.hero-float-pill-2 {
  top: 56% !important;
  right: 4% !important;
}
.hfp-icon {
  width: 68px !important;
  height: 68px !important;
  font-size: 28px !important;
  border-radius: 50% !important;
  box-shadow: 0 6px 28px rgba(78,39,128,0.5) !important;
}
.hfp-num {
  font-size: 32px !important;
}
.hfp-title {
  font-size: 15px !important;
  max-width: 180px !important;
}
.hfp-sub {
  font-size: 12px !important;
  margin-top: 6px !important;
}

/* Light mode overrides for bigger pills */
[data-theme="light"] .hero-float-pill {
  background: linear-gradient(160deg, rgba(255,255,255,0.9), rgba(255,255,255,0.7)) !important;
  border-color: rgba(78,39,128,0.22) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.9),
    0 24px 60px rgba(78,39,128,0.18),
    0 0 60px rgba(124,77,204,0.12) !important;
}
[data-theme="light"] .hero-success-card {
  background: linear-gradient(160deg, rgba(255,255,255,0.9), rgba(255,255,255,0.7)) !important;
  border-color: rgba(78,39,128,0.22) !important;
}

/* Keep pills hidden on small screens */
@media (max-width: 1100px) {
  .hero-float-pill { display: none !important; }
  .hero-success-card { display: none !important; }
}
