/* Zoom Booking — 2025 modern style
 * Inspired by Linear / Vercel / Liveblocks
 */
:root {
  --bg: #F9FAFB;
  --surface: #FFFFFF;
  --surface-2: #F3F4F6;
  --border: #E5E7EB;
  --border-strong: #D1D5DB;
  --text: #111827;
  --text-muted: #6B7280;
  --accent: #79B5D1;
  --accent-hover: #5A9CBD;
  --accent-soft: rgba(121, 181, 209, 0.12);
  --accent-ring: rgba(121, 181, 209, 0.25);
  --danger: #DC2626;
  --danger-soft: #FEE2E2;
  --ok: #16A34A;
  --ok-soft: #DCFCE7;
  --radius-sm: 6px;
  --radius:    10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow:    0 1px 3px rgba(0,0,0,0.10), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px rgba(0,0,0,0.10), 0 4px 6px rgba(0,0,0,0.05);
  --font-sans: 'Onest', ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --duration: 120ms;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
main { flex: 1 0 auto; }
.site-footer { flex-shrink: 0; }
a { color: var(--accent-hover); text-decoration: none; font-weight: 500; }
a:hover { color: var(--accent); }
code {
  font-family: var(--font-mono);
  background: var(--surface-2);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  font-size: 0.9em;
  color: var(--text);
  border: 1px solid var(--border);
}
hr { border: 0; border-top: 1px solid var(--border); margin: 24px 0; }

/* === TOP NAV === */
.topbar {
  height: 56px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 24px;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: saturate(180%) blur(8px);
  -webkit-backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
}
.topbar .brand {
  font-size: 15px; font-weight: 700; letter-spacing: -0.02em; color: var(--text);
  white-space: nowrap;
  display: inline-flex; align-items: center; gap: 8px;
}
.topbar .brand::before {
  content: ''; display: inline-block; width: 22px; height: 22px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.4);
}
.topbar nav { display: flex; align-items: center; gap: 4px; flex-wrap: nowrap; }
.topbar nav > a {
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 14px; font-weight: 500;
  white-space: nowrap;
  transition: color var(--duration) var(--ease), background var(--duration) var(--ease);
}
.topbar nav > a:hover { color: var(--text); background: var(--surface-2); }

/* === FOOTER === */
.footer { display: none; }

/* === BUTTONS === */
.btn-pill, button.btn-pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 14px; font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer; text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: all var(--duration) var(--ease);
  white-space: nowrap;
}
.btn-pill:hover { border-color: var(--accent); color: var(--text); text-decoration: none; }
.btn-pill.primary {
  background: var(--accent); color: #ffffff; border-color: var(--accent);
}
.btn-pill.primary:hover {
  background: var(--accent-hover); border-color: var(--accent-hover);
  transform: translateY(-1px); box-shadow: var(--shadow-lg);
  color: #ffffff;
}
.btn-pill.ghost {
  background: transparent; color: var(--text-muted);
  border-color: transparent; box-shadow: none;
}
.btn-pill.ghost:hover {
  color: var(--text); background: var(--surface-2); border-color: var(--border);
}
.card label.btn-pill, label.btn-pill { font-size: 14px; color: var(--text); }
.btn-pill.lg {
  padding: 12px 22px; font-size: 15px; border-radius: var(--radius);
}

/* === HEADINGS === */
.display { font-family: var(--font-sans); font-weight: 700; line-height: 1.1; letter-spacing: -0.03em; color: var(--text); }
.display.small { font-size: 24px; letter-spacing: -0.02em; }
.lead { font-size: 17px; color: var(--text-muted); max-width: 600px; line-height: 1.6; }

