:root {
  --primary: #7c3aed;
  --primary-dark: #6430c9;
  --primary-light: #f3edff;
  --bg: #f7f7fb;
  --card: #fff;
  --text: #262237;
  --text-muted: #737083;
  --border: #e8e6ee;
  --success: #16815d;
  --warning: #bd812b;
  --radius: 18px;
  --shadow: 0 4px 24px #28203f05, 0 1px 3px #28203f03;
  --checkout-header-height: 76px;
  --ink: var(--text);
  --muted: var(--text-muted);
  --purple: var(--primary);
  --purple-dark: var(--primary-dark);
  --purple-light: var(--primary-light);
  --purple-border: #e6dbfb;
  --line: var(--border);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--checkout-header-height) + 16px); }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); color: var(--text); font: 14px/1.6 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button, input, select, textarea, fieldset { min-width: 0; }
button, input, select, textarea { max-width: 100%; }
button, .copy-pill { min-height: 44px; }
button:disabled { cursor: wait; opacity: .7; }
a { color: var(--primary); text-underline-offset: 3px; }
a:hover { color: var(--primary-dark); }
svg { flex-shrink: 0; vertical-align: middle; }
img { max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }
:focus-visible { outline: 3px solid #b6a0f5; outline-offset: 3px; }
[hidden] { display: none !important; }
.skip-link { position: fixed; top: -100px; left: 16px; z-index: 2000; padding: 12px 16px; border-radius: 10px; background: var(--primary); color: #fff; }
.skip-link:focus { top: 12px; }

/* Shared shell and the existing purchase flow. */
.header, .top { position: sticky; top: 0; z-index: 100; padding: 16px 24px; background: #fff; border-bottom: 1px solid var(--border); }
.header-inner, .top-inner { max-width: 1092px; margin: auto; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.logo, .brand { display: flex; align-items: center; gap: 11px; color: var(--text); text-decoration: none; min-width: 0; font-size: 17px; font-weight: 650; letter-spacing: -.025em; line-height: 1.3; }
.brand-text { overflow-wrap: anywhere; }
.logo-icon, .brandmark { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 42px; border: 1px solid #e4d8fc; border-radius: 12px; background: var(--primary-light); color: var(--primary); flex-shrink: 0; }
.logo-icon svg { width: 23px; height: 23px; }
.secure-badge, .safe { display: flex; align-items: center; gap: 7px; color: #777381; font-size: 12px; flex-shrink: 0; }
.secure-badge svg { color: #7e778e; }
.main, .wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 42px 24px 56px; flex: 1; min-width: 0; overflow-wrap: anywhere; }
.page-title, .head { margin-bottom: 30px; }
.eyebrow { display: flex; align-items: center; gap: 7px; margin-bottom: 10px; color: #8b7baf; font-size: 10px; font-weight: 650; letter-spacing: .12em; }
.eyebrow-dot { width: 5px; height: 5px; border-radius: 50%; background: #9d7bdd; }
.page-title h1, .head h1 { margin: 0 0 10px; color: #282036; font-size: clamp(27px, 3vw, 34px); line-height: 1.2; letter-spacing: -.045em; font-weight: 650; overflow-wrap: anywhere; }
.page-title > p, .head > p { margin: 0; color: var(--text-muted); font-size: 14px; line-height: 1.65; }
.checkout-grid, .layout { display: grid; grid-template-columns: minmax(0,1fr) 380px; gap: 28px; align-items: start; }
.checkout-grid > *, .layout > * { min-width: 0; }
.form-card, .card, .panel, .summary-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); min-width: 0; }
.purchase-grid .form-card { grid-column: 1; grid-row: 1; padding: 32px; }
.summary-card { padding: 26px; position: sticky; top: calc(var(--checkout-header-height) + 24px); }
.purchase-grid .summary-card { grid-column: 2; grid-row: 1; max-height: calc(100dvh - var(--checkout-header-height) - 48px); overflow-y: auto; scrollbar-width: thin; scrollbar-color: #ddd5ec transparent; }
.section { margin: 0 0 28px; padding: 0 0 28px; border: 0; border-bottom: 1px solid var(--border); }
.payment-section { margin-bottom: 0; padding-bottom: 0; border-bottom: 0; }
.section-header { display: flex; align-items: center; gap: 12px; margin: 0 0 20px; padding: 0; width: 100%; }
.section-number, .num { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 30px; width: 30px; height: 32px; border: 1px solid #e9e0fa; border-radius: 9px; color: var(--primary); background: #faf7ff; font-size: 11px; font-weight: 650; font-variant-numeric: tabular-nums; }
.section-title { display: block; margin: 0; color: #352d44; font-size: 15px; line-height: 1.45; font-weight: 650; letter-spacing: -.015em; }
.section-description { display: block; margin: 3px 0 0; color: #786f83; font-size: 12px; line-height: 1.5; }
.form-group { min-width: 0; margin: 0; }
.form-group label { display: block; margin-bottom: 8px; color: #514959; font-size: 13px; font-weight: 550; }
.required-mark { color: var(--primary); }
.input-wrapper, .inputwrap { position: relative; min-width: 0; }
.input-wrapper > svg, .inputwrap > span { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: #a09aa9; pointer-events: none; }
.input-wrapper input, .inputwrap input, select, textarea { width: 100%; min-height: 48px; border: 1px solid #dedbe6; border-radius: 10px; padding: 12px 14px; background-color: #fff; color: var(--text); font-size: 14px; transition: border-color .15s, box-shadow .15s; }
.input-wrapper input, .inputwrap input { padding-left: 44px; }
input::placeholder, textarea::placeholder { color: #aaa4b2; }
input:focus, select:focus, textarea:focus { outline: none; border-color: #a287d6; box-shadow: 0 0 0 3px #7c3aed0b; }
select { appearance: none; padding-right: 38px; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%237b7189' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 13px center; }
select:disabled { background-color: #f8f7fa; cursor: default; color: #77717e; }
.helper-text, .hint { margin: 9px 0 0; color: #786f83; font-size: 12px; line-height: 1.6; }
.field-error { margin: 8px 0 0; color: #b74358; font-size: 12px; line-height: 1.5; }
input[aria-invalid="true"] { border-color: #d77b8c; background-color: #fffafb; }
.region-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.payment-methods, .methods { display: grid; grid-template-columns: repeat(auto-fit,minmax(130px,1fr)); gap: 10px; }
.payment-card, .method { position: relative; display: flex; flex-direction: column; align-items: flex-start; width: 100%; min-height: 142px; padding: 16px 12px 13px; border: 1px solid #e1dde8; border-radius: 11px; background: #fff; text-align: left; color: var(--text); text-decoration: none; transition: border-color .15s, background .15s, box-shadow .15s; }
.payment-card:hover, .method:hover { border-color: #bda5ea; background: #fdfbff; }
.payment-card.selected, .method.selected { border-color: #9a73df; background: #faf7ff; box-shadow: 0 0 0 1px #c3a5f533; }
.payment-card .radio, .method .radio { position: absolute; top: 13px; right: 11px; display: inline-flex; justify-content: center; align-items: center; width: 16px; height: 16px; border: 1.5px solid #d7d0e1; border-radius: 50%; }
.payment-card.selected .radio { background: var(--primary); border-color: var(--primary); }
.payment-card.selected .radio::after { content: ""; width: 5px; height: 5px; border-radius: 50%; background: #fff; }
.payment-icon { width: 32px; height: 32px; margin-bottom: 12px; display: inline-flex; justify-content: center; align-items: center; border-radius: 9px; font-size: 15px; font-weight: 700; flex-shrink: 0; }
.payment-icon.stripe { color: #fff; background: #635bff; }
.payment-icon.razorpay { color: #fff; background: #182c55; }
.payment-icon.crypto { color: #a9650c; background: #fff2d9; }
.payment-name { display: block; margin-bottom: 4px; font-size: 13px; font-weight: 650; }
.payment-desc { display: block; color: #786b82; font-size: 12px; line-height: 1.5; }
.payment-tag { display: block; margin-top: auto; padding-top: 9px; color: #8c6bb7; font-size: 10px; line-height: 1.45; overflow-wrap: anywhere; }
.cta-area { margin-top: 28px; }
.checkout-verification { margin-bottom: 18px; min-width: 0; }
.checkout-verification .helper-text { margin: 0 0 12px; }
.checkout-recaptcha-container { display: flex; justify-content: center; width: 100%; min-width: 0; }
.checkout-recaptcha-frame { position: relative; width: 304px; max-width: 100%; height: 78px; overflow: hidden; }
#checkout-recaptcha-widget { position: absolute; top: 0; left: 0; transform-origin: top left; }
.custom-captcha > label { display: block; margin-bottom: 10px; font-size: 13px; font-weight: 550; color: #514959; }
.custom-captcha-challenge { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.custom-captcha-challenge img { display: block; max-width: 100%; height: auto; border: 1px solid #e8dff4; border-radius: 10px; }
.custom-captcha-challenge button { min-height: 44px; padding: 9px 12px; border: 1px solid #e1d3f5; border-radius: 8px; color: var(--primary); background: var(--primary-light); font-size: 12px; }
#checkout-captcha-answer { width: 100%; min-height: 48px; margin-bottom: 10px; padding: 12px 14px; border: 1px solid #dedbe6; border-radius: 10px; font-size: 16px; text-transform: uppercase; }
.primary-btn, .checkoutbtn, .modal-primary-btn { width: 100%; min-height: 52px; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 18px; border: 1px solid #7135d6; border-radius: 11px; color: #fff; background: linear-gradient(110deg,#8250e6,#7436da); box-shadow: 0 4px 9px #7135d61a; font-size: 14px; font-weight: 600; line-height: 1.5; text-align: center; text-decoration: none; transition: background .15s, box-shadow .15s; }
.primary-btn:hover, .checkoutbtn:hover, .modal-primary-btn:hover { background: var(--primary-dark); box-shadow: 0 5px 12px #7135d623; color: #fff; }
#ctaText { min-width: 0; overflow-wrap: anywhere; }
.button-lock, .button-arrow { display: inline-flex; }
.button-lock svg, .button-arrow svg { width: 17px; height: 17px; }
.button-arrow { margin-left: auto; }
.button-lock { margin-right: auto; }
.button-spinner { display: none; width: 18px; height: 18px; flex: 0 0 18px; border: 2px solid #ffffff66; border-top-color: #fff; border-radius: 50%; animation: checkout-spin .8s linear infinite; }
.primary-btn[aria-busy="true"] .button-spinner { display: inline-block; }
.primary-btn[aria-busy="true"] .button-lock, .primary-btn[aria-busy="true"] .button-arrow { display: none; }
@keyframes checkout-spin { to { transform: rotate(360deg); } }
.secure-note, .bottomnote { display: flex; justify-content: center; align-items: flex-start; gap: 6px; margin: 13px 0 0; color: #7d7188; font-size: 10px; line-height: 1.5; text-align: center; }
.secure-note svg { width: 14px; height: 14px; margin-top: 1px; }
.submission-status { margin: 12px 0 0; color: #7d698e; font-size: 12px; text-align: center; }

/* A single summary, shown first on mobile and alongside the form on desktop. */
.summary-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 22px; }
.summary-heading h2, .summary-title { margin: 0; color: #635b6e; font-size: 14px; font-weight: 600; }
.summary-icon { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 32px; border-radius: 9px; border: 1px solid #ece7f3; background: #faf8fd; color: #9b87b4; }
.summary-icon svg { width: 16px; height: 16px; }
.product-kind, .product-info .badge { color: #84609e; font-size: 9px; font-weight: 650; letter-spacing: .08em; }
.product-info h3 { margin: 9px 0 12px; color: #33293f; font-size: 18px; line-height: 1.5; font-weight: 600; letter-spacing: -.025em; overflow-wrap: anywhere; }
.product-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; color: #7a6d87; font-size: 11px; }
.version-tag { display: inline-block; padding: 2px 7px; border-radius: 5px; border: 1px solid #eee8f4; color: #97879f; background: #faf8fc; font-size: 10px; overflow-wrap: anywhere; }
.btn-open-details-modal { display: grid; grid-template-columns: minmax(0,1fr); align-items: center; gap: 12px; width: 100%; min-height: 44px; padding: 12px; border: 1px solid #e8dff4; border-radius: 10px; background: #fff; color: #75518f; font-size: 12px; font-weight: 550; line-height: 1.6; text-align: left; }
.btn-open-details-modal > span { min-width: 0; overflow-wrap: anywhere; }
.btn-open-details-modal .btn-open-badge { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; margin: 0; justify-self: start; white-space: normal; }
.btn-open-details-modal:hover { background: #faf7ff; border-color: #cbb7e2; }
/* Included catalog products, shared by checkout and crypto payment. */
.bundle-inclusions { margin-top: 22px; }
.bundle-inclusions h4 { margin: 0 0 12px; color: #51425f; font-size: 13px; font-weight: 600; line-height: 1.5; }
.bundle-products { list-style: none; margin: 0; padding: 0; border: 1px solid #e8dff2; border-radius: 12px; background: #fdfbff; }
.bundle-product { display: grid; grid-template-columns: 36px minmax(0,1fr); align-items: start; gap: 12px; padding: 15px 13px; }
.bundle-product + .bundle-product { border-top: 1px solid #ece5f3; }
.bundle-product-icon { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border: 1px solid #e8def6; border-radius: 10px; color: #875ac1; background: #f3edfc; }
.bundle-product-copy { min-width: 0; overflow-wrap: anywhere; }
.bundle-product-copy strong { display: block; color: #493953; font-size: 13px; font-weight: 600; line-height: 1.55; }
.bundle-product-copy p { margin: 5px 0 0; color: #796b85; font-size: 12px; line-height: 1.65; }
.bundle-product-status { display: inline-flex; align-items: center; gap: 4px; margin-top: 8px; color: #37734f; font-size: 11px; font-weight: 550; line-height: 1.5; }
.bundle-product-status svg { width: 14px; height: 14px; }
.summary-breakdown { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border); }
.price-row, .row { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; margin-bottom: 14px; font-size: 13px; line-height: 1.6; }
.price-row .label { margin: 0; color: #8a8194; font-size: inherit; }
.price-row .value { color: #4f405e; font-weight: 550; text-align: right; font-variant-numeric: tabular-nums; }
.price-row > :last-child { min-width: 0; max-width: 65%; overflow-wrap: anywhere; }
.price-row .included { color: #438f72; font-size: 11px; font-weight: 550; }
.savings-row { color: var(--success); }
.savings-row .label { color: #579479; }
.savings-row small { display: block; color: #6d8773; font-size: 10px; }
.savings-row strong { font-size: 12px; font-weight: 550; text-align: right; }
.total-row, .total { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--border); }
.total-row > .label { margin: 4px 0 0; font-size: 14px; font-weight: 600; }
.total-value, .total-row > div { display: flex; align-items: flex-end; flex-direction: column; min-width: 0; max-width: 75%; }
.total-row .amount, .total strong { color: #7143be; font-size: 29px; line-height: 1.25; font-weight: 650; letter-spacing: -.045em; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.total-row .currency { margin: 4px 0 0; color: #80708f; background: none; font-size: 10px; font-weight: 550; letter-spacing: .06em; }
.delivery-box, .delivery { display: flex; gap: 10px; align-items: flex-start; margin-top: 23px; padding: 13px 12px; background: #faf8fd; border: 1px solid #eee7f6; border-radius: 10px; }
.delivery-icon { display: inline-flex; color: #a08ab7; margin-top: 2px; }
.delivery-icon svg { width: 17px; height: 17px; }
.delivery-box strong, .delivery strong { display: block; margin-bottom: 4px; color: #796583; font-size: 12px; font-weight: 550; }
.delivery-box p, .delivery p { margin: 0; color: #776783; font-size: 12px; line-height: 1.6; }
.delivery-box .check { color: var(--success); flex-shrink: 0; }
.divider, hr { height: 1px; margin: 20px 0; padding: 0; border: 0; background: var(--border); }
.product, .key-card { min-width: 0; }
.product { display: flex; align-items: flex-start; gap: 14px; margin: 18px 0; }
.product-icon, .producticon { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 46px; flex: 0 0 44px; border-radius: 12px; color: #fff; font-size: 20px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 14px; border: 1px solid transparent; border-radius: 9px; color: #fff; background: var(--primary); font-size: 13px; font-weight: 550; text-decoration: none; }
.btn:hover { color: #fff; background: var(--primary-dark); }
.product-info, .modal-header-left { min-width: 0; }
.product-info p { color: var(--text-muted); font-size: 13px; overflow-wrap: anywhere; }
.product-info .badge { display: block; }
.back-link, .back { display: inline-flex; min-height: 44px; align-items: center; margin-bottom: 12px; color: var(--text-muted); }

/* Existing payment steps, receipts and accessible state messaging. */
.progress, .steps { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; margin: 20px 0 28px; color: var(--text-muted); font-size: 12px; }
.progress .step { display: flex; align-items: center; gap: 7px; }
.progress .dot { display: inline-flex; justify-content: center; align-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--primary-light); color: var(--primary); font-size: 11px; }
.progress .active { color: var(--primary); font-weight: 600; }
.progress .active .dot { background: var(--primary); color: #fff; }
.progress .completed { color: var(--success); }
.progress .completed .dot { color: #fff; background: var(--success); }
.progress .line { height: 1px; width: 28px; background: var(--border); }
.err, .ok { margin: 0 0 24px; border: 1px solid #efcfd5; border-radius: 10px; padding: 14px 16px; color: #a5485b; background: #fff6f7; font-size: 13px; line-height: 1.65; overflow-wrap: anywhere; }
.ok { border-color: #cce8d9; color: #267455; background: #f2faf5; }
.key-card { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; padding: 14px; border: 1px solid var(--border); border-radius: 10px; background: #faf9fc; font: 13px/1.6 ui-monospace, monospace; overflow-wrap: anywhere; }
.copy-pill, .btn-open-badge { border: 1px solid #e1d3f5; border-radius: 8px; padding: 8px 12px; color: var(--primary); background: var(--primary-light); font-size: 12px; }
.tag-core, .tag-mod, .tag-private { display: inline-block; padding: 2px 6px; margin: 0 4px 3px 0; border-radius: 4px; color: #8463a8; background: #f4eefb; font-size: 9px; font-weight: 600; text-transform: uppercase; }
.footer, .foot { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; width: 100%; max-width: 1140px; margin: auto auto 0; padding: 20px 24px 28px; color: #81758d; font-size: 11px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
.footer a, .foot a { display: inline-flex; min-height: 44px; align-items: center; color: #796987; text-decoration: none; font-size: 11px; }
.footer a:hover, .foot a:hover { color: var(--primary); text-decoration: underline; }

/* Product details: one accessible dialog, independently scrollable on small screens. */
.order-details-modal-backdrop { position: fixed; inset: 0; display: none; justify-content: center; align-items: center; z-index: 1000; padding: 24px; background: #20172c66; backdrop-filter: blur(4px); }
.order-details-modal-backdrop.active { display: flex; }
.order-details-modal-dialog { display: flex; flex-direction: column; width: 100%; max-width: 660px; max-height: calc(100vh - 48px); max-height: calc(100dvh - 48px); border: 1px solid #ebe4f3; border-radius: 20px; background: #fff; box-shadow: 0 24px 80px #28183d33; overflow: hidden; }
.order-details-modal-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; padding: 24px; border-bottom: 1px solid var(--border); flex-shrink: 0; }
.modal-header-badge { display: inline-block; margin-bottom: 8px; color: #816297; font-size: 10px; font-weight: 550; }
.modal-header-title { margin: 0; font-size: 20px; font-weight: 600; line-height: 1.45; letter-spacing: -.025em; overflow-wrap: anywhere; }
.order-details-modal-close { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; flex: 0 0 44px; border: 1px solid var(--border); border-radius: 10px; background: #fbfafd; color: #93869f; font-size: 25px; line-height: 1; }
.order-details-modal-close:hover { color: var(--primary); background: var(--primary-light); }
.order-details-modal-body { padding: 24px; overflow-y: auto; overscroll-behavior: contain; min-height: 0; overflow-wrap: anywhere; }
.modal-order-name { margin: 0 0 20px; color: #64506f; font-size: 14px; line-height: 1.6; font-weight: 550; overflow-wrap: anywhere; }
.modal-section-title { margin: 26px 0 14px; color: #6c5b7b; font-size: 12px; font-weight: 600; }
.modal-section-title:first-child { margin-top: 0; }
.modal-features-list { list-style: none; display: grid; gap: 10px; margin: 0; padding: 0; }
.modal-features-list li { display: flex; gap: 10px; align-items: flex-start; color: #7e718d; font-size: 13px; }
.feat-check { color: #67977a; flex-shrink: 0; }
.modal-links-grid { display: grid; gap: 8px; }
.modal-ext-link { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 11px 14px; border: 1px solid #e9e2f2; border-radius: 9px; color: #8c6ea7; font-size: 12px; text-decoration: none; }
.modal-ext-link span { min-width: 0; overflow-wrap: anywhere; }
.modal-ext-link > span:last-child { margin-left: auto; }
.modal-ext-link:hover { background: #faf7ff; border-color: #c8b0e1; }
.modal-pricing-box { margin-top: 24px; padding: 18px; border: 1px solid var(--border); border-radius: 12px; background: #fcfbfd; }
.order-details-modal-footer { padding: 18px 24px; border-top: 1px solid var(--border); flex-shrink: 0; background: #fff; }
.modal-primary-btn { min-height: 46px; font-size: 13px; }

/* Crypto View Specific (read/pay.html) */
.crypto-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ecfdf5;
  color: #065f46;
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid #a7f3d0;
}
.crypto-badge .dot {
  width: 6px;
  height: 6px;
  background: var(--success);
  border-radius: 50%;
}
.crypto-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.crypto-network-pill {
  font-size: 12px;
  color: var(--text-muted);
  background: #f8fafc;
  border: 1px solid var(--border);
  padding: 3px 10px;
  border-radius: 20px;
}
.crypto-network-pill strong {
  color: var(--primary);
}
.crypto-selection-head {
  margin-bottom: 10px;
}
.crypto-selection-head .section-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
}
.crypto-selection-head .section-sub {
  font-size: 12px;
  color: var(--text-muted);
}
.coin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 8px;
  margin-bottom: 14px;
  padding: 2px;
}
.coin-card {
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 8px 10px;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  background: white;
  text-align: left;
  min-width: 0;
}
.coin-card:hover {
  border-color: #c4b5fd;
  background: #faf5ff;
  transform: translateY(-1px);
}
.coin-card.selected, .coin-card.active {
  border-color: var(--primary);
  background: var(--primary-light);
  box-shadow: 0 0 0 1px var(--primary);
}
.coin-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 11px;
  color: white;
  flex-shrink: 0;
}
.coin-icon.usdt { background: #26a17b; }
.coin-icon.usdc { background: #2775ca; font-size: 18px; }
.coin-icon.trx { background: #ef0027; }
.coin-icon.btc { background: #f7931a; }
.coin-icon.eth { background: #627eea; }
.coin-icon.bnb { background: #f3ba2f; color: #000; }
.coin-icon.sol { background: #14f195; color: #000; }
.coin-icon.ltc { background: #345d9d; }
.coin-icon.doge { background: #c2a633; }
.coin-icon.matic, .coin-icon.pol { background: #8247e5; }
.coin-name {
  font-weight: 700;
  font-size: 13px;
  color: var(--text);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.coin-network {
  font-size: 10.5px;
  color: var(--text-muted);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.coins-toggle-wrap {
  margin-top: 2px;
  margin-bottom: 16px;
  display: flex;
  justify-content: flex-start;
}
.btn-toggle-coins {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  color: var(--primary);
  border: 1.5px solid #ddd6fe;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}
.btn-toggle-coins:hover {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary-dark);
}
.btn-toggle-coins svg {
  transition: transform 0.2s ease;
}

.selected-network {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 12px;
  margin-bottom: 14px;
}
.selected-network span:last-child {
  font-weight: 700;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.payment-details {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  background: #fafafa;
}
.crypto-split-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: 18px;
  align-items: start;
}
.crypto-qr-pane {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.qr-box {
  width: 220px;
  height: auto;
  max-width: 100%;
  aspect-ratio: 1;
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
}
.qr-box img, .qr-box svg {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  display: block;
}
.qr-hint {
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
  display: flex;
  align-items: center;
  gap: 4px;
}
.crypto-fields-pane {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.crypto-field-group {
  text-align: left;
}
.crypto-field-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}
.crypto-amount-row, .crypto-addr-row {
  display: flex;
  align-items: center;
  gap: 8px;
  background: white;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 7px 12px;
  transition: border-color 0.15s;
}
.crypto-amount-row:hover, .crypto-addr-row:hover {
  border-color: #cbd5e1;
}
.crypto-amount-display {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px;
  min-width: 0;
}
.crypto-amount-num {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 20px;
  font-weight: 750;
  color: var(--text);
  letter-spacing: -0.02em;
}
.crypto-coin-badge {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-light);
  padding: 2px 7px;
  border-radius: 6px;
}
.crypto-addr-text {
  flex: 1;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.copy-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--primary-light);
  color: var(--primary);
  border: 1px solid #ddd6fe;
  border-radius: 7px;
  padding: 6px 11px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.15s ease;
}
.copy-action-btn:hover {
  background: #ddd6fe;
  color: var(--primary-dark);
}
.copy-action-btn.copied {
  background: #ecfdf5;
  color: #059669;
  border-color: #a7f3d0;
}
.contract-box {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  padding: 7px 10px;
  font-size: 11.5px;
  color: #1e40af;
  display: flex;
  gap: 6px;
  align-items: flex-start;
  text-align: left;
}
.contract-box strong { display: inline-block; margin-right: 4px; }
.warning-box-compact {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 8px;
  padding: 7px 10px;
  font-size: 11.5px;
  color: #92400e;
  display: flex;
  gap: 6px;
  align-items: flex-start;
  text-align: left;
  line-height: 1.35;
}
.accelerate-box-compact {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  margin-top: 12px;
  text-align: left;
}
.accel-header {
  font-size: 11.5px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}
.accel-header strong {
  color: var(--text);
}
.tx-row-compact {
  display: flex;
  gap: 8px;
}
.tx-row-compact input {
  flex: 1;
  padding: 8px 12px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  outline: none;
  background: white;
}
.tx-row-compact input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.1);
}
.verify-btn-compact {
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s;
}
.verify-btn-compact:hover {
  background: var(--primary-dark);
}
.status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  padding: 10px 14px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 12.5px;
}
.crypto-mobile-summary-footer {
  display: none;
  text-align: center;
  margin-top: 12px;
  font-size: 12px;
  color: var(--text-muted);
}
.crypto-mobile-summary-footer a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: underline;
}
.status-left {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}
.status-dot {
  width: 8px;
  height: 8px;
  background: var(--warning);
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.timer {
  font-variant-numeric: tabular-nums;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 5px;
}


.wallet-quick-choices { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; width: 100%; max-width: 280px; margin: 10px 0; }
.wallet-choice { min-height: 44px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px; background: #fff; color: #756582; font-size: 12px; line-height: 1.4; }
.wallet-choice:hover, .wallet-choice[aria-pressed="true"] { color: #7543ac; border-color: #b697e6; background: #faf7ff; }
.coin-name, .coin-network { display: block; }
/* Responsive containment for the existing cryptocurrency payment controls. */
.crypto-header-bar, .selected-network, .status-bar { flex-wrap: wrap; }
.coin-grid { min-width: 0; }
.coin-card { min-height: 48px; }
.crypto-amount-num { overflow-wrap: anywhere; }
.tx-row-compact input { min-width: 0; }
.copy-action-btn { min-height: 44px; }
.checkout-grid.crypto-layout { grid-template-columns: 360px minmax(0,1fr); }
.crypto-summary-card { min-width: 0; }
.summary-email { font-size: 12px; overflow-wrap: anywhere; }
.secure-box { display: flex; gap: 10px; align-items: flex-start; margin-top: 20px; padding: 14px; border: 1px solid #e8ddf7; border-radius: 10px; background: #faf7ff; color: #8b729f; font-size: 12px; }
.support-link { margin-top: 16px; text-align: center; font-size: 12px; color: var(--text-muted); }
@media (max-width:960px) {
  .checkout-grid:not(.crypto-layout), .layout { grid-template-columns: minmax(0,1fr); }
  .checkout-grid:not(.purchase-grid):not(.crypto-layout) > .summary-card { position: static; }
  .purchase-checkout { max-width: 720px; }
  .purchase-grid { grid-template-columns: minmax(0,1fr); gap: 22px; }
  .purchase-grid .summary-card, .purchase-grid .form-card { grid-column: 1; grid-row: auto; max-height: none; overflow: visible; position: static; }
}
@media (max-width:860px) {
  .checkout-grid.crypto-layout { grid-template-columns: minmax(0,1fr); }
  .crypto-summary-card { position: static; }
  .crypto-split-row { grid-template-columns: minmax(0,1fr); }
  .crypto-fields-pane, .crypto-qr-pane { width: 100%; }
}
@media (max-width:640px) {
  :root { --checkout-header-height: 70px; }
  .header, .top { padding: 14px 16px; }
  .header-inner { gap: 12px; }
  .logo { font-size: 14px; gap: 9px; }
  .logo-icon { width: 34px; height: 36px; border-radius: 10px; }
  .logo-icon svg { width: 21px; height: 21px; }
  .secure-badge { font-size: 10px; gap: 5px; }
  .secure-badge svg { width: 13px; height: 13px; }
  .main, .wrap { padding: 28px 16px 36px; }
  .page-title, .head { margin-bottom: 24px; }
  .page-title h1, .head h1 { font-size: 27px; line-height: 1.25; }
  .page-title > p, .head > p { font-size: 13px; }
  .purchase-grid { gap: 18px; }
  .purchase-grid .form-card, .purchase-grid .summary-card, .card, .panel { padding: 22px 20px; border-radius: 16px; }
  .summary-heading { margin-bottom: 14px; }
  .product-info h3 { font-size: 18px; }
  .summary-breakdown { margin-top: 17px; padding-top: 15px; }
  .purchase-checkout .summary-card .delivery-box { margin-top: 15px; padding: 12px 0 0; align-items: center; border: 0; border-top: 1px solid var(--border); border-radius: 0; background: none; }
  .purchase-checkout .summary-card .delivery-box strong { margin: 0; font-size: 12px; }
  .purchase-checkout .summary-card .delivery-box p { display: none; }
  .purchase-checkout .summary-card .total-row { margin-top: 16px; padding-top: 16px; }
  .purchase-checkout .summary-card .price-row { margin-bottom: 11px; }
  .section { margin-bottom: 24px; padding-bottom: 24px; }
  .payment-section { margin-bottom: 0; padding-bottom: 0; }
  .section-header { gap: 10px; margin-bottom: 18px; }
  .section-title { font-size: 15px; }
  .section-description, .helper-text { font-size: 12px; }
  .form-group label { font-size: 13px; }
  .input-wrapper input, select, textarea, .tx-row-compact input { font-size: 16px; }
  .region-fields { grid-template-columns: minmax(0,1fr); gap: 17px; }
  .payment-methods { grid-template-columns: minmax(0,1fr); gap: 9px; }
  .payment-card { min-height: 82px; display: grid; grid-template-columns: 34px minmax(0,1fr); grid-template-rows: auto auto auto; column-gap: 12px; padding: 13px 42px 13px 14px; }
  .payment-card .payment-icon { grid-column: 1; grid-row: 1 / 4; width: 34px; height: 36px; margin: 0; align-self: center; }
  .payment-name { grid-column: 2; font-size: 14px; margin: 0; }
  .payment-desc { grid-column: 2; font-size: 12px; }
  .payment-tag { grid-column: 2; font-size: 11px; margin: 0; padding-top: 2px; }
  .payment-card .radio { top: 50%; right: 14px; transform: translateY(-50%); }
  .primary-btn { min-height: 54px; font-size: 14px; padding: 14px; }
  .secure-note { font-size: 10px; }
  .footer { justify-content: center; text-align: center; gap: 6px; padding: 12px 16px 24px; }
  .footer nav { justify-content: center; gap: 20px; }
  .footer a { font-size: 12px; }
  .order-details-modal-backdrop { padding: 12px; }
  .order-details-modal-dialog { max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); border-radius: 16px; }
  .order-details-modal-header, .order-details-modal-body { padding: 20px; }
  .modal-header-title { font-size: 18px; }
  .order-details-modal-footer { padding: 16px 20px; }
  .coin-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .coin-card { padding: 10px 8px; }
  .coin-name, .coin-network { white-space: normal; overflow-wrap: anywhere; }
  .coin-network { font-size: 11px; }
  .tx-row-compact { flex-direction: column; }
  .verify-btn-compact { width: 100%; min-height: 44px; }
  .crypto-qr-pane { margin-bottom: 4px; }
  .payment-details { padding: 14px; }
}
@media (prefers-reduced-motion:reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
