:root {
  --night: #0b1626;
  --night-2: #0e1d33;
  --panel: #12263f;
  --panel-2: #16304f;
  --line: #24405f;
  --ink: #eaf1f8;
  --muted: #9fb3c8;
  --accent: #e86a17;
  --accent-2: #ffb37a;
  --good: #3fb27f;
  --bad: #e5484d;
  --warn: #f5a524;
  --radius: 16px;
  --shadow: 0 18px 50px rgba(2, 8, 18, .45);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  background:
    radial-gradient(1100px 500px at 85% -10%, rgba(232, 106, 23, .14), transparent 60%),
    radial-gradient(900px 600px at -10% 110%, rgba(38, 92, 158, .25), transparent 55%),
    var(--night);
  color: var(--ink);
  min-height: 100vh;
}
h1, h2, h3, .display { font-family: "Plus Jakarta Sans", Inter, sans-serif; }
a { color: var(--accent-2); }
button { font: inherit; cursor: pointer; }
input, select, textarea {
  font: inherit; color: var(--ink); background: var(--night-2);
  border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; width: 100%;
}
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(232, 106, 23, .5); border-color: var(--accent); }
label { display: block; font-size: 13px; color: var(--muted); margin: 0 0 6px; }
.field { margin-bottom: 14px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; }
.row > * { flex: 1 1 180px; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 28px 20px 64px; }
.wrap.narrow { max-width: 760px; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; letter-spacing: .2px; }
.brand .moon {
  width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(145deg, var(--panel-2), var(--night-2)); border: 1px solid var(--line); font-size: 19px;
}
.brand small { display: block; color: var(--muted); font-weight: 500; font-size: 12px; }
.pill {
  display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--night-2); font-size: 12.5px; color: var(--muted);
}
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--good); }
.pill.after .dot { background: var(--accent); }
.pill.bad { color: #ffb3b5; border-color: rgba(229, 72, 77, .5); }
.pill.bad .dot { background: var(--bad); }

.card {
  background: linear-gradient(180deg, var(--panel), var(--night-2));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow);
}
.card + .card { margin-top: 18px; }
.hero h1 { font-size: clamp(30px, 4.6vw, 46px); line-height: 1.08; margin: 6px 0 12px; }
.hero p.lede { color: var(--muted); font-size: 17px; line-height: 1.55; max-width: 62ch; }
.eyebrow { color: var(--accent-2); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: 12px; }
.price { display: flex; align-items: baseline; gap: 10px; margin: 8px 0 2px; }
.price .big { font-size: 40px; font-weight: 800; font-family: "Plus Jakarta Sans", sans-serif; }
.price .per { color: var(--muted); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--accent); color: #fff; border: 0; border-radius: 12px;
  padding: 12px 20px; font-weight: 700; text-decoration: none;
}
.btn:hover { filter: brightness(1.07); }
.btn.ghost { background: transparent; border: 1px solid var(--line); color: var(--ink); }
.btn.small { padding: 8px 14px; border-radius: 10px; font-size: 14px; }
.btn.danger { background: var(--bad); }
.btn:disabled { opacity: .55; cursor: default; }
.notice { border: 1px solid rgba(245, 165, 36, .45); background: rgba(245, 165, 36, .08); border-radius: 12px; padding: 12px 14px; color: #ffd9a0; font-size: 14px; }
.error { border: 1px solid rgba(229, 72, 77, .5); background: rgba(229, 72, 77, .1); border-radius: 12px; padding: 12px 14px; color: #ffc9cb; font-size: 14px; }
.okbox { border: 1px solid rgba(63, 178, 127, .5); background: rgba(63, 178, 127, .1); border-radius: 12px; padding: 12px 14px; color: #b9ecd4; font-size: 14px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.grid { display: grid; gap: 16px; }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) { .grid.cols-3, .grid.cols-2 { grid-template-columns: 1fr; } }
.stat .num { font-size: 30px; font-weight: 800; font-family: "Plus Jakarta Sans", sans-serif; }
.stat .lbl { color: var(--muted); font-size: 13px; margin-top: 2px; }
.headline-money { font-size: clamp(30px, 4vw, 44px); font-weight: 800; font-family: "Plus Jakarta Sans", sans-serif; color: var(--accent-2); margin: 4px 0; }

/* ------- call surface ------- */
.call-layout { display: grid; grid-template-columns: 340px 1fr; gap: 18px; align-items: start; }
@media (max-width: 900px) { .call-layout { grid-template-columns: 1fr; } .phone { position: static; } }
.phone {
  background: linear-gradient(180deg, #0d1c31, #0a1524);
  border: 1px solid var(--line); border-radius: 26px; padding: 20px; box-shadow: var(--shadow);
  position: sticky; top: 18px;
}
.phone .who { text-align: center; }
.phone .avatar {
  width: 74px; height: 74px; border-radius: 50%; margin: 6px auto 10px; display: grid; place-items: center;
  background: radial-gradient(circle at 32% 28%, #2b4a73, #12263f); border: 2px solid var(--line);
  font-size: 30px; font-weight: 800; font-family: "Plus Jakarta Sans", sans-serif; color: var(--accent-2);
}
.phone .status { text-align: center; color: var(--muted); font-size: 14px; min-height: 20px; }
.phone .timer { text-align: center; font-size: 26px; font-weight: 700; font-variant-numeric: tabular-nums; margin: 4px 0 14px; }
.phone .actions { display: flex; gap: 10px; justify-content: center; }
.call-btn {
  width: 64px; height: 64px; border-radius: 50%; border: 0; font-size: 24px; color: #fff;
  background: var(--good); box-shadow: 0 10px 24px rgba(63, 178, 127, .35);
}
.call-btn.end { background: var(--bad); box-shadow: 0 10px 24px rgba(229, 72, 77, .35); }
.mini-btn {
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: var(--night-2); color: var(--ink); font-size: 18px;
}
.mini-btn.on { border-color: var(--accent); color: var(--accent-2); }
.transcript {
  background: linear-gradient(180deg, var(--panel), var(--night-2));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; min-height: 420px;
  display: flex; flex-direction: column; box-shadow: var(--shadow);
}
.transcript .log { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding-right: 4px; }
.bubble { max-width: 82%; padding: 11px 14px; border-radius: 16px; line-height: 1.45; font-size: 15px; white-space: pre-wrap; }
.bubble.ava { align-self: flex-start; background: var(--panel-2); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.bubble.caller { align-self: flex-end; background: #7a3c10; background: linear-gradient(180deg, #8a4511, #6e360d); border-bottom-right-radius: 6px; }
.bubble .meta { display: block; font-size: 11px; color: var(--muted); margin-bottom: 4px; }
.bubble.caller .meta { color: #f3c9a6; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 10px; }
.chip {
  border: 1px solid var(--line); background: var(--night-2); color: var(--ink);
  border-radius: 999px; padding: 8px 14px; font-size: 13.5px;
}
.chip:hover { border-color: var(--accent); }
.chip.priority { border-color: rgba(229, 72, 77, .6); color: #ffc9cb; }
.composer { display: flex; gap: 10px; }
.composer input { flex: 1; }
.booked-banner {
  border: 1px solid rgba(63, 178, 127, .55); background: rgba(63, 178, 127, .12);
  border-radius: 14px; padding: 16px; margin-top: 14px;
}
.booked-banner .ref { font-weight: 800; font-size: 18px; }

/* ------- admin ------- */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.tab {
  border: 1px solid var(--line); background: var(--night-2); color: var(--muted);
  border-radius: 999px; padding: 9px 16px; font-weight: 600;
}
.tab.active { color: var(--ink); border-color: var(--accent); background: var(--panel-2); }
table.list { width: 100%; border-collapse: collapse; }
table.list th, table.list td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); font-size: 14px; vertical-align: top; }
table.list th { color: var(--muted); font-weight: 600; font-size: 12.5px; text-transform: uppercase; letter-spacing: .06em; }
tr.clickable { cursor: pointer; }
tr.clickable:hover td { background: rgba(255, 255, 255, .03); }
.badge { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; border: 1px solid var(--line); }
.badge.priority { color: #ffc9cb; border-color: rgba(229, 72, 77, .6); background: rgba(229, 72, 77, .12); }
.badge.booked { color: #b9ecd4; border-color: rgba(63, 178, 127, .5); }
.badge.ended { color: var(--muted); }
.badge.live { color: #b9ecd4; border-color: rgba(63, 178, 127, .5); }
.kv { display: grid; grid-template-columns: 170px 1fr; gap: 6px 14px; font-size: 14px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
.check { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.check input { width: auto; }
.check .state { margin-left: auto; }
footer.foot { color: var(--muted); font-size: 12.5px; text-align: center; padding: 26px 0 8px; }

/* Utilities (the live site's CSP discards inline styles — classes only) */
.mt-18 { margin-top: 18px; } .mt-16 { margin-top: 16px; } .mt-14 { margin-top: 14px; }
.mt-12 { margin-top: 12px; } .mt-10 { margin-top: 10px; } .mt-6 { margin-top: 6px; } .mt-4 { margin-top: 4px; }
.span-all { grid-column: 1 / -1; }
.pad-0 { padding: 0; }
.m-0 { margin: 0; }
.center { text-align: center; }
.ml-auto { margin-left: auto; }
.transcript-log { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.divider { border-bottom: 1px solid var(--line); padding: 12px 0; }
.divider-10 { border-bottom: 1px solid var(--line); padding: 10px 0; }
.blockdiv { border-bottom: 1px solid var(--line); padding-bottom: 12px; margin-bottom: 12px; }
.admin-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.align-end { align-items: end; }
.day-name { flex: 0 0 110px; }
.day-closed { flex: 0 0 90px; }
@media (max-width: 900px) {
  .phone { padding: 16px; }
  .phone .explain, .phone .kv { display: none; }
  .transcript { min-height: 320px; }
}
