/* ============================================================
   AAA Studio — design system
   Clean minimal monochrome · generous whitespace · responsive
   ============================================================ */
:root {
  --ink: #101010;
  --ink-soft: #3d3d3d;
  --muted: #7a7a7a;
  --line: #e8e8e4;
  --line-strong: #d3d3ce;
  --paper: #ffffff;
  --soft: #f7f7f4;
  --soft-2: #f1f1ed;
  --accent: #111111;
  --ok: #1b7a4b;
  --warn: #9a6b00;
  --danger: #a52020;
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --shadow: 0 1px 2px rgba(16, 16, 16, 0.04), 0 12px 32px -18px rgba(16, 16, 16, 0.18);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.028em; line-height: 1.15; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--ink); color: #fff; }

/* ---------------- typography helpers ---------------- */
.eyebrow {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}
.serif { font-family: var(--font); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.xsmall { font-size: 12px; }
.mono { font-family: var(--mono); font-size: 13px; letter-spacing: -0.01em; }
.nowrap { white-space: nowrap; }
.center { text-align: center; }
.right { text-align: right; }
.strong { font-weight: 600; }
.h1 { font-size: clamp(34px, 6vw, 60px); letter-spacing: -0.04em; }
.h2 { font-size: clamp(24px, 3.4vw, 34px); }
.h3 { font-size: clamp(19px, 2.2vw, 23px); }

/* ---------------- layout ---------------- */
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.wrap-narrow { width: 100%; max-width: 760px; margin: 0 auto; padding: 0 24px; }
.stack { display: grid; gap: 20px; }
.stack-sm { display: grid; gap: 12px; }
.stack-lg { display: grid; gap: 36px; }
.row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.between { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.grow { flex: 1 1 auto; min-width: 0; }
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }
.section { padding: 72px 0; }
.section-sm { padding: 40px 0; }

/* ---------------- header / footer ---------------- */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
/* the text block next to the mark used to be separated by a <br>, which pushed
   the two lines apart and broke the vertical centering of the logo */
.brand-text { display: flex; flex-direction: column; justify-content: center; gap: 1px; min-width: 0; }
/* the text block must be allowed to shrink, otherwise a long studio name
   pushes out of the header on small screens */
.brand > span:last-child { min-width: 0; }
.brand-mark {
  width: 36px; height: 36px; flex: 0 0 36px;
  border: 1px solid var(--ink);
  border-radius: 10px;
  display: grid; place-items: center;
  font-size: 12px; font-weight: 700; letter-spacing: 0.02em;
  background: var(--ink); color: #fff;
  overflow: hidden;
}
.brand-mark img { width: 100%; height: 100%; object-fit: cover; }
.brand-name { font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; display: block; }
.brand-sub { font-size: 11px; line-height: 1.2; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; }
/* inside the site header the two lines must always stay on one line each */
.site-header .brand-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.site-header .brand-sub { white-space: nowrap; }
.nav-links { display: flex; align-items: center; gap: 22px; flex: 0 0 auto; }
.nav-links a { font-size: 14px; color: var(--ink-soft); }
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--ink); font-weight: 500; }
/* a plain `.nav-links a` rule is MORE specific than `.btn`, so without this the
   CTA button gets dark text on a dark background (invisible/unreadable) */
