@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  --bg-deep: #0a0b10;
  --bg-navy: #0b0c13;
  --bg-panel: rgba(18, 20, 32, 0.75);
  --bg-sidebar: rgba(13, 14, 23, 0.9);
  --bg-elevated: rgba(18, 20, 32, 0.9);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(99, 102, 241, 0.35);

  --indigo: #6366f1;
  --indigo-bright: #818cf8;
  --purple: #8b5cf6;
  --purple-bright: #a78bfa;
  --blue: #3b82f6;
  --grad: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  --grad-active: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
  --grad-soft: linear-gradient(135deg, rgba(99, 102, 241, 0.22), rgba(168, 85, 247, 0.12));

  --text: #f3f4f6;
  --text-muted: #9ca3af;
  --text-dim: #6b7280;

  --success: #34d399;
  --warning: #fbbf24;
  --danger: #f43f5e;
  --info: #6366f1;

  --radius: 16px;
  --radius-sm: 12px;
  --font: "Inter", "Segoe UI", system-ui, sans-serif;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.37);
  --glass-hover-shadow: 0 12px 40px rgba(99, 102, 241, 0.12);

  /* legacy aliases */
  --gold: var(--purple-bright);
  --gold-light: #c4b5fd;
  --gold-bright: #ddd6fe;
  --bronze: #7c3aed;
}

/* Google Material Symbols */
.material-symbols-outlined {
  font-family: 'Material Symbols Outlined';
  font-weight: normal;
  font-style: normal;
  font-size: 22px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-smoothing: antialiased;
  font-variation-settings: 'FILL' 0, 'wght' 420, 'GRAD' 0, 'opsz' 24;
  user-select: none;
  vertical-align: middle;
  flex-shrink: 0;
}
.material-symbols-outlined.mi-sm { font-size: 18px; }
.material-symbols-outlined.mi-lg { font-size: 28px; }
.material-symbols-outlined.filled,
a.active > .material-symbols-outlined,
.admin-nav-item.active .material-symbols-outlined {
  font-variation-settings: 'FILL' 1, 'wght' 500, 'GRAD' 0, 'opsz' 24;
}

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

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  font-family: var(--font);
  background: var(--bg-navy);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection {
  background: #6366f1;
  color: #fff;
}

/* Scrollbar (mockup) */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #0f1019; }
::-webkit-scrollbar-thumb { background: #25283a; border-radius: 9999px; }
::-webkit-scrollbar-thumb:hover { background: #3b3f58; }

/* Ambient glow */
.ambient-glow-1,
.ambient-glow-2 {
  position: fixed;
  z-index: 0;
  pointer-events: none;
  border-radius: 50%;
}
.ambient-glow-1 {
  top: -10%;
  left: 15%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
}
.ambient-glow-2 {
  bottom: -10%;
  right: 10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.12) 0%, transparent 70%);
}

/* Glass card system */
.glass-card,
.panel,
.kpi-card,
.chart-panel,
.admin-panel,
.admin-kpi,
.admin-user-card,
.modal {
  background: rgba(18, 20, 32, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  box-shadow: var(--glass-shadow);
}
.glass-card,
.panel,
.kpi-card,
.chart-panel,
.admin-panel,
.admin-user-card {
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.kpi-card:hover,
.chart-panel:hover,
.panel:hover,
.admin-user-card:hover {
  border-color: rgba(99, 102, 241, 0.3);
  box-shadow: var(--glass-hover-shadow);
}

a { color: var(--indigo-bright); text-decoration: none; }
a:hover { color: #c7d2fe; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }

/* ---------- Auth split (login / cadastro) ---------- */
.auth-page {
  --auth-ink: #f3f4f6;
  --auth-muted: #94a3b8;
  --auth-line: rgba(255, 255, 255, 0.1);
  --auth-panel: #0b0c13;
  --auth-card: rgba(18, 20, 32, 0.92);
  --auth-accent: #8b5cf6;
  --auth-accent-2: #6366f1;
  --auth-hero: #0a0b14;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  background: var(--auth-panel);
  color: var(--auth-ink);
  font-family: "Sora", "Segoe UI", sans-serif;
  overflow-x: hidden;
}

.auth-split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  min-height: 100vh;
  min-height: 100dvh;
}

.auth-hero {
  position: relative;
  background:
    radial-gradient(ellipse 80% 60% at 20% 15%, rgba(139, 92, 246, 0.28), transparent 55%),
    radial-gradient(ellipse 70% 50% at 85% 80%, rgba(99, 102, 241, 0.22), transparent 50%),
    linear-gradient(160deg, #070812 0%, #12122a 45%, #0a0b14 100%);
  color: #f8fafc;
  overflow: hidden;
  display: flex;
  align-items: stretch;
  padding: clamp(2rem, 4vw, 3.5rem);
}

.auth-hero-photo {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
  transform: scale(1.02);
}
.auth-hero.has-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(8, 8, 18, 0.55) 0%, rgba(8, 8, 18, 0.35) 40%, rgba(8, 8, 18, 0.82) 100%),
    linear-gradient(90deg, rgba(76, 29, 149, 0.35), transparent 55%);
  pointer-events: none;
}

.auth-hero-inner {
  position: relative;
  z-index: 3;
  max-width: 36rem;
  width: 100%;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
  animation: authRise 0.7s ease-out both;
}
.auth-hero-top .auth-brand-mark {
  margin-bottom: 2rem;
}

@keyframes authRise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.auth-brand-mark {
  display: block;
  margin-bottom: 2.25rem;
}
.auth-brand-mark img {
  display: block;
  width: 150px;
  height: 50px;
  object-fit: contain;
  filter: drop-shadow(0 8px 20px rgba(139, 92, 246, 0.4));
}
.branding-preview {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.branding-preview img {
  border-radius: 10px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.04);
}
.branding-sidebar-preview {
  padding: 1rem 1.15rem;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border);
  max-width: 280px;
}

.auth-hero-inner h1 {
  margin: 0 0 1rem;
  font-family: "Outfit", "Sora", sans-serif;
  font-size: clamp(1.65rem, 3.2vw, 2.35rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #fff;
}
.auth-hero-inner p {
  margin: 0;
  color: rgba(203, 213, 225, 0.92);
  font-size: 1rem;
  line-height: 1.65;
  max-width: 40ch;
}

.auth-features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: auto;
  padding-top: 1rem;
}
.auth-feature {
  display: flex;
  gap: 0.7rem;
  align-items: center;
  min-width: 0;
}
.auth-feature-icon {
  box-sizing: border-box;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin: 0;
  padding: 0;
  line-height: 0 !important;
  font-size: 0 !important;
  background: rgba(139, 92, 246, 0.22);
  border: 1px solid rgba(167, 139, 250, 0.28);
  color: #ddd6fe;
}
.auth-feature-icon .material-symbols-outlined {
  font-size: 20px !important;
  line-height: 1 !important;
  width: 20px;
  height: 20px;
  display: block !important;
  margin: 0;
  padding: 0;
  color: inherit;
  font-variation-settings: 'FILL' 0, 'wght' 420, 'GRAD' 0, 'opsz' 20;
}
.auth-feature-copy {
  min-width: 0;
}
.auth-feature-copy strong {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.15rem;
}
.auth-feature-copy span {
  display: block;
  font-size: 0.72rem;
  line-height: 1.4;
  color: rgba(203, 213, 225, 0.78);
}

.auth-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: clamp(1.5rem, 4vw, 3rem) 1.25rem;
  background:
    radial-gradient(ellipse 60% 40% at 80% 0%, rgba(139, 92, 246, 0.1), transparent 55%),
    var(--auth-panel);
  animation: authRise 0.55s ease-out 0.08s both;
  border-left: 1px solid rgba(255, 255, 255, 0.05);
}
.auth-panel-scroll {
  justify-content: flex-start;
  padding-top: 2rem;
  padding-bottom: 2.5rem;
  overflow-y: auto;
}

.auth-welcome {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1.1rem;
  color: var(--auth-muted);
  font-size: 0.92rem;
}
.auth-welcome strong { color: #c4b5fd; font-weight: 700; }

.auth-page .auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--auth-card);
  border: 1px solid rgba(139, 92, 246, 0.28);
  border-radius: 18px;
  padding: 1.75rem 1.5rem 1.5rem;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.2),
    0 18px 40px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.02) inset;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  overflow: hidden;
}
.auth-page .auth-card-register {
  max-width: 420px;
  padding: 1.5rem 1.35rem 1.35rem;
}
.auth-page .auth-form {
  width: 100%;
  max-width: 100%;
}
.auth-page .auth-form .field {
  width: 100%;
  max-width: 100%;
  margin-bottom: 0.85rem;
}
.auth-page .auth-form .btn-auth {
  margin-top: 0.35rem;
}

.auth-page .auth-card h2 {
  margin: 0 0 1.25rem;
  font-family: "Outfit", "Sora", sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
  text-align: center;
}

.auth-page .field { margin-bottom: 0.95rem; }
.auth-page .field-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: #94a3b8;
  margin-bottom: 0.4rem;
}
.auth-page .field-label-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
}
.auth-page .field-hint {
  margin: 0.35rem 0 0;
  font-size: 0.72rem;
  color: var(--auth-muted);
}

.auth-page .input-wrap {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  background: rgba(10, 11, 18, 0.72);
  border: 1px solid var(--auth-line);
  border-radius: 12px;
  padding: 0.72rem 0.85rem;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.auth-page .input-wrap:focus-within {
  background: rgba(15, 16, 28, 0.95);
  border-color: rgba(139, 92, 246, 0.55);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
}
.auth-page .input-wrap svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  stroke: #64748b;
  fill: none;
  stroke-width: 1.8;
}
.auth-page .input-wrap:focus-within svg { stroke: var(--auth-accent); }
.auth-page .input-wrap input,
.auth-page .input-wrap textarea {
  flex: 1;
  background: transparent;
  border: 0;
  outline: 0;
  color: #f3f4f6;
  min-width: 0;
  font-size: 0.95rem;
  font-family: inherit;
  resize: vertical;
}
.auth-page .input-wrap input::placeholder,
.auth-page .input-wrap textarea::placeholder { color: #64748b; }
.auth-page .input-wrap .toggle-pass {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  color: #64748b;
  display: flex;
}
.auth-page .input-wrap .toggle-pass:hover { color: var(--auth-accent); }

.auth-grid-2 {
  display: block;
}
.auth-grid-2 .field {
  margin-bottom: 0.85rem;
}

.auth-check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.15rem 0 1.1rem;
  font-size: 0.85rem;
  color: #94a3b8;
  cursor: pointer;
  user-select: none;
}
.auth-check input {
  width: 1rem;
  height: 1rem;
  accent-color: var(--auth-accent);
}