/* === HERO / LANDING === */
.landing { max-width: 760px; margin: 0 auto; padding: 0 24px; width: 100%; }
.landing .hero,
.landing .features { max-width: none; margin: 0; padding: 0; }
.hero { max-width: 760px; margin: 80px auto 60px; padding: 0 24px; }
.landing .hero { margin: 80px 0 60px; }
.landing .features { margin: 0 0 60px; }
.hero h1 {
  font-size: 56px; font-weight: 800;
  line-height: 1.1; letter-spacing: -0.03em;
  margin: 0;
  color: var(--text);
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, #79B5D1, #5A9CBD);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.hero p {
  font-size: 18px; color: var(--text-muted);
  margin: 20px 0 32px;
  max-width: 520px; line-height: 1.55;
}
.hero-cta { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }

.features { max-width: 760px; margin: 0 auto 60px; padding: 0 24px; }
.features-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.feature-card {
  background: var(--surface); border: 1px solid var(--border);
  padding: 20px 22px; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease), border-color var(--duration) var(--ease);
}
.feature-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-lg);
}
.feature-card strong { color: var(--text); font-weight: 600; display: block; margin-bottom: 6px; }
.feature-card p { margin: 0; font-size: 14px; color: var(--text-muted); line-height: 1.45; }

@media (max-width: 700px) {
  .features-grid { grid-template-columns: 1fr; }
}

/* === AUTH FORMS === */
.auth-page {
  width: 100%;
  max-width: 560px;
  margin: 64px auto;
  padding: 0 24px;
}
.auth-page .display { margin-bottom: 24px; font-size: 28px; }
.auth-divider {
  text-align: center; color: var(--text-muted); font-size: 13px;
  margin: 24px 0 16px; position: relative; line-height: 1;
}
.auth-divider::before, .auth-divider::after {
  content: ''; position: absolute; top: 50%; width: calc(50% - 80px); height: 1px; background: var(--border);
}
.auth-divider::before { left: 0; }
.auth-divider::after  { right: 0; }
.card.auth-card {
  max-width: 560px;
  padding: 40px;
}
.auth-title {
  font-size: 24px; font-weight: 700;
  letter-spacing: -0.02em; color: var(--text);
  margin: 0 0 24px;
}
.auth-form { display: flex; flex-direction: column; gap: 16px; }
.auth-form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 500; color: var(--text-muted); }
.auth-form input {
  font-family: var(--font-sans); font-size: 15px;
  padding: 12px 14px; border-radius: var(--radius-sm);
  background: var(--surface); border: 1px solid var(--border-strong); color: var(--text);
  width: 100%;
  transition: border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}
.auth-form input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-ring);
}
.auth-form .btn-primary,
.auth-form button[type="submit"] {
  width: 100%;
  padding: 14px;
  font-size: 16px; font-weight: 600;
  margin-top: 4px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent); color: #ffffff; border: 1px solid var(--accent);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--duration) var(--ease);
}
.auth-form .btn-primary:hover,
.auth-form button[type="submit"]:hover {
  background: var(--accent-hover); border-color: var(--accent-hover);
}
.auth-footer {
  text-align: center; margin-top: 20px;
  font-size: 14px; color: var(--text-muted);
}
.form-hint {
  margin: 4px 0 0; font-size: 12px; color: var(--text-muted);
  text-align: center;
}
.form-hint a { color: var(--accent-hover); }

.oauth-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px; margin-bottom: 8px;
}
.btn-oauth {
  display: flex; align-items: center; justify-content: center;
  height: 44px;
  border: 1px solid var(--border); border-radius: 8px;
  background: #ffffff;
  font-family: var(--font-sans); font-size: 14px; font-weight: 500;
  color: var(--text); text-decoration: none; cursor: pointer;
  transition: border-color 120ms, color 120ms;
}
.btn-oauth:hover { border-color: var(--accent); color: var(--accent); }

