/* ============================================================
   Homepage V8 – Premium Modern Design
   ============================================================ */

:root {
  --primary: #173B78;
  --secondary: #2D67D8;
  --accent: #C12B4A;
  --gold: #F5B942;
  --bg: #F5F8FD;
  --card: rgba(255, 255, 255, 0.85);
  --text: #10233E;
  --muted: #10233E;
}

/* ---------- Global resets scoped to v8 ---------- */

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

/* ---------- Keyframe ---------- */

@keyframes v8-float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-14px);
  }
}

/* ---------- Buttons ---------- */

.v8-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  font-family: "Cairo", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  text-decoration: none;
}

.v8-btn:hover {
  transform: translateY(-2px);
}

.v8-btn:active {
  transform: translateY(0);
}

.v8-btn-primary {
  background: linear-gradient(135deg, var(--secondary), var(--primary));
  color: #fff;
  box-shadow: 0 8px 24px rgba(23, 59, 120, 0.3);
}

.v8-btn-primary:hover {
  box-shadow: 0 12px 32px rgba(23, 59, 120, 0.45);
}

.v8-btn-light {
  background: var(--card);
  color: var(--text);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 16px rgba(17, 35, 68, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.v8-btn-light:hover {
  box-shadow: 0 8px 24px rgba(17, 35, 68, 0.12);
}

/* ---------- Badge ---------- */

.v8-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  font-family: "Cairo", sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--secondary);
  background: rgba(45, 103, 216, 0.1);
  border: 1px solid rgba(45, 103, 216, 0.18);
  border-radius: 50px;
  margin-bottom: 20px;
}

/* ---------- Mini pill ---------- */

.v8-mini-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  font-family: "Cairo", sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 50px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(17, 35, 68, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.v8-mini-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(17, 35, 68, 0.1);
}

/* ============================================================
   1. HERO
   ============================================================ */

.v8-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
  padding: 80px 24px 60px;
  font-family: "Cairo", sans-serif;
}

.v8-hero h1 {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--text);
  margin: 0 0 16px;
}

.v8-hero h1 span {
  background: linear-gradient(135deg, var(--secondary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.v8-hero p {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--muted);
  margin: 0 0 32px;
  max-width: 520px;
}

.v8-hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 36px;
}

.v8-hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- Hero visual ---------- */

.v8-hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 460px;
}

.v8-hero-visual .v8-main-card {
  position: relative;
  width: 320px;
  padding: 28px;
  background: var(--card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(17, 35, 68, 0.12);
  z-index: 2;
}

.v8-hero-visual .v8-floating-card {
  position: absolute;
  padding: 16px 22px;
  background: var(--card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(17, 35, 68, 0.1);
  animation: v8-float 5s ease-in-out infinite;
  z-index: 3;
}

.v8-hero-visual .v8-floating-card:nth-child(1) {
  top: 10%;
  right: -20px;
  animation-delay: 0s;
}

.v8-hero-visual .v8-floating-card:nth-child(2) {
  bottom: 14%;
  left: -16px;
  animation-delay: 1.5s;
}

.v8-hero-visual .v8-floating-card:nth-child(3) {
  top: 56%;
  right: -40px;
  animation-delay: 3s;
}

/* ============================================================
   2. STATS
   ============================================================ */

.v8-stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px 60px;
  font-family: "Cairo", sans-serif;
}

.v8-stat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 28px 16px;
  background: var(--card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(17, 35, 68, 0.08);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.v8-stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(17, 35, 68, 0.14);
}

.v8-stat-card strong {
  font-size: 2rem;
  font-weight: 800;
  color: var(--secondary);
}

.v8-stat-card span {
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 600;
}

/* ============================================================
   3. GENERIC SECTION
   ============================================================ */

.v8-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 72px 24px;
  font-family: "Cairo", sans-serif;
}

.v8-section-title {
  text-align: center;
  margin: 0 0 48px;
}

.v8-section-title h2 {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 12px;
}

.v8-section-title p {
  font-size: 1.05rem;
  color: var(--muted);
  margin: 0;
  max-width: 560px;
  margin-inline: auto;
}

/* ============================================================
   4. TEACHERS GRID
   ============================================================ */

.v8-teachers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.v8-teacher-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 32px 20px 28px;
  background: var(--card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(17, 35, 68, 0.08);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.v8-teacher-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(17, 35, 68, 0.14);
}