.btn-auth {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  border: 0;
  border-radius: 12px;
  padding: 0.9rem 1.25rem;
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(90deg, #6366f1 0%, #8b5cf6 55%, #a855f7 100%);
  box-shadow: 0 10px 24px rgba(139, 92, 246, 0.35);
  transition: filter 0.15s, transform 0.15s;
}
.btn-auth:hover { filter: brightness(1.06); }
.btn-auth:active { transform: scale(0.985); }

.btn-auth-ghost {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  padding: 0.85rem 1.25rem;
  font-weight: 600;
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--auth-line);
  cursor: pointer;
}
.btn-auth-ghost:hover { background: rgba(255, 255, 255, 0.1); }

.auth-footer {
  margin: 1.25rem 0 0;
  font-size: 0.9rem;
  color: var(--auth-muted);
  text-align: center;
}
.auth-footer a {
  color: #c4b5fd;
  font-weight: 700;
}
.auth-footer a:hover { color: #ddd6fe; }

.auth-pending-text {
  margin: 0;
  color: var(--auth-muted);
  line-height: 1.55;
  font-size: 0.92rem;
}
.auth-pending-text strong { color: #fff; }

.auth-page .alert {
  border-radius: 12px;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  font-size: 0.88rem;
  text-align: left;
}
.auth-page .alert-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
}
.auth-page .alert-success {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
}
.auth-page .alert-info {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1d4ed8;
}

.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.field { margin-bottom: 1rem; }
.field-label { display: block; font-size: 0.8rem; color: var(--text-muted); margin-bottom: 0.35rem; }
.field-label .opt { font-weight: 400; opacity: 0.7; }
.field-hint { margin: 0.35rem 0 0; font-size: 0.75rem; color: var(--text-muted); }

.input-wrap {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: rgba(7, 9, 15, 0.75);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.9rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.input-wrap:focus-within {
  border-color: rgba(99, 102, 241, 0.5);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}
.input-wrap svg { width: 18px; height: 18px; flex-shrink: 0; stroke: var(--purple-bright); fill: none; stroke-width: 1.8; }
.input-wrap input,
.input-wrap textarea {
  flex: 1;
  background: transparent;
  border: 0;
  outline: 0;
  color: var(--text);
  min-width: 0;
  font: inherit;
  resize: vertical;
}
.input-wrap input::placeholder,
.input-wrap textarea::placeholder { color: #4b5563; }
.input-wrap .toggle-pass { background: none; border: 0; padding: 0; cursor: pointer; color: var(--purple-bright); display: flex; }

.field-row { display: flex; justify-content: flex-end; margin: -0.35rem 0 1.1rem; }
.field-row a { font-size: 0.82rem; }

@media (max-width: 900px) {
  .auth-page {
    background: var(--auth-panel);
  }
  .auth-split {
    display: flex;
    flex-direction: column;
    grid-template-columns: none;
    min-height: 100vh;
    min-height: 100dvh;
  }

  /* Hero compacto só com marca + texto curto */
  .auth-hero {
    min-height: 0;
    flex: 0 0 auto;
    align-items: stretch;
    padding:
      calc(1.1rem + env(safe-area-inset-top, 0px))
      1.15rem
      1.15rem;
  }
  .auth-hero.has-photo::before {
    background:
      linear-gradient(180deg, rgba(8, 8, 18, 0.45) 0%, rgba(8, 8, 18, 0.72) 100%),
      linear-gradient(90deg, rgba(76, 29, 149, 0.28), transparent 70%);
  }
  .auth-hero-photo {
    background-position: center 28%;
  }
  .auth-hero-inner {
    gap: 0;
    min-height: 0;
    justify-content: flex-start;
  }
  .auth-hero-top .auth-brand-mark,
  .auth-brand-mark {
    margin-bottom: 0.85rem;
  }
  .auth-brand-mark img {
    width: 118px;
    height: 40px;
  }
  .auth-hero-inner h1 {
    font-size: 1.28rem;
    line-height: 1.25;
    margin-bottom: 0.45rem;
  }
  .auth-hero-inner p {
    font-size: 0.82rem;
    line-height: 1.45;
    max-width: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .auth-features {
    display: none;
  }

  /* Formulário em foco */
  .auth-panel,
  .auth-panel-scroll {
    flex: 1 1 auto;
    justify-content: flex-start;
    align-items: stretch;
    padding: 1rem 1rem calc(1.5rem + env(safe-area-inset-bottom, 0px));
    border-left: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background:
      radial-gradient(ellipse 80% 40% at 50% 0%, rgba(139, 92, 246, 0.12), transparent 55%),
      var(--auth-panel);
  }
  .auth-welcome {
    justify-content: center;
    margin: 0 0 0.95rem;
    font-size: 0.88rem;
  }
  .auth-page .auth-card,
  .auth-page .auth-card-register {
    max-width: none;
    width: 100%;
    margin: 0 auto;
    border-radius: 16px;
    padding: 1.35rem 1.1rem 1.2rem;
  }
  .auth-page .auth-card h2 {
    font-size: 1.2rem;
    margin-bottom: 1.1rem;
  }
  .auth-page .field {
    margin-bottom: 0.85rem;
  }
  .auth-page .field-label {
    font-size: 0.78rem;
  }
  .auth-page .input-wrap {
    padding: 0.78rem 0.85rem;
    border-radius: 12px;
  }
  .auth-check {
    margin: 0.1rem 0 1rem;
  }
  .btn-auth {
    padding: 0.95rem 1.15rem;
    border-radius: 12px;
    min-height: 48px;
  }
  .auth-footer {
    margin: 1.15rem 0 0.25rem;
    font-size: 0.86rem;
  }
}

@media (max-width: 480px) {
  .auth-hero {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .auth-panel,
  .auth-panel-scroll {
    padding-left: 0.85rem;
    padding-right: 0.85rem;
  }
  .auth-hero-inner h1 {
    font-size: 1.15rem;
  }
  .auth-page .auth-card,
  .auth-page .auth-card-register {
    padding: 1.2rem 0.95rem 1.1rem;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 0;
  border-radius: var(--radius-sm);
  padding: 0.85rem 1.25rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s, filter 0.15s, opacity 0.15s;
}
.btn:active { transform: scale(0.98); }

.btn-primary {
  color: #fff;
  background: var(--grad);
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
}
.btn-primary:hover {
  opacity: 0.92;
  filter: none;
  box-shadow: 0 0 25px rgba(99, 102, 241, 0.5);
  transform: translateY(-1px);
}
.btn-ghost {
  color: #d1d5db;
  background: rgba(18, 20, 32, 0.65);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
}
.btn-ghost:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
}
.btn-sm {
  padding: 0.55rem 0.95rem;
  font-size: 0.8rem;
  border-radius: 12px;
}
.btn-danger {
  color: #fff;
  background: linear-gradient(135deg, #f43f5e, #e11d48);
  box-shadow: 0 4px 16px rgba(244, 63, 94, 0.28);
}
.btn-block { width: 100%; }

/* PIN square boxes */
.pin-boxes { width: 100%; }
.pin-boxes-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.45rem;
}
.pin-box {
  aspect-ratio: 1;
  width: 100%;
  min-height: 46px;
  text-align: center;
  font-size: 1.25rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #fff;
  background: rgba(0, 0, 0, 0.35);
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  outline: none;
  caret-color: var(--purple-bright);
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.pin-box:hover { border-color: rgba(139, 92, 246, 0.35); }
.pin-box:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.22);
  background: rgba(124, 58, 237, 0.08);
}
.pin-box.filled {
  border-color: rgba(139, 92, 246, 0.45);
  background: rgba(124, 58, 237, 0.12);
}
.pin-boxes.pin-error .pin-box {
  border-color: rgba(239, 68, 68, 0.55);
  animation: pin-shake 0.35s ease;
}
@keyframes pin-shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-3px); }
  75% { transform: translateX(3px); }
}
.pin-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin: 0 auto 0.85rem;
  color: var(--purple-bright);
  background: var(--grad-soft);
  border: 1px solid rgba(139, 92, 246, 0.25);
}
.profile-pin-card { text-align: center; }
.profile-pin-card .locked-item { text-align: left; }
.pin-modal-form .field { margin-bottom: 0.35rem; }

@media (max-width: 420px) {
  .pin-boxes-row { gap: 0.3rem; }
  .pin-box { min-height: 40px; font-size: 1.1rem; border-radius: 10px; }
}

.btn-ghost {
  color: #d1d5db;
  background: rgba(18, 20, 32, 0.65);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
}
.btn-ghost:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
}

.btn-danger {
  color: #fff;
  background: linear-gradient(135deg, #f43f5e, #e11d48);
  border: 0;
  box-shadow: 0 4px 16px rgba(244, 63, 94, 0.28);
}

.btn-sm { padding: 0.55rem 0.95rem; font-size: 0.8rem; width: auto; border-radius: 12px; }
.btn-primary.btn-sm, .btn-ghost.btn-sm { width: auto; }

.auth-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  margin-top: 1.25rem;
  font-size: 0.9rem;
}

.alert {
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}
.alert-error { background: rgba(239, 68, 68, 0.12); border: 1px solid rgba(239, 68, 68, 0.3); color: #fecaca; }
.alert-success { background: rgba(34, 197, 94, 0.12); border: 1px solid rgba(34, 197, 94, 0.3); color: #bbf7d0; }
.alert-info { background: rgba(139, 92, 246, 0.12); border: 1px solid rgba(139, 92, 246, 0.3); color: #ddd6fe; }

.page-loader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  background: rgba(7, 9, 15, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}
.page-loader.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.ios-spinner {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.18);
  border-top-color: #fff;
  animation: ios-spin 0.75s linear infinite;
}
@keyframes ios-spin {
  to { transform: rotate(360deg); }
}

.modal.modal-confirm {
  width: min(360px, 100%);
  text-align: center;
  padding: 1.35rem 1.25rem 1.2rem;
}
.modal-confirm h3 {
  margin: 0 0 0.45rem;
  color: #fff;
  font-size: 1.1rem;
}
.modal-confirm #confirm-msg {
  margin: 0 0 1.15rem;
  font-size: 0.9rem;
  line-height: 1.45;
}
.confirm-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}
.confirm-actions .btn { width: 100%; }

