:root {
  --bg: #0b0f17;
  --panel: #0f1624;
  --panel2: #0c1320;
  --text: #e8eefc;
  --muted: #9bb0d1;
  --border: rgba(255,255,255,.08);
  --accent: #4aa3ff;
  --good: #25d366;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  background: radial-gradient(1200px 700px at 20% 0%, #13213a, var(--bg));
  color: var(--text);
}

.app {
  height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  background: rgba(15,22,36,.6);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);
}

.brand { display: flex; gap: 10px; align-items: center; }
.dot {
  width: 12px; height: 12px; border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 18px rgba(74,163,255,.55);
}
.title { font-weight: 700; letter-spacing: .2px; }
.subtitle { color: var(--muted); font-size: 12px; margin-top: 2px; }

.actions { display: flex; gap: 10px; }

.main {
  padding: 16px;
  overflow: hidden;
}

.messages {
  height: 100%;
  overflow: auto;
  padding-right: 6px;
}

.msg {
  max-width: 900px;
  padding: 12px 12px;
  margin: 10px 0;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(15,22,36,.55);
}

.msg .meta {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
}

.msg.user { margin-left: auto; background: rgba(74,163,255,.10); }
.msg.assistant { margin-right: auto; background: rgba(37,211,102,.08); }

.composer {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  padding: 14px 16px;
  border-top: 1px solid var(--border);
  background: rgba(12,19,32,.7);
  backdrop-filter: blur(10px);
}

.input {
  width: 100%;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  outline: none;
  background: rgba(0,0,0,.25);
  color: var(--text);
}

.btn {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.06);
  color: var(--text);
  cursor: pointer;
}
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn:hover:not(:disabled) { border-color: rgba(255,255,255,.18); }

.btn-ghost { background: transparent; }
.btn-call { min-width: 140px; }
.btn-call.on { border-color: rgba(37,211,102,.5); box-shadow: 0 0 18px rgba(37,211,102,.15); }
/* When in audio-only call mode, hide the text chat area */
body.call-mode .messages {
  display: none;
}
body.call-mode .main {
  display: grid;
  place-items: center;
}
body.call-mode .main::before {
  content: "Call in progress…";
  color: var(--muted);
  font-size: 16px;
}
