:root,
[data-theme="light"] {
  --bg: #fffaf4;
  --surface: #ffffff;
  --surface-elevated: #ffffff;
  --surface-soft: #fff2e8;
  --header-bg: rgba(255, 250, 244, 0.84);
  --loader-bg: radial-gradient(circle at center, #fffdf9 0%, #ffe6dd 100%);
  --loader-card-bg: rgba(255, 255, 255, 0.88);
  --loader-shell-fill: #ffe8e6;
  --border: #eedccf;
  --ink: #1b1512;
  --ink-muted: #695a50;
  --tomato: #e63946;
  --tomato-bright: #ff5460;
  --tomato-dark: #c12734;
  --tomato-deep: #961924;
  --tomato-glow: rgba(230, 57, 70, 0.25);
  --vine: #2d6a4f;
  --vine-light: #52b788;
  --vine-soft: #e6f5ec;
  --shadow-card: 0 14px 34px -14px rgba(88, 34, 18, 0.12);
  --shadow-hover: 0 24px 48px -16px rgba(230, 57, 70, 0.24);
  --grid-dot: rgba(155, 110, 90, 0.12);
}

[data-theme="dark"] {
  --bg: #110c0b;
  --surface: #1b1413;
  --surface-elevated: #231917;
  --surface-soft: #281c19;
  --header-bg: rgba(17, 12, 11, 0.84);
  --loader-bg: radial-gradient(circle at center, #1e1413 0%, #0d0807 100%);
  --loader-card-bg: rgba(31, 22, 20, 0.92);
  --loader-shell-fill: #351b1a;
  --border: #332421;
  --ink: #fbf4ee;
  --ink-muted: #b8a398;
  --tomato: #ff4757;
  --tomato-bright: #ff6b78;
  --tomato-dark: #d92b3a;
  --tomato-deep: #8f1621;
  --tomato-glow: rgba(255, 71, 87, 0.34);
  --vine: #388e65;
  --vine-light: #63d49c;
  --vine-soft: rgba(82, 183, 136, 0.14);
  --shadow-card: 0 16px 38px -14px rgba(0, 0, 0, 0.55);
  --shadow-hover: 0 24px 54px -14px rgba(255, 71, 87, 0.26);
  --grid-dot: rgba(255, 220, 200, 0.06);
}

:root {
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 12px;

  /* Custom Tomato Cursors */
  --cursor-tomato: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 32 32'%3E%3Cpath d='M16 7c0-3 1.5-5 3.5-6' stroke='%232D6A4F' stroke-width='2.4' stroke-linecap='round' fill='none'/%3E%3Cpath d='M16 8c-3-2-6.5-1.5-7.5.5 2.8.6 5 1 7.5-.5zm0 0c3-2 6.5-1.5 7.5.5-2.8.6-5 1-7.5-.5z' fill='%2340916C'/%3E%3Ccircle cx='16' cy='18.5' r='10.5' fill='%23E63946' stroke='%239B1B26' stroke-width='1.2'/%3E%3Cellipse cx='12' cy='14' rx='2.6' ry='1.4' transform='rotate(-30 12 14)' fill='%23FF8FA3' opacity='0.8'/%3E%3C/svg%3E") 14 14, auto;
  --cursor-tomato-pointer: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 32 32'%3E%3Cg transform='rotate(-12 16 16)'%3E%3Cpath d='M16 6c0-3 1.5-5 3.5-6' stroke='%232D6A4F' stroke-width='2.6' stroke-linecap='round' fill='none'/%3E%3Cpath d='M16 7.5c-3.5-2.2-7-1.5-8 .8 3 .6 5.5 1 8-.8zm0 0c3.5-2.2 7-1.5 8 .8-3 .6-5.5 1-8-.8z' fill='%2352B788'/%3E%3Ccircle cx='16' cy='18.5' r='11' fill='%23FF4252' stroke='%239B1B26' stroke-width='1.3'/%3E%3Cellipse cx='11.8' cy='13.8' rx='3' ry='1.6' transform='rotate(-30 11.8 13.8)' fill='%23FFFFFF' opacity='0.75'/%3E%3C/g%3E%3C/svg%3E") 14 14, pointer;
}

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

html {
  scroll-behavior: smooth;
  cursor: var(--cursor-tomato);
}

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 12% 8%, rgba(230, 57, 70, 0.08) 0%, transparent 42%),
    radial-gradient(circle at 88% 20%, rgba(82, 183, 136, 0.09) 0%, transparent 38%);
  color: var(--ink);
  line-height: 1.6;
  cursor: var(--cursor-tomato);
  overflow-x: hidden;
  transition: background-color 0.25s ease, color 0.25s ease;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a,
button,
[role="button"],
select,
.course-card,
.filter-pill,
.lesson-item {
  cursor: var(--cursor-tomato-pointer);
}

input,
textarea {
  cursor: text;
}

.container {
  width: min(1160px, 92%);
  margin: 0 auto;
}

.hidden {
  display: none !important;
}

/* =========================================================
   TOMATO PRELOADER
   ========================================================= */
.tomato-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background: var(--loader-bg);
  transition: opacity 0.45s ease, visibility 0.45s ease;
}