.toast-stack {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  width: min(360px, calc(100vw - 1.5rem));
  pointer-events: none;
}
.toast {
  pointer-events: auto;
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.85rem 0.95rem;
  border-radius: 12px;
  background: #151921;
  border: 1px solid var(--border);
  box-shadow: 0 16px 40px rgba(0,0,0,0.45);
  color: #e5e7eb;
  font-size: 0.88rem;
  line-height: 1.4;
  animation: toast-in 0.28s ease;
}
.toast-msg { flex: 1; }
.toast-close {
  background: transparent;
  border: 0;
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}
.toast-close:hover { color: #fff; }
.toast-success { border-color: rgba(34, 197, 94, 0.4); box-shadow: 0 16px 40px rgba(0,0,0,0.45), 0 0 0 1px rgba(34,197,94,0.12); }
.toast-success .toast-msg { color: #bbf7d0; }
.toast-error { border-color: rgba(239, 68, 68, 0.4); }
.toast-error .toast-msg { color: #fecaca; }
.toast-info { border-color: rgba(139, 92, 246, 0.4); }
.toast-info .toast-msg { color: #ddd6fe; }
.auth-page .toast {
  background: #0f172a;
  border: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.35);
}
.auth-page .toast-error {
  border-color: rgba(248, 113, 113, 0.45);
  background: linear-gradient(180deg, #1c1214 0%, #0f172a 100%);
}
.auth-page .toast-error .toast-msg { color: #fecaca; }
.auth-page .toast-success {
  border-color: rgba(74, 222, 128, 0.4);
}
.auth-page .toast-success .toast-msg { color: #bbf7d0; }
.toast.hiding { animation: toast-out 0.22s ease forwards; }
@keyframes toast-in {
  from { opacity: 0; transform: translateX(18px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes toast-out {
  to { opacity: 0; transform: translateX(18px); }
}
@media (max-width: 720px) {
  .toast-stack { top: auto; bottom: calc(88px + var(--safe-bottom)); right: 0.75rem; left: 0.75rem; width: auto; }
}

/* ---------- App shell LivePay ---------- */
.app-body {
  min-height: 100vh;
  background: var(--bg-navy);
  position: relative;
}
.app-layout {
  min-height: 100vh;
  min-height: 100dvh;
  position: relative;
  z-index: 1;
}

.sidebar {
  background: var(--bg-sidebar);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  padding: 1.25rem 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  position: fixed;
  left: 0;
  top: 0;
  width: 260px;
  height: 100vh;
  height: 100dvh;
  z-index: 30;
  overflow-y: auto;
  overflow-x: hidden;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0.15rem 0.35rem 1.15rem;
}
.sidebar-brand img,
.sidebar-brand-logo {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 44px;
  border-radius: 0;
  object-fit: contain;
  object-position: left center;
}
.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  color: #fff;
  background: var(--grad-active);
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
  flex-shrink: 0;
}
.sidebar-brand span {
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  background: none;
  -webkit-background-clip: unset;
}
.sidebar-brand .brand-sub {
  display: block;
  font-size: 0.65rem;
  color: var(--indigo-bright);
  letter-spacing: 0.14em;
  font-weight: 700;
  background: none;
  -webkit-background-clip: unset;
  text-transform: uppercase;
}
.sidebar-brand > div {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.nav-section {
  font-size: 0.625rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #6b7280;
  padding: 0.95rem 0.85rem 0.35rem;
  font-weight: 700;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.nav-list a {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.65rem 0.85rem;
  border-radius: 12px;
  color: #9ca3af;
  font-size: 0.875rem;
  font-weight: 500;
  transition: background 0.15s, color 0.15s, box-shadow 0.15s;
}
.nav-list a:hover { background: rgba(255,255,255,0.05); color: #fff; }
.nav-list a.active {
  background: var(--grad-active);
  color: #fff;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
}
.nav-list a.active .material-symbols-outlined {
  font-variation-settings: 'FILL' 1, 'wght' 500, 'GRAD' 0, 'opsz' 22;
}
.nav-list svg,
.nav-list .material-symbols-outlined {
  width: 18px;
  height: 18px;
  font-size: 18px;
  flex-shrink: 0;
}
.nav-list svg {
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
}

.help-card {
  margin-top: auto;
  margin-bottom: 0.75rem;
  background: linear-gradient(to bottom, rgba(2, 44, 34, 0.2), transparent);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 16px;
  padding: 1rem;
  position: relative;
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(12px);
}
.help-card .help-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
  margin-bottom: 0.65rem;
}
.help-card .help-icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
}
.help-card .help-icon .material-symbols-outlined {
  font-size: 20px;
  line-height: 1;
}
.help-card strong { display: block; font-size: 0.9rem; margin-bottom: 0.25rem; color: #fff; }
.help-card p { margin: 0 0 0.65rem; font-size: 0.78rem; color: var(--text-muted); }
.help-card a { font-size: 0.8rem; font-weight: 600; color: #34d399; }
.help-card a:hover { color: #6ee7b7; }
.help-live {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.7rem;
  font-weight: 600;
  color: #34d399;
  margin-bottom: 0.35rem;
}
.help-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.2);
  animation: pulse-dot 2s ease infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}
.help-card-wa .help-icon {
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
}
.sidebar .btn-ghost {
  border-radius: 12px;
}
.sidebar .btn-ghost:hover {
  background: rgba(244, 63, 94, 0.1);
  border-color: rgba(244, 63, 94, 0.3);
  color: #fb7185;
}
.help-card-wa .help-icon svg {
  fill: currentColor;
  stroke: none;
}

.main-area {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 100vh;
  min-height: 100dvh;
  margin-left: 260px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.75rem;
  position: relative;
  z-index: 20;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(11, 12, 19, 0.8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
}
.topbar-brand {
  display: none;
  flex-shrink: 0;
}
.topbar-brand img {
  display: block;
  height: 28px;
  width: auto;
  max-width: 112px;
  object-fit: contain;
}
.topbar-titles {
  min-width: 0;
}
.topbar-left h1 {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.topbar-left .crumb {
  margin: 0.25rem 0 0;
  font-size: 0.75rem;
  color: var(--text-dim);
}
.topbar-left .crumb a { color: var(--text-muted); }
.topbar-left .subtitle {
  margin: 0.2rem 0 0;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}
.topbar-mobile-only {
  display: none !important;
}
.topbar-withdraw-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.mobile-only-cards { display: none; }
.tx-cards {
  gap: 0.7rem;
  padding: 0 0.15rem 0.15rem;
}
.tx-card {
  display: grid;
  gap: 0.55rem;
  padding: 0.9rem 0.95rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(18, 20, 32, 0.72);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
}
.tx-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.tx-card-desc {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.4;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tx-card-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem;
}
.tx-card-bottom strong {
  font-size: 1.05rem;
  font-weight: 800;
}
.tx-card-meta {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  font-size: 0.72rem;
}
.tx-card-bottom > .tx-card-meta:last-child {
  align-items: flex-end;
  text-align: right;
}
.tx-card-ref {
  font-size: 0.7rem;
  word-break: break-all;
  margin-top: -0.25rem;
}
.tx-card-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.45rem;
  padding: 0.55rem 0.6rem;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.tx-card-stats > div {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}
.tx-card-stats span {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.tx-card-stats strong {
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.25rem 0.7rem 0.25rem 0.25rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(18, 20, 32, 0.65);
  font-size: 0.8rem;
  color: var(--text-muted);
  text-decoration: none;
}
.user-chip .avatar {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: var(--grad);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  object-fit: cover;
  flex-shrink: 0;
  ring: none;
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.4);
}
.user-chip-meta {
  display: none;
  flex-direction: column;
  line-height: 1.15;
}
.user-chip-meta strong {
  font-size: 0.75rem;
  color: #fff;
  font-weight: 700;
}
.user-chip-meta span {
  font-size: 0.625rem;
  color: #34d399;
  font-weight: 500;
}
@media (min-width: 640px) {
  .user-chip-meta { display: flex; }
}

.content {
  padding: 1.25rem 1.75rem 2rem;
  width: 100%;
}

/* KPI cards */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1.15rem;
}

.kpi-card {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  padding: 1.25rem 1.25rem;
}
.kpi-card::after {
  content: "";
  position: absolute;
  right: -1rem;
  top: -1rem;
  width: 6rem;
  height: 6rem;
  border-radius: 50%;
  background: rgba(99, 102, 241, 0.1);
  filter: blur(24px);
  pointer-events: none;
  transition: background 0.2s;
}
.kpi-card:hover::after { background: rgba(99, 102, 241, 0.2); }
.kpi-card .kpi-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
}
.kpi-card .kpi-icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: rgba(99, 102, 241, 0.1);
  color: var(--indigo-bright);
  border: 1px solid rgba(99, 102, 241, 0.2);
  box-shadow: none;
}
.kpi-card .kpi-icon svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.kpi-card .kpi-icon .material-symbols-outlined { font-size: 18px; }
.kpi-card .kpi-icon.purple {
  background: rgba(99, 102, 241, 0.1);
  color: #818cf8;
  border-color: rgba(99, 102, 241, 0.2);
  box-shadow: none;
}
.kpi-card .kpi-icon.blue {
  background: rgba(59, 130, 246, 0.1);
  color: #60a5fa;
  border-color: rgba(59, 130, 246, 0.2);
  box-shadow: none;
}
.kpi-card .kpi-icon.teal {
  background: rgba(16, 185, 129, 0.1);
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.2);
  box-shadow: none;
}
.kpi-card .kpi-icon.orange {
  background: rgba(245, 158, 11, 0.1);
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.2);
  box-shadow: none;
}
.kpi-card .kpi-icon.green {
  background: rgba(16, 185, 129, 0.1);
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.2);
  box-shadow: none;
}
.kpi-card .kpi-value {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: #fff;
}
.kpi-card .kpi-sub { margin-top: 0.35rem; font-size: 0.75rem; color: var(--text-dim); font-weight: 500; }
.kpi-card.accent {
  border-color: rgba(99, 102, 241, 0.25);
}

.dash-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1.15rem;
}
.dash-toolbar .btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.dash-toolbar .btn svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
}

.charts-grid {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 1rem;
  margin-bottom: 1.15rem;
}

.chart-panel, .panel {
  border-radius: 16px;
  padding: 1.25rem 1.35rem;
  margin-bottom: 1rem;
}
.panel {
  overflow: hidden;
}
.panel > .table-wrap {
  margin: 0 -1.35rem -1.25rem;
}
.panel > .table-wrap table.data th:first-child,
.panel > .table-wrap table.data td:first-child { padding-left: 1.35rem; }
.panel > .table-wrap table.data th:last-child,
.panel > .table-wrap table.data td:last-child { padding-right: 1.35rem; }

.chart-panel h2, .panel h2 {
  margin: 0 0 0.85rem;
  font-size: 1rem;
  color: #fff;
  font-weight: 700;
}

.chart-wrap { position: relative; height: 260px; }
.chart-wrap.sm { height: 220px; }

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}
.panel-head h2 { margin: 0; }

.panel-head.with-chart-period,
.admin-panel-head.with-chart-period {
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.chart-period-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  padding: 0.25rem;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border);
}
.chart-period {
  padding: 0.35rem 0.75rem;
  border: 0;
  border-radius: 8px;
  font-size: 0.6875rem;
  font-weight: 600;
  color: #9ca3af;
  background: transparent;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.chart-period:hover { color: #fff; }
.chart-period.active {
  color: #fff;
  background: rgba(99, 102, 241, 0.55);
  box-shadow: 0 2px 10px rgba(99, 102, 241, 0.25);
}

.tabs {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.65rem;
}
.tab {
  padding: 0.45rem 0.9rem;
  border-radius: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
  border: 1px solid transparent;
}
.tab:hover { color: #e5e7eb; }
.tab.active {
  color: #fff;
  background: rgba(139, 92, 246, 0.18);
  border-color: rgba(139, 92, 246, 0.3);
}
.tab .count {
  display: inline-block;
  margin-left: 0.35rem;
  background: rgba(0,0,0,0.35);
  padding: 0.05rem 0.4rem;
  border-radius: 999px;
  font-size: 0.72rem;
}

.table-wrap { overflow-x: auto; }
table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
table.data th, table.data td {
  text-align: left;
  padding: 0.95rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  vertical-align: middle;
}
table.data th {
  color: #9ca3af;
  font-weight: 600;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: rgba(0, 0, 0, 0.2);
}
table.data tr:hover td { background: rgba(255, 255, 255, 0.02); }
table.data .mono,
.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.75rem;
  color: #9ca3af;
}
.panel-muted {
  font-weight: 400;
  color: #9ca3af;
  font-size: 0.85rem;
}
.text-ok { color: #34d399; font-weight: 600; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 600;
  border: 1px solid transparent;
}
.badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.badge-pending, .badge-processing {
  background: rgba(245, 158, 11, 0.1);
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.2);
}
.badge-completed, .badge-paid, .badge-approved {
  background: rgba(16, 185, 129, 0.1);
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.2);
}
.badge-failed, .badge-rejected, .badge-blocked, .badge-cancelled {
  background: rgba(244, 63, 94, 0.1);
  color: #fb7185;
  border-color: rgba(244, 63, 94, 0.2);
}

.type-pill {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  border-radius: 8px;
  font-size: 0.6875rem;
  font-weight: 600;
  border: 1px solid transparent;
}
.type-pill.sale, .type-pill.deposit, .type-pill.recebimento, .type-pill.recv {
  background: rgba(168, 85, 247, 0.1);
  color: #c084fc;
  border-color: rgba(168, 85, 247, 0.2);
}
.type-pill.withdraw, .type-pill.saque, .type-pill.wd {
  background: rgba(59, 130, 246, 0.1);
  color: #60a5fa;
  border-color: rgba(59, 130, 246, 0.2);
}
.type-pill.fee {
  background: rgba(245, 158, 11, 0.1);
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.2);
}

.actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.form-grid { display: grid; gap: 0.85rem; }
.form-grid.two { grid-template-columns: 1fr 1fr; }

.pix-box {
  background: rgba(0, 0, 0, 0.35);
  border: 1px dashed rgba(139, 92, 246, 0.35);
  border-radius: 12px;
  padding: 1rem;
  word-break: break-all;
  font-size: 0.8rem;
  color: #c4b5fd;
  margin: 1rem 0;
}

.qr-placeholder {
  width: 200px;
  height: 200px;
  margin: 1rem auto;
  background: #fff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #333;
  font-size: 0.75rem;
  text-align: center;
  padding: 1rem;
}

.filters-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.85rem;
  margin-bottom: 1rem;
}
.filters-bar .search {
  flex: 1;
  min-width: 220px;
}
.filters-bar select, .filters-bar .search input {
  width: 100%;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.65rem 0.85rem;
  color: var(--text);
  outline: none;
}
.filters-bar select { width: auto; min-width: 140px; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}
.product-card {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.product-card .cover {
  height: 120px;
  background: linear-gradient(135deg, #1e1b4b, #0f172a);
  background-size: cover;
  background-position: center;
  position: relative;
}
.product-card .thumb {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  object-fit: cover;
  border: 2px solid rgba(139, 92, 246, 0.45);
  position: absolute;
  left: 1rem;
  bottom: -22px;
  background: #111;
}
.product-card .body {
  padding: 1.75rem 1rem 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.product-card h3 { margin: 0 0 0.35rem; font-size: 1rem; }
.price-row { display: flex; align-items: baseline; gap: 0.5rem; margin: 0.5rem 0; }
.price-row .now { font-size: 1.2rem; font-weight: 700; color: #fff; }
.price-row .was { font-size: 0.85rem; color: var(--text-dim); text-decoration: line-through; }
.discount-tag {
  display: inline-block;
  font-size: 0.7rem;
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
  background: rgba(34, 197, 94, 0.15);
  color: #86efac;
}

.prod-thumb-cell {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.prod-thumb-cell img {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  object-fit: cover;
  background: #111;
}
.prod-cards {
  gap: 0.75rem;
  padding: 0 0.15rem 0.15rem;
}
.prod-card {
  display: grid;
  gap: 0.75rem;
  padding: 0.95rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(18, 20, 32, 0.72);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
}
.prod-card-head {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 0.7rem;
  align-items: start;
}
.prod-card-img {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  object-fit: cover;
  background: #111;
}
.prod-card-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}
.prod-card-info strong {
  font-size: 0.9rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.prod-card-info .muted {
  font-size: 0.72rem;
}
.prod-card-info .cat-tag {
  width: fit-content;
  margin-top: 0.15rem;
}
.prod-card-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.45rem;
  padding: 0.55rem 0.6rem;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.prod-card-stats > div {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  min-width: 0;
}
.prod-card-stats span {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.prod-card-stats strong {
  font-size: 0.84rem;
  font-weight: 700;
}
.prod-card-stats em {
  font-style: normal;
  font-size: 0.68rem;
  text-decoration: line-through;
}
.prod-card-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem;
}
.cat-tag {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 8px;
  font-size: 0.72rem;
  font-weight: 600;
  background: rgba(139, 92, 246, 0.12);
  color: #c4b5fd;
}
.cat-tag.ebooks, .cat-tag.e-books { background: rgba(139, 92, 246, 0.14); color: #c4b5fd; }
.cat-tag.cursos { background: rgba(59, 130, 246, 0.14); color: #93c5fd; }
.cat-tag.templates { background: rgba(249, 115, 22, 0.14); color: #fdba74; }

.icon-btn {
  width: 32px;
  height: 32px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text-muted);
  cursor: pointer;
  padding: 0;
}
.icon-btn:hover { color: #fff; border-color: rgba(139, 92, 246, 0.4); }
.icon-btn svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 1.7; }

.topbar-actions .btn svg,
.topbar-actions .btn .material-symbols-outlined {
  width: 18px;
  height: 18px;
  font-size: 18px;
  line-height: 1;
}
.topbar-actions .btn svg {
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
}

.panel-head.with-filters {
  align-items: stretch;
  flex-wrap: wrap;
}
.panel-head.with-filters .filters-bar {
  flex: 1;
  min-width: 280px;
  margin-bottom: 0;
}

.panel-stats {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: var(--text-dim);
}
.panel-stats .stat-ok { color: #86efac; }
.panel-stats .stat-pending { color: #93c5fd; }

.chart-legend-hint {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 0.75rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}
.chart-legend-hint span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.chart-legend-hint i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.offer-row {
  display: none;
}
.offer-row input {
  width: 100%;
  background: rgba(7, 9, 15, 0.75);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.5rem 0.6rem;
  color: var(--text);
}
.product-upsell-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.85rem;
  margin-bottom: 0.85rem;
}
.product-upsell-head h4 {
  margin: 0 0 0.25rem;
}
.product-upsell-head .muted {
  margin: 0;
}
.offers-list {
  display: grid;
  gap: 0.85rem;
}
.offer-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(7, 9, 15, 0.35);
  overflow: hidden;
}
.offer-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(139, 92, 246, 0.08);
}
.offer-card-head strong {
  font-size: 0.9rem;
}
.offer-card-body {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1rem;
  padding: 0.95rem;
}
.offer-card-media {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.offer-card-fields {
  display: grid;
  gap: 0.75rem;
}
@media (max-width: 720px) {
  .offer-card-body {
    grid-template-columns: 1fr;
  }
  .product-upsell-head {
    flex-direction: column;
  }
}

.docs-block { margin-bottom: 1.25rem; }
.docs-block pre, .code-block {
  background: #07090f;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem;
  overflow-x: auto;
  font-size: 0.78rem;
  line-height: 1.55;
  color: #c4b5fd;
  white-space: pre-wrap;
}

.profile-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 1rem;
}
.avatar-preview {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(139, 92, 246, 0.4);
  background: #111;
}

.empty {
  text-align: center;
  padding: 2.75rem 1rem 2.25rem;
  color: var(--text-muted);
  font-size: 0.92rem;
}
.empty-illu {
  width: 140px;
  height: 140px;
  margin: 0 auto 1.1rem;
  display: grid;
  place-items: center;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}
.empty-illu img {
  width: 120px;
  height: 120px;
  object-fit: contain;
  filter: drop-shadow(0 8px 28px rgba(59, 130, 246, 0.35));
}
.empty-illu svg { width: 54px; height: 54px; stroke: #a78bfa; fill: none; stroke-width: 1.5; }
.empty strong {
  display: block;
  color: #e5e7eb;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.muted { color: var(--text-muted); font-size: 0.88rem; }
.tx-type { text-transform: capitalize; }
.money-neg { color: #fca5a5; font-weight: 600; }
.money-pos { color: #fff; font-weight: 600; }

.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1rem;
  color: var(--text-dim);
  font-size: 0.82rem;
}
.pagination .pages { display: flex; gap: 0.35rem; }
.pagination .pages a, .pagination .pages span {
  min-width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  border: 1px solid var(--border);
  color: var(--text-muted);
}
.pagination .pages a.active {
  background: var(--grad);
  color: #fff;
  border-color: transparent;
}

/* Modals */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(3, 6, 12, 0.78);
  backdrop-filter: blur(8px);
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.modal-backdrop.open { display: flex; }
.modal {
  width: min(440px, 100%);
  border-radius: 24px;
  padding: 1.35rem 1.4rem 1.5rem;
  max-height: min(92vh, 720px);
  overflow-x: hidden;
  overflow-y: auto;
  border-color: rgba(255, 255, 255, 0.1);
}
.modal.modal-lg { width: min(480px, 100%); }
.modal.modal-wd {
  width: min(480px, 100%);
  max-height: min(92vh, 720px);
  overflow-x: hidden;
  overflow-y: auto;
  padding: 1.35rem 1.4rem 1.5rem;
}
.modal-fee-row-sm {
  margin-bottom: 0;
  padding: 0.65rem 0.85rem;
  font-size: 0.78rem;
}
.modal-fee-row-sm strong { color: #fff; font-weight: 600; }
.wd-form {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.wd-step {
  display: none;
  flex-direction: column;
  gap: 0.85rem;
}
.wd-step.is-active {
  display: flex !important;
}
.wd-form .field-sm { margin-bottom: 0; }
.wd-form .field-label { margin-bottom: 0.35rem; font-size: 0.8rem; }
.wd-form .input-wrap {
  padding: 0.75rem 0.9rem;
}
.wd-form .type-chips { gap: 0.4rem; }
.wd-form .type-chips[hidden] { display: none !important; }
.wd-form .type-chip {
  padding: 0.4rem 0.75rem;
  font-size: 0.78rem;
}
.wd-pin-wrap {
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
}
.wd-pin-wrap .pin-boxes-row {
  gap: 0.4rem;
}
.wd-pin-wrap .pin-box {
  aspect-ratio: auto;
  height: 46px;
  min-height: 46px;
  font-size: 1.15rem;
  font-weight: 650;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(7, 9, 15, 0.75);
  box-shadow: none;
}
.wd-pin-wrap .pin-box:hover {
  border-color: rgba(139, 92, 246, 0.4);
}
.wd-pin-wrap .pin-box:focus {
  border-color: rgba(139, 92, 246, 0.55);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
  background: rgba(7, 9, 15, 0.9);
}
.wd-pin-wrap .pin-box.filled {
  border-color: rgba(139, 92, 246, 0.4);
  background: rgba(124, 58, 237, 0.08);
}
.wd-pin-hero { text-align: center; }
.wd-form .btn-block { padding: 0.85rem 1.25rem; }
.wd-footer-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.55rem;
}
.wd-footer-row .btn-ghost { width: auto; min-width: 88px; }
.wd-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
  margin-bottom: 0.45rem;
  text-align: left;
}
.wd-summary-full {
  grid-column: 1 / -1;
}
.wd-summary > div {
  background: rgba(7, 9, 15, 0.55);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.55rem 0.75rem;
}
.wd-summary span {
  display: block;
  font-size: 0.72rem;
  color: var(--text-dim);
  margin-bottom: 0.15rem;
}
.wd-summary strong {
  color: #fff;
  font-size: 0.95rem;
  font-weight: 650;
}
.wd-sum-key {
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  word-break: break-all;
}
@media (max-height: 720px) {
  .modal.modal-wd { padding: 1.2rem 1.25rem 1.25rem; }
  .wd-step { gap: 0.7rem; }
  .wd-pin-wrap .pin-box { height: 42px; min-height: 42px; font-size: 1.05rem; }
}
.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1rem;
  gap: 0.75rem;
}
.modal-kicker {
  margin: 0 0 0.2rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--purple-bright);
  font-weight: 600;
}
.modal-header h3 { margin: 0; color: #fff; font-size: 1.2rem; }
.modal-close {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 1.25rem;
  cursor: pointer;
  line-height: 1;
  width: 34px;
  height: 34px;
  border-radius: 10px;
}
.modal-close:hover { color: #fff; border-color: rgba(139,92,246,0.4); }
.modal-fee-row {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  font-size: 0.78rem;
  color: var(--text-muted);
  background: rgba(139, 92, 246, 0.08);
  border: 1px solid rgba(139, 92, 246, 0.18);
  border-radius: 10px;
  padding: 0.65rem 0.85rem;
  margin-bottom: 1rem;
}
.input-money {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}
.input-money .prefix {
  position: static;
  left: auto;
  top: auto;
  transform: none;
  flex-shrink: 0;
  color: var(--text-dim);
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1;
  z-index: auto;
}
.input-money input {
  padding-left: 0 !important;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  min-width: 0;
  flex: 1;
}
.wd-form .input-money input {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 0 !important;
}
.fee-preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin: 0.25rem 0 0.35rem;
}
.fee-preview > div {
  background: rgba(0,0,0,0.28);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.7rem 0.85rem;
}
.fee-preview span { display: block; font-size: 0.72rem; color: var(--text-dim); margin-bottom: 0.2rem; }
.fee-preview strong { color: #fff; font-size: 0.95rem; }
.key-chips, .type-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.key-chip, .type-chip {
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
  color: var(--text-muted);
  border-radius: 999px;
  padding: 0.4rem 0.75rem;
  font-size: 0.78rem;
  cursor: pointer;
  font-weight: 500;
}
.key-chip:hover, .type-chip:hover { color: #fff; border-color: rgba(139,92,246,0.4); }
.key-chip.active, .type-chip.active {
  background: var(--grad);
  color: #fff;
  border-color: transparent;
}
.pix-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}
.pix-summary > div {
  background: rgba(0,0,0,0.28);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.55rem;
}
.pix-summary span { display: block; font-size: 0.68rem; color: var(--text-dim); }
.pix-summary strong { font-size: 0.85rem; color: #fff; }
.qr-frame {
  width: 220px;
  margin: 0 auto 0.85rem;
  padding: 0.65rem;
  background: #fff;
  border-radius: 14px;
}
.modal-pix { text-align: center; }
.modal-pix img { display: block; width: 100%; height: auto; border-radius: 8px; }

/* API / Docs layout */
.api-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 1rem;
  align-items: start;
}

.secret-box {
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(139, 92, 246, 0.25);
  border-radius: 12px;
  padding: 0.85rem;
  margin-bottom: 0.75rem;
}
.secret-box-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
}
.secret-value {
  display: block;
  word-break: break-all;
  color: #c4b5fd;
  font-size: 0.82rem;
  line-height: 1.45;
}

.profile-top-grid {
  display: grid;
  grid-template-columns: 260px 1fr 280px;
  gap: 1rem;
  margin-bottom: 1rem;
  align-items: start;
}
.profile-card { text-align: center; }
.profile-avatar-wrap {
  position: relative;
  width: 96px;
  height: 96px;
  margin: 0 auto;
  cursor: pointer;
  border-radius: 50%;
}
.profile-avatar-wrap:focus-visible {
  outline: 2px solid var(--purple);
  outline-offset: 3px;
}
.profile-avatar-wrap .avatar-preview {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  border: 2px solid rgba(139, 92, 246, 0.35);
}
.avatar-edit-badge {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(7, 9, 15, 0.35);
  color: rgba(255, 255, 255, 0.72);
  border: 0;
  box-shadow: none;
  opacity: 0;
  transition: opacity 0.15s ease;
  z-index: 2;
  pointer-events: none;
}
.avatar-edit-badge svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.6;
}
.profile-avatar-wrap:hover .avatar-edit-badge,
.profile-avatar-wrap:focus-visible .avatar-edit-badge {
  opacity: 1;
}
.profile-avatar-wrap:hover .avatar-preview {
  filter: none;
}
.online-dot {
  position: absolute;
  right: 6px;
  bottom: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #22c55e;
  border: 2px solid var(--bg-panel);
  z-index: 3;
}
.locked-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin-top: 0.85rem;
}
.locked-item {
  background: rgba(0,0,0,0.25);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.65rem 0.75rem;
}
.locked-item span {
  display: block;
  font-size: 0.7rem;
  color: var(--text-dim);
  margin-bottom: 0.2rem;
}
.locked-item strong {
  color: #e5e7eb;
  font-size: 0.88rem;
  word-break: break-word;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem 0.35rem 0.4rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1;
  width: fit-content;
  max-width: 100%;
}
.status-chip-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  flex-shrink: 0;
}
.status-chip-ok {
  color: #86efac;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.18), rgba(16, 185, 129, 0.1));
  border: 1px solid rgba(74, 222, 128, 0.35);
  box-shadow: 0 0 20px rgba(34, 197, 94, 0.12);
}
.status-chip-ok .status-chip-icon {
  background: rgba(34, 197, 94, 0.28);
  color: #bbf7d0;
}
.status-chip-wait {
  color: #93c5fd;
  background: rgba(59, 130, 246, 0.14);
  border: 1px solid rgba(96, 165, 250, 0.3);
}
.status-chip-wait .status-chip-icon {
  background: rgba(59, 130, 246, 0.25);
}
.status-chip-bad {
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.14);
  border: 1px solid rgba(248, 113, 113, 0.3);
}
.status-chip-bad .status-chip-icon {
  background: rgba(239, 68, 68, 0.25);
}
.profile-card .status-chip {
  justify-content: center;
}

.profile-preview-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}
.profile-preview-row img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(139, 92, 246, 0.35);
  flex-shrink: 0;
}

.file-drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 1.25rem 1rem;
  border-radius: 14px;
  border: 1.5px dashed rgba(139, 92, 246, 0.4);
  background: rgba(124, 58, 237, 0.06);
  cursor: pointer;
  text-align: center;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  box-sizing: border-box;
}
.file-drop:hover,
.file-drop:focus-within,
.file-drop.has-file {
  border-color: var(--purple);
  background: rgba(124, 58, 237, 0.12);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.12);
}
.file-drop-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 0.2rem;
  color: var(--purple-bright);
  background: var(--grad-soft);
  border: 1px solid rgba(139, 92, 246, 0.25);
}
.file-drop-icon svg {
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
}
.file-drop-title {
  color: #fff;
  font-size: 0.92rem;
  font-weight: 600;
}
.file-drop-sub {
  color: var(--text-dim);
  font-size: 0.75rem;
  display: block;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 0 0.5rem;
  box-sizing: border-box;
}
.file-drop.has-file .file-drop-sub {
  color: var(--purple-bright);
}
.profile-preview-row .muted,
#avatar-preview-label {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tx-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}
#modal-profile-photo .modal {
  overflow-x: hidden;
}

