/* ════════════════════════════════════════════════════════════════
   BELLUNE CHAT — style.css
   Visual inspirado no WhatsApp. Mobile-first.
   ════════════════════════════════════════════════════════════════ */

/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }

:root {
  --wa-bg:          #111b21;
  --wa-chat-bg:     #0b1014;
  --wa-bubble-in:   #202c33;
  --wa-bubble-out:  #005c4b;
  --wa-text:        #e9edef;
  --wa-text-dim:    #8696a0;
  --wa-text-time:   #667781;
  --wa-header:      #202c33;
  --wa-footer:      #202c33;
  --wa-divider:     #2a3942;
  --wa-green:       #00a884;
  --wa-green-dk:    #008069;
  --wa-tick:        #53bdeb;
  --gold:           #c8933a;
  --gold-lt:        #f0ddb8;
  --online:         #00a884;

  /* Card/PIX special */
  --card-bg:        #1a2730;
  --card-border:    #2d3f49;
}

html, body {
  height: 100%;
  background: var(--wa-bg);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}

html {
  min-height: -webkit-fill-available;
}

body {
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  min-height: -webkit-fill-available;
}

/* ── App wrapper ──────────────────────────────────────────── */
#app {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100vh;
  height: 100svh;
  height: 100dvh;
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  min-height: -webkit-fill-available;
  max-width: none;
  margin: 0 auto;
  background: var(--wa-chat-bg);
  position: relative;
  overflow: hidden;
  /* wallpaper sutil */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Ccircle cx='10' cy='10' r='1.2' fill='%23ffffff08'/%3E%3Ccircle cx='50' cy='30' r='0.8' fill='%23ffffff06'/%3E%3Ccircle cx='30' cy='60' r='1' fill='%23ffffff07'/%3E%3Ccircle cx='70' cy='70' r='0.6' fill='%23ffffff05'/%3E%3C/svg%3E");
}

/* Desktop: moldura estilo dispositivo */
@media (min-width: 760px) and (pointer: fine) {
  body { display: flex; align-items: center; justify-content: center; background: #0a0f13; }
  #app {
    width: min(100%, 480px);
    height: 96vh;
    min-height: 0;
    max-width: 480px;
    border-radius: 16px;
    box-shadow: 0 24px 80px rgba(0,0,0,.9);
    overflow: hidden;
    border: 1px solid #1a2530;
  }
}

/* ── Header ───────────────────────────────────────────────── */
#chat-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding:
    max(10px, env(safe-area-inset-top))
    max(12px, env(safe-area-inset-right))
    10px
    max(8px, env(safe-area-inset-left));
  background: var(--wa-header);
  z-index: 10;
  flex-shrink: 0;
  border-bottom: 1px solid var(--wa-divider);
}

.header-back svg { display:block; cursor:pointer; flex-shrink:0; }

.header-avatar {
  position: relative;
  flex-shrink: 0;
}

.avatar-ring {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, #c8933a 0%, #7a5240 100%);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 2px var(--wa-header), 0 0 0 3px var(--gold);
  overflow: hidden;
}

.avatar-inner {
  font-family: 'Inter', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -.02em;
}

.online-dot {
  position: absolute;
  bottom: 1px; right: 1px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--online);
  border: 2px solid var(--wa-header);
}

.header-info { flex: 1; min-width: 0; }

.header-name {
  font-size: .95rem;
  font-weight: 600;
  color: var(--wa-text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.header-status {
  font-size: .73rem;
  color: var(--wa-text-dim);
  margin-top: 1px;
}

.header-icons {
  display: flex;
  gap: 14px;
  flex-shrink: 0;
}
.header-icons svg { display: block; cursor: pointer; }

/* ── Chat area ────────────────────────────────────────────── */
#chat-area {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding:
    12px
    max(12px, env(safe-area-inset-right))
    8px
    max(12px, env(safe-area-inset-left));
  scroll-behavior: smooth;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
}

#chat-area::-webkit-scrollbar { width: 4px; }
#chat-area::-webkit-scrollbar-thumb { background: #2a3942; border-radius: 4px; }

#messages-container {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-height: 100%;
  justify-content: flex-end;
}

