:root {
  --bg: #f8fafc;
  --bg-soft: #eef2ff;
  --panel: #ffffff;
  --line: rgba(15, 23, 42, 0.10);
  --text: #172554;
  --muted: #64748b;
  --accent: #3b82f6;
  --accent-strong: #6d28d9;
  --accent-soft: rgba(59, 130, 246, 0.15);
  --accent2: #8b5cf6;
  --accent2-strong: #7c3aed;
  --success: #60a5fa;
  --danger: #f87171;
  --shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
}

/* ── Keyframes ── */

@keyframes float {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-12px);
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.3;
  }
}

@keyframes shimmer {
  0% {
    background-position: -400px 0;
  }

  100% {
    background-position: 400px 0;
  }
}

@keyframes glow-breathe {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
  }

  50% {
    box-shadow: 0 0 18px 4px rgba(59, 130, 246, 0.25);
  }
}

@keyframes slide-in {
  from {
    opacity: 0;
    transform: translateX(-24px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ── Base ── */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "Poppins", sans-serif;
  background: var(--bg);
}

a {
  color: #6d28d9;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ── Auth Layout ── */

.auth-layout {
  width: min(1160px, calc(100% - 40px));
  min-height: calc(100vh - 48px);
  margin: 0 auto;
  padding: 24px 0;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 28px;
  align-items: center;
}

.auth-layout-single {
  width: min(520px, calc(100% - 40px));
  grid-template-columns: 1fr;
  justify-content: center;
}

.auth-showcase,
.auth-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.auth-showcase {
  min-height: 680px;
  padding: 42px;
  background: var(--panel);
}

.auth-showcase.alt {
  background: var(--panel);
}

/* ── Brand & Logo ── */

.brand-mark {
  width: 58px;
  height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: #f8fafc;
  color: #172554;
  font-weight: 800;
  letter-spacing: 0.04em;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.nav-logo {
  height: 36px;
  width: auto;
  display: block;
  object-fit: contain;
}

.brand-logo {
  height: 44px;
  width: auto;
  display: block;
  object-fit: contain;
}

.brand-logo-sm {
  height: 32px;
  width: auto;
  display: block;
  object-fit: contain;
}

.auth-logo {
  height: 48px;
  width: auto;
  display: block;
  object-fit: contain;
  margin: 0 auto 20px;
}

/* ── Typography Tokens ── */

.eyebrow,
.status-pill,
.live-pill,
.today-pill,
.day-pill {
  font-family: "Poppins", sans-serif;
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow {
  margin: 16px 0 10px;
  color: var(--accent);
}

.auth-showcase h1,
.auth-head h2,
.chat-box-head h2,
.summary-head h2,
.chat-brand h1 {
  margin: 0;
  letter-spacing: -0.04em;
}

.auth-showcase h1 {
  max-width: 11ch;
  font-size: clamp(2.3rem, 5vw, 4.8rem);
  line-height: 0.95;
}

.auth-copy {
  max-width: 58ch;
  margin: 18px 0 0;
  color: var(--muted);
  line-height: 1.75;
}

/* ── Showcase Grid & Mini Panel ── */

.showcase-grid {
  display: grid;
  gap: 14px;
  margin-top: 26px;
}

.mini-panel {
  padding: 18px;
  border-radius: var(--radius-lg);
  background: rgba(59, 130, 246, 0.06);
  border: 1px solid rgba(59, 130, 246, 0.14);
}

.mini-panel p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

/* ── Status & Indicator Pills ── */

.status-pill,
.live-pill,
.today-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 999px;
}

.status-pill {
  background: rgba(255, 255, 255, 0.07);
  color: #334155;
}

.status-pill.success {
  background: rgba(59, 130, 246, 0.16);
  color: #6d28d9;
}

.status-pill.danger {
  background: rgba(248, 113, 113, 0.14);
  color: #fca5a5;
}

.status-pill.neutral {
  background: rgba(255, 255, 255, 0.07);
  color: #334155;
}

/* ── Auth Card ── */

.auth-card {
  min-height: 680px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 42px 36px;
  background: rgba(248, 250, 252, 0.88);
}

.auth-head p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

/* ── Auth Form ── */

.auth-form {
  display: grid;
  gap: 16px;
  margin-top: 22px;
}

.field-block {
  display: grid;
  gap: 8px;
}

.field-block span {
  color: var(--muted);
  font-size: 0.92rem;
}

.text-input {
  width: 100%;
  min-width: 0;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  padding: 15px 16px;
  background: #fff;
  color: var(--text);
  font: inherit;
}

.text-input::placeholder {
  color: #94a3b8;
}

.text-input:focus {
  outline: none;
  border-color: rgba(59, 130, 246, 0.55);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12);
}

/* ── Buttons ── */

.primary-btn,
.send-btn,
.secondary-btn,
.ghost-btn,
.prompt-chip {
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease;
  font: inherit;
}

.primary-btn,
.send-btn {
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 14px 30px rgba(59, 130, 246, 0.28);
}

.secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 18px;
  border-radius: 18px;
  background: rgba(59, 130, 246, 0.08);
  color: var(--text);
  font-weight: 700;
  box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.2);
}

.primary-btn:hover,
.send-btn:hover,
.secondary-btn:hover,
.ghost-btn:hover,
.prompt-chip:hover {
  transform: translateY(-1px);
}

.auth-submit,
.booking-btn {
  width: 100%;
  padding: 14px 18px;
  border-radius: 18px;
}

.ghost-btn {
  padding: 12px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

/* ── Auth Messages & Controls ── */

.auth-message {
  min-height: 24px;
  margin: 18px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.skip-btn {
  width: 100%;
  margin-top: 14px;
}

.auth-message.compact {
  margin-top: 14px;
}

.auth-message.is-error {
  color: #fca5a5;
}

.auth-message.is-success {
  color: #6d28d9;
}

.auth-switch {
  margin: 22px 0 0;
  color: var(--muted);
}

/* ── Chat Page Structure ── */

.chat-page {
  display: flex;
  flex-direction: column;
  padding: 0;
  background: #eef2ff;
  height: 100vh;
  height: calc(var(--vh, 1vh) * 100);
  overflow: hidden;
}

.chat-shell {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: stretch;
  padding: 10px;
  min-height: 0;
}

.chat-app {
  flex: 1;
  max-width: 1120px;
  width: 100%;
  min-height: 0;
  padding: 8px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 16px 36px rgba(59, 130, 246, 0.12);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* ── Chat Topbar ── */

.chat-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--text);
}

.chat-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chat-brand-copy {
  display: grid;
  gap: 1px;
}

.chat-brand h1 {
  font-size: 1.18rem;
  color: var(--text);
  margin: 0;
}

.chat-brand-copy span {
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1;
}

.home-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #6d28d9;
  color: #fff;
  font-size: 1.35rem;
  text-decoration: none;
  flex-shrink: 0;
  transition: background 0.2s ease, transform 0.15s ease;
}

.home-icon-btn:hover {
  background: #5b21b6;
  transform: translateY(-1px);
  text-decoration: none;
}

.topbar-meta {
  margin: 8px 0 0;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ── Live & Status Pills ── */

.live-pill {
  padding: 8px 14px;
  background: #6d28d9;
  color: #fff;
  border: 0;
  animation: glow-breathe 3s ease-in-out infinite;
}

.online-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 11px;
  border-radius: 999px;
  background: #dcfce7;
  color: #15803d;
  font-size: 0.78rem;
  font-weight: 700;
}

.online-pill i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
}

.nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

/* ── Chat Layout ── */

.chat-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) 360px;
  gap: 16px;
  margin-top: 16px;
}

.chat-layout.single-column {
  grid-template-columns: 1fr;
}

.chat-box-card,
.summary-card,
.section-slab {
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--panel);
}

.chat-box-card {
  padding: 8px;
  box-shadow: none;
}

.chat-box-head,
.summary-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.chat-box-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chat-box-head h2,
.summary-head h2 {
  font-size: 1.28rem;
}

.today-pill {
  background: rgba(59, 130, 246, 0.1);
  color: #6d28d9;
  border: 1px solid rgba(59, 130, 246, 0.2);
}

/* ── Prompt Row & Helper Strip ── */

.prompt-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.chat-helper-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

/* ── Session Strip ── */