@media (max-width: 1100px) {
  .profile-top-grid { grid-template-columns: 1fr; }
}
.docs-layout {
  display: grid;
  grid-template-columns: 220px 1fr 260px;
  gap: 1rem;
  align-items: start;
}
.docs-side-nav a {
  display: block;
  padding: 0.45rem 0.7rem;
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 0.15rem;
}
.docs-side-nav a:hover, .docs-side-nav a.active {
  background: rgba(139, 92, 246, 0.12);
  color: #fff;
}
.docs-side-nav .nav-label {
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #4b5563;
  padding: 0.85rem 0.7rem 0.35rem;
  font-weight: 600;
}
.key-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: #fff;
  background: var(--grad);
  flex-shrink: 0;
}
.env-pill {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
}
.env-pill.live { background: rgba(139,92,246,0.18); color: #c4b5fd; }
.env-pill.sandbox { background: rgba(59,130,246,0.18); color: #93c5fd; }
.docs-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.25rem 1.4rem;
  border-radius: var(--radius);
  background: linear-gradient(120deg, rgba(124,58,237,0.22), rgba(37,99,235,0.12));
  border: 1px solid rgba(139,92,246,0.25);
  margin-top: 1rem;
}
.spark { opacity: 0.55; font-size: 0.75rem; color: var(--purple-bright); }

@media (max-width: 1100px) {
  .api-layout, .docs-layout { grid-template-columns: 1fr; }
}

.balance-hero {
  background: var(--grad-soft);
  border: 1px solid rgba(139, 92, 246, 0.25);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.25rem;
}
.balance-hero .label { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 0.35rem; }
.balance-hero .value { font-size: 2rem; font-weight: 700; color: #fff; }

.bottom-nav { display: none; }

@media (max-width: 1100px) {
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .charts-grid { grid-template-columns: 1fr; }
  .profile-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .sidebar { display: none; }
  .main-area {
    margin-left: 0;
    padding-top: calc(58px + env(safe-area-inset-top, 0px));
  }
  .content { padding: 0.85rem 1rem calc(6.25rem + var(--safe-bottom)); }
  .topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 0.65rem 0.9rem;
    padding-top: calc(0.65rem + env(safe-area-inset-top, 0px));
    gap: 0.65rem;
    min-height: 58px;
    z-index: 60;
  }
  .topbar-brand { display: block; }
  .topbar-titles { display: none; }
  .topbar-desktop-only { display: none !important; }
  .topbar-mobile-only { display: none !important; }
  .desktop-only-table { display: none; }
  .mobile-only-cards { display: grid; }
  .user-chip {
    padding: 0;
    border: 0;
    background: transparent;
    gap: 0;
  }
  .user-chip .avatar {
    width: 34px;
    height: 34px;
    border-radius: 11px;
  }
  .user-chip-meta { display: none !important; }
  .kpi-grid { grid-template-columns: 1fr 1fr; }
  .form-grid.two, .offer-row { grid-template-columns: 1fr; }

  .bottom-nav {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    align-items: end;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    background: rgba(10, 11, 18, 0.94);
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    padding: 0.35rem 0.35rem calc(0.45rem + var(--safe-bottom));
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.28);
  }
  .bottom-nav-item,
  .bottom-nav-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.18rem;
    min-width: 0;
    padding: 0.35rem 0.2rem;
    border: 0;
    background: transparent;
    color: var(--text-muted);
    font-size: 0.62rem;
    font-weight: 600;
    font-family: inherit;
    text-decoration: none;
    cursor: pointer;
  }
  .bottom-nav-item.active {
    color: #fff;
  }
  .bottom-nav-item.active .material-symbols-outlined {
    color: var(--purple-bright);
    font-variation-settings: 'FILL' 1, 'wght' 500, 'GRAD' 0, 'opsz' 24;
  }
  .bottom-nav-item .material-symbols-outlined,
  .bottom-nav-center .material-symbols-outlined {
    font-size: 22px;
    line-height: 1;
  }
  .bottom-nav-center {
    position: relative;
    top: -10px;
    gap: 0.28rem;
    color: var(--text-muted);
  }
  .bottom-nav-center-btn {
    width: 52px;
    height: 52px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    box-shadow: 0 8px 22px rgba(99, 102, 241, 0.4);
  }
  .bottom-nav-center-btn .material-symbols-outlined {
    font-size: 24px;
    font-variation-settings: 'FILL' 1, 'wght' 500, 'GRAD' 0, 'opsz' 24;
  }
  .bottom-nav-center span:last-child {
    color: var(--text-muted);
  }
}

