.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0.85rem 1.3rem;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
  border: 0;
  cursor: pointer;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--velvet), var(--green));
  color: var(--white);
  box-shadow: var(--shadow-card);
}

.btn-secondary {
  border: 1px solid rgba(74, 30, 72, 0.15);
  background: rgba(255, 255, 255, 0.65);
  color: var(--velvet);
}

.btn-small {
  min-height: 40px;
  padding: 0.55rem 1rem;
  font-size: 0.95rem;
}

.btn.is-disabled { pointer-events: none; opacity: 0.5; }

/* flash notice */
.flash {
  position: sticky;
  top: 78px;
  z-index: 25;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.flash.is-hidden { opacity: 0; transform: translateY(-6px); }

.flash-notice {
  background: rgba(46, 125, 90, 0.12);
  border-bottom: 1px solid rgba(46, 125, 90, 0.18);
  backdrop-filter: blur(12px);
}

.flash-inner {
  padding: 0.9rem 0;
  color: var(--velvet-dark);
  font-weight: 800;
}

/* hero */
.hero-section { padding: 4rem 0 3rem; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
}

.hero-text { max-width: 58ch; font-size: 1.1rem; margin-top: 1rem; }

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.6rem;
}

.hero-points {
  display: grid;
  gap: 0.8rem;
  margin-top: 1.6rem;
}

.hero-points li {
  position: relative;
  padding-left: 1.4rem;
  color: var(--velvet-dark);
  font-weight: 650;
}

.hero-points li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--gold);
}

.hero-visual { position: relative; min-height: 500px; }

.visual-card {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(230, 220, 201, 0.9);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(10px);
}

.visual-card--main {
  padding: 1.5rem;
  min-height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.visual-card--floating {
  position: absolute;
  padding: 1rem 1.1rem;
  width: 180px;
}

.floating-card-a { top: 2rem; right: -1rem; }
.floating-card-b { bottom: 2rem; left: -1rem; }

.lesson-preview { width: 100%; max-width: 420px; text-align: center; }

.lesson-preview__image {
  width: 130px;
  height: 130px;
  margin: 0 auto 1rem;
  border-radius: 30px;
  display: grid;
  place-items: center;
  font-size: 4rem;
  background: linear-gradient(135deg, rgba(201,166,70,0.18), rgba(46,125,90,0.18));
}

.lesson-preview__label,
.mini-card__title {
  display: inline-block;
  margin-bottom: 0.75rem;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* bubbles */
.bubble-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1rem;
}

@keyframes bubblePulse {
  0% { transform: translateY(-1px) scale(1.02); }
  50% { transform: translateY(-2px) scale(1.05); }
  100% { transform: translateY(-1px) scale(1.02); }
}

.word-bubble {
  padding: 0.7rem 1rem;
  border-radius: 999px;
  background: rgba(74, 30, 72, 0.08);
  color: var(--velvet-dark);
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  cursor: pointer;
  user-select: none;
}

.word-bubble.is-active {
  background: linear-gradient(135deg, var(--gold), var(--gold-soft));
  color: #2f2100;
  transform: translateY(-1px) scale(1.03);
  box-shadow: 0 18px 40px rgba(201, 166, 70, 0.22);
  animation: bubblePulse 1.1s ease-in-out infinite;
}

/* -----------------------
   auth (this was missing)
   ----------------------- */
.auth-section { padding: 4rem 0; }

.auth-wrap { max-width: 980px; }

.auth-card {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 0;
  overflow: hidden;

  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}

.auth-copy {
  padding: 1.75rem 1.6rem;
  background:
    radial-gradient(circle at top left, rgba(201,166,70,0.14), transparent 45%),
    radial-gradient(circle at bottom right, rgba(46,125,90,0.12), transparent 45%),
    rgba(255,255,255,0.65);
  border-right: 1px solid rgba(230, 220, 201, 0.75);
}

.auth-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  color: var(--velvet);
}

.auth-text { margin-top: 1rem; max-width: 46ch; }

.auth-benefits {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.4rem;
}

.auth-benefits li {
  position: relative;
  padding-left: 1.25rem;
  color: var(--velvet-dark);
  font-weight: 650;
}

.auth-benefits li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--gold);
}

.auth-switch { margin-top: 1.4rem; color: var(--muted); }
.auth-switch a { color: var(--green); font-weight: 900; }

.auth-form {
  padding: 1.75rem 1.6rem;
  display: grid;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.78);
}

.form-group { display: grid; gap: 0.45rem; }

.form-group label {
  font-size: 0.95rem;
  font-weight: 900;
  color: var(--velvet-dark);
}

.form-group input {
  width: 100%;
  min-height: 54px;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(230, 220, 201, 0.95);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  outline: none;
}

.form-group input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(46, 125, 90, 0.12);
}

.form-error {
  color: #a12727;
  font-size: 0.92rem;
  font-weight: 650;
}

.form-alert {
  padding: 0.95rem 1rem;
  border: 1px solid rgba(161, 39, 39, 0.18);
  border-radius: 16px;
  background: rgba(161, 39, 39, 0.06);
  color: #8f1f1f;
  font-size: 0.95rem;
  font-weight: 800;
}

.auth-submit { width: 100%; margin-top: 0.25rem; }

/* dashboard */
.dashboard-section { padding: 3.2rem 0 2.5rem; }
.dashboard-hero { max-width: 860px; }

.nudge-bar {
  margin-top: 1.25rem;
  padding: 0.9rem 1rem;
  border-radius: 18px;
  background: rgba(201, 166, 70, 0.10);
  border: 1px solid rgba(201, 166, 70, 0.18);
  color: var(--velvet-dark);
  font-weight: 850;
}