.btn-tg {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; height: 44px; padding: 0 16px;
  background: #2AABEE; color: #ffffff; border-radius: 8px;
  font-family: var(--font-sans); font-size: 15px; font-weight: 500;
  text-decoration: none;
  border: none; cursor: pointer;
  transition: background 120ms;
}
.btn-tg:hover { background: #1a96d4; color: #ffffff; text-decoration: none; }
.muted { color: var(--text-muted); }
.center { text-align: center; }

/* === CARDS === */
.card {
  background: var(--surface); border: 1px solid var(--border);
  padding: 20px; border-radius: var(--radius-lg);
  margin: 32px 0;
  box-shadow: var(--shadow-sm);
}
.card.stack { display: flex; flex-direction: column; gap: 14px; }
.card.row { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.card.dim { opacity: 0.7; }
.card h3 {
  font-size: 14px; font-weight: 600; letter-spacing: -0.01em;
  margin: 4px 0 0; color: var(--text);
  text-transform: uppercase; font-size: 11px; letter-spacing: 0.06em;
  color: var(--text-muted);
}

/* === FORM INPUTS === */
.card label {
  display: flex; flex-direction: column; gap: 6px;
  font-size: 13px; font-weight: 500;
  color: var(--text-muted);
}
.card input, .card select, .card textarea {
  font-family: var(--font-sans); font-size: 14px;
  padding: 10px 12px; border-radius: var(--radius-sm);
  background: var(--surface); border: 1px solid var(--border-strong);
  color: var(--text);
  width: 100%;
  transition: border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}
.card input::placeholder, .card textarea::placeholder { color: #9CA3AF; }
.card input:focus, .card select:focus, .card textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-ring);
}
.card input[disabled] { opacity: 0.6; background: var(--surface-2); cursor: not-allowed; }
.card button { align-self: flex-start; }

/* === ALERTS === */
.alert {
  background: var(--danger-soft);
  border: 1px solid rgba(220, 38, 38, 0.2);
  color: #991B1B;
  padding: 10px 14px; border-radius: var(--radius);
  margin-bottom: 16px; font-size: 14px;
}
.alert.ok { background: var(--ok-soft); border-color: rgba(22, 163, 74, 0.2); color: #166534; }

/* === ROWS / WEEKDAYS === */
.row.gap { display: flex; gap: 12px; flex-wrap: wrap; }
.row.gap label { flex: 1 1 140px; }
.weekdays { display: flex; gap: 6px; flex-wrap: wrap; }
.weekdays .chk {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px;
  border: 1px solid var(--border-strong); border-radius: 999px; cursor: pointer;
  background: var(--surface); font-size: 13px; font-weight: 500; color: var(--text);
  transition: all var(--duration) var(--ease);
}
.weekdays .chk input { width: auto; margin: 0; appearance: none; }
.weekdays .chk:has(input:checked) { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-hover); }
.weekdays .chk:hover:not(:has(input:checked)) { border-color: var(--border-strong); background: var(--surface-2); }

/* === CONTAINER === */
.container { max-width: 760px; margin: 32px auto; padding: 0 24px; }
.link-row {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.link-row code {
  font-size: 13px; padding: 0 12px;
  min-height: 44px;
  display: inline-flex; align-items: center;
  border-radius: var(--radius);
}
.link-row .btn-pill {
  min-height: 44px;
  padding: 0 16px;
  display: inline-flex; align-items: center; justify-content: center;
  white-space: nowrap;
  font-size: 14px; font-weight: 500;
}

/* === BOOKINGS === */
.bookings { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-direction: column; gap: 12px; }
.bookings li.card {
  border-left: 3px solid var(--accent);
  margin: 0;
  padding: 20px 22px;
}
.bookings li.card.dim {
  border-left-color: var(--border-strong);
}
.bookings .when {
  font-size: 16px; font-weight: 600; letter-spacing: -0.01em;
  color: var(--text);
}
.bookings .who {
  color: var(--text-muted); margin-top: 2px;
}
.bookings .who strong { color: var(--text); font-weight: 600; }
.status { font-size: 12px; color: var(--text-muted); }

/* === EMPTY STATE === */
.empty-state {
  text-align: center; padding: 56px 24px;
  background: var(--surface); border: 1px dashed var(--border-strong);
  border-radius: var(--radius-lg); margin-top: 8px;
}
.empty-state .icon {
  width: 56px; height: 56px; margin: 0 auto 16px;
  border-radius: 14px;
  background: var(--accent-soft); color: var(--accent-hover);
  display: grid; place-items: center; font-size: 26px;
}
.empty-state .title {
  font-size: 16px; font-weight: 600; color: var(--text); margin: 0 0 4px;
  letter-spacing: -0.01em;
}
.empty-state .sub { color: var(--text-muted); font-size: 14px; margin: 0 0 20px; }

/* === PUBLIC BOOKING PAGE === */
.public { max-width: 680px; margin: 48px auto; padding: 0 24px; }
.public-head { display: flex; align-items: center; gap: 16px; margin-bottom: 40px; }
.public-head .avatar {
  width: 72px; height: 72px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  color: #ffffff;
  display: grid; place-items: center;
  font-size: 28px; font-weight: 700; letter-spacing: -0.02em;
  box-shadow: 0 8px 24px rgba(121, 181, 209, 0.35);
  flex-shrink: 0;
}
.public-head h1 {
  font-size: 24px; font-weight: 700; letter-spacing: -0.03em;
  margin: 0; color: var(--text);
}
.public-head .meta {
  color: var(--text-muted); margin: 2px 0 0;
}

/* DAYS LIST */
.days {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px;
}
.day {
  display: block; padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--border-strong); border-radius: var(--radius);
  color: var(--text); font-size: 14px; font-weight: 500;
  text-decoration: none;
  transition: all var(--duration) var(--ease);
}
.day:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-hover);
  text-decoration: none;
  transform: translateY(-1px); box-shadow: var(--shadow-sm);
}
.day.active {
  border-color: var(--accent);
  background: var(--accent);
  color: #ffffff;
}

