/* Black Pass — Checkout Pop-up Styles */

.checkout-dialog {
  width: min(540px, calc(100vw - 32px));
  max-height: calc(100dvh - 40px);
  padding: 0;
  margin: auto;
  background: #0d0b13f5;
  border: 1px solid #ffffff1a;
  border-radius: 26px;
  color: var(--text);
  box-shadow: 0 35px 120px #000000e0, 0 0 60px #9865ee1a;
  overflow: hidden;
  position: relative;
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
}

.checkout-dialog::backdrop {
  background: #030206d9;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.checkout-dialog[open] {
  animation: checkout-in 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes checkout-in {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(12px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.checkout-close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 10;
  background: #191422cc;
  border: 1px solid #ffffff12;
  color: #a49cb5;
}

.checkout-close:hover {
  background: #2a2038;
  color: #fff;
  border-color: #a47cdc55;
}

.checkout-body {
  padding: 36px 32px 32px;
  display: flex;
  flex-direction: column;
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
}

/* Header & Pitch */
.checkout-header {
  text-align: center;
  margin-bottom: 24px;
}

.checkout-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #d1b5ff;
  background: linear-gradient(135deg, #a77aff26, #743cd418);
  border: 1px solid #ab7aff48;
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 14px;
}

.checkout-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #c39eff;
  box-shadow: 0 0 10px #af7cff;
}

.checkout-title {
  font-size: 27px;
  line-height: 1.15;
  letter-spacing: -1px;
  font-weight: 700;
  margin: 0 0 10px;
  color: #faf7ff;
}

.checkout-description {
  font-size: 13.5px;
  line-height: 1.6;
  color: #9f96ad;
  margin: 0;
  max-width: 440px;
  margin-inline: auto;
}

/* Price Box */
.checkout-price-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: linear-gradient(135deg, #171224, #120e1b);
  border: 1px solid #9f6ee830;
  border-radius: 18px;
  margin-bottom: 22px;
  box-shadow: 0 6px 24px #00000040;
}

.checkout-price-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.checkout-price-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #a797be;
  font-weight: 600;
}

.checkout-price-sub {
  font-size: 11.5px;
  color: #796e8b;
}