.dashboard-stats {
  margin-top: 1.1rem;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.9rem;
}

.stat-card {
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
  padding: 1rem 1.1rem;
}

.stat-label {
  display: inline-block;
  color: var(--muted);
  font-weight: 900;
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.stat-value {
  display: block;
  margin-top: 0.35rem;
  color: var(--velvet);
  font-weight: 950;
  font-size: 1.55rem;
}

.dashboard-panels {
  margin-top: 1.2rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.panel-card {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  padding: 1.5rem;
}

.panel-title { margin-top: 0.25rem; margin-bottom: 0.55rem; color: var(--velvet); }

.panel-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }

.mini-lesson-row { margin-top: 1.1rem; display: grid; gap: 0.7rem; }

.mini-lesson {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.95rem 1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(230, 220, 201, 0.95);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.mini-lesson:hover { transform: translateY(-1px); box-shadow: var(--shadow-soft); }

.mini-lesson-emoji { font-size: 1.4rem; }
.mini-lesson-title { color: var(--velvet-dark); font-weight: 900; }

/* tiles */
.topic-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.topic-tile {
  min-height: 130px;
  padding: 1rem;
  border-radius: 24px;
  display: flex;
  align-items: end;
  color: var(--white);
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.28)),
    linear-gradient(135deg, var(--velvet), var(--green));
  box-shadow: var(--shadow-card);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.topic-tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(45, 16, 44, 0.18);
}

.topic-tile--rich { flex-direction: column; align-items: stretch; justify-content: space-between; }

.topic-tile-top { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; }
.topic-emoji { font-size: 1.7rem; }

.topic-progress {
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  font-size: 0.9rem;
  font-weight: 950;
}

.topic-name { margin-top: 0.7rem; font-size: 1.25rem; font-weight: 950; }

.topic-desc {
  margin-top: 0.4rem;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.86);
  font-weight: 650;
}

/* progress list */
.progress-list { display: grid; gap: 0.8rem; }

.progress-item {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
  padding: 1rem 1.1rem;
}

.progress-item-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

/* sparkle burst */
.sparkle-burst {
  position: absolute;
  width: 0;
  height: 0;
  pointer-events: none;
  z-index: 9999;
}

@keyframes sparkleFly {
  0% { transform: translate(0, 0) scale(1); opacity: 1; }
  100% { transform: translate(var(--dx), var(--dy)) scale(0.25); opacity: 0; }
}

.sparkle {
  position: absolute;
  left: 0;
  top: 0;
  border-radius: 999px;
  animation: sparkleFly 900ms ease-out forwards;
  box-shadow: 0 12px 28px rgba(45, 16, 44, 0.14);
}

/* responsive */
@media (max-width: 1020px) {
  .hero-grid { grid-template-columns: 1fr; }
  .dashboard-stats { grid-template-columns: repeat(2, 1fr); }
  .dashboard-panels { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .auth-card { grid-template-columns: 1fr; }
  .auth-copy { border-right: 0; border-bottom: 1px solid rgba(230, 220, 201, 0.75); }
}

@media (max-width: 760px) {
  .topic-grid { grid-template-columns: repeat(2, 1fr); }
}

/* image hooks: category lesson card thumbnail */
.lesson-card__thumb {
  width: 60px;
  height: 60px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(230, 220, 201, 0.9);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow-soft);
  margin-bottom: 0.8rem;
}

.lesson-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* core 400 progress */
.core-progress {
  margin-top: 1.1rem;
  padding: 1rem 1.1rem;
  border-radius: 18px;
  background: rgba(74, 30, 72, 0.05);
  border: 1px solid rgba(74, 30, 72, 0.10);
}

.core-progress-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.core-label {
  color: var(--velvet-dark);
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.82rem;
}

.core-count {
  color: var(--velvet);
  font-weight: 950;
}

.core-track {
  margin-top: 0.75rem;
  height: 10px;
  border-radius: 999px;
  background: rgba(74, 30, 72, 0.10);
  overflow: hidden;
}

.core-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gold), var(--green-soft));
}

.core-note {
  margin-top: 0.7rem;
  font-size: 0.95rem;
}

/* category shine */
.category-shell { padding: 3rem 0 2.4rem; }

.category-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.category-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }

.category-meta {
  margin-top: 1.2rem;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1rem;
  align-items: center;
}

.category-progress {
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
  padding: 1rem 1.1rem;
}

.category-progress__label {
  display: inline-block;
  color: var(--muted);
  font-weight: 900;
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.category-progress__value {
  display: block;
  margin-top: 0.35rem;
  color: var(--velvet);
  font-weight: 950;
  font-size: 1.6rem;
}

.category-controls {
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
  padding: 1rem 1.1rem;

  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex-wrap: wrap;
  justify-content: space-between;
}

.category-search {
  flex: 1 1 320px;
  min-width: 240px;
}

.category-search input {
  width: 100%;
  min-height: 48px;
  padding: 0.75rem 0.95rem;
  border-radius: 14px;
  border: 1px solid rgba(230, 220, 201, 0.95);
  background: rgba(255, 255, 255, 0.92);
  outline: none;
}

.category-search input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(46, 125, 90, 0.12);
}

.category-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 850;
  color: var(--velvet-dark);
  cursor: pointer;
  user-select: none;
}

.category-toggle input { accent-color: var(--green); }

.category-count {
  color: var(--muted);
  font-weight: 850;
}

