/* ==========================================================================
   AI Study Guru — Premium Design Layer v2
   Loaded AFTER site.css + navigation.css. Purely additive/enhancing:
   keeps every existing class working, adds the decorative finish.
   v2: Sora display font, 3D depth system, UHD typography, tilt cards.
   ========================================================================== */

@import url("https://fonts.googleapis.com/css2?family=Sora:wght@400;500;600;700;800&family=Outfit:ital,wght@0,500;0,600;0,700;0,800;0,900;1,700&display=swap");

:root {
  --pg-ink: #0A1633;
  --pg-navy: #0B1B3A;
  --pg-navy-deep: #060F26;
  --pg-blue: #0052FF;
  --pg-blue-deep: #0040C7;
  --pg-cyan: #00C6FF;
  --pg-violet: #6D5DF6;
  --pg-gold: #F5A623;
  --pg-gold-soft: #FFF4DE;
  --pg-mint: #10B981;

  --pg-grad-brand: linear-gradient(120deg, #0043E0 0%, #0066FF 48%, #00B4FF 100%);
  --pg-grad-violet: linear-gradient(120deg, #6D5DF6 0%, #0090E8 100%);
  --pg-grad-gold: linear-gradient(120deg, #FFB020 0%, #FF8A3D 100%);
  --pg-grad-text: linear-gradient(100deg, #0043E0 0%, #0066FF 40%, #00A8E8 75%, #6D5DF6 100%);

  --pg-shadow-card: 0 1px 2px rgba(10, 22, 51, 0.05), 0 10px 30px -12px rgba(10, 41, 105, 0.14);
  --pg-shadow-lift: 0 2px 4px rgba(10, 22, 51, 0.06), 0 24px 48px -16px rgba(0, 66, 199, 0.22);
  --pg-shadow-glow: 0 10px 34px -6px rgba(0, 82, 255, 0.45);

  --pg-dot-grid: radial-gradient(rgba(0, 82, 255, 0.10) 1px, transparent 1.4px);

  /* Premium display font + UHD type refinements */
  --font-heading: "Sora", "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* --------------------------------------------------------------------------
   UHD base — crisp type, balanced headings, premium selection & scrollbar
   -------------------------------------------------------------------------- */
html {
  text-rendering: optimizeLegibility;
  -webkit-text-size-adjust: 100%;
}

h1, h2, h3, h4 {
  text-wrap: balance;
  letter-spacing: -0.03em;
}

p, li { text-wrap: pretty; }

::selection {
  background: linear-gradient(100deg, rgba(0, 82, 255, 0.85), rgba(0, 168, 232, 0.85));
  color: #fff;
}

::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: #EEF3FB; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #2E6BFF, #0090E8);
  border-radius: 10px;
  border: 3px solid #EEF3FB;
}
::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, #0052FF, #0080D0); }

a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid rgba(0, 82, 255, 0.45);
  outline-offset: 2px;
  border-radius: 6px;
}

/* --------------------------------------------------------------------------
   Base polish
   -------------------------------------------------------------------------- */
html { scroll-padding-top: 96px; }

body::before {
  background:
    radial-gradient(900px 460px at 85% -60px, rgba(0, 120, 255, 0.10), transparent 70%),
    radial-gradient(700px 420px at 8% -40px, rgba(109, 93, 246, 0.08), transparent 70%);
  height: 720px;
}

::selection { background: rgba(0, 82, 255, 0.16); }

h1, h2, h3 { letter-spacing: -0.025em; }

/* --------------------------------------------------------------------------
   Header — glass bar with gradient hairline
   -------------------------------------------------------------------------- */
.sg-header {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px) saturate(1.5);
  -webkit-backdrop-filter: blur(18px) saturate(1.5);
  border-bottom: 1px solid transparent;
  border-image: linear-gradient(90deg, rgba(0, 82, 255, 0.28), rgba(0, 198, 255, 0.18), rgba(109, 93, 246, 0.22)) 1;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset, 0 8px 30px -18px rgba(10, 22, 51, 0.25);
}

.sg-brand { gap: 11px; }

.sg-brand img {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  box-shadow: 0 4px 12px -2px rgba(0, 82, 255, 0.35);
}

.sg-links > a,
.sg-links summary {
  font-weight: 650;
  position: relative;
  transition: color .18s ease, background .18s ease;
}

.sg-links > a:hover::after {
  content: "";
  position: absolute;
  left: 12px; right: 12px; bottom: 6px;
  height: 2px;
  border-radius: 2px;
  background: var(--pg-grad-brand);
  opacity: .85;
}

.sg-links > a.sg-primary {
  background: var(--pg-grad-brand);
  padding: 12px 20px;
  border-radius: 13px;
  box-shadow: 0 6px 18px -4px rgba(0, 82, 255, 0.5);
  transition: transform .2s ease, box-shadow .2s ease;
}

.sg-links > a.sg-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 26px -4px rgba(0, 82, 255, 0.55);
}

.sg-links > a.sg-primary:hover::after { display: none; }

/* --------------------------------------------------------------------------
   Buttons — gradient depth + shine sweep
   -------------------------------------------------------------------------- */
.btn-primary {
  background: var(--pg-grad-brand);
  background-size: 150% 100%;
  box-shadow:
    0 5px 0 -1px #0031A8,
    0 16px 30px -8px rgba(0, 82, 255, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
  position: relative;
  overflow: hidden;
}

.btn-primary:active {
  transform: translateY(3px);
  box-shadow:
    0 1px 0 -1px #0031A8,
    0 8px 16px -6px rgba(0, 82, 255, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-primary::after {
  content: "";
  position: absolute;
  top: 0; left: -80%;
  width: 55%; height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-20deg);
  transition: left .55s ease;
  pointer-events: none;
}

.btn-primary:hover::after { left: 130%; }

.btn-primary:hover {
  background: var(--pg-grad-brand);
  transform: translateY(-2px);
  box-shadow:
    0 7px 0 -1px #0031A8,
    0 22px 40px -8px rgba(0, 82, 255, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-outline {
  border: 1.5px solid rgba(0, 82, 255, 0.28);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(6px);
}

.btn-outline:hover {
  border-color: var(--pg-blue);
  box-shadow: 0 8px 22px -8px rgba(0, 82, 255, 0.35);
}

.btn-wa { box-shadow: 0 8px 24px -6px rgba(37, 211, 102, 0.55); }

/* Join cards — deeper glass + hover glow */
.join3d {
  border-radius: 18px !important;
  transition: transform .25s cubic-bezier(.16,1,.3,1), box-shadow .25s ease !important;
}

.join3d:hover { transform: translateY(-3px) !important; }

.join3d-wa:hover { box-shadow: 0 14px 34px -8px rgba(37, 211, 102, 0.55) !important; }
.join3d-tg:hover { box-shadow: 0 14px 34px -8px rgba(34, 158, 217, 0.55) !important; }

/* --------------------------------------------------------------------------
   Hero — aurora sky, dot grid, floating orbs
   -------------------------------------------------------------------------- */
.sg-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1100px 520px at 88% -80px, rgba(0, 198, 255, 0.20), transparent 62%),
    radial-gradient(900px 560px at -140px 30%, rgba(109, 93, 246, 0.14), transparent 60%),
    radial-gradient(760px 480px at 55% 118%, rgba(0, 102, 255, 0.10), transparent 62%),
    linear-gradient(160deg, #FDFEFF 0%, #F3F7FF 55%, #EBF2FF 100%);
  padding: 84px 0 8px;
}

.sg-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--pg-dot-grid);
  background-size: 26px 26px;
  mask-image: radial-gradient(720px 480px at 70% 8%, rgba(0,0,0,.5), transparent 75%);
  -webkit-mask-image: radial-gradient(720px 480px at 70% 8%, rgba(0,0,0,.5), transparent 75%);
  pointer-events: none;
}

.sg-hero::after {
  content: "";
  position: absolute;
  width: 560px; height: 560px;
  right: -180px; top: -220px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(0, 198, 255, 0.16), rgba(0, 82, 255, 0.05) 55%, transparent 72%);
  filter: blur(2px);
  animation: pg-float-slow 14s ease-in-out infinite;
  pointer-events: none;
}

.sg-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 16px 9px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(0, 82, 255, 0.18);
  box-shadow: 0 4px 16px -6px rgba(0, 66, 199, 0.25), 0 1px 0 rgba(255,255,255,.9) inset;
  color: #0042C5;
  backdrop-filter: blur(8px);
  margin-bottom: 18px;
}

.sg-kicker::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--pg-grad-brand);
  box-shadow: 0 0 0 4px rgba(0, 82, 255, 0.14);
  animation: pg-pulse 2.4s ease-in-out infinite;
}