/* ── Date separator ───────────────────────────────────────── */
.date-sep {
  display: flex;
  justify-content: center;
  margin: 10px 0;
}
.date-sep span {
  background: rgba(0,0,0,.35);
  color: var(--wa-text-dim);
  font-size: .68rem;
  padding: 4px 10px;
  border-radius: 6px;
  letter-spacing: .02em;
}

/* ── Mensagens ────────────────────────────────────────────── */
.msg-row {
  display: flex;
  margin: 2px 0;
  animation: msgIn .22s ease;
}
@keyframes msgIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.msg-row.in  { justify-content: flex-start; }
.msg-row.out { justify-content: flex-end; }

/* Bolha */
.bubble {
  max-width: 78%;
  padding: 7px 12px 6px;
  border-radius: 8px;
  font-size: .875rem;
  line-height: 1.45;
  color: var(--wa-text);
  position: relative;
  word-break: break-word;
}

.msg-row.in  .bubble {
  background: var(--wa-bubble-in);
  border-top-left-radius: 2px;
}
.msg-row.out .bubble {
  background: var(--wa-bubble-out);
  border-top-right-radius: 2px;
}

/* Rabinho da bolha */
.msg-row.in .bubble::before {
  content: '';
  position: absolute;
  top: 0; left: -7px;
  border-width: 8px 8px 0 0;
  border-style: solid;
  border-color: var(--wa-bubble-in) transparent transparent transparent;
}
.msg-row.out .bubble::before {
  content: '';
  position: absolute;
  top: 0; right: -7px;
  border-width: 8px 0 0 8px;
  border-style: solid;
  border-color: var(--wa-bubble-out) transparent transparent transparent;
}

/* Timestamp + ticks */
.msg-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 3px;
  margin-top: 3px;
}
.msg-time {
  font-size: .67rem;
  color: var(--wa-text-time);
  white-space: nowrap;
}
.msg-ticks svg { display: block; }

/* ── Typing indicator ─────────────────────────────────────── */
.typing-row {
  display: flex;
  justify-content: flex-start;
  margin: 4px 0;
  animation: msgIn .2s ease;
}
.typing-bubble {
  background: var(--wa-bubble-in);
  border-radius: 8px;
  border-top-left-radius: 2px;
  padding: 10px 14px;
  display: flex;
  gap: 4px;
  align-items: center;
}
.typing-bubble::before {
  content: '';
  position: absolute;
  /* reutilizando a classe — sem pseudoelemento aqui */
}
.typing-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--wa-text-dim);
  animation: typingPulse 1.2s infinite ease;
}
.typing-dot:nth-child(2) { animation-delay: .2s; }
.typing-dot:nth-child(3) { animation-delay: .4s; }
@keyframes typingPulse {
  0%, 60%, 100% { opacity: .3; transform: scale(.8); }
  30%           { opacity: 1;  transform: scale(1);  }
}

/* ── Quick reply buttons ──────────────────────────────────── */
.quick-replies {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin: 8px 0 4px;
  padding: 0 2px;
  animation: msgIn .25s ease;
}
.quick-btn {
  background: var(--wa-bubble-in);
  border: 1px solid var(--wa-green);
  color: var(--wa-green);
  border-radius: 20px;
  padding: 9px 18px;
  font-size: .84rem;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  text-align: center;
  transition: all .15s;
  -webkit-tap-highlight-color: transparent;
}
.quick-btn:hover, .quick-btn:active {
  background: var(--wa-green);
  color: #fff;
  transform: scale(.98);
}

/* ── Card especial (planos / PIX) ─────────────────────────── */
.card-msg {
  max-width: 90%;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  overflow: hidden;
  animation: msgIn .25s ease;
  margin: 6px 0;
}