.v8-teacher-card .v8-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(45, 103, 216, 0.2);
}

.v8-teacher-card h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

.v8-teacher-card .v8-subject-pill {
  display: inline-block;
  padding: 4px 14px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--secondary);
  background: rgba(45, 103, 216, 0.1);
  border-radius: 50px;
}

/* ============================================================
   5. FEATURES GRID
   ============================================================ */

.v8-features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.v8-feature-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 32px 24px 28px;
  background: var(--card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(17, 35, 68, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.v8-feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(17, 35, 68, 0.14);
}

.v8-feature-card .v8-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--secondary), var(--primary));
  color: #fff;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.v8-feature-card h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

.v8-feature-card p {
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--muted);
  margin: 0;
}

/* ============================================================
   6. GAMIFICATION
   ============================================================ */

.v8-gamification {
  max-width: 1280px;
  margin: 0 auto;
  padding: 72px 24px;
  font-family: "Cairo", sans-serif;
}

.v8-gamification-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 56px 48px;
  background: linear-gradient(135deg, var(--primary), #0f2550);
  border-radius: 48px;
  color: #fff;
}

/* XP ring */

.v8-xp-ring-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.v8-xp-ring {
  position: relative;
  width: 180px;
  height: 180px;
}

.v8-xp-ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.v8-xp-ring .v8-ring-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.15);
  stroke-width: 10;
}

.v8-xp-ring .v8-ring-fill {
  fill: none;
  stroke: var(--gold);
  stroke-width: 10;
  stroke-linecap: round;
  stroke-dasharray: 440;
  stroke-dashoffset: 110;
  transition: stroke-dashoffset 1s ease;
}

.v8-xp-ring .v8-ring-label {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  font-weight: 800;
}

.v8-xp-ring .v8-ring-label small {
  font-size: 0.8rem;
  font-weight: 600;
  opacity: 0.8;
}

.v8-xp-ring-wrapper h3 {
  font-size: 1.4rem;
  font-weight: 800;
  margin: 0;
}

.v8-xp-ring-wrapper p {
  font-size: 0.95rem;
  opacity: 0.8;
  margin: 0;
}

/* Leaderboard */

.v8-leaderboard {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.v8-leaderboard h3 {
  font-size: 1.3rem;
  font-weight: 800;
  margin: 0 0 6px;
}

.v8-leaderboard-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: background 0.3s ease;
}

.v8-leaderboard-item:hover {
  background: rgba(255, 255, 255, 0.14);
}

.v8-leaderboard-item .v8-rank {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  font-size: 0.85rem;
  font-weight: 800;
  flex-shrink: 0;
}

.v8-leaderboard-item .v8-rank.v8-gold {
  background: var(--gold);
  color: var(--text);
}

.v8-leaderboard-item .v8-name {
  flex: 1;
  font-weight: 700;
  font-size: 0.95rem;
}

.v8-leaderboard-item .v8-xp {
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--gold);
}

.v8-leaderboard-item img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

/* ============================================================
   7. FOOTER
   ============================================================ */

.v8-footer {
  max-width: 1280px;
  margin: 0 auto;
  padding: 60px 24px 32px;
  font-family: "Cairo", sans-serif;
}

.v8-footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding: 48px;
  background: var(--text);
  border-radius: 32px;
  color: rgba(255, 255, 255, 0.8);
}

.v8-footer-brand p {
  font-size: 0.92rem;
  line-height: 1.7;
  margin: 12px 0 24px;
  max-width: 300px;
}

.v8-footer-col h4 {
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 16px;
}

.v8-footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.v8-footer-col ul li {
  margin-bottom: 10px;
}

.v8-footer-col ul li a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.v8-footer-col ul li a:hover {
  color: var(--gold);
}

