/* ====================================================
   CHAMADA PRIVADA — style.css
   ==================================================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:          #0a0a0a;
  --surface:     #141414;
  --surface-2:   #1e1e1e;
  --surface-3:   #272727;
  --border:      rgba(255,255,255,0.07);
  --primary:     #a855f7;
  --primary-dk:  #7c3aed;
  --live:        #ef4444;
  --text:        #f0f0f0;
  --text-muted:  #6b7280;
  --text-dim:    #3f3f46;
  --success:     #22c55e;
  --radius:      12px;
  --radius-sm:   8px;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

html, body { height: 100%; font-family: var(--font); background: var(--bg); color: var(--text); -webkit-font-smoothing: antialiased; }
input, button, textarea, select { font-family: inherit; }
a { color: var(--primary); }


/* ══════════════════════════════════════
   SCREENS (shared)
══════════════════════════════════════ */
.screen {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10;
}

.screen.visible {
  display: flex;
  animation: scr-in .3s ease;
}

@keyframes scr-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}


/* ══════════════════════════════════════
   HOST PAGE
══════════════════════════════════════ */
.host-body {
  min-height: 100vh;
  background: var(--bg);
}

.host-container {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 16px 64px;
}

.host-header {
  padding: 28px 0 40px;
}

.host-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 700;
}

.host-logo svg {
  width: 26px;
  height: 26px;
  color: var(--primary);
}

/* Card */
.host-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 20px;
}

.host-title   { font-size: 21px; font-weight: 700; margin-bottom: 6px; }
.host-subtitle{ font-size: 14px; color: var(--text-muted); margin-bottom: 28px; }

.form-group { margin-bottom: 18px; }

.form-group label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 7px;
}

.form-group input[type="text"],
.form-group input[type="number"] {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 13px;
  color: var(--text);
  font-size: 14px;
  outline: none;
  transition: border-color .2s;
}

.form-group input:focus { border-color: var(--primary); }

.form-group small {
  display: block;
  margin-top: 5px;
  font-size: 11px;
  color: var(--text-dim);
  color: #4b5563;
}

.form-group small code {
  background: var(--surface-3);
  padding: 1px 5px;
  border-radius: 4px;
  color: var(--primary);
  font-size: 11px;
}

.input-prefix {
  display: flex;
  align-items: center;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color .2s;
}

.input-prefix:focus-within { border-color: var(--primary); }

.input-prefix .prefix {
  padding: 10px 11px;
  font-size: 13px;
  color: var(--text-muted);
  background: var(--surface-3);
  border-right: 1px solid var(--border);
  white-space: nowrap;
}

.input-prefix input {
  flex: 1;
  background: transparent;
  border: none !important;
  padding: 10px 13px;
  color: var(--text);
  font-size: 14px;
  outline: none;
}

.btn-generate {
  width: 100%;
  margin-top: 8px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 12px 20px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background .2s, transform .1s;
}

.btn-generate:hover  { background: var(--primary-dk); }
.btn-generate:active { transform: scale(.98); }
.btn-generate svg    { width: 17px; height: 17px; }

/* Result box */
.result-box {
  display: none;
  margin-top: 22px;
  padding: 18px;
  background: var(--surface-2);
  border: 1px solid rgba(168,85,247,.3);
  border-radius: var(--radius-sm);
  animation: scr-in .25s ease;
}

.result-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--success);
  margin-bottom: 12px;
}