.card-header {
  background: linear-gradient(135deg, #1a2c24 0%, #0d2018 100%);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.card-header-icon {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--wa-green);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.card-header h4 {
  font-size: .82rem;
  font-weight: 700;
  color: var(--wa-text);
}
.card-header p {
  font-size: .7rem;
  color: var(--wa-text-dim);
  margin-top: 1px;
}

.card-body { padding: 14px 16px; }

.platform-preview {
  padding: 12px;
  background: linear-gradient(180deg, #151f26 0%, #111921 100%);
}
.platform-preview-shell {
  background: #f6efe6;
  border: 1px solid rgba(200,147,58,.28);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 14px 34px rgba(0,0,0,.26);
}
.platform-preview-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(116,80,49,.14);
}
.platform-preview-brand {
  font-family: "Georgia", serif;
  font-size: 1rem;
  font-weight: 700;
  color: #6c4427;
}
.platform-preview-actions {
  display: flex;
  gap: 8px;
}
.platform-preview-action {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  background: #fff8ef;
  border: 1px solid rgba(116,80,49,.14);
}
.platform-preview-tabs {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  border-bottom: 1px solid rgba(116,80,49,.14);
  padding: 0 8px;
}
.platform-preview-tabs span {
  position: relative;
  padding: 10px 0 12px;
  text-align: center;
  font-size: .68rem;
  font-weight: 700;
  color: #a1846d;
}
.platform-preview-tabs .is-active {
  color: #6f482c;
}
.platform-preview-tabs .is-active::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 0;
  height: 2px;
  border-radius: 999px;
  background: #6f482c;
}
.platform-preview-body {
  padding: 14px 12px 12px;
}
.platform-preview-overline {
  font-size: .58rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #a1846d;
}
.platform-preview-title {
  margin-top: 8px;
  font-family: "Georgia", serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: #2f2118;
}
.platform-preview-subtitle {
  margin-top: 6px;
  font-size: .74rem;
  line-height: 1.5;
  color: #6f5645;
}
.platform-preview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 14px;
}
.platform-preview-tool {
  background: rgba(255,251,245,.95);
  border: 1px solid rgba(184,131,58,.22);
  border-radius: 16px;
  padding: 12px;
  box-shadow: 0 8px 18px rgba(93,63,46,.08);
}
.platform-preview-tool.wide {
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.platform-preview-tool strong {
  display: block;
  font-size: .78rem;
  color: #2f2118;
}
.platform-preview-tool span {
  display: block;
  margin-top: 4px;
  font-size: .67rem;
  line-height: 1.45;
  color: #785b47;
}
.platform-preview-ico {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #efe3d6;
  color: #8a603b;
  font-size: .8rem;
  font-weight: 800;
  flex-shrink: 0;
  margin-bottom: 8px;
}
.platform-preview-tool.wide .platform-preview-ico {
  margin-bottom: 0;
}

.platform-shot-card {
  padding: 12px;
  background: linear-gradient(180deg, #151f26 0%, #111921 100%);
}
.platform-shot-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.platform-shot-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(200,147,58,.18);
  color: #f0ddb8;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.platform-shot-count {
  flex-shrink: 0;
  font-size: .68rem;
  font-weight: 700;
  color: #d7c6b3;
}
.platform-shot-gallery {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}
.platform-shot-gallery::-webkit-scrollbar {
  height: 5px;
}
.platform-shot-gallery::-webkit-scrollbar-thumb {
  background: rgba(200,147,58,.28);
  border-radius: 999px;
}
.platform-shot-frame {
  appearance: none;
  padding: 4px;
  cursor: pointer;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(200,147,58,.24);
  background: #0f171d;
  box-shadow: 0 14px 34px rgba(0,0,0,.28);
  flex: 0 0 clamp(122px, 35vw, 152px);
  min-width: 122px;
  max-width: 152px;
  scroll-snap-align: start;
}
.platform-shot-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
}
.platform-shot-caption {
  margin-top: 10px;
  font-size: .73rem;
  line-height: 1.5;
  color: #c8933a;
}
.platform-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: none;
}
.platform-lightbox.is-open {
  display: block;
}
.platform-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 10, 14, .84);
  backdrop-filter: blur(4px);
  cursor: pointer;
}
.platform-lightbox-dialog {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  width: min(96vw, 560px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding-top: 54px;
}
.platform-lightbox-close {
  position: absolute;
  top: 0;
  right: 0;
  min-width: 46px;
  min-height: 46px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(240,221,184,.5);
  background: rgba(17,27,33,.94);
  color: #f0ddb8;
  font-size: .78rem;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(0,0,0,.35);
}
.platform-lightbox-img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: min(76vh, 820px);
  border-radius: 20px;
  border: 1px solid rgba(200,147,58,.25);
  box-shadow: 0 24px 60px rgba(0,0,0,.45);
}
@media (min-width: 420px) {
  .platform-shot-frame {
    flex-basis: clamp(132px, 32vw, 164px);
  }
}