.v8-footer-bottom {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

/* ============================================================
   8. RESPONSIVE – 1100px
   ============================================================ */

@media (max-width: 1100px) {
  .v8-hero {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
    padding: 60px 24px 40px;
  }

  .v8-hero p {
    margin-inline: auto;
  }

  .v8-hero-buttons {
    justify-content: center;
  }

  .v8-hero-pills {
    justify-content: center;
  }

  .v8-hero-visual {
    min-height: 360px;
    justify-content: center;
  }

  .v8-stats {
    grid-template-columns: repeat(3, 1fr);
  }

  .v8-teachers-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .v8-features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .v8-gamification-inner {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 40px 32px;
    border-radius: 36px;
  }

  .v8-footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

/* ============================================================
   9. RESPONSIVE – 760px
   ============================================================ */

@media (max-width: 760px) {
  .v8-hero {
    padding: 48px 16px 32px;
  }

  .v8-hero h1 {
    font-size: 2.1rem;
  }

  .v8-hero p {
    font-size: 1rem;
  }

  .v8-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    padding: 0 16px 48px;
  }

  .v8-stat-card {
    padding: 22px 12px;
  }

  .v8-stat-card strong {
    font-size: 1.6rem;
  }

  .v8-section {
    padding: 48px 16px;
  }

  .v8-section-title h2 {
    font-size: 1.65rem;
  }

  .v8-teachers-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .v8-features-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .v8-gamification-inner {
    padding: 32px 20px;
    border-radius: 28px;
  }

  .v8-leaderboard-item {
    padding: 12px 14px;
  }

  .v8-footer-inner {
    grid-template-columns: 1fr;
    padding: 32px 24px;
    border-radius: 24px;
    gap: 28px;
  }

  .v8-hero-visual {
    min-height: 300px;
  }

  .v8-hero-visual .v8-main-card {
    width: 260px;
    padding: 20px;
  }
}

/* ============================================================
   10. ACTUAL V8 HOMEPAGE COMPONENTS
   ============================================================ */

html,
body {
  background: linear-gradient(to bottom, #f7faff 0%, #eef4ff 100%);
}

body {
  color: var(--text);
  font-family: "Cairo", sans-serif;
  overflow-x: hidden;
}

.v8-banner,
.v8-stats,
.v8-teachers,
.v8-features,
.v8-gamification {
  position: relative;
  font-family: "Cairo", sans-serif;
}

.v8-banner {
  padding: 44px 0 34px;
}

.v8-banner .container,
.v8-stats .container,
.v8-teachers .container,
.v8-features .container,
.v8-gamification .container {
  width: min(1280px, calc(100% - 32px));
}

.v8-banner .row {
  align-items: center;
}

.v8-banner-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  margin-bottom: 16px;
  border-radius: 999px;
  background: rgba(45, 103, 216, 0.08);
  border: 1px solid rgba(45, 103, 216, 0.14);
  color: var(--secondary);
  font-size: 0.98rem;
  font-weight: 700;
}

.v8-banner-badge i,
.v8-pill i,
.v8-stat-icon i,
.v8-feature-icon i,
.v8-teacher-subject-pill i,
.v8-gamification-leaderboard .v8-leaderboard-header i,
.v8-gamification-leaderboard .v8-leaderboard-medal {
  color: currentColor;
}

.v8-banner-title {
  margin: 0 0 18px;
  font-size: clamp(2.6rem, 5.8vw, 4.9rem);
  line-height: 1.18;
  font-weight: 800;
  color: #6ba7cb;
  letter-spacing: -0.02em;
}

.v8-banner-desc {
  max-width: 760px;
  margin: 0 0 22px;
  color: #334155;
  font-size: clamp(1.02rem, 1.55vw, 1.22rem);
  line-height: 2.05;
}

.v8-banner-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 18px;
}

.v8-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-inline-end: 12px;
  margin-bottom: 10px;
  color: var(--secondary);
  font-size: 0.98rem;
  font-weight: 700;
  white-space: nowrap;
}

.v8-pill:last-child {
  margin-inline-end: 0;
}

.v8-banner-visual {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  isolation: isolate;
}

.v8-banner-bg-shape {
  position: absolute;
  inset: 50px 40px 40px 40px;
  border-radius: 44px;
  background:
    radial-gradient(circle at 25% 20%, rgba(45, 103, 216, 0.18), transparent 34%),
    radial-gradient(circle at 78% 70%, rgba(193, 43, 74, 0.12), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.16));
  filter: blur(1px);
  z-index: 0;
}