@media (max-width: 520px) {
  .kpi-grid { grid-template-columns: 1fr; }
  .panel-head {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }
  .panel-head .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ---------- Admin shell (identidade própria) ---------- */
.admin-shell {
  --admin-accent: #818cf8;
  --admin-accent-2: #6366f1;
  --admin-warn: #fbbf24;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.admin-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.15rem 1.25rem;
  border-radius: 16px;
  border: 1px solid rgba(99, 102, 241, 0.22);
  background:
    radial-gradient(ellipse 70% 80% at 100% 0%, rgba(99, 102, 241, 0.16), transparent 55%),
    linear-gradient(135deg, rgba(18, 20, 32, 0.95), rgba(11, 12, 19, 0.9));
  backdrop-filter: blur(16px);
}
.admin-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--admin-accent);
  font-weight: 700;
}
.admin-title {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #f8fafc;
}
.admin-sub {
  margin: 0.35rem 0 0;
  color: #94a3b8;
  font-size: 0.9rem;
}
.admin-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #c7d2fe;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.25);
  white-space: nowrap;
}
.admin-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
}

.admin-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0.4rem;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--border);
}
.admin-nav-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 0.85rem;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #94a3b8;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.admin-nav-item svg,
.admin-nav-item .material-symbols-outlined {
  width: 18px;
  height: 18px;
  font-size: 18px;
  line-height: 1;
}
.admin-nav-item svg {
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
}
.admin-nav-item:hover { color: #e2e8f0; background: rgba(255,255,255,0.04); }
.admin-nav-item.active {
  color: #fff;
  background: var(--grad-active);
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
}

.admin-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}
.admin-kpi {
  padding: 1rem 1.05rem;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid var(--border);
}
.admin-kpi.accent {
  border-color: rgba(99, 102, 241, 0.35);
  background:
    linear-gradient(145deg, rgba(99, 102, 241, 0.14), rgba(18, 20, 32, 0.85));
}
.admin-kpi-label {
  font-size: 0.75rem;
  color: #94a3b8;
  font-weight: 600;
  margin-bottom: 0.35rem;
}
.admin-kpi-value {
  font-size: 1.35rem;
  font-weight: 700;
  color: #f8fafc;
  letter-spacing: -0.02em;
}
.admin-kpi-value.admin-kpi-sm { font-size: 1.05rem; }
.admin-kpi-sub {
  margin-top: 0.3rem;
  font-size: 0.75rem;
  color: #64748b;
}

