:root {
  --bg: #12131f;
  --bg-2: #1c1d2e;
  --bg-3: #27283c;
  --card: #2e2f46;
  --text: #f4f4f8;
  --muted: #a8a9bf;
  --gold: #f0c14b;
  --gold-hover: #ffd666;
  --lavender: #b8a9e0;
  --lavender-soft: rgba(184, 169, 224, 0.18);
  --success: #6bcb8a;
  --danger: #e07a7a;
  --radius: 16px;
  --radius-sm: 10px;
  --font: "Manrope", "Segoe UI", system-ui, sans-serif;
  --max: 1120px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 4.5rem;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

.muted {
  color: var(--muted);
}

/* Living background — CSS only, GPU-friendly */
.bg-mesh {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.35;
  will-change: transform;
  animation: drift 18s var(--ease) infinite alternate;
}

.orb-a {
  width: 42vw;
  height: 42vw;
  max-width: 520px;
  max-height: 520px;
  background: rgba(240, 193, 75, 0.35);
  top: -8%;
  right: -5%;
}

.orb-b {
  width: 36vw;
  height: 36vw;
  max-width: 440px;
  max-height: 440px;
  background: rgba(184, 169, 224, 0.4);
  bottom: 10%;
  left: -10%;
  animation-duration: 22s;
  animation-delay: -4s;
}

.orb-c {
  width: 28vw;
  height: 28vw;
  max-width: 320px;
  max-height: 320px;
  background: rgba(90, 120, 200, 0.25);
  top: 40%;
  left: 40%;
  animation-duration: 26s;
  animation-delay: -8s;
}

.grid-fade {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 75%);
  opacity: 0.5;
}

@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(3%, 4%, 0) scale(1.08); }
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translate3d(0, 16px, 0);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

.reveal-delay { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }

@media (prefers-reduced-motion: reduce) {
  .orb { animation: none; }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .avatar-ring { animation: none !important; }
  html { scroll-behavior: auto; }
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(18, 19, 31, 0.94);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: env(safe-area-inset-top, 0);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 3.5rem;
  padding: 0.65rem 0;
  flex-wrap: nowrap;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  flex-shrink: 0;
  color: var(--text);
  line-height: 1.2;
}

.logo-text {
  color: var(--text);
}

.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--lavender));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  padding: 2px;
}

.logo-mark img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.nav {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-shrink: 1;
  min-width: 0;
}

.nav a {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
  white-space: nowrap;
}

.nav a:hover {
  color: var(--text);
}

.nav-mobile-actions {
  display: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.1rem;
  background: var(--bg-3);
  padding: 0.2rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.lang-switch a {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.38rem 0.5rem;
  border-radius: 999px;
  color: #c8c9dc;
  line-height: 1;
}

.lang-switch a.active {
  background: var(--lavender);
  color: #1a1b2e;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 10px;
  background: var(--bg-3);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: 0.25s var(--ease);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.92rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s, border-color 0.2s, color 0.2s;
  font-family: inherit;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-gold {
  background: var(--gold);
  color: #1a1b2e;
}

.btn-gold:hover {
  background: var(--gold-hover);
}

.btn-outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.22);
  color: var(--text);
}

.btn-outline:hover {
  border-color: var(--lavender);
  color: var(--lavender);
}

.btn-ghost {
  background: var(--lavender-soft);
  color: var(--lavender);
}

/* Hero */
.hero {
  padding: 3.5rem 0 3rem;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.4rem, 7vw, 4rem);
  line-height: 1.05;
  margin: 0 0 0.75rem;
  letter-spacing: -0.03em;
}