.session-strip {
  margin-top: 16px;
  padding: 14px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.session-strip-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.session-strip-note {
  color: var(--muted);
  font-size: 0.82rem;
}

.session-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.session-item {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 0;
  border-radius: 12px;
  border: 1.5px solid rgba(109, 40, 217, 0.08);
  background: #ffffff;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.06);
  overflow: hidden;
  transition: box-shadow 0.2s, border-color 0.2s, transform 0.15s;
}

.session-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, #a78bfa, #7c3aed);
  border-radius: 12px 0 0 12px;
  opacity: 0;
  transition: opacity 0.2s;
}

.session-item:hover {
  border-color: rgba(109, 40, 217, 0.22);
  box-shadow: 0 4px 14px rgba(109, 40, 217, 0.1);
  transform: translateY(-1px);
}

.session-item:hover::before,
.session-item.active::before {
  opacity: 1;
}

.session-item.active {
  border-color: rgba(109, 40, 217, 0.35);
  background: linear-gradient(135deg, rgba(109, 40, 217, 0.06) 0%, rgba(167, 139, 250, 0.04) 100%);
  box-shadow: 0 4px 16px rgba(109, 40, 217, 0.13);
}

.session-open {
  min-width: 0;
  flex: 1;
  padding: 13px 10px 13px 16px;
  text-align: left;
  border: none;
  background: transparent;
  color: var(--text);
  font: inherit;
  cursor: pointer;
}

.session-remove {
  flex: 0 0 auto;
  align-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  margin: 0 8px 0 4px;
  border: none;
  border-radius: 50%;
  background: #f1f5f9;
  color: #94a3b8;
  font-size: 0.75rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, transform 0.15s;
}

.session-remove:hover {
  background: #fee2e2;
  color: #ef4444;
  transform: scale(1.1);
}

.session-item-title,
.session-item-preview {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.session-item-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: #1e293b;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.session-item.active .session-item-title {
  color: #6d28d9;
}

.session-item-preview {
  margin-top: 3px;
  color: #94a3b8;
  font-size: 0.76rem;
  line-height: 1.4;
}

.session-section-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #94a3b8;
  margin: 0 0 10px 4px;
}

.session-empty {
  text-align: center;
  padding: 48px 20px 32px;
}

.session-empty-icon {
  font-size: 2.2rem;
  margin-bottom: 12px;
  opacity: 0.5;
}

.session-empty-text {
  color: #94a3b8;
  font-size: 0.85rem;
  line-height: 1.7;
}

/* ── Helper & Prompt Chips ── */

.helper-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 0.85rem;
}

.prompt-chip {
  padding: 9px 15px;
  border-radius: 999px;
  background: #fff;
  color: #4338ca;
  box-shadow: inset 0 0 0 1px #c7d2fe;
  font-weight: 600;
}

.prompt-chip-danger {
  color: #e11d48;
  box-shadow: inset 0 0 0 1px #fecdd3;
}

/* ── Appointment Card ── */

.appt-card {
  background: linear-gradient(145deg, #eef0ff 0%, #ede9fe 100%);
  border: 1.5px solid rgba(99, 102, 241, 0.18);
  border-radius: 22px;
  padding: 18px 18px 14px;
  box-shadow: 0 8px 32px rgba(99, 102, 241, 0.13);
  animation: rise 0.3s ease;
  max-width: 480px;
  width: 100%;
}

.appt-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.appt-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(99, 102, 241, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.appt-card-title-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

.appt-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: #1e1b4b;
  margin: 0;
  line-height: 1.25;
}

.appt-available-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 11px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #15803d;
  font-size: 0.7rem;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}

.appt-available-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  animation: pulse 2s infinite;
}

.appt-card-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px 10px;
  margin-bottom: 16px;
  padding-left: 66px;
}

.appt-detail-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.83rem;
  color: #1e1b4b;
  min-width: 0;
}

.appt-detail-row.primary {
  font-weight: 700;
  font-size: 0.88rem;
  margin-bottom: 10px;
}

.appt-detail-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: #6366f1;
  opacity: 0.8;
}

.appt-feature-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.8rem;
  color: #374151;
  margin-bottom: 10px;
}

.appt-feature-check {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #22c55e;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #fff;
}

.appt-feature-check svg {
  width: 10px;
  height: 10px;
}

.appt-confirm-btn {
  width: 100%;
  padding: 14px 16px;
  border: none;
  border-radius: 16px;
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  color: #fff;
  font-family: "Poppins", sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  box-shadow: 0 5px 18px rgba(79, 70, 229, 0.4);
  letter-spacing: 0.01em;
}

.appt-confirm-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(79, 70, 229, 0.5);
}

.appt-confirm-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.message.bot.appt-card-msg {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  max-width: 520px;
  justify-self: flex-start;
  margin-left: 42px;
}

.message.bot.appt-card-msg::before {
  display: none;
}

/* ── Chat Box & Messages ── */

.chat-box {
  min-height: 360px;
  max-height: 480px;
  overflow-y: auto;
  display: grid;
  align-content: start;
  gap: 10px;
  margin-top: 8px;
  padding: 8px 16px;
  border-radius: 12px;
  background: #f8faff;
  border: 1px solid #e0e7ff;
}

.day-pill {
  display: inline-flex;
  align-items: center;
  justify-self: center;
  align-self: start;
  min-height: 34px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #eef2ff;
  color: #6366f1;
}

/* ── Message row (avatar + bubble) ── */
.msg-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  width: 100%;
}
.msg-row.bot  { justify-content: flex-start; }
.msg-row.user { justify-content: flex-end; }

.msg-av {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  flex-shrink: 0;
  background-repeat: no-repeat;
  background-position: center;
}

.bot-av {
  background-color: #6d28d9;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M24 7v6'/%3E%3Ccircle cx='24' cy='6' r='2' fill='white' stroke='none'/%3E%3Crect x='8' y='14' width='32' height='25' rx='11'/%3E%3Cpath d='M16 25h.01M32 25h.01M18 32c4 3 8 3 12 0'/%3E%3C/svg%3E");
  background-size: 22px;
  box-shadow: 0 4px 12px rgba(109, 40, 217, 0.22);
}

.bot-av.bot-av-emoji {
  background-image: none;
  background-color: #ede9fe;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 4px 12px rgba(109, 40, 217, 0.15);
}

.user-av {
  background-color: #dbeafe;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none' stroke='%233b82f6' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='24' cy='17' r='8'/%3E%3Cpath d='M10 42c2-8 8-12 14-12s12 4 14 12'/%3E%3C/svg%3E");
  background-size: 20px;
}

/* ── Bubble ── */
.message {
  max-width: 72%;
  padding: 8px 12px 5px;
  animation: rise 0.25s ease;
  position: relative;
}

.message.bot {
  background: #eef2ff;
  box-shadow: 0 1px 2px rgba(99,102,241,0.10);
  border-radius: 0 16px 16px 16px;
}

/* WhatsApp tail — top-left */
.message.bot::before {
  content: "";
  position: absolute;
  top: 0;
  left: -8px;
  border-style: solid;
  border-width: 0 8px 8px 0;
  border-color: transparent #eef2ff transparent transparent;
}

.message.bot.slot-error {
  background: #fee2e2;
  border-left: 3px solid #ef4444;
  color: #991b1b;
  box-shadow: 0 1px 4px rgba(239,68,68,0.15);
}

.message.bot.slot-error::before {
  border-color: transparent #fee2e2 transparent transparent;
}

.message.bot.slot-error .msg-timestamp {
  color: #ef4444;
}

.message.user {
  background: var(--accent);
  color: #fff;
  border-radius: 16px 0 16px 16px;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.22);
}

/* WhatsApp tail — top-right */
.message.user::after {
  content: "";
  position: absolute;
  top: 0;
  right: -8px;
  border-style: solid;
  border-width: 0 0 8px 8px;
  border-color: transparent transparent transparent var(--accent);
}

.message-text {
  margin: 0;
  line-height: 1.6;
  word-break: break-word;
  white-space: pre-wrap;
}

.msg-timestamp {
  display: block;
  font-size: 10px;
  margin-top: 3px;
  opacity: 0.55;
  text-align: right;
  letter-spacing: 0.01em;
  line-height: 1;
}

.message.bot .msg-timestamp {
  color: #6366f1;
  text-align: left;
}

.message.user .msg-timestamp {
  color: #fff;
  text-align: right;
}

/* ── Chat Input ── */

.chat-input-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin-top: 6px;
}

.chat-input {
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 12px;
  background: #f8faff;
  border-color: #c7d2fe;
}