.sg-hero .gradient {
  background: var(--pg-grad-text);
  -webkit-background-clip: text;
  background-clip: text;
}

.sg-hero .sg-lead { color: #3D547A; }

.sg-note {
  display: block;
  padding: 10px 16px 10px 14px;
  border-radius: 14px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.18);
  color: #067A5B;
  font-weight: 600;
}

.sg-note::before {
  content: "✓";
  display: inline-block;
  font-weight: 800;
  color: #10B981;
  margin-right: 8px;
}

.sg-home-search {
  position: relative;
  z-index: 1;
}

.sg-home-search input {
  border: 1.5px solid rgba(0, 82, 255, 0.22);
  border-radius: 14px;
  box-shadow: 0 6px 20px -10px rgba(10, 41, 105, 0.2);
  transition: border-color .2s ease, box-shadow .2s ease;
}

.sg-home-search input:focus {
  outline: none;
  border-color: var(--pg-blue);
  box-shadow: 0 0 0 4px rgba(0, 82, 255, 0.12), 0 6px 20px -10px rgba(10, 41, 105, 0.25);
}

.sg-home-search button {
  border-radius: 14px;
  background: var(--pg-grad-brand);
  box-shadow: 0 6px 18px -4px rgba(0, 82, 255, 0.5);
}

/* Trust chips row (new homepage element) */
.pg-hero-visual { position: relative; }

.pg-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 20px 0 6px;
  padding: 0;
  list-style: none;
}

.pg-trust-row li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 650;
  color: #33456B;
}

.pg-trust-row li::before {
  content: "✓";
  display: grid;
  place-items: center;
  width: 20px; height: 20px;
  border-radius: 50%;
  font-size: 11.5px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #10B981, #059669);
  box-shadow: 0 3px 8px -2px rgba(16, 185, 129, 0.5);
}

/* Teacher example card — glass panel + float */
.sg-hero .sg-example {
  position: relative;
  padding-bottom: 54px;
  border: 1px solid rgba(0, 82, 255, 0.14);
  border-radius: 26px;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.96), rgba(244, 249, 255, 0.92));
  backdrop-filter: blur(14px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 30px 70px -22px rgba(0, 56, 121, 0.28),
    0 4px 18px -8px rgba(10, 22, 51, 0.12);
}

.sg-example::before {
  content: "";
  position: absolute;
  top: 0; left: 24px; right: 24px;
  height: 3px;
  border-radius: 0 0 6px 6px;
  background: var(--pg-grad-brand);
  opacity: .9;
}

.sg-example-icon {
  background: var(--pg-grad-brand) !important;
  color: #fff;
  box-shadow: 0 6px 16px -4px rgba(0, 82, 255, 0.5);
}

.sg-bubble {
  background: linear-gradient(135deg, #EAF2FF, #E3EEFF);
  border: 1px solid rgba(0, 82, 255, 0.10);
  border-radius: 16px 16px 16px 4px;
}

.sg-answer strong { color: #0040C7; }

.sg-equation {
  background: linear-gradient(135deg, #F7FBFF, #EFF6FF);
  border: 1.5px dashed rgba(0, 82, 255, 0.28);
  font-family: var(--font-heading);
  font-weight: 700;
}

/* Floating mini-chips around the example card (new homepage element) */
.pg-float-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 15px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(0, 82, 255, 0.14);
  box-shadow: 0 14px 34px -12px rgba(10, 41, 105, 0.3);
  font-size: 12.5px;
  font-weight: 750;
  color: #16305C;
  backdrop-filter: blur(8px);
  z-index: 2;
  animation: pg-float-soft 7s ease-in-out infinite;
}

.pg-float-chip small {
  display: block;
  font-weight: 600;
  color: #5D7195;
  font-size: 11px;
}

.pg-float-chip .pg-chip-ico {
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  border-radius: 10px;
  font-size: 17px;
  flex: none;
}

.pg-float-chip.pg-chip-a { top: -22px; right: -18px; animation-delay: .8s; }
.pg-float-chip.pg-chip-a .pg-chip-ico { background: linear-gradient(135deg, #FFF1D6, #FFE3B3); }
.pg-float-chip.pg-chip-b { bottom: -24px; left: -24px; animation-delay: 1.6s; }
.pg-float-chip.pg-chip-b .pg-chip-ico { background: linear-gradient(135deg, #E4E9FF, #D6DEFF); }

@media (max-width: 1120px) {
  .pg-float-chip.pg-chip-a { right: 6px; }
  .pg-float-chip.pg-chip-b { left: 6px; }
}

@media (max-width: 700px) {
  .pg-float-chip { display: none; }
}

/* --------------------------------------------------------------------------
   Wave divider under hero
   -------------------------------------------------------------------------- */
.pg-wave { display: block; }

/* --------------------------------------------------------------------------
   Stats band (new homepage element)
   -------------------------------------------------------------------------- */
.pg-stats {
  background: #F5F8FF;
  padding: 8px 0 30px;
}

.pg-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  max-width: 1080px;
  margin: 0 auto;
  padding: 26px 28px;
  border-radius: 22px;
  background: linear-gradient(140deg, #0C1D42 0%, #10265C 55%, #12336E 100%);
  box-shadow: 0 30px 60px -24px rgba(6, 15, 38, 0.55);
  position: relative;
  overflow: hidden;
}

.pg-stats-grid::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(420px 200px at 90% -30%, rgba(0, 198, 255, 0.25), transparent 65%),
    radial-gradient(360px 200px at 5% 115%, rgba(109, 93, 246, 0.28), transparent 65%);
  pointer-events: none;
}

.pg-stat { position: relative; text-align: center; padding: 6px 10px; }

.pg-stat + .pg-stat::before {
  content: "";
  position: absolute;
  left: 0; top: 18%; bottom: 18%;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.22), transparent);
}

.pg-stat strong {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(100deg, #7FB5FF, #37D6FF);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.15;
}

.pg-stat span {
  display: block;
  margin-top: 5px;
  font-size: 12.5px;
  font-weight: 650;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #A8BEE8;
}

@media (max-width: 860px) {
  .pg-stats-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .pg-stat:nth-child(3)::before { display: none; }
}

@media (max-width: 480px) {
  .pg-stats-grid { grid-template-columns: repeat(2, 1fr); padding: 20px 16px; }
}

/* --------------------------------------------------------------------------
   Sections — alternating soft gradients with radial accents
   -------------------------------------------------------------------------- */
.sg-section { position: relative; }
.sg-section-soft {
  background:
    radial-gradient(620px 280px at 100% 0%, rgba(0, 130, 255, 0.06), transparent 60%),
    radial-gradient(560px 300px at 0% 100%, rgba(109, 93, 246, 0.05), transparent 60%),
    linear-gradient(180deg, #F6F9FF 0%, #F2F7FF 100%);
}

/* Section headings with gradient accent bar */
.sg-section .sg-kicker {
  margin-bottom: 12px;
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  backdrop-filter: none;
}

.sg-section .sg-kicker::before {
  width: 26px; height: 4px;
  border-radius: 4px;
  background: var(--pg-grad-brand);
  box-shadow: none;
  animation: none;
}

.sg-home h2, .sg-directory h2 { color: var(--pg-ink); }

/* Dark panels must keep light text (premium.css loads last) */
.sg-band h2, .sg-band p, .sg-band .sg-kicker { color: #fff; }
.sg-band p { opacity: .88; }
.sg-band h2, .pg-final h2 { color: #fff; }

/* --------------------------------------------------------------------------
   Cards — gradient hairline, lift on hover, icon chips
   -------------------------------------------------------------------------- */
.sg-grid { gap: 22px; }

.sg-card {
  position: relative;
  border-radius: 20px;
  border: 1px solid transparent;
  background:
    linear-gradient(170deg, #FFFFFF 0%, #FDFEFF 55%, #F6FAFF 100%) padding-box,
    linear-gradient(140deg, rgba(0, 82, 255, 0.38), rgba(0, 198, 255, 0.14) 38%, rgba(109, 93, 246, 0.30) 78%, rgba(0, 82, 255, 0.20)) border-box;
  box-shadow:
    0 1px 2px rgba(10, 22, 51, 0.05),
    0 10px 30px -12px rgba(10, 41, 105, 0.16),
    0 2px 6px -2px rgba(10, 22, 51, 0.04);
  padding: 26px 24px;
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform .35s cubic-bezier(.16,1,.3,1), box-shadow .35s ease;
}

.sg-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3.5px;
  background: var(--pg-grad-brand);
  opacity: 0;
  transform: scaleX(.4);
  transform-origin: left;
  transition: opacity .3s ease, transform .45s cubic-bezier(.16,1,.3,1);
}

.sg-card:hover {
  transform: perspective(950px) rotateX(1.6deg) rotateY(-2deg) translateY(-7px);
  box-shadow:
    0 2px 4px rgba(10, 22, 51, 0.06),
    0 30px 55px -18px rgba(0, 66, 199, 0.28),
    0 6px 14px -4px rgba(10, 22, 51, 0.06);
}

.sg-card:hover::before { opacity: 1; transform: scaleX(1); }

.sg-card > a:last-child:not(.btn) {
  font-weight: 750;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.sg-card > a:last-child:not(.btn)::after {
  content: "→";
  transition: transform .2s ease;
}

.sg-card > a:last-child:not(.btn):hover::after { transform: translateX(4px); }

.sg-icon {
  display: inline-grid;
  place-items: center;
  width: 52px; height: 52px;
  font-size: 25px !important;
  border-radius: 15px;
  background: linear-gradient(140deg, #EBF3FF, #E0EDFF);
  border: 1px solid rgba(0, 82, 255, 0.10);
  box-shadow: 0 6px 14px -6px rgba(0, 66, 199, 0.25), 0 1px 0 #fff inset;
  transition: transform .25s cubic-bezier(.16,1,.3,1);
}

.sg-card:hover .sg-icon { transform: scale(1.08) rotate(-4deg); }

.sg-result-type {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #0042C5 !important;
  letter-spacing: .08em;
}

.sg-result-type::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 2px;
  background: var(--pg-grad-gold);
  flex: none;
}

/* Path cards */
.sg-paths a {
  border-radius: 18px;
  border: 1px solid rgba(0, 82, 255, 0.13);
  background: linear-gradient(165deg, #FFFFFF, #F9FCFF);
  box-shadow: var(--pg-shadow-card);
  position: relative;
  overflow: hidden;
  transition: transform .25s cubic-bezier(.16,1,.3,1), box-shadow .25s ease, border-color .25s ease;
}

.sg-paths a::after {
  content: "";
  position: absolute;
  right: -34px; top: -34px;
  width: 92px; height: 92px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 130, 255, 0.10), transparent 70%);
  transition: transform .3s ease;
}

.sg-paths a:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 82, 255, 0.4);
  box-shadow: var(--pg-shadow-lift);
}

.sg-paths a:hover::after { transform: scale(1.5); }

.sg-paths a span:last-child {
  color: #0042C5;
  font-weight: 700;
}

/* Shortcuts */
.sg-shortcuts a {
  border-radius: 999px;
  padding: 10px 18px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 82, 255, 0.16);
  box-shadow: 0 3px 10px -4px rgba(10, 41, 105, 0.15);
  font-weight: 650;
  transition: all .2s ease;
}

.sg-shortcuts a:hover {
  background: var(--pg-grad-brand);
  border-color: transparent;
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -6px rgba(0, 82, 255, 0.45);
}

/* --------------------------------------------------------------------------
   CTA band — rich navy gradient with glow orbs
   -------------------------------------------------------------------------- */
.sg-band {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  padding: 46px 44px;
  background:
    radial-gradient(600px 300px at 90% -20%, rgba(0, 198, 255, 0.30), transparent 60%),
    radial-gradient(520px 320px at -60px 120%, rgba(109, 93, 246, 0.35), transparent 60%),
    linear-gradient(135deg, #0B1D45 0%, #0E2A6B 55%, #123B85 100%);
  box-shadow: 0 34px 70px -28px rgba(6, 15, 38, 0.65);
}

.sg-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--pg-dot-grid);
  background-size: 24px 24px;
  background-position: 12px 12px;
  opacity: .5;
  mask-image: linear-gradient(120deg, rgba(0,0,0,.7), transparent 55%);
  -webkit-mask-image: linear-gradient(120deg, rgba(0,0,0,.7), transparent 55%);
  pointer-events: none;
}

.sg-band > div { position: relative; z-index: 1; }

.sg-band .btn-primary {
  background: #fff;
  color: #0B1D45 !important;
  box-shadow: 0 10px 26px -8px rgba(0, 0, 0, 0.45);
}

.sg-band .btn-primary:hover { background: #F0F6FF; }

.sg-band .btn-outline {
  background: rgba(255, 255, 255, 0.08);
  color: #fff !important;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(6px);
}

.sg-band .btn-outline:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.6);
}

/* Final CTA panel (new homepage element) */
.pg-final {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  padding: 58px 48px;
  text-align: center;
  background:
    radial-gradient(700px 340px at 50% -140px, rgba(0, 198, 255, 0.35), transparent 60%),
    radial-gradient(560px 320px at 12% 130%, rgba(109, 93, 246, 0.32), transparent 60%),
    linear-gradient(140deg, #0A1A40 0%, #0D2660 52%, #10347D 100%);
  box-shadow: 0 40px 80px -30px rgba(6, 15, 38, 0.6);
}

.pg-final::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--pg-dot-grid);
  background-size: 24px 24px;
  opacity: .4;
  mask-image: radial-gradient(520px 260px at 50% 0%, rgba(0,0,0,.8), transparent 75%);
  -webkit-mask-image: radial-gradient(520px 260px at 50% 0%, rgba(0,0,0,.8), transparent 75%);
}

.pg-final > * { position: relative; z-index: 1; }

.pg-final h2 {
  color: #fff;
  font-size: clamp(26px, 3.6vw, 40px);
  margin-bottom: 14px;
}

.pg-final p {
  color: #B9CCEE;
  max-width: 640px;
  margin: 0 auto 28px;
  font-size: 16.5px;
  line-height: 1.7;
}

.pg-final .pg-final-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

.pg-final .btn-primary {
  background: linear-gradient(120deg, #FFB020, #FF8A3D);
  box-shadow: 0 12px 30px -8px rgba(255, 138, 61, 0.55);
  color: #3A1D00 !important;
}

.pg-final .btn-outline {
  background: rgba(255, 255, 255, 0.08);
  color: #fff !important;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
}

.pg-final .btn-outline:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.6);
}