.link-display {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.link-display input {
  flex: 1;
  background: var(--surface-3);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px 11px;
  color: var(--text);
  font-size: 12px;
  font-family: monospace;
  outline: none;
}

.btn-copy {
  background: var(--surface-3);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 6px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background .2s, color .2s;
}

.btn-copy:hover { border-color: var(--primary); color: var(--primary); }

.result-hint {
  font-size: 12px;
  color: #4b5563;
  margin-bottom: 10px;
}

.btn-open {
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.btn-open:hover { text-decoration: underline; }

/* Info cards */
.host-info-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.info-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.info-card h3 {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 10px;
}

.info-card ol,
.info-card p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
}

.info-card ol { padding-left: 18px; }
.info-card li { margin-bottom: 4px; }

.info-card code {
  background: var(--surface-3);
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 11px;
  color: var(--primary);
}

@media (max-width: 580px) {
  .host-card { padding: 20px 16px; }
  .host-info-cards { grid-template-columns: 1fr; }
}


/* ══════════════════════════════════════
   FULL-SCREEN STATUS PAGES
   (waiting / ended / thankyou / invalid)
══════════════════════════════════════ */
.status-screen {
  width: 100%;
  height: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
}

.status-screen.dark-purple {
  background: radial-gradient(ellipse at center, #130d24 0%, #0a0a0a 70%);
}

.status-screen.dark-red {
  background: radial-gradient(ellipse at center, #1a0808 0%, #0a0a0a 70%);
}

.status-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  max-width: 380px;
}

/* Icon circle */
.status-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
}

.status-icon.purple {
  background: rgba(168,85,247,.12);
  border: 1px solid rgba(168,85,247,.3);
  color: var(--primary);
}

.status-icon.red {
  background: rgba(239,68,68,.12);
  border: 1px solid rgba(239,68,68,.3);
  color: var(--live);
}

.status-icon.gray {
  background: rgba(107,114,128,.12);
  border: 1px solid rgba(107,114,128,.3);
  color: var(--text-muted);
}

.status-icon svg { width: 30px; height: 30px; }

.status-inner h1 { font-size: 21px; font-weight: 700; }

.status-inner p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

.status-inner .hint {
  font-size: 12px;
  color: #4b5563;
  margin-top: 2px;
}


/* ══════════════════════════════════════
   WAITING SCREEN
══════════════════════════════════════ */
.waiting-avatar {
  position: relative;
  width: 96px;
  height: 96px;
  margin-bottom: 4px;
}

.avatar-ring {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 2px solid var(--primary);
  opacity: .55;
  animation: ring-pulse 2s ease-in-out infinite;
}

.avatar-ring-2 {
  position: absolute;
  inset: -22px;
  border-radius: 50%;
  border: 1px solid var(--primary);
  opacity: .2;
  animation: ring-pulse 2s ease-in-out infinite .5s;
}

@keyframes ring-pulse {
  0%,100% { transform: scale(1); opacity: .55; }
  50%      { transform: scale(1.06); opacity: .15; }
}

.avatar-core {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 2px solid rgba(168,85,247,.5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.avatar-core svg { width: 38px; height: 38px; }

.waiting-text h2 {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.4;
}

.waiting-text p {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

.countdown-box {
  background: rgba(168,85,247,.08);
  border: 1px solid rgba(168,85,247,.25);
  border-radius: 16px;
  padding: 18px 36px;
  text-align: center;
}

.countdown-num {
  font-size: 52px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--primary);
  line-height: 1;
  letter-spacing: -3px;
}

.countdown-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-top: 5px;
}

.wait-dots {
  display: flex;
  gap: 6px;
}

.wait-dots span {
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  animation: dot-bounce 1.4s infinite both;
}

.wait-dots span:nth-child(2) { animation-delay: .2s; }
.wait-dots span:nth-child(3) { animation-delay: .4s; }

@keyframes dot-bounce {
  0%,80%,100% { transform: scale(.55); opacity: .4; }
  40%         { transform: scale(1);   opacity: 1; }
}


/* ══════════════════════════════════════
   CALL SCREEN
══════════════════════════════════════ */
#screen-call {
  background: #000;
  align-items: stretch;
}

.call-layout {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* — Header — */
.call-header {
  height: 52px;
  background: rgba(0,0,0,.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 14px;
  flex-shrink: 0;
  z-index: 5;
}

.call-brand {
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.live-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(239,68,68,.12);
  border: 1px solid rgba(239,68,68,.35);
  border-radius: 20px;
  padding: 4px 10px;
  flex-shrink: 0;
}

.live-dot {
  width: 7px;
  height: 7px;
  background: var(--live);
  border-radius: 50%;
  animation: live-pulse 1.6s infinite;
}

@keyframes live-pulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(239,68,68,.5); }
  50%     { box-shadow: 0 0 0 5px rgba(239,68,68,0); }
}

.live-text {
  font-size: 10px;
  font-weight: 800;
  color: var(--live);
  letter-spacing: .08em;
}

.call-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: auto;
}

