@import url("https://fonts.googleapis.com/css2?family=Frank+Ruhl+Libre:wght@500;700;900&family=Rubik:wght@400;500;600&family=Caveat:wght@600&display=swap");

:root {
  --paper: #fcf5f6;
  --blush: #f6dde3;
  --blush-soft: #fbecef;
  --rose: #bc3d65;
  --rose-deep: #962c4e;
  --ink: #351a28;
  --ink-soft: #6c5160;
  --slate: #2f4a6d;
  --line: #ebd0d8;
  --white: #fff;
  --ok: #2f7a5b;
  --serif: "Frank Ruhl Libre", "David Libre", serif;
  --sans: "Rubik", "Assistant", system-ui, sans-serif;
  --hand: "Caveat", cursive;
  --wrap: 1120px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, video, iframe { max-width: 100%; display: block; }
a { color: var(--rose-deep); }
h1, h2, h3 { font-family: var(--serif); line-height: 1.15; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: clamp(2.6rem, 6vw, 4.3rem); font-weight: 900; letter-spacing: -.01em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.3rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }
.muted { color: var(--ink-soft); }
:focus-visible { outline: 3px solid var(--slate); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- header ---------- */
.site-head { padding: 18px 0; }
.site-head .wrap { display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: baseline; gap: 10px; text-decoration: none; color: var(--ink); margin-inline-end: auto; }
.brand b { font-family: var(--serif); font-size: 1.6rem; font-weight: 900; }
.brand span { font-family: var(--hand); font-size: 1.45rem; color: var(--rose); transform: rotate(-4deg); display: inline-block; }
.nav { display: flex; gap: 26px; align-items: center; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--rose); }
.nav-toggle { display: none; background: none; border: 0; font: inherit; color: var(--ink); padding: 6px; cursor: pointer; }
.nav-toggle svg { width: 26px; height: 26px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 1rem/1 var(--sans); padding: 15px 26px; border-radius: 999px;
  border: 2px solid var(--rose); background: var(--rose); color: var(--white);
  text-decoration: none; cursor: pointer; transition: background .15s, transform .15s;
}
.btn:hover { background: var(--rose-deep); border-color: var(--rose-deep); }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: transparent; color: var(--rose-deep); }
.btn.ghost:hover { background: var(--blush-soft); }
.btn.small { padding: 10px 18px; font-size: .92rem; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn svg { width: 20px; height: 20px; }

/* ---------- hero ---------- */
.hero { padding: 40px 0 80px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero-lead { font-size: 1.2rem; max-width: 34em; color: var(--ink-soft); }
.hero-about { max-width: 34em; padding-inline-start: 14px; border-inline-start: 3px solid var(--rose); color: var(--ink); font-size: 1.02rem; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }

.correction {
  margin: 34px 0 0; padding: 18px 0 6px; max-width: 420px;
  border-top: 1px solid var(--line);
  background: repeating-linear-gradient(to bottom, transparent 0 39px, var(--line) 39px 40px);
}
.correction .line { direction: ltr; text-align: left; font-family: var(--serif); font-size: 1.55rem; line-height: 40px; position: relative; color: var(--ink); }
.correction .wrong { position: relative; display: inline-block; }
.correction .wrong::after {
  content: ""; position: absolute; left: -3px; right: -3px; top: 52%; height: 3px;
  background: var(--rose); border-radius: 2px; transform-origin: left; transform: scaleX(0);
  animation: strike .45s .6s ease-out forwards;
}
.correction .fix {
  position: absolute; left: 22px; top: -30px; font-family: var(--hand); font-size: 1.9rem; color: var(--rose);
  transform: rotate(-6deg); opacity: 0; animation: appear .4s 1.15s ease-out forwards;
}
.correction .tick { display: inline-block; width: 30px; height: 26px; vertical-align: middle; margin-left: 10px; }
.correction .tick path { stroke: var(--rose); stroke-width: 3; fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .4s 1.6s ease-out forwards; }
.correction figcaption { font-size: .9rem; color: var(--ink-soft); margin-top: 6px; }
@keyframes strike { to { transform: scaleX(1); } }
@keyframes appear { to { opacity: 1; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) {
  .correction .wrong::after { animation: none; transform: scaleX(1); }
  .correction .fix { animation: none; opacity: 1; }
  .correction .tick path { animation: none; stroke-dashoffset: 0; }
  html { scroll-behavior: auto; }
}

.video-card { background: var(--white); border-radius: 22px; padding: 12px; box-shadow: 0 1px 0 var(--line), 0 24px 48px -28px rgba(150, 44, 78, .35); }
.video-frame { aspect-ratio: 9 / 11; border-radius: 14px; overflow: hidden; background: var(--blush); position: relative; }
.video-frame video, .video-frame iframe { width: 100%; height: 100%; object-fit: cover; border: 0; }
.video-frame.wide { aspect-ratio: 16 / 9; }
.video-empty { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; padding: 28px; color: var(--rose-deep); }
.video-empty .play { width: 74px; height: 74px; border-radius: 50%; background: var(--white); display: grid; place-items: center; margin: 0 auto 16px; }
.video-empty .play svg { width: 26px; height: 26px; margin-left: 4px; }
.video-empty strong { font-family: var(--serif); font-size: 1.4rem; display: block; }
.video-card figcaption { padding: 12px 8px 4px; font-size: .95rem; color: var(--ink-soft); }

/* ---------- sections ---------- */
section { padding: 84px 0; }
.band { background: var(--white); border-block: 1px solid var(--line); }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head p { color: var(--ink-soft); font-size: 1.1rem; }

.method { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; }
.method h3 { font-size: 1.75rem; color: var(--rose-deep); margin-bottom: .35em; }
.method h3 small { display: block; font-family: var(--hand); font-size: 1.35rem; color: var(--slate); font-weight: 600; direction: ltr; text-align: right; margin-top: 2px; }
.method p { color: var(--ink-soft); }

.who { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.who ul { list-style: none; padding: 0; margin: 0; }
.who li { padding: 20px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 150px 1fr; gap: 18px; }
.who li:first-child { border-top: 1px solid var(--line); }
.who li b { font-family: var(--serif); font-size: 1.2rem; }
.who li span { color: var(--ink-soft); }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding-top: 58px; }
.steps li::before {
  content: counter(s); position: absolute; top: 0; inset-inline-start: 0; width: 42px; height: 42px; border-radius: 50%;
  border: 2px solid var(--rose); color: var(--rose); display: grid; place-items: center; font: 700 1.15rem var(--serif);
}
.steps li:not(:last-child)::after { content: ""; position: absolute; top: 21px; inset-inline-start: 54px; inset-inline-end: 0; border-top: 2px dotted var(--line); }
.steps h3 { font-size: 1.2rem; }
.steps p { color: var(--ink-soft); font-size: .98rem; }

/* price list */
.prices { display: grid; grid-template-columns: 1.2fr .8fr; gap: 56px; align-items: start; }
.price-list { margin: 0; }
.price-row { display: flex; align-items: baseline; gap: 12px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.price-row dt { font-weight: 600; font-size: 1.1rem; }
.price-row dt small { display: block; font-weight: 400; color: var(--ink-soft); font-size: .92rem; }
.price-row .lead { flex: 1; border-bottom: 2px dotted var(--line); transform: translateY(-6px); min-width: 20px; }
.price-row dd { margin: 0; font-family: var(--serif); font-size: 1.9rem; font-weight: 700; color: var(--rose-deep); white-space: nowrap; }
.price-row dd s { font-family: var(--sans); font-size: .95rem; font-weight: 400; color: var(--ink-soft); margin-inline-end: 6px; }
.price-note { background: var(--blush-soft); border-radius: 18px; padding: 28px; }
.price-note h3 { margin-bottom: .4em; }
.price-note p { color: var(--ink-soft); }

.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 1.08rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--rose); font-size: 1.5rem; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--ink-soft); margin: 12px 0 0; max-width: 60em; }

.closing { text-align: center; padding: 96px 0; }
.closing h2 { max-width: 16em; margin-inline: auto; }
.closing .hero-actions { justify-content: center; }

.site-foot { padding: 34px 0 110px; border-top: 1px solid var(--line); font-size: .92rem; color: var(--ink-soft); }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: space-between; }
.site-foot a { color: var(--ink-soft); }

