/* Scheduling UI — reuses Way2Call tokens (app.css): --primary, --bg-main,
   --text-main, --panel-bg, --radius-lg. Mobile-first: 3-col -> 1-col. */
.sched-wrap { max-width: 1120px; margin: 0 auto; padding: 96px 20px 64px; }
.sched-card { background: var(--panel-bg); backdrop-filter: var(--panel-blur); border: 1px solid rgba(62,109,246,.14); border-radius: var(--radius-lg); box-shadow: 0 12px 40px rgba(11,14,20,.08); padding: 28px; }
.sched-grid { display: grid; grid-template-columns: 280px 1fr 280px; gap: 20px; align-items: start; }
.sched-host { display: flex; gap: 12px; align-items: center; }
.sched-avatar { width: 52px; height: 52px; border-radius: 50%; background: var(--primary); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.2rem; }
.sched-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.sched-event-list { display: grid; gap: 12px; margin-top: 16px; }
.sched-event { display: flex; gap: 12px; align-items: center; padding: 16px; border-radius: 14px; border: 1px solid rgba(62,109,246,.16); text-decoration: none; color: inherit; background: rgba(255,255,255,.6); }
.sched-event:hover { border-color: var(--primary); box-shadow: 0 6px 20px rgba(62,109,246,.15); }
.sched-dot { width: 12px; height: 12px; border-radius: 50%; flex: none; }
.sched-cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.sched-calnav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.sched-calnav .sched-iconbtn { width: 40px; height: 40px; font-size: 1.3rem; }
.sched-dow { text-align: center; font-size: .75rem; font-weight: 700; color: var(--text-muted); padding: 4px 0; }
.sched-cal button { aspect-ratio: 1; border-radius: 10px; border: 1px solid transparent; background: transparent; color: inherit; font-size: .9rem; cursor: pointer; min-height: 44px; }
.sched-cal button.has-slot { border-color: var(--primary); font-weight: 600; }
.sched-cal button[aria-selected="true"] { background: var(--primary); color: #fff; }
.sched-cal button:disabled { opacity: .35; cursor: default; }
.sched-slots { display: grid; gap: 8px; max-height: 420px; overflow: auto; scrollbar-width: thin; scrollbar-color: rgba(100,116,139,.45) transparent; overscroll-behavior: contain; }
.sched-slots::-webkit-scrollbar { width: 8px; }
.sched-slots::-webkit-scrollbar-track { background: transparent; }
.sched-slots::-webkit-scrollbar-thumb { background: rgba(100,116,139,.45); border-radius: 999px; border: 2px solid transparent; background-clip: padding-box; }
.sched-slots::-webkit-scrollbar-thumb:hover { background: rgba(79,109,245,.6); border: 2px solid transparent; background-clip: padding-box; }

/* ---- Public host page (/u/:user): professional profile + event list ---- */
.bk-host { text-align: center; padding: 8px 0 4px; }
.bk-avatar { width: 72px; height: 72px; border-radius: 50%; background: linear-gradient(135deg, #4F6DF5, #6366F1); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.7rem; overflow: hidden; box-shadow: 0 0 0 3px #fff, 0 0 0 5px rgba(79,109,245,.25), 0 10px 24px rgba(79,109,245,.3); }
.bk-avatar img { width: 100%; height: 100%; object-fit: cover; }
.bk-id { margin-top: 12px; display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; }
.bk-id b { font-size: 1.25rem; letter-spacing: -.01em; }
.bk-user { font-size: .78rem; font-weight: 700; color: var(--primary); background: rgba(62,109,246,.1); border-radius: 999px; padding: 3px 10px; }
.bk-tz { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-size: .85rem; color: var(--text-muted); }
.bk-tz .fa-earth-asia { color: var(--primary); }
.bk-head { text-align: center; margin: 20px 0 14px; }
.bk-head h3 { margin: 0 0 4px; font-size: 1.15rem; letter-spacing: -.01em; }
.bk-head p { margin: 0; font-size: .88rem; color: var(--text-muted); }
.bk-events { display: grid; gap: 12px; margin-top: 4px; }
.bk-event {
  display: flex; align-items: center; gap: 14px; padding: 16px 18px;
  border-radius: 14px; border: 1px solid rgba(62,109,246,.16); background: rgba(255,255,255,.65);
  text-decoration: none; color: inherit;
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}
.bk-event:hover { border-color: var(--primary); box-shadow: 0 8px 24px rgba(62,109,246,.16); transform: translateY(-1px); }
.bk-ic { width: 42px; height: 42px; border-radius: 12px; flex: none; display: inline-flex; align-items: center; justify-content: center; background: rgba(79,109,245,.1); color: var(--primary); font-size: 16px; }
.bk-info { flex: 1; min-width: 0; }
.bk-info b { display: block; font-size: 1rem; }
.bk-info small { color: var(--text-muted); font-size: .83rem; }
.bk-dur { flex: none; font-size: .75rem; font-weight: 800; color: var(--primary); background: rgba(62,109,246,.1); border-radius: 999px; padding: 4px 10px; }
.bk-go { flex: none; color: var(--text-muted); font-weight: 700; transition: transform 150ms ease, color 150ms ease; }
.bk-event:hover .bk-go { transform: translateX(3px); color: var(--primary); }
.bk-empty { text-align: center; padding: 28px 16px; border: 1px dashed rgba(62,109,246,.35); border-radius: 14px; }
.bk-empty p { margin: 0 0 6px; font-weight: 600; }
.bk-trust { text-align: center; margin: 20px 0 0; font-size: .8rem; color: var(--text-muted); }
@media (prefers-color-scheme: dark) {
  .bk-event { background: rgba(255,255,255,.04); }
  .bk-avatar { box-shadow: 0 0 0 3px rgba(255,255,255,.08), 0 0 0 5px rgba(79,109,245,.3), 0 10px 24px rgba(0,0,0,.4); }
}
.sched-slot { padding: 12px; border-radius: 10px; border: 1px solid rgba(62,109,246,.25); background: transparent; color: inherit; font-weight: 600; cursor: pointer; min-height: 48px; }
.sched-slot:hover, .sched-slot[aria-pressed="true"] { background: var(--primary); color: #fff; border-color: var(--primary); }
.sched-form input, .sched-form select, .sched-form textarea { width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(11,14,20,.15); margin: 6px 0 12px; font-size: 1rem; background: var(--bg-main); color: var(--text-main); outline: none; transition: border-color 150ms ease, box-shadow 150ms ease; }
.sched-form input::placeholder, .sched-form textarea::placeholder { color: var(--text-muted); opacity: 1; }
.sched-form input:hover, .sched-form select:hover, .sched-form textarea:hover { border-color: rgba(62,109,246,.4); }
.sched-form input:focus, .sched-form select:focus, .sched-form textarea:focus { border-color: var(--primary, #3E6DF6); box-shadow: 0 0 0 3px rgba(62,109,246,.16); outline: none; }
.sched-toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: #0B0E14; color: #fff; padding: 12px 20px; border-radius: 999px; z-index: 9999; font-size: .9rem; box-shadow: 0 8px 30px rgba(0,0,0,.3); }
.sched-skel { border-radius: 10px; background: linear-gradient(90deg, rgba(62,109,246,.08), rgba(62,109,246,.16), rgba(62,109,246,.08)); background-size: 200% 100%; animation: sched-shimmer 1.2s infinite; min-height: 48px; }
@keyframes sched-shimmer { to { background-position: -200% 0; } }
.sched-success { text-align: center; padding: 40px 24px; display: grid; gap: 12px; justify-items: center; }
.sched-success h3 { margin: 0; font-size: 1.4rem; }
.sched-success p { margin: 0; }
.sched-success .fa-circle-check { font-size: 3.4rem; color: var(--signal); animation: sched-pop .45s ease; }
@keyframes sched-pop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.sched-side { display: flex; gap: 16px; }
.sched-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.sched-table th, .sched-table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid rgba(11,14,20,.08); }
.sched-toggle { position: relative; width: 44px; height: 26px; border-radius: 999px; border: 0; background: rgba(11,14,20,.15); cursor: pointer; }
.sched-toggle[aria-pressed="true"] { background: var(--signal); }
.sched-dash-head { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border-radius: 16px; border: 1px solid rgba(62,109,246,.16); background: rgba(62,109,246,.05); }
.sched-badge { display: inline-block; font-size: .78rem; font-weight: 700; color: var(--primary); background: rgba(62,109,246,.12); border-radius: 999px; padding: 2px 10px; margin-left: 6px; vertical-align: middle; }
.sched-linkrow { display: flex; gap: 8px; align-items: center; margin-top: 10px; flex-wrap: wrap; }
.sched-linkrow .fa-link { color: var(--primary); }
.sched-link { font-weight: 600; color: var(--primary); text-decoration: none; word-break: break-all; }
.sched-link:hover { text-decoration: underline; }
.sched-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.sched-stat { border: 1px solid rgba(62,109,246,.14); border-radius: 14px; padding: 12px; text-align: center; }
.sched-stat b { display: block; font-size: 1.4rem; }
.sched-stat span { font-size: .78rem; color: var(--text-muted); }
.sched-tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; border: 1px solid rgba(62,109,246,.2); margin-bottom: 10px; }
.sched-tabs button { border: 0; background: transparent; color: inherit; border-radius: 999px; padding: 8px 16px; cursor: pointer; font-weight: 600; }
.sched-tabs button[aria-selected="true"] { background: var(--primary); color: #fff; }
.sched-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.sched-chip { display: inline-flex; gap: 6px; align-items: center; font-size: .82rem; font-weight: 600; border: 1px solid rgba(62,109,246,.25); border-radius: 999px; padding: 4px 6px 4px 12px; }
.sched-chip button { border: 0; background: transparent; color: inherit; cursor: pointer; font-size: 1rem; line-height: 1; padding: 2px 6px; }
.sched-iconbtn { border: 1px solid rgba(62,109,246,.2); background: transparent; color: inherit; border-radius: 10px; width: 36px; height: 36px; cursor: pointer; flex: none; }
.sched-iconbtn:hover { border-color: var(--primary); color: var(--primary); }
.sched-iconbtn.danger:hover { border-color: #dc2626; color: #dc2626; }
.sched-event.off { opacity: .6; }
.sched-avail-row input[type="time"], .sched-form select { color-scheme: light dark; }
@media (max-width: 640px) {
  .sched-dash-head { flex-direction: column; }
  .sched-stats { grid-template-columns: 1fr 1fr 1fr; }
  .sched-avail-row { flex-wrap: wrap; }
}
@media (max-width: 900px) {
  .sched-grid { grid-template-columns: 1fr; }
  .sched-wrap { padding-top: 84px; }
  .sched-cal button { min-height: 48px; }
}
@media (prefers-color-scheme: dark) {
  .sched-event { background: rgba(255,255,255,.04); }
}

/* Scheduling pages render the shared footer outside #landing-page-view, so the
   footer bottom links + India legal strip need base styling here. Without this
   the legal text collapses into one run-together block. */
.sched-wrap ~ .footer .footer-bottom { max-width: 1120px; margin: 32px auto 0; padding: 24px 0 0; border-top: 1px solid #E2E8F0; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .82rem; color: #64748B; }
.sched-wrap ~ .footer .footer-bottom nav { display: flex; gap: 18px; flex-wrap: wrap; }
.sched-wrap ~ .footer .footer-bottom a { color: #64748B; text-decoration: none; }
.sched-wrap ~ .footer .footer-bottom a:hover { color: #2563EB; }
html.dark .sched-wrap ~ .footer .footer-bottom { border-top-color: var(--glass-border); color: inherit; }
html.dark .sched-wrap ~ .footer .footer-bottom a { color: inherit; }
.sched-wrap ~ .footer .in-strip { max-width: 1120px; margin: 8px auto 0; padding: 16px 20px 4px; }
.sched-wrap ~ .footer .in-strip-title { font-weight: 800; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); margin: 0 0 8px; }
.sched-wrap ~ .footer .in-strip-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.sched-wrap ~ .footer .in-strip-grid b { display: block; margin-bottom: 2px; }
.sched-wrap ~ .footer .in-strip-grid span { color: var(--text-muted); font-size: .85rem; }
.sched-wrap ~ .footer .in-strip-note { color: var(--text-muted); font-size: .85rem; margin: 10px 0 0; }
.sched-calnav button:disabled { opacity: .35; cursor: default; }
@media (max-width: 720px) {
  .sched-wrap ~ .footer .in-strip-grid { grid-template-columns: 1fr; }
}

/* ---- Sign-in (/schedule): split-panel auth card ---- */
.sched-auth { display: grid; grid-template-columns: 1.05fr 1fr; gap: 28px; align-items: stretch; }
.sched-auth-brand {
  border-radius: 16px; padding: 28px;
  background: linear-gradient(160deg, rgba(62,109,246,.12), rgba(99,102,241,.05) 55%, transparent);
  border: 1px solid rgba(62,109,246,.18);
  display: flex; flex-direction: column; justify-content: center;
}
.sched-auth-brand h2 { margin: 10px 0 8px; font-size: clamp(1.7rem, 3vw, 2.2rem); line-height: 1.08; letter-spacing: -.02em; }
.sched-auth-sub { color: var(--text-muted); font-size: .95rem; line-height: 1.6; margin: 0 0 18px; }
.sched-auth-points { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 10px; font-size: .92rem; font-weight: 550; }
.sched-auth-points li { display: flex; gap: 10px; align-items: center; }
.sched-auth-points .tick {
  width: 22px; height: 22px; border-radius: 50%; flex: none;
  background: rgba(16,185,129,.14); color: #07875B;
  display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800;
}
.sched-auth-preview {
  display: inline-flex; align-items: center; gap: 8px; align-self: flex-start;
  font-size: .85rem; font-weight: 600; color: var(--primary);
  background: rgba(62,109,246,.08); border: 1px dashed rgba(62,109,246,.35);
  border-radius: 10px; padding: 9px 14px; max-width: 100%;
}
.sched-auth-form { padding: 8px 4px; display: flex; flex-direction: column; justify-content: center; }
.sched-auth-form h3 { margin: 0 0 4px; font-size: 1.35rem; letter-spacing: -.01em; }
.sched-auth-note { color: var(--text-muted); font-size: .88rem; margin: 0 0 18px; }
.sched-google {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 12px 16px; min-height: 48px;
  background: #fff; color: #1F2937; border: 1px solid rgba(11,14,20,.18); border-radius: 12px;
  font-size: .95rem; font-weight: 600; text-decoration: none; cursor: pointer;
  transition: border-color 150ms ease, box-shadow 150ms ease, background 150ms ease;
}
.sched-google svg { width: 20px; height: 20px; flex: none; }
.sched-google:hover { border-color: rgba(62,109,246,.55); box-shadow: 0 4px 16px rgba(62,109,246,.16); background: #fff; }
.sched-or { display: flex; align-items: center; gap: 12px; margin: 18px 0 12px; color: var(--text-muted); font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.sched-or::before, .sched-or::after { content: ""; flex: 1; height: 1px; background: rgba(11,14,20,.12); }
.sched-auth-form .sched-form label { font-weight: 600; font-size: .88rem; }
.sched-auth-form .sched-form button[type="submit"] { min-height: 48px; }
.sched-auth-fine { color: var(--text-muted); font-size: .8rem; margin: 12px 0 0; line-height: 1.55; }
.sched-auth-form .form-error { margin: 0 0 14px; }

/* ---- Username claim (/schedule/username) ---- */
.uname-wrap { max-width: 560px; margin: 0 auto; }
.uname-steps { list-style: none; margin: 0 0 20px; padding: 0; display: flex; gap: 8px; flex-wrap: wrap; }
.uname-steps li { display: inline-flex; align-items: center; gap: 8px; font-size: .82rem; font-weight: 600; color: var(--text-muted); }
.uname-steps li span { width: 24px; height: 24px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; background: rgba(11,14,20,.06); }
.uname-steps li.done { color: #07875B; }
.uname-steps li.done span { background: rgba(16,185,129,.15); color: #07875B; }
.uname-steps li.now { color: var(--text-main); }
.uname-steps li.now span { background: var(--primary); color: #fff; box-shadow: 0 2px 8px var(--primary-glow); }
.uname-preview {
  display: flex; align-items: center; gap: 10px; margin: 18px 0 20px;
  font-size: .95rem; font-weight: 600; color: var(--primary);
  background: rgba(62,109,246,.07); border: 1px dashed rgba(62,109,246,.35);
  border-radius: 12px; padding: 13px 16px; overflow: hidden;
  transition: border-color 150ms ease, background 150ms ease;
}
.uname-preview span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.uname-preview.ok { border-style: solid; border-color: rgba(16,185,129,.5); background: rgba(16,185,129,.07); }
.uname-preview.ok .fa-link { color: #07875B; }
.uname-hint { min-height: 1.4em; font-size: .85rem; margin: 6px 0 12px; color: var(--text-muted); }
.uname-hint.checking { color: var(--text-muted); }
.uname-hint.ok { color: #07875B; font-weight: 600; }
.uname-hint.taken { color: #C81E1E; font-weight: 600; }
.uname-fine { color: var(--text-muted); font-size: .82rem; margin: 14px 0 0; line-height: 1.55; }
#sched-uname .btn-primary-block:disabled { opacity: .55; cursor: not-allowed; transform: none; }
@media (prefers-color-scheme: dark) {
  .uname-steps li.done, .uname-steps li.done span { color: #34D399; }
  .uname-steps li.done span { background: rgba(16,185,129,.18); }
  .uname-hint.ok, .uname-preview.ok .fa-link { color: #34D399; }
  .uname-hint.taken { color: #F87171; }
}
@media (max-width: 820px) {
  .sched-auth { grid-template-columns: 1fr; }
  .sched-auth-brand { padding: 22px; }
}
@media (prefers-color-scheme: dark) {
  .sched-google { background: rgba(255,255,255,.06); color: inherit; border-color: rgba(255,255,255,.16); }
  .sched-google:hover { background: rgba(255,255,255,.09); }
  .sched-auth-points .tick { background: rgba(16,185,129,.18); color: #34D399; }
}