.tomato-loader.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2.3rem 2.8rem;
  border-radius: 32px;
  background: var(--loader-card-bg);
  border: 1px solid rgba(230, 57, 70, 0.22);
  box-shadow: 0 28px 65px rgba(230, 57, 70, 0.16);
  backdrop-filter: blur(14px);
}

.loader-tomato-shell {
  fill: var(--loader-shell-fill);
}

.loader-tomato-wrap {
  animation: tomatoBounce 1.15s ease-in-out infinite;
  transform-origin: center bottom;
}

.loader-stem {
  transform-origin: 60px 28px;
  animation: stemWiggle 1.15s ease-in-out infinite;
}

.loader-wave-group {
  animation: waveRise 1.6s ease-in-out infinite alternate;
}

.loader-bubble {
  animation: bubbleUp 1.4s ease-in infinite;
}
.loader-bubble.b2 { animation-delay: 0.45s; }
.loader-bubble.b3 { animation-delay: 0.9s; }

@keyframes bubbleUp {
  0% { transform: translateY(0) scale(0.8); opacity: 0; }
  30% { opacity: 0.75; }
  100% { transform: translateY(-48px) scale(1.15); opacity: 0; }
}

@keyframes tomatoBounce {
  0%, 100% { transform: translateY(0) scale(1, 1); }
  45% { transform: translateY(-12px) scale(0.97, 1.04); }
  75% { transform: translateY(2px) scale(1.05, 0.94); }
}

@keyframes stemWiggle {
  0%, 100% { transform: rotate(-4deg); }
  50% { transform: rotate(6deg); }
}

@keyframes waveRise {
  0% { transform: translateY(22px) translateX(-8px); }
  100% { transform: translateY(-28px) translateX(8px); }
}

.loader-brand {
  margin-top: 0.75rem;
  font-family: "Fraunces", serif;
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.loader-brand span {
  color: var(--vine-light);
}

.loader-text {
  margin: 0.3rem 0 1rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink-muted);
}

.loader-bar-track {
  width: 196px;
  height: 8px;
  border-radius: 999px;
  background: rgba(230, 57, 70, 0.18);
  overflow: hidden;
}

.loader-bar-fill {
  height: 100%;
  width: 45%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--tomato), #ff6b6b, var(--vine-light));
  animation: loaderSweep 1.1s ease-in-out infinite;
}

@keyframes loaderSweep {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(250%); }
}

/* =========================================================
   ADMIN TOOLBAR
   ========================================================= */
.admin-toolbar {
  background: linear-gradient(90deg, #241312 0%, #19261f 100%);
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.55rem 0;
}

.admin-toolbar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.admin-status {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.86rem;
}

.admin-status span {
  color: rgba(255, 255, 255, 0.72);
}

.admin-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ff4757;
  box-shadow: 0 0 0 4px rgba(255, 71, 87, 0.28);
}

.admin-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

/* =========================================================
   TOP BANNER & HEADER
   ========================================================= */
.vine-banner {
  background: var(--vine);
  color: #f4fcf7;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  text-align: center;
}

.vine-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #80ed99;
  box-shadow: 0 0 0 4px rgba(128, 237, 153, 0.24);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 76px;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--ink);
}