/* Planos */
.plans-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 4px;
}
.plan-card {
  border: 1.5px solid var(--wa-divider);
  border-radius: 10px;
  padding: 14px 12px 12px;
  cursor: pointer;
  transition: all .18s;
  position: relative;
  text-align: center;
  background: #18262e;
  min-width: 0;
  min-height: 156px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.plan-card:hover, .plan-card:active {
  border-color: var(--wa-green);
  transform: translateY(-1px);
}
.plan-card.featured {
  border-color: var(--gold);
  background: #1a2820;
}
.plan-card.special {
  border-color: rgba(200,147,58,.42);
  background: linear-gradient(180deg, #21180f 0%, #18262e 100%);
}
.plan-badge {
  position: absolute;
  top: -9px; left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: #111;
  font-size: .57rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 10px;
  white-space: nowrap;
  max-width: calc(100% - 16px);
  overflow: hidden;
  text-overflow: ellipsis;
}
.plan-badge.special {
  background: #f0ddb8;
  color: #5c3d2e;
}
.plan-name {
  font-size: .7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--wa-text-dim);
  margin-bottom: 6px;
  line-height: 1.25;
  min-height: 2.2em;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: normal;
}
.plan-price {
  font-size: clamp(1.02rem, 4.3vw, 1.3rem);
  font-weight: 700;
  color: var(--wa-text);
  line-height: 1;
}
.plan-price sup {
  font-size: .65rem;
  font-weight: 500;
  vertical-align: top;
  margin-top: 5px;
  display: inline-block;
}
.plan-period {
  font-size: .65rem;
  color: var(--wa-text-dim);
  margin-top: 4px;
}
.plan-hint {
  font-size: .63rem;
  color: var(--wa-green);
  margin-top: 5px;
  font-weight: 500;
  min-height: 2.2em;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1.35;
}
.plan-card.special .plan-hint {
  color: #f0ddb8;
}
.plan-select-cta {
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
  color: var(--wa-text);
  font-size: .68rem;
  font-weight: 700;
  pointer-events: none;
}
.plan-card.special .plan-select-cta {
  border-color: rgba(240,221,184,.26);
  background: rgba(240,221,184,.08);
  color: #f5e7d1;
}

/* PIX Block */
.pix-block {
  animation: msgIn .25s ease;
}
.pix-label {
  font-size: .67rem;
  color: var(--wa-text-dim);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 5px;
  font-weight: 600;
}
.pix-key-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #0b1014;
  border: 1px solid var(--wa-divider);
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 12px;
}
.pix-key-value {
  flex: 1;
  font-size: .84rem;
  font-weight: 600;
  color: var(--wa-green);
  font-family: 'Courier New', monospace;
  word-break: break-all;
}
.pix-copy-icon { flex-shrink: 0; cursor: pointer; }
.pix-copy-icon svg { display: block; }

.pix-plan-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  background: #0d1e17;
  border-radius: 8px;
  padding: 10px 12px;
  border: 1px solid #1a3528;
}
.pix-plan-name {
  font-size: .8rem;
  color: var(--wa-text-dim);
}
.pix-plan-price {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--wa-text);
}

.pix-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ── Botões de ação ───────────────────────────────────────── */
.btn-pix-copy {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px;
  background: var(--wa-green);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: .88rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all .15s;
}
.btn-pix-copy:hover { background: var(--wa-green-dk); }
.btn-pix-copy.copied { background: #1a5c42; }

.btn-paid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 11px;
  background: transparent;
  color: var(--wa-green);
  border: 1.5px solid var(--wa-green);
  border-radius: 8px;
  font-size: .85rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all .15s;
}
.btn-paid:hover {
  background: rgba(0,168,132,.1);
}

.btn-doubt {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 9px;
  background: transparent;
  color: var(--wa-text-dim);
  border: 1px solid var(--wa-divider);
  border-radius: 8px;
  font-size: .8rem;
  font-family: inherit;
  cursor: pointer;
  transition: all .15s;
}
.btn-doubt:hover { border-color: var(--wa-text-dim); }

.special-plan-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.btn-special-back {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 10px 12px;
  background: #f0ddb8;
  color: #332319;
  border: 1px solid rgba(200,147,58,.55);
  border-radius: 8px;
  font-size: .84rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: all .15s;
}
.btn-special-back:hover {
  background: #e8d09f;
  border-color: rgba(200,147,58,.75);
}