/* lesson grid */
.lesson-grid {
  margin-top: 1.2rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.lesson-card {
  display: block;
  padding: 1.1rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.lesson-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(45, 16, 44, 0.16);
}

.lesson-card.is-completed { opacity: 0.72; }

.lesson-card__emoji {
  width: 60px;
  height: 60px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  background: linear-gradient(135deg, rgba(201,166,70,0.18), rgba(46,125,90,0.16));
  border: 1px solid rgba(230, 220, 201, 0.9);
  box-shadow: var(--shadow-soft);
  margin-bottom: 0.8rem;
}

.lesson-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.badge {
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(46, 125, 90, 0.14);
  border: 1px solid rgba(46, 125, 90, 0.20);
  color: var(--velvet-dark);
  font-weight: 900;
  font-size: 0.85rem;
}

/* a11y helper */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 1020px) {
  .lesson-grid { grid-template-columns: repeat(2, 1fr); }
  .category-meta { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .lesson-grid { grid-template-columns: 1fr; }
}

/* review badge */
.mini-lesson-tag {
  margin-left: auto;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(201, 166, 70, 0.16);
  border: 1px solid rgba(201, 166, 70, 0.26);
  color: var(--velvet-dark);
  font-weight: 950;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* paywall + phrases ui */
.lock-badge {
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(74, 30, 72, 0.10);
  border: 1px solid rgba(74, 30, 72, 0.16);
  color: var(--velvet-dark);
  font-weight: 950;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.lesson-card.is-locked {
  opacity: 0.86;
}

.locked-note {
  margin-top: 0.6rem;
  color: rgba(26, 24, 24, 0.6);
  font-weight: 700;
}

.paywall-banner {
  margin-top: 1rem;
  padding: 1rem 1.1rem;
  border-radius: 18px;
  background: rgba(201, 166, 70, 0.10);
  border: 1px solid rgba(201, 166, 70, 0.20);
}

.paywall-banner.compact {
  margin-top: 0.75rem;
}

.paywall-banner strong {
  display: block;
  color: var(--velvet-dark);
  font-weight: 950;
}

.paywall-banner p {
  margin-top: 0.35rem;
  color: var(--muted);
}

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  max-width: 760px;
}

.pricing-card--main {
  padding: 1.6rem;
}

.pricing-label {
  display: inline-block;
  color: var(--green);
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.82rem;
}

.pricing-price {
  margin-top: 0.3rem;
  color: var(--velvet);
}

.pricing-sub {
  margin-top: 0.35rem;
  color: var(--muted);
}

.pricing-list {
  margin-top: 1rem;
  display: grid;
  gap: 0.65rem;
}

.pricing-list li {
  position: relative;
  padding-left: 1.1rem;
  color: var(--velvet-dark);
  font-weight: 650;
}

.pricing-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--gold);
}

/* ================================
   valora story redesign v1
   ================================ */

.landing-hero {
  padding: 4.2rem 0 2.2rem;
}

.landing-hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2rem;
  align-items: center;
}

.story-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(230, 220, 201, 0.9);
  backdrop-filter: blur(10px);
}

.story-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gold), var(--green-soft));
  box-shadow: 0 0 18px rgba(201, 166, 70, 0.45);
}

.story-kicker-text {
  font-weight: 850;
  color: var(--velvet-dark);
  letter-spacing: -0.01em;
}

.landing-title {
  margin-top: 1rem;
}

.landing-lede {
  margin-top: 1rem;
  max-width: 60ch;
  font-size: 1.08rem;
}

.landing-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.6rem;
}

.landing-trust {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-top: 1.4rem;
}

.trust-pill {
  padding: 0.7rem 0.9rem;
  border-radius: 18px;
  border: 1px solid rgba(230, 220, 201, 0.9);
  background: rgba(255, 255, 255, 0.68);
  box-shadow: var(--shadow-soft);
}

.trust-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 900;
  color: var(--green);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.2rem;
}

.landing-footnote {
  margin-top: 1rem;
  font-size: 0.92rem;
  opacity: 0.9;
}

.landing-visual {
  position: relative;
  min-height: 520px;
}

.scene-frame {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(230, 220, 201, 0.9);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.scene-frame-top {
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 1rem 1.1rem 0.7rem;
}

.scene-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: rgba(74, 30, 72, 0.08);
  color: var(--velvet-dark);
  font-weight: 850;
  font-size: 0.82rem;
}

.scene-chip--soft {
  background: rgba(46, 125, 90, 0.10);
  color: var(--green);
}

.scene-image {
  aspect-ratio: 16 / 9;
  width: 100%;
  background: rgba(0,0,0,0.02);
}

.scene-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.scene-bubbles {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding: 1rem 1.1rem 1.2rem;
}

.scene-bubble {
  padding: 0.6rem 0.9rem;
  border-radius: 999px;
  background: rgba(74, 30, 72, 0.08);
  color: var(--velvet-dark);
  font-weight: 800;
  font-size: 0.95rem;
}

.scene-bubble.is-on {
  background: linear-gradient(135deg, var(--gold), var(--gold-soft));
  color: #2f2100;
}

.visual-float {
  position: absolute;
  width: 220px;
  padding: 1rem 1.1rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(230, 220, 201, 0.9);
  background: rgba(255, 255, 255, 0.75);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(10px);
}

.visual-float--a { top: 1.2rem; right: -1rem; }
.visual-float--b { bottom: 1.2rem; left: -1rem; }

.float-label {
  display: inline-block;
  margin-bottom: 0.4rem;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.landing-section {
  padding: 2.8rem 0;
}

.landing-heading {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 2rem;
}

.chapter-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
}

