/* Chat page styles */
.chat-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 20px;
  min-height: calc(100svh - var(--header-h));
  display: flex;
  flex-direction: column;
}

/* Denomination selector */
.denom-screen {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 24px;
}
.denom-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  width: 100%;
  max-width: 480px;
}
@media (max-width: 480px) { .denom-grid { grid-template-columns: repeat(2, 1fr); } }
.denom-btn {
  padding: 14px 10px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: 0.15s;
  color: var(--ink);
}
.denom-btn:hover { border-color: var(--brand-1); background: #e0f2fe; }

/* Chat area */
.chat-area {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.chat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 14px;
}
.chat-avatar {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: #e0f2fe;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  border: 1px solid var(--border);
}

.messages {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px 0;
  min-height: 300px;
  max-height: calc(100svh - var(--header-h) - 200px);
}

.bubble {
  border-radius: 18px;
  padding: 12px 16px;
  max-width: 80%;
  line-height: 1.5;
  font-size: 15px;
  box-shadow: var(--shadow-1);
  word-wrap: break-word;
}
.bubble.me {
  background: var(--brand-1);
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 6px;
}
.bubble.other {
  background: #fff;
  color: var(--ink);
  align-self: flex-start;
  border-bottom-left-radius: 6px;
}
.bubble.typing {
  background: #fff;
  color: var(--muted);
  font-style: italic;
}

/* Input area */
.chat-input {
  display: flex;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  margin-top: auto;
}
.chat-input input {
  flex: 1;
  border-radius: 14px;
}
.chat-input .btn {
  padding: 12px 20px;
  flex-shrink: 0;
}