@media (max-width: 700px) {
  .pg-final { padding: 40px 22px; }
  .sg-band { padding: 30px 24px; }
}

/* --------------------------------------------------------------------------
   FAQ polish
   -------------------------------------------------------------------------- */
.sg-home details {
  border-bottom: 1px solid rgba(0, 82, 255, 0.12);
  transition: background .2s ease;
}

.sg-home details summary {
  list-style: none;
}

.sg-home details summary::-webkit-details-marker { display: none; }

.sg-home details[open] { background: linear-gradient(90deg, rgba(0, 82, 255, 0.04), transparent 70%); }

.sg-home details summary {
  position: relative;
  padding-right: 34px;
  transition: color .2s ease;
}

.sg-home details summary::after {
  content: "+";
  position: absolute;
  right: 4px; top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: rgba(0, 82, 255, 0.08);
  color: #0042C5;
  font-weight: 800;
  transition: transform .25s ease, background .25s ease, color .25s ease;
}

.sg-home details[open] summary::after {
  content: "−";
  background: var(--pg-grad-brand);
  color: #fff;
}

.sg-home details summary:hover { color: #0042C5; }

/* --------------------------------------------------------------------------
   Footer — deep navy with aurora top edge
   -------------------------------------------------------------------------- */
.sg-footer {
  position: relative;
  margin-top: 70px;
  padding: 64px 24px 28px;
  background:
    radial-gradient(720px 300px at 85% -60px, rgba(0, 110, 255, 0.22), transparent 62%),
    radial-gradient(600px 280px at 5% 110%, rgba(109, 93, 246, 0.16), transparent 62%),
    linear-gradient(175deg, #0A1734 0%, #081128 100%);
  color: #C9D6EF;
}

.sg-footer::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #0043E0, #00B4FF 40%, #6D5DF6 75%, #FFB020);
  opacity: .9;
}

.sg-footer h2 {
  font-size: 22px;
  background: linear-gradient(100deg, #FFFFFF, #9CC8FF);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  width: fit-content;
}

.sg-footer h3 {
  font-size: 13px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #7E96C8;
  margin-bottom: 14px;
}

.sg-footer a { color: #C4D3F1; transition: color .18s ease, padding-left .18s ease; }

.sg-footer a:hover {
  color: #FFFFFF;
  text-decoration: none;
  padding-left: 4px;
}

.sg-footer-grid > div:first-child p { color: #93A8CF; }

.sg-footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.10); }

/* --------------------------------------------------------------------------
   Legacy pages polish (site.css components)
   -------------------------------------------------------------------------- */
.page-hero {
  background:
    radial-gradient(700px 300px at 85% -60px, rgba(0, 130, 255, 0.12), transparent 60%),
    radial-gradient(520px 300px at 0% 120%, rgba(109, 93, 246, 0.08), transparent 60%),
    linear-gradient(180deg, #F3F8FF 0%, #FFFFFF 100%);
}

.page-hero::before {
  background-image: var(--pg-dot-grid);
  background-size: 24px 24px;
  border-radius: 0;
  width: 420px; height: 260px;
  top: -40px; right: 0;
  mask-image: radial-gradient(closest-side, rgba(0,0,0,.6), transparent);
  -webkit-mask-image: radial-gradient(closest-side, rgba(0,0,0,.6), transparent);
}

.card, .price-card, .steps-card, .testimonial-card, .faq-card, .bento-card {
  transition: transform .28s cubic-bezier(.16,1,.3,1), box-shadow .28s ease, border-color .28s ease;
}

.card:hover, .price-card:hover, .steps-card:hover, .testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--pg-shadow-lift);
}

.icon {
  display: inline-grid;
  place-items: center;
  width: 50px; height: 50px;
  border-radius: 14px;
  background: linear-gradient(140deg, #EBF3FF, #E0EDFF);
  border: 1px solid rgba(0, 82, 255, 0.10);
  box-shadow: 0 6px 14px -6px rgba(0, 66, 199, 0.25);
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 15px 8px 11px;
  border-radius: 999px;
  background: rgba(0, 82, 255, 0.06);
  border: 1px solid rgba(0, 82, 255, 0.16);
  color: #0042C5;
}

.section-kicker::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--pg-grad-brand);
}