.icon-btn {
  min-width: 86px;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 12px;
}

.api-hint {
  margin: 12px 0 0;
  color: #94a3b8;
  font-size: 0.92rem;
  line-height: 1.6;
}

/* ── Summary Card ── */

.summary-card {
  padding: 18px;
}

.detail-grid {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.detail-item,
.summary-note {
  padding: 14px 15px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(59, 130, 246, 0.08);
}

.detail-item span,
.summary-note span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.82rem;
}

.detail-item strong {
  display: block;
  line-height: 1.5;
  word-break: break-word;
}

.summary-note {
  margin-top: 14px;
}

.summary-note p {
  margin: 0;
  line-height: 1.6;
}

/* ── Appointments Section ── */

.appointments-section {
  margin-top: 18px;
}

.section-slab {
  padding: 18px;
}

.appointments-head {
  margin-bottom: 0;
}

.appointment-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.appointment-list-grid {
  grid-template-columns: 1fr;
}

.appointment-bar {
  display: grid;
  grid-template-columns: minmax(180px, 1.35fr) repeat(4, minmax(120px, 1fr)) auto;
  gap: 14px;
  align-items: center;
  padding: 16px 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(59, 130, 246, 0.1);
}

.appointment-card-row {
  display: grid;
  gap: 10px;
}

.appointment-bar-main {
  display: grid;
  gap: 10px;
}

.appointment-bar-main strong {
  font-size: 1rem;
}

.appointment-bar-cell,
.empty-state {
  color: var(--muted);
}

.appointment-bar-cell {
  display: grid;
  gap: 6px;
}

.appointment-bar-cell strong {
  color: var(--text);
  line-height: 1.45;
  word-break: break-word;
}

.appointment-bar-label {
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.appointment-bar-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.appointment-badge,
.appointment-time {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 0.84rem;
}

.appointment-badge {
  background: rgba(59, 130, 246, 0.1);
  color: #6d28d9;
}

.appointment-time {
  background: rgba(255, 255, 255, 0.06);
  color: #334155;
}

.remove-btn {
  min-width: 98px;
  padding: 11px 14px;
  border: none;
  border-radius: 14px;
  background: rgba(248, 113, 113, 0.12);
  color: #fca5a5;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(248, 113, 113, 0.2);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.remove-btn:hover:not(:disabled) {
  transform: translateY(-1px);
}

.remove-btn:disabled {
  opacity: 0.7;
  cursor: default;
}

.detail-toggle-btn {
  min-width: 92px;
  padding: 11px 14px;
  border: none;
  border-radius: 14px;
  background: rgba(59, 130, 246, 0.1);
  color: var(--text);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.2);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.detail-toggle-btn:hover:not(:disabled) {
  transform: translateY(-1px);
}

.detail-toggle-btn:disabled {
  opacity: 0.7;
  cursor: default;
}

/* ── Appointment Detail Panel ── */

.appointment-detail-panel {
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(59, 130, 246, 0.04);
  border: 1px solid rgba(59, 130, 246, 0.1);
}

.appointment-detail-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.appointment-detail-item {
  padding: 12px 13px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
}

.appointment-detail-item span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.appointment-detail-item strong {
  color: var(--text);
  line-height: 1.45;
  word-break: break-word;
}

.detail-error {
  color: #fca5a5;
  line-height: 1.6;
}

/* ── Empty State ── */

.empty-state {
  padding: 14px 15px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  line-height: 1.6;
}

/* ── Single-column layout ── */

.chat-layout.single-col {
  display: flex;
  flex-direction: column;
  margin-top: 14px;
  flex: 1;
  min-height: 0;
  padding-bottom: 14px;
}

.chat-layout.single-col .chat-box-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 0;
  flex: 1;
}

.chat-layout.single-col .chat-box {
  flex: 1;
  min-height: 0;
  max-height: none;
  margin-top: 10px;
}

/* ── Prompt row (horizontal chips inside chat box) ── */

.prompt-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px 0 4px;
  flex-shrink: 0;
}

.prompt-row .prompt-chip {
  font-size: 0.82rem;
  padding: 6px 14px;
  border-radius: 999px;
  white-space: nowrap;
}

/* ── Sessions toggle button ── */

.sessions-toggle-btn {
  font-size: 0.82rem;
  padding: 6px 14px;
  color: var(--accent-strong);
  background: rgba(59, 130, 246, 0.10);
  box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.18);
}

.sessions-toggle-btn:hover {
  background: rgba(59, 130, 246, 0.18);
}

/* ── Sidebar backdrop ── */

.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(3px);
  z-index: 9998;
}

.sidebar-backdrop.visible {
  display: block;
}

/* ── Sessions drawer ── */

.sessions-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 300px;
  transform: translateX(110%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 9999;
  background: #f8fafc;
  box-shadow: -8px 0 32px rgba(15, 23, 42, 0.12);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.sessions-drawer.open {
  transform: translateX(0);
}

.drawer-head-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.drawer-close-btn {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  padding: 0;
  border-radius: 8px;
  color: #94a3b8;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.drawer-close-btn:hover {
  background: rgba(15, 23, 42, 0.06);
  color: #1e293b;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-shrink: 0;
  padding: 20px 18px 16px;
  background: #ffffff;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.04);
}

.panel-head .eyebrow {
  margin: 0 0 6px;
}

.panel-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: #1e293b;
  letter-spacing: -0.03em;
}

.panel-note {
  margin: 8px 0 12px;
  color: var(--muted);
  font-size: 0.82rem;
  flex-shrink: 0;
}

.panel-section-label {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-family: "Poppins", sans-serif;
}

.panel-inner {
  flex: 1;
  overflow-y: auto;
  min-height: 0;
  padding: 16px 14px;
}

.panel-inner::-webkit-scrollbar,
.chat-box::-webkit-scrollbar {
  width: 4px;
}

.panel-inner::-webkit-scrollbar-track,
.chat-box::-webkit-scrollbar-track {
  background: transparent;
}

.panel-inner::-webkit-scrollbar-thumb,
.chat-box::-webkit-scrollbar-thumb {
  background: rgba(59, 130, 246, 0.25);
  border-radius: 2px;
}


.sessions-inner {
  display: flex;
  flex-direction: column;
}

.new-chat-btn {
  flex-shrink: 0;
  padding: 7px 13px;
  font-size: 0.82rem;
  font-weight: 600;
  background: linear-gradient(135deg, #7c3aed, #6d28d9);
  color: #fff;
  border: none;
  border-radius: 9px;
  box-shadow: 0 2px 8px rgba(109, 40, 217, 0.28);
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}

.new-chat-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 16px rgba(109, 40, 217, 0.38);
}

/* ── Responsive Breakpoints ── */

@media (max-width: 960px) {

  .auth-layout,
  .chat-layout {
    grid-template-columns: 1fr;
  }

  .appointment-bar {
    grid-template-columns: 1fr 1fr;
  }

  .appointment-detail-grid {
    grid-template-columns: 1fr 1fr;
  }

  .auth-showcase,
  .auth-card {
    min-height: auto;
  }

  .chat-page {
    overflow: auto;
  }

  .sessions-drawer {
    width: 85vw;
  }
}

@media (max-width: 680px) {
  .auth-layout {
    width: min(100% - 20px, 1160px);
    min-height: auto;
    padding: 20px 0 24px;
  }

  .auth-showcase,
  .auth-card,
  .chat-box-card,
  .summary-card {
    border-radius: 24px;
  }

  .auth-showcase,
  .auth-card {
    padding: 20px;
  }

  .chat-shell {
    padding: 10px;
  }

  .chat-app {
    border-radius: 20px;
    padding: 10px 10px 0;
  }

  .chat-topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .topbar-actions {
    width: 100%;
    justify-content: space-between;
  }

  .chat-box {
    min-height: 360px;
  }

  .appointment-bar {
    grid-template-columns: 1fr;
  }

  .appointment-detail-grid {
    grid-template-columns: 1fr;
  }

  .chat-input-row {
    grid-template-columns: 1fr auto;
  }

  .message {
    max-width: 90%;
  }
}

@media (max-width: 600px) {
  .chat-topbar {
    border-radius: 18px;
    padding: 14px 16px;
  }
}

/* ══════════════════════════════════════════
   LANDING PAGE
   ══════════════════════════════════════════ */

/* ── Keyframes (landing-specific) ── */
@keyframes typing-dot {

  0%,
  60%,
  100% {
    transform: translateY(0);
    opacity: 0.4;
  }

  30% {
    transform: translateY(-5px);
    opacity: 1;
  }
}