.btn-whatsapp {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  padding: 13px;
  background: #25d366;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: .9rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  transition: all .15s;
  margin-top: 2px;
}
.btn-whatsapp:hover { background: #1fb855; transform: translateY(-1px); }
.btn-whatsapp svg { flex-shrink: 0; }

/* ── Copy feedback toast ──────────────────────────────────── */
#copy-toast {
  position: fixed;
  bottom: calc(90px + env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #2a3942;
  color: var(--wa-text);
  padding: 9px 18px;
  border-radius: 20px;
  font-size: .8rem;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  transition: all .25s;
  z-index: 999;
  white-space: nowrap;
  border: 1px solid var(--wa-green);
}
#copy-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ── Footer ───────────────────────────────────────────────── */
#chat-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  padding:
    8px
    max(10px, env(safe-area-inset-right))
    calc(8px + env(safe-area-inset-bottom))
    max(10px, env(safe-area-inset-left));
  background: var(--wa-footer);
  flex-shrink: 0;
  border-top: 1px solid var(--wa-divider);
}

.footer-emoji, .footer-attach, .footer-mic {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: default;
}

.footer-input {
  flex: 1;
  min-width: 0;
  background: var(--wa-bg);
  border-radius: 20px;
  padding: 9px 14px;
  font-size: .84rem;
  color: var(--wa-text-dim);
  min-height: 40px;
  display: flex;
  align-items: center;
}

.footer-input span {
  display: block;
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ── Texto em negrito dentro de bolhas ────────────────────── */
.bubble strong { color: #fff; font-weight: 600; }
.bubble em { color: var(--gold-lt); font-style: normal; }

/* ── Scroll suave automático ──────────────────────────────── */
.msg-row, .quick-replies, .pix-block, .card-msg {
  transition: none;
}

/* ── Highlight check final ────────────────────────────────── */
.msg-row.out .bubble { text-align: left; }

/* Checkmarks */
.ticks-double path { fill: var(--wa-text-time); }
.ticks-double.read path { fill: var(--wa-tick); }

/* ── Responsivo desktop leve ──────────────────────────────── */
@media (min-width: 760px) and (pointer: fine) {
  .bubble { max-width: 72%; }
  .plans-grid { gap: 12px; }
}

/* Avatar foto Lara */
.avatar-img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center center;
  border-radius: 50%;
  display: block;
  image-rendering: auto;
  transform: translateZ(0);
  backface-visibility: hidden;
}
/* Plans grid 3 colunas */
.plans-grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(148px, 100%), 1fr));
  gap: 10px;
  margin-bottom: 4px;
  align-items: stretch;
  padding-top: 10px;
}
@media(max-width:420px){
  .platform-preview-grid { grid-template-columns: 1fr; }
  .platform-preview-title { font-size: 1.18rem; }
  .platform-shot-caption { font-size: .7rem; }
  .platform-shot-frame { flex-basis: clamp(118px, 34vw, 142px); }
  #chat-header { gap: 8px; }
  .avatar-ring { width: 42px; height: 42px; }
  .header-icons { gap: 10px; }
  .header-name { font-size: .9rem; }
  .footer-input { padding: 9px 12px; font-size: .8rem; }
  .platform-lightbox-dialog { width: min(96vw, 420px); padding-top: 50px; }
  .platform-lightbox-img { max-height: 72vh; }
}
@media(max-width:390px){
  .plan-card {
    padding: 14px 10px 12px;
  }
  .plan-name {
    font-size: .66rem;
    letter-spacing: .05em;
  }
  .plan-period {
    font-size: .62rem;
  }
  .plan-hint {
    font-size: .6rem;
  }
  .plan-select-cta {
    min-height: auto;
    padding: 6px 10px;
    font-size: .63rem;
    line-height: 1.25;
    white-space: normal;
  }
}
@media(max-width:360px){
  .plans-grid-3 {
    grid-template-columns: 1fr;
  }
  .plan-card {
    padding: 14px 10px 12px;
    min-height: 150px;
  }
  .plan-name {
    font-size: .66rem;
    letter-spacing: .05em;
  }
  .plan-hint {
    font-size: .6rem;
  }
  .plan-select-cta {
    font-size: .64rem;
    padding: 0 10px;
  }
}