.pill {
  display: inline-block;
  background: var(--lavender);
  color: #1a1b2e;
  font-weight: 800;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.hero-sub {
  color: var(--muted);
  font-size: clamp(1rem, 2.5vw, 1.12rem);
  max-width: 36rem;
  margin-bottom: 0.75rem;
}

.hero-proof {
  color: var(--gold);
  font-size: 0.88rem;
  font-weight: 600;
  margin: 0 0 1.5rem;
  opacity: 0.9;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.hero-cta .btn {
  min-height: 2.75rem;
}

.teacher-card {
  text-align: center;
  justify-self: end;
}

.avatar-ring {
  width: min(280px, 68vw);
  height: min(280px, 68vw);
  border-radius: 50%;
  background: linear-gradient(145deg, var(--gold), #c9a035 40%, var(--lavender));
  padding: 7px;
  margin: 0 auto 1rem;
  animation: float 6s ease-in-out infinite;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.avatar-ring img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  background: var(--bg-2);
}

.avatar-sm {
  width: 120px;
  height: 120px;
  margin: 2rem 0 0;
  animation: none;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.teacher-meta {
  color: var(--muted);
  font-size: 0.9rem;
}

.teacher-meta strong {
  display: block;
  color: var(--text);
  font-size: 1.15rem;
  margin-bottom: 0.2rem;
}

/* Sections */
section {
  padding: 3.5rem 0;
  position: relative;
}

.section-title {
  font-size: clamp(1.7rem, 4vw, 2.35rem);
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
}

.section-lead {
  color: var(--muted);
  max-width: 42rem;
  margin-bottom: 2rem;
}

.section-warm {
  background: linear-gradient(180deg, transparent, rgba(36, 37, 58, 0.65), transparent);
}

.warm-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.warm-card {
  background: rgba(36, 37, 58, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  padding: 1.35rem;
  transition: border-color 0.25s, transform 0.25s var(--ease);
}

.warm-card:hover {
  border-color: rgba(240, 193, 75, 0.35);
  transform: translateY(-3px);
}

.warm-num {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--gold);
  letter-spacing: 0.08em;
  margin-bottom: 0.6rem;
}

.warm-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.warm-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.warm-bridge {
  margin: 1.75rem 0 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--lavender);
  max-width: 40rem;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.card {
  background: rgba(36, 37, 58, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius);
  padding: 1.35rem;
  transition: transform 0.25s var(--ease), border-color 0.25s;
}

.card:hover {
  transform: translateY(-3px);
  border-color: rgba(240, 193, 75, 0.3);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(240, 193, 75, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-bottom: 0.85rem;
  overflow: hidden;
}

.card-icon img {
  width: 26px;
  height: 26px;
  max-width: 26px;
  max-height: 26px;
  display: block;
  object-fit: contain;
  flex-shrink: 0;
}

.card h3 {
  margin: 0 0 0.4rem;
  font-size: 0.95rem;
  color: var(--gold);
  letter-spacing: 0.04em;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.section-promise {
  background: var(--bg-2);
}

.promise-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.promise-list li {
  background: rgba(18, 19, 31, 0.45);
  border-radius: var(--radius-sm);
  padding: 1rem 1.15rem;
  border-left: 3px solid var(--gold);
  color: var(--muted);
  font-weight: 500;
}

.who-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.who-diff {
  margin-top: 1.5rem;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.25rem 0;
}

.tag {
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
}

.tag:nth-child(odd) {
  background: var(--gold);
  color: #1a1b2e;
}

.tag:nth-child(even) {
  background: var(--lavender);
  color: #1a1b2e;
}

.diff-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 1.5rem;
}

.diff-list li {
  padding: 0.45rem 0;
  color: var(--muted);
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.diff-list li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}

.video-wrap {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-3);
  aspect-ratio: 16 / 9;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.3);
}

.video-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.section-stats {
  background: linear-gradient(180deg, transparent, rgba(184, 169, 224, 0.06), transparent);
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.85rem;
}

.stat {
  background: rgba(36, 37, 58, 0.9);
  border-radius: var(--radius);
  padding: 1.25rem 0.85rem;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.stat .num {
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  font-weight: 800;
  color: var(--gold);
  line-height: 1.1;
}

.stat .label {
  color: var(--muted);
  font-size: 0.8rem;
  margin-top: 0.35rem;
}

/* Pricing tiers */
.section-pricing {
  background: var(--bg-2);
}

.pricing-caption {
  color: var(--lavender);
  font-weight: 700;
  margin: -0.5rem 0 1.5rem;
}

.pricing-tiers {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.85rem;
  align-items: stretch;
}

.price-tier {
  position: relative;
  background: rgba(18, 19, 31, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius);
  padding: 1.25rem 1rem 1.15rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s var(--ease), border-color 0.25s, box-shadow 0.25s;
}

.price-tier:hover {
  transform: translateY(-4px);
  border-color: rgba(240, 193, 75, 0.35);
}

.price-tier.featured {
  border-color: var(--gold);
  background: linear-gradient(180deg, rgba(240, 193, 75, 0.14), rgba(18, 19, 31, 0.7));
  box-shadow: 0 12px 36px rgba(240, 193, 75, 0.12);
}

.price-tier.best-value {
  border-color: rgba(184, 169, 224, 0.55);
}

.tier-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  background: var(--gold);
  color: #1a1b2e;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  letter-spacing: 0.02em;
}

.tier-badge-alt {
  background: var(--lavender);
}

.tier-head h3 {
  margin: 0.35rem 0 0.15rem;
  font-size: 1.05rem;
}

.tier-sub {
  color: var(--muted);
  font-size: 0.78rem;
}

.tier-price {
  margin: 0.85rem 0 0.2rem;
}

.tier-price .amount {
  font-size: 1.85rem;
  font-weight: 800;
  display: block;
  line-height: 1.1;
}

.lessons-count {
  color: var(--muted);
  font-size: 0.8rem;
}

.tier-per {
  color: var(--gold);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.tier-save {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--success);
  margin-bottom: 0.65rem;
}

.tier-save span {
  display: block;
  font-weight: 500;
  color: var(--muted);
  font-size: 0.75rem;
}

.tier-save.muted {
  color: var(--muted);
  font-weight: 500;
}

.tier-desc {
  color: var(--muted);
  font-size: 0.84rem;
  margin: 0 0 0.4rem;
  flex: 1;
}

.tier-for {
  font-size: 0.78rem;
  color: var(--lavender);
  font-weight: 600;
  margin: 0 0 0.85rem;
}

.tier-cta {
  width: 100%;
  padding: 0.55rem 0.75rem;
  font-size: 0.82rem;
}

.bulk-box {
  margin-top: 1.75rem;
  background: rgba(184, 169, 224, 0.1);
  border: 1px solid rgba(184, 169, 224, 0.25);
  border-radius: var(--radius);
  padding: 1.35rem 1.5rem;
}

.bulk-box h3 {
  margin: 0 0 0.75rem;
  font-size: 1.1rem;
}

.bulk-box ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
}

.bulk-box li {
  margin-bottom: 0.35rem;
}

.sc-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  background: var(--lavender-soft);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-top: 1rem;
}

.sc-sub {
  color: var(--muted);
  font-size: 0.92rem;
}

.sc-price {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--gold);
}