.meta-stat {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
}

.meta-stat svg { width: 13px; height: 13px; flex-shrink: 0; }

#call-timer { font-variant-numeric: tabular-nums; font-weight: 600; }

/* — Body (video + chat) — */
.call-body {
  flex: 1;
  display: flex;
  overflow: hidden;
  min-height: 0;
}

/* — Video — */
.video-section {
  flex: 1;
  position: relative;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

#call-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  user-select: none;
}

.play-gate {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.75);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  cursor: pointer;
}

.play-gate.show { display: flex; }

.play-gate-btn {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: background .2s, transform .15s;
}

.play-gate-btn:hover  { background: var(--primary-dk); }
.play-gate-btn:active { transform: scale(.92); }
.play-gate-btn svg    { width: 28px; height: 28px; margin-left: 4px; }

.play-gate-text { font-size: 15px; font-weight: 600; color: var(--text); }

/* — Chat — */
.chat-panel {
  width: 296px;
  min-width: 296px;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-left: 1px solid var(--border);
}

.chat-head {
  position: relative;
  padding: 14px 14px 0;
  flex-shrink: 0;
}

.chat-title {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 8px;
  padding-right: 28px;
}

.chat-close-btn {
  display: none;
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--surface-3);
  border: none;
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  transition: background .15s, color .15s;
}

.chat-close-btn:hover { background: var(--surface-2); color: var(--text); }

.chat-notice {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  background: rgba(168,85,247,.07);
  border: 1px solid rgba(168,85,247,.18);
  border-radius: 6px;
  padding: 7px 10px;
  font-size: 11px;
  color: var(--primary);
  line-height: 1.45;
  margin-bottom: 10px;
}

.chat-notice svg { width: 12px; height: 12px; flex-shrink: 0; margin-top: 1px; }

.chat-msgs {
  flex: 1;
  overflow-y: auto;
  padding: 6px 14px 8px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
  scrollbar-width: thin;
  scrollbar-color: var(--surface-3) transparent;
}

.chat-msgs::-webkit-scrollbar       { width: 3px; }
.chat-msgs::-webkit-scrollbar-thumb { background: var(--surface-3); border-radius: 2px; }

/* Messages */
.msg-row {
  display: flex;
  align-items: flex-end;
  gap: 7px;
}

.msg-row.from-model { align-self: flex-start; }
.msg-row.from-user  { align-self: flex-end; flex-direction: row-reverse; }

.msg-ava {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dk));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.msg-wrap { max-width: 196px; }

.msg-name {
  font-size: 10px;
  font-weight: 700;
  color: var(--primary);
  display: block;
  margin-bottom: 3px;
}

.msg-bubble {
  font-size: 13px;
  line-height: 1.4;
  padding: 7px 11px;
  border-radius: 12px;
  word-break: break-word;
}

.from-model .msg-bubble {
  background: var(--surface-2);
  color: var(--text);
  border-bottom-left-radius: 3px;
}

.from-user .msg-bubble {
  background: var(--primary);
  color: #fff;
  border-bottom-right-radius: 3px;
}

.msg-time,
.msg-status {
  font-size: 10px;
  color: #4b5563;
  display: block;
  margin-top: 3px;
}

.from-user .msg-status {
  text-align: right;
  color: var(--success);
}

/* Botão Pix */
.pix-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: linear-gradient(135deg, #00b37e, #00875a);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  margin-bottom: 8px;
  transition: opacity .2s, transform .1s;
  letter-spacing: .02em;
}

.pix-btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.pix-btn:hover  { opacity: .88; }
.pix-btn:active { transform: scale(.97); }