.chapter-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(230, 220, 201, 0.9);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow-soft);
  padding: 1.2rem;
  min-height: 220px;
}

.chapter-card:hover {
  transform: translateY(-1px);
}

.chapter-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.chapter-emoji {
  font-size: 1.6rem;
}

.chapter-status {
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-weight: 900;
  font-size: 0.82rem;
}

.chapter-status.is-live {
  background: rgba(46, 125, 90, 0.12);
  color: var(--green);
}

.chapter-status.is-soon {
  background: rgba(74, 30, 72, 0.08);
  color: var(--velvet-dark);
  opacity: 0.9;
}

.chapter-title {
  margin-top: 0.9rem;
  font-weight: 950;
  font-size: 1.15rem;
  color: var(--velvet);
}

.chapter-desc {
  margin-top: 0.45rem;
  color: var(--muted);
  max-width: 48ch;
}

.chapter-thumb {
  position: absolute;
  right: -18px;
  bottom: -18px;
  width: 180px;
  aspect-ratio: 1 / 1;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(230, 220, 201, 0.9);
  background: rgba(0,0,0,0.02);
  transform: rotate(6deg);
}

.chapter-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

.value-card {
  border-radius: var(--radius-md);
  border: 1px solid rgba(230, 220, 201, 0.9);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow-soft);
  padding: 1.4rem;
}

.value-card h3 {
  color: var(--velvet);
  margin-bottom: 0.55rem;
}

.pricing-slab {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.2rem;
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(230, 220, 201, 0.9);
  background: rgba(255, 255, 255, 0.75);
  box-shadow: var(--shadow-soft);
}

.pricing-actions {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
}

/* dashboard */
.dash-shell { padding: 3.2rem 0; }

.dash-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.dash-title { margin-top: 0.8rem; }
.dash-sub { margin-top: 0.6rem; max-width: 70ch; }

.dash-metrics {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.metric {
  padding: 0.8rem 0.95rem;
  border-radius: 18px;
  border: 1px solid rgba(230, 220, 201, 0.9);
  background: rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow-soft);
  min-width: 120px;
}

.metric-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 900;
  color: var(--green);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.metric-value {
  font-size: 1.2rem;
  font-weight: 950;
  color: var(--velvet-dark);
}

.dash-nudge {
  margin-top: 1.2rem;
  padding: 0.95rem 1.1rem;
  border-radius: 18px;
  border: 1px solid rgba(201, 166, 70, 0.22);
  background: rgba(201, 166, 70, 0.10);
  color: var(--velvet-dark);
  font-weight: 800;
}

.dash-grid {
  margin-top: 1.2rem;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr 0.85fr;
  gap: 1.2rem;
}

.dash-card {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(230, 220, 201, 0.9);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow-soft);
  padding: 1.4rem;
}

.dash-card--chapter {
  background:
    radial-gradient(circle at top left, rgba(201, 166, 70, 0.14), transparent 36%),
    radial-gradient(circle at bottom right, rgba(46, 125, 90, 0.14), transparent 36%),
    rgba(255, 255, 255, 0.72);
}

.dash-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
}

.dash-card-title {
  margin-top: 0.3rem;
  color: var(--velvet);
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(230, 220, 201, 0.9);
  background: rgba(255, 255, 255, 0.7);
  font-weight: 900;
  font-size: 0.82rem;
  color: var(--velvet-dark);
}

.chip-live {
  border-color: rgba(46, 125, 90, 0.22);
  background: rgba(46, 125, 90, 0.10);
  color: var(--green);
}

.chip-lock {
  border-color: rgba(74, 30, 72, 0.18);
  background: rgba(74, 30, 72, 0.06);
  color: var(--velvet-dark);
}

.bar {
  margin-top: 0.95rem;
  height: 12px;
  border-radius: 999px;
  background: rgba(46, 125, 90, 0.10);
  overflow: hidden;
  border: 1px solid rgba(230, 220, 201, 0.9);
}

.bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--velvet), var(--green));
}

.bar-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.6rem;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.95rem;
}

.dash-actions {
  margin-top: 1.1rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.pro-slab {
  margin-top: 0.95rem;
  padding: 0.95rem 1rem;
  border-radius: 18px;
  border: 1px solid rgba(201, 166, 70, 0.22);
  background: rgba(201, 166, 70, 0.10);
}

.pro-slab strong {
  display: block;
  color: var(--velvet-dark);
  font-weight: 950;
}

.pro-slab p {
  margin-top: 0.3rem;
}

.dash-section {
  margin-top: 2rem;
}

.dash-section-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.2rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.dash-section-title {
  color: var(--velvet);
}

.dash-section-sub {
  margin-top: 0.3rem;
  max-width: 70ch;
}

@media (max-width: 980px) {
  .landing-hero-grid { grid-template-columns: 1fr; }
  .landing-visual { min-height: auto; }
  .visual-float { position: static; width: auto; margin-top: 1rem; transform: none; }
  .chapter-grid { grid-template-columns: 1fr; }
  .value-grid { grid-template-columns: 1fr; }
  .pricing-slab { flex-direction: column; align-items: flex-start; }
  .dash-grid { grid-template-columns: 1fr; }
}


/* ===== valora: plan badge + locked chapters ===== */
.plan-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 0.6rem;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid rgba(74, 30, 72, 0.14);
  background: rgba(255, 255, 255, 0.65);
  color: var(--velvet);
}

.plan-pill--pro {
  border-color: rgba(201, 166, 70, 0.35);
  background: rgba(201, 166, 70, 0.16);
  color: #2f2100;
}