.cta-band {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background:
    radial-gradient(600px 300px at 90% -20%, rgba(0, 198, 255, 0.28), transparent 60%),
    radial-gradient(520px 320px at -60px 120%, rgba(109, 93, 246, 0.30), transparent 60%),
    linear-gradient(135deg, #0B1D45 0%, #0E2A6B 55%, #123B85 100%);
  box-shadow: 0 34px 70px -28px rgba(6, 15, 38, 0.6);
}

/* --------------------------------------------------------------------------
   Reveal-on-scroll (opt-in via .pg-reveal + .pg-js on <html>)
   -------------------------------------------------------------------------- */
.pg-js .pg-reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s ease, transform .8s cubic-bezier(.16, 1, .3, 1);
  transition-delay: var(--pg-delay, 0ms);
}

.pg-js .pg-reveal.pg-in {
  opacity: 1;
  transform: none;
}

/* --------------------------------------------------------------------------
   Keyframes
   -------------------------------------------------------------------------- */
@keyframes pg-float-soft {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

@keyframes pg-float-slow {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-24px, 18px) scale(1.05); }
}

@keyframes pg-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0, 82, 255, 0.35); }
  55% { box-shadow: 0 0 0 7px rgba(0, 82, 255, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .pg-js .pg-reveal { opacity: 1; transform: none; transition: none; }
  .sg-hero .sg-example, .pg-float-chip, .sg-hero::after, .sg-kicker::before {
    animation: none !important;
  }
  * { scroll-behavior: auto !important; }
}

/* ==========================================================================
   v2 — 3D DEPTH SYSTEM, SHIMMER & PREMIUM DETAILS
   ========================================================================== */

/* Shimmering gradient headline */
.sg-hero .gradient {
  background: linear-gradient(100deg, #0043E0 0%, #0066FF 28%, #00A8E8 52%, #6D5DF6 76%, #0043E0 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  animation: pg-shimmer 7s ease-in-out infinite;
}

@keyframes pg-shimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* Aurora drift on the hero orb */
.sg-hero::after {
  animation: pg-aurora 18s ease-in-out infinite;
}

@keyframes pg-aurora {
  0%, 100% { transform: translate(0, 0) scale(1) rotate(0deg); }
  33% { transform: translate(-40px, 26px) scale(1.08) rotate(8deg); }
  66% { transform: translate(26px, -14px) scale(0.96) rotate(-6deg); }
}

/* Pointer-tracked 3D tilt (JS adds transform inline; CSS keeps it smooth) */
.pg-tilt {
  transition: transform .45s cubic-bezier(.16, 1, .3, 1), box-shadow .35s ease;
  transform-style: preserve-3d;
  will-change: transform;
}

.pg-tilt.pg-tilt-active { transition: transform .08s linear, box-shadow .35s ease; }

@media (pointer: coarse) {
  .pg-tilt { transition: transform .35s cubic-bezier(.16,1,.3,1), box-shadow .35s ease; }
}

/* Example card — 3D showcase panel */
.sg-hero .sg-example {
  transform: perspective(1100px) rotateY(4deg) rotateX(1deg);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    -24px 30px 70px -22px rgba(0, 56, 121, 0.30),
    0 4px 18px -8px rgba(10, 22, 51, 0.12);
}

@keyframes pg-float-3d {
  0%, 100% { transform: perspective(1100px) rotateY(4deg) rotateX(1deg) translateY(0); }
  50% { transform: perspective(1100px) rotateY(4deg) rotateX(1deg) translateY(-9px); }
}

@media (min-width: 701px) {
  .sg-hero .sg-example { animation: pg-float-3d 9s ease-in-out infinite; }
}

/* Stats band — 3D slab */
.pg-stats-grid {
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.14) inset,
    0 10px 24px -12px rgba(2, 8, 26, 0.7),
    0 34px 64px -22px rgba(6, 15, 38, 0.6);
}

/* Dark CTA band — inner top highlight for depth */
.sg-band::after {
  content: "";
  position: absolute;
  top: 0; left: 24px; right: 24px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  pointer-events: none;
}

/* Icon chips — soft 3D tile */
.sg-icon {
  box-shadow:
    0 6px 14px -6px rgba(0, 66, 199, 0.28),
    inset 0 1px 0 #ffffff,
    inset 0 -3px 6px rgba(0, 82, 255, 0.08);
}

.sg-card:hover .sg-icon {
  transform: scale(1.1) rotate(-5deg) translateZ(18px);
}

/* Featured plan / highlighted card (join & pricing) */
.pg-featured {
  position: relative;
}

.pg-featured::after, .price-card.featured::after {
  content: "MOST POPULAR";
  position: absolute;
  top: 16px; right: -34px;
  transform: rotate(38deg);
  padding: 5px 40px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .12em;
  color: #4A2800;
  background: linear-gradient(100deg, #FFD34D, #FFAA1F);
  box-shadow: 0 6px 16px -4px rgba(255, 154, 22, 0.55);
  pointer-events: none;
}

.pg-price {
  font-family: var(--font-heading);
  font-size: 2.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: var(--pg-grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.1;
}

.pg-price small {
  font-size: 0.95rem;
  font-weight: 600;
  -webkit-text-fill-color: #5D7195;
  color: #5D7195;
}

.pg-plan-list {
  list-style: none;
  padding: 0;
  margin: 14px 0 4px;
  display: grid;
  gap: 9px;
}

.pg-plan-list li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 14px;
  color: #3D547A;
  line-height: 1.5;
}

.pg-plan-list li::before {
  content: "✓";
  flex: none;
  display: grid;
  place-items: center;
  width: 19px; height: 19px;
  margin-top: 1px;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #10B981, #059669);
}

/* Premium inline badge (channel pills on join) */
.pg-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 6px 13px;
  border-radius: 999px;
  margin-bottom: 12px;
  box-shadow: 0 3px 10px -3px rgba(10, 41, 105, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

/* Image frames — crisp gallery cards */
.promo-grid img {
  transition: transform .4s cubic-bezier(.16,1,.3,1), box-shadow .4s ease;
}

.promo-grid a:hover img {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 26px 50px -16px rgba(2, 32, 71, 0.35);
}

@media (prefers-reduced-motion: reduce) {
  .sg-hero .gradient, .sg-hero::after, .pg-tilt, .promo-grid img, .promo-grid a:hover img {
    animation: none !important;
    transition: none !important;
  }
  .sg-hero .sg-example { transform: none; }
}

/* Skip link — fully hidden until focused (was peeking at top-left) */
.skip-link {
  position: fixed;
  top: -64px;
  left: 12px;
  border-radius: 0 0 10px 10px;
  z-index: 9999;
  box-shadow: 0 8px 20px -6px rgba(0, 66, 199, 0.5);
}

.skip-link:focus { top: 10px; }


/* ==========================================================================
   v3 - SUBPAGE PREMIUM SYSTEM
   Upgrades .page-hero mastheads, content typography, legacy cards,
   forms, tables and badges across every subpage.
   ========================================================================== */

/* ---- 1. Page hero -> premium masthead ------------------------------------ */
.page-hero {
  padding: 4.2rem 0 3.6rem;
  position: relative;
  overflow: hidden;
  border-bottom: none;
  background:
    radial-gradient(900px 420px at 88% -80px, rgba(0, 198, 255, 0.18), transparent 62%),
    radial-gradient(700px 440px at -130px 45%, rgba(109, 93, 246, 0.13), transparent 60%),
    linear-gradient(165deg, #FBFDFF 0%, #F1F7FF 58%, #E9F1FF 100%);
}

.page-hero::before {
  background-image: var(--pg-dot-grid);
  background-size: 26px 26px;
  width: 520px; height: 300px;
  top: -50px; right: 2%;
  border-radius: 0;
  mask-image: radial-gradient(closest-side, rgba(0,0,0,.55), transparent);
  -webkit-mask-image: radial-gradient(closest-side, rgba(0,0,0,.55), transparent);
}

.page-hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 44px;
  background: #ffffff;
  clip-path: ellipse(72% 100% at 50% 100%);
  pointer-events: none;
}

.page-hero > .container { position: relative; z-index: 1; }

.page-hero h1 {
  background: linear-gradient(100deg, #0A1633 30%, #123B85 70%, #0052FF 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  width: fit-content;
}

/* ---- 2. Breadcrumbs -> glass pills ---------------------------------------- */
.breadcrumbs {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(0, 82, 255, 0.15);
  padding: 8px 16px;
  border-radius: 999px;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 14px -6px rgba(10, 41, 105, 0.2);
  font-weight: 650;
}

.breadcrumbs span { color: #445A80; }

/* ---- 3. Content typography (.prose & .section containers) ---------------- */
.prose {
  max-width: 880px;
  font-size: 1.03rem;
  line-height: 1.78;
  color: #2B3D5E;
}

.prose p { margin: 0 0 1.15rem; }

.prose h2, .section .container > h2 {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 2.2rem 0 1rem;
}

.prose h2::before, .section .container > h2::before {
  content: "";
  flex: none;
  width: 5px;
  height: 1.05em;
  border-radius: 4px;
  background: var(--pg-grad-brand);
  box-shadow: 0 4px 12px -2px rgba(0, 82, 255, 0.45);
}

.prose h3 { margin: 1.6rem 0 0.7rem; }

.prose ul:not([class]), .section .container ul:not([class]) {
  list-style: none;
  padding: 0;
  margin: 0 0 1.3rem;
  display: grid;
  gap: 10px;
}

.prose ul:not([class]) li, .section .container ul:not([class]) li {
  position: relative;
  padding-left: 27px;
}

.prose ul:not([class]) li::before, .section .container ul:not([class]) li::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 0.5em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--pg-grad-brand);
  box-shadow: 0 0 0 3px rgba(0, 82, 255, 0.12);
}

.prose ol:not([class]) { padding-left: 1.4rem; display: grid; gap: 9px; }

.prose a, .section .container p a, .section .container li a {
  font-weight: 650;
}

/* Inline code chips */
.container code, .prose code, .section code {
  background: rgba(0, 82, 255, 0.07);
  border: 1px solid rgba(0, 82, 255, 0.14);
  padding: 2px 9px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.88em;
  color: #0F3FA8;
  white-space: nowrap;
}

/* Blockquote */
.prose blockquote, .container blockquote {
  border-left: 4px solid;
  border-image: linear-gradient(180deg, #0052FF, #00C6FF) 1;
  background: linear-gradient(120deg, rgba(0, 82, 255, 0.05), transparent 70%);
  border-radius: 0 14px 14px 0;
  padding: 14px 20px;
  margin: 1.4rem 0;
  color: #33456B;
  font-style: italic;
}

/* ---- 4. Legacy cards -> gradient-border 3D -------------------------------- */
.card, .price-card, .steps-card, .faq-card, .testimonial-card {
  border: 1px solid transparent;
  background:
    linear-gradient(170deg, #FFFFFF, #FBFDFF) padding-box,
    linear-gradient(140deg, rgba(0, 82, 255, 0.30), rgba(0, 198, 255, 0.12) 40%, rgba(109, 93, 246, 0.24)) border-box;
  border-radius: 22px;
  transform-style: preserve-3d;
}

.card:hover, .price-card:hover, .steps-card:hover, .testimonial-card:hover {
  transform: perspective(950px) rotateX(1.4deg) rotateY(-1.6deg) translateY(-6px);
  box-shadow:
    0 2px 4px rgba(10, 22, 51, 0.06),
    0 28px 52px -18px rgba(0, 66, 199, 0.26);
}

.grid-2 { gap: 1.4rem; }
.grid-3 { gap: 1.4rem; }
.grid-4 { gap: 1.4rem; }

/* ---- 5. Price cards ------------------------------------------------------- */
.price-card { padding: 2.1rem 1.9rem; }

.price-card .amt {
  font-family: var(--font-heading);
  font-size: 2.7rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  background: var(--pg-grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 1rem 0 0.4rem;
}

.price-card .amt span {
  font-size: 1rem;
  font-weight: 650;
  -webkit-text-fill-color: #5D7195;
  color: #5D7195;
  letter-spacing: 0;
}

.price-card ul {
  list-style: none;
  padding: 0;
  margin: 1.1rem 0 1.6rem;
  display: grid;
  gap: 11px;
  font-size: 0.94rem;
}

.price-card ul li { line-height: 1.55; color: #33456B; padding-left: 0; }

.price-card ul li::before { display: none; }

.price-card.featured {
  border-width: 2px;
  background:
    linear-gradient(175deg, #FFFFFF, #FFF9EC 78%, #FFF3D6) padding-box,
    linear-gradient(150deg, #FFB020, #FFD34D 45%, #FF8A3D) border-box;
  box-shadow: 0 24px 50px -18px rgba(255, 154, 22, 0.4);
}

.price-card.featured .amt {
  background: linear-gradient(100deg, #E07800, #FF9C1F 60%, #FFB020);
  -webkit-background-clip: text;
  background-clip: text;
}

.price-card .btn-ghost {
  background: var(--pg-grad-brand);
  color: #fff !important;
  box-shadow: 0 5px 0 -1px #0031A8, 0 14px 28px -8px rgba(0, 82, 255, 0.45);
}

/* ---- 6. Callout boxes ------------------------------------------------------ */
.tip-box {
  background: linear-gradient(135deg, #F0F7FF, #E9F2FF);
  border: 1px solid rgba(0, 82, 255, 0.16);
  border-left: 4px solid #0052FF;
  padding: 13px 16px;
  border-radius: 12px;
  font-size: 0.9rem;
  color: #27436E;
  box-shadow: 0 6px 16px -8px rgba(0, 66, 199, 0.2);
}

.warn-yellow {
  background: linear-gradient(135deg, #FFFBEB, #FFF4D6);
  border: 1px solid rgba(217, 119, 6, 0.22);
  border-left: 4px solid #F59E0B;
  padding: 13px 16px;
  border-radius: 12px;
  font-size: 0.9rem;
  color: #7C4A03;
  box-shadow: 0 6px 16px -8px rgba(217, 119, 6, 0.25);
}

/* ---- 7. Steps & stats ------------------------------------------------------ */
.step-num {
  width: 42px; height: 42px;
  background: var(--pg-grad-brand);
  color: #fff;
  font-family: var(--font-heading);
  box-shadow: 0 6px 16px -4px rgba(0, 82, 255, 0.45), inset 0 1px 0 rgba(255,255,255,.3);
}

.stat strong, .stat b {
  font-family: var(--font-heading);
  background: var(--pg-grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 1.9rem;
  display: block;
  line-height: 1.15;
}

.stats {
  border-top: none;
  background: rgba(0, 82, 255, 0.04);
  border: 1px solid rgba(0, 82, 255, 0.10);
  border-radius: 18px;
  padding: 1.4rem 1.6rem;
  flex-wrap: wrap;
  justify-content: space-between;
}

/* ---- 8. Forms ---------------------------------------------------------------- */
.form-label {
  font-weight: 700;
  font-size: 0.9rem;
  color: #22355C;
}

.form-control {
  border: 1.5px solid rgba(0, 82, 255, 0.18);
  border-radius: 13px;
  padding: 12px 15px;
  background: #fff;
  font: inherit;
  transition: border-color .2s ease, box-shadow .2s ease;
  color: #16305C;
}

.form-control:focus {
  outline: none;
  border-color: #0052FF;
  box-shadow: 0 0 0 4px rgba(0, 82, 255, 0.12);
}

/* ---- 9. Tables ------------------------------------------------------------------ */
.table-wrap table, .prose table, .container table {
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.93rem;
}

.table-wrap table th, .prose table th, .container table th {
  background: linear-gradient(135deg, #0C1D42, #14376E);
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.table-wrap table th:first-child { border-top-left-radius: 12px; }
.table-wrap table th:last-child { border-top-right-radius: 12px; }

.container table th:first-child, .prose table th:first-child { border-top-left-radius: 12px; }
.container table th:last-child, .prose table th:last-child { border-top-right-radius: 12px; }

.table-wrap table td, .prose table td, .container table td { border-bottom: 1px solid #E6EDF9; }

.table-wrap table tr:nth-child(even) td, .prose table tr:nth-child(even) td, .container table tr:nth-child(even) td {
  background: #F7FAFF;
}

/* ---- 10. Tab pills & chips ---------------------------------------------------- */
.tabs-nav { gap: 10px; flex-wrap: wrap; }

.chip-btn, .tab-btn, .switch-btn {
  border-radius: 999px;
  padding: 10px 18px;
  border: 1.5px solid rgba(0, 82, 255, 0.18);
  background: #fff;
  font-weight: 650;
  cursor: pointer;
  transition: all .22s ease;
  color: #25406E;
}

.chip-btn:hover, .tab-btn:hover, .switch-btn:hover {
  border-color: #0052FF;
  color: #0042C5;
  transform: translateY(-1px);
}

.chip-btn.active, .tab-btn.active, .switch-btn.active,
.chip-btn[aria-pressed="true"], .tab-btn[aria-selected="true"] {
  background: var(--pg-grad-brand);
  border-color: transparent;
  color: #fff !important;
  box-shadow: 0 6px 16px -4px rgba(0, 82, 255, 0.45);
}

/* ---- 11. Badges & ticks -------------------------------------------------------- */
.rating-badge, .top-choice-tag, .discount-tag, .popular-badge {
  border-radius: 999px;
  box-shadow: 0 4px 12px -4px rgba(10, 41, 105, 0.3);
}

.check-green { color: #059669; font-weight: 750; }
.cross-red { color: #DC2626; font-weight: 750; }

.blue-ticks { list-style: none; padding: 0; display: grid; gap: 9px; }

.blue-ticks li { position: relative; padding-left: 27px; }

.blue-ticks li::before {
  content: "\2713";
  position: absolute;
  left: 0; top: 0.1em;
  display: grid;
  place-items: center;
  width: 19px; height: 19px;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #10B981, #059669);
}

/* ---- 12. FAQ accordions on content pages ---------------------------------------- */
.container details, .prose details, .faq-card {
  border: 1px solid rgba(0, 82, 255, 0.12);
  border-radius: 14px;
  background: #fff;
  padding: 16px 20px;
  margin: 0 0 12px;
  box-shadow: 0 4px 14px -8px rgba(10, 41, 105, 0.15);
  transition: box-shadow .25s ease, border-color .25s ease;
}

.container details[open], .prose details[open] {
  border-color: rgba(0, 82, 255, 0.3);
  box-shadow: 0 10px 26px -12px rgba(0, 66, 199, 0.22);
}

.container details summary, .prose details summary {
  list-style: none;
  font-weight: 700;
  cursor: pointer;
  color: #14264B;
}

.container details summary::-webkit-details-marker,
.prose details summary::-webkit-details-marker { display: none; }

.container details summary::after, .prose details summary::after {
  content: "+";
  float: right;
  display: grid;
  place-items: center;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: rgba(0, 82, 255, 0.08);
  color: #0042C5;
  font-weight: 800;
  transition: transform .25s ease, background .25s ease, color .25s ease;
}

.container details[open] summary::after, .prose details[open] summary::after {
  content: "\2212";
  background: var(--pg-grad-brand);
  color: #fff;
}

.container details p, .prose details p { margin: 12px 0 0; color: #42567B; }

/* ==========================================================================
   v4 - AI TUTOR INTERFACE (/study) PREMIUM UPGRADE
   Scoped to body.tutor so only the tutor app is affected.
   ========================================================================== */

/* Shell — aurora workspace background */
.tutor {
  background:
    radial-gradient(1000px 460px at 90% -100px, rgba(0, 198, 255, 0.14), transparent 62%),
    radial-gradient(800px 500px at -140px 30%, rgba(109, 93, 246, 0.10), transparent 60%),
    linear-gradient(140deg, #FAFCFF 0%, #F0F6FF 55%, #F6FAFF 100%);
}

/* Panels — gradient border glass */
.tutor .wt-panel {
  border: 1px solid transparent;
  background:
    linear-gradient(175deg, rgba(255, 255, 255, 0.97), rgba(250, 253, 255, 0.94)) padding-box,
    linear-gradient(150deg, rgba(0, 82, 255, 0.28), rgba(0, 198, 255, 0.12) 45%, rgba(109, 93, 246, 0.22)) border-box;
  border-radius: 24px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.8) inset,
    0 18px 44px -18px rgba(6, 64, 138, 0.18);
  backdrop-filter: blur(10px);
}

/* Eyebrow → kicker chip */
.tutor .wt-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px 7px 11px;
  border-radius: 999px;
  background: rgba(0, 82, 255, 0.06);
  border: 1px solid rgba(0, 82, 255, 0.16);
  color: #0042C5;
  font-size: 0.74rem;
}

.tutor .wt-eyebrow::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--pg-grad-brand);
  box-shadow: 0 0 0 3px rgba(0, 82, 255, 0.14);
}

/* Welcome headline — gradient */
.tutor .wt-welcome h1 {
  background: linear-gradient(100deg, #0A1633 25%, #123B85 55%, #0052FF 85%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.03em;
}

.tutor .wt-pills span {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 82, 255, 0.16);
  box-shadow: 0 4px 12px -6px rgba(10, 41, 105, 0.2), inset 0 1px 0 #fff;
  font-weight: 700;
  color: #1D3560;
  transition: transform .2s ease, box-shadow .2s ease;
}

.tutor .wt-pills span:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px -6px rgba(0, 66, 199, 0.3);
}

/* Verification code display */
.tutor #phone-code {
  background: linear-gradient(135deg, #0C1D42, #14376E);
  color: #7FD4FF;
  font-family: var(--font-heading);
  font-weight: 800;
  text-align: center;
  letter-spacing: 0.22em;
  border-radius: 16px;
  box-shadow: 0 16px 34px -14px rgba(6, 15, 38, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

/* Workspace header */
.tutor .wt-top h1 {
  letter-spacing: -0.03em;
}

.tutor #profile-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(0, 82, 255, 0.06);
  border: 1px solid rgba(0, 82, 255, 0.14);
  color: #2C4A7C;
  font-size: 0.86rem;
  font-weight: 700;
}

.tutor #profile-label:empty { display: none; }

.tutor #profile-label::before {
  content: "🎓";
  font-size: 0.9rem;
}

/* ---------- Sidebar tools ---------- */

.tutor .wt-tools h2 {
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
}

.tutor .wt-tools select,
.tutor .wt-tools input {
  border: 1.5px solid rgba(0, 82, 255, 0.20);
  border-radius: 12px;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.tutor .wt-tools select:focus {
  outline: none;
  border-color: #0052FF;
  box-shadow: 0 0 0 4px rgba(0, 82, 255, 0.12);
}

/* Quick-command buttons → premium tiles */
.tutor .wt-shortcuts button {
  background: #fff;
  border: 1.5px solid rgba(0, 82, 255, 0.16);
  border-radius: 13px;
  padding: 11px 14px;
  color: #1D3A6B;
  font-weight: 700;
  box-shadow: 0 3px 10px -4px rgba(10, 41, 105, 0.16);
  transition: transform .2s cubic-bezier(.16,1,.3,1), box-shadow .2s ease, border-color .2s ease, background .2s ease;
}

.tutor .wt-shortcuts button:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 82, 255, 0.5);
  background: linear-gradient(135deg, #F5F9FF, #ECF4FF);
  box-shadow: 0 10px 22px -8px rgba(0, 66, 199, 0.35);
}

.tutor .wt-shortcuts button:active {
  transform: translateY(1px);
  box-shadow: 0 2px 6px -2px rgba(0, 66, 199, 0.3);
}

/* Quota card → allowance meter */
.tutor .wt-quota {
  background: linear-gradient(140deg, #0C1D42, #14376E);
  color: #EAF3FF;
  border-radius: 16px;
  padding: 1.1rem 1.2rem;
  font-weight: 750;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.14) inset,
    0 16px 34px -16px rgba(6, 15, 38, 0.6);
  position: relative;
  overflow: hidden;
}

.tutor .wt-quota::before {
  content: "⚡";
  display: block;
  font-size: 1.15rem;
  margin-bottom: 4px;
}

.tutor .wt-quota::after {
  content: "";
  position: absolute;
  right: -30px; top: -30px;
  width: 110px; height: 110px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 198, 255, 0.30), transparent 70%);
  pointer-events: none;
}

/* Sidebar details accordions */
.tutor .wt-tools details,
.tutor .wt-panel > details {
  border: 1px solid rgba(0, 82, 255, 0.12);
  border-radius: 14px;
  background: rgba(248, 251, 255, 0.8);
  padding: 12px 15px;
  margin-top: 1.1rem;
}

.tutor #workspace summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-weight: 750;
  color: #16305C;
}

.tutor #workspace summary::-webkit-details-marker { display: none; }

.tutor #workspace summary::after {
  content: "+";
  display: grid;
  place-items: center;
  flex: none;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: rgba(0, 82, 255, 0.08);
  color: #0042C5;
  font-weight: 800;
  transition: transform .25s ease, background .25s ease, color .25s ease;
}

.tutor details[open] summary::after {
  content: "\2212";
  background: var(--pg-grad-brand);
  color: #fff;
}

/* ---------- Chat panel ---------- */

.tutor .wt-chat-title h2 {
  display: flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
}

.tutor .wt-chat-title h2::before {
  content: "✦";
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  flex: none;
  border-radius: 12px;
  font-size: 17px;
  color: #fff;
  background: var(--pg-grad-brand);
  box-shadow: 0 6px 16px -4px rgba(0, 82, 255, 0.5);
}

.tutor .wt-chat-title {
  border-bottom: 1px solid rgba(0, 82, 255, 0.12);
  padding-bottom: 1rem;
}

/* Messages area — subtle backdrop */
.tutor .wt-messages {
  background:
    radial-gradient(rgba(0, 82, 255, 0.045) 1px, transparent 1.2px);
  background-size: 22px 22px;
  border-radius: 14px;
}

/* Teacher message card */
.tutor .wt-message {
  background: #fff;
  border: 1px solid rgba(0, 82, 255, 0.13);
  border-radius: 18px;
  box-shadow: 0 8px 22px -12px rgba(10, 41, 105, 0.18);
  position: relative;
}

.tutor .wt-message::before {
  content: "";
  position: absolute;
  top: 0; left: 18px;
  width: 34px; height: 3px;
  border-radius: 0 0 4px 4px;
  background: var(--pg-grad-brand);
}

/* Student message bubble */
.tutor .wt-message.user {
  background: linear-gradient(135deg, #E8F1FF, #DDEBFF);
  border: 1px solid rgba(0, 82, 255, 0.20);
  border-radius: 18px 18px 4px 18px;
}

.tutor .wt-message.user::before { display: none; }

/* Author labels with avatar dot */
.tutor .wt-message .wt-author {
  display: flex;
  align-items: center;
  gap: 7px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-size: 0.72rem;
  color: #0042C5;
}

.tutor .wt-message .wt-author::before {
  content: "✦";
  display: grid;
  place-items: center;
  width: 20px; height: 20px;
  flex: none;
  border-radius: 50%;
  font-size: 10px;
  color: #fff;
  background: var(--pg-grad-brand);
}

.tutor .wt-message.user .wt-author { color: #4459A8; }

.tutor .wt-message.user .wt-author::before {
  content: "🙂";
  background: linear-gradient(135deg, #6474F0, #4A5AE8);
}

/* Answer action pills */
.tutor .wt-answer-actions button {
  background: rgba(255, 255, 255, 0.92);
  border: 1.5px solid rgba(0, 82, 255, 0.18);
  border-radius: 999px;
  padding: 7px 15px;
  min-height: 38px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #154784;
  box-shadow: 0 3px 9px -4px rgba(10, 41, 105, 0.18);
  transition: all .2s ease;
}

.tutor .wt-answer-actions button:hover {
  border-color: #0052FF;
  color: #0042C5;
  transform: translateY(-1px);
  box-shadow: 0 7px 16px -6px rgba(0, 66, 199, 0.35);
}

.tutor .wt-answer-actions button:active { transform: translateY(1px); }

/* Thinking indicator — animated */
.tutor .wt-thinking {
  background: linear-gradient(90deg, #EAF2FF, #E0EDFF, #EAF2FF);
  background-size: 200% 100%;
  border: 1px solid rgba(0, 82, 255, 0.18);
  border-radius: 14px;
  font-weight: 700;
  color: #16305C;
  animation: pg-think 1.6s ease-in-out infinite;
}

@keyframes pg-think {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* Composer */
.tutor #composer label {
  font-weight: 750;
  color: #16305C;
}

.tutor #message {
  border: 1.5px solid rgba(0, 82, 255, 0.20);
  border-radius: 15px;
  transition: border-color .2s ease, box-shadow .2s ease;
  background: #fff;
}

.tutor #message:focus {
  outline: none;
  border-color: #0052FF;
  box-shadow: 0 0 0 4px rgba(0, 82, 255, 0.12);
}

/* Native file button → premium */
.tutor .wt-upload input::file-selector-button {
  background: var(--pg-grad-brand);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 9px 15px;
  margin: 0 10px 0 0;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 750;
  cursor: pointer;
  box-shadow: 0 4px 12px -3px rgba(0, 82, 255, 0.45);
  transition: transform .15s ease, box-shadow .15s ease;
}

.tutor .wt-upload input::file-selector-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 7px 16px -4px rgba(0, 82, 255, 0.5);
}

.tutor .wt-upload {
  padding: 8px 12px;
  border: 1.5px dashed rgba(0, 82, 255, 0.28);
  border-radius: 13px;
  background: rgba(0, 82, 255, 0.03);
  max-width: 320px;
}

/* Custom scrollbar inside messages */
.tutor .wt-messages::-webkit-scrollbar { width: 9px; }
.tutor .wt-messages::-webkit-scrollbar-track { background: transparent; }
.tutor .wt-messages::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #2E6BFF, #0090E8);
  border-radius: 8px;
  border: 2px solid #FBFDFF;
}

@media (prefers-reduced-motion: reduce) {
  .tutor .wt-thinking { animation: none; }
  .tutor .wt-pills span:hover,
  .tutor .wt-shortcuts button:hover,
  .tutor .wt-answer-actions button:hover { transform: none; }
}

/* ==========================================================================
   v5 - DASHBOARD & LEARNING-STUDIO PREMIUM UPGRADE
   Scoped to body.study-platform (/my-learning) and body.learning-page
   (/english-practice + lesson pages).
   ========================================================================== */

/* ---- Shared: card CTA link ---- */
.pg-card-link {
  margin-top: auto;
  padding-top: 12px;
  font-weight: 750;
  font-size: 0.92rem;
  color: #0042C5;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.pg-card-link::after { content: "\2192"; transition: transform .2s ease; }
a:hover .pg-card-link::after, .card:hover .pg-card-link::after { transform: translateX(4px); }

/* ==========================================================================
   MY LEARNING DASHBOARD (body.study-platform)
   ========================================================================== */

/* Header area */
.study-platform .sp-main {
  position: relative;
}

.study-platform .sp-main > .sp-eyebrow:first-child {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px 7px 11px;
  border-radius: 999px;
  background: rgba(0, 82, 255, 0.06);
  border: 1px solid rgba(0, 82, 255, 0.16);
  color: #0042C5;
  margin-bottom: 14px;
}

.study-platform .sp-main > .sp-eyebrow:first-child::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--pg-grad-brand);
  box-shadow: 0 0 0 3px rgba(0, 82, 255, 0.14);
}

.study-platform .sp-main > h1 {
  background: linear-gradient(100deg, #0A1633 30%, #123B85 75%, #0052FF 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  width: fit-content;
  letter-spacing: -0.03em;
}

/* Panels and notes -> gradient-border glass */
.study-platform .sp-note,
.study-platform .sp-account,
.study-platform .sp-delete {
  border: 1px solid transparent;
  background:
    linear-gradient(175deg, rgba(255, 255, 255, 0.96), rgba(244, 249, 255, 0.92)) padding-box,
    linear-gradient(150deg, rgba(0, 82, 255, 0.26), rgba(0, 198, 255, 0.12) 45%, rgba(109, 93, 246, 0.20)) border-box;
  border-radius: 22px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.8) inset,
    0 18px 42px -18px rgba(6, 64, 138, 0.18);
}

.study-platform .sp-account {
  padding: 1.8rem;
}

/* Connection code slab */
.study-platform .sp-code {
  display: block;
  background: linear-gradient(135deg, #0C1D42, #14376E);
  color: #7FD4FF;
  font-family: var(--font-heading);
  text-align: center;
  padding: 1.4rem;
  border-radius: 16px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.12) inset,
    0 16px 34px -14px rgba(6, 15, 38, 0.55);
}

/* Status line -> soft pill */
.study-platform .sp-status:not(:empty) {
  display: inline-block;
  padding: 9px 16px;
  border-radius: 12px;
  background: rgba(0, 82, 255, 0.05);
  border: 1px solid rgba(0, 82, 255, 0.14);
  color: #27436E;
  font-weight: 650;
}

/* Form fields -> glow focus */
.study-platform input:not([type=checkbox]):not([type=file]),
.study-platform select,
.study-platform textarea {
  border: 1.5px solid rgba(0, 82, 255, 0.20);
  border-radius: 12px;
  padding: 12px 14px;
  font: inherit;
  background: #fff;
  color: #16305C;
  transition: border-color .2s ease, box-shadow .2s ease;
  width: 100%;
  box-sizing: border-box;
}

.study-platform input:focus,
.study-platform select:focus,
.study-platform textarea:focus {
  outline: none;
  border-color: #0052FF;
  box-shadow: 0 0 0 4px rgba(0, 82, 255, 0.12);
}

.study-platform label {
  display: block;
  font-weight: 700;
  color: #22355C;
  margin: 1rem 0;
}

/* Checkbox */
.study-platform .sp-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-weight: 450;
  color: #3D547A;
}

.study-platform .sp-check input {
  width: 20px; height: 20px;
  flex: none;
  margin-top: 3px;
  accent-color: #0052FF;
}

/* Metric tiles -> gradient numbers */
.study-platform .sp-metric {
  font-family: var(--font-heading);
  font-size: 2.3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: var(--pg-grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.15;
}

.study-platform .sp-metrics .card {
  position: relative;
  overflow: hidden;
}

.study-platform .sp-metrics .card::after {
  content: "";
  position: absolute;
  right: -34px; bottom: -34px;
  width: 110px; height: 110px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 130, 255, 0.10), transparent 70%);
  pointer-events: none;
}

/* Dashboard top -> hero band */
.study-platform .sp-dashboard-top {
  background:
    radial-gradient(560px 220px at 90% -40px, rgba(0, 198, 255, 0.16), transparent 62%),
    linear-gradient(135deg, #0B1D45, #123B85);
  border-radius: 22px;
  padding: 1.7rem 1.9rem;
  margin-bottom: 1.6rem;
  box-shadow: 0 26px 52px -22px rgba(6, 15, 38, 0.55);
  position: relative;
  overflow: hidden;
}

.study-platform .sp-dashboard-top::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--pg-dot-grid);
  background-size: 24px 24px;
  opacity: .35;
  mask-image: linear-gradient(120deg, rgba(0,0,0,.8), transparent 60%);
  -webkit-mask-image: linear-gradient(120deg, rgba(0,0,0,.8), transparent 60%);
  pointer-events: none;
}

.study-platform .sp-dashboard-top > * { position: relative; z-index: 1; }

.study-platform .sp-dashboard-top .sp-eyebrow {
  color: #9CC8FF;
}

.study-platform .sp-dashboard-top h2 {
  color: #fff;
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
  margin: 6px 0 4px;
}

.study-platform .sp-dashboard-top p {
  color: #B9CCEE;
}

.study-platform .sp-dashboard-top .btn-outline {
  background: rgba(255, 255, 255, 0.08);
  color: #fff !important;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
}

.study-platform .sp-dashboard-top .btn-outline:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.6);
}

/* Topic cards & week rows */
.study-platform .sp-topic-card {
  transition: transform .25s cubic-bezier(.16,1,.3,1), box-shadow .25s ease;
}

.study-platform .sp-topic-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -18px rgba(0, 66, 199, 0.28);
}

.study-platform .sp-progress-row {
  border-bottom: 1px solid rgba(0, 82, 255, 0.12);
}

.study-platform .sp-progress-row:hover {
  background: rgba(0, 82, 255, 0.03);
}

/* ==========================================================================
   ENGLISH LEARNING STUDIO (body.learning-page)
   ========================================================================== */

/* Eyebrow -> kicker chip */
.learning-page .lh-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 13px 6px 10px;
  border-radius: 999px;
  background: rgba(0, 82, 255, 0.06);
  border: 1px solid rgba(0, 82, 255, 0.15);
  color: #0042C5;
  width: fit-content;
}

.learning-page .lh-eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--pg-grad-gold);
  flex: none;
}

/* Lesson cards -> icon-less premium tiles */
.learning-page .lh-card {
  position: relative;
  overflow: hidden;
}

.learning-page .lh-card::after {
  content: "";
  position: absolute;
  right: -30px; top: -30px;
  width: 88px; height: 88px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 130, 255, 0.09), transparent 70%);
  transition: transform .3s ease;
  pointer-events: none;
}