/* Chat input */
.chat-foot {
  padding: 8px 12px 12px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}

.chat-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.chat-in {
  flex: 1;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 8px 13px;
  font-size: 13px;
  color: var(--text);
  outline: none;
  transition: border-color .2s;
}

.chat-in::placeholder { color: #4b5563; }
.chat-in:focus        { border-color: rgba(168,85,247,.5); }

.chat-send-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--primary);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background .2s, transform .12s;
}

.chat-send-btn:hover  { background: var(--primary-dk); }
.chat-send-btn:active { transform: scale(.88); }
.chat-send-btn svg    { width: 15px; height: 15px; color: #fff; margin-left: 2px; }

/* — Controls bar — */
.ctrl-bar {
  height: 64px;
  background: rgba(0,0,0,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 16px;
  padding-bottom: env(safe-area-inset-bottom, 0);
  flex-shrink: 0;
  z-index: 45;
  position: relative;
}

.ctrl-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
}

.ctrl-btn svg { width: 19px; height: 19px; }

.ctrl-off {
  background: var(--surface-2);
  color: var(--text-muted);
}

.ctrl-off:hover { background: var(--surface-3); }

.ctrl-sep {
  width: 1px;
  height: 26px;
  background: var(--border);
  margin: 0 2px;
}

.ctrl-end {
  width: 50px;
  height: 50px;
  background: var(--live);
  color: #fff;
}

.ctrl-end:hover { background: #dc2626; }

/* — Mobile chat toggle — */
.chat-fab {
  display: none;
  position: fixed;
  bottom: calc(76px + env(safe-area-inset-bottom, 0px));
  right: 14px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--primary);
  border: none;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  color: #fff;
  z-index: 50;
  box-shadow: 0 4px 20px rgba(168,85,247,.4);
  transition: background .2s, transform .12s;
}

.chat-fab:hover  { background: var(--primary-dk); }
.chat-fab:active { transform: scale(.92); }
.chat-fab svg    { width: 20px; height: 20px; }

.chat-fab .fab-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 16px;
  height: 16px;
  background: var(--live);
  border-radius: 50%;
  font-size: 10px;
  font-weight: 700;
  display: none;
  align-items: center;
  justify-content: center;
}

.chat-fab .fab-badge.show { display: flex; }


/* ══════════════════════════════════════
   RESPONSIVE — MOBILE
══════════════════════════════════════ */
@media (max-width: 768px) {

  /* Chat full-screen: sem conflito de z-index ou altura */
  .chat-panel {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    min-width: unset;
    border-left: none;
    border-top: none;
    border-radius: 0;
    transform: translateY(100%);
    transition: transform .32s cubic-bezier(.4,0,.2,1);
    z-index: 60;
    box-shadow: none;
    display: flex;
    flex-direction: column;
  }

  .chat-panel.open { transform: translateY(0); }

  /* Botão fechar — visível e clicável no mobile */
  .chat-close-btn {
    display: flex;
  }

  /* Input seguro: padding para safe-area (home indicator iPhone) */
  .chat-foot {
    padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  }

  /* FAB some quando chat está aberto */
  .chat-fab.chat-is-open { display: none; }

  .chat-fab { display: flex; }

  /* Previne zoom automático iOS em inputs < 16px */
  .chat-in,
  .pix-custom-input,
  .form-group input[type="text"],
  .form-group input[type="number"] {
    font-size: 16px;
  }

  .call-meta .meta-stat:first-child { display: none; }
  .countdown-num { font-size: 42px; }
  .call-brand { font-size: 13px; }
  .host-card { padding: 20px 16px; }
  .host-info-cards { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
  .countdown-box { padding: 14px 24px; }
  .waiting-text h2 { font-size: 17px; }
  .meta-stat { display: none; }
  #call-timer { display: flex !important; }
}


/* ══════════════════════════════════════
   MODAL PIX
══════════════════════════════════════ */
.pix-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.7);
  z-index: 100;
  align-items: flex-end;
  justify-content: center;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.pix-modal.open {
  display: flex;
  animation: scr-in .2s ease;
}

