:root {
  --primary: #00B960;
  --bg: #0F0F1E;
  --card: #16162C;
  --card2: #1F1F38;
  --text: #fff;
  --muted: #b8b8c7;
  --danger: #ff5252;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at top, #163627 0, var(--bg) 42%);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.app-shell {
  width: min(760px, 100%);
  margin: 0 auto;
  padding: 20px;
}
.card, .chat-card {
  background: rgba(22,22,44,.96);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 20px;
  padding: 22px;
  box-shadow: 0 18px 60px rgba(0,0,0,.35);
}
.brand {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: var(--primary);
  font-weight: 900;
  font-size: 24px;
  margin-bottom: 10px;
}
h1, h2 { margin: 0 0 6px; }
.muted { color: var(--muted); margin: 0; }
label { display: block; margin: 16px 0 6px; font-weight: 700; }
input {
  width: 100%;
  border: 1px solid rgba(255,255,255,.12);
  background: #101025;
  color: var(--text);
  border-radius: 12px;
  padding: 13px 14px;
  font-size: 16px;
}
button {
  border: none;
  border-radius: 12px;
  padding: 12px 14px;
  font-weight: 800;
  cursor: pointer;
}
.primary { background: var(--primary); color: white; }
.secondary { background: #2a6b4c; color: white; }
.ghost { background: transparent; color: white; border: 1px solid rgba(255,255,255,.18); }
.status { color: var(--danger); min-height: 22px; }
.chat-header { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; margin-bottom: 16px; }
.renewal-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border-radius: 16px;
  background: rgba(0,185,96,.09);
  border: 1px solid rgba(0,185,96,.25);
  margin-bottom: 14px;
}
.renewal-box small { color: var(--muted); display: block; }
.messages {
  height: min(58vh, 520px);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #0c0c1a;
  border-radius: 16px;
  padding: 14px;
}
.msg {
  max-width: 86%;
  padding: 11px 13px;
  border-radius: 14px;
  line-height: 1.35;
  white-space: pre-wrap;
}
.msg.client { align-self: flex-end; background: var(--primary); color: white; border-bottom-right-radius: 4px; }
.msg.admin, .msg.system { align-self: flex-start; background: var(--card2); border-bottom-left-radius: 4px; }
.msg small { display:block; opacity:.65; margin-top: 5px; font-size: 11px; }
/* Botões rápidos removidos para não induzir respostas repetidas de renovação */
.quick-actions { display: none !important; }
.quick-actions button { display: none !important; }
.chat-actions-top { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.chat-actions-top button { white-space: nowrap; }
.message-form { display: flex; gap: 8px; margin-top: 10px; }
.message-form input { flex: 1; }
.message-form button { width: 95px; }
@media (max-width: 560px) {
  .app-shell { padding: 12px; }
  .renewal-box { flex-direction: column; align-items: stretch; }
  .chat-actions-top { flex-direction: column; }
  .message-form button { width: 82px; }
}

.msg-images {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.msg-images img {
  width: 100%;
  max-width: 360px;
  border-radius: 14px;
  display: block;
  object-fit: cover;
}