.v8-banner-main-card {
  position: relative;
  width: min(360px, 100%);
  aspect-ratio: 0.72;
  border-radius: 36px;
  background: linear-gradient(180deg, #b4a1ff 0%, #7b6bf1 42%, #456fd8 100%);
  box-shadow: 0 24px 56px rgba(23, 59, 120, 0.22);
  overflow: hidden;
  z-index: 2;
}

.v8-banner-main-card::before,
.v8-banner-main-card::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.v8-banner-main-card::before {
  inset: 22px auto auto 22px;
  width: 110px;
  height: 110px;
  background: rgba(255, 255, 255, 0.14);
  filter: blur(2px);
}

.v8-banner-main-card::after {
  right: -34px;
  bottom: -22px;
  width: 180px;
  height: 180px;
  background: rgba(255, 255, 255, 0.18);
}

.v8-banner-main-icon {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: clamp(4rem, 8vw, 6rem);
  z-index: 2;
}

.v8-banner-main-glow {
  position: absolute;
  inset: auto 18% 10% 18%;
  height: 18%;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.65), transparent 70%);
  filter: blur(14px);
  z-index: 1;
}

.v8-banner-float {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: 0 14px 34px rgba(17, 35, 68, 0.12);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 3;
}

.v8-banner-float-ai {
  top: 72px;
  right: 20px;
}

.v8-banner-float-wallet {
  left: 12px;
  bottom: 132px;
}

.v8-banner-float-xp {
  right: 0;
  bottom: 38px;
}

.v8-banner-float-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: rgba(45, 103, 216, 0.12);
  color: var(--secondary);
  font-size: 1.05rem;
  flex-shrink: 0;
}

.v8-banner-float-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.v8-banner-float-label {
  font-size: 0.75rem;
  line-height: 1.2;
  color: var(--muted);
  font-weight: 600;
}

.v8-banner-float-value {
  color: var(--text);
  font-size: 0.98rem;
  line-height: 1.3;
  font-weight: 700;
}

.v8-stats {
  padding: 4px 0 42px;
}

.v8-stats-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(145px, 1fr));
  gap: 14px;
  align-items: stretch;
}

.v8-stat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  min-height: 166px;
  padding: 18px 14px 16px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 28px;
  box-shadow: 0 12px 32px rgba(17, 35, 68, 0.08);
  text-align: center;
}