.logo-mark {
  display: grid;
  place-items: center;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.brand-logo:hover .logo-mark {
  transform: rotate(-10deg) scale(1.1);
}

.logo-text {
  font-family: "Fraunces", serif;
  font-weight: 800;
  font-size: 1.48rem;
  letter-spacing: -0.03em;
}

.logo-tld {
  color: var(--vine-light);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-link {
  text-decoration: none;
  color: var(--ink-muted);
  font-weight: 600;
  font-size: 0.94rem;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--tomato);
}

.nav-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  transition: transform 0.18s ease, border-color 0.2s ease, background 0.2s ease;
}

.nav-pill-btn:hover {
  border-color: var(--tomato);
  background: var(--surface-soft);
  transform: translateY(-1px);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.icon-toggle-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  display: grid;
  place-items: center;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.icon-toggle-btn:hover {
  border-color: var(--tomato);
  background: var(--surface-soft);
  transform: rotate(12deg) scale(1.05);
}

[data-theme="light"] .icon-sun { display: none; }
[data-theme="light"] .icon-moon { display: block; }
[data-theme="dark"] .icon-sun { display: block; color: #ffd166; }
[data-theme="dark"] .icon-moon { display: none; }

/* =========================================================
   NICE TOMATO BUTTONS
   ========================================================= */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-family: inherit;
  font-weight: 700;
  text-decoration: none;
  border: none;
  border-radius: 999px;
  transition: transform 0.16s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.16s ease, filter 0.18s ease;
  user-select: none;
}

.btn-xs {
  padding: 0.36rem 0.78rem;
  font-size: 0.78rem;
}

.btn-sm {
  padding: 0.58rem 1.15rem;
  font-size: 0.88rem;
}

.btn-lg {
  padding: 0.94rem 1.7rem;
  font-size: 1rem;
}

.btn-tomato {
  color: #ffffff;
  overflow: hidden;
  background: linear-gradient(180deg, var(--tomato-bright) 0%, var(--tomato) 55%, var(--tomato-dark) 100%);
  box-shadow:
    inset 0 2px 1px rgba(255, 255, 255, 0.38),
    0 5px 0 var(--tomato-deep),
    0 12px 24px -6px var(--tomato-glow);
}

.btn-tomato::after {
  content: "";
  position: absolute;
  top: -40%;
  left: -60%;
  width: 45%;
  height: 180%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.32), transparent);
  transform: rotate(22deg);
  transition: left 0.45s ease;
  pointer-events: none;
}

.btn-tomato:hover::after {
  left: 125%;
}

.btn-tomato:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
  box-shadow:
    inset 0 2px 1px rgba(255, 255, 255, 0.45),
    0 7px 0 var(--tomato-deep),
    0 16px 30px -6px var(--tomato-glow);
}

.btn-tomato:active {
  transform: translateY(3px);
  box-shadow:
    inset 0 2px 1px rgba(255, 255, 255, 0.25),
    0 2px 0 var(--tomato-deep),
    0 6px 12px -4px var(--tomato-glow);
}

.btn-vine {
  color: #ffffff;
  background: linear-gradient(180deg, #40916c 0%, var(--vine) 100%);
  box-shadow:
    inset 0 2px 1px rgba(255, 255, 255, 0.3),
    0 5px 0 #1b4332,
    0 12px 22px -6px rgba(45, 106, 79, 0.3);
}

.btn-vine:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
}

.btn-vine:active {
  transform: translateY(3px);
  box-shadow: 0 2px 0 #1b4332;
}

.btn-ghost {
  padding: 0.62rem 1.15rem;
  background: var(--surface-soft);
  color: var(--ink);
  border: 1.5px solid var(--border);
}

.btn-ghost:hover {
  border-color: var(--tomato);
}

/* =========================================================
   HERO SECTION
   ========================================================= */
.hero {
  position: relative;
  padding: 4.5rem 0 4.2rem;
  overflow: hidden;
}

.hero-grid-pattern {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(var(--grid-dot) 1.5px, transparent 1.5px);
  background-size: 26px 26px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.65), transparent);
  z-index: -2;
}

.hero-bg-blobs .blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.42;
  pointer-events: none;
  z-index: -1;
}

.blob-1 {
  width: 360px;
  height: 360px;
  background: rgba(230, 57, 70, 0.38);
  top: -90px;
  left: -90px;
}