.admin-split {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 0.85rem;
}
.admin-panel {
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.1rem 1.15rem 1.15rem;
}
.admin-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}
.admin-panel-head h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: #f1f5f9;
}
.admin-pill {
  display: inline-flex;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  color: #7dd3fc;
  background: rgba(14, 165, 233, 0.14);
  border: 1px solid rgba(56, 189, 248, 0.25);
}
.admin-link {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--admin-accent);
}
.admin-empty {
  padding: 1.25rem;
  text-align: center;
  color: #64748b;
  font-size: 0.9rem;
}
.admin-list { display: flex; flex-direction: column; gap: 0.55rem; }
.admin-list-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.8rem;
  border-radius: 12px;
  background: rgba(0,0,0,0.22);
  border: 1px solid var(--border);
}
.admin-list-row strong { display: block; color: #f1f5f9; font-size: 0.9rem; }
.admin-type {
  display: inline-flex;
  padding: 0.2rem 0.5rem;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #bae6fd;
  background: rgba(14, 165, 233, 0.12);
}
.admin-table th { white-space: nowrap; }

.admin-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.admin-toolbar {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.admin-search {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}
.admin-search-wrap {
  flex: 1;
  min-width: min(100%, 240px);
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.85rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.28);
}
.admin-search-wrap svg,
.admin-search-wrap .material-symbols-outlined {
  width: 18px;
  height: 18px;
  font-size: 18px;
  flex-shrink: 0;
  color: #64748b;
  line-height: 1;
}
.admin-search-wrap svg {
  stroke: #64748b;
  fill: none;
  stroke-width: 1.8;
}
.admin-search-wrap input {
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: #e2e8f0;
  font-size: 0.9rem;
  min-width: 0;
}
.admin-search-wrap input::placeholder { color: #64748b; }
.admin-search-hint {
  margin: 0;
  font-size: 0.8rem;
  color: #94a3b8;
}
.admin-user-avatar {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid rgba(56, 189, 248, 0.22);
  background: rgba(14, 165, 233, 0.12);
}
.admin-user-hash {
  font-size: 0.75rem;
  font-weight: 600;
  color: #64748b;
}
.admin-filter {
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #94a3b8;
  border: 1px solid var(--border);
  background: rgba(0,0,0,0.2);
  text-decoration: none;
}
.admin-filter:hover { color: #e2e8f0; }
.admin-filter.active {
  color: #fff;
  background: var(--grad-active);
  border-color: transparent;
}

.admin-users {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.admin-user-card {
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.7);
  padding: 1rem 1.1rem 1.1rem;
}
.admin-user-head {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 0.85rem;
  align-items: center;
}
.admin-user-id {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: #7dd3fc;
  background: rgba(14, 165, 233, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.2);
}
.admin-user-main h3 {
  margin: 0;
  font-size: 1rem;
  color: #f8fafc;
}
.admin-user-main p {
  margin: 0.2rem 0 0;
  font-size: 0.8rem;
  color: #94a3b8;
}
.admin-user-balance {
  text-align: right;
}
.admin-user-balance span {
  display: block;
  font-size: 0.7rem;
  color: #64748b;
}
.admin-user-balance strong {
  font-size: 1.05rem;
  color: #e2e8f0;
}
.admin-user-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.85rem;
}
.admin-user-modal {
  width: min(560px, 100%) !important;
  max-height: min(90vh, 820px);
  overflow-y: auto;
}
.admin-user-modal .admin-details {
  margin-top: 0.65rem;
}
.admin-modal-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
  margin-bottom: 0.75rem;
}
.admin-modal-summary > div {
  padding: 0.65rem 0.75rem;
  border-radius: 12px;
  background: rgba(0,0,0,0.28);
  border: 1px solid var(--border);
}
.admin-modal-summary > div:first-child {
  grid-column: 1 / -1;
}
.admin-modal-summary span {
  display: block;
  font-size: 0.7rem;
  color: #64748b;
  margin-bottom: 0.2rem;
}
.admin-modal-summary strong {
  display: block;
  font-size: 0.84rem;
  color: #e2e8f0;
  font-weight: 600;
}
.admin-modal-summary em {
  display: inline-block;
  margin-top: 0.25rem;
  font-style: normal;
  font-size: 0.7rem;
  color: #94a3b8;
}
.admin-modal-summary em.is-custom { color: #fbbf24; }
.admin-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.35rem;
}
.admin-details {
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(0,0,0,0.18);
  padding: 0.55rem 0.75rem;
}
.admin-details summary {
  cursor: pointer;
  color: #7dd3fc;
  font-size: 0.84rem;
  font-weight: 600;
}
.admin-tool-form { margin-top: 0.75rem; max-width: 480px; }
.admin-tool-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  max-width: 520px;
}
.admin-tool-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: flex-end;
}
.admin-select {
  width: 100%;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.65rem;
  color: var(--text);
}
.admin-check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: #e5e7eb;
  margin-bottom: 0.65rem;
}

.admin-balance-box {
  margin-top: 0.35rem;
  padding: 0.85rem;
  border-radius: 14px;
  border: 1px solid rgba(56, 189, 248, 0.22);
  background:
    linear-gradient(135deg, rgba(14, 165, 233, 0.08), rgba(0,0,0,0.2));
}
.admin-balance-label strong {
  display: block;
  color: #f1f5f9;
  font-size: 0.9rem;
}
.admin-balance-label span {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.75rem;
  color: #94a3b8;
}
.admin-balance-form {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 0.5rem;
  margin-top: 0.75rem;
  align-items: center;
}
.admin-balance-amount {
  margin: 0 !important;
}
.admin-currency {
  color: #64748b;
  font-weight: 700;
  font-size: 0.85rem;
}

.app-body.is-admin .topbar-actions [data-open-modal="modal-receive"],
.app-body.is-admin .topbar-actions [data-open-modal="modal-withdraw"] {
  display: none;
}
.app-body.is-admin .topbar-admin-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: #94a3b8;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

