*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --purple: #534AB7;
  --purple-light: #EEEDFE;
  --purple-dark: #3C3489;
  --text: #1a1a2e;
  --text-muted: #6b7280;
  --border: #e5e7eb;
  --bg: #ffffff;
  --bg-alt: #f9fafb;
  --radius: 10px;
  --radius-lg: 14px;
  --green-light: #D1FAE5;
  --green:       #1D9E75;
}

body { font-family: 'Inter', sans-serif; color: var(--text); background: var(--bg); line-height: 1.6; }
a { text-decoration: none; color: inherit; }

/* Navbar */
.navbar { border-bottom: 1px solid var(--border); background: var(--bg); position: sticky; top: 0; z-index: 100; }
.nav-container { max-width: 1100px; margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; justify-content: space-between; }
.logo { font-size: 18px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.logo-dot { width: 10px; height: 10px; background: var(--purple); border-radius: 50%; display: inline-block; }
.nav-links { display: flex; gap: 28px; font-size: 14px; color: var(--text-muted); }
.nav-links a:hover { color: var(--text); }
.nav-actions { display: flex; gap: 10px; }

/* Buttons */
.btn { display: inline-block; padding: 9px 22px; border-radius: var(--radius); font-size: 14px; font-weight: 500; cursor: pointer; border: 1px solid transparent; transition: all .2s; }
.btn-primary { background: var(--purple); color: #fff; border-color: var(--purple); }
.btn-primary:hover { background: var(--purple-dark); }
.btn-outline { background: transparent; color: var(--text); border-color: var(--border); }
.btn-outline:hover { border-color: var(--purple); color: var(--purple); }
.btn-lg { padding: 13px 32px; font-size: 15px; }
.btn-block { display: block; text-align: center; width: 100%; padding: 11px; }

/* Hero */
.hero { padding: 80px 24px 64px; text-align: center; background: linear-gradient(180deg, #EEEDFE22 0%, #fff 100%); }
.hero-inner { max-width: 640px; margin: 0 auto; }
.hero-badge { display: inline-block; background: var(--purple-light); color: var(--purple-dark); font-size: 13px; padding: 5px 14px; border-radius: 20px; margin-bottom: 24px; font-weight: 500; }
.hero h1 { font-size: 44px; font-weight: 600; line-height: 1.15; margin-bottom: 18px; letter-spacing: -.5px; }
.hero h1 .highlight { color: var(--purple); }
.hero-sub { font-size: 16px; color: var(--text-muted); max-width: 480px; margin: 0 auto 36px; }
.hero-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-note { font-size: 12px; color: var(--text-muted); margin-top: 14px; }

/* Stats bar */
.stats-bar { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.stat { padding: 24px; text-align: center; border-right: 1px solid var(--border); }
.stat:last-child { border-right: none; }
.stat-num { display: block; font-size: 30px; font-weight: 600; color: var(--purple); }
.stat-label { display: block; font-size: 13px; color: var(--text-muted); margin-top: 2px; }

/* Sections */
.section { padding: 72px 24px; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-label { font-size: 12px; font-weight: 600; color: var(--purple); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 8px; }
.section h2 { font-size: 30px; font-weight: 600; margin-bottom: 10px; }
.section-sub { font-size: 15px; color: var(--text-muted); margin-bottom: 40px; max-width: 500px; }

/* Features grid */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feat-card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; transition: border-color .2s; }
.feat-card:hover { border-color: var(--purple); }
.feat-icon { font-size: 28px; margin-bottom: 14px; }
.feat-card h3 { font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.feat-card p { font-size: 13px; color: var(--text-muted); line-height: 1.65; }

/* Pricing grid */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.plan-card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; }
.plan-featured { border: 2px solid var(--purple); }
.plan-badge { display: inline-block; background: var(--purple-light); color: var(--purple-dark); font-size: 11px; padding: 3px 10px; border-radius: 12px; margin-bottom: 12px; font-weight: 500; }
.plan-card h3 { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.plan-price { font-size: 32px; font-weight: 600; color: var(--purple); margin: 10px 0 6px; }
.plan-price span { font-size: 13px; font-weight: 400; color: var(--text-muted); }
.plan-desc { font-size: 13px; color: var(--text-muted); margin-bottom: 18px; line-height: 1.5; }
.plan-features { list-style: none; margin-bottom: 24px; }
.plan-features li { font-size: 13px; color: var(--text-muted); padding: 7px 0; border-bottom: 1px solid var(--border); }
.plan-features li:last-child { border-bottom: none; }
.pricing-usd-note { font-size: 11px; color: var(--text-muted); margin-top: 3px; }

/* CTA section */
.cta-section { padding: 80px 24px; text-align: center; background: var(--purple-light); }
.cta-section h2 { font-size: 28px; font-weight: 600; margin-bottom: 12px; }
.cta-section p { font-size: 15px; color: var(--text-muted); margin-bottom: 28px; }

/* Footer */
.footer { border-top: 1px solid var(--border); padding: 32px 24px; }
.footer-container { max-width: 1100px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.footer-brand { font-size: 16px; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.footer-brand p { font-size: 13px; color: var(--text-muted); font-weight: 400; margin-top: 4px; }
.footer-links { display: flex; gap: 24px; font-size: 13px; color: var(--text-muted); }
.footer-links a:hover { color: var(--purple); }
.footer-copy { font-size: 12px; color: var(--text-muted); }

/* Responsive */
@media (max-width: 768px) {
  .hero h1 { font-size: 30px; }
  .features-grid, .pricing-grid { grid-template-columns: 1fr; }
  .stats-bar { grid-template-columns: 1fr; }
  .stat { border-right: none; border-bottom: 1px solid var(--border); }
  .nav-links { display: none; }
}


/* ── Auth pages ─────────────────────────────── */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-alt);
  padding: 40px 16px;
}
.auth-container {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  width: 100%;
  max-width: 460px;
}
.auth-logo {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 24px;
  color: var(--text);
}
.auth-container h1 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 6px;
}
.auth-sub {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.5;
}
.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 11px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  font-size: 14px;
  cursor: pointer;
  color: var(--text);
  text-decoration: none;
  margin-bottom: 4px;
  transition: border-color .2s;
}
.btn-google:hover { border-color: var(--purple); }
.divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 0;
  font-size: 12px;
  color: var(--text-muted);
}
.divider::before, .divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.field input, .field select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--text);
  background: var(--bg);
  transition: border-color .2s;
  outline: none;
}
.field input:focus, .field select:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(83,74,183,.1);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.input-wrap { position: relative; }
.input-wrap input { padding-right: 40px; }
.eye-btn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  padding: 0;
  line-height: 1;
}
.strength-bars {
  display: flex;
  gap: 4px;
  margin-top: 8px;
}
.s-bar {
  height: 3px;
  flex: 1;
  border-radius: 2px;
  background: var(--border);
  transition: background .3s;
}
.strength-text {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 5px;
}
.label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.label-row label { margin-bottom: 0; }
.forgot-link { font-size: 12px; color: var(--purple); }
.check-row {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-bottom: 20px;
  font-size: 13px;
  color: var(--text-muted);
}
.check-row input { margin-top: 2px; width: 15px; height: 15px; flex-shrink: 0; }
.check-row a { color: var(--purple); }
.btn-auth {
  width: 100%;
  padding: 12px;
  background: var(--purple);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: background .2s;
}
.btn-auth:hover { background: var(--purple-dark); }
.auth-footer {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 20px;
}
.auth-footer a { color: var(--purple); font-weight: 500; }
.alert { padding: 12px 14px; border-radius: var(--radius); margin-bottom: 18px; font-size: 13px; }
.alert p { margin-bottom: 4px; }
.alert p:last-child { margin-bottom: 0; }
.alert-error { background: #FCEBEB; border: 1px solid #F09595; color: #791F1F; }
.alert-success { background: #EAF3DE; border: 1px solid #97C459; color: #27500A; }

/* ── App layout (dashboard) ──────────────────── */
.app-layout {
  display: flex;
  min-height: 100vh;
}
/* .sidebar {
  width: 240px;
  flex-shrink: 0;
  border-right: 1px solid var(--border);
  background: var(--bg);
  display: flex;
  flex-direction: column;
  padding: 20px 0;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 17px;
  font-weight: 600;
  padding: 0 20px 20px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 12px;
}
.sidebar-nav { flex: 1; padding: 0 10px; }
.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: none;
  margin-bottom: 2px;
  transition: all .15s;
}
.nav-item:hover { background: var(--bg-alt); color: var(--text); }
.nav-item.active { background: var(--purple-light); color: var(--purple-dark); font-weight: 500; }
.nav-icon { font-size: 17px; }
.sidebar-footer { padding: 16px; border-top: 1px solid var(--border); }
.user-chip { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.user-avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--purple-light);
  color: var(--purple-dark);
  display: flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 14px; flex-shrink: 0;
}
.user-chip-name { font-size: 13px; font-weight: 500; color: var(--text); }
.user-chip-plan { font-size: 11px; color: var(--text-muted); margin-top: 1px; }
.logout-link { font-size: 13px; color: var(--text-muted); text-decoration: none; }
.logout-link:hover { color: #E24B4A; }
.main-content { flex: 1; padding: 32px; overflow-y: auto; background: var(--bg-alt); } */
/* ── Sidebar ─────────────────────────────────── */
.app-layout {
  display: flex;
  min-height: 100vh;
}
.sidebar {
  width: 240px;
  flex-shrink: 0;
  border-right: 1px solid var(--border);
  background: var(--bg);
  display: flex;
  flex-direction: column;
  position: fixed;        /* ← fixed, not sticky */
  top: 0;
  left: 0;
  height: 100vh;          /* ← always full viewport height */
  overflow: hidden;       /* ← no scroll on sidebar itself */
  z-index: 50;
}
.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 17px;
  font-weight: 600;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;         /* ← never compress */
}
.sidebar-nav {
  flex: 1;
  padding: 10px 10px;
  overflow-y: auto;       /* ← scroll only the nav links if needed */
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: none;
  margin-bottom: 2px;
  transition: all .15s;
}
.nav-item:hover  { background: var(--bg-alt); color: var(--text); }
.nav-item.active { background: var(--purple-light); color: var(--purple-dark); font-weight: 500; }
.nav-icon { font-size: 17px; }
.sidebar-footer {
  padding: 12px 14px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;         /* ← never compress — always visible */
  background: var(--bg);
}
.user-chip {
  display: flex;
  align-items: center;
  gap: 9px;
}
.user-chip-text { flex: 1; min-width: 0; }
.user-chip-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.user-chip-plan { font-size: 11px; color: var(--text-muted); margin-top: 1px; }
.sidebar-logout {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius);
  color: var(--text-muted);
  flex-shrink: 0;
  transition: all .15s;
  text-decoration: none;
}
.sidebar-logout:hover { background: #FCEBEB; color: #E24B4A; }

/* Push main content right to account for fixed sidebar */
.main-content {
  margin-left: 240px;     /* ← matches sidebar width */
  flex: 1;
  padding: 32px;
  background: var(--bg-alt);
  min-height: 100vh;
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 28px;
}
.page-header h1 { font-size: 24px; font-weight: 600; margin-bottom: 4px; }
.page-sub { font-size: 14px; color: var(--text-muted); }
.btn-upgrade {
  padding: 9px 20px;
  background: var(--purple);
  color: #fff;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}
.stat-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
}
.stat-label { font-size: 12px; color: var(--text-muted); margin-bottom: 8px; }
.stat-value { font-size: 28px; font-weight: 600; color: var(--purple); }
.quick-actions h2 { font-size: 16px; font-weight: 600; margin-bottom: 16px; }
.action-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.action-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-decoration: none;
  color: var(--text);
  transition: border-color .2s, transform .15s;
  display: block;
}
.action-card:hover { border-color: var(--purple); transform: translateY(-2px); }
.action-icon { font-size: 28px; display: block; margin-bottom: 12px; }
.action-card h3 { font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.action-card p { font-size: 13px; color: var(--text-muted); line-height: 1.5; }



/* ── Calendar page ───────────────────────── */
.empty-state {
  text-align: center;
  padding: 80px 24px;
  max-width: 460px;
  margin: 0 auto;
}
.empty-icon { font-size: 48px; margin-bottom: 16px; }
.empty-state h2 { font-size: 20px; font-weight: 600; margin-bottom: 10px; }
.empty-state p { font-size: 14px; color: var(--text-muted); margin-bottom: 24px; line-height: 1.6; }
.empty-note { font-size: 12px; color: var(--text-muted); margin-top: 14px; }

.events-wrap { max-width: 720px; }
.events-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 24px;
}
.disconnect-link { color: #E24B4A; font-size: 12px; }
.disconnect-link:hover { text-decoration: underline; }

.day-group { margin-bottom: 28px; }
.day-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.event-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  margin-bottom: 8px;
  transition: border-color .2s;
}
.event-card:hover { border-color: var(--purple); }
.event-time {
  min-width: 110px;
  font-size: 13px;
  font-weight: 500;
  color: var(--purple);
  padding-top: 2px;
  flex-shrink: 0;
}
.event-dur { font-weight: 400; color: var(--text-muted); }
.all-day-badge {
  background: var(--purple-light);
  color: var(--purple-dark);
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 500;
}
.event-info { flex: 1; }
.event-title { font-size: 14px; font-weight: 500; margin-bottom: 4px; }
.event-meta { font-size: 12px; color: var(--text-muted); line-height: 1.5; }
.event-open {
  font-size: 12px;
  color: var(--purple);
  white-space: nowrap;
  align-self: center;
  flex-shrink: 0;
}
.event-open:hover { text-decoration: underline; }