.pricing-note {
  color: var(--muted);
  margin-top: 1rem;
  font-size: 0.9rem;
}

.cta-band {
  padding: 2.5rem 0;
}

.cta-band-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  background: linear-gradient(120deg, rgba(240, 193, 75, 0.15), rgba(184, 169, 224, 0.18));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 1.75rem 1.75rem;
}

.cta-band h2 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.3rem, 3vw, 1.7rem);
}

.cta-band p {
  margin: 0;
  color: var(--muted);
  max-width: 36rem;
}

.review-placeholder {
  max-width: 40rem;
}

.section-faq {
  background: var(--bg-2);
}

.faq-wrap {
  max-width: 800px;
}

.faq-item {
  background: rgba(18, 19, 31, 0.45);
  border-radius: var(--radius-sm);
  margin-bottom: 0.6rem;
  overflow: hidden;
}

.faq-item summary {
  padding: 1rem 1.25rem;
  cursor: pointer;
  font-weight: 700;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "";
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--lavender);
  border-bottom: 2px solid var(--lavender);
  transform: rotate(45deg);
  flex-shrink: 0;
  transition: transform 0.2s;
}

.faq-item[open] summary::after {
  transform: rotate(225deg);
}

.faq-item p {
  margin: 0;
  padding: 0 1.25rem 1.15rem;
  color: var(--muted);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap: 2rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.field {
  margin-bottom: 0.75rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  background: var(--bg-3);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  color: var(--text);
  font: inherit;
}

.field textarea {
  min-height: 110px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid var(--lavender);
  border-color: transparent;
}

.alert-success {
  background: rgba(107, 203, 138, 0.15);
  color: var(--success);
  padding: 0.85rem 1rem;
  border-radius: 12px;
  margin-bottom: 1rem;
}

.alert-error {
  background: rgba(224, 122, 122, 0.15);
  color: var(--danger);
  padding: 0.85rem 1rem;
  border-radius: 12px;
  margin-bottom: 1rem;
}

/* Honeypot — invisible to humans, filled by naive bots */
.hp-field {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.socials {
  display: flex;
  gap: 0.75rem;
}

.socials a {
  color: var(--lavender);
  font-weight: 600;
}

.socials-col {
  flex-direction: column;
  align-items: flex-start;
  margin-top: 1rem;
}

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 2rem 0;
  color: var(--muted);
  font-size: 0.9rem;
  position: relative;
  z-index: 1;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Login */
.auth-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(240, 193, 75, 0.1), transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(184, 169, 224, 0.12), transparent 45%),
    var(--bg);
}

