:root {
  --bg:#f4f7fb; --panel:#ffffff; --text:#1f2937; --muted:#6b7280; --line:#dbe3ef;
  --primary:#2563eb; --success:#15803d; --danger:#b91c1c; --warning:#b45309; --radius:16px;
}
* { box-sizing:border-box; }
body { margin:0; font-family:Arial,Helvetica,sans-serif; background:var(--bg); color:var(--text); }
a { color:inherit; text-decoration:none; }
.btn { border:0; border-radius:10px; padding:10px 14px; cursor:pointer; font-weight:700; display:inline-flex; align-items:center; justify-content:center; gap:6px; }
.btn-primary { background:var(--primary); color:#fff; }
.btn-success { background:var(--success); color:#fff; }
.btn-danger { background:var(--danger); color:#fff; }
.btn-light { background:#eef2ff; color:#1e3a8a; }
.full { width:100%; }
.card { background:var(--panel); border:1px solid var(--line); border-radius:var(--radius); padding:18px; box-shadow:0 10px 30px rgba(15,23,42,.06); }
.alert { padding:12px; border-radius:10px; margin:10px 0; }
.alert.danger { background:#fee2e2; color:#7f1d1d; }

.alert.success { background:#dcfce7; color:#14532d; }

/* GERU v1.6 visual profissional */
:root{--shadow-soft:0 14px 42px rgba(15,23,42,.10);--shadow-strong:0 24px 80px rgba(15,23,42,.22);--green:#166534;--blue:#2563eb;--amber:#d97706;--red:#dc2626}
body{background:radial-gradient(circle at top left,rgba(34,197,94,.12),transparent 34rem),radial-gradient(circle at top right,rgba(37,99,235,.10),transparent 30rem),var(--bg)}
.card{box-shadow:var(--shadow-soft)}.btn:hover{filter:brightness(.98);transform:translateY(-1px)}.btn:active{transform:translateY(0)}.muted{color:var(--muted)}
.actions{display:flex;gap:10px;flex-wrap:wrap;align-items:center}.btn-outline{background:#fff;color:#1f2937;border:1px solid var(--line)}.btn-warning{background:#f59e0b;color:#fff}
.badge{display:inline-flex;align-items:center;justify-content:center;border-radius:999px;padding:5px 9px;font-size:12px;font-weight:700;white-space:nowrap}.badge.ok{background:#dcfce7;color:#14532d}.badge.warn{background:#fef3c7;color:#92400e}.badge.off{background:#e5e7eb;color:#374151}.badge.danger{background:#fee2e2;color:#991b1b}.badge.info{background:#dbeafe;color:#1e3a8a}
.modal{position:fixed;inset:0;display:none;align-items:center;justify-content:center;padding:24px;background:rgba(15,23,42,.58);backdrop-filter:blur(7px);z-index:1000}.modal.open{display:flex}.modal-box{width:min(780px,96vw);max-height:92vh;overflow:auto;border-radius:24px;background:#fff;box-shadow:var(--shadow-strong);border:1px solid rgba(255,255,255,.72)}.modal-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;padding:20px 22px;border-bottom:1px solid var(--line);background:linear-gradient(135deg,#f8fafc,#eef2ff)}.modal-head h2{margin:0}.modal-head p{margin:5px 0 0;color:var(--muted)}.modal-close{width:38px;height:38px;display:grid;place-items:center;border:0;border-radius:12px;background:#fff;color:#334155;box-shadow:0 4px 16px rgba(15,23,42,.10);cursor:pointer}.modal-body{padding:22px}.modal-foot{display:flex;justify-content:flex-end;gap:10px;padding:16px 22px;border-top:1px solid var(--line);background:#f8fafc}
.tabs{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 16px}.tab-btn{border:1px solid var(--line);background:#fff;color:#334155;border-radius:999px;padding:9px 13px;font-weight:700;cursor:pointer}.tab-btn.active{background:#14532d;color:#fff;border-color:#14532d}
.pagination{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:14px;flex-wrap:wrap}.pagination .pages{display:flex;gap:6px;flex-wrap:wrap}.page-btn{min-width:36px;height:36px;border:1px solid var(--line);background:#fff;border-radius:10px;cursor:pointer;font-weight:700}.page-btn.active{background:#2563eb;color:#fff;border-color:#2563eb}
.code-block{width:100%;min-height:92px;padding:12px;border:1px solid var(--line);border-radius:12px;background:#f8fafc;color:#0f172a;font-family:Consolas,Monaco,monospace;font-size:13px;resize:vertical}.copy-line{display:flex;gap:8px;align-items:stretch}.copy-line input{font-family:Consolas,Monaco,monospace}
@media(max-width:720px){.modal{padding:12px;align-items:flex-end}.modal-box{width:100%;border-radius:22px 22px 0 0;max-height:94vh}.modal-foot{flex-direction:column}.modal-foot .btn{width:100%}}
/* ===============================
   GERU - MODAL PIX RESPONSIVO
================================ */

.pix-payment-grid {
  display: grid;
  grid-template-columns: minmax(290px, 320px) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.pix-qr-area {
  text-align: center;
}

.pix-qr-box {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px;
  display: inline-block;
  width: 100%;
  max-width: 300px;
  box-sizing: border-box;
}

.pix-qr-box canvas {
  display: block;
  width: 220px;
  height: 220px;
  margin: 0 auto;
  background: #ffffff;
}

.pix-help {
  margin-top: 10px;
  line-height: 1.4;
  color: var(--muted);
}

.pix-copy-area {
  min-width: 0;
}

.pix-copy-area p {
  margin: 0 0 8px;
}

.pix-copy-textarea {
  width: 100%;
  min-height: 96px;
  resize: vertical;
  box-sizing: border-box;
  overflow: auto;
  word-break: break-all;
  white-space: pre-wrap;
  font-family: Consolas, Monaco, monospace;
  font-size: 13px;
  line-height: 1.45;
}

.pix-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.pix-actions .btn {
  min-height: 42px;
}

.pix-final-help {
  margin-top: 12px;
  line-height: 1.45;
  color: var(--muted);
}

/* Celular */
@media (max-width: 760px) {
  .pix-payment-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .pix-qr-box {
    max-width: 280px;
    padding: 12px;
  }

  .pix-qr-box canvas {
    width: 220px;
    height: 220px;
  }

  .pix-copy-area {
    width: 100%;
  }

  .pix-copy-textarea {
    min-height: 116px;
    font-size: 12.5px;
  }

  .pix-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .pix-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

/* Celular bem pequeno */
@media (max-width: 380px) {
  .pix-qr-box {
    max-width: 250px;
  }

  .pix-qr-box canvas {
    width: 200px;
    height: 200px;
  }
}