@media (max-width: 1100px) {
  .admin-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-split { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .admin-user-head {
    grid-template-columns: auto 1fr;
  }
  .admin-user-balance,
  .admin-user-head .status-chip {
    grid-column: 1 / -1;
  }
  .admin-user-balance { text-align: left; }
  .admin-modal-summary,
  .admin-tool-grid,
  .admin-balance-form {
    grid-template-columns: 1fr;
  }
  .admin-hero { flex-direction: column; }
}

/* —— Checkout (Greenn-style, PIX only) —— */
.checkout-page {
  --checkout-main: #00b07f;
  --checkout-main-soft: rgba(0, 176, 127, 0.12);
  --checkout-bg: #f4f6f8;
  --checkout-card: #ffffff;
  --checkout-txt: #1a1a1a;
  --checkout-muted: #6b7280;
  --checkout-border: #e4e4e7;
  font-family: "Plus Jakarta Sans", "Montserrat", system-ui, sans-serif;
  background: var(--checkout-bg);
  color: var(--checkout-txt);
  min-height: 100dvh;
}
.checkout-shell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  width: 100%;
  max-width: 100vw;
  padding-bottom: 2rem;
}
.checkout-banner-wrap {
  width: 100%;
  max-width: 1480px;
  padding: 0 0.75rem;
  margin: 16px auto 20px;
  box-sizing: border-box;
  flex-shrink: 0;
}
@media (min-width: 1024px) {
  .checkout-banner-wrap {
    padding: 0 1rem;
    margin: 24px auto;
  }
}
.checkout-banner {
  position: relative;
  width: 100%;
  min-height: 120px;
  max-height: 280px;
  border-radius: 12px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #ebebeb;
  display: flex;
  align-items: center;
  justify-content: center;
}
.checkout-banner img {
  width: 100%;
  height: auto;
  max-height: 280px;
  object-fit: contain;
  object-position: center center;
  display: block;
}
.checkout-product-wrap {
  width: 100%;
  max-width: 1480px;
  padding: 0 0.75rem;
  margin-bottom: 0.5rem;
}
.checkout-aside-panel {
  border: 1px solid var(--checkout-border);
  border-radius: 16px;
  overflow: hidden;
  background: var(--checkout-card);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05), 0 10px 28px rgba(15, 23, 42, 0.07);
}
.checkout-aside-secure {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.15rem;
  background: var(--checkout-main);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.checkout-aside-secure svg { flex-shrink: 0; opacity: 0.95; }
.checkout-product-card {
  background: var(--checkout-card);
  border: 1px solid var(--checkout-border);
  border-radius: 16px;
  padding: 1.25rem 1.35rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05), 0 10px 28px rgba(15, 23, 42, 0.07);
}
.checkout-product-card--aside {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.checkout-product-top {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.checkout-product-thumb {
  width: 88px;
  height: 88px;
  flex-shrink: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--checkout-border);
  background: #f3f4f6;
}
.checkout-product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.checkout-product-meta { flex: 1; min-width: 0; }
.checkout-product-name {
  margin: 0;
  font-family: "Montserrat", sans-serif;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--checkout-txt);
}
.checkout-product-pricing {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.65rem;
  margin-top: 0.5rem;
}
.checkout-product-now {
  font-family: "Montserrat", sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--checkout-txt);
}
.checkout-product-was {
  font-size: 0.875rem;
  color: var(--checkout-muted);
  text-decoration: line-through;
  font-weight: 500;
}
.checkout-product-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  background: #fef2f2;
  color: #dc2626;
  font-size: 0.75rem;
  font-weight: 800;
  line-height: 1.2;
}
.checkout-product-payline {
  margin: 0.35rem 0 0;
  font-size: 0.8125rem;
  color: var(--checkout-muted);
  font-weight: 500;
}
.checkout-product-desc {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--checkout-border);
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--checkout-muted);
  white-space: pre-line;
}
.checkout-upsell-list {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--checkout-border);
}
.checkout-upsell-title {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--checkout-txt);
}
.checkout-upsell-item {
  display: grid;
  grid-template-columns: 18px 1fr auto;
  align-items: start;
  gap: 0.6rem;
  padding: 0.65rem 0;
  border-top: 1px dashed var(--checkout-border);
}
.checkout-upsell-item:first-of-type { border-top: 0; }
.checkout-upsell-item .checkout-bump-check {
  position: static;
  opacity: 1;
  pointer-events: auto;
  margin-top: 0.15rem;
}
.checkout-upsell-main strong {
  display: block;
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.3;
  color: var(--checkout-txt);
}
.checkout-upsell-main p {
  margin: 0.2rem 0 0;
  font-size: 0.78rem;
  line-height: 1.4;
  color: var(--checkout-muted);
}
.checkout-upsell-price {
  text-align: right;
  white-space: nowrap;
}
.checkout-upsell-now {
  display: block;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--checkout-main);
}
.checkout-upsell-was {
  display: block;
  font-size: 0.72rem;
  color: var(--checkout-muted);
  text-decoration: line-through;
}
.checkout-product-gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin-top: 0.75rem;
}
.checkout-product-gallery-item {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--checkout-border);
  background: #fff;
}
.checkout-product-gallery-item img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}
.product-gallery-admin {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.product-gallery-admin-item {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.75rem;
}
.product-gallery-admin-item img {
  width: 88px;
  height: 88px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--checkout-border, #e4e4e7);
}
.product-form {
  gap: 1.15rem;
}
.product-wizard-nav {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.5rem;
  margin: 0 0 1.15rem;
}
.product-wizard-dot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 0.65rem 0.35rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}
.product-wizard-dot span {
  font-size: 0.7rem;
  font-weight: 500;
}
.product-wizard-dot.is-active,
.product-wizard-dot.is-done {
  border-color: rgba(139, 92, 246, 0.35);
  color: #fff;
  background: rgba(139, 92, 246, 0.12);
}
.product-wizard-dot.is-active {
  box-shadow: 0 0 0 1px rgba(139, 92, 246, 0.25);
}
.product-form-section {
  display: none;
  gap: 0.85rem;
  padding: 1.1rem 1.15rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
}
.product-form-section.is-active {
  display: grid;
}
.product-wizard-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: flex-end;
}
.product-wizard-error {
  margin: 0;
  color: #fca5a5;
  font-size: 0.85rem;
}
@media (max-width: 720px) {
  .product-wizard-dot span { display: none; }
}
.product-form-section-head {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin-bottom: 0.15rem;
}
.product-form-step {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
}
.product-form-section-head h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
}
.product-form-section-head p {
  margin: 0.2rem 0 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.product-check {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--text);
}
.product-check input {
  width: 16px;
  height: 16px;
  accent-color: #8b5cf6;
}
.product-delivery-current {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  margin-bottom: 0.75rem;
}
.product-delivery-current strong {
  display: block;
  margin-bottom: 0.15rem;
}
.product-upsell-box {
  margin-top: 0.35rem;
  padding: 1rem;
  border: 1px solid rgba(139, 92, 246, 0.22);
  border-radius: 14px;
  background: rgba(139, 92, 246, 0.06);
}
.product-upsell-box h4 {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
}
.product-upload-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
}
.product-upload-thumb {
  width: 88px;
  height: 88px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--border, #e5e7eb);
  background: rgba(255, 255, 255, 0.04);
}
.product-upload-thumb-banner {
  width: 100%;
  height: 120px;
}
.product-upload-empty {
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  color: var(--text-muted);
  font-size: 0.75rem;
  background: rgba(255, 255, 255, 0.02);
}
.product-upload-empty.product-upload-thumb-banner {
  width: 100%;
  height: 120px;
}
.product-upload-input {
  width: 100%;
  color: var(--text-muted);
  font-size: 0.8rem;
}
.product-upload-input::file-selector-button {
  margin-right: 0.75rem;
  padding: 0.65rem 0.9rem;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}