.plan-pill--free {
  border-color: rgba(46, 125, 90, 0.22);
  background: rgba(46, 125, 90, 0.10);
  color: var(--green);
}

.preview-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.05rem 1.1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  margin-bottom: 1.2rem;
}

.preview-banner__copy {
  display: grid;
  gap: 0.2rem;
  color: var(--velvet-dark);
}

.preview-banner__copy span {
  color: var(--muted);
  font-weight: 600;
}

.chapter-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  margin-top: 1.2rem;
}

.chapter-card {
  display: grid;
  grid-template-rows: auto 1fr;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-soft);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.chapter-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.chapter-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, rgba(201, 166, 70, 0.10), rgba(46, 125, 90, 0.10));
  overflow: hidden;
}

.chapter-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.02);
}

.chapter-card__fallback {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  font-size: 3rem;
}

.chapter-card__body {
  padding: 1rem 1rem 1.1rem;
}

.chapter-card__kicker {
  font-size: 0.78rem;
  color: var(--green);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.chapter-card__title {
  margin-top: 0.25rem;
  font-weight: 850;
  font-size: 1.2rem;
  color: var(--velvet);
  letter-spacing: -0.02em;
}

.chapter-card__desc {
  margin-top: 0.5rem;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.98rem;
}

.chapter-card.is-locked {
  position: relative;
}

.chapter-card__lock {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 0.35rem;
  background: rgba(26, 24, 24, 0.42);
  backdrop-filter: blur(8px);
}

.chapter-card__lock-pill {
  justify-self: center;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.78rem;
  background: linear-gradient(135deg, var(--gold), var(--gold-soft));
  color: #2f2100;
}

.chapter-card__lock-text {
  justify-self: center;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.92);
  letter-spacing: -0.02em;
}

.chapter-card.is-soon {
  opacity: 0.75;
}

.chapter-card__soon {
  margin-top: 0.8rem;
  display: inline-flex;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(74, 30, 72, 0.12);
  background: rgba(255, 255, 255, 0.65);
  color: var(--velvet-dark);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.72rem;
}

.chapter-hub-feature__media {
  position: relative;
}

.chapter-lock {
  position: absolute;
  inset: auto 1rem 1rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.7rem 0.9rem;
  border-radius: 16px;
  background: rgba(26, 24, 24, 0.55);
  backdrop-filter: blur(10px);
}

.chapter-lock__badge {
  padding: 0.18rem 0.65rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gold), var(--gold-soft));
  color: #2f2100;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.72rem;
}

.chapter-lock__copy {
  color: rgba(255, 255, 255, 0.92);
  font-weight: 800;
}

.dash-upsell {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 18px;
  border: 1px solid rgba(201, 166, 70, 0.22);
  background: rgba(201, 166, 70, 0.10);
}

.dash-upsell__copy {
  display: grid;
  gap: 0.1rem;
  color: var(--velvet-dark);
}

.dash-upsell__copy span {
  color: var(--muted);
  font-weight: 650;
}

@media (max-width: 980px) {
  .chapter-grid {
    grid-template-columns: 1fr;
  }

  .preview-banner {
    flex-direction: column;
    align-items: flex-start;
  }
}


/* valora tiles: white frame + italic caption */
.tile-frame {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 0.6rem;
  box-shadow: var(--shadow-soft);
}

.tile-frame img {
  width: 100%;
  height: 132px;
  display: block;
  border-radius: 16px;
  object-fit: cover;
}

.tile-fallback {
  height: 132px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 3rem;
  background: linear-gradient(135deg, rgba(201, 166, 70, 0.16), rgba(46, 125, 90, 0.16));
}

.tile-caption {
  margin-top: 0.55rem;
  font-style: italic;
  color: var(--velvet-dark);
  font-weight: 650;
  letter-spacing: -0.01em;
}

.tile-meta {
  margin-top: 0.35rem;
  font-size: 0.92rem;
  color: var(--muted);
}

.tile-lock-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  background: rgba(74, 30, 72, 0.92);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tile-card {
  position: relative;
  display: block;
}

.tile-card.is-locked {
  opacity: 0.92;
}

.tile-card.is-locked .tile-frame {
  filter: grayscale(0.15);
}



/* phrases hub v1 */
.phrases-hero {
  padding: 2rem 0 1rem;
}

.phrases-hero-card {
  background: linear-gradient(180deg, rgba(255,253,249,0.98), rgba(247,242,232,0.98));
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 1.4rem;
  box-shadow: var(--shadow-soft);
}

.phrases-lede {
  max-width: 58ch;
  color: var(--muted);
}

.phrases-hero-actions {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.phrases-mini-points {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}

.phrases-mini-points span {
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.72);
  border-radius: 999px;
  padding: 0.45rem 0.75rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.phrases-section {
  padding: 1rem 0 2rem;
}

.phrase-pack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.phrase-pack-card {
  position: relative;
  display: block;
  text-decoration: none;
  color: inherit;
  background: rgba(255,255,255,0.94);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 1rem;
  box-shadow: var(--shadow-soft);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.phrase-pack-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
  border-color: rgba(74,30,72,0.22);
}

.phrase-pack-card.is-locked {
  background: rgba(255,252,248,0.94);
}

.phrase-pack-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

.phrase-pack-icon {
  font-size: 1.35rem;
}

.phrase-pack-badge {
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
  background: rgba(74, 30, 72, 0.92);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.phrase-pack-card h3 {
  margin-top: 0.85rem;
  margin-bottom: 0.35rem;
  color: var(--velvet-dark);
}

.phrase-pack-desc {
  color: var(--muted);
  min-height: 2.8em;
}

.phrase-pack-meta {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.8rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.phrase-pack-progress {
  height: 8px;
  background: rgba(0,0,0,0.06);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 0.8rem;
}

.phrase-pack-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--velvet), var(--gold));
}

