/* ============================================================
   Booya design system — Book. Manage. Grow.
   Mobile-first. High contrast. Red for every primary action.
   ============================================================ */
:root {
  --red: #E8121B;
  --red-dark: #B50E15;
  --tint: #FDECED;
  --text: #111111;
  --muted: #888888;
  --bg: #F7F7F7;
  --white: #FFFFFF;
  --border: #E5E5E5;
  --green: #12B76A;
  --green-tint: #E8F9F2;
  --amber: #F79009;
  --amber-tint: #FEF3E2;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 3px rgba(0,0,0,.04), 0 4px 24px rgba(0,0,0,.05);
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ---------- Layout ---------- */
.wrap { max-width: 480px; margin: 0 auto; padding: 0 18px; }
.wrap-wide { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.page { min-height: 100vh; padding-bottom: 40px; }
.center-screen { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; }
.stack > * + * { margin-top: 14px; }
.row { display: flex; align-items: center; gap: 12px; }
.between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.grow { flex: 1; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.center { text-align: center; }
.mt8{margin-top:8px}.mt16{margin-top:16px}.mt24{margin-top:24px}.mt32{margin-top:32px}
.mb8{margin-bottom:8px}.mb16{margin-bottom:16px}.mb24{margin-bottom:24px}

/* ---------- Type ---------- */
.display { font-size: 34px; font-weight: 900; letter-spacing: -1px; color: var(--red); line-height: 1; }
h1, .h1 { font-size: 26px; font-weight: 700; letter-spacing: -.5px; line-height: 1.15; }
h2, .h2 { font-size: 19px; font-weight: 700; }
h3, .h3 { font-size: 15px; font-weight: 600; }
.label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.micro { font-size: 11px; color: var(--muted); }
.price { font-weight: 700; color: var(--text); white-space: nowrap; }

/* ---------- Brand header ---------- */
.brandbar { display: flex; align-items: center; gap: 9px; padding: 18px 0; }
.brandbar .logo { width: 26px; height: 32px; }
.brandbar .word { font-size: 22px; font-weight: 900; color: var(--red); letter-spacing: -.5px; }
.brandbar .tag { font-size: 11px; color: var(--muted); font-weight: 500; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 15px 20px; border: none; border-radius: 999px;
  font-family: var(--font); font-size: 15px; font-weight: 700; cursor: pointer;
  background: var(--red); color: #fff; transition: background .15s, transform .05s, opacity .15s;
}
.btn:hover { background: var(--red-dark); }
.btn:active { transform: scale(.985); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-ghost { background: transparent; color: var(--red); border: 1.5px solid var(--red); }
.btn-ghost:hover { background: var(--tint); }
.btn-dark { background: var(--text); }
.btn-dark:hover { background: #000; }
.btn-sm { width: auto; padding: 9px 16px; font-size: 13px; }
.btn-block { width: 100%; }
.btn-row { display: flex; gap: 10px; }
.btn-row .btn { flex: 1; }

/* ---------- Inputs ---------- */
.field { margin-bottom: 14px; }
.field > label { display: block; font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 6px; text-transform: uppercase; letter-spacing: .04em; }
.input, select.input, textarea.input {
  width: 100%; padding: 13px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-family: var(--font); font-size: 15px; background: var(--white); color: var(--text); outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.input:focus { border-color: var(--red); box-shadow: 0 0 0 3px var(--tint); }
textarea.input { resize: vertical; min-height: 80px; }
.input-prefix { display: flex; align-items: center; border: 1px solid var(--border); border-radius: var(--radius-sm); background: #fff; overflow: hidden; }
.input-prefix:focus-within { border-color: var(--red); box-shadow: 0 0 0 3px var(--tint); }
.input-prefix span { padding: 0 12px; color: var(--muted); font-weight: 600; background: var(--bg); align-self: stretch; display: flex; align-items: center; }
.input-prefix input { border: none; flex: 1; padding: 13px 14px; font-size: 15px; outline: none; font-family: var(--font); }

/* ---------- Cards ---------- */
.card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
.card + .card { margin-top: 14px; }
.card-tap { cursor: pointer; transition: border-color .15s, transform .06s, box-shadow .15s; }
.card-tap:hover { border-color: var(--red); box-shadow: var(--shadow); }
.card-tap:active { transform: scale(.99); }
.selectable { border: 1.5px solid var(--border); border-radius: var(--radius); padding: 16px; cursor: pointer; background: #fff; transition: all .15s; }
.selectable.on { border-color: var(--red); background: var(--tint); }

/* ---------- Badges ---------- */
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 999px; text-transform: uppercase; letter-spacing: .03em; }
.badge-green { background: var(--green-tint); color: var(--green); }
.badge-amber { background: var(--amber-tint); color: var(--amber); }
.badge-red { background: var(--tint); color: var(--red); }
.badge-gray { background: #f0f0f0; color: var(--muted); }

/* ---------- Service / list rows ---------- */
.list-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm); }
.list-row + .list-row { margin-top: 10px; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--red); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px; flex-shrink: 0; }

/* ---------- Stepper dots ---------- */
.dots { display: flex; gap: 7px; justify-content: center; }
.dots span { width: 7px; height: 7px; border-radius: 50%; background: var(--border); transition: all .25s; }
.dots span.on { background: var(--red); width: 22px; border-radius: 999px; }

/* ---------- Category grid ---------- */
.cat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cat-card { background: #fff; border: 1.5px solid var(--border); border-radius: var(--radius); padding: 22px 14px; text-align: center; cursor: pointer; transition: all .15s; }
.cat-card:hover, .cat-card.on { border-color: var(--red); background: var(--tint); }
.cat-card .emoji { font-size: 30px; }
.cat-card .name { font-weight: 600; margin-top: 8px; font-size: 14px; }

/* ---------- Time slot grid ---------- */
.slot-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.slot { padding: 12px 4px; text-align: center; border: 1px solid var(--border); border-radius: var(--radius-sm); background: #fff; cursor: pointer; font-weight: 600; font-size: 14px; transition: all .12s; }
.slot:hover { border-color: var(--red); }
.slot.on { background: var(--red); color: #fff; border-color: var(--red); }

/* ---------- Day pills ---------- */
.day-pills { display: flex; gap: 6px; flex-wrap: wrap; }
.day-pill { flex: 1; min-width: 40px; text-align: center; padding: 9px 0; border: 1px solid var(--border); border-radius: 999px; cursor: pointer; font-size: 12px; font-weight: 600; background: #fff; }
.day-pill.on { background: var(--red); color: #fff; border-color: var(--red); }

/* ---------- Info box ---------- */
.info-box { background: var(--tint); border-radius: var(--radius); padding: 16px; }
.info-box .line { display: flex; justify-content: space-between; padding: 5px 0; font-size: 14px; }
.info-box .line .k { color: var(--muted); }
.info-box .line .v { font-weight: 600; text-align: right; }
.divider { height: 1px; background: var(--border); margin: 10px 0; }

/* ---------- Toast ---------- */
.toast-host { position: fixed; top: 16px; left: 0; right: 0; display: flex; flex-direction: column; align-items: center; gap: 8px; z-index: 9999; pointer-events: none; }
.toast { background: var(--text); color: #fff; padding: 12px 18px; border-radius: 999px; font-size: 14px; font-weight: 600; box-shadow: var(--shadow); animation: toastIn .25s ease; max-width: 90%; }
.toast.err { background: var(--red); }
.toast.ok { background: var(--green); }
@keyframes toastIn { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: none; } }

/* ---------- Loader ---------- */
.spinner { width: 22px; height: 22px; border: 3px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
.spinner-red { width: 34px; height: 34px; border: 4px solid var(--tint); border-top-color: var(--red); border-radius: 50%; animation: spin .7s linear infinite; margin: 0 auto; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading-screen { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; min-height: 60vh; }

/* ---------- Modal / bottom sheet ---------- */
.overlay { position: fixed; inset: 0; background: rgba(0,0,0,.45); display: flex; align-items: flex-end; justify-content: center; z-index: 1000; animation: fade .2s; }
@keyframes fade { from { opacity: 0; } }
.sheet { background: #fff; width: 100%; max-width: 480px; border-radius: 20px 20px 0 0; padding: 22px 18px 30px; animation: sheetUp .25s ease; }
@keyframes sheetUp { from { transform: translateY(40px); } }
@media (min-width: 600px) { .overlay { align-items: center; } .sheet { border-radius: 20px; } }

/* ---------- Success tick ---------- */
.tick { width: 76px; height: 76px; border-radius: 50%; background: var(--green-tint); display: flex; align-items: center; justify-content: center; margin: 0 auto; animation: pop .35s ease; }
.tick svg { width: 40px; height: 40px; }
@keyframes pop { 0% { transform: scale(.4); opacity: 0; } 70% { transform: scale(1.1); } 100% { transform: scale(1); opacity: 1; } }

/* ---------- Stat cards ---------- */
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stat { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; }
.stat .n { font-size: 26px; font-weight: 800; letter-spacing: -1px; }
.stat .l { font-size: 12px; color: var(--muted); margin-top: 2px; }

/* ---------- Bottom tab bar ---------- */
.tabbar { position: fixed; bottom: 0; left: 0; right: 0; background: #fff; border-top: 1px solid var(--border); display: flex; z-index: 100; max-width: 480px; margin: 0 auto; }
.tabbar a { flex: 1; text-align: center; padding: 9px 0 8px; font-size: 10px; font-weight: 600; color: var(--muted); }
.tabbar a.on { color: var(--red); }
.tabbar a .ic { font-size: 19px; display: block; margin-bottom: 1px; }
.has-tabbar { padding-bottom: 76px; }

/* ---------- Empty state ---------- */
.empty { text-align: center; padding: 48px 20px; color: var(--muted); }
.empty .big { font-size: 40px; margin-bottom: 8px; }

/* ---------- Landing ---------- */
.hero { padding: 30px 0 10px; }
.hero h1 { font-size: 34px; line-height: 1.1; }
.hero .lead { color: var(--muted); font-size: 16px; margin-top: 12px; }
.feature { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; }
.feature .num { width: 30px; height: 30px; border-radius: 50%; background: var(--red); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0; font-size: 14px; }
.feature h3 { font-size: 15px; }
.feature p { color: var(--muted); font-size: 13px; }
.fee-table { background: var(--tint); border: 1.5px solid var(--red); border-radius: var(--radius); padding: 18px; }
.fee-table .line { display: flex; justify-content: space-between; padding: 7px 0; }
.fee-table .line b { color: var(--red); }
.fee-table .line.green b { color: var(--green); }

/* ---------- Admin / dashboard sidebar (desktop) ---------- */
.shell { display: flex; min-height: 100vh; }
.side { width: 230px; background: #fff; border-right: 1px solid var(--border); padding: 18px 14px; flex-shrink: 0; }
.side .nav a { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: var(--radius-sm); color: var(--text); font-weight: 600; font-size: 14px; margin-bottom: 3px; cursor: pointer; }
.side .nav a:hover { background: var(--bg); }
.side .nav a.on { background: var(--tint); color: var(--red); }
.main { flex: 1; padding: 26px 30px; max-width: 100%; overflow-x: auto; }
@media (max-width: 760px) { .side { display: none; } .main { padding: 18px; } }

/* ---------- Table ---------- */
.table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; font-size: 13px; }
.table th { text-align: left; padding: 12px 14px; background: var(--bg); font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.table td { padding: 12px 14px; border-top: 1px solid var(--border); }
.table tr:hover td { background: #fafafa; }

.link { color: var(--red); font-weight: 600; cursor: pointer; }
.back { color: var(--muted); font-weight: 600; cursor: pointer; font-size: 14px; display: inline-flex; gap: 5px; align-items: center; margin-bottom: 6px; }

/* ============================================================
   Landing v2 — Instagram link-in-bio, conversion-focused
   ============================================================ */
.lp-band { width: 100%; }
.lp-band--tint { background: var(--tint); }
.lp-band--dark { background: var(--text); color: #fff; }
.lp-band--white { background: var(--white); }
.lp-sec { padding: 44px 0; }
.lp-sec--tight { padding: 30px 0; }

/* Sticky brand header */
.lp-head { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: saturate(180%) blur(8px); border-bottom: 1px solid var(--border); }

/* Hero */
.lp-hero h1 { font-size: 34px; line-height: 1.08; letter-spacing: -1px; }
.lp-hero h1 .hl { color: var(--red); }
.lp-hero .lead { color: var(--muted); font-size: 17px; margin-top: 14px; }
.lp-pill { display: inline-flex; align-items: center; gap: 7px; background: var(--green-tint); color: var(--green); font-weight: 700; font-size: 12px; padding: 6px 13px; border-radius: 999px; }
.lp-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(18,183,106,.5); animation: pulse 1.8s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(18,183,106,.5); } 70% { box-shadow: 0 0 0 8px rgba(18,183,106,0); } 100% { box-shadow: 0 0 0 0 rgba(18,183,106,0); } }
.lp-trust { font-size: 12px; color: var(--muted); margin-top: 14px; }
.lp-trust b { color: var(--text); }

/* Phone / WhatsApp proof card */
.wa-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px; max-width: 340px; margin: 24px auto 0; }
.wa-top { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.wa-logo { width: 34px; height: 34px; border-radius: 50%; background: #25D366; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.wa-top .t { font-weight: 700; font-size: 14px; }
.wa-top .s { font-size: 11px; color: var(--muted); }
.wa-msg { background: #E8F9F2; border-radius: 12px; padding: 12px 14px; font-size: 14px; line-height: 1.45; position: relative; }
.wa-msg + .wa-msg { margin-top: 8px; }
.wa-msg b { color: var(--text); }
.wa-msg .time { display: block; font-size: 10px; color: var(--muted); text-align: right; margin-top: 4px; }

/* Live ticker */
.ticker { overflow: hidden; }
.ticker-track { display: flex; gap: 10px; width: max-content; animation: ticker 22s linear infinite; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.ticker-item { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--border); border-radius: 999px; padding: 8px 14px; font-size: 13px; white-space: nowrap; }
.ticker-item .ok { color: var(--green); }

/* How it works steps */
.step { display: flex; gap: 14px; align-items: flex-start; }
.step + .step { margin-top: 18px; }
.step .num { width: 34px; height: 34px; border-radius: 50%; background: var(--red); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; flex-shrink: 0; }
.step h3 { font-size: 16px; }
.step p { color: var(--muted); font-size: 14px; margin-top: 2px; }

/* Benefits */
.benefit { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--border); }
.benefit:last-child { border-bottom: none; }
.benefit .ic { width: 30px; height: 30px; border-radius: 9px; background: var(--tint); display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; }
.benefit b { font-size: 15px; }
.benefit p { color: var(--muted); font-size: 13px; margin-top: 1px; }

/* Stat row */
.lp-stats { display: flex; gap: 10px; }
.lp-stats .s { flex: 1; text-align: center; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 8px; }
.lp-stats .s .n { font-size: 24px; font-weight: 900; letter-spacing: -1px; color: var(--red); }
.lp-stats .s .l { font-size: 11px; color: var(--muted); margin-top: 2px; }

/* Testimonials */
.tcard { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; }
.tcard + .tcard { margin-top: 12px; }
.tcard .quote { font-size: 14px; line-height: 1.5; }
.tcard .who { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.tcard .who .avatar { width: 36px; height: 36px; font-size: 13px; }
.tcard .who .nm { font-weight: 700; font-size: 13px; }
.tcard .who .ro { font-size: 11px; color: var(--muted); }
.stars { color: var(--amber); font-size: 13px; letter-spacing: 1px; }

/* Pricing */
.price-card { background: #fff; border: 2px solid var(--red); border-radius: var(--radius); padding: 22px; text-align: center; }
.price-card .big { font-size: 30px; font-weight: 900; letter-spacing: -1px; }
.price-card .big span { color: var(--green); }
.price-card .sub { color: var(--muted); font-size: 13px; margin-top: 4px; }
.price-line { display: flex; align-items: center; gap: 8px; text-align: left; font-size: 14px; padding: 7px 0; }
.price-line .ok { color: var(--green); font-weight: 800; }

/* FAQ */
.faq summary { cursor: pointer; font-weight: 600; padding: 14px 0; border-bottom: 1px solid var(--border); list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--red); font-size: 20px; font-weight: 400; }
.faq details[open] summary::after { content: '–'; }
.faq p { color: var(--muted); font-size: 14px; padding: 4px 0 14px; }

/* Sticky mobile CTA */
.lp-sticky { position: fixed; bottom: 0; left: 0; right: 0; z-index: 60; background: rgba(255,255,255,.95); backdrop-filter: blur(8px); border-top: 1px solid var(--border); padding: 10px 18px calc(10px + env(safe-area-inset-bottom)); }
.lp-sticky .wrap { padding: 0 18px; }
.lp-foot { padding-bottom: 96px; }
