:root {
  --cream: #f8f1e7;
  --paper: #fffdf8;
  --emerald: #107a5d;
  --forest: #154734;
  --mint: #e5f3ed;
  --gold: #c79630;
  --ink: #183029;
  --muted: #69766f;
  --line: rgba(21, 71, 52, .14);
  --shadow: 0 18px 48px rgba(18, 57, 44, .12);
}
[data-theme="dark"] {
  --cream: #16231f;
  --paper: #101916;
  --emerald: #56cfa9;
  --forest: #d6f3e7;
  --mint: #1d332d;
  --gold: #e4bd64;
  --ink: #edf8f2;
  --muted: #a8bbb1;
  --line: rgba(227, 244, 235, .16);
  --shadow: 0 18px 48px rgba(0, 0, 0, .26);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
a { color: inherit; text-decoration: none; }
.site-main { padding-top: 76px; min-height: 70vh; }
.glass-nav { background: color-mix(in srgb, var(--paper) 86%, transparent); backdrop-filter: blur(18px); border-bottom: 1px solid var(--line); }
.navbar-brand span { color: var(--emerald); }
.nav-link { font-weight: 650; color: var(--ink); }
.icon-btn { width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); color: var(--forest); }
.hero {
  position: relative;
  min-height: min(720px, calc(100vh - 40px));
  display: grid;
  align-items: center;
  color: #fff;
  overflow: hidden;
  background: #153d31;
}
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14,45,34,.86), rgba(14,45,34,.48), rgba(14,45,34,.1)); z-index: 1; }
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero .container { position: relative; z-index: 2; padding-bottom: 56px; }
.eyebrow { color: var(--gold); font-weight: 800; text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; }
.hero h1 { max-width: 760px; font-size: clamp(2.4rem, 6vw, 5.6rem); line-height: .98; font-weight: 850; margin: 12px 0 18px; }
.hero p { max-width: 610px; font-size: 1.12rem; color: rgba(255,255,255,.88); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.btn { border-radius: 8px; font-weight: 750; }
.btn-success { background: var(--emerald); border-color: var(--emerald); }
.btn-warning { background: var(--gold); border-color: var(--gold); color: #2b210e; }
.section { padding: 74px 0; }
.section.alt { background: var(--cream); }
.section-title { max-width: 720px; margin-bottom: 32px; }
.section-title h2 { font-weight: 850; color: var(--forest); font-size: clamp(1.9rem, 3vw, 3rem); }
.section-title p { color: var(--muted); margin: 0; }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.well-card, .dashboard-card, .product-card, .course-card, .class-card {
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 22px;
  height: 100%;
}
.well-card h3, .dashboard-card h3 { font-size: 1.05rem; font-weight: 800; color: var(--forest); }
.well-card p, .dashboard-card p, .muted { color: var(--muted); }
.stat-band { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin-top: 28px; }
.stat { padding: 18px; border-left: 4px solid var(--gold); background: rgba(255,255,255,.12); border-radius: 8px; }
.stat strong { display: block; font-size: 1.6rem; }
.page-hero { background: var(--cream); padding: 72px 0 44px; border-bottom: 1px solid var(--line); }
.page-hero h1 { color: var(--forest); font-weight: 850; }
.filter-bar { background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 14px; margin-bottom: 24px; }
.card-image { width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: 8px; background: var(--mint); }
.price { color: var(--emerald); font-weight: 850; font-size: 1.12rem; }
.empty-state { border: 1px dashed var(--line); border-radius: 8px; padding: 28px; color: var(--muted); display: grid; gap: 6px; background: var(--paper); }
.empty-state strong { color: var(--forest); }
.panel-shell { background: var(--cream); min-height: 100vh; padding: 24px 0; }
.panel-grid { display: grid; grid-template-columns: 260px 1fr; gap: 22px; }
.panel-side { background: var(--forest); color: #fff; border-radius: 8px; padding: 18px; height: max-content; position: sticky; top: 92px; }
.panel-side a { display: block; color: rgba(255,255,255,.86); padding: 9px 10px; border-radius: 8px; font-weight: 650; }
.panel-side a:hover, .panel-side a.active { background: rgba(255,255,255,.12); color: #fff; }
.panel-content { min-width: 0; }
.table { color: var(--ink); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); }
.auth-wrap { min-height: 100vh; display: grid; place-items: center; background: var(--cream); padding: 24px; }
.auth-card { width: min(480px, 100%); background: var(--paper); border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); padding: 28px; }
.studio { min-height: calc(100vh - 76px); display: grid; grid-template-columns: minmax(0, 1fr) 340px; background: #0f1714; color: #f3fff8; }
.studio-stage { padding: 18px; display: grid; grid-template-rows: 1fr auto; gap: 14px; }
.video-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; align-content: start; }
.video-tile { background: #1b2924; border: 1px solid rgba(255,255,255,.12); border-radius: 8px; min-height: 220px; overflow: hidden; position: relative; }
.video-tile video { width: 100%; height: 100%; object-fit: cover; display: block; }
.video-tile span { position: absolute; left: 10px; bottom: 10px; background: rgba(0,0,0,.5); padding: 4px 8px; border-radius: 8px; }
.studio-tools { display: flex; gap: 8px; flex-wrap: wrap; }
.studio-side { border-left: 1px solid rgba(255,255,255,.12); padding: 16px; display: grid; grid-template-rows: auto 1fr auto; gap: 12px; }
.chat-log { overflow-y: auto; min-height: 240px; background: rgba(255,255,255,.06); border-radius: 8px; padding: 10px; }
.whiteboard { width: 100%; height: 240px; background: #fff; border-radius: 8px; touch-action: none; }
.footer-band { background: var(--forest); color: rgba(255,255,255,.82); padding: 52px 0 24px; }
.footer-band h5 { color: #fff; font-weight: 850; }
.footer-band a { display: block; color: rgba(255,255,255,.82); margin-bottom: 8px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.14); margin-top: 30px; padding-top: 18px; }
.whatsapp-float { position: fixed; right: 18px; bottom: 18px; z-index: 30; width: 52px; height: 52px; border-radius: 999px; background: #23b26b; color: #fff; display: grid; place-items: center; font-weight: 900; box-shadow: var(--shadow); }
.flash-wrap { position: relative; z-index: 3; }
@media (max-width: 991px) {
  .panel-grid, .studio { grid-template-columns: 1fr; }
  .panel-side { position: static; }
  .studio-side { border-left: 0; border-top: 1px solid rgba(255,255,255,.12); }
  .hero { min-height: 660px; }
}
@media (max-width: 576px) {
  .section { padding: 52px 0; }
  .hero h1 { font-size: 2.4rem; }
  .hero-actions .btn { width: 100%; }
}
