/* ==========================================================================
   System API's — Store. Mesmo visual dark do tdex (inspirado em x.ai).
   ========================================================================== */

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

:root {
  --jet: hsl(0 0% 3%);
  --bg: var(--jet);
  --surface: hsl(0 0% 8%);
  --surface-a: hsl(0 0% 8%);
  --surface-b: hsl(0 0% 7%);
  --surface-c: hsl(0 0% 9%);
  --surface-hover: hsl(0 0% 12%);
  --line: hsl(0 0% 18%);
  --line-soft: hsl(0 0% 13%);
  --text: #ffffff;
  --text-dim: hsl(0 0% 66%);
  --text-faint: hsl(0 0% 46%);
  --accent: #cc0000;
  --accent-bright: #ff2400;
  --accent-rgb: 204, 0, 0;
  --mp: #009EE3;
  --mp-dark: #008cc9;
  --paypal: #003087;
  --green: #238636;
  --green-h: #2ea043;
  --radius: 16px;
  --radius-lg: 24px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: dark;
}

html, body { background: var(--bg); }

body {
  color: var(--text);
  font-family: 'Inter', sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.bg-grid {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 100%);
}
.bg-glow {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 40% at 85% -5%, rgba(255, 255, 255, 0.1), transparent 60%),
    radial-gradient(ellipse 50% 35% at 10% 100%, rgba(255, 255, 255, 0.05), transparent 60%);
}

/* ========== TOPBAR ========== */
.store-topbar {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 24px;
}
.topbar-brand {
  display: flex; align-items: center; gap: 10px;
  color: var(--text); text-decoration: none;
  font-weight: 700; font-size: 15px;
}
.topbar-brand img {
  width: 32px; height: 32px; border-radius: 9px;
  object-fit: cover; border: 1px solid var(--line);
}
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.topbar-link {
  display: flex; align-items: center; gap: 6px;
  color: var(--text-faint); text-decoration: none;
  font-size: 12.5px; font-weight: 500;
  transition: color 0.25s var(--ease);
}
.topbar-link:hover { color: var(--text-dim); }
.topbar-account {
  display: flex; align-items: center; gap: 8px;
  background: var(--surface-a);
  border: 1px solid var(--line);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 13px; font-weight: 600;
  padding: 9px 16px;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.25s var(--ease);
}
.topbar-account:hover { border-color: var(--text); background: var(--surface-hover); }
.topbar-account img { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; }

/* ========== LAYOUT ========== */
.store-container {
  position: relative;
  z-index: 5;
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
  padding: 24px 20px 100px;
  transition: opacity 0.6s ease;
}
@media (min-width: 960px) {
  .store-container {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    padding-top: 56px;
    gap: 32px;
  }
}

.hero-side { width: 100%; text-align: center; }
@media (min-width: 960px) {
  .hero-side { width: 42%; text-align: left; position: sticky; top: 80px; }
}

.hero-title {
  font-family: 'Inter', sans-serif;
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.08;
  margin-bottom: 18px;
}
@media (min-width: 960px) { .hero-title { font-size: 3.4rem; } }