.nav-links a.btn, .nav-links a.btn:hover, .nav-links a.btn.active { color: #fff; }

.site-footer { border-top: 1px solid var(--line); padding: 40px 0 56px; color: var(--muted); font-size: 13px; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }

/* ---------------- buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; min-height: 46px;
  border-radius: 999px; border: 1px solid var(--ink);
  background: var(--ink); color: #fff;
  font-size: 14px; font-weight: 500; letter-spacing: -0.01em;
  cursor: pointer; transition: transform 0.12s ease, background 0.15s ease, opacity 0.15s ease;
  white-space: nowrap; text-align: center;
}
.btn:hover { background: #2a2a2a; }
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn.is-disabled { opacity: 0.4; pointer-events: none; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--soft); }
.btn-quiet { background: transparent; border-color: transparent; color: var(--ink-soft); padding-left: 10px; padding-right: 10px; }
.btn-quiet:hover { background: var(--soft); color: var(--ink); }
.btn-sm { min-height: 36px; padding: 7px 14px; font-size: 13px; }
.btn-xs { min-height: 30px; padding: 4px 11px; font-size: 12px; }
.btn-block { width: 100%; }
.btn-danger { background: #fff; color: var(--danger); border-color: #e3c8c8; }
.btn-danger:hover { background: #fdf4f4; }
.btn-accent { background: var(--accent); border-color: var(--accent); }

/* grid/flex items default to min-content min-width, which lets a wide child
   (e.g. a data table with min-width) stretch the whole page on mobile */
.stack > *, .stack-sm > *, .stack-lg > *,
.split > *, .grid-2 > *, .grid-3 > *, .grid-4 > * { min-width: 0; }

/* ---------------- cards & surfaces ---------------- */
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 24px;
}
.card-lg { padding: 32px; border-radius: var(--r-lg); }
.card-flat { border-radius: var(--r-md); border: 1px solid var(--line); padding: 18px; background: var(--paper); }
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.card-title { font-size: 16px; font-weight: 600; letter-spacing: -0.02em; }
.card-sub { font-size: 13px; color: var(--muted); margin-top: 3px; }
.panel-soft { background: var(--soft); border: 1px solid var(--line); border-radius: var(--r-md); padding: 20px; }