/* whatsapp */
.wa-float {
  position: fixed; inset-inline-end: 22px; bottom: 22px; z-index: 50; width: 60px; height: 60px; border-radius: 50%;
  background: #25d366; color: #fff; display: grid; place-items: center;
  box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .35); transition: transform .15s;
}
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 34px; height: 34px; }

.demo-note { background: var(--slate); color: #fff; text-align: center; font-size: .9rem; padding: 8px 16px; }

/* ---------- booking ---------- */
.book-page { padding: 24px 0 90px; }
.book-grid { display: grid; grid-template-columns: 1fr 330px; gap: 40px; align-items: start; }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: 20px; padding: 30px; }
.panel + .panel { margin-top: 20px; }
.panel h2 { font-size: 1.5rem; display: flex; align-items: center; gap: 12px; }
.panel h2 .n { width: 32px; height: 32px; flex: none; border-radius: 50%; background: var(--blush); color: var(--rose-deep); font: 700 1rem/32px var(--serif); text-align: center; }
.panel.locked { opacity: .5; pointer-events: none; }

.choices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; }
.choice label {
  display: block; height: 100%; border: 2px solid var(--line); border-radius: 14px; padding: 16px; cursor: pointer;
  transition: border-color .15s, background .15s;
}
.choice label b { display: block; font-size: 1.05rem; }
.choice label .p { font-family: var(--serif); font-size: 1.5rem; color: var(--rose-deep); font-weight: 700; }
.choice label small { display: block; color: var(--ink-soft); font-size: .88rem; line-height: 1.4; margin-top: 4px; }
.choice input:checked + label { border-color: var(--rose); background: var(--blush-soft); }
.choice input:focus-visible + label { outline: 3px solid var(--slate); outline-offset: 2px; }