@keyframes badge-pop {
  0% {
    transform: scale(0.85) translateY(6px);
    opacity: 0;
  }

  100% {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

/* ── Base ── */
.landing-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 0;
}

.wide-wrap {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 60px;
}

/* ── Top nav ── */
.landing-nav {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 60px;
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 250, 252, 0.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(59, 130, 246, 0.1);
}

.landing-nav-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.landing-nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px;
  border: 1px solid #ddd6fe;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.07);
}

.nav-launch-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 999px;
  background: linear-gradient(135deg, #2563eb, #6d28d9);
  ;
  color: #fff;
  font: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 5px 12px rgba(37, 99, 235, 0.22);
}

.nav-launch-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(37, 99, 235, 0.28);
  text-decoration: none;
}

.nav-voice-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #000;
  font: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  opacity: 1;
}

.nav-action-icon {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
}

/* ── Hero ── */
.hero-wrap {
  width: 100%;
  background: #f8fafc;
  padding: 72px 60px 60px;
}

.hero {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.hero-left {
  animation: slide-in 0.6s ease;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.28);
  color: #6d28d9;
  font-family: "Poppins", sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #3b82f6;
  box-shadow: 0 0 8px #3b82f6;
  animation: pulse 2s infinite;
}

.hero-headline {
  margin: 20px 0 0;
  font-size: clamp(2.8rem, 4.5vw, 5.5rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: var(--text);
}

.hero-headline span {
  color: #6d28d9;
}

.hero-sub {
  margin: 24px 0 0;
  max-width: 50ch;
  color: var(--muted);
  line-height: 1.8;
  font-size: 1.1rem;
}

.hero-cta-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.explore-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  border-radius: 999px;
  background: #3b82f6;
  color: #fff;
  font: inherit;
  font-weight: 800;
  font-size: 1.05rem;
  text-decoration: none;
  box-shadow: 0 18px 40px rgba(59, 130, 246, 0.3);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.explore-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 50px rgba(59, 130, 246, 0.45);
  text-decoration: none;
}

.explore-btn-arrow {
  font-size: 1.1rem;
  transition: transform 0.22s ease;
}

.explore-btn:hover .explore-btn-arrow {
  transform: translateX(4px);
}

.hero-login-link {
  color: var(--muted);
  font-size: 0.95rem;
}

.hero-login-link a {
  color: #6d28d9;
}

/* ── Hero visual card ── */
.hero-visual {
  position: relative;
}

.hero-card {
  padding: 0;
  border-radius: 28px;
  border: 1px solid rgba(59, 130, 246, 0.2);
  background: #fff;
  box-shadow: 0 32px 80px rgba(15, 23, 42, 0.14), 0 0 0 1px rgba(255, 255, 255, 0.6) inset;
  overflow: hidden;
  animation: float 4s ease-in-out infinite;
}

.hero-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 22px;
  background: linear-gradient(135deg, #f0f7ff 0%, #ede9fe 100%);
  border-bottom: 1px solid rgba(59, 130, 246, 0.12);
}

.hero-card-dots {
  display: flex;
  align-items: center;
  gap: 7px;
}

.hero-card-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot-red {
  background: #fc6b6b;
}

.dot-amber {
  background: #fbbf24;
}

.dot-green {
  background: #34d399;
}

.hero-card-label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #6d28d9;
  letter-spacing: 0.02em;
}

.hero-card-label-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #3b82f6;
  box-shadow: 0 0 6px #3b82f6;
  animation: pulse 2s infinite;
}

.hero-card-body {
  padding: 22px 22px 0;
  max-height: 340px;
  overflow: hidden;
}

.hero-chat-line {
  display: flex;
  gap: 10px;
  align-items: flex-end;
  margin-bottom: 12px;
}

.hero-chat-line.user-line {
  justify-content: flex-end;
}

.hero-chat-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6d28d9, #3b82f6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: #fff;
  font-weight: 700;
  flex-shrink: 0;
}

.hero-chat-bubble {
  max-width: 78%;
  padding: 11px 15px;
  border-radius: 18px;
  font-size: 0.875rem;
  line-height: 1.55;
  font-weight: 500;
}

.hero-chat-bubble.bot {
  background: #f1f5f9;
  color: #1e293b;
  border-bottom-left-radius: 5px;
}

.hero-chat-bubble.user {
  background: linear-gradient(135deg, #2563eb, #6d28d9);
  color: #fff;
  font-weight: 600;
  border-bottom-right-radius: 5px;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}

.hero-typing-bubble {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 12px 16px;
  background: #f1f5f9;
  border-radius: 18px;
  border-bottom-left-radius: 5px;
  width: fit-content;
}

.hero-typing-bubble span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #94a3b8;
  animation: typing-dot 1.2s infinite;
}

.hero-typing-bubble span:nth-child(2) {
  animation-delay: 0.2s;
}

.hero-typing-bubble span:nth-child(3) {
  animation-delay: 0.4s;
}

.hero-card-input {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 22px 22px;
  padding: 12px 14px 12px 16px;
  border-radius: 16px;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
}

.hero-card-input span {
  flex: 1;
  color: #94a3b8;
  font-size: 0.85rem;
}

.hero-card-send {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, #2563eb, #6d28d9);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  color: #fff;
  box-shadow: 0 3px 10px rgba(37, 99, 235, 0.35);
  flex-shrink: 0;
}

.hero-float-badge {
  position: absolute;
  top: -42px;
  right: 0;
  padding: 9px 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(52, 211, 153, 0.18), rgba(59, 130, 246, 0.14));
  border: 1px solid rgba(52, 211, 153, 0.4);
  color: #065f46;
  font-family: "Poppins", sans-serif;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  backdrop-filter: blur(12px);
  animation: badge-pop 0.5s ease 0.3s both;
}

/* ── Stats bar ── */
.stats-bar {
  width: 100%;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.6);
  padding: 0 60px;
}

.stats-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat-item {
  padding: 28px 0;
  text-align: center;
  border-right: 1px solid var(--line);
}

.stat-item:last-child {
  border-right: none;
}

.stat-number {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #6d28d9;
  display: block;
}

.stat-label {
  margin-top: 6px;
  font-size: 0.88rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}

/* ── Sections ── */
.section-wrap {
  width: 100%;
  padding: 72px 60px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.section-wrap.visible {
  opacity: 1;
  transform: none;
}

.section-wrap.alt-bg {
  background: rgba(255, 255, 255, 0.4);
}

.section {
  max-width: 1400px;
  margin: 0 auto;
}

.section-eyebrow {
  font-family: "Poppins", sans-serif;
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 14px;
}

.section-title {
  margin: 0 0 12px;
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.04em;
}

.section-title span {
  color: #6d28d9;
}

.section-sub {
  margin: 0 0 40px;
  color: var(--muted);
  line-height: 1.8;
  max-width: 58ch;
  font-size: 1.05rem;
}

/* ── Features section background blob ── */
.feat-wrap {
  position: relative;
  overflow: hidden;
}

.feat-wrap::before {
  content: '';
  position: absolute;
  top: -180px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse at center, rgba(99, 102, 241, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  max-width: 860px;
  margin: 0 auto;
}

.feature-card {
  position: relative;
  padding: 44px 36px 40px;
  border-radius: 28px;
  border: 1.5px solid rgba(99, 102, 241, 0.12);
  background: #ffffff;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  overflow: hidden;
}

.feature-card.fc-blue {
  background: linear-gradient(145deg, #f0f7ff 0%, #eef0ff 100%);
  border-color: rgba(59, 130, 246, 0.18);
}

.feature-card.fc-purple {
  background: linear-gradient(145deg, #fdf5ff 0%, #f5f0ff 100%);
  border-color: rgba(168, 85, 247, 0.18);
}

.feature-card:hover {
  transform: translateY(-10px) scale(1.01);
  box-shadow: 0 28px 72px rgba(99, 102, 241, 0.16);
}

.feature-card.fc-purple:hover {
  box-shadow: 0 28px 72px rgba(168, 85, 247, 0.16);
}

/* Number watermark */
.fc-num {
  position: absolute;
  top: 18px;
  right: 22px;
  font-size: 3.5rem;
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: 1;
  opacity: 0.07;
  color: #172554;
  pointer-events: none;
  user-select: none;
}

/* Icon wrapper */
.fc-icon-wrap {
  position: relative;
  margin-bottom: 24px;
}

.fc-icon-glow {
  position: absolute;
  inset: -10px;
  border-radius: 30px;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.fc-blue .fc-icon-glow {
  background: radial-gradient(circle, rgba(59, 130, 246, 0.28) 0%, transparent 70%);
}

.fc-purple .fc-icon-glow {
  background: radial-gradient(circle, rgba(168, 85, 247, 0.28) 0%, transparent 70%);
}

.feature-card:hover .fc-icon-glow {
  opacity: 1;
}

.feature-icon {
  width: 72px;
  height: 72px;
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  position: relative;
}

.feature-icon.teal-icon {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(99, 102, 241, 0.2) 100%);
  box-shadow: 0 6px 24px rgba(59, 130, 246, 0.22);
}

.feature-icon.orange {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.2) 0%, rgba(217, 70, 239, 0.2) 100%);
  box-shadow: 0 6px 24px rgba(168, 85, 247, 0.22);
}

.feature-card h3 {
  margin: 0 0 10px;
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}

.feature-card > p {
  margin: 0 0 22px;
  color: var(--muted);
  line-height: 1.7;
  font-size: 0.95rem;
}

/* Feature bullet list */
.fc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
  width: 100%;
}

.fc-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
}