/* ── Team page ────────────────────────────── */
.team-grid { display: flex; flex-direction: column; gap: 32px; }
.team-section, .tz-section { }
.section-header {
  display: flex; justify-content: space-between;
  align-items: center; margin-bottom: 16px;
}
.section-header h2 { font-size: 17px; font-weight: 600; }
.member-count { font-size: 13px; color: var(--text-muted); }

.member-card {
  display: flex; align-items: center; gap: 14px;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 14px 18px;
  margin-bottom: 8px; transition: border-color .2s;
}
.member-card:hover { border-color: var(--purple); }
.member-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 600; flex-shrink: 0;
}
.av-p { background: #EEEDFE; color: #3C3489; }
.av-t { background: #E1F5EE; color: #085041; }
.av-c { background: #FAECE7; color: #712B13; }
.av-b { background: #E6F1FB; color: #0C447C; }
.av-a { background: #FAEEDA; color: #633806; }
.member-info { flex: 1; }
.member-name { font-size: 14px; font-weight: 600; margin-bottom: 3px; display: flex; align-items: center; gap: 8px; }
.member-meta { font-size: 12px; color: var(--text-muted); margin-bottom: 2px; }
.member-tz   { font-size: 12px; color: var(--text-muted); }
.member-right { text-align: right; }
.member-time  { font-size: 16px; font-weight: 600; color: var(--purple); margin-bottom: 4px; }
.role-badge   { font-size: 11px; padding: 2px 8px; border-radius: 10px; font-weight: 500; }
.badge-admin  { background: #EEEDFE; color: #3C3489; }
.badge-member { background: #F1EFE8; color: #444441; }
.work-status  { font-size: 11px; display: block; margin-bottom: 6px; }
.status-online  { color: #1D9E75; }
.status-offline { color: var(--text-muted); }
.remove-btn { font-size: 12px; padding: 5px 12px; border: 1px solid var(--border); border-radius: var(--radius); cursor: pointer; background: var(--bg); color: var(--text); white-space: nowrap; }
.remove-btn:hover { text-decoration: underline; border-color: var(--purple); color: var(--purple); } 
.pending-section { background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; margin-top: 8px; }
.pending-label { font-size: 12px; font-weight: 600; margin-bottom: 8px; color: var(--text-muted); }
.pending-row { display: flex; justify-content: space-between; font-size: 13px; color: var(--text-muted); padding: 5px 0; }
.pending-status { font-size: 11px; color: #BA7517; padding: 5px 12px; } 
.invite-link-box { background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; margin-top: 16px; }
.invite-link-label { font-size: 12px; color: var(--text-muted); margin-bottom: 8px; }
.invite-link-row { display: flex; align-items: center; gap: 10px; }
.invite-code { font-size: 12px; font-family: monospace; color: var(--purple); flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.copy-btn { font-size: 12px; padding: 5px 12px; border: 1px solid var(--border); border-radius: var(--radius); cursor: pointer; background: var(--bg); color: var(--text); white-space: nowrap; }
.copy-btn:hover { border-color: var(--purple); color: var(--purple); }

/* ── Time zone grid ─────────────────────────────────── */
.tz-grid-outer  { margin-top: 8px; }

.tz-grid-scroll {
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  position: relative;
}

.tz-grid-table {
  border-collapse: separate;
  border-spacing: 0;
  min-width: max-content;
  table-layout: fixed;
}

/* ── Frozen name column ─────────────────────────────── */
.tz-col-frozen {
  position: sticky;
  left: 0;
  z-index: 4;
  background: var(--bg);
  box-shadow: 2px 0 6px rgba(0,0,0,.07); /* shadow instead of border — no clipping issues */
}
thead .tz-col-frozen {
  background: var(--bg-alt);
  z-index: 5;
}

/* ── Name column sizing ─────────────────────────────── */
.tz-col-name {
  width: 148px;
  min-width: 148px;
  padding: 0 10px;
  height: 44px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  white-space: nowrap;
}
thead .tz-col-name {
  background: var(--bg-alt);
  height: 38px;
}
.tz-col-name-label {
  font-size: 9px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: .06em;
  text-transform: uppercase;
}

/* ── Hour columns ───────────────────────────────────── */
.tz-col-hour {
  width: 72px;        /* wider so "12:00 AM" fits */
  min-width: 68px;
  height: 44px;
  padding: 0;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  position: relative;
  cursor: default;
}
.tz-col-hour:last-child { border-right: none; }

thead .tz-col-hour {
  height: 38px;
  background: var(--bg-alt);
  border-bottom: 2px solid var(--border);
  text-align: center;
  /* background: var(--purple-light) !important; */
}
.tz-hour-lbl {
  display: block;
  font-size: 9.5px;
  color: var(--text-muted);
  text-align: center;
  white-space: nowrap;
  padding: 0 3px;
}
.tz-col-now {
    border-left: 2px solid var(--purple) !important;
    border-right: 2px solid var(--purple) !important;
    position: relative;
    z-index: 2;
}

/* Header */
thead .tz-col-now {
    border-top: 2px solid var(--purple) !important;
}

/* Last row */
tbody tr:last-child .tz-col-now {
    border-bottom: 2px solid var(--purple) !important;
}
/* ── Current hour — use border on td itself, not outline ─
   Left border: use box-shadow on left side only so it
   shows even when adjacent to the sticky name column.    */

thead .tz-col-now {
  background: var(--purple-light) !important;
  border-bottom: 2px solid var(--purple) !important;
  /* border-top:    none !important; */
  /* border-bottom:    none !important; */
  /* border-bottom: 2px solid var(--purple) !important; */
  /* box-shadow: inset 2px 0 0 var(--purple),
              inset -2px 0 0 var(--purple); */
}
thead .tz-col-now .tz-hour-lbl {
  color: var(--purple-dark, #3C3489);
  font-weight: 700;
  font-size: 10px;
}

/* ── Cell inner ─────────────────────────────────────── */
.tz-cell-inner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* ── Fill types ─────────────────────────────────────── */
.tz-fill {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tz-fill-off  { background: var(--bg-alt); }
.tz-fill-free { background: #D1FAE5; }

/* Full best slot */
.tz-fill-best {
  background: var(--purple-light, #EEEDFE);
}
.tz-best-tick {
  font-size: 13px;
  font-weight: 700;
  color: var(--purple-dark, #3C3489);
  line-height: 1;
  pointer-events: none;
  position: relative;
  z-index: 1;
}

/*
 * Partial member fill
 * Set directly on the element so var() resolves correctly.
 * PHP outputs: style="--off-l:25%;--off-r:0%"
 *
 * Layout: [white --off-l%][green ...][white --off-r%]
 */
.tz-fill-partial {
  background: linear-gradient(
    to right,
    #ffffff    0%,
    #ffffff    var(--off-l, 0%),
    #D1FAE5    var(--off-l, 0%),
    #D1FAE5    calc(100% - var(--off-r, 0%)),
    #ffffff    calc(100% - var(--off-r, 0%)),
    #ffffff    100%
  );
}

/*
 * Partial best-time overlap
 * Layout: [grey --off-l%][purple ...][grey --off-r%]
 *
 * IMPORTANT: the tick mark is absolutely positioned
 * inside the purple window so it is always visible.
 */
.tz-fill-best-partial {
  position: relative;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to right,
    var(--bg-alt, #F3F4F6)      0%,
    var(--bg-alt, #F3F4F6)      var(--off-l, 0%),
    var(--purple-light, #EEEDFE) var(--off-l, 0%),
    var(--purple-light, #EEEDFE) calc(100% - var(--off-r, 0%)),
    var(--bg-alt, #F3F4F6)      calc(100% - var(--off-r, 0%)),
    var(--bg-alt, #F3F4F6)      100%
  );
}
/* Tick sits centred in the purple window */
.tz-best-tick-small {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 10px;
  font-weight: 700;
  color: var(--purple-dark, #3C3489);
  pointer-events: none;
  /* Centre within [--off-l … 100% - --off-r] */
  left: calc(var(--off-l, 0%) + (100% - var(--off-l, 0%) - var(--off-r, 0%)) / 2 - 5px);
  line-height: 1;
}

/* ── Best times border ──────────────────────────────── */
.tz-overlap-row .tz-col-name,
.tz-overlap-row .tz-col-hour {
  border-top: 2px solid var(--border);
}

/* ── Member name cell ───────────────────────────────── */
.tz-name-cell {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
}
.tz-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--purple-light);
  color: var(--purple-dark, #3C3489);
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  user-select: none;
}
.tz-avatar-best {
  background: var(--purple);
  color: #fff;
  font-size: 11px;
}
.tz-name-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  overflow: hidden;
}
.tz-name-text {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 86px;
}
.tz-live-time {
  font-size: 10px;
  color: var(--purple);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* ── Tooltip ────────────────────────────────────────── */
.tz-tooltip {
  position: fixed;
  pointer-events: none;
  background: #111827;
  color: #fff;
  font-size: 12px;
  line-height: 1.7;
  padding: 9px 13px;
  border-radius: 8px;
  white-space: nowrap;
  opacity: 0;
  z-index: 9999;
  box-shadow: 0 4px 16px rgba(0,0,0,.28);
  transition: opacity .12s ease;
}
.tz-tooltip-visible { opacity: 1; }

/* ── Legend ─────────────────────────────────────────── */
.tz-legend {
  display: flex;
  gap: 18px;
  margin-top: 10px;
  flex-wrap: wrap;
  font-size: 11px;
  color: var(--text-muted);
  align-items: center;
}
.tz-legend-item { display: flex; align-items: center; gap: 6px; }
.tz-legend-swatch {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  flex-shrink: 0;
}
.tz-legend-partial {
  background: linear-gradient(to right, #fff 40%, #D1FAE5 40%);
  border: 1px solid var(--border);
}

/* ── Note ───────────────────────────────────────────── */
.tz-base-note {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 7px;
  line-height: 1.5;
}

/* ── Responsive ─────────────────────────────────────── */
@media (max-width: 768px) {
  .tz-col-name  { width: 100px; min-width: 100px; }
  .tz-col-hour  { width: 58px; min-width: 54px; }
  .tz-hour-lbl  { font-size: 8px; }
  .tz-name-text { max-width: 54px; }
}

/* ── Modal ────────────────────────────────── */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.45); display: flex; align-items: center; justify-content: center; z-index: 999; }
.modal-box { background: var(--bg); border-radius: var(--radius-lg); padding: 28px; width: 100%; max-width: 420px; }
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.modal-header h3 { font-size: 17px; font-weight: 600; }
.modal-close { background: none; border: none; font-size: 18px; cursor: pointer; color: var(--text-muted); padding: 0; }

/* ── Public booking page ─────────────────── */
.booking-page { min-height: 100vh; background: var(--bg-alt); padding: 40px 24px; }
.booking-layout { display: grid; grid-template-columns: 280px 1fr; gap: 32px; max-width: 860px; margin: 0 auto; }
.booking-host-panel { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; text-align: center; height: fit-content; }
.host-avatar { width: 64px; height: 64px; border-radius: 50%; background: var(--purple-light); color: var(--purple-dark); display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 600; margin: 0 auto 14px; }
.booking-host-panel h1 { font-size: 20px; font-weight: 600; margin-bottom: 12px; }
.booking-meta { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--text-muted); margin-bottom: 14px; }
.booking-desc { font-size: 13px; color: var(--text-muted); line-height: 1.6; margin-bottom: 20px; }
.powered-by { font-size: 11px; color: var(--text-muted); margin-top: 20px; border-top: 1px solid var(--border); padding-top: 14px; }
.powered-by a { color: var(--purple); }
.booking-slots-panel { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; }
.booking-slots-panel h2 { font-size: 18px; font-weight: 600; margin-bottom: 20px; }
.slots-day-group { margin-bottom: 20px; }
.slots-date-label { font-size: 12px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 10px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.slots-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.slot-btn { padding: 10px; border: 1px solid var(--border); border-radius: var(--radius); font-size: 13px; cursor: pointer; background: var(--bg); color: var(--text); transition: all .15s; }
.slot-btn:hover, .slot-selected { background: var(--purple-light) !important; border-color: var(--purple) !important; color: var(--purple-dark) !important; font-weight: 500; }
.no-slots { font-size: 14px; color: var(--text-muted); text-align: center; padding: 40px; }
.booking-success { text-align: center; max-width: 440px; margin: 80px auto; padding: 40px; background: var(--bg); border-radius: var(--radius-lg); border: 1px solid var(--border); }
.success-icon { font-size: 52px; margin-bottom: 16px; }
.booking-success h1 { font-size: 26px; font-weight: 600; margin-bottom: 10px; }
.booking-success p { font-size: 15px; color: var(--text-muted); margin-bottom: 24px; line-height: 1.6; }

@media (max-width: 768px) {
  .booking-layout { grid-template-columns: 1fr; }
  .slots-grid { grid-template-columns: repeat(3,1fr); }
  .tzg-header, .tzg-row { grid-template-columns: 90px repeat(13,1fr); }
}

/* ── Settings ─────────────────────── */
.settings-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  max-width: 640px;
}
.url-prefix {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-right: none;
  padding: 10px 12px;
  font-size: 13px;
  color: var(--text-muted);
  border-radius: var(--radius) 0 0 var(--radius);
  white-space: nowrap;
}

/* ── Smart scheduler ────────────────────────────── */
.scheduler-layout {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 20px;
  align-items: start;
}
.sched-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.sched-card h2 { font-size: 16px; font-weight: 600; margin-bottom: 18px; }

.attendee-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.attendee-chip {
  display: flex; align-items: center; gap: 7px;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 20px; cursor: pointer;
  font-size: 13px; color: var(--text-muted);
  transition: all .15s; user-select: none;
}
.attendee-chip:hover { border-color: var(--purple); color: var(--text); }
.attendee-chip.chip-selected {
  background: var(--purple-light);
  border-color: var(--purple);
  color: var(--purple-dark); font-weight: 500;
}
.chip-init {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--purple-light); color: var(--purple-dark);
  display: flex; align-items: center; justify-content: center;
  font-size: 9px; font-weight: 600; flex-shrink: 0;
}
.chip-check { font-size: 12px; display: none; }
.chip-selected .chip-check { display: inline; }

.find-btn {
  width: 100%; padding: 12px;
  background: var(--purple); color: #fff;
  border: none; border-radius: var(--radius);
  font-size: 15px; font-weight: 500;
  cursor: pointer; margin-top: 16px;
  display: flex; align-items: center;
  justify-content: center; gap: 8px;
  transition: background .2s;
}
.find-btn:hover { background: var(--purple-dark); }
.find-btn:disabled { opacity: .6; cursor: not-allowed; }

/* Results panel */
.scheduler-results {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px; min-height: 400px;
}
.results-empty { text-align: center; padding: 60px 24px; }
.re-icon { font-size: 40px; margin-bottom: 12px; }
.results-empty p { font-size: 14px; color: var(--text-muted); line-height: 1.6; }
.results-header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 16px; }
.results-header h2 { font-size: 16px; font-weight: 600; }
.results-sub { font-size: 12px; color: var(--text-muted); }

/* Slot cards */
.slot-card {
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 16px; margin-bottom: 10px; cursor: pointer;
  transition: border-color .15s, transform .1s;
}
.slot-card:hover { border-color: var(--purple); transform: translateY(-1px); }
.slot-best  { border-color: #1D9E75; background: #E1F5EE18; }
.slot-selected { border: 2px solid var(--purple) !important; background: var(--purple-light); }
.slot-top  { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 10px; }
.slot-time { font-size: 15px; font-weight: 600; }
.slot-date { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.score-badge { font-size: 11px; padding: 3px 10px; border-radius: 10px; font-weight: 500; white-space: nowrap; }
.score-best { background: #E1F5EE; color: #085041; }
.score-good { background: #EEEDFE; color: #3C3489; }
.score-ok   { background: #F1EFE8; color: #444441; }
.slot-members { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 8px; }
.sm-chip  { font-size: 11px; padding: 3px 8px; border-radius: 10px; }
.sm-free  { background: #E1F5EE; color: #085041; }
.sm-conflict { background: #FCEBEB; color: #791F1F; }
.sm-off   { background: #F1EFE8; color: #5F5E5A; }
.slot-note    { font-size: 12px; margin-bottom: 8px; }
.slot-note.ok { color: #1D9E75; }
.slot-note.warn { color: #BA7517; }
.score-bar-wrap { display: flex; align-items: center; gap: 8px; }
.score-bar-bg   { flex: 1; height: 4px; background: var(--border); border-radius: 2px; }
.score-bar-fill { height: 4px; border-radius: 2px; background: var(--purple); transition: width .4s; }
.score-val { font-size: 11px; color: var(--text-muted); min-width: 38px; text-align: right; }
.no-slots { text-align: center; padding: 40px; font-size: 14px; color: var(--text-muted); }

/* Confirm panel */
.confirm-panel {
  margin-top: 16px; padding-top: 16px;
  border-top: 1px solid var(--border);
}
.confirm-selected {
  background: var(--bg-alt); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px; margin-bottom: 14px;
}
.confirm-row {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; color: var(--text-muted);
  padding: 5px 0; border-bottom: 1px solid var(--border);
}
.confirm-row:last-child { border-bottom: none; }
.confirm-row i { font-size: 16px; flex-shrink: 0; }
.create-btn {
  width: 100%; padding: 12px;
  background: #1D9E75; color: #fff;
  border: none; border-radius: var(--radius);
  font-size: 14px; font-weight: 600;
  cursor: pointer; display: flex;
  align-items: center; justify-content: center; gap: 8px;
  transition: background .2s;
}
.create-btn:hover { background: #0F6E56; }
.create-btn:disabled { opacity: .6; cursor: not-allowed; }

/* Loading spinner */
.loading-spinner {
  width: 36px; height: 36px;
  border: 3px solid var(--border);
  border-top-color: var(--purple);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Upcoming meetings */
.upcoming-row {
  display: flex; gap: 14px; padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.upcoming-row:last-child { border-bottom: none; }
.upcoming-date {
  min-width: 40px; text-align: center;
  background: var(--purple-light); border-radius: var(--radius);
  padding: 6px 4px;
}
.upd-day { font-size: 20px; font-weight: 700; color: var(--purple-dark); line-height: 1; }
.upd-mon { font-size: 10px; color: var(--purple-dark); text-transform: uppercase; margin-top: 2px; }
.upcoming-info { flex: 1; }
.upcoming-title { font-size: 14px; font-weight: 600; margin-bottom: 3px; }
.upcoming-meta  { font-size: 12px; color: var(--text-muted); margin-bottom: 4px; }
.join-link { font-size: 12px; color: #1D9E75; font-weight: 500; }
.join-link:hover { text-decoration: underline; }

@media (max-width: 900px) {
  .scheduler-layout { grid-template-columns: 1fr; }
}

/* Reports / upgrade banner */
.upgrade-banner {
  display: flex; justify-content: space-between; align-items: center;
  background: var(--purple-light); border: 1px solid #AFA9EC;
  border-radius: var(--radius-lg); padding: 20px 24px; margin-top: 24px;
  gap: 20px; flex-wrap: wrap;
}
.upgrade-banner h3 { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.upgrade-banner p  { font-size: 13px; color: var(--text-muted); }

/* ── Pricing page extras ────────────────────── */
.feat-yes { color: var(--text-muted); }
.feat-yes::before { content: ''; }
.feat-no  { color: #C4B5B5; text-decoration: line-through; font-size: 12px; }
.plan-current { border: 2px solid #1D9E75 !important; }
.faq-section { padding: 0 0 48px; }
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}
.faq-q { font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.faq-a { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

/* ── Checkout page ───────────────────────────── */
.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
  max-width: 860px;
  align-items: start;
}
.checkout-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.plan-chip-lg {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--purple-light);
  color: var(--purple-dark);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 24px;
}
.checkout-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: var(--text-muted);
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.checkout-grand {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  border-bottom: none;
  margin-bottom: 20px;
}
.rzp-btn {
  width: 100%;
  padding: 13px;
  background: #528FF0;
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background .2s;
}
.rzp-btn:hover { background: #3B77D8; }
.rzp-btn:disabled { opacity: .6; cursor: not-allowed; }
.secure-badges {
  display: flex;
  justify-content: center;
  gap: 16px;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 10px;
  flex-wrap: wrap;
}
.checkout-summary {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
}
.checkout-summary h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 14px;
}
.summary-feat {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--text-muted);
  padding: 7px 0;
  border-bottom: 1px solid var(--border);
  line-height: 1.4;
}
.summary-feat:last-of-type { border-bottom: none; }
.sf-icon { font-size: 16px; flex-shrink: 0; }
.trial-note {
  margin-top: 16px;
  background: #E1F5EE;
  border-radius: var(--radius);
  padding: 12px;
  font-size: 12px;
  color: #085041;
}

/* ── Billing page ────────────────────────────── */
.billing-plan-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 26px;
  margin-bottom: 28px;
  gap: 20px;
  flex-wrap: wrap;
}
.billing-plan-badge {
  font-size: 15px;
  font-weight: 600;
}
.badge-pro  { color: var(--purple-dark); }
.badge-free { color: var(--text-muted); }
.billing-history h2 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 14px;
}
.billing-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.billing-table th {
  text-align: left;
  padding: 10px 12px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .05em;
  border-bottom: 1px solid var(--border);
}
.billing-table td {
  padding: 12px;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
}
.billing-table code {
  font-size: 11px;
  background: var(--bg-alt);
  padding: 2px 6px;
  border-radius: 4px;
}
.status-pill {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 10px;
  font-weight: 500;
}
.status-captured { background: #E1F5EE; color: #085041; }
.status-failed   { background: #FCEBEB; color: #791F1F; }

/* ── Feature gate prompt ─────────────────────── */
.upgrade-gate {
  text-align: center;
  padding: 64px 24px;
  max-width: 440px;
  margin: 0 auto;
}
.gate-icon-lg { font-size: 48px; margin-bottom: 16px; }
.upgrade-gate h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 10px;
}
.upgrade-gate p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.6;
}
.gate-note {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 10px;
}

@media (max-width: 768px) {
  .checkout-layout { grid-template-columns: 1fr; }
  .billing-plan-card { flex-direction: column; align-items: flex-start; }
}

.report-section {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-top: 20px;
}
.report-section h2 { font-size: 16px; font-weight: 600; margin-bottom: 16px; }
.day-bars { display: flex; flex-direction: column; gap: 10px; }
.day-bar-row { display: flex; align-items: center; gap: 12px; }
.day-bar-label { font-size: 12px; color: var(--text-muted); width: 36px; }
.day-bar-track { flex: 1; height: 8px; background: var(--bg-alt); border-radius: 4px; }
.day-bar-fill { height: 8px; background: var(--purple); border-radius: 4px; }
.day-bar-val { font-size: 12px; color: var(--text-muted); width: 24px; text-align: right; }
.report-note { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

/* ── Multi-team layout ───────────────────────────── */
.team-page-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 20px;
  align-items: start;
}
.team-switcher-panel {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px;
  position: sticky;
  top: 24px;
}
.switcher-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.switcher-count {
  background: var(--bg-alt);
  border-radius: 8px;
  padding: 1px 6px;
  font-size: 10px;
}
.switcher-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: transparent;
  cursor: pointer;
  text-align: left;
  transition: all .15s;
  margin-bottom: 2px;
}
.switcher-btn:hover     { background: var(--bg-alt); border-color: var(--border); }
.switcher-active        { background: var(--purple-light) !important;
                          border-color: var(--purple) !important; }
.switcher-avatar {
  width: 32px; height: 32px;
  border-radius: var(--radius);
  background: var(--purple-light);
  color: var(--purple-dark);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 600; flex-shrink: 0;
}
.switcher-name { font-size: 13px; font-weight: 500; color: var(--text); }
.switcher-meta { font-size: 11px; color: var(--text-muted); }
.switcher-plan-note {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.team-detail-panel { min-width: 0; }
.team-detail-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}
.team-detail-header h2 { font-size: 18px; font-weight: 600; margin-bottom: 4px; }
.team-desc { font-size: 13px; color: var(--text-muted); }

@media (max-width: 768px) {
  .team-page-layout { grid-template-columns: 1fr; }
  .team-switcher-panel { position: static; }
}

/* ── Invite section ──────────────────────────────── */
.invite-section {
  margin-top: 24px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
}
.invite-section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
  gap: 16px;
  flex-wrap: wrap;
}
.invite-section-header h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 3px;
}
.invite-section-header p {
  font-size: 13px;
  color: var(--text-muted);
}
.member-list-wrap { display: flex; flex-direction: column; gap: 0; }
.pending-email { font-size: 13px; flex: 1; }

.slug-check   { font-size: 12px; margin-top: 5px; }
.slug-ok      { color: #1D9E75; }
.slug-taken   { color: #E24B4A; }

/* Textarea matches input styling everywhere */
textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  background: var(--bg);
  resize: vertical;
  min-height: 72px;
  line-height: 1.5;
  transition: border-color .2s;
  outline: none;
}
textarea:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(83,74,183,.1);
}

.stat-sub {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.sidebar-footer {
  padding: 12px 14px;
  border-top: 1px solid var(--border);
}
.user-chip {
  display: flex;
  align-items: center;
  gap: 9px;
}
.user-chip-text { flex: 1; min-width: 0; }
.user-chip-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.user-chip-plan { font-size: 11px; color: var(--text-muted); margin-top: 1px; }
.sidebar-logout {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: var(--radius);
  color: var(--text-muted);
  flex-shrink: 0;
  transition: all .15s;
  text-decoration: none;
}
.sidebar-logout:hover {
  background: #FCEBEB;
  color: #E24B4A;
}

.tz-search-wrap { position: relative; }
.tz-search-wrap input {
  width: 100%;
  margin-bottom: 4px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
}
.tz-search-wrap select { width: 100%; max-height: 200px; }

/* ── Schedule mode tabs ──────────────────────── */
.mode-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}
.mode-tab {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  background: var(--bg);
  color: var(--text-muted);
  transition: all .15s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}
.mode-tab:hover  { border-color: var(--purple); color: var(--text); }
.mode-tab.active {
  background: var(--purple-light);
  border-color: var(--purple);
  color: var(--purple-dark);
}
.mode-tab-badge {
  font-size: 10px;
  background: var(--purple);
  color: #fff;
  padding: 1px 6px;
  border-radius: 8px;
  font-weight: 600;
}



/* ── Schedule page layout ──────────────────── */
.scheduler-layout {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 20px;
  align-items: start;
}

/* Right column — shared wrapper for both Pro and Free */
.scheduler-right {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: 24px;       /* stays visible as user scrolls left column */
}

/* Free user right column */
.free-right-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.upcoming-card h2 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 14px;
}

/* Usage meter */
.usage-card { padding: 16px 20px; }
.usage-bar-track {
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
}
.usage-bar-fill {
  height: 6px;
  border-radius: 3px;
  transition: width .4s;
}

/* Pro upgrade nudge card */
.upgrade-nudge {
  text-align: center;
  padding: 24px 20px;
  background: var(--purple-light);
  border-color: #AFA9EC;
}
.upgrade-nudge h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
}
.upgrade-nudge p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 14px;
}
.nudge-list {
  list-style: none;
  text-align: left;
  font-size: 13px;
  color: var(--text-muted);
  display: inline-block;
}
.nudge-list li {
  padding: 3px 0;
  color: #3C3489;
  font-weight: 500;
}

/* Pro results panel stays full height */
.scheduler-results {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  min-height: 360px;
}

@media (max-width: 900px) {
  .scheduler-layout {
    grid-template-columns: 1fr;
  }
  .scheduler-right {
    position: static;
  }
}


/* ── OTP digit boxes ──────────────────────── */
.otp-boxes {
  display: flex !important;
  flex-direction: row !important;
  gap: 10px;
  justify-content: center;
  margin: 12px 0 4px;
}
.otp-digit {
  width: 46px !important;
  height: 54px !important;
  min-width: 46px;
  text-align: center;
  font-size: 24px;
  font-weight: 600;
  font-family: monospace;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  transition: border-color .15s;
  padding: 0;
  outline: none;
  flex-shrink: 0;
}
.otp-digit:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(83,74,183,.12);
}



/* ── Portal invite banner ────────────────────────── */
.portal-invites-banner {
  background: var(--purple-light);
  border: 1px solid #AFA9EC;
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  margin-bottom: 24px;
}
.pib-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}
.pib-icon { font-size: 24px; flex-shrink: 0; margin-top: 2px; }
.pib-header strong { font-size: 14px; color: var(--purple-dark); display: block; margin-bottom: 2px; }
.pib-header p { font-size: 12px; color: var(--text-muted); margin: 0; }
.pib-invite-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 12px;
  background: var(--bg);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.pib-invite-row:last-child { margin-bottom: 0; }
.pib-invite-info { display: flex; flex-direction: column; gap: 3px; }
.pib-team-name { font-size: 14px; font-weight: 600; color: var(--text); }
.pib-meta { font-size: 11px; color: var(--text-muted); }
.pib-actions { display: flex; gap: 8px; align-items: center; flex-shrink: 0; }



/* ── Profile card ──────────────────────────────────── */
.profile-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
  max-width: 640px;
}
.profile-avatar-section {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.profile-avatar-wrap {
  position: relative;
  width: 80px;
  height: 80px;
  flex-shrink: 0;
}
.profile-avatar-img,
.profile-avatar-placeholder {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  display: flex;
  align-items: center;
  justify-content: center;
}
.profile-avatar-img {
  border: 2px solid var(--border);
}
.profile-avatar-placeholder {
  background: var(--purple-light);
  color: var(--purple-dark);
  font-size: 26px;
  font-weight: 700;
}
.avatar-upload-overlay {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(0,0,0,.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  opacity: 0;
  cursor: pointer;
  transition: opacity .2s;
  color: #fff;
  font-size: 10px;
  font-weight: 500;
}
.profile-avatar-wrap:hover .avatar-upload-overlay { opacity: 1; }
.profile-avatar-info { flex: 1; min-width: 0; }
.profile-name {
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}
.profile-email {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.profile-plan-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 10px;
  margin-bottom: 8px;
}
.profile-plan-badge.pro        { background: var(--purple-light); color: var(--purple-dark); }
.profile-plan-badge.enterprise { background: #FEF3C7; color: #633806; }
.profile-plan-badge.free       { background: var(--bg-alt); color: var(--text-muted); border: 1px solid var(--border); }
.profile-avatar-hint {
  font-size: 11px;
  color: var(--text-muted);
  margin: 0;
}

/* Sidebar avatar image */
.user-avatar-wrap { flex-shrink: 0; }
.user-avatar-img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border);
}


/* ── Settings layout ────────────────────────────────── */
.settings-layout {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px;
  align-items: start;
  max-width: 860px;
}

/* Nav */
.settings-nav {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 8px;
  position: sticky;
  top: 24px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.settings-nav-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 12px;
  border-radius: var(--radius);
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  transition: all .15s;
}
.settings-nav-item:hover  { background: var(--bg-alt); color: var(--text); }
.settings-nav-item.active {
  background: var(--purple-light);
  color: var(--purple-dark);
  font-weight: 600;
}
.settings-nav-icon { font-size: 16px; }
.settings-nav-plan {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.settings-plan-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 10px;
  text-align: center;
}
.settings-plan-badge.pro        { background: var(--purple-light); color: var(--purple-dark); }
.settings-plan-badge.enterprise { background: #FEF3C7; color: #633806; }
.settings-plan-badge.free       { background: var(--bg-alt); color: var(--text-muted);
                                   border: 1px solid var(--border); }
.settings-upgrade-link {
  font-size: 11px;
  color: var(--purple);
  text-align: center;
  text-decoration: none;
}
.settings-upgrade-link:hover { text-decoration: underline; }

/* Section */
.settings-content { min-width: 0; }
.settings-section {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.settings-section-title {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 4px;
}
.settings-section-sub {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

/* Avatar card */
.settings-avatar-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.settings-avatar-wrap {
  position: relative;
  width: 80px;
  height: 80px;
  flex-shrink: 0;
  cursor: pointer;
}
.settings-avatar-img,
.settings-avatar-initials {
  width: 80px;
  height: 80px;
  border-radius: 50%;
}
.settings-avatar-img {
  object-fit: cover;
  border: 2px solid var(--border);
}
.settings-avatar-initials {
  background: var(--purple-light);
  color: var(--purple-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 700;
}
.settings-avatar-overlay {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(0,0,0,.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  opacity: 0;
  cursor: pointer;
  transition: opacity .2s;
  color: #fff;
  font-size: 10px;
  font-weight: 500;
  text-align: center;
}
.settings-avatar-wrap:hover .settings-avatar-overlay { opacity: 1; }
.settings-avatar-meta { flex: 1; min-width: 0; }
.settings-avatar-name  { font-size: 17px; font-weight: 600; margin-bottom: 3px; }
.settings-avatar-email {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.settings-avatar-hint { font-size: 11px; color: var(--text-muted); margin: 0; }

/* Form fields */
.settings-form { margin-top: 8px; }
.settings-field { margin-bottom: 22px; }
.settings-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}
.settings-field-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 8px;
  line-height: 1.5;
}
.settings-input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--text);
  background: var(--bg);
  transition: border-color .2s;
  outline: none;
  font-family: inherit;
}
.settings-input:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(83,74,183,.1);
}
.settings-input-readonly {
  background: var(--bg-alt);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: default;
  user-select: all;
}
.settings-google-badge {
  margin-left: auto;
  font-size: 11px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 2px 8px;
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--text-muted);
}
.settings-select { cursor: pointer; }

/* Booking URL prefix */
.settings-input-prefix-wrap {
  display: flex;
  align-items: stretch;
}
.settings-input-prefix {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-right: none;
  padding: 10px 10px;
  font-size: 12px;
  color: var(--text-muted);
  border-radius: var(--radius) 0 0 var(--radius);
  white-space: nowrap;
  display: flex;
  align-items: center;
  font-family: monospace;
}
.settings-input-suffix {
  border-radius: 0 var(--radius) var(--radius) 0;
  flex: 1;
}

/* Booking preview */
.settings-booking-preview {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 14px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.settings-booking-preview-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .04em;
  flex-shrink: 0;
}
.settings-booking-preview-url {
  font-family: monospace;
  font-size: 12px;
  color: var(--purple);
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.settings-preview-link {
  font-size: 12px;
  color: var(--purple);
  white-space: nowrap;
  flex-shrink: 0;
}

/* Working hours row */
.settings-time-row {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}
.settings-time-field { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 120px; }
.settings-time-label { font-size: 11px; color: var(--text-muted); font-weight: 500; }
.settings-time-sep { font-size: 13px; color: var(--text-muted); padding-bottom: 10px; }

/* TZ search */
.settings-tz-wrap { display: flex; flex-direction: column; gap: 4px; }

/* Slug check */
.slug-check-msg   { font-size: 12px; margin-top: 5px; }
.slug-ok          { color: var(--green); }
.slug-taken       { color: var(--red); }

/* PW strength */
.pw-strength-bars {
  display: flex;
  gap: 4px;
  margin-top: 8px;
}
.pw-bar {
  height: 3px;
  flex: 1;
  border-radius: 2px;
  background: var(--border);
  transition: background .3s;
}
.pw-strength-label {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* PW toggle */
.settings-pw-wrap { position: relative; }
.settings-pw-wrap .settings-input { padding-right: 42px; }
.settings-pw-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  padding: 0;
  line-height: 1;
}

/* Info card (Google sign-in notice) */
.settings-info-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 20px;
}
.settings-info-icon { flex-shrink: 0; margin-top: 2px; }
.settings-info-title { font-size: 13px; font-weight: 600; margin-bottom: 3px; }
.settings-info-body  { font-size: 12px; color: var(--text-muted); line-height: 1.5; }

/* Form footer */
.settings-form-footer {
  padding-top: 8px;
  border-top: 1px solid var(--border);
  margin-top: 4px;
}

/* Danger zone */
.settings-danger-zone {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.settings-danger-zone h3 {
  font-size: 13px;
  font-weight: 600;
  color: var(--red);
  margin-bottom: 12px;
}
.settings-danger-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.settings-danger-title { font-size: 13px; font-weight: 500; margin-bottom: 3px; }
.settings-danger-body  { font-size: 12px; color: var(--text-muted); }

@media (max-width: 768px) {
  .settings-layout { grid-template-columns: 1fr; }
  .settings-nav { position: static; flex-direction: row; flex-wrap: wrap; }
  .settings-nav-plan { display: none; }
}








/* ==========================================================================Remove when stable ======================================================================== */

/* ── Free trial mode — hide all payment UI ─────────── */
.upgrade-btn,
.upgrade-nudge,
.plan-limit-banner,
.billing-upgrade-card,
.pricing-cta-inline {
    display: none !important;
}