.blob-2 {
  width: 320px;
  height: 320px;
  background: rgba(82, 183, 136, 0.35);
  bottom: -60px;
  right: -60px;
}

.float-tomato {
  position: absolute;
  pointer-events: none;
  opacity: 0.22;
  filter: drop-shadow(0 8px 16px rgba(230, 57, 70, 0.2));
  animation: floatDrift 8s ease-in-out infinite;
}

[data-theme="dark"] .float-tomato {
  opacity: 0.28;
}

.ft-1 { top: 14%; left: 46%; animation-duration: 7.5s; }
.ft-2 { bottom: 16%; left: 8%; animation-duration: 9s; animation-delay: 1.2s; }
.ft-3 { top: 22%; right: 4%; animation-duration: 8.5s; animation-delay: 2.4s; }

@keyframes floatDrift {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-16px) rotate(12deg); }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  align-items: center;
  gap: 3.2rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.42rem 0.98rem;
  border-radius: 999px;
  background: var(--vine-soft);
  color: var(--vine-light);
  font-weight: 700;
  font-size: 0.84rem;
  border: 1px solid rgba(82, 183, 136, 0.25);
}

[data-theme="light"] .hero-badge {
  color: var(--vine);
}

.hero-title {
  margin: 1.1rem 0 1rem;
  font-family: "Fraunces", serif;
  font-size: clamp(2.5rem, 4.7vw, 3.75rem);
  line-height: 1.07;
  letter-spacing: -0.03em;
  font-weight: 800;
}

.highlight-tomato {
  color: var(--tomato);
  position: relative;
  display: inline-block;
}

.highlight-tomato::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  height: 11px;
  background: rgba(230, 57, 70, 0.2);
  border-radius: 999px;
  z-index: -1;
}

.hero-subtitle {
  margin: 0 0 1.9rem;
  font-size: 1.08rem;
  color: var(--ink-muted);
  max-width: 54ch;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.2rem;
}

.hero-stats {
  display: inline-flex;
  align-items: center;
  gap: 1.4rem;
  padding: 0.95rem 1.45rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}

.stat-item strong {
  display: block;
  font-family: "Fraunces", serif;
  font-size: 1.38rem;
  color: var(--tomato);
  line-height: 1.1;
}

.stat-item span {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-muted);
}

.stat-divider {
  width: 1px;
  height: 30px;
  background: var(--border);
}

/* Showcase Card */
.hero-visual {
  position: relative;
}

.showcase-card {
  background: var(--surface-elevated);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.2rem;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    var(--shadow-card);
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.28s ease;
}

.showcase-card:hover {
  transform: translateY(-6px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    var(--shadow-hover);
}

.live-pulse {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--tomato);
  margin-right: 0.35rem;
  box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.25);
  animation: pulseRing 1.8s ease-in-out infinite;
}

@keyframes pulseRing {
  0%, 100% { box-shadow: 0 0 0 2px rgba(230, 57, 70, 0.28); }
  50% { box-shadow: 0 0 0 6px rgba(230, 57, 70, 0.08); }
}

.showcase-mesh {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}

.floating-chip {
  position: absolute;
  padding: 0.42rem 0.9rem;
  border-radius: 999px;
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--ink);
  pointer-events: none;
  animation: floatChip 4s ease-in-out infinite;
}

.chip-top {
  top: -12px;
  right: 18px;
}

.chip-bottom {
  bottom: -12px;
  left: 18px;
  color: var(--vine-light);
  animation-delay: 1.5s;
}

[data-theme="light"] .chip-bottom {
  color: var(--vine);
}

@keyframes floatChip {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.showcase-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.9rem;
  font-size: 0.8rem;
  font-weight: 700;
}

.showcase-pill {
  background: rgba(230, 57, 70, 0.12);
  color: var(--tomato);
  padding: 0.28rem 0.74rem;
  border-radius: 999px;
}

.showcase-host {
  color: var(--vine-light);
  background: var(--vine-soft);
  padding: 0.28rem 0.74rem;
  border-radius: 999px;
}

[data-theme="light"] .showcase-host {
  color: var(--vine);
}

.showcase-screen {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #241413 0%, #3f1a18 55%, #162e23 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.showcase-glow {
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 71, 87, 0.35), transparent 70%);
  pointer-events: none;
}