/* SLOT GRID */
.slots {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); gap: 8px;
}
.slot {
  display: block; text-align: center; padding: 12px 8px;
  background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius);
  color: var(--text); font-family: var(--font-sans);
  font-size: 14px; font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: all var(--duration) var(--ease);
}
.slot:hover {
  border-color: var(--accent);
  color: var(--accent-hover);
  transform: scale(1.02);
  box-shadow: var(--shadow-lg);
  text-decoration: none;
}
.slot.active {
  background: var(--accent); color: #ffffff; border-color: var(--accent);
}

/* === PHONE MASK === */
.phone-wrap { position: relative; display: block; }
.phone-wrap input { padding-right: 40px; }
.phone-clear {
  position: absolute; top: 50%; right: 8px; transform: translateY(-50%);
  width: 24px; height: 24px; border-radius: 50%;
  display: none; align-items: center; justify-content: center;
  background: var(--surface-2); color: var(--text-muted); border: 1px solid var(--border); cursor: pointer;
  font-size: 14px; line-height: 1; padding: 0;
  transition: all var(--duration) var(--ease);
}
.phone-clear:hover { background: var(--accent); color: #ffffff; border-color: var(--accent); }

/* === MISC === */
/* Auto-register card on /booking confirm */
.auto-register-card {
  background: linear-gradient(135deg, var(--accent-soft), rgba(121,181,209,0.05));
  border: 1px solid var(--accent);
  margin-top: 32px;
}
.auto-register-card h3 {
  font-family: var(--font-sans);
  font-size: 18px; font-weight: 700; letter-spacing: -0.01em;
  color: var(--text); margin: 0;
  text-transform: none;
}
.auto-register-card .link-row code { font-size: 13px; }

/* Notify radio pills (book-form) */
.notify-options { display: flex; flex-direction: column; gap: 8px; }
.notify-label { font-size: 13px; font-weight: 500; color: var(--text-muted); }
.notify-row { display: flex; gap: 8px; flex-wrap: wrap; }
.notify-option {
  flex: 1; min-width: 96px;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 14px;
  border: 1px solid var(--border-strong); border-radius: 999px;
  background: var(--surface); color: var(--text);
  font-size: 14px; font-weight: 500;
  cursor: pointer; user-select: none;
  transition: all var(--duration) var(--ease);
}
.notify-option input[type="radio"] {
  appearance: none; width: 0; height: 0; margin: 0; padding: 0;
}
.notify-option:has(input:checked) {
  background: var(--accent-soft); border-color: var(--accent); color: var(--accent-hover);
}
.notify-option:hover:not(:has(input:checked)) {
  border-color: var(--border-strong); background: var(--surface-2);
}
.notify-field[hidden] { display: none; }

/* Notifications grouped by channel */
.notif-card { gap: 16px; }
.notif-channel {
  display: flex; flex-direction: column; gap: 8px;
  padding: 14px 16px;
  background: var(--surface-2);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.notif-channel-head {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; color: var(--text);
}
.notif-channel-head strong { font-weight: 600; }
.notif-channel-head .status-ok { font-size: 13px; }
.notif-channel input[type="text"] {
  font-family: var(--font-sans); font-size: 14px;
  padding: 10px 12px; border-radius: var(--radius-sm);
  background: var(--surface); border: 1px solid var(--border-strong); color: var(--text);
  width: 100%;
}
.notif-channel input[type="text"]:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-ring);
}
.notif-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.notif-channel .form-hint { text-align: left; margin: 0; }

