/* Tu Es Belle CE Academy — course platform styles
   Brand: deep emerald #04352A, gold #C8A96A, ivory #F7F4EC, ink #0B2C23 */
:root {
  --emerald: #04352A;
  --emerald-deep: #06281F;
  --gold: #C8A96A;
  --gold-soft: #E8D9B0;
  --gold-deep: #8A6B31;
  --ivory: #F7F4EC;
  --ink: #0B2C23;
  --muted: #40584F;
  --faint: #6B7E76;
  --card: #FFFFFF;
  --danger: #9B2C2C;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: "Switzer", -apple-system, "Segoe UI", sans-serif;
  background: var(--ivory); color: var(--ink); line-height: 1.6;
  min-height: 100vh; display: flex; flex-direction: column;
}
.p-topbar {
  background: var(--emerald); color: var(--gold-soft);
  padding: 12px 24px; display: flex; align-items: center; gap: 16px;
  border-bottom: 3px solid var(--gold);
}
.p-topbar img { height: 44px; width: auto; }
.p-topbar .brand { font-family: Georgia, serif; font-size: 20px; letter-spacing: 1px; }
.p-topbar .spacer { flex: 1; }
.p-topbar a, .p-topbar button.link {
  color: var(--gold-soft); text-decoration: none; font-size: 14px;
  background: none; border: none; cursor: pointer; font-family: inherit;
}
.p-topbar a:hover, .p-topbar button.link:hover { color: #fff; text-decoration: underline; }
.p-wrap { max-width: 960px; margin: 0 auto; padding: 32px 20px 64px; width: 100%; flex: 1; }
.p-card {
  background: var(--card); border: 1px solid #E3DCC8; border-radius: 12px;
  padding: 28px; margin-bottom: 20px; box-shadow: 0 2px 10px rgba(4,53,42,.06);
}
h1 { font-family: Georgia, serif; color: var(--emerald); font-weight: normal; margin-bottom: 8px; }
h2 { font-family: Georgia, serif; color: var(--emerald); font-weight: normal; margin: 0 0 12px; font-size: 22px; }
.p-lead { color: var(--muted); margin-bottom: 20px; }
.p-form label { display: block; font-size: 14px; color: var(--muted); margin: 14px 0 6px; }
.p-form input {
  width: 100%; padding: 12px 14px; font-size: 16px; border: 1px solid #C9C2AC;
  border-radius: 8px; font-family: inherit; background: #fff; color: var(--ink);
}
.p-form input:focus { outline: 2px solid var(--gold); border-color: var(--gold); }
.p-form select {
  width: 100%; padding: 12px 14px; font-size: 16px; border: 1px solid #C9C2AC;
  border-radius: 8px; font-family: inherit; background: #fff; color: var(--ink);
}
.p-form select:focus { outline: 2px solid var(--gold); border-color: var(--gold); }
.p-form .p-radio { display: inline-flex; align-items: center; gap: 6px; margin: 4px 18px 4px 0; font-size: 15px; color: var(--ink); }
.p-form .p-radio input { width: auto; padding: 0; }
.p-form small { display: block; color: var(--muted); font-size: 13px; margin-top: 4px; }
.p-btn {
  display: inline-block; background: var(--emerald); color: var(--gold-soft);
  border: none; padding: 13px 30px; font-size: 16px; border-radius: 8px;
  cursor: pointer; font-family: inherit; margin-top: 18px; text-decoration: none;
}
.p-btn:hover { background: var(--emerald-deep); color: #fff; }
.p-btn.gold { background: var(--gold); color: var(--emerald-deep); }
.p-btn.ghost { background: transparent; color: var(--emerald); border: 1px solid var(--emerald); }
.p-error { color: var(--danger); margin-top: 12px; font-size: 14px; min-height: 20px; }
.p-badge {
  display: inline-block; font-size: 12px; letter-spacing: 1px; text-transform: uppercase;
  background: var(--emerald); color: var(--gold-soft); border-radius: 20px; padding: 4px 14px; margin-bottom: 10px;
}
.p-hours { display: flex; gap: 12px; flex-wrap: wrap; margin: 14px 0; }
.p-hour-chip { background: var(--ivory); border: 1px solid var(--gold); border-radius: 8px; padding: 8px 14px; font-size: 14px; }
.p-hour-chip b { color: var(--emerald); }
.p-lesson { display: flex; align-items: center; gap: 14px; padding: 14px 4px; border-bottom: 1px solid #EEE8D6; text-decoration: none; color: inherit; }
.p-lesson:last-child { border-bottom: none; }
.p-lesson:hover .p-lesson-title { color: var(--gold-deep); text-decoration: underline; }
.p-lesson-num {
  flex: 0 0 40px; height: 40px; border-radius: 50%; background: var(--emerald);
  color: var(--gold-soft); display: flex; align-items: center; justify-content: center; font-size: 15px;
}
.p-lesson.done .p-lesson-num { background: var(--gold); color: var(--emerald-deep); }
.p-lesson-title { font-size: 17px; }
.p-lesson-meta { font-size: 13px; color: var(--faint); }
.p-lesson .p-check { margin-left: auto; color: var(--gold-deep); font-size: 20px; }
/* progress bar */
.p-progress { height: 12px; background: var(--ivory); border: 2px solid var(--gold); border-radius: 999px; overflow: hidden; margin: 10px 0; }
.p-progress > div { height: 100%; background: linear-gradient(90deg, var(--emerald-deep), var(--emerald)); width: 0%; transition: width .4s; }
/* Seat-time timer chip: emerald green, ivory text, gold border (the owner, Oct 31, 2026). */
#lesson-progress-label { display: inline-block; background: var(--emerald); color: var(--ivory); border: 2px solid var(--gold); border-radius: 999px; padding: 6px 16px; font-size: 14px; font-weight: 700; letter-spacing: .02em; margin: 6px 0 2px; }
#lesson-progress-label::before { content: "\23F1  "; color: var(--gold-soft); }
/* mode toggle */
.p-modes { display: flex; gap: 0; border: 1px solid var(--gold); border-radius: 10px; overflow: hidden; margin: 18px 0; }
.p-mode-btn {
  flex: 1; padding: 13px 8px; background: #fff; border: none; cursor: pointer;
  font-family: inherit; font-size: 15px; color: var(--muted);
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.p-mode-btn + .p-mode-btn { border-left: 1px solid var(--gold); }
.p-mode-btn.active { background: var(--emerald); color: var(--gold-soft); }
.p-mode-btn .ico { font-size: 18px; }
.p-pane { display: none; }
.p-pane.active { display: block; }
/* audio player */
.p-audio { background: var(--emerald); border-radius: 12px; padding: 22px; color: var(--gold-soft); margin: 6px 0 18px; }
.p-audio .p-track { font-family: Georgia, serif; font-size: 17px; margin-bottom: 14px; }
.p-audio-controls { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.p-audio-controls button {
  background: var(--gold); color: var(--emerald-deep); border: none; border-radius: 50%;
  width: 52px; height: 52px; font-size: 20px; cursor: pointer;
}
.p-audio-controls button.small { width: 40px; height: 40px; font-size: 14px; }
.p-audio-controls select { background: #fff; border-radius: 6px; padding: 8px; font-family: inherit; }
.p-tts-note { font-size: 13px; color: var(--gold-soft); opacity: .8; margin-top: 10px; }
/* video */
.p-video-wrap { background: #000; border-radius: 12px; overflow: hidden; margin: 6px 0 18px; }
.p-video-wrap video { width: 100%; display: block; aspect-ratio: 16/9; }
.p-video-soon {
  aspect-ratio: 16/9; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--emerald-deep), var(--emerald)); color: var(--gold-soft);
  text-align: center; padding: 30px; gap: 10px;
}
.p-video-soon .play-ring {
  width: 76px; height: 76px; border: 3px solid var(--gold); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 28px; color: var(--gold);
}
.p-video-soon p { max-width: 420px; font-size: 14px; opacity: .85; }
/* materials */
.p-material { display: flex; align-items: center; gap: 12px; padding: 12px 4px; border-bottom: 1px solid #EEE8D6; text-decoration: none; color: var(--emerald); }
.p-material:hover { text-decoration: underline; }
.p-empty { color: var(--faint); font-size: 14px; font-style: italic; padding: 8px 0; }
/* read pane */
.p-read { font-size: 17px; line-height: 1.8; }
.p-read h3 { font-family: Georgia, serif; color: var(--emerald); margin: 18px 0 8px; font-weight: normal; }
.p-read ul { margin: 8px 0 8px 22px; }
.p-read li { margin-bottom: 6px; }
.p-dev-note {
  background: #FBF7EA; border-left: 4px solid var(--gold); padding: 14px 18px;
  font-size: 14px; color: var(--muted); margin: 18px 0; border-radius: 0 8px 8px 0;
}
/* lesson nav */
.p-lesson-nav { display: flex; justify-content: space-between; margin-top: 26px; gap: 12px; flex-wrap: wrap; }
/* tables */
.p-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.p-table th { text-align: left; color: var(--emerald); border-bottom: 2px solid var(--gold); padding: 10px 8px; font-weight: 600; }
.p-table td { border-bottom: 1px solid #EEE8D6; padding: 10px 8px; }
.p-table tr:hover td { background: #FBF8EE; }
.p-footer { text-align: center; color: var(--faint); font-size: 13px; padding: 24px; border-top: 1px solid #E3DCC8; }
.p-footer a { color: var(--gold-deep); }
@media (max-width: 640px) {
  .p-wrap { padding: 20px 14px 48px; }
  .p-card { padding: 20px 16px; }
  .p-topbar .brand { font-size: 16px; }
}

/* Language switcher (lesson + course pages) */
.p-lang-switch {
  margin: 0 0 14px;
  font-size: 14px;
  color: var(--gold);
}
.p-lang-switch a { color: var(--gold); text-decoration: underline; }
.p-lang-cur { font-weight: 700; color: #fff; }

/* One-page checkout (Ranked 31) */
.co-lines { width: 100%; border-collapse: collapse; font-size: 15px; margin: 10px 0; }
.co-lines td { border-bottom: 1px solid #EEE8D6; padding: 8px 4px; }
.co-lines td.co-amt { text-align: right; white-space: nowrap; }
.co-total-row { display: flex; justify-content: space-between; align-items: baseline; font-size: 18px; margin: 14px 0 6px; }
.co-total-row b { color: var(--emerald); }
/* "Ways to pay" panel (payments.js): the four card marks are inline SVGs
   with a viewBox but no width/height — without these rules each one
   defaults to full container width and stacks as a giant card (fix 126). */
.pay-card-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 12px 0 6px; }
.pay-marks { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.pay-mark { width: 44px; height: 28px; display: block; flex: 0 0 auto; }
.pay-card-text { font-size: 15px; line-height: 1.45; }
.pay-methods { margin: 10px 0 4px; padding-left: 20px; font-size: 15px; line-height: 1.55; }
.co-check { display: block; font-size: 15px; margin: 14px 0 4px; }
.co-speed { border: 1px solid #E3DCC8; border-radius: 8px; padding: 10px 14px; margin: 10px 0; }
.co-speed label { display: block; margin: 6px 0; font-size: 14px; }
.co-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.co-grid label { display: block; font-size: 14px; color: var(--muted); margin: 10px 0 4px; }
.co-grid input, .co-grid select { width: 100%; }
@media (max-width: 640px) { .co-grid { grid-template-columns: 1fr; } }
#co-app select { width: 100%; padding: 10px 12px; border: 1px solid #D8D2C4; border-radius: 8px; font: inherit; background: #fff; margin: 6px 0 4px; }
#co-app input[type="checkbox"], #co-app input[type="radio"] { width: auto; margin-right: 8px; }

/* Verified Review Engine — review form modal (fix 81). reviews.js has
   always rendered the form into .rv-modal-wrap/.rv-modal, but no styles
   for them ever shipped, so even a working open would have dumped an
   unstyled block at the foot of the page. The wrap is a fixed overlay:
   when a student clicks "Write a review", the form is unmissable. */
.rv-modal-wrap {
  position: fixed; inset: 0; z-index: 300; background: rgba(4, 53, 42, .55);
  display: flex; align-items: flex-start; justify-content: center;
  overflow-y: auto; padding: 32px 16px;
}
.rv-modal {
  background: var(--card); border: 1.5px solid var(--gold); border-radius: 12px;
  box-shadow: 0 12px 40px rgba(4, 53, 42, .25);
  max-width: 560px; width: 100%; padding: 28px;
}
.rv-modal h2 { font-family: Georgia, serif; color: var(--emerald); font-weight: normal; margin-bottom: 14px; }
.rv-modal .p-form-row { margin: 14px 0; }
.rv-modal .p-form-row > label { display: block; font-size: 14px; color: var(--muted); margin-bottom: 6px; }
.rv-modal textarea, .rv-modal input[type="url"] {
  width: 100%; font: inherit; padding: 10px 12px;
  border: 1px solid #D8D2C4; border-radius: 8px; background: #fff;
}
.rv-modal textarea:focus, .rv-modal input[type="url"]:focus { outline: 2px solid var(--gold); border-color: var(--gold); }
.rv-stars-input { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.rv-star { background: none; border: none; cursor: pointer; font-size: 30px; line-height: 1; padding: 2px; color: #C9CFC9; }
.rv-star.on { color: var(--gold); }
.rv-radio { display: block; font-size: 15px; color: var(--ink); margin: 4px 0; cursor: pointer; }
.rv-form-actions { margin-top: 16px; }

/* Lesson checkpoints (decision 59/1; item 60 rollout, fix 174).
   Rendered by player.js only for courses carrying a checkpoints data
   file; graded server-side, retry-until-correct, nobody fails. */
.p-checkpoints { border: 1.5px solid var(--gold); }
.p-cp-intro { color: var(--muted); font-size: 15px; margin-bottom: 18px; }
.p-cp-q { padding: 16px 0 6px; border-top: 1px solid #EEE8D6; }
.p-cp-q:first-of-type { border-top: none; padding-top: 4px; }
.p-cp-qtext { font-size: 16.5px; margin-bottom: 12px; }
.p-cp-qtext strong { color: var(--emerald); }
.p-cp-opts { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.p-cp-opt {
  text-align: left; font-family: inherit; font-size: 15.5px; line-height: 1.5;
  background: #fff; color: var(--ink); border: 1px solid #C9C2AC; border-radius: 8px;
  padding: 11px 14px; cursor: pointer;
}
.p-cp-opt:hover:not(:disabled) { border-color: var(--gold); background: #FBF8EE; }
.p-cp-opt:disabled { cursor: default; opacity: .75; }
.p-cp-opt.wrong { border-color: var(--danger); color: var(--danger); background: #FBF1F1; opacity: 1; }
.p-cp-opt.correct-chosen { border-color: var(--emerald); background: var(--emerald); color: var(--gold-soft); opacity: 1; }
.p-cp-q.passed .p-cp-opt { opacity: .6; }
.p-cp-q.passed .p-cp-opt.correct-chosen { opacity: 1; }
.p-cp-why {
  background: #FBF7EA; border-left: 4px solid var(--gold); border-radius: 0 8px 8px 0;
  padding: 12px 16px; font-size: 14.5px; color: var(--muted); margin: 4px 0 12px;
}
.p-cp-correct { color: var(--gold-deep); font-weight: 700; font-size: 15px; margin: 2px 0 12px; }
.p-cp-done {
  margin-top: 14px; padding: 12px 16px; border-radius: 8px;
  background: var(--emerald); color: var(--gold-soft); font-size: 15.5px;
}

/* ---------- Fix 193 — gold borders site-wide (Rozmin's item 66, Nov 6, 2026) ----------
   Every visible border on the platform surfaces (course hubs, lesson
   players, checkout, sign-in, dashboard) is the Academy gold #C8A96A —
   borders only. Four FUNCTIONAL state borders are re-asserted after the
   flip so right/wrong feedback keeps its meaning: a wrong checkpoint or
   laser-exam pick stays danger red, a correct pick stays emerald. (The
   laser states are declared in laser.css; they are re-asserted here
   because platform.css is the shared sheet on every laser page.) */
*, *::before, *::after { border-color: #C8A96A !important; }
.p-wrap figure img, main figure img { border: 2px solid #C8A96A !important; }
.p-cp-opt.wrong { border-color: var(--danger) !important; }
.p-cp-opt.correct-chosen { border-color: var(--emerald) !important; }
.lz-choice.picked-wrong { border-color: #9B2C2C !important; }
.lz-choice.picked-right { border-color: var(--emerald) !important; }
/* ============ Fix 201 — the business number stays together (Rozmin's order, Nov 6, 2026) ============
   (346) 812-7727 must never split across lines. The number's own links
   (text/call) render on one line, and .keep-together wraps every
   plain-text printing of the number site-wide. */
a[href^="tel:"], a[href^="sms:"] { white-space: nowrap; }
.keep-together { white-space: nowrap; }

/* ============ Fix 207 — TikTok logo in the platform footer link (Rozmin's order, Nov 7, 2026) ============
   The platform (.p-footer) footers now carry the same email + TikTok
   logo+link lines as the standard footer (fixes 205/206); this is the same
   clean white chip as Fix 206, scoped to the platform footer. */
.p-footer .tiktok-logo { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; margin-right: 7px; border: 1px solid #C8A96A; border-radius: 6px; background: #FFFFFF; box-sizing: border-box; vertical-align: -6px; }
.p-footer .tiktok-logo svg { display: block; width: 16px; height: 16px; }
.p-footer .instagram-logo { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; margin-left: 14px; margin-right: 7px; border: 1px solid #C8A96A; border-radius: 6px; background: #FFFFFF; box-sizing: border-box; vertical-align: -6px; }
.p-footer .instagram-logo svg { display: block; width: 16px; height: 16px; }