.auth-card {
  width: min(100%, 420px);
  background: var(--bg-2);
  border-radius: 20px;
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.auth-card h1 {
  margin: 0 0 1.5rem;
  font-size: 1.6rem;
}

.alert-error {
  background: rgba(224, 122, 122, 0.15);
  color: var(--danger);
  padding: 0.75rem 1rem;
  border-radius: 10px;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

/* Dashboard */
.dash-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
}

.dash-side {
  background: var(--bg-2);
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.dash-side a {
  padding: 0.7rem 1rem;
  border-radius: 10px;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.92rem;
}

.dash-side a.active,
.dash-side a:hover {
  background: var(--lavender-soft);
  color: var(--lavender);
}

.dash-main {
  padding: 1.75rem;
}

.dash-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.widgets {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.widget {
  background: var(--bg-2);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.widget .label {
  color: var(--muted);
  font-size: 0.82rem;
  margin-bottom: 0.5rem;
}

.widget .value {
  font-size: 1.6rem;
  font-weight: 800;
}

.ring {
  --p: 70;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: conic-gradient(var(--gold) calc(var(--p) * 1%), var(--bg-3) 0);
  display: grid;
  place-items: center;
  margin: 0.5rem auto 0;
}

.ring span {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: var(--bg-2);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.95rem;
}

.bars {
  display: grid;
  gap: 0.85rem;
}

.bar-row {
  display: grid;
  grid-template-columns: 120px 1fr 40px;
  gap: 0.75rem;
  align-items: center;
}

.bar-track {
  height: 10px;
  background: var(--bg-3);
  border-radius: 999px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--lavender), var(--gold));
  border-radius: 999px;
}

.lesson-list {
  display: grid;
  gap: 0.75rem;
}

.lesson-item {
  background: var(--bg-2);
  border-radius: var(--radius-sm);
  padding: 1rem 1.15rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
}

.badge-ok {
  background: rgba(107, 203, 138, 0.2);
  color: var(--success);
}

.badge-wait {
  background: rgba(240, 193, 75, 0.2);
  color: var(--gold);
}

.badge-off {
  background: rgba(224, 122, 122, 0.2);
  color: var(--danger);
}

.analytics-panel {
  background: var(--bg-2);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.rings-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  justify-content: space-around;
  margin: 1.25rem 0;
}

.ring-label {
  text-align: center;
  color: var(--muted);
  font-size: 0.8rem;
  margin-top: 0.35rem;
}

.menu-toggle {
  display: none;
  background: var(--bg-3);
  border: 0;
  color: var(--text);
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  font-weight: 700;
}

/* Mobile / tablet */
@media (max-width: 1100px) {
  .nav-toggle {
    display: flex;
  }

  .header-actions .btn-desktop {
    display: none;
  }

  .btn-account {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    padding: 0.48rem 0.8rem;
    font-size: 0.78rem;
    white-space: nowrap;
    min-height: 2.4rem;
  }

  .header-inner {
    flex-wrap: nowrap;
    gap: 0.5rem;
    min-height: 3.75rem;
  }

  .logo-text {
    max-width: min(38vw, 9.5rem);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .nav {
    display: none;
    position: fixed;
    inset: 0;
    top: 0;
    background: rgba(12, 13, 22, 0.98);
    flex-direction: column;
    align-items: stretch;
    padding: calc(4.75rem + env(safe-area-inset-top, 0)) 1.25rem 2rem;
    gap: 0.25rem;
    z-index: 40;
    overflow-y: auto;
  }

  .nav.open {
    display: flex;
  }

  .site-header {
    z-index: 55;
  }

  .nav > a {
    padding: 0.95rem 0.5rem;
    font-size: 1.08rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--text);
  }

  .nav-mobile-actions {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-top: 1.25rem;
  }

  .hero-grid,
  .who-grid,
  .contact-grid,
  .warm-grid {
    grid-template-columns: 1fr;
  }

  .teacher-card {
    justify-self: center;
  }

  .cards-grid,
  .promise-list {
    grid-template-columns: 1fr 1fr;
  }

  .stats-row,
  .widgets {
    grid-template-columns: repeat(2, 1fr);
  }

  .pricing-tiers {
    grid-template-columns: 1fr 1fr;
  }

  .cta-band-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

.mobile-top-utils {
  display: none;
}

@media (max-width: 640px) {
  /* Hide landing toolbar on phones */
  .site-header {
    display: none !important;
  }

  html {
    scroll-padding-top: 0.75rem;
  }

  .mobile-top-utils {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding-top: 0.85rem;
    padding-bottom: 0.25rem;
  }

  .mobile-top-utils .btn-sm {
    padding: 0.4rem 0.85rem;
    font-size: 0.78rem;
    min-height: 2.2rem;
  }

  .logo-text {
    font-size: 0.92rem;
  }

  .hero {
    padding: 1.25rem 0 2rem;
  }

  section {
    padding: 2.75rem 0;
  }

  .cards-grid,
  .promise-list,
  .stats-row,
  .pricing-tiers,
  .form-row,
  .widgets {
    grid-template-columns: 1fr;
  }

  .price-tier.featured {
    order: -1;
  }

  .orb {
    opacity: 0.22;
    filter: blur(48px);
  }
}

/* Dashboard extras */
.dash-layout { position: relative; z-index: 1; }
.dash-bg .orb { opacity: 0.18; }
.dash-side { backdrop-filter: blur(10px); background: rgba(28, 29, 46, 0.92); }
.dash-main { position: relative; }
.widget { border: 1px solid rgba(255,255,255,0.05); transition: transform 0.25s var(--ease), border-color 0.25s; }
.widget:hover { transform: translateY(-2px); border-color: rgba(240,193,75,0.25); }
.widget-balance { grid-column: span 2; }
.balance-row { display: flex; gap: 1.25rem; align-items: center; margin-top: 0.5rem; flex-wrap: wrap; }
.balance-meta { flex: 1; min-width: 140px; }
.hint { color: var(--muted); font-size: 0.85rem; margin: 0; }
.balance-meta .hint { margin-top: 0.25rem; font-size: 0.8rem; }
.balance-bar { margin-top: 0.65rem; height: 12px; }
.ring-lg { width: 110px; height: 110px; }
.ring-lg .ring-inner {
  width: 86px; height: 86px; border-radius: 50%; background: var(--bg-2);
  display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.15;
}
.ring-lg .ring-inner strong { font-size: 1.25rem; }
.ring-lg .ring-inner small { color: var(--muted); font-size: 0.75rem; }
.value-sm { font-size: 1.05rem !important; }
.btn-sm { padding: 0.45rem 0.85rem; font-size: 0.8rem; }
.score-inline { margin-left: 0.5rem; font-weight: 800; color: var(--gold); }
.break-all { word-break: break-all; }
.lesson-actions { display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; }
.dash-title { margin: 0; font-size: clamp(1.25rem, 4vw, 1.6rem); }
.dash-userline { color: var(--muted); margin: 0.25rem 0 0; }
.dash-tz { color: var(--muted); margin: 0.15rem 0 0; font-size: 0.8rem; }

.dash-topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(18, 19, 31, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.dash-topbar-inner {
  width: min(100% - 1.25rem, var(--max));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.7rem 0;
}
.dash-topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.dash-tabs {
  display: none;
  width: min(100% - 0rem, var(--max));
  margin: 0 auto;
  gap: 0.35rem;
  padding: 0 0.75rem 0.65rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.dash-tabs::-webkit-scrollbar { display: none; }
.dash-tabs a {
  flex: 0 0 auto;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  background: var(--bg-3);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
}
.dash-tabs a.active {
  background: var(--gold);
  color: #1a1b2e;
}

.dash-layout-modern {
  width: min(100%, calc(var(--max) + 240px));
  margin: 0 auto;
}

@media (max-width: 960px) {
  .dash-layout-modern {
    grid-template-columns: 1fr;
  }
  .dash-side.desk-only,
  .menu-toggle {
    display: none !important;
  }
  .dash-tabs {
    display: flex;
  }
  .dash-main {
    padding: 1rem 0.85rem 2rem;
  }
  .widget-balance { grid-column: span 2; }
  .bar-row {
    grid-template-columns: 90px 1fr 36px;
    gap: 0.5rem;
    font-size: 0.85rem;
  }
  .rings-row {
    gap: 0.75rem;
  }
  .lesson-item {
    flex-direction: column;
    align-items: flex-start;
  }
}

.lesson-link,
.analytics-card-link {
  display: flex;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
.lesson-link:hover,
.analytics-card-link:hover {
  border-color: rgba(240, 193, 75, 0.35);
}
.analytics-card-link {
  flex-direction: column;
  display: block;
  margin-bottom: 1rem;
}
.linkish {
  color: var(--lavender);
  font-weight: 600;
  margin-top: 0.35rem;
}
.cover-list {
  margin: 0.5rem 0 1rem;
  padding-left: 1.15rem;
  color: var(--muted);
}
.cover-list li {
  margin-bottom: 0.35rem;
}
.cover-list.compact li {
  font-size: 0.88rem;
}
.report-body {
  color: var(--text);
  line-height: 1.65;
  white-space: pre-wrap;
}
.analytics-panel h4 {
  margin: 1rem 0 0.4rem;
  font-size: 1rem;
  color: var(--gold);
}

.speech-metrics { margin: 1rem 0 1.25rem; }
.speech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
  gap: 0.75rem;
}
.speech-grid div {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 0.75rem 0.5rem;
  text-align: center;
}
.speech-grid strong { display: block; font-size: 1.15rem; }
.speech-grid span { font-size: 0.72rem; opacity: 0.7; }
.issue-list { margin: 0.4rem 0 0; padding-left: 1.1rem; }
.issue-list li { margin: 0.35rem 0; line-height: 1.45; }
.issue-quote { opacity: 0.9; }
.dict-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.dict-form {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.4fr auto;
  gap: 0.5rem;
  margin: 1rem 0 1.25rem;
}
.dict-form input {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(0,0,0,0.25);
  color: inherit;
}
.dict-list { display: flex; flex-direction: column; gap: 0.65rem; }
.dict-item {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
}
.review-card .review-word {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.review-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

@media (max-width: 640px) {
  .widget-balance { grid-column: span 1; }
  .dash-topbar-actions .btn-sm {
    padding: 0.4rem 0.65rem;
    font-size: 0.72rem;
  }
  .widgets {
    grid-template-columns: 1fr;
  }
  .balance-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .dict-form { grid-template-columns: 1fr; }
}

.inline-form { display: inline; margin: 0; }
.flash-ok, .flash-err {
  padding: 0.75rem 1rem;
  border-radius: 10px;
  margin: 0 0 1rem;
}
.flash-ok {
  background: rgba(46, 160, 90, 0.15);
  border: 1px solid rgba(46, 160, 90, 0.35);
}
.flash-err {
  background: rgba(200, 60, 60, 0.12);
  border: 1px solid rgba(200, 60, 60, 0.3);
}
.section-free { padding: 1.5rem 0 0.5rem; }
.free-banner {
  display: grid;
  grid-template-columns: 1.4fr auto;
  gap: 1.5rem;
  align-items: center;
  padding: 1.75rem 1.5rem;
  border-radius: 18px;
  border: 1px solid rgba(212, 175, 55, 0.35);
  background:
    linear-gradient(135deg, rgba(212, 175, 55, 0.12), rgba(0, 0, 0, 0.15)),
    rgba(255, 255, 255, 0.03);
}
.free-badge {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #1a1a1a;
  background: var(--gold, #d4af37);
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  margin-bottom: 0.6rem;
  font-weight: 700;
}
.free-banner h2 { margin: 0 0 0.5rem; font-size: clamp(1.35rem, 2.5vw, 1.85rem); }
.free-banner p { margin: 0 0 0.75rem; opacity: 0.9; }
.free-points { margin: 0; padding-left: 1.1rem; }
.free-points li { margin: 0.25rem 0; }
.free-cta-wrap { text-align: center; min-width: 200px; }
.free-cta-wrap .hint { margin-top: 0.6rem; font-size: 0.8rem; }
.price-tier.tier-free {
  border-color: rgba(212, 175, 55, 0.45);
  box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.15);
}
@media (max-width: 720px) {
  .free-banner { grid-template-columns: 1fr; }
}