.showcase-tomato-art {
  opacity: 0.94;
  transition: transform 0.3s ease;
}

.showcase-screen:hover .showcase-tomato-art {
  transform: scale(1.08) rotate(-5deg);
}

.play-orb {
  position: absolute;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(230, 57, 70, 0.96);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 10px rgba(230, 57, 70, 0.26);
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.play-orb::before {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 2px solid rgba(255, 107, 120, 0.55);
  animation: orbRipple 2.2s ease-out infinite;
}

@keyframes orbRipple {
  0% { transform: scale(0.95); opacity: 0.85; }
  100% { transform: scale(1.45); opacity: 0; }
}

.showcase-screen:hover .play-orb {
  transform: scale(1.12);
}

.showcase-caption {
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.82rem;
  font-weight: 600;
  margin-top: 0.2rem;
  z-index: 1;
}

.showcase-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1rem;
  gap: 0.8rem;
}

.showcase-title {
  font-weight: 800;
  font-size: 1.04rem;
}

.showcase-meta {
  font-size: 0.82rem;
  color: var(--ink-muted);
}

.free-tag {
  background: var(--vine);
  color: #fff;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 0.34rem 0.78rem;
  border-radius: 999px;
}

/* =========================================================
   COURSES SECTION
   ========================================================= */
.courses-section {
  padding: 2.5rem 0 4.5rem;
}

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

.section-header-center {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 2.4rem;
}

.section-lead {
  margin: 0.6rem 0 0;
  color: var(--ink-muted);
}

.section-eyebrow {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--tomato);
  margin-bottom: 0.25rem;
}

.section-title {
  margin: 0;
  font-family: "Fraunces", serif;
  font-size: clamp(1.85rem, 3.1vw, 2.4rem);
  letter-spacing: -0.02em;
}

.catalog-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem;
}

.level-select {
  padding: 0.72rem 1rem;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
}

.continue-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1.35rem;
  margin-bottom: 1.8rem;
  background: var(--surface);
  border: 1.5px solid rgba(230, 57, 70, 0.3);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}

.continue-info {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem;
}

.continue-info strong {
  display: block;
  font-size: 0.98rem;
}

.continue-info span#continue-lesson-title {
  font-size: 0.84rem;
  color: var(--ink-muted);
}

.continue-pill {
  background: rgba(230, 57, 70, 0.12);
  color: var(--tomato);
  font-size: 0.78rem;
  font-weight: 800;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
}

.search-wrap {
  position: relative;
  width: min(320px, 100%);
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-muted);
  pointer-events: none;
}

.search-input {
  width: 100%;
  padding: 0.74rem 1rem 0.74rem 2.6rem;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  font-family: inherit;
  font-size: 0.92rem;
  color: var(--ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-input:focus {
  outline: none;
  border-color: var(--tomato);
  box-shadow: 0 0 0 4px rgba(230, 57, 70, 0.14);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 2rem;
}

.filter-pill {
  padding: 0.52rem 1.08rem;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--ink-muted);
  font-family: inherit;
  font-weight: 700;
  font-size: 0.88rem;
  transition: all 0.18s ease;
}

.filter-pill:hover {
  border-color: var(--tomato);
  color: var(--tomato);
  transform: translateY(-1px);
}

.filter-pill.active {
  background: var(--tomato);
  border-color: var(--tomato);
  color: #fff;
  box-shadow: 0 6px 18px -4px var(--tomato-glow);
}

.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 1.55rem;
}

.course-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    var(--shadow-card);
  transition: transform 0.24s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.24s ease, border-color 0.2s ease;
  animation: cardFadeUp 0.35s ease both;
}

@keyframes cardFadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.course-card:hover {
  transform: translateY(-6px);
  border-color: rgba(230, 57, 70, 0.42);
  box-shadow: var(--shadow-hover);
}

.course-thumb {
  position: relative;
  height: 172px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.course-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.22), transparent 55%);
  pointer-events: none;
}

.course-thumb-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 2;
}

.thumb-badge {
  background: rgba(20, 15, 13, 0.62);
  color: #fff;
  backdrop-filter: blur(6px);
  font-size: 0.74rem;
  font-weight: 800;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
}

.thumb-free {
  background: var(--vine);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
}