.btn-copy.copied { background: var(--accent); color: #ffffff; border-color: var(--accent); }
.btn-tg-link {
  display: inline-flex; align-items: center;
  color: var(--accent-hover); font-size: 13px; font-weight: 500;
  text-decoration: none;
}
.btn-tg-link:hover { color: var(--accent); text-decoration: underline; }
.status-ok {
  color: var(--ok); font-weight: 600; display: flex; align-items: center; gap: 8px; margin: 0;
  font-size: 14px;
}
.status-ok .check {
  display: inline-grid; place-items: center;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--ok); color: #ffffff; font-size: 12px; font-weight: 700;
}

/* === CALENDAR === */
.calendar {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin: 32px 0;
  box-shadow: var(--shadow-sm);
  width: 100%;
}
.cal-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px;
}
.cal-header h3 {
  font-size: 16px; font-weight: 600; margin: 0;
  letter-spacing: -0.01em; color: var(--text);
}
.cal-nav {
  background: none; border: 1px solid var(--border); border-radius: 6px;
  width: 32px; height: 32px; cursor: pointer;
  font-size: 16px; color: var(--text-muted);
  display: grid; place-items: center;
  transition: all var(--duration) var(--ease);
}
.cal-nav:hover { color: var(--text); border-color: var(--border-strong); background: var(--surface-2); }

.cal-day-names {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px;
  margin-bottom: 4px;
  width: 100%;
}
.cal-day-name {
  font-size: 14px; color: var(--text-muted);
  text-align: center; padding: 4px 0;
  text-transform: uppercase; letter-spacing: 0.06em; font-weight: 500;
}