.learning-page .lh-card:hover::after { transform: scale(1.5); }

.learning-page .lh-card .lh-text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color .2s ease;
}

.learning-page .lh-card .lh-text-link::after {
  content: "\2192";
  transition: transform .2s ease;
}

.learning-page .lh-card .lh-text-link:hover::after { transform: translateX(4px); }

/* Welcome side note */
.learning-page .lh-note {
  border: 1px solid transparent;
  background:
    linear-gradient(175deg, rgba(255, 255, 255, 0.96), rgba(244, 249, 255, 0.92)) padding-box,
    linear-gradient(150deg, rgba(0, 82, 255, 0.24), rgba(0, 198, 255, 0.12) 50%, rgba(109, 93, 246, 0.18)) border-box;
  border-radius: 20px;
  box-shadow: 0 16px 38px -18px rgba(6, 64, 138, 0.18);
}

.learning-page .lh-note ul {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 9px;
}

.learning-page .lh-note ul li {
  position: relative;
  padding-left: 26px;
}

.learning-page .lh-note ul li::before {
  content: "\2713";
  position: absolute;
  left: 0; top: 0.1em;
  display: grid;
  place-items: center;
  width: 19px; height: 19px;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #10B981, #059669);
}

/* Section headings with gradient bar */
.learning-page .lh-section-heading h2,
.learning-page .lh-welcome h2 {
  letter-spacing: -0.025em;
}

