:root {
  --red: #8000ff;
  --red-dim: rgba(128, 0, 255, 0.12);
  --red-border: rgba(128, 0, 255, 0.35);
  --red-glow: rgba(128, 0, 255, 0.25);
  --bg: #080808;
  --sidebar: #0c0c0c;
  --surface: #111111;
  --surface2: #1a1a1a;
  --border: rgba(255, 255, 255, 0.07);
  --text: #f0f0f0;
  --muted: #777;
  --font: 'Poppins', -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
.hidden { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 20% 40%, rgba(128, 0, 255, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(128, 0, 255, 0.08) 0%, transparent 45%),
    linear-gradient(180deg, #060606 0%, #0a0a0a 50%, #060606 100%);
  z-index: -2;
  pointer-events: none;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(128, 0, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(128, 0, 255, 0.04) 1px, transparent 1px);
  background-size: 50px 50px;
  z-index: -1;
  pointer-events: none;
}

/* Loading */
.loading-screen {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: var(--muted);
}
.loader {
  width: 40px; height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--red);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── MODERN 2-COLUMN CHECKOUT LAYOUT ─── */
.checkout-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1.5rem;
}

.checkout-layout {
  display: grid;
  grid-template-columns: 380px minmax(0, 1fr);
  gap: 3rem;
  max-width: 1180px;
  width: 100%;
  margin: 0 auto;
  align-items: start;
}

/* ─── LEFT COLUMN: SUMMARY PANEL ─── */
.summary-column {
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 2rem;
}

.back-to-merchant {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: #8b8d97;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  margin-bottom: 2rem;
  transition: color 0.15s ease;
  width: fit-content;
}
.back-to-merchant:hover {
  color: #fff;
}
.back-to-merchant i {
  font-size: 0.72rem;
}

.summary-brand-logo {
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
}
.summary-brand-logo img {
  height: 36px;
  width: auto;
  object-fit: contain;
}

.summary-header-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.summary-heading {
  font-size: 1.45rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.summary-hero-price {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  font-size: 1.6rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
}
.summary-hero-price .currency-tag {
  font-size: 0.75rem;
  font-weight: 600;
  color: #8b8d97;
  letter-spacing: 0.05em;
}

/* Product Card */
.cart-items-container {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.product-item-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem 0.9rem;
  background: #111216;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  margin-bottom: 1.5rem;
}

.product-thumb-box {
  width: 44px;
  height: 44px;
  background: #17181e;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.product-thumb-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-info-box {
  flex: 1;
  min-width: 0;
}
.product-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: #f3f4f6;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.product-pricing {
  font-size: 0.78rem;
  color: #7e828d;
  margin-top: 0.15rem;
}

.product-stepper {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  background: #181920;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 7px;
  padding: 0.18rem 0.4rem;
}
.stepper-btn {
  background: none;
  border: none;
  color: #8b8d97;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  padding: 0 0.25rem;
  line-height: 1;
  transition: color 0.15s;
}
.stepper-btn:hover { color: #fff; }
.stepper-count {
  font-size: 0.82rem;
  font-weight: 600;
  color: #f3f4f6;
  min-width: 14px;
  text-align: center;
}

.trash-item-btn {
  background: none;
  border: none;
  color: #7709e5;
  opacity: 0.75;
  font-size: 0.92rem;
  cursor: pointer;
  padding: 0.35rem;
  border-radius: 6px;
  transition: all 0.15s;
}
.trash-item-btn:hover {
  opacity: 1;
  color: #9933ff;
  background: rgba(119, 9, 229, 0.1);
}

/* Discount row */
.discount-wrapper {
  margin-bottom: 1.5rem;
}
.discount-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.discount-lbl {
  font-size: 0.88rem;
  color: #9ca3af;
  font-weight: 400;
}
.add-coupon-link {
  background: none;
  border: none;
  color: #8b8d97;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  padding: 0;
  text-decoration: none;
  transition: color 0.15s;
}
.add-coupon-link:hover {
  color: #9d3bff;
}

.discount-expandable {
  margin-top: 0.75rem;
}
.discount-form-row {
  display: flex;
  gap: 0.5rem;
}
.discount-form-row input {
  flex: 1;
  padding: 0.65rem 0.85rem;
  background: #111216;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  color: #fff;
  font-size: 0.85rem;
  outline: none;
}
.discount-form-row input:focus {
  border-color: #9d3bff;
}
.btn-apply-coupon {
  padding: 0.65rem 1rem;
  background: #1c1d24;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}
.btn-apply-coupon:hover {
  background: #7709e5;
  border-color: #7709e5;
}
.discount-feedback {
  font-size: 0.78rem;
  margin-top: 0.35rem;
}
.discount-feedback.valid { color: #22c55e; }
.discount-feedback.error { color: #9a44ef; }

/* Totals Breakdown */
.summary-breakdown {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}
.breakdown-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: #8b8d97;
}
.breakdown-val {
  font-weight: 600;
  color: #f3f4f6;
}
.breakdown-row.discount-row { color: #9a44ef; }
.breakdown-row.discount-row .breakdown-val { color: #9a44ef; }
.breakdown-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.06);
  margin: 0.25rem 0;
}
.breakdown-row.total-row {
  font-size: 1rem;
  color: #ffffff;
  font-weight: 600;
}
.breakdown-row.total-row .highlight-red {
  font-size: 1.15rem;
  font-weight: 800;
  color: #9d3bff;
}

/* Summary Footer */
.summary-bottom-footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.footer-action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.report-abuse-btn {
  font-size: 0.75rem;
  color: #9d3bff;
  opacity: 0.85;
  text-decoration: none;
  transition: opacity 0.15s;
}
.report-abuse-btn:hover { opacity: 1; text-decoration: underline; }

.footer-aux-tools {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.pay-mobile-action {
  background: none;
  border: none;
  color: #8b8d97;
  font-size: 0.78rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
  transition: color 0.15s;
}
.pay-mobile-action:hover { color: #fff; }
.theme-mode-btn {
  background: none;
  border: none;
  color: #8b8d97;
  font-size: 0.85rem;
  cursor: pointer;
}
.theme-mode-btn:hover { color: #fff; }

.powered-by-brand-row {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  color: #71717a;
}
.powered-by-brand-row .hanzo-text {
  color: #ffffff;
  font-weight: 700;
  font-size: 0.82rem;
}
/* ─── RIGHT COLUMN: CHECKOUT PANEL ─── */
.checkout-main-col {
  background: #0c0d11;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 1.75rem 1.85rem;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
  min-width: 0;
  width: 100%;
}

.checkout-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.checkout-main-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.01em;
}

/* Language Selector Pill */
.lang-dropdown-wrapper {
  position: relative;
}
.lang-pill {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 0.9rem;
  background: #15161d;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  color: #f3f4f6;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  outline: none;
  transition: all 0.15s ease;
  min-width: 140px;
}
.lang-pill:hover {
  background: #1c1e27;
  border-color: rgba(255, 255, 255, 0.2);
}
.lang-flag-img {
  width: 20px;
  height: 15px;
  object-fit: cover;
  border-radius: 2px;
  flex-shrink: 0;
}
.lang-chevron-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-left: auto;
  line-height: 0.55;
  color: #8b8d97;
  font-size: 0.5rem;
}
.lang-chevron-stack i {
  display: block;
}

.lang-popup-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: #15161d;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 0.35rem;
  min-width: 170px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.lang-menu-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.75rem;
  color: #d1d5db;
  font-size: 0.85rem;
  border-radius: 8px;
  cursor: pointer;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  transition: all 0.12s;
}
.lang-menu-item .lang-flag-img {
  width: 20px;
  height: 15px;
}
.lang-menu-item:hover,
.lang-menu-item.active {
  background: rgba(119, 9, 229, 0.12);
  color: #ffffff;
}

/* Delivery Information Box */
.delivery-card-box {
  background: #121318;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 1rem 1.15rem;
  margin-bottom: 1.25rem;
}
.delivery-card-header {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #f3f4f6;
  margin-bottom: 0.65rem;
}
.delivery-envelope-icon {
  color: #8b8d97;
  font-size: 0.95rem;
}

.custom-dark-input {
  width: 100%;
  padding: 0.8rem 1rem;
  background: #090a0d;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  color: #ffffff;
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
  transition: all 0.2s ease;
}
.custom-dark-input:focus {
  border-color: #9d3bff;
  box-shadow: 0 0 0 3px rgba(119, 9, 229, 0.15);
}
.custom-dark-input::placeholder {
  color: #636674;
}

.account-create-line {
  margin-top: 0.65rem;
}
.pass-input {
  margin-top: 0.5rem;
}

/* Payment Selector Grid */
.payment-selector-grid {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.pay-method-box {
  background: #121318;
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 1rem 1.15rem;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}
.pay-method-box:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: #15161d;
}

/* Active Red Theme for Selected Option */
.pay-method-box.selected {
  border-color: #9d3bff;
  background: rgba(119, 9, 229, 0.04);
  box-shadow: 0 0 20px rgba(119, 9, 229, 0.18);
}

.pay-method-content {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.pay-method-icon-wrap {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}
.pay-method-icon-wrap.red-glow {
  background: rgba(119, 9, 229, 0.12);
  color: #9d3bff;
}
.pay-method-icon-wrap.blue-glow {
  background: rgba(59, 130, 246, 0.12);
  color: #60a5fa;
}
.pay-method-icon-wrap.orange-glow {
  background: rgba(245, 158, 11, 0.12);
  color: #f59e0b;
}
.pay-method-icon-wrap.paypal-glow {
  background: rgba(0, 156, 222, 0.13);
  color: #009cde;
}
.pay-method-icon-wrap.swish-glow {
  background: rgba(130, 195, 65, 0.12);
  overflow: hidden;
}
.pay-method-icon-wrap .swish-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pay-method-text {
  flex: 1;
  min-width: 0;
}
.pay-method-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: #f3f4f6;
  margin-bottom: 0.25rem;
}
.pay-method-sub {
  font-size: 0.74rem;
  color: #8b8d97;
}

.processor-recommended {
  display: inline-flex;
  margin-left: .45rem;
  padding: .18rem .45rem;
  border-radius: 999px;
  background: rgba(34, 197, 94, .14);
  border: 1px solid rgba(34, 197, 94, .35);
  color: #61d98b;
  font-size: .62rem;
  font-weight: 800;
  text-transform: uppercase;
  vertical-align: middle;
}

.alternative-modal-actions {
  display: grid;
  gap: .7rem;
  margin-top: 1rem;
}

.alternative-modal-actions button { width: 100%; }

.pay-badges-row {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}
.mini-brand-badge {
  font-size: 0.52rem;
  font-weight: 800;
  padding: 0.15rem 0.3rem;
  border-radius: 4px;
  background: #1d1e26;
  color: #e5e7eb;
  border: 1px solid rgba(255, 255, 255, 0.06);
  letter-spacing: 0.02em;
}
.mini-brand-badge.visa { background: #1a1f71; color: #fff; }
.mini-brand-badge.mc { background: #000; color: #ff5f00; }
.mini-brand-badge.apple { background: #000; color: #fff; }
.mini-brand-badge.gpay { background: #202124; color: #4285f4; }

.pay-active-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #9d3bff;
  color: #fff;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  flex-shrink: 0;
  box-shadow: 0 0 10px rgba(119, 9, 229, 0.5);
}
.pay-method-box.selected .pay-active-check {
  display: flex;
}

/* Hide floating cart on checkout page */
body:has(#checkoutApp) #hanzoCartWidget {
  display: none !important;
}
.crypto-coins-inline {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}
.crypto-coin-pill {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  font-weight: 700;
  color: #fff;
}
.crypto-coin-pill.btc { background: #f7931a; }
.crypto-coin-pill.ltc { background: #345d9d; }
.crypto-coin-pill.eth { background: #627eea; }
.crypto-coin-pill.sol { background: linear-gradient(135deg, #9945ff, #14f195); }
.crypto-coin-pill.usdc { background: #2775ca; }
.crypto-pill-count {
  font-size: 0.7rem;
  font-weight: 600;
  color: #8b8d97;
  margin-left: 0.2rem;
}

/* Crypto Coin Buttons Panel */
.crypto-selection-container {
  background: #121318;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 1rem 1.15rem;
  margin-bottom: 1.25rem;
}
.crypto-grid-header {
  font-size: 0.78rem;
  font-weight: 600;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}
.crypto-coin-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(88px, 1fr));
  gap: 0.55rem;
}
.crypto-pill-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 0.45rem;
  background: #090a0d;
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.crypto-pill-btn:hover {
  border-color: rgba(255, 255, 255, 0.25);
  background: #14151b;
}
.crypto-pill-btn.active {
  border-color: #9d3bff;
  background: rgba(119, 9, 229, 0.08);
  box-shadow: 0 0 14px rgba(119, 9, 229, 0.2);
}
.coin-icon-circle {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.35rem;
}
.coin-icon-circle.ltc { background: #345d9d; }
.coin-icon-circle.btc { background: #f7931a; }
.coin-icon-circle.eth { background: #627eea; }
.coin-icon-circle.sol { background: linear-gradient(135deg, #9945ff, #14f195); }
.coin-icon-circle.usdc { background: #2775ca; }

.coin-name {
  font-size: 0.76rem;
  font-weight: 600;
  color: #f3f4f6;
  line-height: 1.2;
}
.coin-symbol {
  font-size: 0.65rem;
  color: #8b8d97;
}

/* Gift card input drawer */
.giftcard-input-drawer {
  background: #121318;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 1.15rem;
  margin-bottom: 1.25rem;
}
.giftcard-drawer-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.35rem;
}
.giftcard-drawer-desc {
  font-size: 0.78rem;
  color: #8b8d97;
  margin-bottom: 0.75rem;
}
.gift-code-field {
  letter-spacing: 0.08em;
  font-family: monospace;
}
.eneba-help-line {
  margin-top: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: #8b8d97;
}
.eneba-out-link {
  color: #9d3bff;
  text-decoration: none;
  font-weight: 500;
}
.eneba-out-link:hover { text-decoration: underline; }

/* Discord Promo Card */
.discord-promo-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.9rem 1.15rem;
  background: #121318;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  text-decoration: none;
  margin-bottom: 1.25rem;
  transition: all 0.15s ease;
}
.discord-promo-card:hover {
  background: #151720;
  border-color: rgba(88, 101, 242, 0.4);
}
.discord-promo-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(88, 101, 242, 0.15);
  color: #5865f2;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}
.discord-promo-content {
  flex: 1;
  min-width: 0;
}
.discord-promo-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: #f3f4f6;
}
.discord-promo-subtitle {
  font-size: 0.74rem;
  color: #8b8d97;
  margin-top: 0.1rem;
}
.discord-promo-arrow {
  color: #636674;
  font-size: 0.75rem;
}

/* Before You Pay Card */
.before-pay-card-box {
  background: #121318;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 1.15rem;
  margin-bottom: 1.25rem;
}
.before-pay-title-text {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.25rem;
}
.before-pay-subtitle-text {
  font-size: 0.78rem;
  color: #8b8d97;
  margin-bottom: 1rem;
  line-height: 1.45;
}

.terms-checkbox-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.custom-check-row {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  cursor: pointer;
}
.custom-check-row input {
  display: none;
}
.custom-check-box {
  width: 18px;
  height: 18px;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  border-radius: 5px;
  background: #090a0d;
  flex-shrink: 0;
  margin-top: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}
.custom-check-row input:checked + .custom-check-box {
  background: #9d3bff;
  border-color: #9d3bff;
}
.custom-check-row input:checked + .custom-check-box::after {
  content: '✓';
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
}
.custom-check-text {
  font-size: 0.82rem;
  color: #d1d5db;
  line-height: 1.45;
}
.tos-outlink {
  color: #9d3bff;
  text-decoration: none;
  margin-left: 0.25rem;
}
.unsub-disclaimer {
  display: block;
  font-size: 0.72rem;
  color: #71717a;
  margin-top: 0.15rem;
}

/* Primary RED Continue Button */
.btn-continue-red {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.95rem 1.5rem;
  background: linear-gradient(135deg, #7709e5, #9933ff);
  color: #ffffff;
  border: none;
  border-radius: 12px;
  font-family: inherit;
  font-size: 0.98rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(119, 9, 229, 0.4);
  transition: all 0.2s ease;
}
.btn-continue-red:hover {
  background: linear-gradient(135deg, #8313f2, #a64dff);
  box-shadow: 0 6px 26px rgba(119, 9, 229, 0.6);
  transform: translateY(-1px);
}
.btn-continue-red:active {
  transform: translateY(0);
}
.btn-continue-red:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}
/* ─── PAYMENT VIEWS & INVOICE SCREENS ─── */
.payment-view-section {
  animation: fadeIn 0.25s ease-out;
}

.payment-card-box {
  background: #0c0d11;
  border-radius: 16px;
}

.crypto-invoice-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.crypto-large-badge {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(119, 9, 229, 0.12);
  border: 1px solid rgba(119, 9, 229, 0.3);
  color: #9d3bff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  flex-shrink: 0;
}
.card-badge-icon {
  background: rgba(119, 9, 229, 0.12);
  color: #9d3bff;
  font-size: 1.3rem;
}

.crypto-head-title {
  font-size: 0.78rem;
  font-weight: 600;
  color: #8b8d97;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.crypto-head-amount {
  font-size: 1.45rem;
  font-weight: 800;
  color: #ffffff;
  font-family: ui-monospace, monospace;
  letter-spacing: -0.01em;
  margin-top: 0.15rem;
}

/* QR code presentation */
.qr-container {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}
.qr-code-wrapper {
  background: #ffffff;
  padding: 1rem;
  border-radius: 16px;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}
.qr-img {
  display: block;
  border-radius: 6px;
  width: 200px;
  height: 200px;
}
.qr-center-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  padding: 2px;
  box-shadow: 0 0 0 3px #fff;
}

/* Payment field rows */
.payment-field-group {
  margin-bottom: 1.15rem;
}
.payment-field-group label {
  display: block;
  font-size: 0.74rem;
  font-weight: 600;
  color: #8b8d97;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.4rem;
}
.exact-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.4rem;
  font-size: 0.74rem;
  font-weight: 600;
  color: #8b8d97;
  letter-spacing: 0.05em;
}
.exact-pill {
  font-size: 0.65rem;
  color: #9d3bff;
  background: rgba(119, 9, 229, 0.1);
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
}

.copy-input-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.copy-input-wrap input {
  flex: 1;
  padding: 0.8rem 1rem;
  background: #121318;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  color: #ffffff;
  font-family: ui-monospace, monospace;
  font-size: 0.85rem;
  outline: none;
}
.btn-copy-action {
  width: 44px;
  height: 44px;
  background: #15161d;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: #9ca3af;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: all 0.15s;
  flex-shrink: 0;
}
.btn-copy-action:hover {
  background: rgba(119, 9, 229, 0.15);
  border-color: #9d3bff;
  color: #fff;
}
.copy-tooltip {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: #111;
  color: #22c55e;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.25rem 0.5rem;
  border-radius: 5px;
  border: 1px solid rgba(34, 197, 94, 0.4);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
  white-space: nowrap;
}
.btn-copy-action.copied .copy-tooltip {
  opacity: 1;
}

/* Crypto Actions Stack */
.crypto-actions-stack {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin: 1.25rem 0;
}
.btn-open-wallet-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem;
  background: #15161d;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: #f3f4f6;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  transition: all 0.15s;
}
.btn-open-wallet-action:hover {
  background: #1c1d27;
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.btn-check-payment-red {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.95rem;
  background: linear-gradient(135deg, #7709e5, #9933ff);
  border: none;
  border-radius: 10px;
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(119, 9, 229, 0.35);
  transition: all 0.2s;
}
.btn-check-payment-red:hover {
  box-shadow: 0 6px 24px rgba(119, 9, 229, 0.55);
  transform: translateY(-1px);
}

/* Underpayment Banner */
.underpayment-banner {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 1.25rem;
}
.underpay-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: #fbbf24;
  margin-bottom: 0.35rem;
}
.underpayment-banner p {
  font-size: 0.78rem;
  color: #d1d5db;
  line-height: 1.45;
}
.underpay-stats {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.5rem;
  margin: 0.75rem 0;
}
.underpay-stats div {
  background: rgba(0, 0, 0, 0.4);
  padding: 0.5rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.underpay-stats span {
  display: block;
  font-size: 0.65rem;
  color: #8b8d97;
  text-transform: uppercase;
}
.underpay-stats strong {
  display: block;
  font-size: 0.82rem;
  color: #fff;
  margin-top: 0.15rem;
}
.underpay-stats .shortfall strong {
  color: #fbbf24;
}
.underpay-sub {
  font-size: 0.74rem !important;
  color: #9ca3af !important;
}

/* Live Waiting Bar */
.payment-waiting-bar {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.85rem 1rem;
  background: #121318;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  font-size: 0.82rem;
  color: #22c55e;
  margin-bottom: 1.25rem;
}
.pulsing-circle {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6);
  animation: pulse 1.8s infinite;
  flex-shrink: 0;
}

/* Invoice Details List */
.invoice-details-list {
  background: #121318;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 1.25rem;
}
.inv-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.82rem;
}
.inv-row:last-child {
  border-bottom: none;
}
.inv-row > span:first-child {
  color: #8b8d97;
}
.inv-val {
  color: #ffffff;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.inv-val code {
  font-family: ui-monospace, monospace;
  font-size: 0.78rem;
  color: #e5e7eb;
}
.inv-val.highlight-red {
  color: #9d3bff;
  font-weight: 700;
}
.inv-copy-mini {
  background: none;
  border: none;
  color: #8b8d97;
  cursor: pointer;
  font-size: 0.78rem;
  padding: 2px;
}
.inv-copy-mini:hover { color: #fff; }

.btn-back-checkout {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  background: none;
  border: none;
  color: #8b8d97;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  padding: 0.5rem 0;
  transition: color 0.15s;
}
.btn-back-checkout:hover {
  color: #fff;
}

/* ─── EMBEDDED CARD CHECKOUT VIEW ─── */
.card-status-bar {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.85rem;
  color: #22c55e;
  margin-bottom: 0.5rem;
}
.card-helper-text {
  font-size: 0.82rem;
  color: #8b8d97;
  line-height: 1.5;
  margin-bottom: 1.25rem;
}

.embedded-card-container {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  overflow: hidden;
  background: #000000;
  margin-bottom: 1rem;
}
#cardCheckoutFrame {
  display: block;
  width: 100%;
  height: min(76vh, 760px);
  min-height: 620px;
  border: none;
  background: #000000;
}

.secured-badge-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  font-size: 0.75rem;
  color: #71717a;
  margin-top: 1rem;
}
.secured-badge-row i {
  color: #22c55e;
}

/* ─── MODALS ─── */
.custom-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
}
.modal-dialog {
  position: relative;
  background: #111217;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  max-width: 420px;
  width: 100%;
  padding: 1.5rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  z-index: 1;
}
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.modal-head h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}
.modal-close-btn {
  background: none;
  border: none;
  color: #8b8d97;
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
}
.modal-close-btn:hover { color: #fff; }
.modal-hint {
  font-size: 0.82rem;
  color: #9ca3af;
  line-height: 1.5;
}
.mobile-qr-wrap {
  background: #ffffff;
  padding: 1rem;
  border-radius: 14px;
  display: flex;
  justify-content: center;
  margin: 1.25rem 0 0.5rem;
}
.mobile-qr-wrap img {
  display: block;
  width: 180px;
  height: 180px;
}

/* ─── RESPONSIVE BREAKPOINTS ─── */
@media (max-width: 960px) {
  .checkout-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .summary-column {
    position: static;
  }
  .checkout-wrapper {
    padding: 1.5rem 1rem;
  }
}

@media (max-width: 580px) {
  .checkout-main-col {
    padding: 1.25rem 1rem;
    border-radius: 16px;
  }
  .payment-selector-grid {
    grid-template-columns: 1fr;
  }
  .crypto-coin-buttons {
    grid-template-columns: repeat(3, 1fr);
  }
  .underpay-stats {
    grid-template-columns: 1fr;
  }
  #cardCheckoutFrame {
    min-height: 540px;
    height: 72vh;
  }
}
/* ─── ERROR & SUCCESS OVERLAYS ─── */
.error-overlay {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: var(--bg);
}
.error-box {
  background: #111217;
  border: 1px solid rgba(154, 68, 239, 0.3);
  border-radius: 18px;
  padding: 2.5rem 2rem;
  max-width: 440px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}
.error-icon {
  font-size: 2.5rem;
  color: #9a44ef;
  margin-bottom: 1rem;
}
.error-box p {
  color: #f3f4f6;
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6); }
  70% { box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}