.v8-stat-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  color: #fff;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.v8-stat-icon-blue { background: linear-gradient(135deg, #2d67d8, #173b78); }
.v8-stat-icon-green { background: linear-gradient(135deg, #19a974, #0e7c56); }
.v8-stat-icon-purple { background: linear-gradient(135deg, #8a63d2, #5e47b8); }
.v8-stat-icon-orange { background: linear-gradient(135deg, #f59f00, #d97706); }
.v8-stat-icon-red { background: linear-gradient(135deg, #e74c3c, #c12b4a); }

.v8-stat-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  align-items: center;
}

.v8-stat-number {
  color: var(--text);
  font-size: 1.02rem;
  font-weight: 800;
  line-height: 1.15;
}

.v8-stat-label {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.35;
}

.v8-section-header {
  text-align: center;
  margin-bottom: 30px;
}

.v8-section-title {
  margin: 0 0 10px;
  color: #64a5cf;
  font-size: clamp(2rem, 3.4vw, 2.8rem);
  line-height: 1.25;
  font-weight: 800;
}

.v8-section-subtitle {
  margin: 0 auto;
  max-width: 720px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.9;
}

.v8-teachers,
.v8-features,
.v8-gamification {
  padding: 46px 0 0;
}

.v8-teachers-grid,
.v8-features-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.v8-teacher-card,
.v8-feature-card {
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 22px;
  box-shadow: 0 12px 32px rgba(17, 35, 68, 0.08);
}

.v8-teacher-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 22px 18px 20px;
  text-align: center;
}

.v8-teacher-img {
  width: 96px;
  height: 96px;
  margin-bottom: 14px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(45, 103, 216, 0.12), rgba(23, 59, 120, 0.08));
  display: grid;
  place-items: center;
}

.v8-teacher-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.v8-teacher-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: var(--secondary);
  font-size: 2rem;
}

.v8-teacher-name {
  margin: 0 0 6px;
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 800;
}

.v8-teacher-bio {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.v8-teacher-subject-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(45, 103, 216, 0.08);
  color: var(--secondary);
  font-size: 0.8rem;
  font-weight: 700;
}

.v8-feature-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px 22px 22px;
}

.v8-feature-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  color: #fff;
  font-size: 1.25rem;
}

.v8-feature-icon-video { background: linear-gradient(135deg, #2d67d8, #173b78); }
.v8-feature-icon-quiz { background: linear-gradient(135deg, #8a63d2, #5e47b8); }
.v8-feature-icon-ai { background: linear-gradient(135deg, #19a974, #0e7c56); }
.v8-feature-icon-store { background: linear-gradient(135deg, #f59f00, #d97706); }

.v8-feature-title {
  margin: 0;
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 800;
}

.v8-feature-desc {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.8;
}

.v8-gamification-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: stretch;
}

.v8-gamification-content,
.v8-gamification-leaderboard {
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 28px;
  box-shadow: 0 12px 32px rgba(17, 35, 68, 0.08);
  padding: 28px;
}

.v8-gamification-title {
  margin: 0 0 12px;
  color: #64a5cf;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  line-height: 1.25;
  font-weight: 800;
}

.v8-gamification-desc {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.9;
}

.v8-gamification-xp-ring {
  display: flex;
  align-items: center;
  justify-content: center;
}

.v8-xp-ring-circle {
  position: relative;
  width: 210px;
  height: 210px;
}

.v8-xp-ring-circle svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.v8-xp-ring-bg {
  fill: none;
  stroke: rgba(23, 59, 120, 0.1);
  stroke-width: 10;
}

.v8-xp-ring-fill {
  fill: none;
  stroke: var(--gold);
  stroke-width: 10;
  stroke-linecap: round;
  stroke-dasharray: 314;
  stroke-dashoffset: 94;
}

.v8-xp-ring-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  text-align: center;
}

.v8-xp-ring-percent {
  color: var(--text);
  font-size: 2rem;
  font-weight: 800;
}

.v8-xp-ring-label {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.v8-leaderboard-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--secondary);
}

.v8-leaderboard-header h3 {
  margin: 0;
  color: var(--text);
  font-size: 1.2rem;
  font-weight: 800;
}

.v8-leaderboard-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.v8-leaderboard-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(245, 248, 253, 0.9);
}

.v8-leaderboard-gold {
  background: linear-gradient(135deg, rgba(245, 185, 66, 0.18), rgba(255, 255, 255, 0.92));
}

.v8-leaderboard-silver {
  background: linear-gradient(135deg, rgba(148, 163, 184, 0.16), rgba(255, 255, 255, 0.92));
}

.v8-leaderboard-bronze {
  background: linear-gradient(135deg, rgba(180, 83, 9, 0.14), rgba(255, 255, 255, 0.92));
}

.v8-leaderboard-rank {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(45, 103, 216, 0.1);
  color: var(--secondary);
  font-size: 0.86rem;
  font-weight: 800;
  flex-shrink: 0;
}

.v8-leaderboard-avatar {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(45, 103, 216, 0.12);
  color: var(--secondary);
  font-size: 1rem;
  flex-shrink: 0;
}

.v8-leaderboard-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.v8-leaderboard-name {
  color: var(--text);
  font-size: 0.96rem;
  font-weight: 800;
  line-height: 1.2;
}

.v8-leaderboard-xp {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.2;
}

.v8-leaderboard-medal {
  color: var(--gold);
  font-size: 1.05rem;
  flex-shrink: 0;
}

@media (max-width: 1100px) {
  .v8-banner .row {
    gap: 24px;
  }

  .v8-banner-content {
    text-align: center;
  }

  .v8-banner-btns,
  .v8-banner-pills {
    justify-content: center;
  }

  .v8-banner-visual {
    min-height: 420px;
  }

  .v8-stats-grid,
  .v8-teachers-grid,
  .v8-features-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .v8-gamification-wrap {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .v8-banner {
    padding-top: 24px;
  }

  .v8-banner-title {
    font-size: clamp(2.2rem, 10vw, 3rem);
  }

  .v8-banner-desc {
    font-size: 1rem;
  }

  .v8-banner-visual {
    min-height: 340px;
  }

  .v8-banner-main-card {
    width: min(290px, 100%);
  }

  .v8-banner-float-ai {
    top: 28px;
    right: 0;
  }

  .v8-banner-float-wallet {
    left: 0;
    bottom: 92px;
  }

  .v8-banner-float-xp {
    right: 0;
    bottom: 18px;
  }

  .v8-stats-grid,
  .v8-teachers-grid,
  .v8-features-grid {
    grid-template-columns: 1fr;
  }

  .v8-stat-card {
    min-height: 150px;
    padding: 16px 12px 14px;
  }

  .v8-gamification-content,
  .v8-gamification-leaderboard {
    padding: 22px 18px;
    border-radius: 22px;
  }
}
