/* 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: 'Inter', 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 {
  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;
  font-feature-settings: 'cv11', 'ss01', 'ss03';
}
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 {
  padding: 32px 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
  border-top: 1px solid var(--border);
  margin-top: 80px;
  background: var(--surface);
}

/* === 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);
}
.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 === */
.hero { max-width: 1040px; margin: 96px auto; padding: 0 24px; }
h1.display {
  font-size: 56px; font-weight: 800;
  letter-spacing: -0.04em; line-height: 1.05;
  margin: 0 0 20px;
  max-width: 800px;
}
h1.display 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 .cta { margin: 40px 0; display: flex; gap: 12px; flex-wrap: wrap; }
.hero .feats {
  list-style: none; padding: 0;
  margin: 64px 0 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px;
}
.hero .feats li {
  background: var(--surface); border: 1px solid var(--border);
  padding: 20px 22px; border-radius: var(--radius-lg); color: var(--text-muted);
  box-shadow: var(--shadow-sm);
  transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease), border-color var(--duration) var(--ease);
}
.hero .feats li:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-lg);
}
.hero .feats strong { color: var(--text); font-weight: 600; }

/* === AUTH FORMS === */
.auth-page { max-width: 420px; 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; }
.auth-page form.card { padding: 28px; }
.auth-page form.card button[type="submit"] {
  align-self: stretch; width: 100%;
  padding: 11px 16px; margin-top: 4px;
}
.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: flex; gap: 8px; justify-content: center; margin-bottom: 16px; }
.tg-login { display: flex; justify-content: center; margin-bottom: 16px; }
.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: 16px 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: 6px 10px; }

/* === BOOKINGS === */
.bookings { list-style: none; padding: 0; margin: 8px 0 0; }
.bookings li.card {
  border-left: 3px solid var(--accent);
  margin: 8px 0;
  padding: 14px 16px 14px 18px;
}
.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); font-size: 13px; 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); font-size: 13px; 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 === */
.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: 16px 0;
  box-shadow: var(--shadow-sm);
  max-width: 360px;
}
.cal-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.cal-title { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; margin: 0; color: var(--text); }
.cal-nav {
  width: 32px; height: 32px; padding: 0;
  display: grid; place-items: center;
  background: var(--surface); color: var(--text-muted);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-size: 16px; cursor: pointer;
  transition: all var(--duration) var(--ease);
}
.cal-nav:hover { color: var(--text); border-color: var(--border-strong); background: var(--surface-2); }
.cal-weekdays {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px;
  margin-bottom: 4px;
}
.cal-weekdays span {
  text-align: center;
  font-size: 11px; font-weight: 500; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--text-muted);
}
.cal-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-cell {
  height: 36px; padding: 0;
  display: grid; place-items: center;
  background: transparent; border: 1px solid transparent;
  border-radius: 8px;
  font-family: var(--font-sans); font-size: 13px; font-weight: 500;
  color: var(--text); cursor: pointer;
  transition: all var(--duration) var(--ease);
}
.cal-cell.empty { cursor: default; }
.cal-cell.day:hover:not(:disabled) { border-color: var(--accent); color: var(--accent-hover); }
.cal-cell.today { box-shadow: inset 0 0 0 2px var(--accent); font-weight: 700; }
.cal-cell.past, .cal-cell.off {
  color: var(--border-strong); cursor: not-allowed;
}
.cal-cell.past { text-decoration: line-through; }
.cal-cell.selected { background: var(--accent); color: #ffffff; border-color: var(--accent); }
.cal-cell.selected.today { box-shadow: inset 0 0 0 2px var(--accent-hover); }

.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 24px; }
.profile-top { display: flex; gap: 16px; }
.profile-meta { flex: 1; min-width: 0; }
.profile-name {
  font-size: 22px; 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: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--text-muted); margin: 24px 0 8px;
}

/* === SITE FOOTER (legal) === */
.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 60px;
  padding: 24px 20px;
  background: var(--surface);
}
.site-footer .footer-inner {
  max-width: 680px; margin: 0 auto;
  display: flex; flex-wrap: wrap; gap: 8px 16px;
  font-size: 13px; color: var(--text-muted);
  align-items: center;
}
.site-footer a { color: var(--accent); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-dot { color: var(--border-strong); }
@media (max-width: 600px) {
  .site-footer .footer-inner { flex-direction: column; gap: 4px; }
  .profile-stats .profile-actions { margin-left: 0; width: 100%; }
  .profile-top { gap: 12px; }
}

/* === MEDIA === */
.brand-short { display: none; }
.nav-short { display: none; }

@media (max-width: 600px) {
  .topbar { padding: 0 14px; height: 52px; }
  .topbar .brand { font-size: 14px; }
  .topbar .brand-full { display: none; }
  .topbar .brand-short { display: inline; }
  .topbar nav { gap: 2px; }
  .topbar nav > a { padding: 6px 8px; font-size: 13px; }
  .topbar nav .nav-full { display: none; }
  .topbar nav .nav-short { display: inline; }
  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; }
}
