:root {
  --bg: linear-gradient(135deg, #0e1726 0%, #1f2a44 50%, #0b1324 100%);
  --surface: #11182b;
  --surface-soft: #182235;
  --text: #eef3ff;
  --muted: #9fb2d3;
  --accent: #5ac8fa;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: "Inter", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}
a {
  color: var(--accent);
}
#app {
  min-height: 100vh;
}
.page {
  max-width: 960px;
  margin: 0 auto;
  padding: 24px 16px 32px;
}
.home-center {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.card {
  background: var(--surface);
  border: 1px solid #22314b;
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
}
.home-title {
  margin: 0 0 12px;
  font-size: 28px;
  letter-spacing: -0.02em;
}
.home-sub {
  margin: 0 0 20px;
  color: var(--muted);
}
.form-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #2b3954;
  background: var(--surface-soft);
  color: var(--text);
  font-size: 16px;
}
.button {
  padding: 12px 16px;
  border-radius: 10px;
  border: none;
  background: var(--accent);
  color: #041022;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(90, 200, 250, 0.35);
}
.button:active {
  transform: translateY(1px);
}
.muted {
  color: var(--muted);
}
.chat-shell {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: radial-gradient(circle at 20% 20%, rgba(90, 200, 250, 0.08), transparent 35%), var(--bg);
}
.chat-header,
.chat-composer {
  position: sticky;
  z-index: 10;
}
.chat-header {
  top: 0;
  backdrop-filter: blur(8px);
  background: rgba(15, 22, 35, 0.9);
  border-bottom: 1px solid #22314b;
  padding: 16px;
}
.chat-body {
  flex: 1;
  overflow-y: auto;
  padding: 12px 16px 120px;
}
.chat-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.chat-composer {
  bottom: 0;
  padding: 12px 16px;
  backdrop-filter: blur(8px);
  background: rgba(15, 22, 35, 0.95);
  border-top: 1px solid #22314b;
}
.composer-form {
  display: flex;
  gap: 10px;
}
.composer-input {
  flex: 1;
}
.chat-header-title {
  margin: 0;
  font-size: 20px;
  letter-spacing: -0.01em;
}
.chat-item {
  display: flex;
  flex-direction: column;
}
.chat-item.own {
  align-items: flex-end;
}
.chat-bubble {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 14px;
  max-width: 80%;
  background: var(--surface-soft);
  border: 1px solid #22314b;
  color: var(--text);
}
.chat-bubble.own {
  background: #d1e7ff;
  color: #0b3b75;
  border-color: #9dc7f6;
}
.chat-meta {
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
}
.chat-exit {
  background: #ff8a8a;
  color: #1f0a0a;
  box-shadow: 0 8px 24px rgba(255, 138, 138, 0.35);
}