.thumb-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.bookmark-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: none;
  background: rgba(20, 15, 13, 0.58);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 0.9rem;
  backdrop-filter: blur(6px);
  transition: transform 0.18s ease, background 0.18s ease;
}

.bookmark-btn:hover {
  transform: scale(1.12);
  background: rgba(20, 15, 13, 0.8);
}

.bookmark-btn.saved {
  background: var(--tomato);
}

.course-progress-wrap {
  margin-bottom: 0.9rem;
}

.course-progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--vine-light);
  margin-bottom: 0.28rem;
}

[data-theme="light"] .course-progress-label {
  color: var(--vine);
}

.course-progress-track {
  height: 6px;
  border-radius: 999px;
  background: var(--surface-soft);
  overflow: hidden;
}

.course-progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--vine-light), var(--tomato));
  transition: width 0.3s ease;
}

.thumb-center-icon {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 3.4rem;
  opacity: 0.92;
  transition: transform 0.25s ease;
}

.course-card:hover .thumb-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.bookmark-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: none;
  background: rgba(20, 15, 13, 0.58);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 0.9rem;
  backdrop-filter: blur(6px);
  transition: transform 0.18s ease, background 0.18s ease;
}

.bookmark-btn:hover {
  transform: scale(1.12);
  background: rgba(20, 15, 13, 0.8);
}

.bookmark-btn.saved {
  background: var(--tomato);
}

.course-progress-wrap {
  margin-bottom: 0.9rem;
}

.course-progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--vine-light);
  margin-bottom: 0.28rem;
}

[data-theme="light"] .course-progress-label {
  color: var(--vine);
}

.course-progress-track {
  height: 6px;
  border-radius: 999px;
  background: var(--surface-soft);
  overflow: hidden;
}

.course-progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--vine-light), var(--tomato));
  transition: width 0.3s ease;
}

.thumb-center-icon {
  transform: scale(1.12);
}

.thumb-play-hint {
  z-index: 2;
  align-self: flex-end;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(20, 14, 12, 0.74);
  color: #fff;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 0.32rem 0.75rem;
  border-radius: 999px;
  backdrop-filter: blur(6px);
}

.course-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.course-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink-muted);
  margin-bottom: 0.45rem;
}

.course-title {
  margin: 0 0 0.5rem;
  font-family: "Fraunces", serif;
  font-size: 1.24rem;
  line-height: 1.25;
}

.course-desc {
  margin: 0 0 1.25rem;
  font-size: 0.9rem;
  color: var(--ink-muted);
  flex: 1;
}

.course-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.9rem;
  border-top: 1px solid var(--border);
  gap: 0.5rem;
}

.lesson-count {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--vine-light);
}

[data-theme="light"] .lesson-count {
  color: var(--vine);
}

.admin-card-controls {
  display: flex;
  gap: 0.4rem;
  padding: 0.65rem 1.25rem;
  background: var(--surface-soft);
  border-top: 1px solid var(--border);
}

.admin-card-btn {
  flex: 1;
  padding: 0.42rem 0.65rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 700;
}

.admin-card-btn:hover {
  border-color: var(--tomato);
  color: var(--tomato);
}

.admin-card-btn.danger:hover {
  background: rgba(230, 57, 70, 0.12);
}

.empty-state {
  text-align: center;
  padding: 3.5rem 1.5rem;
  background: var(--surface);
  border: 1.5px dashed var(--border);
  border-radius: var(--radius-lg);
}

.empty-emoji {
  font-size: 2.8rem;
  margin-bottom: 0.5rem;
}

/* =========================================================
   BENTO WHY SECTION
   ========================================================= */
.info-section {
  padding: 0 0 5rem;
}

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

.bento-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.85rem;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.bento-card:hover {
  transform: translateY(-4px);
  border-color: rgba(230, 57, 70, 0.35);
}

.bento-icon {
  width: 50px;
  height: 50px;
  border-radius: 15px;
  background: var(--surface-soft);
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
}

.bento-icon-red {
  background: rgba(230, 57, 70, 0.12);
  color: var(--tomato);
}

.bento-icon-green {
  background: var(--vine-soft);
  color: var(--vine-light);
}

[data-theme="light"] .bento-icon-green {
  color: var(--vine);
}