.phrase-pack-cta {
  margin-top: 0.85rem;
  color: var(--velvet-dark);
}

@media (max-width: 700px) {
  .phrases-hero-card {
    padding: 1.1rem;
    border-radius: 22px;
  }
}


/* phrases hub v2 */
.phrase-pack-card {
  position: relative;
}

.phrase-pack-cta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
  margin-top: 0.95rem;
}

.phrase-pack-cta-text {
  color: var(--velvet-dark);
}

.btn-small {
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  font-size: 0.92rem;
  line-height: 1;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.phrase-pack-badge {
  white-space: nowrap;
}


/* category beautify v1 */
.category-shell {
  padding: 1rem 0 0.75rem;
}

.category-topbar {
  margin-bottom: 0.85rem;
}

.category-hero-card {
  background: linear-gradient(180deg, rgba(255,253,249,0.98), rgba(247,242,232,0.98));
  border: 1px solid var(--border);
  border-radius: 30px;
  padding: 1.2rem;
  box-shadow: var(--shadow-soft);
}

.category-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(240px, 0.8fr);
  gap: 1.2rem;
  align-items: center;
}

.category-kicker {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  font-weight: 800;
}

.category-title {
  margin-top: 0.35rem;
  margin-bottom: 0.45rem;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  color: var(--velvet-dark);
}

.category-description {
  margin: 0;
  max-width: 56ch;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.5;
}

.category-progress-row {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.96rem;
}

.category-progress-bar {
  height: 10px;
  background: rgba(0,0,0,0.07);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 0.55rem;
}

.category-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--velvet), var(--gold));
}

.category-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.category-hero-visual {
  display: flex;
  justify-content: center;
}

.category-cover-frame {
  width: 100%;
  max-width: 360px;
  background: rgba(255,255,255,0.92);
  border: 1px solid var(--border);
  border-radius: 26px;
  padding: 0.7rem;
  box-shadow: var(--shadow-soft);
}

.category-cover-frame img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  border-radius: 20px;
}

.category-cover-fallback {
  width: 100%;
  max-width: 320px;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,0.92);
  border: 1px solid var(--border);
  border-radius: 26px;
  box-shadow: var(--shadow-soft);
  font-size: 4rem;
}

.category-tiles-section {
  padding: 1rem 0 2rem;
}

.category-grid-refined {
  gap: 1rem;
}

.tile-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.tile-frame {
  background: rgba(255,255,255,0.94);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 0.65rem;
  box-shadow: var(--shadow-soft);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.tile-link:hover .tile-frame {
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
  border-color: rgba(74, 30, 72, 0.20);
}

.tile-media {
  position: relative;
}

.tile-media img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  border-radius: 18px;
}

.tile-fallback {
  height: 180px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: rgba(0,0,0,0.05);
  font-size: 2rem;
}

.tile-body {
  padding: 0.7rem 0.15rem 0.15rem;
}

.tile-title {
  margin: 0;
  font-weight: 800;
  color: var(--velvet-dark);
  letter-spacing: -0.01em;
  font-size: 1.02rem;
}

.tile-caption {
  margin-top: 0.35rem;
  font-style: italic;
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.35;
}

.tile-lock-badge,
.tile-done-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  color: #fff;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tile-lock-badge {
  background: rgba(74, 30, 72, 0.92);
}

.tile-done-badge {
  background: rgba(46, 125, 90, 0.92);
}

@media (max-width: 900px) {
  .category-hero-grid {
    grid-template-columns: 1fr;
  }

  .category-hero-visual {
    justify-content: flex-start;
  }

  .category-cover-frame,
  .category-cover-fallback {
    max-width: 280px;
  }
}


/* lesson completion overlay v1 */
.lesson-complete-overlay[hidden] {
  display: none !important;
}

.lesson-complete-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 18, 18, 0.42);
  display: grid;
  place-items: center;
  padding: 1rem;
  z-index: 9999;
}

.lesson-complete-card {
  width: min(100%, 380px);
  background: rgba(255,255,255,0.98);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 1.4rem;
  text-align: center;
  box-shadow: var(--shadow-medium);
}

.lesson-complete-check {
  width: 56px;
  height: 56px;
  margin: 0 auto 0.7rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(180deg, var(--green), var(--green_soft));
}

.lesson-complete-card h2 {
  margin: 0;
  color: var(--velvet-dark);
  text-transform: lowercase;
}

.lesson-complete-card p {
  margin: 0.6rem 0 1rem;
  color: var(--muted);
  line-height: 1.45;
}

.lesson-complete-card .btn {
  min-width: 140px;
}


/* lesson confidence nudge v1 */
.lesson-confidence-nudge[hidden] {
  display: none !important;
}

.lesson-confidence-nudge {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 9998;
  background: rgba(74, 30, 72, 0.96);
  color: #fff;
  border-radius: 999px;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  line-height: 1;
  box-shadow: var(--shadow-medium);
  text-align: center;
}

.lesson-confidence-nudge.is-bump {
  animation: lessonConfidenceBump 0.28s ease;
}

@keyframes lessonConfidenceBump {
  0% { transform: translateX(-50%) translateY(8px); opacity: 0; }
  100% { transform: translateX(-50%) translateY(0); opacity: 1; }
}


