/* NightDesk — shared styles for landing + chat */
:root {
  --navy-900: #0b1220;
  --navy-800: #111a2e;
  --navy-700: #18233d;
  --navy-600: #223054;
  --ink: #e8edf7;
  --ink-dim: #9aa8c4;
  --line: rgba(255, 255, 255, 0.08);
  --accent: #d9a441;
  --accent-soft: color-mix(in srgb, var(--accent) 18%, transparent);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  font-synthesis: none;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
}

body {
  background: radial-gradient(1200px 600px at 80% -10%, var(--navy-700), var(--navy-900) 60%);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

a { color: inherit; }

.mark { color: var(--accent); vertical-align: middle; }

/* ---------- landing ---------- */
.landing {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 20px 64px;
}
.landing-head { text-align: center; margin-bottom: 22px; }
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 28px; font-weight: 600; letter-spacing: -0.5px;
}
.brand b { color: var(--accent); font-weight: 700; }
.tagline { color: var(--ink-dim); margin: 6px 0 0; font-size: 15px; }

.clock-banner {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--navy-800); border: 1px solid var(--line);
  border-radius: 999px; padding: 10px 18px; margin: 0 auto 30px;
  width: fit-content; font-size: 14px; color: var(--ink-dim);
}
.pulse {
  width: 8px; height: 8px; border-radius: 50%; background: #57d38c;
  box-shadow: 0 0 0 0 rgba(87, 211, 140, 0.6);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(87, 211, 140, 0.5); }
  70% { box-shadow: 0 0 0 10px rgba(87, 211, 140, 0); }
  100% { box-shadow: 0 0 0 0 rgba(87, 211, 140, 0); }
}
#clockText b { color: var(--ink); }

.landing-copy { text-align: center; margin-bottom: 30px; }
.landing-copy h1 { font-size: 27px; line-height: 1.25; margin: 0 0 12px; letter-spacing: -0.5px; }
.landing-copy p { color: var(--ink-dim); margin: 0 auto; max-width: 520px; }

.pick-grid { display: grid; gap: 12px; }
.pick-card {
  display: flex; align-items: center; gap: 14px;
  background: var(--navy-800); border: 1px solid var(--line);
  border-radius: 16px; padding: 16px 18px; text-decoration: none;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.pick-card:hover { transform: translateY(-2px); border-color: var(--accent); background: var(--navy-700); }
.pick-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--accent); flex: none; box-shadow: 0 0 12px var(--accent); }
.pick-body { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.pick-body strong { font-size: 16px; }
.pick-industry { color: var(--ink-dim); font-size: 13px; text-transform: capitalize; }
.pick-go { color: var(--accent); font-size: 14px; font-weight: 600; white-space: nowrap; }

.landing-foot { text-align: center; color: var(--ink-dim); font-size: 13px; margin-top: 34px; }

/* ---------- chat ---------- */
.chat-app {
  display: flex; flex-direction: column;
  height: 100dvh; max-width: 560px; margin: 0 auto;
  background: var(--navy-900);
  border-left: 1px solid var(--line); border-right: 1px solid var(--line);
}

.chat-head {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; background: var(--navy-800);
  border-bottom: 1px solid var(--line);
}
.back { text-decoration: none; color: var(--ink-dim); font-size: 22px; line-height: 1; padding: 4px 6px; border-radius: 8px; }
.back:hover { color: var(--ink); background: var(--navy-700); }
.chat-brand { flex: 1; min-width: 0; }
.chat-brand .biz { font-weight: 600; font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-brand .powered { display: flex; align-items: center; gap: 5px; color: var(--ink-dim); font-size: 11px; }
.chat-brand .powered .mark { width: 13px; height: 13px; }
.status-dot { width: 10px; height: 10px; border-radius: 50%; background: #57d38c; box-shadow: 0 0 10px #57d38c; flex: none; }

.clock-strip {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 7px 12px; font-size: 12.5px; color: var(--ink-dim);
  background: var(--navy-800); border-bottom: 1px solid var(--line);
}
.clock-strip #clockText b { color: var(--ink); }

.messages {
  flex: 1; overflow-y: auto; padding: 18px 16px;
  display: flex; flex-direction: column; gap: 12px;
  scroll-behavior: smooth;
}

.msg { max-width: 82%; padding: 11px 14px; border-radius: 16px; font-size: 15px; word-wrap: break-word; white-space: pre-wrap; }
.msg.bot { align-self: flex-start; background: var(--navy-700); border: 1px solid var(--line); border-bottom-left-radius: 5px; }
.msg.user { align-self: flex-end; background: var(--accent); color: #1a1200; border-bottom-right-radius: 5px; font-weight: 500; }

.typing { align-self: flex-start; display: inline-flex; gap: 4px; padding: 14px 16px; background: var(--navy-700); border: 1px solid var(--line); border-radius: 16px; border-bottom-left-radius: 5px; }
.typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-dim); animation: blink 1.3s infinite; }
.typing span:nth-child(2) { animation-delay: 0.2s; }
.typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes blink { 0%, 60%, 100% { opacity: 0.25; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }

/* booking confirmation card */
.booking-card {
  align-self: flex-start; max-width: 88%;
  background: linear-gradient(160deg, var(--navy-700), var(--navy-800));
  border: 1px solid var(--accent); border-radius: 16px;
  padding: 16px 18px; box-shadow: var(--shadow);
}
.booking-card .bc-head { display: flex; align-items: center; gap: 8px; color: var(--accent); font-weight: 700; font-size: 14px; margin-bottom: 10px; }
.booking-card .bc-check { width: 20px; height: 20px; border-radius: 50%; background: var(--accent); color: #1a1200; display: grid; place-items: center; font-size: 13px; font-weight: 900; flex: none; }
.booking-card dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 14px; }
.booking-card dt { color: var(--ink-dim); }
.booking-card dd { margin: 0; font-weight: 600; }
.booking-card .bc-foot { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); color: var(--ink-dim); font-size: 12.5px; }

.quick-replies { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 16px 4px; }
.chip {
  border: 1px solid var(--accent); color: var(--accent); background: var(--accent-soft);
  border-radius: 999px; padding: 7px 13px; font-size: 13px; cursor: pointer;
  transition: background 0.12s ease;
}
.chip:hover { background: color-mix(in srgb, var(--accent) 30%, transparent); }
.chip:disabled { opacity: 0.4; cursor: default; }

.composer { display: flex; gap: 10px; padding: 12px 16px 16px; background: var(--navy-900); border-top: 1px solid var(--line); }
.composer input {
  flex: 1; background: var(--navy-700); border: 1px solid var(--line); color: var(--ink);
  border-radius: 999px; padding: 12px 16px; font-size: 15px; outline: none;
}
.composer input:focus { border-color: var(--accent); }
.composer button {
  width: 46px; height: 46px; flex: none; border: none; border-radius: 50%;
  background: var(--accent); color: #1a1200; cursor: pointer; display: grid; place-items: center;
  transition: transform 0.1s ease, opacity 0.1s ease;
}
.composer button:hover { transform: scale(1.05); }
.composer button:disabled { opacity: 0.45; cursor: default; transform: none; }

@media (max-width: 600px) {
  .chat-app { border-left: none; border-right: none; }
  .landing-copy h1 { font-size: 23px; }
}