.bento-icon-amber {
  background: rgba(244, 162, 97, 0.16);
  color: #e76f51;
}

.bento-card h3 {
  margin: 0 0 0.45rem;
  font-family: "Fraunces", serif;
  font-size: 1.22rem;
}

.bento-card p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.93rem;
}

.request-box {
  margin-top: 1.8rem;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  box-shadow: var(--shadow-card);
}

.request-box h3 {
  margin: 0.15rem 0 0.2rem;
  font-family: "Fraunces", serif;
  font-size: 1.25rem;
}

.request-box p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.9rem;
}

.request-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  flex: 1;
  max-width: 460px;
}

.request-form input {
  flex: 1;
  min-width: 210px;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: var(--bg);
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--ink);
}

.request-form input:focus {
  outline: none;
  border-color: var(--tomato);
}

.request-feedback {
  width: 100%;
  color: var(--vine-light) !important;
  font-weight: 700;
}

[data-theme="light"] .request-feedback {
  color: var(--vine) !important;
}

.requests-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  max-height: 300px;
  overflow-y: auto;
}

.request-item {
  padding: 0.8rem 0.95rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

.request-item small {
  color: var(--ink-muted);
  font-size: 0.76rem;
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2.2rem 0;
  background: var(--surface);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-brand p {
  margin: 0.25rem 0 0;
  font-size: 0.88rem;
  color: var(--ink-muted);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.footer-links a,
.text-link-btn,
.admin-lock-btn {
  color: var(--ink-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  background: none;
  border: none;
  font-family: inherit;
  padding: 0;
}

.admin-lock-btn {
  padding: 0.32rem 0.72rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 0.8rem;
}

.footer-links a:hover,
.text-link-btn:hover,
.admin-lock-btn:hover {
  color: var(--tomato);
  border-color: var(--tomato);
}

/* =========================================================
   MODALS (PLAYER, AUTH & ADMIN EDITOR)
   ========================================================= */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(12, 8, 7, 0.72);
  backdrop-filter: blur(10px);
  display: grid;
  place-items: center;
  padding: 1.2rem;
  overflow-y: auto;
}

.modal-dialog {
  width: 100%;
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--border);
  box-shadow: 0 32px 75px rgba(0, 0, 0, 0.45);
  overflow: hidden;
  animation: modalPop 0.24s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalPop {
  from { opacity: 0; transform: scale(0.94) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.player-dialog { max-width: 1040px; }
.add-dialog { max-width: 600px; }
.auth-dialog { max-width: 420px; }

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.5rem;
  border-bottom: 1px solid var(--border);
}

.modal-header h3 {
  margin: 0.25rem 0 0;
  font-family: "Fraunces", serif;
  font-size: 1.35rem;
}

.modal-badge {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--vine-light);
  background: var(--vine-soft);
  padding: 0.2rem 0.62rem;
  border-radius: 999px;
}

[data-theme="light"] .modal-badge {
  color: var(--vine);
}

.close-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: var(--surface-soft);
  color: var(--ink);
  display: grid;
  place-items: center;
  transition: background 0.18s ease, transform 0.18s ease;
}

.close-btn:hover {
  background: rgba(230, 57, 70, 0.16);
  color: var(--tomato);
  transform: rotate(90deg);
}

.player-body {
  display: grid;
  grid-template-columns: 1fr 290px;
}

.player-body.theater {
  grid-template-columns: 1fr;
}

.player-body.theater .lessons-sidebar {
  display: none;
}

.player-main-col {
  display: flex;
  flex-direction: column;
}

.player-controls-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.75rem 1rem;
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.player-nav-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.lesson-notes-box {
  padding: 0.85rem 1rem;
  background: var(--surface-soft);
  border-top: 1px solid var(--border);
  font-size: 0.88rem;
  color: var(--ink);
}

.lesson-captions-box {
  padding: 0.85rem 1rem;
  background: var(--bg);
  border-top: 1px solid var(--border);
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--ink);
  max-height: 185px;
  overflow-y: auto;
  white-space: pre-wrap;
}

.lesson-captions-header {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 0.35rem;
}

#cc-toggle-btn.active {
  background: rgba(230, 57, 70, 0.14);
  border-color: rgba(230, 57, 70, 0.38);
  color: var(--tomato);
}