/* Lesson panel (five-minute routine) */
.learning-page .lh-panel {
  border: 1px solid transparent;
  background:
    linear-gradient(175deg, #FFFFFF, #F8FBFF) padding-box,
    linear-gradient(150deg, rgba(0, 82, 255, 0.22), rgba(109, 93, 246, 0.16)) border-box;
  border-radius: 22px;
  box-shadow: 0 16px 40px -20px rgba(6, 64, 138, 0.2);
}

/* Quiz options & interactive bits */
.learning-page .lh-option,
.learning-page .lh-choices button {
  transition: border-color .2s ease, background .2s ease, transform .15s ease;
}

.learning-page .lh-option:hover,
.learning-page .lh-choices button:hover {
  transform: translateY(-1px);
}

.learning-page .lh-status:not(:empty) {
  display: inline-block;
  padding: 9px 15px;
  border-radius: 12px;
  background: rgba(0, 82, 255, 0.05);
  border: 1px solid rgba(0, 82, 255, 0.14);
  font-weight: 650;
  color: #27436E;
}

/* Worksheet / reading content polish */
.learning-page .lh-examples li {
  border-left: 4px solid;
  border-image: linear-gradient(180deg, #0052FF, #00C6FF) 1;
  background: linear-gradient(120deg, rgba(0, 82, 255, 0.04), rgba(0, 82, 255, 0.01));
  border-radius: 0 12px 12px 0;
}

@media (prefers-reduced-motion: reduce) {
  .learning-page .lh-card:hover::after { transform: none; }
  .study-platform .sp-topic-card:hover { transform: none; }
}

/* ==========================================================================
   v6 - LEGACY HERO UPGRADE (pages using .hero: /hi and similar)
   Gives the old hero the aurora treatment without touching HTML structure.
   ========================================================================== */

.hero {
  position: relative;
  overflow: hidden;
  padding: 4.6rem 0 4.2rem;
  background:
    radial-gradient(1000px 480px at 88% -80px, rgba(0, 198, 255, 0.18), transparent 62%),
    radial-gradient(820px 500px at -140px 35%, rgba(109, 93, 246, 0.13), transparent 60%),
    linear-gradient(160deg, #FDFEFF 0%, #F3F7FF 55%, #EBF2FF 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--pg-dot-grid);
  background-size: 26px 26px;
  mask-image: radial-gradient(700px 440px at 72% 10%, rgba(0,0,0,.5), transparent 75%);
  -webkit-mask-image: radial-gradient(700px 440px at 72% 10%, rgba(0,0,0,.5), transparent 75%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  width: 520px; height: 520px;
  right: -170px; top: -200px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(0, 198, 255, 0.15), rgba(0, 82, 255, 0.05) 55%, transparent 72%);
  animation: pg-float-slow 14s ease-in-out infinite;
  pointer-events: none;
}

.hero > .container { position: relative; z-index: 1; }

.hero .eyebrow {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 16px -6px rgba(0, 66, 199, 0.25), 0 1px 0 rgba(255,255,255,.9) inset;
  border-color: rgba(0, 82, 255, 0.2);
}

.hero h1 { letter-spacing: -0.03em; }

.hero .gradient {
  background: var(--pg-grad-text);
  -webkit-background-clip: text;
  background-clip: text;
}

.hero .lead { color: #3D547A; }

@media (prefers-reduced-motion: reduce) {
  .hero::after { animation: none !important; }
}