.cal-grid {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px;
  width: 100%;
}
.cal-day {
  width: 100%; aspect-ratio: 1;
  display: flex; align-items: center; justify-content: center;
  border-radius: 8px;
  font-family: var(--font-sans); font-size: 14px; font-weight: 500;
  color: var(--text); background: transparent;
  border: 1px solid transparent; padding: 0;
  cursor: pointer;
  transition: all var(--duration) var(--ease);
}
.cal-day:hover:not(.disabled):not(.empty) { border-color: var(--accent); color: var(--accent); }
.cal-day.selected { background: var(--accent); color: #ffffff; border-color: var(--accent); }
.cal-day.disabled { color: var(--border); cursor: not-allowed; }
.cal-day.today { font-weight: 700; border-color: var(--accent); }
.cal-day.empty { cursor: default; }

.slots-section { margin-top: 24px; }

/* === AVATAR === */
.avatar-circle {
  display: inline-grid; place-items: center;
  border-radius: 50%; overflow: hidden;
  background: var(--surface-2);
  color: var(--text);
  font-weight: 700; letter-spacing: -0.02em;
  flex-shrink: 0;
}
.avatar-circle img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar-circle.initials {
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(121, 181, 209, 0.25);
}

.avatar-stack { display: inline-flex; align-items: center; }
.avatar-circle.stacked { border: 2px solid var(--surface); margin-left: -8px; }
.avatar-circle.stacked:first-child { margin-left: 0; }

.avatar-row { display: flex; align-items: center; gap: 16px; }
.avatar-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.inline-form { display: inline-flex; margin: 0; }
.small { font-size: 12px; }

/* === PROFILE CARD === */
.profile-card { padding: 20px; margin: 0 0 32px; }
.profile-top { display: flex; gap: 16px; }
.profile-meta { flex: 1; min-width: 0; }
.profile-name {
  font-size: 28px; font-weight: 700; letter-spacing: -0.025em;
  margin: 0; color: var(--text);
}
.profile-bio {
  margin: 6px 0 0; color: var(--text-muted); font-size: 14px; line-height: 1.4;
}
.profile-sub { margin: 8px 0 0; font-size: 13px; color: var(--text-muted); }
.profile-website { font-weight: 500; }
.profile-stats {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 14px;
}
.profile-stats .stat a {
  color: var(--text); text-decoration: none;
}
.profile-stats .stat strong { font-weight: 600; }
.profile-stats .stat .muted { color: var(--text-muted); margin-left: 2px; }
.profile-stats .stat-dot { color: var(--border-strong); }
.profile-actions { margin-left: auto; display: flex; gap: 8px; }

.avatar-stack-row {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin-top: 12px;
}

/* === USER LIST (followers / following / dashboard community) === */
.user-list { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-direction: column; gap: 8px; }
.user-card {
  display: flex; align-items: center; gap: 12px;
  background: var(--surface); border: 1px solid var(--border);
  padding: 12px 16px; border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.user-info { flex: 1; min-width: 0; }
.user-name {
  font-weight: 600; font-size: 14px; color: var(--text);
  text-decoration: none; display: block;
  letter-spacing: -0.01em;
}
.user-name:hover { color: var(--accent-hover); }
.user-bio {
  margin: 2px 0 0; font-size: 13px; color: var(--text-muted);
  line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical;
  overflow: hidden; text-overflow: ellipsis;
}

.community-section { margin-top: 40px; }
.community-section .block-h {
  font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--text-muted); margin: 24px 0 8px;
}

/* === SITE FOOTER (legal + links, gestalt grouping) === */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 20px;
  flex-shrink: 0;
  background: var(--surface);
}
.footer-inner {
  max-width: 680px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px;
  font-size: 14px; color: var(--text-muted);
}
.footer-legal { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.footer-links { display: flex; align-items: center; gap: 8px; }
.footer-links a { color: var(--text-muted); text-decoration: none; }
.footer-links a:hover { color: var(--accent); }
.footer-dot { color: var(--border-strong); }

@media (max-width: 600px) {
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 8px; }
  .profile-stats .profile-actions { margin-left: 0; width: 100%; }
  .profile-top { gap: 12px; }
}

/* === MEDIA === */
@media (max-width: 600px) {
  .topbar { padding: 0 14px; height: 52px; }
  .topbar .brand { font-size: 14px; }
  .topbar nav { gap: 2px; }
  .topbar nav > a { padding: 8px 8px; font-size: 14px; min-height: 44px; display: flex; align-items: center; }
  h1.display { font-size: 36px; letter-spacing: -0.035em; }
  .hero { margin: 48px auto; }
  .hero .cta { gap: 8px; }
  .display.small { font-size: 22px; }
  .public { margin: 28px auto; }
  .public-head { gap: 14px; margin-bottom: 28px; }
  .public-head .avatar { width: 56px; height: 56px; font-size: 22px; }
  .public-head h1 { font-size: 22px; }
  .container { margin: 20px auto; }
  .bookings .when { font-size: 15px; }
  .empty-state { padding: 40px 20px; }
  .btn-pill, button.btn-pill { min-height: 44px; padding: 11px 16px; }
  .card h3 { font-size: 14px; }
  .small, .muted.small, p.small, span.small { font-size: 14px; }
  .weekdays .chk { font-size: 14px; }
  .btn-tg-link { font-size: 14px; }
  .form-hint, .profile-sub, .profile-bio, .user-bio, .bookings .who, .public-head .public-sub, .status, .notify-label, .auto-register-card .link-row code { font-size: 14px; }
}