.pix-modal-box {
  position: relative;
  background: var(--surface);
  border-radius: 20px 20px 0 0;
  padding: 24px 20px;
  padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  width: 100%;
  max-width: 480px;
  border-top: 1px solid var(--border);
  animation: slide-up .3s cubic-bezier(.4,0,.2,1);
}

@keyframes slide-up {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}

.pix-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--surface-3);
  border: none;
  color: var(--text-muted);
  font-size: 16px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .15s;
}

.pix-modal-close:hover { background: var(--surface-2); color: var(--text); }

.pix-modal-header {
  text-align: center;
  margin-bottom: 20px;
}

.pix-modal-icon {
  font-size: 36px;
  line-height: 1;
  margin-bottom: 8px;
}

.pix-modal-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
}

.pix-modal-sub {
  font-size: 13px;
  color: var(--text-muted);
}

/* Grade de valores rápidos */
.pix-amounts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.pix-amount-btn {
  background: var(--surface-2);
  border: 2px solid var(--border);
  color: var(--text);
  border-radius: 10px;
  padding: 10px 4px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color .15s, background .15s, color .15s;
}

.pix-amount-btn:hover   { border-color: var(--primary); }
.pix-amount-btn.selected {
  border-color: #00b37e;
  background: rgba(0,179,126,.1);
  color: #00b37e;
}

/* Campo valor personalizado */
.pix-custom-row {
  display: flex;
  align-items: center;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 16px;
  transition: border-color .2s;
}

.pix-custom-row:focus-within { border-color: #00b37e; }

.pix-custom-prefix {
  padding: 11px 12px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-muted);
  background: var(--surface-3);
  border-right: 1px solid var(--border);
}

.pix-custom-input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 11px 12px;
  font-size: 16px;
  color: var(--text);
  outline: none;
}

.pix-custom-input::placeholder { color: #4b5563; }

/* Botão confirmar */
.pix-confirm-btn {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #00b37e, #00875a);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity .2s, transform .1s;
  margin-bottom: 8px;
}

.pix-confirm-btn:disabled {
  opacity: .4;
  cursor: not-allowed;
}

.pix-confirm-btn:not(:disabled):hover  { opacity: .88; }
.pix-confirm-btn:not(:disabled):active { transform: scale(.98); }

.pix-min-hint {
  text-align: center;
  font-size: 11px;
  color: #4b5563;
}

/* ── Passo 2: Código Pix ── */
.pix-qr-head {
  text-align: center;
  margin-bottom: 16px;
}

.pix-qr-amount {
  display: block;
  font-size: 30px;
  font-weight: 800;
  color: #00b37e;
  margin: 4px 0;
}

.pix-qr-sub {
  font-size: 13px;
  color: var(--text-muted);
}

/* Caixa do código copia-e-cola */
.pix-code-box {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 14px;
}

.pix-code-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.pix-code-text {
  font-size: 11px;
  font-family: monospace;
  color: var(--text);
  word-break: break-all;
  line-height: 1.5;
  max-height: 72px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, #000 60%, transparent);
  mask-image: linear-gradient(to bottom, #000 60%, transparent);
}

.pix-copy-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color .2s, color .2s;
  margin-bottom: 14px;
}

.pix-copy-btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.pix-copy-btn:hover { border-color: #00b37e; color: #00b37e; }

/* Status row */
.pix-status-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.pix-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-muted);
  flex-shrink: 0;
  animation: dot-bounce 1.4s infinite both;
}

.pix-status-row.completed { color: #00b37e; }
.pix-status-row.completed .pix-status-dot { background: #00b37e; animation: none; }

.pix-status-row.failed { color: var(--live); }
.pix-status-row.failed .pix-status-dot { background: var(--live); animation: none; }

.pix-back-btn {
  display: block;
  margin: 0 auto;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 13px;
  cursor: pointer;
  padding: 4px 8px;
  transition: color .15s;
}

.pix-back-btn:hover { color: var(--text); }