.pkg-mode { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.seg { display: inline-flex; border: 2px solid var(--line); border-radius: 999px; padding: 3px; }
.seg button { border: 0; background: none; font: 500 .95rem var(--sans); padding: 8px 16px; border-radius: 999px; cursor: pointer; color: var(--ink); }
.seg button[aria-pressed="true"] { background: var(--rose); color: #fff; }

.have-code { margin-top: 18px; font-size: .95rem; }
.have-code button { background: none; border: 0; color: var(--rose-deep); text-decoration: underline; font: inherit; cursor: pointer; padding: 0; }
.code-box { display: none; margin-top: 14px; gap: 10px; grid-template-columns: 1fr 1fr; }
.code-box.on { display: grid; }

.week-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.week-nav button { background: none; border: 1px solid var(--line); border-radius: 999px; width: 38px; height: 38px; cursor: pointer; color: var(--ink); font-size: 1.1rem; }
.week-nav button[disabled] { opacity: .35; cursor: default; }
.days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.day {
  border: 2px solid var(--line); background: var(--white); border-radius: 12px; padding: 10px 4px; text-align: center; cursor: pointer;
  font: inherit; color: var(--ink); line-height: 1.3;
}
.day b { display: block; font-size: 1.2rem; font-family: var(--serif); }
.day small { font-size: .8rem; color: var(--ink-soft); }
.day[disabled] { cursor: default; color: #c9b4bc; border-style: dashed; background: transparent; }
.day[disabled] small { color: inherit; }
.day[aria-pressed="true"] { border-color: var(--rose); background: var(--rose); color: #fff; }
.day[aria-pressed="true"] small { color: #fbe0e7; }
.times { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; min-height: 48px; }
.time { border: 2px solid var(--line); background: var(--white); border-radius: 999px; padding: 9px 20px; font: 500 1rem var(--sans); cursor: pointer; color: var(--ink); }
.time[aria-pressed="true"] { border-color: var(--rose); background: var(--blush-soft); color: var(--rose-deep); }
.empty-msg { color: var(--ink-soft); font-size: .97rem; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.field label { display: block; font-weight: 500; font-size: .95rem; margin-bottom: 6px; }
.field label small { color: var(--ink-soft); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--paper); border: 1.5px solid var(--line); border-radius: 10px; padding: 11px 13px;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--rose); outline: none; box-shadow: 0 0 0 3px var(--blush); }
.field.full { grid-column: 1 / -1; }
.field textarea { min-height: 84px; resize: vertical; }
.consent { grid-column: 1 / -1; display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; color: var(--ink-soft); }
.consent input { margin-top: 5px; accent-color: var(--rose); }

.summary { position: sticky; top: 20px; }
.summary h3 { font-size: 1.25rem; }
.summary dl { margin: 0 0 18px; }
.summary .r { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: .97rem; }
.summary .r dt { color: var(--ink-soft); }
.summary .r dd { margin: 0; font-weight: 500; text-align: end; }
.summary .total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 12px; }
.summary .total b { font-family: var(--serif); font-size: 2rem; color: var(--rose-deep); }
.summary .btn { width: 100%; margin-top: 14px; }
.summary .fine { font-size: .85rem; color: var(--ink-soft); margin-top: 12px; }
.pay-area { margin-top: 14px; }
.timer { font-size: .9rem; color: var(--slate); margin-top: 8px; }

.error { background: #fdecec; color: #8f1d2c; border-radius: 10px; padding: 11px 14px; font-size: .95rem; margin-top: 12px; display: none; }
.error.on { display: block; }

.done { text-align: center; padding: 48px 30px; }
.done h2 { justify-content: center; font-size: 2rem; }
.done .mark { width: 72px; height: 72px; border-radius: 50%; background: var(--blush); color: var(--rose-deep); display: grid; place-items: center; margin: 0 auto 18px; }
.done .mark svg { width: 34px; height: 34px; }
.done .code { display: inline-block; font: 700 1.8rem var(--serif); letter-spacing: .12em; background: var(--blush-soft); border: 2px dashed var(--rose); border-radius: 12px; padding: 8px 20px; margin: 8px 0 14px; direction: ltr; }
.done .hero-actions { justify-content: center; }

/* ---------- admin ---------- */
.admin-page { padding: 20px 0 80px; }
.login { max-width: 400px; margin: 60px auto; }
.admin-top { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 22px; }
.tabs button { background: none; border: 0; border-bottom: 3px solid transparent; font: 500 1rem var(--sans); padding: 10px 14px; cursor: pointer; color: var(--ink-soft); }
.tabs button[aria-selected="true"] { color: var(--rose-deep); border-color: var(--rose); }
.legend { display: flex; flex-wrap: wrap; gap: 16px; font-size: .88rem; color: var(--ink-soft); margin-bottom: 14px; }
.legend i { display: inline-block; width: 14px; height: 14px; border-radius: 4px; vertical-align: -2px; margin-inline-end: 6px; border: 2px solid var(--line); }
.legend i.o { background: var(--blush); border-color: var(--rose); }
.legend i.b { background: var(--slate); border-color: var(--slate); }
.legend i.h { background: #fff3d6; border-color: #e0b44c; }
.aday { display: grid; grid-template-columns: 120px 1fr auto; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.aday .dl b { font-family: var(--serif); font-size: 1.1rem; display: block; }
.aday .dl small { color: var(--ink-soft); }
.aday.past { opacity: .45; }
.hrs { display: flex; flex-wrap: wrap; gap: 6px; }
.hr { min-width: 62px; border: 2px solid var(--line); background: var(--white); border-radius: 8px; padding: 6px 8px; font: 500 .9rem var(--sans); cursor: pointer; color: var(--ink-soft); }
.hr.open { background: var(--blush); border-color: var(--rose); color: var(--rose-deep); }
.hr.booked { background: var(--slate); border-color: var(--slate); color: #fff; }
.hr.held { background: #fff3d6; border-color: #e0b44c; color: #6a4a00; }
.hr[disabled] { cursor: default; }
.aday .row-actions { display: flex; gap: 4px; }
.aday .row-actions button { background: none; border: 1px solid var(--line); border-radius: 8px; padding: 5px 9px; font: .82rem var(--sans); cursor: pointer; color: var(--ink-soft); }
.save-bar { position: sticky; bottom: 0; background: var(--white); border-top: 1px solid var(--line); padding: 14px 0; display: flex; gap: 12px; align-items: center; justify-content: space-between; margin-top: 10px; }
.save-bar .muted { font-size: .92rem; }
table.list { width: 100%; border-collapse: collapse; font-size: .95rem; }
table.list th { text-align: start; font-weight: 500; color: var(--ink-soft); padding: 8px 10px; border-bottom: 2px solid var(--line); }
table.list td { padding: 11px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.list td small { color: var(--ink-soft); display: block; }
.tag { display: inline-block; font-size: .8rem; padding: 2px 9px; border-radius: 999px; background: var(--blush); color: var(--rose-deep); }
.tag.zoom { background: #e3eaf3; color: var(--slate); }
.tag.wait { background: #fff3d6; color: #6a4a00; }
.linkbtn { background: none; border: 0; color: var(--rose-deep); text-decoration: underline; cursor: pointer; font: inherit; padding: 0; }
.modal { position: fixed; inset: 0; background: rgba(53, 26, 40, .45); display: none; place-items: center; z-index: 80; padding: 20px; }
.modal.on { display: grid; }
.modal .panel { max-width: 560px; width: 100%; max-height: 92vh; overflow: auto; }
.toast { position: fixed; bottom: 24px; right: 50%; transform: translateX(50%); background: var(--ink); color: #fff; padding: 11px 20px; border-radius: 999px; font-size: .95rem; z-index: 90; opacity: 0; transition: opacity .2s; pointer-events: none; }
.toast.on { opacity: 1; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero .wrap, .who, .prices, .book-grid { grid-template-columns: 1fr; }
  .hero .wrap { gap: 40px; }
  .video-card { max-width: 420px; }
  .method { grid-template-columns: 1fr; gap: 32px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .steps li::after { display: none; }
  .summary { position: static; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  section { padding: 60px 0; }
  .nav { display: none; position: absolute; top: 70px; right: 0; left: 0; background: var(--white); flex-direction: column; padding: 18px; gap: 14px; border-block: 1px solid var(--line); z-index: 40; }
  body.nav-open .nav { display: flex; }
  .nav-toggle { display: block; }
  .site-head { position: relative; }
  .who li { grid-template-columns: 1fr; gap: 4px; }
  .steps { grid-template-columns: 1fr; }
  .choices { grid-template-columns: 1fr; }
  .form-grid, .code-box.on { grid-template-columns: 1fr; }
  .days { grid-template-columns: repeat(4, 1fr); }
  .panel { padding: 22px 18px; }
  .aday { grid-template-columns: 1fr; gap: 8px; }
  .wa-float { width: 54px; height: 54px; inset-inline-end: 16px; bottom: 16px; }
  table.list thead { display: none; }
  table.list tr { display: block; border-bottom: 1px solid var(--line); padding: 8px 0; }
  table.list td { display: block; border: 0; padding: 3px 0; }
}

/* ---------- payment methods ---------- */
.choices.dim { opacity: .45; }
.forgot { grid-column: 1 / -1; font-size: .9rem; margin: 0; }
.pay-methods { display: flex; gap: 8px; justify-content: center; align-items: center; margin-top: 12px; font-size: .8rem; color: var(--ink-soft); }
.pay-methods span { border: 1px solid var(--line); border-radius: 6px; padding: 3px 8px; background: var(--white); line-height: 1.3; }
.pm-pp { font-weight: 600; color: #1d3b7a; font-style: italic; }
.pm-bit { display: inline-block; font: 700 .85rem/1.2 var(--sans); letter-spacing: .02em; color: #fff !important; background: #13a99c !important; border-color: #13a99c !important; border-radius: 6px; padding: 2px 8px; }
.pay-q { font-weight: 600; margin: 4px 0 10px; }
.pay-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; }
.pay-tabs button { border: 2px solid var(--line); background: var(--white); border-radius: 12px; padding: 11px 8px; font: 500 .95rem var(--sans); color: var(--ink); cursor: pointer; display: flex; gap: 6px; align-items: center; justify-content: center; }
.pay-tabs button[aria-selected="true"] { border-color: var(--rose); background: var(--blush-soft); }
.bit-steps { margin: 0 0 14px; padding-inline-start: 20px; font-size: .95rem; }
.bit-steps li { margin-bottom: 8px; }
.bit-phone { display: flex; gap: 12px; align-items: center; margin-top: 6px; font-size: 1.25rem; }
.done-when { font-family: var(--serif); font-size: 1.35rem; font-weight: 700; color: var(--ink); line-height: 1.4; }
.done h2:focus { outline: none; }

/* ---------- mobile sticky bar ---------- */
.m-bar {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 60; background: var(--white); border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); box-shadow: 0 -8px 24px -16px rgba(53, 26, 40, .35);
}
.m-bar small { display: block; color: var(--ink-soft); font-size: .8rem; line-height: 1.3; }
.m-bar b { font-family: var(--serif); font-size: 1.45rem; color: var(--rose-deep); }
.m-bar .btn { padding: 13px 20px; flex: none; }
body.has-mbar { padding-bottom: 84px; }
body.has-mbar .wa-float { bottom: calc(92px + env(safe-area-inset-bottom)); }
.m-err { position: fixed; inset-inline: 12px; bottom: 96px; z-index: 70; background: #8f1d2c; color: #fff; border-radius: 12px; padding: 12px 14px; font-size: .95rem; opacity: 0; transform: translateY(8px); transition: .2s; pointer-events: none; }
.m-err.on { opacity: 1; transform: none; }

/* ---------- admin extras ---------- */
.alert-bar { background: #fff3d6; border: 1px solid #e0b44c; color: #5a3f00; border-radius: 12px; padding: 12px 16px; margin-bottom: 16px; display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.tag.bit { background: #dff5f2; color: #0d6f66; }
.tag.ok { background: #e4f3ea; color: var(--ok); }
.stu-search { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.stu-search input { flex: 1; min-width: 200px; font: inherit; padding: 10px 13px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--white); }
.stu { border: 1px solid var(--line); background: var(--white); border-radius: 14px; margin-bottom: 10px; }
.stu > summary { list-style: none; cursor: pointer; padding: 14px 16px; display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center; }
.stu > summary::-webkit-details-marker { display: none; }
.stu > summary b { font-family: var(--serif); font-size: 1.15rem; }
.stu > summary small { color: var(--ink-soft); grid-column: 1; }
.stu > summary .counts { grid-row: 1 / span 2; grid-column: 2; display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.stu-body { border-top: 1px solid var(--line); padding: 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.stu-body h4 { margin: 0 0 8px; font-size: 1rem; }
.stu-body ul { list-style: none; padding: 0; margin: 0; font-size: .93rem; }
.stu-body li { padding: 6px 0; border-bottom: 1px dashed var(--line); display: flex; justify-content: space-between; gap: 10px; }
.stu-body textarea { width: 100%; min-height: 120px; font: inherit; padding: 10px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--paper); }
.mini-form { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.mini-form .field label { font-size: .85rem; }
.mini-form .full { grid-column: 1 / -1; }
.admin-help { background: var(--blush-soft); border-radius: 14px; padding: 16px 18px; font-size: .93rem; margin-top: 24px; }
.admin-help h3 { font-size: 1.05rem; }
@media (max-width: 720px) {
  .stu-body { grid-template-columns: 1fr; }
  .mini-form { grid-template-columns: 1fr; }
  .tabs { overflow-x: auto; }
  .tabs button { white-space: nowrap; }
}

/* ---------- narrow screens & touch ---------- */
.book-grid > * { min-width: 0; }
@media (max-width: 960px) { .book-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 720px) {
  .aday .row-actions button { padding: 8px 12px; font-size: .88rem; }
  .hr { min-height: 40px; }
  .have-code button { padding: 6px 0; }
}
@media (max-width: 360px) {
  .wrap { padding: 0 14px; }
  .panel { padding: 18px 14px; }
  .days { grid-template-columns: repeat(3, 1fr); }
  .seg button { padding: 8px 10px; font-size: .88rem; }
  .pkg-mode .seg { display: flex; width: 100%; }
  .pkg-mode .seg button { flex: 1; }
  .m-bar .btn { padding: 12px 14px; font-size: .92rem; }
  h1 { font-size: 2.3rem; }
}
@media (max-width: 720px) {
  .stu > summary { grid-template-columns: 1fr; }
  .stu > summary .counts { grid-row: auto; grid-column: 1; justify-content: flex-start; margin-top: 4px; }
  .tabs button { padding: 10px 9px; font-size: .95rem; }
  .done { padding: 36px 18px 90px; }
}

/* ---------- language toggle ---------- */
.lang-toggle { border: 1.5px solid var(--line); background: var(--white); color: var(--ink); border-radius: 999px; padding: 7px 14px; font: 600 .88rem var(--sans); cursor: pointer; min-height: 36px; }
.lang-toggle:hover { border-color: var(--rose); color: var(--rose-deep); }
html[dir="ltr"] .brand span { display: none; }
html[dir="ltr"] .method h3 small { display: none; }
html[dir="ltr"] body { font-size: 17px; }
@media (max-width: 720px) { .site-head .wrap { gap: 10px; } }
@media (max-width: 720px) { .brand b { font-size: 1.3rem; } .brand span { font-size: 1.15rem; } }
html[dir="ltr"] .admin-brand span { display: inline-block; }
.site-head .lang-toggle + .btn { margin-inline-start: 4px; }
@media (max-width: 720px) {
  .admin-brand b { font-size: 1.15rem; white-space: nowrap; }
  html .admin-brand span { display: none; }
  #logout { padding: 9px 14px; white-space: nowrap; }
  .admin-page .tabs button { padding: 10px 7px; font-size: .9rem; }
}
@media (max-width: 720px) {
  .admin-brand { min-width: 0; }
  .admin-brand b { white-space: normal; line-height: 1.15; }
  .site-head .wrap { gap: 8px; }
}
@media (max-width: 400px) {
  .admin-brand b { font-size: 1rem; }
  #logout, .site-head .lang-toggle { padding: 7px 10px; font-size: .85rem; min-height: 36px; }
}
.video-frame video { object-position: 50% 50%; background: #f6dde3; }