.hero-grad {
  background: linear-gradient(135deg, #fff 0%, rgba(255,255,255,0.55) 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}

.hero-sub {
  color: var(--text-dim);
  font-size: 15px;
  max-width: 30rem;
  margin: 0 auto 28px;
  line-height: 1.7;
}
@media (min-width: 960px) { .hero-sub { margin: 0 0 28px; } }

.hero-points {
  list-style: none;
  display: inline-flex; flex-direction: column; gap: 12px;
  text-align: left;
}
.hero-points li {
  display: flex; align-items: center; gap: 10px;
  font-size: 13.5px; color: var(--text-dim);
}
.hero-points i {
  width: 18px; height: 18px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: var(--text-dim);
  font-size: 9px;
}

.panel-side { width: 100%; max-width: 480px; margin: 0 auto; }
@media (min-width: 960px) { .panel-side { width: 54%; max-width: 520px; margin: 0; } }

.panel-card {
  background: linear-gradient(180deg, var(--surface) 0%, var(--jet) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 40px 100px rgba(0,0,0,0.55), inset 0 1px 0 rgba(255,255,255,0.06);
  padding: 32px;
  transition: border-color 0.3s var(--ease);
}
@media (max-width: 640px) { .panel-card { padding: 22px 18px; } }

/* ========== FIELDS ========== */
.field-group { display: flex; flex-direction: column; gap: 18px; margin-bottom: 26px; }
.field { margin-bottom: 0; }
.field + .field { margin-top: 16px; }
.field + .btn-checkout { margin-top: 26px; }
.field-label {
  display: block; font-size: 11px; font-weight: 600; color: var(--text-faint);
  text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 8px;
}
.field-inp { position: relative; }
.field-inp i {
  position: absolute; left: 15px; top: 50%; transform: translateY(-50%);
  color: var(--text-faint); font-size: 13px; transition: color 0.25s var(--ease);
}
.field-inp input {
  width: 100%;
  background: rgba(0,0,0,0.35);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  font-family: 'Geist Mono', monospace;
  font-size: 14px;
  padding: 13px 15px 13px 42px;
  outline: none;
  transition: all 0.25s var(--ease);
}
.field-inp input::placeholder { color: var(--text-faint); font-family: 'Inter', sans-serif; font-size: 13px; }
.field-inp input:focus { border-color: var(--text); background: rgba(0,0,0,0.55); box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.12); }
.field-inp input:focus ~ i { color: var(--text); }

/* ========== TABS ========== */
.tab-row {
  display: flex; gap: 4px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 18px;
}
.tab-btn {
  flex: 1 1 0; min-width: 0;
  padding: 11px 6px;
  font-family: 'Inter', sans-serif;
  font-weight: 600; font-size: 13px;
  color: var(--text-faint);
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  border-radius: 8px 8px 0 0;
  cursor: pointer;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: all 0.25s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.tab-btn:hover { color: var(--text-dim); background: rgba(255,255,255,0.03); }
.tab-btn.active { color: var(--text); border-bottom-color: var(--text); background: rgba(255, 255, 255, 0.06); }
@media (max-width: 380px) { .tab-btn { font-size: 11px; padding: 10px 3px; } }

@keyframes tabIn {
  0% { opacity: 0; transform: translateY(12px); }
  100% { opacity: 1; transform: translateY(0); }
}
.tab-content { display: flex; flex-direction: column; gap: 12px; margin-bottom: 26px; animation: tabIn 0.4s var(--ease); }

/* ========== INFO NOTE ========== */
.info-note {
  display: flex; align-items: flex-start; gap: 8px;
  background: var(--surface-a);
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  padding: 10px 12px;
  margin-top: 10px;
}
.info-note i { flex-shrink: 0; margin-top: 2px; font-size: 10px; color: var(--text-faint); }
.info-note span { font-size: 11.5px; line-height: 1.55; color: var(--text-dim); }
.info-note.warn { background: rgba(194,167,99,0.07); border-color: rgba(194,167,99,0.22); margin-bottom: 22px; }
.info-note.warn i { color: #d9bd7a; }
.info-note strong { color: var(--text); }

.info-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 16px; height: 16px; margin-left: 6px;
  border-radius: 50%; border: 1px solid var(--line);
  background: var(--surface-a); color: var(--text-faint);
  cursor: pointer; font-size: 8px;
  transition: all 0.25s var(--ease);
}
.info-btn:hover { border-color: var(--text); color: var(--text); }

/* ========== PLAN / TIER CARDS ========== */
.plan-card {
  border: 1px solid var(--line);
  background: var(--surface-a);
  border-radius: 14px;
  padding: 16px 18px;
  cursor: pointer;
  transition: all 0.25s var(--ease);
}
.plan-card:hover { border-color: var(--line-soft); background: var(--surface-hover); transform: translateY(-2px); }
.plan-card.selected { border-color: var(--text); background: rgba(255, 255, 255, 0.06); box-shadow: 0 8px 24px rgba(0,0,0,0.35); }
.plan-top { display: flex; justify-content: space-between; align-items: center; }
.plan-name { font-size: 15.5px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.plan-price { font-family: 'Geist Mono', monospace; font-size: 14px; font-weight: 600; }
.plan-desc { font-size: 12px; color: var(--text-faint); margin-top: 4px; }

.tier-list { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.tier-option {
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
  border: 1px solid var(--line);
  background: var(--surface-a);
  border-radius: 12px;
  padding: 14px 16px;
  cursor: pointer;
  transition: all 0.25s var(--ease);
}
.tier-option > div { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; }
.tier-option:hover { border-color: var(--line-soft); background: var(--surface-hover); }
.tier-option.selected { border-color: var(--text); background: rgba(255, 255, 255, 0.06); }
.tier-name { font-size: 14px; font-weight: 500; white-space: nowrap; }
.tier-price { font-family: 'Geist Mono', monospace; font-size: 12.5px; color: var(--text-faint); white-space: nowrap; flex-shrink: 0; }
.tier-option.selected .tier-price { color: var(--text); }
.tier-option.disabled { opacity: 0.4; pointer-events: none; }

/* ========== SLIDERS ========== */
.slider-box { background: var(--surface-a); border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
.slider-block { margin-bottom: 24px; }
.slider-block:last-of-type { margin-bottom: 0; }
.slider-label { font-size: 13.5px; font-weight: 500; color: var(--text); display: block; margin-bottom: 12px; }
.slider-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.slider-head .slider-label { margin-bottom: 0; }

input[type=range] { -webkit-appearance: none; width: 100%; background: transparent; height: 22px; outline: none; }
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; height: 18px; width: 18px; border-radius: 50%;
  background: var(--text); cursor: pointer; margin-top: -7px;
  box-shadow: 0 0 12px rgba(255,255,255,0.4);
  transition: transform 0.15s var(--ease);
}
input[type=range]:active::-webkit-slider-thumb { transform: scale(1.2); }
input[type=range]::-webkit-slider-runnable-track { width: 100%; height: 4px; border-radius: 2px; background: var(--line); cursor: pointer; }
input[type=range]:disabled { opacity: 0.35; pointer-events: none; }

.slider-value {
  font-family: 'Geist Mono', monospace; font-size: 11px; color: var(--text);
  background: var(--surface-hover); padding: 5px 11px; border-radius: 6px; border: 1px solid var(--line);
}

.addon-toggle { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 3px 0; cursor: pointer; user-select: none; }
.addon-toggle input[type="checkbox"] {
  appearance: none; -webkit-appearance: none; width: 18px; height: 18px; flex-shrink: 0; margin: 0;
  border: 1.5px solid var(--line); border-radius: 5px; background: rgba(0,0,0,0.3); cursor: pointer; position: relative;
  transition: all 0.2s var(--ease);
}
.addon-toggle input[type="checkbox"]:hover { border-color: var(--text-dim); }
.addon-toggle input[type="checkbox"]:checked { background: var(--text); border-color: var(--text); }
.addon-toggle input[type="checkbox"]:checked::after {
  content: ''; position: absolute; left: 5px; top: 1px; width: 5px; height: 9px;
  border: solid var(--jet); border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.addon-toggle span:first-of-type { font-size: 13.5px; color: var(--text); flex: 1; min-width: 0; }
.addon-toggle .addon-price { font-family: 'Geist Mono', monospace; font-size: 12px; color: var(--text-faint); white-space: nowrap; }

.slider-total {
  display: flex; justify-content: space-between; align-items: flex-end;
  border-top: 1px solid var(--line); padding-top: 20px; margin-top: 24px;
}
.slider-total span:first-child { font-size: 10px; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600; }
.price-currency { font-size: 13px; color: var(--text-faint); font-weight: 500; margin-right: 3px; }
.price-total { font-family: 'Geist Mono', monospace; font-size: 32px; font-weight: 700; letter-spacing: -1.5px; }

/* ========== RENEW ========== */
.renew-info { margin-top: 22px; margin-bottom: 22px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-a); }
.renew-info-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.renew-info-top span:first-child { font-size: 14px; font-weight: 600; }
.renew-badge { font-size: 11px; padding: 3px 10px; border-radius: 20px; background: var(--surface-hover); border: 1px solid var(--line); }
.renew-badge.active { color: #3fb950; border-color: rgba(63,185,80,0.3); background: rgba(63,185,80,0.1); }
.renew-badge.expired { color: #e08080; border-color: rgba(224,128,128,0.3); background: rgba(224,128,128,0.1); }
.renew-info-grid { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--text-faint); }
.renew-info-grid b { color: var(--text); font-weight: 500; }

/* ========== BUTTONS ========== */
.btn-checkout {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%;
  background: var(--mp);
  color: #fff;
  border: none;
  border-radius: 100px;
  padding: 15px;
  font-size: 15px; font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  box-shadow: 0 8px 24px rgba(0,158,227,0.28);
  position: relative; overflow: hidden;
}
.btn-checkout::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, transparent, rgba(255,255,255,0.18), transparent);
  transform: translateX(-100%); transition: transform 0.6s ease;
}
.btn-checkout:hover::before { transform: translateX(100%); }
.btn-checkout:hover { background: var(--mp-dark); transform: translateY(-2px); box-shadow: 0 12px 32px rgba(0,158,227,0.4); }
.btn-checkout:active { transform: translateY(0); }
.btn-checkout:disabled { opacity: 0.7; cursor: not-allowed; transform: none; }
.btn-checkout.btn-success { background: var(--green) !important; box-shadow: 0 8px 24px rgba(35,134,54,0.35) !important; }
.btn-checkout.btn-success:hover { background: var(--green-h) !important; }

.btn-white { background: #fff; color: #0a0a0a; box-shadow: 0 8px 20px rgba(255,255,255,0.15); }
.btn-white:hover { background: #e6e6e6; }

.btn-ghost {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%;
  background: var(--surface-a);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 100px;
  padding: 13px;
  font-size: 13.5px; font-weight: 500;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: all 0.25s var(--ease);
}
.btn-ghost:hover { border-color: var(--text); background: var(--surface-hover); }

.security-note {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: 18px; font-size: 10.5px; color: var(--text-faint); font-weight: 500;
}

/* ========== FORMA DE PAGAMENTO (Pix x PayPal) ========== */
.payment-method-toggle {
  display: flex; gap: 8px; margin-bottom: 14px;
}
.pm-option {
  position: relative;
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px; border-radius: 100px;
  background: var(--surface-a); border: 1px solid var(--line); color: var(--text-dim);
  font-size: 14px; font-weight: 600; font-family: 'Inter', sans-serif;
  cursor: pointer; transition: all 0.25s var(--ease); white-space: nowrap;
}
.pm-option i { font-size: 15px; }
.pm-option:hover { border-color: var(--text-faint); color: var(--text); }
.pm-option.selected { background: rgba(0,158,227,0.1); border-color: var(--mp); color: var(--text); }
.pm-option#pmOptionPaypal.selected { background: rgba(0,48,135,0.14); border-color: var(--paypal); }
.pm-option.disabled { opacity: 0.5; cursor: not-allowed; }
.pm-option.disabled:hover { border-color: var(--line); color: var(--text-dim); }

.coming-soon-tag {
  position: absolute; top: -9px; right: 12px;
  background: rgba(63,185,80,0.16); color: #3fb950; border: 1px solid rgba(63,185,80,0.4);
  font-size: 8.5px; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase;
  padding: 2px 7px; border-radius: 100px; white-space: nowrap; line-height: 1.4;
}

.paypal-summary {
  display: flex; justify-content: space-between; align-items: flex-end;
  border: 1px solid var(--line); border-radius: 12px; background: var(--surface-a);
  padding: 16px 18px; margin-bottom: 14px;
}
.paypal-summary span:first-child { font-size: 10px; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600; }

#paypalButtonContainer {
  min-height: 45px;
  background: #fff;
  border-radius: var(--radius);
  padding: 14px 14px 10px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
}

.support-note {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: 14px; padding: 11px; border-radius: 12px;
  background: rgba(37,211,102,0.08); border: 1px solid rgba(37,211,102,0.22);
  color: #4ede8e; font-size: 12.5px; font-weight: 500; text-decoration: none;
  transition: all 0.25s var(--ease);
}
.support-note:hover { background: rgba(37,211,102,0.14); border-color: rgba(37,211,102,0.4); }
.support-note i { font-size: 15px; }

/* ========== WHATSAPP FAB ========== */
.whatsapp-fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 40;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25D366;
  color: #fff; font-size: 26px;
  display: flex; align-items: center; justify-content: center;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(37,211,102,0.45);
  transition: all 0.3s var(--ease);
}
.whatsapp-fab:hover { transform: translateY(-4px) scale(1.05); box-shadow: 0 14px 36px rgba(37,211,102,0.6); }
.whatsapp-fab-tip {
  position: absolute; right: calc(100% + 14px); top: 50%; transform: translateY(-50%) translateX(6px);
  background: var(--surface-c); border: 1px solid var(--line); color: var(--text);
  font-family: 'Inter', sans-serif; font-size: 12.5px; font-weight: 500; white-space: nowrap;
  padding: 9px 14px; border-radius: 10px;
  opacity: 0; pointer-events: none;
  transition: all 0.25s var(--ease);
  box-shadow: 0 10px 24px rgba(0,0,0,0.4);
}
.whatsapp-fab:hover .whatsapp-fab-tip { opacity: 1; transform: translateY(-50%) translateX(0); }
@media (max-width: 640px) {
  .whatsapp-fab { right: 16px; bottom: 16px; width: 52px; height: 52px; font-size: 23px; }
  .whatsapp-fab-tip { display: none; }
}

/* ========== TOAST ========== */
.toast {
  position: fixed; top: 20px; left: 50%; transform: translateX(-50%);
  z-index: 999999;
  padding: 13px 22px; border-radius: 12px;
  font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 500;
  display: flex; align-items: center; gap: 12px;
  animation: toastIn 0.4s var(--ease) forwards;
  background: var(--surface-c); backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  color: var(--text);
  box-shadow: 0 20px 40px rgba(0,0,0,0.6);
  max-width: calc(100vw - 32px);
}
@keyframes toastIn { 0% { opacity: 0; transform: translate(-50%, -24px) scale(0.95); } 100% { opacity: 1; transform: translate(-50%, 0) scale(1); } }
.toast.warn i  { color: #d9bd7a; }
.toast.error i { color: #e08080; }
.toast.warn  { border-color: rgba(217,189,122,0.3); }
.toast.error { border-color: rgba(224,128,128,0.3); }

/* ========== OVERLAYS / MODALS ========== */
.overlay {
  position: fixed; inset: 0; z-index: 60;
  display: none; align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}
.overlay.visible { display: flex; opacity: 1; }
.overlay .overlay-bg { position: absolute; inset: 0; background: rgba(0,0,0,0.7); backdrop-filter: blur(14px); z-index: -1; }

.modal-card {
  width: 100%;
  max-width: 420px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  background: linear-gradient(180deg, var(--surface) 0%, var(--jet) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 40px 100px rgba(0,0,0,0.6);
  padding: 30px;
}
@media (max-width: 480px) { .modal-card { padding: 22px 18px; max-width: 100%; } }
.modal-card-lg { max-width: 460px; text-align: center; }

.modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; gap: 12px; }
.modal-eyebrow { font-size: 10px; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.14em; font-family: 'Geist Mono', monospace; margin-bottom: 5px; }
.modal-head h2 { font-size: 22px; font-weight: 700; letter-spacing: -0.5px; }
.modal-close {
  background: var(--surface-a); border: 1px solid var(--line); width: 34px; height: 34px; border-radius: 50%;
  color: var(--text-faint); cursor: pointer; font-size: 14px; flex-shrink: 0;
  transition: all 0.25s var(--ease);
}
.modal-close:hover { border-color: var(--text); color: var(--text); }

.google-slot { margin-bottom: 16px; width: 100%; overflow: hidden; display: flex; justify-content: center; }
.login-error { color: #e08080; font-size: 12px; text-align: center; margin-top: 12px; }
.modal-switch { text-align: center; font-size: 12.5px; color: var(--text-faint); margin-top: 18px; }
.modal-switch a { color: var(--text); text-decoration: underline; font-weight: 500; }

.success-icon {
  width: 74px; height: 74px; margin: 0 auto 20px;
  background: rgba(35,134,54,0.1); border: 1px solid rgba(35,134,54,0.25);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 30px rgba(35,134,54,0.25);
}
.success-icon i { font-size: 32px; color: #3fb950; }
.modal-title-center { font-size: 24px; font-weight: 700; letter-spacing: -0.5px; margin-bottom: 8px; }
.modal-sub-center { color: var(--text-faint); font-size: 13.5px; margin-bottom: 26px; line-height: 1.6; }

.cert-preview {
  text-align: left;
  background: var(--surface-a);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 24px;
}
.cert-preview-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.cert-brand { font-size: 13px; font-weight: 700; }
.cert-status { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; color: #3fb950; }
.cert-status i { font-size: 7px; }
.cert-key-hidden {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 500; color: var(--text-dim);
  background: rgba(0,0,0,0.4); border: 1px solid var(--line);
  border-radius: 10px; padding: 12px 14px; margin-bottom: 16px;
}
.cert-key-hidden i { color: var(--text-faint); font-size: 13px; flex-shrink: 0; }
.cert-key-hidden .cert-key-dots { margin-left: auto; font-family: 'Geist Mono', monospace; color: var(--text-faint); letter-spacing: 1px; }
.cert-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cert-grid div { background: rgba(0,0,0,0.25); border: 1px solid var(--line-soft); border-radius: 10px; padding: 10px 12px; }
.cert-grid span { display: block; font-size: 9.5px; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 4px; }
.cert-grid b { font-size: 13px; font-weight: 500; }

.modal-actions { display: flex; flex-direction: column; gap: 12px; }

.pix-view {
  width: 100%; max-width: 1160px; margin: 0 auto;
  display: flex; flex-direction: column; align-items: center;
  padding: 40px 20px 60px;
  overflow-x: hidden;
}
.pix-card { --pix: #32bcad; --pix-dim: #1f8f83; width: 100%; max-width: 480px; text-align: center; overflow-x: hidden; }

/* Enquanto o pagamento Pix está na tela, esconde o topo do site (logo,
   Reportar, conta) — nada ali é relevante nesse passo, e o Reportar
   continua acessível no rodapé aqui embaixo. */
body.pix-active .store-topbar { display: none; }

.pix-eyebrow { text-align: center; }
.pix-head-id { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 4px; }
.pix-head-id h2 { line-height: 1; }
.pix-badge {
  flex-shrink: 0; width: 38px; height: 38px; border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(50,188,173,0.12); border: 1px solid rgba(50,188,173,0.3);
  color: var(--pix); font-size: 17px;
}

.pix-hero {
  text-align: center;
  background: radial-gradient(ellipse 120% 100% at 50% 0%, rgba(50,188,173,0.14), transparent 70%), var(--surface-a);
  border: 1px solid rgba(50,188,173,0.25); border-radius: 16px;
  padding: 18px 16px 16px; margin-bottom: 16px;
}
.pix-hero-label { display: block; font-size: 10.5px; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600; margin-bottom: 6px; }
.pix-hero-value { font-family: 'Geist Mono', monospace; font-size: 30px; font-weight: 700; letter-spacing: -0.5px; }

.pix-status-row { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.pix-status {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(217,189,122,0.1); border: 1px solid rgba(217,189,122,0.28); border-radius: 100px;
  padding: 6px 13px; font-size: 12px; font-weight: 600; color: #d9bd7a;
}
.pix-status.pix-status-error { background: rgba(224,128,128,0.1); border-color: rgba(224,128,128,0.3); color: #e08080; }
.pix-expiry {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11.5px; color: var(--text-faint); font-family: 'Geist Mono', monospace;
}

.pix-qr-wrap {
  display: flex; justify-content: center; align-items: center;
  background: #fff; border-radius: 18px; padding: 18px; margin-bottom: 10px;
  border: 1px solid rgba(50,188,173,0.3);
  box-shadow: 0 0 0 4px rgba(50,188,173,0.06);
}
.pix-qr-img { width: 200px; height: 200px; object-fit: contain; }
.pix-qr-caption { text-align: center; font-size: 11.5px; color: var(--text-faint); margin-bottom: 20px; }

.pix-divider { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.pix-divider::before, .pix-divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.pix-divider span { font-size: 10.5px; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.08em; white-space: nowrap; }

.pix-copy-chip {
  display: flex; align-items: center; gap: 10px;
  background: rgba(0,0,0,0.4); border: 1px solid var(--line); border-radius: 12px;
  padding: 0 14px; height: 46px; margin-bottom: 10px;
}
.pix-copy-chip i { color: var(--text-faint); font-size: 13px; flex-shrink: 0; }
.pix-copy-input {
  flex: 1; min-width: 0; display: block;
  color: var(--text-dim); font-size: 11.5px; font-family: 'Geist Mono', monospace;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  /* é só exibição — copiar é sempre pelo botão, então nunca reage a
     toque/arrasto (o bug de "arrastar e a página inteira se move" era
     o navegador tentando selecionar/arrastar texto dentro do campo). */
  user-select: none; -webkit-user-select: none; touch-action: pan-y;
  pointer-events: none;
}
.pix-copy-btn { background: var(--pix); box-shadow: 0 8px 22px rgba(50,188,173,0.3); margin-bottom: 18px; }
.pix-copy-btn:hover { background: var(--pix-dim); box-shadow: 0 12px 28px rgba(50,188,173,0.4); }

.pix-card .info-note { text-align: left; }
.pix-card > .btn-ghost { margin-top: 14px; }

.pix-footer { margin-top: 28px; }
.pix-footer-link {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 11.5px; color: var(--text-faint); text-decoration: none;
}
.pix-footer-link:hover { color: var(--text-dim); }

.hidden { display: none !important; }
#exportCanvas { display: none; }

.fa-spin { animation: spin 0.8s linear infinite; }
@keyframes spin { 100% { transform: rotate(360deg); } }