.checkout-price-value {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -1px;
  color: #faf7ff;
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.checkout-price-currency {
  font-size: 16px;
  font-weight: 600;
  color: #c4a1ff;
}

/* Payment Options */
.checkout-options-grid {
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin-bottom: 22px;
}

.checkout-option-btn {
  display: grid;
  grid-template-columns: 46px 1fr auto;
  align-items: center;
  gap: 15px;
  padding: 16px 18px;
  border-radius: 18px;
  background: #14101e;
  border: 1px solid #ffffff12;
  text-align: left;
  transition: transform 0.25s var(--ease), border-color 0.25s, background 0.25s, box-shadow 0.25s;
  cursor: pointer;
  position: relative;
  text-decoration: none;
  color: inherit;
}

.checkout-option-btn:hover {
  transform: translateY(-2px);
  background: #1c152a;
  border-color: #a778f566;
  box-shadow: 0 10px 30px #00000055, 0 0 25px #9765ee1a;
}

.checkout-option-btn:focus-visible {
  outline: 2px solid var(--purple);
  outline-offset: 2px;
}

.checkout-option-btn.option-pix {
  border-color: #00d4aa44;
  background: linear-gradient(135deg, #0e1a1c, #13101e);
}

.checkout-option-btn.option-pix:hover {
  border-color: #00d4aa88;
  box-shadow: 0 10px 30px #00000055, 0 0 25px #00d4aa22;
}

.checkout-option-btn.option-card {
  border-color: #009ee344;
  background: linear-gradient(135deg, #0d1724, #13101e);
}

.checkout-option-btn.option-card:hover {
  border-color: #009ee388;
  box-shadow: 0 10px 30px #00000055, 0 0 25px #009ee322;
}

.checkout-opt-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.option-pix .checkout-opt-icon {
  background: linear-gradient(135deg, #00d4aa25, #00b08e15);
  border: 1px solid #00d4aa55;
  color: #00e8bc;
}

.option-card .checkout-opt-icon {
  background: linear-gradient(135deg, #009ee325, #007bb015);
  border: 1px solid #009ee355;
  color: #2ec5ff;
}

.checkout-opt-content {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.checkout-opt-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.checkout-opt-title {
  font-size: 15px;
  font-weight: 700;
  color: #f7f4ff;
  letter-spacing: -0.2px;
}

.checkout-opt-pill {
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 2px 7px;
  border-radius: 100px;
}

.pill-pix {
  background: #00d4aa25;
  color: #00f3c5;
  border: 1px solid #00d4aa55;
}

.pill-mp {
  background: #009ee325;
  color: #38c8ff;
  border: 1px solid #009ee355;
}

.checkout-opt-sub {
  font-size: 12px;
  color: #978da7;
}

.checkout-opt-arrow {
  color: #83759b;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s var(--ease), color 0.25s;
}

.checkout-option-btn:hover .checkout-opt-arrow {
  transform: translateX(4px);
  color: #fff;
}

/* Features List */
.checkout-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 16px;
  padding: 16px 18px;
  background: #08060d;
  border-radius: 16px;
  border: 1px solid #ffffff08;
  margin-bottom: 20px;
}

.checkout-feat-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  color: #9d94ab;
}

.checkout-feat-icon {
  width: 15px;
  height: 15px;
  color: #af83fa;
  flex-shrink: 0;
}

/* Footer note & restore */
.checkout-footer {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 11px;
  color: #6a6177;
}

.checkout-restore-link {
  background: none;
  border: 0;
  padding: 0;
  color: #9a88b5;
  font-size: 11px;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}

.checkout-restore-link:hover {
  color: #d8c2ff;
}

/* =========================================
   TELA DO PIX (DENTRO DO POP-UP)
   ========================================= */

.pix-view {
  display: flex;
  flex-direction: column;
  animation: pix-fade-in 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes pix-fade-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.pix-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.pix-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 0;
  color: #b0a5c4;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 8px;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}

.pix-back-btn:hover {
  color: #fff;
  background: #ffffff0a;
}

.pix-timer-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  color: #f1b778;
  background: #f1b77818;
  border: 1px solid #f1b77833;
  padding: 4px 10px;
  border-radius: 100px;
}

/* QR Code Section */
.pix-qr-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}

.pix-qr-card {
  width: 240px;
  height: 240px;
  background: #ffffff;
  padding: 16px;
  border-radius: 20px;
  box-shadow: 0 15px 40px #00000088, 0 0 30px #00d4aa22;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.pix-qr-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

/* Beneficiary Card */
.pix-beneficiary-card {
  background: #100c1a;
  border: 1px solid #ffffff12;
  border-radius: 16px;
  padding: 14px 16px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pix-beneficiary-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #ffffff0a;
  padding-bottom: 8px;
  margin-bottom: 2px;
}

.pix-beneficiary-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #bcaed2;
}

.pix-beneficiary-badge {
  font-size: 10px;
  font-weight: 700;
  color: #00f3c5;
  background: #00d4aa18;
  border: 1px solid #00d4aa44;
  padding: 2px 7px;
  border-radius: 100px;
}

.pix-beneficiary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  gap: 12px;
}

.pix-beneficiary-row span {
  color: #8b809d;
  font-size: 11.5px;
}

.pix-beneficiary-row strong {
  color: #f0eaf8;
  font-size: 12px;
  text-align: right;
  word-break: break-all;
}

.pix-beneficiary-actions {
  display: flex;
  gap: 8px;
  margin-top: 6px;
  padding-top: 8px;
  border-top: 1px solid #ffffff0a;
}

.pix-btn-cnpj, .pix-btn-print {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 10px;
  background: #1b1527;
  border: 1px solid #ffffff14;
  color: #d1b5ff;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}

.pix-btn-cnpj:hover, .pix-btn-print:hover {
  background: #281d3c;
  color: #fff;
  transform: translateY(-1px);
}

.pix-btn-cnpj.copied {
  background: #00d4aa22;
  color: #00f3c5;
  border-color: #00f3c566;
}

.pix-qr-caption {
  font-size: 12px;
  color: #9288a3;
  margin-top: 10px;
  text-align: center;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Pix Copia e Cola Field */
.pix-copy-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 22px;
}

.pix-section-label {
  font-size: 11.5px;
  font-weight: 600;
  color: #b3a7c6;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.pix-code-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #09070e;
  border: 1px solid #ffffff12;
  border-radius: 14px;
  padding: 10px 14px;
}

.pix-code-text {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11.5px;
  color: #8b819c;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  user-select: all;
}

.pix-copy-btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 20px;
  font-size: 13.5px;
  font-weight: 700;
  border-radius: 14px;
  background: linear-gradient(135deg, #00d4aa, #00aa88);
  color: #061c17;
  border: 1px solid #33ffd5;
  cursor: pointer;
  box-shadow: 0 4px 20px #00d4aa33;
  transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
}

.pix-copy-btn:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #1affd3, #00bf99);
  box-shadow: 0 8px 30px #00d4aa55;
}

.pix-copy-btn.copied {
  background: #23222e;
  color: #00f3c5;
  border-color: #00f3c577;
  box-shadow: 0 0 20px #00f3c533;
}

/* Direct Key Info */
.pix-alt-key {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: #110d1b;
  border: 1px solid #ffffff0a;
  border-radius: 12px;
  margin-bottom: 20px;
  font-size: 11.5px;
}

.pix-alt-key span {
  color: #8a7f9b;
}

.pix-alt-key strong {
  color: #ddd4ed;
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-weight: 600;
}

.pix-quick-copy {
  background: none;
  border: 0;
  color: #c4a1ff;
  font-size: 11px;
  cursor: pointer;
  padding: 2px 6px;
  font-weight: 600;
  border-radius: 6px;
}

.pix-quick-copy:hover {
  color: #fff;
  background: #9f66f522;
}

/* Instructions */
.pix-steps {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #0a0812;
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 22px;
  border: 1px solid #ffffff08;
}

.pix-step {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12px;
  color: #9a90aa;
  line-height: 1.45;
}

.pix-step-num {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #231b31;
  color: #caa8ff;
  font-size: 10px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

/* Confirm Action Button */
.pix-confirm-btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 700;
  background: linear-gradient(110deg, #af87fa, #9765ee);
  color: #110a1c;
  border: 1px solid #c19fff;
  cursor: pointer;
  box-shadow: 0 4px 25px #9c66f133;
  transition: transform 0.25s var(--ease), background 0.25s, box-shadow 0.25s;
}

.pix-confirm-btn:hover {
  transform: translateY(-2px);
  background: linear-gradient(110deg, #c09cff, #a878f7);
  box-shadow: 0 8px 35px #9c66f155;
}

.pix-confirm-btn:disabled {
  opacity: 0.7;
  cursor: wait;
}

/* Success View */
.checkout-success-view {
  text-align: center;
  padding: 30px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: pix-fade-in 0.4s var(--ease);
}

.checkout-success-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00d4aa2e, #00aa8810);
  border: 2px solid #00f3c5;
  color: #00f3c5;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  box-shadow: 0 0 50px #00d4aa44;
  animation: pop-bounce 0.6s var(--ease);
}

@keyframes pop-bounce {
  0% { transform: scale(0.4); opacity: 0; }
  60% { transform: scale(1.15); }
  100% { transform: scale(1); opacity: 1; }
}

.checkout-success-icon svg {
  width: 36px;
  height: 36px;
}

.checkout-success-title {
  font-size: 26px;
  font-weight: 750;
  color: #faf7ff;
  margin: 0 0 8px;
}

.checkout-success-sub {
  font-size: 14px;
  color: #9d92af;
  margin: 0 0 24px;
  max-width: 380px;
}

.checkout-success-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: 100px;
  background: linear-gradient(110deg, #af87fa, #9765ee);
  color: #110a1c;
  font-weight: 700;
  font-size: 13.5px;
  border: 1px solid #c19fff;
  cursor: pointer;
  transition: transform 0.2s;
}

.checkout-success-btn:hover {
  transform: translateY(-2px);
}

/* Spinner */
.checkout-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid #110a1c33;
  border-top-color: #110a1c;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Mobile responsiveness */
@media (max-width: 600px) {
  .checkout-dialog {
    width: calc(100vw - 20px);
    max-height: calc(100dvh - 24px);
    border-radius: 22px;
  }
  .checkout-body {
    padding: 28px 20px 24px;
  }
  .checkout-title {
    font-size: 22px;
  }
  .checkout-description {
    font-size: 12.5px;
  }
  .checkout-price-card {
    padding: 14px 16px;
  }
  .checkout-price-value {
    font-size: 24px;
  }
  .checkout-features {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 14px;
  }
  .pix-qr-card {
    width: 190px;
    height: 190px;
  }
}