/* ---------------- forms ---------------- */
.field { display: grid; gap: 7px; }
.label { font-size: 12px; font-weight: 500; color: var(--ink-soft); letter-spacing: 0.01em; }
.hint { font-size: 12px; color: var(--muted); }
.input, .select, .textarea {
  width: 100%; padding: 11px 14px;
  border: 1px solid var(--line-strong); border-radius: 10px;
  background: #fff; font-size: 14px; outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  min-height: 44px;
}
.textarea { min-height: 96px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus {
  border-color: var(--ink); box-shadow: 0 0 0 3px rgba(16, 16, 16, 0.07);
}
.input::placeholder, .textarea::placeholder { color: #a9a9a4; }
.form-grid { display: grid; gap: 18px; grid-template-columns: 1fr 1fr; }
.form-grid .full { grid-column: 1 / -1; }
.check { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.check input { width: 18px; height: 18px; accent-color: var(--ink); }

/* ---------------- badges / status ---------------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px; border-radius: 999px;
  font-size: 11.5px; font-weight: 500; letter-spacing: 0.01em;
  border: 1px solid var(--line-strong); color: var(--ink-soft); background: var(--soft);
  white-space: nowrap;
}
.badge-ok { color: #145f3c; background: #eef7f1; border-color: #cbe6d6; }
.badge-warn { color: #7d5700; background: #fdf7e8; border-color: #ecdcb0; }
.badge-danger { color: #8d1c1c; background: #fdf1f1; border-color: #f0d3d3; }
.badge-ink { background: var(--ink); color: #fff; border-color: var(--ink); }
.badge-muted { background: var(--soft-2); color: var(--muted); border-color: var(--line); }
.dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; display: inline-block; }

/* ---------------- hero (public) ---------------- */
.hero { padding: 76px 0 56px; border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: end; }
.hero h1 { font-size: clamp(38px, 7vw, 76px); letter-spacing: -0.045em; line-height: 0.98; }
.hero-lead { font-size: clamp(15px, 1.6vw, 17px); color: var(--ink-soft); max-width: 44ch; margin-top: 22px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.hero-meta { display: grid; gap: 22px; border-left: 1px solid var(--line); padding-left: 32px; }
.meta-item .eyebrow { margin-bottom: 4px; }
.meta-item .val { font-size: 14px; color: var(--ink-soft); }

/* ---------------- steps ---------------- */
.steps { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 28px; }
.step { display: flex; align-items: center; gap: 9px; font-size: 13px; color: var(--muted); }
.step .num {
  width: 24px; height: 24px; border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: grid; place-items: center; font-size: 11.5px; font-weight: 600;
  background: #fff; color: var(--muted);
}
.step.active { color: var(--ink); font-weight: 500; }
.step.active .num { background: var(--ink); border-color: var(--ink); color: #fff; }
.step.done .num { background: #fff; border-color: var(--ink); color: var(--ink); }
.step-line { width: 26px; height: 1px; background: var(--line-strong); }

/* ---------------- package picker ---------------- */
.pkg-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pkg {
  text-align: left; cursor: pointer; background: #fff;
  border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 20px; transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
  display: grid; gap: 6px; align-content: start;
}
.pkg:hover { border-color: var(--line-strong); }
.pkg.selected { border-color: var(--ink); box-shadow: 0 0 0 2px rgba(16,16,16,0.08); }
.pkg-name { font-weight: 600; font-size: 15px; letter-spacing: -0.02em; }
.pkg-price { font-size: 19px; font-weight: 600; letter-spacing: -0.03em; margin-top: 2px; }
.pkg-desc { font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.pkg-dur { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }

/* ---------------- date strip ---------------- */
.date-strip { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 10px; scrollbar-width: thin; }
.date-btn {
  flex: 0 0 auto; width: 66px; padding: 10px 0;
  border: 1px solid var(--line); border-radius: 12px; background: #fff;
  text-align: center; cursor: pointer; transition: all 0.15s ease;
}
.date-btn:hover { border-color: var(--line-strong); }
.date-btn.selected { background: var(--ink); border-color: var(--ink); color: #fff; }
.date-btn .dow { font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.65; }
.date-btn .dnum { font-size: 18px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.3; }
.date-btn .dmon { font-size: 10.5px; opacity: 0.6; }
.date-btn.closed { opacity: 0.42; background: var(--soft); }
.date-btn.disabled { opacity: 0.35; cursor: not-allowed; }

/* ---------------- week calendar ---------------- */
.cal-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.cal-range { font-size: 14px; font-weight: 500; letter-spacing: -0.01em; }
.cal-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md); }
.week { display: grid; grid-template-columns: 64px repeat(7, minmax(96px, 1fr)); min-width: 720px; }
.week-head { display: contents; }
.week-head .cell {
  padding: 12px 8px; text-align: center; border-bottom: 1px solid var(--line);
  background: var(--soft); position: sticky; top: 0; z-index: 2;
}
.week-head .cell .dow { font-size: 10.5px; letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted); }
.week-head .cell .dnum { font-size: 15px; font-weight: 600; }
.week-head .cell.is-today .dnum { text-decoration: underline; text-underline-offset: 4px; }
.week-head .corner { border-right: 1px solid var(--line); }
.week-body { display: contents; }
.time-col { border-right: 1px solid var(--line); }
.time-cell { height: 40px; font-size: 10.5px; color: var(--muted); text-align: right; padding: 0 8px 0 0; transform: translateY(-6px); }
.slot-col { border-right: 1px solid var(--line); }
.slot-col:last-child { border-right: 0; }
.slot {
  height: 40px; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; color: var(--muted); cursor: default; user-select: none;
  transition: background 0.1s ease, color 0.1s ease;
  background: #fff;
}
.slot.free { cursor: pointer; color: transparent; }
.slot.free:hover { background: var(--soft-2); }
.slot.free.in-range { background: var(--ink); color: #fff; }
.slot.booked { background: repeating-linear-gradient(135deg, #f3f3f0, #f3f3f0 5px, #ececE7 5px, #ececE7 10px); color: #9a9a94; cursor: not-allowed; }
.slot.blackout { background: #f3f3f0; color: #a8a8a2; cursor: not-allowed; }
.slot.past { background: #fbfbf9; color: #c4c4bf; }
.slot-label { font-size: 10px; letter-spacing: 0.02em; }

/* mobile slot list */
.day-view { display: none; }
.slot-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.slot-pill {
  border: 1px solid var(--line-strong); border-radius: 10px; background: #fff;
  padding: 11px 6px; font-size: 13px; text-align: center; cursor: pointer;
  transition: all 0.13s ease;
}
.slot-pill.selected { background: var(--ink); border-color: var(--ink); color: #fff; }
.slot-pill.booked, .slot-pill.past, .slot-pill.blackout {
  background: var(--soft); border-color: var(--line); color: #b0b0aa;
  text-decoration: line-through; cursor: not-allowed;
}

/* ---------------- summary bar ---------------- */
.booking-bar {
  position: sticky; bottom: 0; z-index: 20;
  background: rgba(255,255,255,0.94); backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  padding: 14px 0; margin-top: 24px;
}
.booking-bar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }

/* ---------------- tables ---------------- */
.table-wrap { border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; background: #fff; }
.table-scroll { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 620px; }
.tbl th {
  text-align: left; font-weight: 500; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); padding: 13px 16px; background: var(--soft); border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.tbl td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr:hover { background: #fcfcfa; }
.tbl .num { font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.tbl .tight { padding-top: 10px; padding-bottom: 10px; }

/* ---------------- stats ---------------- */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat-grid > * { min-width: 0; }
.stat-grid.three { grid-template-columns: repeat(3, 1fr); }
.stat {
  border: 1px solid var(--line); border-radius: var(--r-md); padding: 22px; background: #fff;
  min-width: 0;
}
.stat .k { font-size: 11px; letter-spacing: 0.11em; text-transform: uppercase; color: var(--muted); }
.stat .v { font-size: clamp(22px, 2.4vw, 30px); font-weight: 600; letter-spacing: -0.035em; margin-top: 10px; font-variant-numeric: tabular-nums; }
.stat .d { font-size: 12px; color: var(--muted); margin-top: 6px; }
.stat.dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.stat.dark .k, .stat.dark .d { color: rgba(255,255,255,0.6); }

/* ---------------- charts ---------------- */
.chart-box { border: 1px solid var(--line); border-radius: var(--r-md); padding: 22px; background: #fff; }
.chart-legend { display: flex; gap: 18px; font-size: 12px; color: var(--muted); flex-wrap: wrap; }
.legend-key { display: inline-flex; align-items: center; gap: 6px; }
.legend-key i { width: 10px; height: 10px; border-radius: 2px; display: inline-block; background: var(--ink); }
.legend-key i.light { background: var(--line-strong); }

/* ---------------- admin shell ---------------- */
.admin { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.sidebar {
  border-right: 1px solid var(--line); padding: 22px 16px;
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
  display: flex; flex-direction: column; gap: 22px; background: #fff;
}
.side-brand { display: flex; align-items: center; gap: 11px; padding: 4px 8px; }
.side-nav { display: grid; gap: 2px; }
.side-label { font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: #a3a39d; padding: 14px 10px 6px; }
.side-link {
  display: flex; align-items: center; gap: 11px; padding: 9px 11px;
  border-radius: 9px; font-size: 13.5px; color: var(--ink-soft);
}
.side-link:hover { background: var(--soft); color: var(--ink); }
.side-link.active { background: var(--ink); color: #fff; }
.side-link .ico { width: 16px; height: 16px; flex: 0 0 16px; opacity: 0.75; }
.side-link.active .ico { opacity: 1; }
.side-foot { margin-top: auto; border-top: 1px solid var(--line); padding-top: 14px; display: grid; gap: 8px; }
.side-user { display: flex; align-items: center; gap: 10px; padding: 6px 8px; }
.avatar {
  width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: #fff;
  display: grid; place-items: center; font-size: 12px; font-weight: 600; flex: 0 0 32px;
}
.admin-main { min-width: 0; padding: 28px 32px 64px; background: #fcfcfa; min-height: 100vh; }
.admin-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 26px; flex-wrap: wrap; }
.admin-title { font-size: clamp(22px, 2.6vw, 28px); letter-spacing: -0.035em; }
.admin-sub { color: var(--muted); font-size: 13.5px; margin-top: 5px; }
.mobile-bar { display: none; }

/* ---------------- misc admin widgets ---------------- */
.mini-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.mini-row:last-child { border-bottom: 0; }
.list-plain { display: grid; gap: 0; }
.kv { display: grid; grid-template-columns: 132px 1fr; gap: 10px 16px; font-size: 13.5px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 22px; overflow-x: auto; }
.tab {
  padding: 10px 16px; font-size: 13.5px; color: var(--muted); cursor: pointer;
  border-bottom: 2px solid transparent; background: none; border-top: 0; border-left: 0; border-right: 0;
  white-space: nowrap;
}
.tab.active { color: var(--ink); border-bottom-color: var(--ink); font-weight: 500; }
.tabpane { display: none; }
.tabpane.active { display: block; }
.empty { padding: 44px 20px; text-align: center; color: var(--muted); font-size: 13.5px; }
.empty .big { font-size: 15px; color: var(--ink-soft); margin-bottom: 4px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.split { display: grid; grid-template-columns: 1.6fr 1fr; gap: 22px; align-items: start; }

/* ---------------- modal ---------------- */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(16,16,16,0.42);
  display: none; align-items: center; justify-content: center; z-index: 100; padding: 20px;
  backdrop-filter: blur(3px);
}
.modal-backdrop.open { display: flex; }
.modal {
  background: #fff; border-radius: 18px; width: 100%; max-width: 560px;
  max-height: 88vh; overflow-y: auto; box-shadow: 0 30px 80px -30px rgba(0,0,0,0.4);
  padding: 28px;
}
.modal.modal-lg { max-width: 760px; }
.modal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 20px; }
.modal-close { background: none; border: 0; font-size: 22px; line-height: 1; cursor: pointer; color: var(--muted); padding: 2px 6px; border-radius: 6px; }
.modal-close:hover { background: var(--soft); color: var(--ink); }

/* ---------------- toast ---------------- */
.toast-wrap { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 200; display: grid; gap: 8px; width: min(420px, calc(100vw - 32px)); }
.toast {
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px;
  font-size: 13.5px; box-shadow: 0 12px 30px -10px rgba(0,0,0,0.4);
  animation: toast-in 0.2s ease;
}
.toast.err { background: #7d1c1c; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* ---------------- payment page ---------------- */
.pay-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 26px; align-items: start; }
.countdown { display: flex; align-items: baseline; gap: 10px; }
.countdown .time { font-size: 30px; font-weight: 600; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.countdown .lbl { font-size: 12px; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; }
.qris-box { border: 1px solid var(--line); border-radius: 14px; padding: 16px; background: #fff; }
.qris-box img { width: 100%; max-width: 300px; margin: 0 auto; }
.dropzone {
  border: 1.5px dashed var(--line-strong); border-radius: 14px; padding: 26px 18px; text-align: center;
  cursor: pointer; transition: all 0.15s ease; background: var(--soft);
}
.dropzone:hover, .dropzone.drag { border-color: var(--ink); background: #fff; }
.invoice-head { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.invoice-total { font-size: clamp(28px, 4vw, 38px); font-weight: 600; letter-spacing: -0.04em; }
.timeline { display: grid; gap: 0; }
.tl-item { display: grid; grid-template-columns: 24px 1fr; gap: 12px; padding-bottom: 18px; position: relative; }
.tl-item:last-child { padding-bottom: 0; }
.tl-dot { width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--line-strong); margin-top: 6px; background: #fff; z-index: 1; }
.tl-item.done .tl-dot { background: var(--ink); border-color: var(--ink); }
.tl-item:not(:last-child)::before {
  content: ''; position: absolute; left: 11px; top: 14px; bottom: 0; width: 1px; background: var(--line);
}
.tl-title { font-size: 13.5px; font-weight: 500; }
.tl-sub { font-size: 12px; color: var(--muted); }

/* ---------------- status page ---------------- */
.status-hero { padding: 60px 0 40px; text-align: center; border-bottom: 1px solid var(--line); }
.status-mark {
  width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--ink);
  display: grid; place-items: center; margin: 0 auto 22px; font-size: 22px;
}
.status-mark.ok { background: var(--ink); color: #fff; }

/* ---------------- login ---------------- */
.login-shell { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.login-art { background: var(--ink); color: #fff; padding: 56px; display: flex; flex-direction: column; justify-content: space-between; }
.login-art h2 { font-size: clamp(26px, 3vw, 38px); letter-spacing: -0.04em; max-width: 20ch; }
.login-form-wrap { display: grid; place-items: center; padding: 40px 24px; }
.login-form { width: 100%; max-width: 380px; }
.brand-mark.invert { background: #fff; color: var(--ink); border-color: #fff; }

/* ---------------- responsive ---------------- */
@media (max-width: 1080px) {
  .stat-grid, .stat-grid.three { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .pay-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-meta { border-left: 0; padding-left: 0; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); padding-top: 24px; }
  .pkg-grid { grid-template-columns: 1fr; }
  .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .admin { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed; inset: 0 auto 0 0; width: 264px; z-index: 60;
    transform: translateX(-102%); transition: transform 0.22s ease; height: 100vh;
    box-shadow: 0 0 0 100vmax rgba(16,16,16,0); border-right: 1px solid var(--line);
  }
  .sidebar.open { transform: translateX(0); box-shadow: 24px 0 60px -30px rgba(0,0,0,0.35); }
  .admin-main { padding: 18px 18px 72px; }
  .mobile-bar {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,0.94);
    backdrop-filter: blur(12px); border-bottom: 1px solid var(--line);
    padding: 12px 18px; margin: -18px -18px 18px;
  }
  .mobile-nav-toggle {
    border: 1px solid var(--line-strong); background: #fff; border-radius: 9px;
    padding: 7px 11px; cursor: pointer; font-size: 13px; display: inline-flex; align-items: center; gap: 7px;
  }
  .login-shell { grid-template-columns: 1fr; }
  .login-art { display: none; }
  .week { display: none; }
  .cal-scroll { display: none; }
  .day-view { display: block; }
  .slot-list { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 640px) {
  .stat-grid, .stat-grid.three { grid-template-columns: 1fr; }
  .wrap, .wrap-narrow { padding: 0 18px; }
  .section { padding: 48px 0; }
  .hero { padding: 48px 0 40px; }
  .card, .card-lg { padding: 20px; }
  .stat { padding: 18px; }
  .stat-grid { gap: 12px; }
  /* header: one line only — the studio name used to wrap and spill over the
     logo, so the mark now sits next to a single truncated line */
  .site-header .wrap { height: 64px; gap: 10px; }
  .brand { gap: 10px; flex: 0 1 auto; }
  .brand-mark { width: 34px; height: 34px; flex: 0 0 34px; border-radius: 9px; font-size: 11px; }
  .brand-sub { font-size: 9.5px; letter-spacing: 0.05em; }
  .site-header .brand-name { font-size: 14px; max-width: 40vw; }
  .nav-links { gap: 12px; }
  .nav-links a { font-size: 13px; }
  .nav-links a.btn { min-height: 36px; padding: 8px 14px; font-size: 13px; }
  .nav-links a.opt { display: none; }
  .slot-list { grid-template-columns: repeat(2, 1fr); }
  .booking-bar .wrap { flex-direction: column; align-items: stretch; gap: 10px; }
  .booking-bar .btn { width: 100%; }
  .section-sm { padding: 28px 0; }
  .modal { padding: 22px; border-radius: 16px; }
  .kv { grid-template-columns: 1fr; gap: 2px 0; }
  .kv dd { margin-bottom: 10px; }
}

@media print {
  .site-header, .site-footer, .no-print, .booking-bar { display: none !important; }
  body { font-size: 12px; }
  .card { border: 0; padding: 0; }
}