.fc-list li::before {
  content: '';
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.fc-blue .fc-list li::before {
  background: linear-gradient(135deg, #3b82f6, #6366f1);
  box-shadow: 0 2px 6px rgba(99, 102, 241, 0.45);
}

.fc-purple .fc-list li::before {
  background: linear-gradient(135deg, #a855f7, #d946ef);
  box-shadow: 0 2px 6px rgba(168, 85, 247, 0.45);
}

/* ── Steps ── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.step-card {
  padding: 26px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: #ffffff;
  position: relative;
}

.step-num {
  font-family: "Poppins", sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.step-card h3 {
  margin: 0 0 12px;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.step-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
  font-size: 0.95rem;
}

/* ── Final CTA ── */
.cta-wrap {
  width: 100%;
  padding: 60px 60px 72px;
}

.cta-card {
  max-width: 1400px;
  margin: 0 auto;
  padding: 60px 60px;
  border-radius: 32px;
  border: 1px solid rgba(59, 130, 246, 0.2);
  background: #ffffff;
  box-shadow: var(--shadow);
  text-align: center;
}

.cta-card h2 {
  margin: 0 0 16px;
  font-size: clamp(2.2rem, 4vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -0.04em;
}

.cta-card p {
  margin: 0 auto 28px;
  max-width: 52ch;
  color: var(--muted);
  line-height: 1.8;
  font-size: 1.05rem;
}

.cta-btn-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ── Footer ── */
.landing-footer {
  width: 100%;
  padding: 32px 60px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--muted);
  font-size: 0.88rem;
}

/* ── Landing Responsive ── */
@media (max-width: 1100px) {

  .landing-nav,
  .hero-wrap,
  .stats-bar,
  .section-wrap,
  .cta-wrap,
  .landing-footer {
    padding-left: 32px;
    padding-right: 32px;
  }
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero-wrap {
    padding-top: 52px;
    padding-bottom: 44px;
  }

  .hero-visual {
    display: block;
    max-width: 480px;
    margin: 0 auto;
  }

  .stats-inner {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-item {
    padding: 20px 0;
  }

  .stat-item:nth-child(2) {
    border-right: none;
  }

  .stat-item:nth-child(3) {
    border-top: 1px solid var(--line);
  }

  .stat-item:nth-child(4) {
    border-top: 1px solid var(--line);
    border-right: none;
  }

  .section-wrap {
    padding-top: 52px;
    padding-bottom: 52px;
  }

  .features-grid,
  .steps-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .cta-wrap {
    padding-top: 44px;
    padding-bottom: 52px;
  }

  .cta-card {
    padding: 48px 40px;
  }
}

@media (max-width: 700px) {
  .landing-nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 20px;
  }

  .landing-nav-links {
    width: 100%;
  }

  .nav-launch-btn,
  .nav-voice-btn {
    flex: 1;
    justify-content: center;
    padding: 10px 10px;
    font-size: 0.82rem;
  }

  .hero-wrap {
    padding: 36px 20px 32px;
  }

  .hero {
    gap: 24px;
  }

  .hero-badge {
    font-size: 0.7rem;
    padding: 6px 12px;
  }

  .hero-headline {
    font-size: clamp(2rem, 9vw, 3rem);
    line-height: 1.05;
    margin-top: 14px;
  }

  .hero-sub {
    font-size: 0.95rem;
    margin-top: 14px;
  }

  .hero-cta-row {
    margin-top: 24px;
  }

  .hero-cta-row .landing-nav-links {
    width: 100%;
  }

  .stats-bar {
    padding: 0 20px;
  }

  .stat-item {
    padding: 16px 0;
  }

  .stat-number {
    font-size: 1.6rem;
  }

  .section-wrap {
    padding: 36px 20px;
  }

  .section-sub {
    margin-bottom: 28px;
    font-size: 0.95rem;
  }

  .features-grid,
  .steps-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .feature-card,
  .step-card {
    padding: 28px 24px;
    border-radius: 20px;
  }

  .feature-icon {
    width: 56px;
    height: 56px;
    font-size: 1.5rem;
  }

  .fc-num {
    font-size: 2.5rem;
  }

  .cta-wrap {
    padding: 32px 20px 44px;
  }

  .cta-card {
    padding: 36px 22px;
    border-radius: 22px;
  }

  .cta-card h2 {
    font-size: clamp(1.6rem, 7vw, 2.2rem);
    margin-bottom: 12px;
  }

  .cta-card p {
    font-size: 0.95rem;
    margin-bottom: 22px;
  }

  .cta-btn-row .landing-nav-links {
    width: 100%;
  }

  .cta-btn-row .nav-launch-btn,
  .cta-btn-row .nav-voice-btn {
    flex: 1;
    justify-content: center;
  }

  .landing-footer {
    padding: 20px;
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 420px) {
  .landing-nav-links {
    flex-direction: column;
    border-radius: 16px;
    padding: 5px;
  }

  .nav-launch-btn,
  .nav-voice-btn {
    width: 100%;
    justify-content: center;
    border-radius: 10px;
  }

  .hero-card-label {
    display: none;
  }

  .hero-card-body {
    padding: 16px 16px 0;
  }

  .hero-card-input {
    margin: 10px 16px 16px;
  }
}

/* ── Voice Panel ── */

@keyframes mic-pulse {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.45), 0 8px 24px rgba(239, 68, 68, 0.25);
  }

  50% {
    box-shadow: 0 0 0 14px rgba(239, 68, 68, 0), 0 8px 24px rgba(239, 68, 68, 0.15);
  }
}

@keyframes speak-pulse {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.45), 0 8px 24px rgba(59, 130, 246, 0.25);
  }

  50% {
    box-shadow: 0 0 0 14px rgba(59, 130, 246, 0), 0 8px 24px rgba(59, 130, 246, 0.15);
  }
}

.voice-panel {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 20px 0 10px;
  margin-top: 6px;
}

.voice-mic-btn {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: none;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.15s;
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.3);
}

.voice-mic-btn:hover:not(:disabled) {
  transform: scale(1.07);
}

.voice-mic-btn.recording {
  background: #ef4444;
  animation: mic-pulse 1.2s ease-in-out infinite;
}

.voice-mic-btn.speaking {
  background: var(--accent2);
  animation: speak-pulse 1.4s ease-in-out infinite;
  cursor: default;
}

.voice-mic-btn:disabled {
  opacity: 0.7;
  cursor: default;
}

.voice-state-label {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.01em;
}

.exit-voice-btn {
  font-size: 0.75rem;
  color: var(--muted);
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 4px 12px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}

.exit-voice-btn:hover {
  color: var(--danger);
  border-color: var(--danger);
}

/* ════════════════════════════════════════
   USER INFO MODAL (shared: chat + voice)
════════════════════════════════════════ */

#chatUserModal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
}

.cum-box {
  background: #fff;
  border-radius: 24px;
  padding: 40px 36px 32px;
  width: min(400px, calc(100% - 32px));
  position: relative;
  box-shadow: 0 20px 60px rgba(109, 40, 217, 0.18), 0 4px 20px rgba(0, 0, 0, 0.1);
}

.cum-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 30px;
  height: 30px;
  border: none;
  background: #f1f5f9;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: background 0.15s, color 0.15s;
}