/* === BOOKING PAGE (new) === */
.booking-page { max-width: 560px; margin: 48px auto; padding: 0 24px; }
.booking-meta { color: var(--text-muted); margin: 0; font-size: 15px; }
.booking-when { margin: 8px 0 24px; font-size: 17px; }
.book-card { gap: 24px; }
.field-name { display: flex; flex-direction: column; gap: 8px; }
.field-name > span { font-size: 14px; font-weight: 600; color: var(--text); letter-spacing: -0.01em; }

.block-label { font-size: 14px; font-weight: 600; color: var(--text); margin: 0 0 12px; letter-spacing: -0.01em; }

.email-block { padding-top: 8px; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 12px; }
.oauth-row { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-oauth {
  flex: 1; min-width: 140px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--surface); border: 1px solid var(--border-strong);
  color: var(--text); font-family: var(--font-sans); font-size: 14px; font-weight: 600;
  padding: 12px 16px; border-radius: var(--radius);
  text-decoration: none; cursor: pointer; min-height: 44px;
  box-shadow: var(--shadow-sm); transition: all var(--duration) var(--ease);
}
.btn-oauth:hover { border-color: var(--accent); transform: translateY(-1px); }
.email-divider { font-size: 14px;
  display: flex; align-items: center; gap: 12px;
  color: var(--text-muted);
  text-align: center;
}
.email-divider::before, .email-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}
.email-block input[type=email] {
  font-family: var(--font-sans); font-size: 15px;
  padding: 12px 14px; border-radius: var(--radius-sm);
  background: var(--surface); border: 1px solid var(--border-strong);
  color: var(--text); width: 100%; min-height: 44px;
}

.notify-block { padding-top: 8px; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 12px; }
.notify-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-notify { white-space: nowrap;
  flex: 1; min-width: 100px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--surface); border: 1px solid var(--border-strong);
  color: var(--text); font-family: var(--font-sans); font-size: 14px; font-weight: 600;
  padding: 12px 16px; border-radius: var(--radius);
  cursor: pointer; min-height: 44px;
  box-shadow: var(--shadow-sm); transition: all var(--duration) var(--ease);
}
.btn-notify:hover:not(.connected) { border-color: var(--accent); transform: translateY(-1px); }
.btn-notify.ghost { background: transparent; color: var(--text-muted); border-color: var(--border); box-shadow: none; }
.btn-notify.connected {
  background: var(--accent-soft); border-color: var(--accent);
  color: var(--accent-hover);
}
.notify-status { margin: 4px 0 0; font-size: 14px; color: var(--text-muted); min-height: 1.4em; }
.notify-status[data-state=ok]   { color: var(--ok); font-weight: 600; }
.notify-status[data-state=wait] { color: var(--text-muted); }

/* === CTA REGISTER on confirm === */
.cta-register { margin-top: 32px; text-align: center; }
.cta-register h3 {
  font-size: 18px; font-weight: 700; letter-spacing: -0.01em;
  color: var(--text); margin: 0;
  text-transform: none;
}
.cta-register p { margin: 0; }
.cta-register .btn-pill { margin: 8px auto 0; align-self: center; }

@media (max-width: 600px) {
  .booking-page { margin: 24px auto; }
  .oauth-row { flex-direction: column; }
  .oauth-row .btn-oauth { min-width: 0; width: 100%; }
  .notify-btns { flex-direction: column; }
  .notify-btns .btn-notify { white-space: nowrap; min-width: 0; width: 100%; }
}