.product-upload-input-sm::file-selector-button {
  padding: 0.5rem 0.75rem;
  font-size: 0.75rem;
}
.offer-row-image {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 140px;
}
.offer-row-preview {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--border, #e5e7eb);
  background: rgba(255, 255, 255, 0.04);
}
.offer-row-preview-empty {
  display: grid;
  place-items: center;
  color: var(--text-muted);
  font-size: 0.75rem;
  border-style: dashed;
}
.checkout-grid {
  display: flex;
  flex-direction: column-reverse;
  gap: 1.5rem;
  width: 100%;
  max-width: 1480px;
  padding: 0 0.75rem;
  align-items: stretch;
}
@media (min-width: 1024px) {
  .checkout-grid {
    flex-direction: row;
    gap: 2.5rem;
    padding: 0 1rem;
  }
  .checkout-main-card { flex: 1; min-width: 0; }
  .checkout-aside {
    width: 440px;
    max-width: 440px;
    flex-shrink: 0;
  }
  .checkout-aside-panel {
    position: sticky;
    top: 1rem;
  }
}
.checkout-grid-single {
  flex-direction: column;
  max-width: 560px;
  margin: 0 auto;
}
.checkout-card {
  background: var(--checkout-card);
  border: 1px solid var(--checkout-border);
  border-radius: 16px;
  padding: 1rem 1.25rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px rgba(15, 23, 42, 0.06);
}
@media (min-width: 1280px) {
  .checkout-card { padding: 2rem 2.5rem; }
}
.checkout-step-head {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1rem;
}
.checkout-step-head-spaced { margin-top: 1.5rem; }
.checkout-step-num {
  font-family: "Montserrat", sans-serif;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--checkout-main);
}
.checkout-step-head h2 {
  margin: 0;
  font-family: "Montserrat", sans-serif;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--checkout-txt);
}
.checkout-form { display: flex; flex-direction: column; gap: 0.75rem; }
.checkout-field { display: flex; flex-direction: column; gap: 0.35rem; }
.checkout-field-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}
@media (min-width: 640px) {
  .checkout-field-row { grid-template-columns: 1fr 1fr; }
}
.checkout-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--checkout-muted);
}
.checkout-input {
  height: 52px;
  padding: 0 1rem;
  border: 1px solid var(--checkout-border);
  border-radius: 12px;
  background: var(--checkout-card);
  font-size: 0.9375rem;
  font-family: inherit;
  color: var(--checkout-txt);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: border-color 0.15s;
}
.checkout-input::placeholder { color: #a1a1aa; opacity: 1; }
.checkout-input:hover { border-color: color-mix(in srgb, var(--checkout-main) 45%, var(--checkout-border)); }
.checkout-input:focus {
  outline: none;
  border-color: var(--checkout-main);
}
.checkout-pay-tabs {
  display: flex;
  gap: 0.75rem;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding: 1px;
}
.checkout-pay-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 1rem;
  border: 1px solid var(--checkout-border);
  border-radius: 12px;
  background: var(--checkout-card);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--checkout-txt);
  box-shadow: inset 0 0 0 1px transparent;
}
.checkout-pay-tab.is-active {
  box-shadow: inset 0 0 0 1px var(--checkout-main);
  color: var(--checkout-main);
}
.checkout-pay-tab-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--checkout-main-soft);
  color: var(--checkout-main);
}
.checkout-pix-hint {
  margin: 0.5rem 0 0;
  font-size: 0.8125rem;
  color: var(--checkout-muted);
}
.checkout-bump-kicker {
  margin: 1.25rem 0 0.75rem;
  font-weight: 600;
  color: var(--checkout-txt);
}
.checkout-desktop-only { display: none; }
@media (min-width: 1024px) {
  .checkout-desktop-only { display: block; }
}
.checkout-bumps { margin-bottom: 0.25rem; }
.checkout-bumps--aside {
  padding: 0 1rem 1rem;
  border-top: 1px solid var(--checkout-border);
}
@media (min-width: 1280px) {
  .checkout-bumps--aside { padding: 0 1.5rem 1.5rem; }
}
.checkout-bumps--aside .checkout-bump-kicker {
  margin: 1rem 0 0.75rem;
}
.checkout-bump {
  display: block;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 0.75rem;
  border: 2px solid rgba(139, 92, 246, 0.28);
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.checkout-bump:has(.checkout-bump-check:checked) {
  border-color: #8b5cf6;
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.18);
}
.checkout-bump-check {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.checkout-bump-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 1.25rem;
  background: linear-gradient(135deg, #7c3aed 0%, #8b5cf6 50%, #a78bfa 100%);
  color: #fff;
  font-weight: 700;
  font-size: 0.875rem;
}
.checkout-bump-head-left {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}
.checkout-bump-box {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  border-radius: 6px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.12);
  display: grid;
  place-items: center;
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.checkout-bump:has(.checkout-bump-check:checked) .checkout-bump-box {
  background: #fff;
  border-color: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}
.checkout-bump:has(.checkout-bump-check:checked) .checkout-bump-box::after {
  content: '';
  width: 5px;
  height: 10px;
  border: solid #7c3aed;
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
  margin-top: -2px;
}
.checkout-bump-pricing {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: flex-end;
  gap: 0.25rem 0.5rem;
  text-align: right;
}
.checkout-bump-price {
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.1;
  color: #fff;
}
.checkout-bump-was {
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.82);
  text-decoration: line-through;
}
.checkout-bump-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.95);
  color: #dc2626;
  font-size: 0.6875rem;
  font-weight: 800;
  line-height: 1.2;
}
.checkout-bump-body {
  display: flex;
  gap: 1rem;
  padding: 1.25rem;
  background: rgba(139, 92, 246, 0.07);
}
.checkout-bump-media {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
  background: #e5e7eb;
}
.checkout-bump-media img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}
.checkout-bump-content h3 {
  margin: 0 0 0.35rem;
  font-size: 0.9375rem;
  font-weight: 700;
}
.checkout-bump-desc {
  font-size: 0.8125rem;
  color: var(--checkout-muted);
  line-height: 1.45;
}
.checkout-bump-note {
  font-size: 0.75rem;
  color: var(--checkout-muted);
  margin: 0 0 0.5rem;
}
.checkout-buy-btn {
  width: 100%;
  margin-top: 1rem;
  padding: 0.85rem 1.25rem;
  border: 0;
  border-radius: 12px;
  background: var(--checkout-main);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 176, 127, 0.35);
  transition: transform 0.15s, box-shadow 0.15s;
}
.checkout-buy-btn:hover { transform: scale(1.01); }
.checkout-ghost-btn {
  width: 100%;
  margin-top: 0.75rem;
  padding: 0.75rem;
  border: 1px solid var(--checkout-border);
  border-radius: 12px;
  background: transparent;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  color: var(--checkout-txt);
}
.checkout-secure {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 1rem;
  font-size: 0.8125rem;
  color: var(--checkout-muted);
}
.checkout-secure svg { color: var(--checkout-main); flex-shrink: 0; }
.checkout-summary {
  border: 1px solid var(--checkout-border);
  border-radius: 16px;
  background: var(--checkout-card);
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px rgba(15, 23, 42, 0.06);
}
.checkout-summary-body { padding: 1.25rem; }
.checkout-summary-product {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.checkout-summary-thumb {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
  border-radius: 12px;
  border: 1px solid var(--checkout-border);
  overflow: hidden;
  background: #f9fafb;
}
.checkout-summary-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.checkout-summary-title {
  margin: 0;
  font-family: "Montserrat", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
}
.checkout-summary-price {
  margin-top: 0.5rem;
  line-height: 1.3;
}
.checkout-summary-price strong {
  font-size: 1.25rem;
  font-weight: 800;
}
.checkout-summary-price small {
  display: block;
  font-size: 0.75rem;
  color: var(--checkout-muted);
  font-weight: 600;
}
.checkout-summary-desc {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--checkout-border);
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--checkout-muted);
  white-space: pre-line;
}
.checkout-pix-amount {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  background: var(--checkout-main-soft);
  margin-bottom: 0.75rem;
}
.checkout-pix-amount strong { font-size: 1.35rem; color: var(--checkout-main); }
.checkout-pix-status { margin: 0 0 1rem; font-size: 0.875rem; }
.checkout-status-pending { color: #d97706; font-weight: 600; }
.checkout-status-paid { color: var(--checkout-main); font-weight: 600; }
.checkout-qr-wrap {
  display: flex;
  justify-content: center;
  padding: 1rem;
  background: #fff;
  border-radius: 12px;
  border: 1px solid var(--checkout-border);
}
.checkout-pix-code {
  margin: 1rem 0;
  padding: 0.75rem;
  font-size: 0.75rem;
  word-break: break-all;
  background: #f9fafb;
  border: 1px dashed var(--checkout-border);
  border-radius: 10px;
  color: var(--checkout-muted);
}
.checkout-demo-form { margin-top: 0.5rem; }
.checkout-success-card { text-align: center; padding: 2rem 1.5rem; }
.checkout-success-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: var(--checkout-main-soft);
  color: var(--checkout-main);
  display: flex;
  align-items: center;
  justify-content: center;
}
.checkout-success-card h2 {
  margin: 0 0 0.5rem;
  font-family: "Montserrat", sans-serif;
}
.checkout-success-amount {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--checkout-main);
  margin: 0;
}
.checkout-success-id { font-size: 0.8125rem; color: var(--checkout-muted); margin: 0.35rem 0; }
.checkout-success-msg { margin: 1rem 0 0; color: var(--checkout-muted); }
.checkout-footer {
  width: 100%;
  max-width: 1480px;
  padding: 1.5rem 1rem 0;
  text-align: center;
}
.checkout-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
}
.checkout-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 0.6875rem;
  color: var(--checkout-muted);
}
.checkout-badge strong {
  font-size: 0.8125rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #00a650;
}
.checkout-badge-blue strong { color: #3483fa; }
.checkout-badge-gray strong { color: var(--checkout-muted); }
.checkout-footer p {
  font-size: 0.625rem;
  color: var(--checkout-muted);
  margin: 0;
}
.checkout-page .toast-stack {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 100;
  max-width: min(360px, calc(100vw - 2rem));
}
.checkout-page .toast {
  background: var(--checkout-card);
  border: 1px solid var(--checkout-border);
  color: var(--checkout-txt);
}
.checkout-page .toast-error { border-color: #fecaca; background: #fef2f2; }
.checkout-page .toast-success { border-color: #bbf7d0; background: #f0fdf4; }

/* PIX payment page (Greenn-style) */
.checkout-pix-page .checkout-shell {
  gap: 0;
  padding-top: 1.25rem;
}
.checkout-pix-shell {
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  padding: 0 0.75rem 1.5rem;
}
.pix-status-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.pix-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: #fef9c3;
  color: #a16207;
  font-size: 0.8125rem;
  font-weight: 600;
}
.pix-status-badge.is-paid {
  background: var(--checkout-main-soft);
  color: var(--checkout-main);
}
.pix-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #eab308;
  animation: pix-pulse 1.2s ease-in-out infinite;
}
@keyframes pix-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}
.pix-timer {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8125rem;
  color: var(--checkout-muted);
  font-weight: 500;
}
.pix-timer strong {
  font-variant-numeric: tabular-nums;
  color: var(--checkout-txt);
  font-weight: 700;
}
.pix-pay-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.25rem;
  margin-bottom: 1.25rem;
  border-radius: 14px;
  background: #f3f4f6;
  border: 1px solid var(--checkout-border);
}
.pix-pay-title {
  margin: 0;
  font-family: "Montserrat", sans-serif;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--checkout-main);
}
.pix-pay-sub {
  margin: 0.35rem 0 0;
  font-size: 0.875rem;
  color: var(--checkout-muted);
  font-weight: 500;
}
.pix-pay-thumb {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.pix-pay-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pix-pay-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}
@media (min-width: 640px) {
  .pix-pay-grid {
    grid-template-columns: auto 1fr;
    align-items: start;
  }
}
.pix-qr-frame {
  padding: 0.75rem;
  background: #fff;
  border: 1px solid var(--checkout-border);
  border-radius: 12px;
  display: flex;
  justify-content: center;
}
.pix-qr-frame img {
  display: block;
  width: 220px;
  height: 220px;
}
@media (min-width: 640px) {
  .pix-qr-frame img { width: 260px; height: 260px; }
}
.pix-copy-col {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-width: 0;
}
.pix-code-box {
  min-height: 120px;
  max-height: 200px;
  padding: 0.85rem 1rem;
  font-size: 0.75rem;
  line-height: 1.45;
  word-break: break-all;
  color: var(--checkout-muted);
  background: #fff;
  border: 1px solid var(--checkout-border);
  border-radius: 12px;
  overflow-y: auto;
}
.pix-copy-btn {
  width: 100%;
  padding: 0.9rem 1.25rem;
  border: 0;
  border-radius: 12px;
  background: var(--checkout-main);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 176, 127, 0.35);
  transition: transform 0.15s;
}
.pix-copy-btn:hover { transform: scale(1.01); }
.pix-steps {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.pix-steps li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--checkout-txt);
}
.pix-step-num {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 700;
  background: #e0f2fe;
  color: #0369a1;
}
.pix-instant-box {
  padding: 1.15rem 0 0;
  margin-bottom: 1.25rem;
  border-top: 1px dashed var(--checkout-border);
}
.pix-instant-box h3 {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.5rem;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--checkout-txt);
}
.pix-instant-box h3 svg { color: var(--checkout-main); flex-shrink: 0; }
.pix-instant-box p {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--checkout-muted);
}
.pix-page-footer {
  text-align: center;
  padding-top: 1.25rem;
  border-top: 1px solid var(--checkout-border);
}
.pix-page-logo {
  max-height: 36px;
  width: auto;
  margin: 0 auto 0.65rem;
  object-fit: contain;
  opacity: 0.85;
}
.pix-page-footer p {
  margin: 0;
  font-size: 0.6875rem;
  color: var(--checkout-muted);
}