.cum-close:hover {
  background: #e2e8f0;
  color: #1e293b;
}

.cum-title {
  font-size: 1.55rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.cum-sub {
  font-size: 0.8rem;
  color: #94a3b8;
  margin-bottom: 28px;
}

.cum-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.cum-field label {
  font-size: 0.67rem;
  font-weight: 700;
  color: #64748b;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cum-field input {
  background: #f8f9fc;
  border: 1.5px solid #e4e6f0;
  border-radius: 12px;
  padding: 13px 16px;
  font-size: 0.88rem;
  font-family: inherit;
  color: #0f172a;
  outline: none;
  transition: border-color 0.2s;
}

.cum-field input:focus {
  border-color: #7c3aed;
  background: #fff;
}

.cum-field input.err {
  border-color: #ef4444;
}

.cum-err {
  font-size: 0.7rem;
  color: #dc2626;
  display: none;
  margin-top: 2px;
}

.cum-btn {
  width: 100%;
  background: linear-gradient(135deg, #2563eb, #6d28d9);
  ;
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 14px;
  font-size: 0.92rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  margin-top: 8px;
  transition: background 0.15s, transform 0.15s;
}

.cum-btn:hover {
  background: #5b21b6;
  transform: translateY(-1px);
}

.cum-btn:active {
  transform: translateY(0);
}

/* ── Inline option chips (chat) ── */
.chat-inline-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px 0 4px 44px;
}

/* ── Available slots inline (chat) ── */
.chat-inline-slots {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px 0 4px 44px;
}

.chat-slot-btn {
  background: #fff;
  border: 1.5px solid #e4e6f0;
  border-radius: 10px;
  padding: 8px 16px;
  font-size: 0.82rem;
  font-weight: 600;
  font-family: inherit;
  color: #374151;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.chat-slot-btn:hover {
  background: #6d28d9;
  border-color: #6d28d9;
  color: #fff;
}

/* ════════════════════════════════════════
   VOICE PAGE
════════════════════════════════════════ */

/* ── Voice user modal (same style as chat modal) ── */
#voiceUserModal {
  position: fixed;
  inset: 0;
  background: rgba(13, 11, 30, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 300;
}

#voicePage {
  display: none;
  background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 50%, #f5f3ff 100%);
  height: 100vh;
  height: calc(var(--vh, 1vh) * 100);
  overflow: hidden;
  flex-direction: row;
  opacity: 0;
  transition: opacity 0.4s ease;
  position: relative;
}

#voicePage::before {
  content: "";
  position: fixed;
  top: -20%;
  right: -10%;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

#voicePage::after {
  content: "";
  position: fixed;
  bottom: -20%;
  left: -10%;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

#voicePage.show {
  opacity: 1;
}

.back-btn {
  position: fixed;
  top: 18px;
  left: 18px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #fff;
  color: #475569;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

.back-btn:hover {
  background: #f1f5f9;
  color: #1e293b;
}

.voice-card {
  background: #ffffff;
  border-radius: 28px;
  border: 1px solid rgba(109, 40, 217, 0.1);
  box-shadow: 0 20px 60px rgba(109, 40, 217, 0.1), 0 4px 16px rgba(15, 23, 42, 0.06);
  flex: 1;
  min-width: 0;
  min-height: 0;
  margin: 0 20px 20px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.card-inner {
  flex: 1;
  min-height: 0;
  padding: 28px 24px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  overflow: hidden;
}

.voice-header {
  text-align: center;
  width: 100%;
}

.ai-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(109, 40, 217, 0.08);
  border: 1px solid rgba(109, 40, 217, 0.2);
  border-radius: 999px;
  padding: 4px 14px;
  font-size: 0.68rem;
  font-weight: 700;
  color: #6d28d9;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.voice-title {
  font-size: 1.55rem;
  font-weight: 800;
  color: #1e1b4b;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.voice-subtitle {
  font-size: 0.83rem;
  color: #94a3b8;
  min-height: 20px;
  transition: color 0.3s;
}

.voice-subtitle.active {
  color: #7c3aed;
  font-weight: 500;
}

.mic-area {
  position: relative;
  width: 140px;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mic-ring {
  position: absolute;
  width: 128px;
  height: 128px;
  border-radius: 50%;
  background: rgba(109, 40, 217, 0.12);
  transition: background 0.4s;
}

.mic-area.listening .mic-ring {
  animation: ring-pulse 2s ease-in-out infinite;
}

.mic-area.speaking .mic-ring {
  animation: ring-pulse-speak 1.8s ease-in-out infinite;
}

@keyframes ring-pulse {

  0%,
  100% {
    transform: scale(1);
    background: rgba(139, 92, 246, 0.12);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.15);
  }

  50% {
    transform: scale(1.14);
    background: rgba(139, 92, 246, 0.28);
    box-shadow: 0 0 50px rgba(139, 92, 246, 0.4);
  }
}

@keyframes ring-pulse-speak {

  0%,
  100% {
    transform: scale(1);
    background: rgba(99, 102, 241, 0.15);
    box-shadow: 0 0 25px rgba(99, 102, 241, 0.2);
  }

  50% {
    transform: scale(1.1);
    background: rgba(99, 102, 241, 0.32);
    box-shadow: 0 0 60px rgba(99, 102, 241, 0.45);
  }
}

.mic-btn {
  position: relative;
  z-index: 1;
  width: 104px;
  height: 104px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #2563eb, #6d28d9);
  color: #fff;
  box-shadow: 0 0 32px rgba(168, 85, 247, 0.5), 0 8px 28px rgba(0, 0, 0, 0.45);
  transition: transform 0.18s, box-shadow 0.3s;
}

.mic-btn:hover:not(:disabled) {
  transform: scale(1.06);
  box-shadow: 0 0 50px rgba(168, 85, 247, 0.7), 0 10px 34px rgba(0, 0, 0, 0.5);
}

.mic-btn:active:not(:disabled) {
  transform: scale(0.96);
}

.mic-btn:disabled {
  cursor: default;
}

.mic-btn.speaking {
  animation: btn-breathe 1.6s ease-in-out infinite;
}

.mic-btn.processing {
  background: linear-gradient(135deg, #475569, #64748b);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
}

@keyframes btn-breathe {

  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 32px rgba(168, 85, 247, 0.5), 0 8px 28px rgba(0, 0, 0, 0.45);
  }

  50% {
    transform: scale(1.06);
    box-shadow: 0 0 60px rgba(168, 85, 247, 0.75), 0 10px 34px rgba(0, 0, 0, 0.5);
  }
}

.wave-bars {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  height: 52px;
  width: 100%;
}

.wbar {
  width: 3.5px;
  border-radius: 3px;
  background: rgba(109, 40, 217, 0.15);
  height: 6px;
  transition: background 0.3s;
}

.wave-bars.listening .wbar,
.mic-section.listening .wbar {
  background: #a855f7;
  animation: wbar-anim 1s ease-in-out infinite;
}

.wave-bars.speaking .wbar,
.mic-section.speaking .wbar {
  background: #818cf8;
  animation: wbar-anim 0.8s ease-in-out infinite;
}

.wbar:nth-child(1) {
  animation-delay: 0.00s
}

.wbar:nth-child(2) {
  animation-delay: 0.09s
}

.wbar:nth-child(3) {
  animation-delay: 0.18s
}

.wbar:nth-child(4) {
  animation-delay: 0.27s
}

.wbar:nth-child(5) {
  animation-delay: 0.13s
}

.wbar:nth-child(6) {
  animation-delay: 0.04s
}

.wbar:nth-child(7) {
  animation-delay: 0.22s
}

.wbar:nth-child(8) {
  animation-delay: 0.31s
}

.wbar:nth-child(9) {
  animation-delay: 0.07s
}

.wbar:nth-child(10) {
  animation-delay: 0.16s
}

.wbar:nth-child(11) {
  animation-delay: 0.25s
}

.wbar:nth-child(12) {
  animation-delay: 0.34s
}

.wbar:nth-child(13) {
  animation-delay: 0.11s
}

.wbar:nth-child(14) {
  animation-delay: 0.20s
}

.wbar:nth-child(15) {
  animation-delay: 0.29s
}

.wbar:nth-child(16) {
  animation-delay: 0.02s
}

.wbar:nth-child(17) {
  animation-delay: 0.38s
}

.wbar:nth-child(18) {
  animation-delay: 0.12s
}

.wbar:nth-child(19) {
  animation-delay: 0.21s
}

.wbar:nth-child(20) {
  animation-delay: 0.30s
}

.wbar:nth-child(21) {
  animation-delay: 0.08s
}

.wbar:nth-child(22) {
  animation-delay: 0.17s
}

.wbar:nth-child(23) {
  animation-delay: 0.26s
}

.wbar:nth-child(24) {
  animation-delay: 0.35s
}

@keyframes wbar-anim {

  0%,
  100% {
    height: 4px;
  }

  50% {
    height: 44px;
  }
}

.error-msg {
  display: none;
  font-size: 0.75rem;
  color: #dc2626;
  background: rgba(220, 38, 38, 0.07);
  border: 1px solid rgba(220, 38, 38, 0.2);
  border-radius: 10px;
  padding: 7px 14px;
  width: 100%;
  text-align: center;
}

.transcript {
  width: 100%;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  padding: 2px 0;
}

.transcript:empty {
  display: none;
}

.transcript::-webkit-scrollbar {
  width: 4px;
}

.transcript::-webkit-scrollbar-track {
  background: rgba(109, 40, 217, 0.04);
  border-radius: 2px;
}

.transcript::-webkit-scrollbar-thumb {
  background: rgba(109, 40, 217, 0.25);
  border-radius: 2px;
}

.msg-card {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.msg-card.user {
  flex-direction: row-reverse;
}

.msg-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  flex-shrink: 0;
  background-repeat: no-repeat;
  background-position: center;
  background-color: #6d28d9;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M24 7v6'/%3E%3Ccircle cx='24' cy='6' r='2' fill='white' stroke='none'/%3E%3Crect x='8' y='14' width='32' height='25' rx='11'/%3E%3Cpath d='M16 25h.01M32 25h.01M18 32c4 3 8 3 12 0'/%3E%3C/svg%3E");
  background-size: 20px;
  box-shadow: 0 2px 8px rgba(109, 40, 217, 0.30);
}

.msg-avatar.user {
  background-color: rgba(124, 58, 237, 0.18);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none' stroke='%237c3aed' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='24' cy='17' r='8'/%3E%3Cpath d='M10 42c2-8 8-12 14-12s12 4 14 12'/%3E%3C/svg%3E");
  background-size: 18px;
  box-shadow: none;
}

.msg-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: 78%;
}