/* coach guided tap v1 */
.word-bubble {
  transition: transform 0.14s ease, box-shadow 0.14s ease, background-color 0.14s ease, color 0.14s ease, border-color 0.14s ease;
  will-change: transform;
}

.word-bubble.is-active {
  transform: translateY(-1px);
}

.word-bubble.is-coach-target {
  border-color: rgba(74, 30, 72, 0.34);
  box-shadow: 0 0 0 4px rgba(74, 30, 72, 0.10);
  animation: valoraCoachPulse 1.15s ease-in-out infinite;
}

.word-bubble.is-speaking {
  transform: scale(1.035);
  box-shadow: 0 8px 20px rgba(0,0,0,0.10);
}

@keyframes valoraCoachPulse {
  0%   { box-shadow: 0 0 0 0 rgba(74, 30, 72, 0.18); }
  70%  { box-shadow: 0 0 0 8px rgba(74, 30, 72, 0.00); }
  100% { box-shadow: 0 0 0 0 rgba(74, 30, 72, 0.00); }
}

.coach-note {
  display: inline-block;
  margin-top: 0.4rem;
}

.coach-speed-btn.is-active {
  background: linear-gradient(135deg, var(--gold), var(--gold-soft));
  color: #2f2100;
  border-radius: 999px;
  padding: 0.35rem 0.65rem;
}


/* audio shine fix v1 */
.word-bubble {
  transition: transform 0.14s ease, box-shadow 0.14s ease, background-color 0.14s ease, color 0.14s ease, border-color 0.14s ease;
}

.word-bubble.is-active {
  transform: translateY(-1px);
}

.word-bubble.is-coach-target {
  border-color: rgba(74, 30, 72, 0.34);
  box-shadow: 0 0 0 4px rgba(74, 30, 72, 0.10);
  animation: valoraCoachPulse 1.1s ease-in-out infinite;
}

.word-bubble.is-speaking {
  transform: scale(1.035);
  box-shadow: 0 8px 20px rgba(0,0,0,0.10);
}

@keyframes valoraCoachPulse {
  0%   { box-shadow: 0 0 0 0 rgba(74, 30, 72, 0.18); }
  70%  { box-shadow: 0 0 0 8px rgba(74, 30, 72, 0.00); }
  100% { box-shadow: 0 0 0 0 rgba(74, 30, 72, 0.00); }
}

.coach-speed-btn.is-active {
  background: linear-gradient(135deg, var(--gold), var(--gold-soft));
  color: #2f2100;
  border-radius: 999px;
  padding: 0.35rem 0.65rem;
}


/* coach layout shift fix v1 */
.coach-controls,
.coach-bar,
.lesson-coach,
.drill-coach {
  align-items: flex-start;
}

.coach-toggle {
  min-width: 120px;
  text-align: center;
  white-space: nowrap;
  flex: 0 0 120px;
}

.coach-note {
  min-height: 2.6em;
  display: block;
  line-height: 1.3;
}

.coach-speed-group,
.coach-speeds {
  display: inline-flex;
  flex-wrap: nowrap;
  gap: 0.4rem;
}

@media (max-width: 640px) {
  .coach-toggle {
    min-width: 110px;
    flex-basis: 110px;
  }

  .coach-note {
    min-height: 3.2em;
  }
}


/* coach row position fix v2 */
.word-bubbles-header,
.bubble-tools,
.lesson-bubbles-head,
.drill-bubbles-head,
.word-bubbles-tools {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.65rem;
}

.word-bubbles-header h2,
.lesson-bubbles-head h2,
.drill-bubbles-head h2 {
  margin: 0;
}

.coach-controls,
.coach-bar,
.lesson-coach,
.drill-coach {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
}

.coach-toggle {
  min-width: 120px;
  white-space: nowrap;
  text-align: center;
}

.coach-note {
  display: block;
  width: 100%;
  min-height: 1.4em;
  margin-top: 0.1rem;
}

.coach-speed-group,
.coach-speeds {
  display: inline-flex;
  gap: 0.4rem;
  flex-wrap: nowrap;
}

@media (max-width: 640px) {
  .coach-controls,
  .coach-bar,
  .lesson-coach,
  .drill-coach {
    align-items: flex-start;
  }

  .coach-note {
    width: 100%;
  }
}


/* center coach controls v1 */
.coach-controls,
.coach-bar,
.lesson-coach,
.drill-coach {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  text-align: center;
}

.coach-speed-group,
.coach-speeds {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: nowrap;
}

.coach-note {
  width: 100%;
  text-align: center;
  margin-top: 0.15rem;
}

.coach-toggle {
  min-width: 120px;
  text-align: center;
}

.coach-speed-btn {
  min-width: 64px;
  text-align: center;
}


/* audio debug fix v1 */
.coach-debug {
  width: 100%;
  margin-top: 0.35rem;
  font-size: 0.82rem;
  color: #7a6c5d;
  text-align: center;
  word-break: break-word;
}


/* coach only rewrite v1 */
.word-bubble {
  transition: transform 0.14s ease, box-shadow 0.14s ease, background-color 0.14s ease, color 0.14s ease, border-color 0.14s ease;
}

.word-bubble.is-active {
  transform: translateY(-1px);
}

.word-bubble.is-coach-target {
  border-color: rgba(74, 30, 72, 0.34);
  box-shadow: 0 0 0 4px rgba(74, 30, 72, 0.10);
  animation: valoraCoachPulse 1.1s ease-in-out infinite;
}

