: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 - TOASTS / NOTIFICAÇÕES
================================ */
.geru-toasts {
  position: fixed;
  top: 68px;           /* abaixo da topbar */
  left: 50%;
  transform: translateX(-50%);
  width: min(480px, 92vw);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}
.geru-toast {
  pointer-events: all;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 8px 32px rgba(15,23,42,.18), 0 2px 8px rgba(15,23,42,.10);
  opacity: 0;
  transform: translateY(-12px) scale(.97);
  transition: opacity .22s ease, transform .22s ease;
}
.geru-toast.visivel {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.geru-toast.saindo {
  opacity: 0;
  transform: translateY(-10px) scale(.96);
  transition: opacity .20s ease, transform .20s ease;
}
.geru-toast-icon { font-size: 22px; line-height: 1; flex-shrink: 0; margin-top: 1px; }
.geru-toast-body { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.geru-toast-body strong { font-size: 13px; color: #0f172a; }
.geru-toast-body span  { font-size: 13px; color: #334155; line-height: 1.45; }
.geru-toast-close {
  background: none; border: none; cursor: pointer;
  color: #94a3b8; font-size: 18px; line-height: 1;
  padding: 0; flex-shrink: 0; margin-top: -2px;
  transition: color .15s;
}
.geru-toast-close:hover { color: #0f172a; }

/* Variantes por tipo */
.geru-toast-sucesso { border-left: 4px solid #16a34a; }
.geru-toast-sucesso .geru-toast-body strong { color: #14532d; }
.geru-toast-erro    { border-left: 4px solid #dc2626; }
.geru-toast-erro    .geru-toast-body strong { color: #991b1b; }
.geru-toast-aviso   { border-left: 4px solid #d97706; }
.geru-toast-aviso   .geru-toast-body strong { color: #92400e; }
.geru-toast-info    { border-left: 4px solid #2563eb; }
.geru-toast-info    .geru-toast-body strong { color: #1e3a8a; }

@media (max-width: 600px) {
  .geru-toasts { top: 56px; width: 96vw; }
}

/* ===============================
   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;
  }
}
.geru-security-alert {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 18px;
  padding: 16px 18px;
  border: 1px solid #f59e0b;
  border-radius: 16px;
  background: #fef3c7;
  color: #78350f;
  box-shadow: 0 12px 32px rgba(120, 53, 15, 0.12);
}

.geru-security-alert strong {
  display: block;
  margin-bottom: 4px;
  font-size: 17px;
  color: #78350f;
}

.geru-security-alert p {
  margin: 0;
  line-height: 1.45;
  color: #78350f;
}

.geru-security-alert .btn,
.geru-security-alert a {
  white-space: nowrap;
}

.geru-security-alert .btn-warning {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid #d97706;
  background: #f59e0b;
  color: #ffffff;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.geru-security-alert .btn-warning:hover {
  background: #d97706;
  box-shadow: 0 10px 24px rgba(217, 119, 6, 0.24);
  transform: translateY(-1px);
}

.geru-security-alert .btn-warning:active {
  transform: translateY(0);
  box-shadow: none;
}

@media (max-width: 720px) {
  .geru-security-alert {
    flex-direction: column;
    align-items: flex-start;
  }

  .geru-security-alert .btn,
  .geru-security-alert a,
  .geru-security-alert .btn-warning {
    width: 100%;
    justify-content: center;
  }
}
/* ==========================================================================
   GERU · Rodapé institucional
   ========================================================================== */

.geru-app-footer {
  margin-top: 28px;
  padding: 18px 0 4px;
  border-top: 1px solid var(--line, #e5e7eb);
  color: var(--muted, #64748b);
}

.geru-footer-main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.geru-footer-main strong {
  display: block;
  margin-bottom: 4px;
  color: var(--text, #111827);
  font-size: 15px;
}

.geru-footer-main span,
.geru-footer-main small {
  display: block;
  line-height: 1.45;
}

.geru-footer-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
}

.geru-footer-links a {
  color: var(--muted, #64748b);
  font-size: 13px;
  text-decoration: none;
  font-weight: 700;
}

.geru-footer-links a:hover {
  color: var(--primary, #2563eb);
  text-decoration: underline;
}

@media (max-width: 720px) {
  .geru-footer-main {
    flex-direction: column;
    gap: 8px;
  }

  .geru-footer-links {
    gap: 8px 12px;
  }
}