.msg-card.user .msg-body {
  align-items: flex-end;
}

.msg-bubble {
  padding: 9px 13px 6px;
  font-size: 0.81rem;
  line-height: 1.55;
  word-break: break-word;
  position: relative;
}

.msg-bubble.bot {
  background: #f8fafc;
  color: #1e293b;
  border-radius: 0 16px 16px 16px;
  box-shadow: 0 1px 2px rgba(15,23,42,0.08);
}

/* WhatsApp tail — top-left */
.msg-bubble.bot::before {
  content: "";
  position: absolute;
  top: 0;
  left: -8px;
  border-style: solid;
  border-width: 0 8px 8px 0;
  border-color: transparent #f8fafc transparent transparent;
}

.msg-bubble.user {
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  color: #fff;
  border-radius: 16px 0 16px 16px;
  box-shadow: 0 4px 16px rgba(124, 58, 237, 0.3);
}

/* WhatsApp tail — top-right */
.msg-bubble.user::after {
  content: "";
  position: absolute;
  top: 0;
  right: -8px;
  border-style: solid;
  border-width: 0 0 8px 8px;
  border-color: transparent transparent transparent #7c3aed;
}

.msg-time {
  display: block;
  font-size: 10px;
  margin-top: 3px;
  opacity: 0.55;
  line-height: 1;
}

.msg-bubble.bot .msg-time {
  color: #64748b;
  text-align: left;
}

.msg-bubble.user .msg-time {
  color: #fff;
  text-align: right;
}

.booking-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(22, 163, 74, 0.1);
  border: 1px solid rgba(22, 163, 74, 0.25);
  color: #15803d;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  margin-top: 2px;
}

/* ── Message fade-in animation ── */
@keyframes msgSlideIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.msg-card { animation: msgSlideIn 0.22s ease-out both; }

/* ── Typing indicator ── */
.typing-card {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.typing-bubble {
  background: #f8fafc;
  border: 1px solid rgba(109,40,217,0.12);
  border-radius: 0 14px 14px 14px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 52px;
  box-shadow: 0 1px 4px rgba(109,40,217,0.07);
}
.typing-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #a78bfa;
  animation: typingBounce 1.2s infinite ease-in-out;
}
.typing-dot:nth-child(1) { animation-delay: 0s; }
.typing-dot:nth-child(2) { animation-delay: 0.18s; }
.typing-dot:nth-child(3) { animation-delay: 0.36s; }
@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30%            { transform: translateY(-5px); opacity: 1; }
}

.bottom-section {
  width: 100%;
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding-top: 8px;
  flex-shrink: 0;
}

.status-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f1f5f9;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 999px;
  padding: 9px 22px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #475569;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #cbd5e1;
  flex-shrink: 0;
}

.status-dot.red {
  background: #a855f7;
  animation: sdot 0.8s ease-in-out infinite;
}

.status-dot.green {
  background: #22c55e;
  animation: sdot 1s ease-in-out infinite;
}

.status-dot.blue {
  background: #818cf8;
  animation: sdot 1s ease-in-out infinite;
}

@keyframes sdot {

  0%,
  100% {
    opacity: 1
  }

  50% {
    opacity: 0.2
  }
}

.status-timer {
  color: #94a3b8;
  font-variant-numeric: tabular-nums;
  margin-left: 4px;
}

.tip-text {
  font-size: 0.73rem;
  color: #94a3b8;
}