.video-stage {
  position: relative;
  background: #0d0908;
  aspect-ratio: 16 / 9;
  width: 100%;
}

.video-stage iframe {
  width: 100%;
  height: 100%;
  display: block;
}

.video-loading-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: #140d0c;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  font-size: 0.92rem;
  font-weight: 700;
}

.mini-tomato-spin {
  animation: tomatoSpinBob 1s ease-in-out infinite;
}

@keyframes tomatoSpinBob {
  0%, 100% { transform: translateY(0) rotate(-6deg); }
  50% { transform: translateY(-8px) rotate(6deg); }
}

.demo-player-placeholder {
  position: absolute;
  inset: 0;
  z-index: 4;
  background: radial-gradient(circle at center, #2d1816 0%, #140b0a 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}

.demo-tomato {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

.demo-player-placeholder h4 {
  margin: 0 0 0.5rem;
  font-family: "Fraunces", serif;
  font-size: 1.35rem;
}

.demo-player-placeholder p {
  margin: 0;
  max-width: 42ch;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.92rem;
}

.lessons-sidebar {
  border-left: 1px solid var(--border);
  background: var(--bg);
  display: flex;
  flex-direction: column;
  max-height: 440px;
}

.sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.1rem;
  border-bottom: 1px solid var(--border);
}

.sidebar-head h4 {
  margin: 0;
  font-size: 0.95rem;
}

.sidebar-head span {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink-muted);
}

.lessons-list {
  list-style: none;
  margin: 0;
  padding: 0.6rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.lesson-item {
  width: 100%;
  text-align: left;
  padding: 0.7rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  background: var(--surface);
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  transition: all 0.15s ease;
}

.lesson-item:hover {
  border-color: rgba(230, 57, 70, 0.35);
}

.lesson-item.active {
  background: rgba(230, 57, 70, 0.12);
  border-color: var(--tomato);
  color: var(--tomato);
  font-weight: 700;
}

/* Forms & Admin Lesson Editor */
.add-form {
  padding: 1.4rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.auth-note {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink-muted);
}

.auth-error {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--tomato);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-field span {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink);
}

.form-field input,
.form-field select,
.form-field textarea,
.lesson-row-input {
  padding: 0.66rem 0.88rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: var(--bg);
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--ink);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus,
.lesson-row-input:focus {
  outline: none;
  border-color: var(--tomato);
}

.lessons-editor-block {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.9rem;
  background: var(--bg);
}

.lessons-editor-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.7rem;
  font-size: 0.82rem;
  font-weight: 700;
}

.lessons-editor-rows {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  max-height: 190px;
  overflow-y: auto;
}

.lesson-editor-row {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 0.45rem;
  align-items: center;
}

.remove-lesson-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--tomato);
  font-weight: 800;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 0.3rem;
}

/* =========================================================
   TOMATO CLICK POP PARTICLES
   ========================================================= */
.tomato-pop {
  position: fixed;
  pointer-events: none;
  z-index: 9998;
  font-size: 1.1rem;
  transform: translate(-50%, -50%);
  animation: popBurst 0.65s ease-out forwards;
}

.tomato-burst-piece {
  position: fixed;
  pointer-events: none;
  z-index: 9998;
  font-size: 1.15rem;
  transform: translate(-50%, -50%);
  animation: tomatoConfetti 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes tomatoConfetti {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(0.5) rotate(0deg);
  }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--tx, 0px)), calc(-50% + var(--ty, -60px))) scale(1.2) rotate(var(--rot, 120deg));
  }
}

@keyframes popBurst {
  0% { opacity: 1; transform: translate(-50%, -50%) scale(0.6); }
  100% { opacity: 0; transform: translate(-50%, -115%) scale(1.25) rotate(18deg); }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 900px) {
  .hero-grid,
  .bento-grid,
  .player-body {
    grid-template-columns: 1fr;
  }

  .lessons-sidebar {
    border-left: none;
    border-top: 1px solid var(--border);
    max-height: 220px;
  }
}

@media (max-width: 640px) {
  .nav-links {
    display: none;
  }

  .hero {
    padding: 2.8rem 0 2.5rem;
  }

  .form-row,
  .lesson-editor-row {
    grid-template-columns: 1fr;
  }
}