.word-bubble.is-speaking {
  transform: scale(1.035);
  box-shadow: 0 8px 20px rgba(0,0,0,0.10);
}

@keyframes valoraCoachPulse {
  0%   { box-shadow: 0 0 0 0 rgba(74, 30, 72, 0.18); }
  70%  { box-shadow: 0 0 0 8px rgba(74, 30, 72, 0.00); }
  100% { box-shadow: 0 0 0 0 rgba(74, 30, 72, 0.00); }
}


/* rewarding bubbles v1 */
.bubble-reward-ui {
  width: 100%;
  max-width: 720px;
  margin: 0 auto 1rem;
  text-align: center;
}

.bubble-progress-wrap {
  margin-bottom: 0.7rem;
}

.bubble-progress-meta {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 0.35rem;
  font-size: 0.92rem;
  color: var(--muted);
}

.bubble-progress-label {
  text-transform: lowercase;
}

.bubble-progress-bar {
  height: 10px;
  background: rgba(0,0,0,0.07);
  border-radius: 999px;
  overflow: hidden;
}

.bubble-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--velvet), var(--gold));
  transition: width 0.22s ease;
}

.bubble-reward-note {
  min-height: 1.6em;
  color: var(--velvet-dark);
  font-weight: 700;
  margin-bottom: 0.7rem;
}

.bubble-reward-actions {
  margin-bottom: 0.5rem;
}

.word-bubble {
  transition: transform 0.14s ease, box-shadow 0.14s ease, background-color 0.14s ease, color 0.14s ease, border-color 0.14s ease, opacity 0.14s ease;
}

.word-bubble.is-active {
  transform: translateY(-1px);
  border-color: rgba(74, 30, 72, 0.34);
  box-shadow: 0 0 0 4px rgba(74, 30, 72, 0.10);
  animation: valoraBubblePulse 1.1s ease-in-out infinite;
}

.word-bubble.is-speaking {
  transform: scale(1.035);
  box-shadow: 0 8px 20px rgba(0,0,0,0.10);
}

.word-bubble.is-done {
  background: rgba(74, 30, 72, 0.08);
  border-color: rgba(74, 30, 72, 0.18);
  opacity: 0.92;
}

.word-bubble.is-done::after {
  content: "✓";
  margin-left: 0.45rem;
  font-weight: 800;
}

.word-bubble.is-celebrate {
  animation: valoraBubbleCelebrate 0.42s ease;
}

@keyframes valoraBubblePulse {
  0%   { box-shadow: 0 0 0 0 rgba(74, 30, 72, 0.18); }
  70%  { box-shadow: 0 0 0 8px rgba(74, 30, 72, 0.00); }
  100% { box-shadow: 0 0 0 0 rgba(74, 30, 72, 0.00); }
}

@keyframes valoraBubbleCelebrate {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.06); }
  100% { transform: scale(1); }
}


/* rewarding bubbles hero polish v1 */
.bubble-hero {
  width: 100%;
  max-width: 720px;
  margin: 0 auto 1rem;
}

.bubble-hero-card {
  background: linear-gradient(180deg, rgba(255,253,249,0.98), rgba(247,242,232,0.98));
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 1rem 1rem 0.95rem;
  box-shadow: var(--shadow-soft);
  text-align: center;
}

.bubble-hero-kicker {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  font-weight: 800;
}

.bubble-hero-title {
  margin: 0.35rem 0 0.35rem;
  color: var(--velvet-dark);
  font-size: clamp(1.35rem, 2.5vw, 1.9rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.bubble-hero-text {
  margin: 0;
  color: var(--muted);
  max-width: 52ch;
  margin-left: auto;
  margin-right: auto;
}

.bubble-reward-ui {
  width: 100%;
  max-width: 720px;
  margin: 0 auto 1rem;
  text-align: center;
}

.bubble-progress-wrap {
  margin-bottom: 0.7rem;
}

.bubble-progress-meta {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 0.35rem;
  font-size: 0.92rem;
  color: var(--muted);
}

.bubble-progress-label {
  text-transform: lowercase;
}

.bubble-progress-bar {
  height: 10px;
  background: rgba(0,0,0,0.07);
  border-radius: 999px;
  overflow: hidden;
}

.bubble-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--velvet), var(--gold));
  transition: width 0.22s ease;
}

.bubble-reward-note {
  min-height: 1.6em;
  color: var(--velvet-dark);
  font-weight: 700;
  margin-bottom: 0.7rem;
}

.bubble-reward-actions {
  margin-bottom: 0.5rem;
}

.word-bubble {
  transition: transform 0.14s ease, box-shadow 0.14s ease, background-color 0.14s ease, color 0.14s ease, border-color 0.14s ease, opacity 0.14s ease;
}

.word-bubble.is-active {
  transform: translateY(-1px);
  border-color: rgba(184, 145, 66, 0.55);
  background: rgba(255, 248, 231, 0.96);
  box-shadow: 0 6px 18px rgba(184, 145, 66, 0.14);
}

.word-bubble.is-speaking {
  transform: scale(1.02);
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.word-bubble.is-done {
  background: rgba(74, 30, 72, 0.06);
  border-color: rgba(74, 30, 72, 0.14);
  opacity: 0.94;
}

.word-bubble.is-done::after {
  content: "✓";
  margin-left: 0.45rem;
  font-weight: 800;
  color: var(--velvet-dark);
}

.word-bubble.is-celebrate {
  transform: scale(1.03);
}

@media (max-width: 640px) {
  .bubble-hero-card {
    padding: 0.9rem 0.9rem 0.85rem;
  }
}