.stop-btn {
  display: none;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1.5px solid rgba(15, 23, 42, 0.12);
  border-radius: 999px;
  padding: 11px 30px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #475569;
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.2s, color 0.2s;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

.stop-btn:hover {
  border-color: rgba(239, 68, 68, 0.5);
  color: #dc2626;
}

.stop-icon {
  width: 11px;
  height: 11px;
  background: #ef4444;
  border-radius: 3px;
  flex-shrink: 0;
}

.progress-card {
  position: fixed;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  width: 230px;
  background: #fff;
  border: 1px solid rgba(109, 40, 217, 0.12);
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(109, 40, 217, 0.1), 0 2px 8px rgba(15, 23, 42, 0.06);
  padding: 18px 16px;
  z-index: 10;
  transition: opacity 0.3s, transform 0.3s;
}

.pc-header {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #7c3aed;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.pc-header::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #7c3aed;
  box-shadow: 0 0 6px rgba(124, 58, 237, 0.5);
}

.pc-chips {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pc-chip {
  background: rgba(109, 40, 217, 0.05);
  border: 1px solid rgba(109, 40, 217, 0.12);
  border-radius: 10px;
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pc-label {
  font-size: 0.58rem;
  font-weight: 700;
  color: rgba(109, 40, 217, 0.55);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pc-val {
  font-size: 0.8rem;
  font-weight: 600;
  color: #1e1b4b;
  word-break: break-word;
}

@media (max-width: 900px) {
  .progress-card {
    display: none !important;
  }
}

/* ── Mobile: hide booking panel ── */
@media (max-width: 900px) {
  .booking-panel {
    display: none !important;
  }
}

@media (max-width: 480px) {
  .voice-topbar {
    padding: 10px 14px;
    gap: 8px;
  }
  .switch-chat-btn {
    padding: 6px 10px;
    font-size: 0.72rem;
    gap: 4px;
  }
  .ai-badge {
    font-size: 0.65rem;
    padding: 4px 10px;
  }
  .voice-card {
    border-radius: 20px;
    margin: 0 8px;
  }
  .mic-section .wave-bars {
    width: 48px;
  }
}

.voice-inline-options,
.voice-inline-slots {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 4px 0 2px;
}

.option-btn,
.slot-btn {
  background: #f8fafc;
  border: 1px solid rgba(109, 40, 217, 0.2);
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  font-family: inherit;
  color: #4c1d95;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s;
}

.option-btn:hover,
.slot-btn:hover {
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 16px rgba(124, 58, 237, 0.35);
}

.confirm-bar {
  width: 100%;
  flex-shrink: 0;
  background: rgba(22, 163, 74, 0.06);
  border: 1px solid rgba(22, 163, 74, 0.2);
  border-radius: 16px;
  padding: 12px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.confirm-hint {
  font-size: 0.75rem;
  font-weight: 600;
  color: #15803d;
  text-align: center;
  margin: 0;
  letter-spacing: 0.01em;
}

.confirm-btn {
  width: 100%;
  background: linear-gradient(135deg, #16a34a, #22c55e);
  color: #fff;
  border: none;
  border-radius: 14px;
  padding: 15px;
  font-size: 0.95rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 8px 30px rgba(34, 197, 94, 0.38);
  transition: box-shadow 0.15s, transform 0.15s;
}

.confirm-btn:hover {
  box-shadow: 0 12px 42px rgba(34, 197, 94, 0.58);
  transform: translateY(-1px);
}

.confirm-btn:active {
  transform: translateY(0);
  box-shadow: 0 6px 20px rgba(34, 197, 94, 0.32);
}

/* ══════════════════════════════════════════════════════
   TWO-COLUMN VOICE PAGE LAYOUT
══════════════════════════════════════════════════════ */

/* ── Left column: voice area ── */
.voice-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: calc(var(--vh, 1vh) * 100);
  overflow: hidden;
}

/* ── Top bar ── */
.voice-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  flex-shrink: 0;
}

.vt-back {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #fff;
  color: #475569;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
  flex-shrink: 0;
}

.vt-back:hover {
  background: #f1f5f9;
  color: #1e293b;
}

.switch-chat-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1.5px solid rgba(109, 40, 217, 0.3);
  background: rgba(109, 40, 217, 0.05);
  color: #6d28d9;
  font-size: 0.78rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  flex-shrink: 0;
}

.switch-chat-btn:hover {
  background: rgba(109, 40, 217, 0.1);
  border-color: rgba(109, 40, 217, 0.5);
}

/* ── Mic + horizontal waves ── */
.mic-section {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  flex-shrink: 0;
  padding: 8px 0;
}

.mic-section .wave-bars {
  width: 72px;
  flex-shrink: 0;
  height: 120px;
}

.wave-left {
  flex-direction: row-reverse;
}

.wave-right {
  flex-direction: row;
}

.voice-topbar .ai-badge {
  margin-bottom: 0;
}

@keyframes wbar-anim-tall {

  0%,
  100% {
    height: 5px;
  }

  50% {
    height: 88px;
  }
}

.mic-section.listening .wbar {
  animation: wbar-anim-tall 1s ease-in-out infinite;
}

.mic-section.speaking .wbar {
  animation: wbar-anim-tall 0.8s ease-in-out infinite;
}

/* ── Right column: booking panel ── */
.booking-panel {
  width: 296px;
  flex-shrink: 0;
  height: 100vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0;
  background: #faf8ff;
  border-left: 1px solid rgba(109, 40, 217, 0.1);
  padding: 24px 18px 20px;
}

.booking-panel::-webkit-scrollbar {
  width: 4px;
}

.booking-panel::-webkit-scrollbar-track {
  background: transparent;
}

.booking-panel::-webkit-scrollbar-thumb {
  background: rgba(109, 40, 217, 0.2);
  border-radius: 2px;
}

/* ── Panel blocks ── */
.bp-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bp-heading {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #7c3aed;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.bp-heading::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #7c3aed;
  box-shadow: 0 0 5px rgba(124, 58, 237, 0.5);
  flex-shrink: 0;
}

.bp-divider {
  height: 1px;
  background: rgba(109, 40, 217, 0.1);
  margin: 14px 0;
  flex-shrink: 0;
}

/* ── Progress steps ── */
.bp-steps {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bp-step {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid rgba(109, 40, 217, 0.08);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.bp-step.completed {
  background: rgba(109, 40, 217, 0.04);
  border-color: rgba(109, 40, 217, 0.16);
}

.bp-step.in-progress {
  background: #fff;
  border-color: rgba(109, 40, 217, 0.35);
  box-shadow: 0 2px 10px rgba(109, 40, 217, 0.1);
}

.bp-step.pending {
  opacity: 0.55;
}

.bp-step-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
  flex-shrink: 0;
}

.bp-step.completed .bp-step-num {
  background: #22c55e;
  color: #fff;
}

.bp-step.in-progress .bp-step-num {
  background: #7c3aed;
  color: #fff;
}

.bp-step.pending .bp-step-num {
  background: #e2e8f0;
  color: #94a3b8;
}

.bp-step-info {
  flex: 1;
  min-width: 0;
}

.bp-step-label {
  font-size: 0.68rem;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.bp-step-val {
  font-size: 0.78rem;
  font-weight: 600;
  color: #1e1b4b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bp-step.in-progress .bp-step-val {
  color: #7c3aed;
}

.bp-step.pending .bp-step-val {
  color: #94a3b8;
}

/* ── Summary rows ── */
.bp-summary {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.bp-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid rgba(109, 40, 217, 0.07);
}

.bp-row-icon {
  font-size: 0.85rem;
  flex-shrink: 0;
  width: 20px;
  text-align: center;
}

.bp-row-label {
  font-size: 0.68rem;
  font-weight: 600;
  color: #64748b;
  flex: 1;
}

.bp-row-val {
  font-size: 0.75rem;
  font-weight: 600;
  color: #1e1b4b;
  text-align: right;
  max-width: 110px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bp-row-val.empty {
  color: #cbd5e1;
  font-weight: 400;
  font-size: 0.68rem;
}

/* ── Confirm section (bottom of panel) ── */
.bp-confirm {
  margin-top: auto;
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.privacy-note {
  font-size: 0.65rem;
  color: #94a3b8;
  text-align: center;
  margin: 0;
}

/* ── Volume row ── */
.vol-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  color: #94a3b8;
}

.vol-slider {
  flex: 1;
  height: 4px;
  -webkit-appearance: none;
  appearance: none;
  background: rgba(109, 40, 217, 0.15);
  border-radius: 999px;
  outline: none;
  cursor: pointer;
}

.vol-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #7c3aed;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(124, 58, 237, 0.35);
}

.vol-slider::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #7c3aed;
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 6px rgba(124, 58, 237, 0.35);
}

/* ── Inline Date Picker Calendar ─────────────────────────────────────────── */

.inline-date-picker {
  width: 100%;
  background: #fff;
  border: 1px solid rgba(109, 40, 217, 0.18);
  border-radius: 16px;
  padding: 12px;
  box-shadow: 0 4px 24px rgba(109, 40, 217, 0.10);
  font-family: inherit;
  box-sizing: border-box;
}

.cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.cal-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #4c1d95;
  letter-spacing: 0.02em;
}

.cal-nav {
  background: none;
  border: 1px solid rgba(109, 40, 217, 0.2);
  border-radius: 8px;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #7c3aed;
  font-size: 0.9rem;
  transition: background 0.15s;
}

.cal-nav:hover {
  background: rgba(124, 58, 237, 0.08);
}

.cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  margin-bottom: 4px;
}

.cal-weekday {
  font-size: 0.68rem;
  font-weight: 700;
  color: #7c3aed;
  text-align: center;
  padding: 2px 0;
  letter-spacing: 0.04em;
}

.cal-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
}

.cal-day {
  background: none;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 6px 2px;
  font-size: 0.78rem;
  font-weight: 500;
  color: #1e1b4b;
  cursor: pointer;
  text-align: center;
  transition: background 0.13s, color 0.13s;
  font-family: inherit;
  line-height: 1.2;
}

.cal-day:hover:not(:disabled) {
  background: rgba(124, 58, 237, 0.10);
  border-color: rgba(124, 58, 237, 0.25);
}

.cal-day.today {
  border-color: #7c3aed;
  color: #7c3aed;
  font-weight: 700;
}

.cal-day.selected {
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  color: #fff;
  border-color: transparent;
  font-weight: 700;
}

.cal-day:disabled,
.cal-day.disabled {
  color: #c4b5fd;
  cursor: not-allowed;
  pointer-events: none;
}

.cal-day.empty {
  visibility: hidden;
  pointer-events: none;
}

/* Chat version uses same classes but slightly smaller */
.chat-inline-date-picker {
  width: 100%;
  background: #fff;
  border: 1px solid rgba(109, 40, 217, 0.18);
  border-radius: 16px;
  padding: 10px;
  box-shadow: 0 4px 20px rgba(109, 40, 217, 0.09);
  font-family: inherit;
  box-sizing: border-box;
  margin-top: 4px;
}

.chat-inline-date-picker .cal-day {
  font-size: 0.74rem;
  padding: 5px 2px;
}