/* ── Checkout & Thank You ── */
.checkout-page, .thankyou-page {
    position: relative; z-index: 2; min-height: 100vh; padding: 100px 20px 60px;
}
.checkout-grid {
    display: grid; grid-template-columns: 1fr 1.1fr; gap: 28px;
    max-width: 960px; margin: 0 auto; align-items: start;
}
.checkout-summary, .checkout-form-wrap {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 28px;
}
.checkout-summary h2, .checkout-form-wrap h2 {
    font-size: 20px; font-weight: 800; margin-bottom: 20px; letter-spacing: -0.02em;
}
.summary-product {
    display: flex; gap: 16px; align-items: center; margin-bottom: 20px;
    padding-bottom: 20px; border-bottom: 1px solid var(--border);
}
.summary-icon {
    width: 56px; height: 56px; background: #fff; color: #000;
    border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.summary-icon svg { width: 32px; height: 32px; }
.summary-product h3 { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.summary-product p { font-size: 12px; color: var(--text-dim); }
.summary-price { display: flex; align-items: baseline; gap: 10px; margin-bottom: 16px; }
.summary-price .now { font-size: 32px; font-weight: 800; }
.summary-price .was { font-size: 14px; color: var(--text-muted); text-decoration: line-through; }
.summary-perks { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.summary-perks li { font-size: 13px; color: var(--text-dim); display: flex; align-items: center; gap: 8px; }
.summary-perks li::before { content: '✓'; color: #6f6; font-weight: 700; }
.secure-badge {
    display: flex; align-items: center; gap: 8px; margin-top: 20px;
    font-size: 12px; color: var(--text-muted); padding-top: 16px; border-top: 1px solid var(--border);
}
.checkout-form { display: flex; flex-direction: column; gap: 16px; }
.checkout-form[hidden] { display: none !important; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 12px; font-weight: 600; color: var(--text-dim); }
.form-group input {
    padding: 12px 14px; border-radius: 10px; border: 1px solid var(--border);
    background: rgba(255,255,255,0.04); color: var(--text); font-family: var(--font); font-size: 14px;
}
.form-group input:focus { outline: none; border-color: var(--border-hot); }
.form-group input::placeholder { color: var(--text-muted); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.checkout-note { font-size: 11px; color: var(--text-muted); line-height: 1.5; }
.checkout-btn { width: 100%; padding: 14px; font-size: 15px; margin-top: 4px; }
.checkout-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.checkout-error {
    font-size: 12px; color: #ff6b6b; padding: 10px 12px; border-radius: 8px;
    background: rgba(255,80,80,0.1); border: 1px solid rgba(255,80,80,0.25); display: none;
}
.checkout-error.show { display: block; }
.processing-overlay {
    position: fixed; inset: 0; z-index: 9999; background: rgba(0,0,0,0.85);
    display: none; align-items: center; justify-content: center; flex-direction: column; gap: 16px;
    backdrop-filter: blur(8px);
}
.processing-overlay.show { display: flex; }
.processing-spinner {
    width: 40px; height: 40px; border: 3px solid var(--border);
    border-top-color: #fff; border-radius: 50%; animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Thank you */
.thankyou-wrap { max-width: 640px; margin: 0 auto; text-align: center; }
.thankyou-icon {
    width: 72px; height: 72px; background: #fff; color: #000; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-size: 36px;
    margin: 0 auto 24px; animation: fadeUp 0.5s both;
}
.thankyou-title { font-size: clamp(28px, 5vw, 40px); font-weight: 800; margin-bottom: 12px; letter-spacing: -0.03em; }
.thankyou-sub { font-size: 16px; color: var(--text-dim); margin-bottom: 32px; line-height: 1.6; }
.thankyou-card {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
    padding: 28px; text-align: left; margin-bottom: 24px;
}
.thankyou-card h3 { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 12px; }
.license-display {
    font-family: var(--mono); font-size: 18px; font-weight: 700; padding: 16px;
    background: rgba(255,255,255,0.06); border: 1px solid var(--border-hot); border-radius: 10px;
    letter-spacing: 0.06em; margin-bottom: 12px; word-break: break-all;
}
.email-sent { font-size: 14px; color: var(--text-dim); display: flex; align-items: center; gap: 8px; }
.email-sent strong { color: var(--text); }
.thankyou-steps { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.thankyou-steps li { font-size: 13px; color: var(--text-dim); display: flex; gap: 12px; align-items: flex-start; }
.thankyou-steps li span {
    width: 24px; height: 24px; border-radius: 50%; background: rgba(255,255,255,0.08);
    display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; flex-shrink: 0;
}
.thankyou-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 28px; }

body.theme-light .checkout-summary, body.theme-light .checkout-form-wrap,
body.theme-light .thankyou-card { background: rgba(255,255,255,0.9); }
body.theme-light .form-group input { background: #fff; color: #111; }
body.theme-light .summary-icon { background: #111; color: #fff; }
body.theme-light .thankyou-icon { background: #111; color: #fff; }

/* ── Product icon-live (premium-style for all products) ── */
.media-live {
    display: flex; align-items: center; justify-content: center;
}
.live-logo-wrap {
    position: relative; z-index: 3; display: flex; align-items: center; justify-content: center;
    transition: transform 0.15s ease-out; will-change: transform;
}
.mark--live {
    width: 64px; height: 64px; background: #fff; color: #000;
    border-radius: 14px; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 0 30px rgba(255,255,255,0.2);
    position: relative; z-index: 2; animation: premiumFloat 3s ease-in-out infinite;
}
.mark--live svg { width: 36px; height: 36px; }
.live-pulse {
    position: absolute; inset: -14px; border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.3);
    animation: premiumPulse 2.2s ease-out infinite; pointer-events: none;
}
.live-speed-lines {
    position: absolute; inset: 0; pointer-events: none; z-index: 1; overflow: hidden;
}
.live-speed-lines::before, .live-speed-lines::after {
    content: ''; position: absolute; top: 50%; height: 2px; width: 40%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: premiumStreak 1.8s linear infinite;
}
.live-speed-lines::before { left: -40%; }
.live-speed-lines::after { right: -40%; animation-delay: 0.9s; transform: scaleX(-1); }
.product-card:hover .mark--live { box-shadow: 0 0 40px var(--live-glow, rgba(255,255,255,0.35)); }

.media-live[data-theme="delay-plus"] { --live-glow: rgba(255,255,255,0.35); background: radial-gradient(circle at 50% 50%, rgba(100,200,255,0.12) 0%, #0a0a0a 55%, #000 100%); }
.media-live[data-theme="delay"] { --live-glow: rgba(255,255,255,0.35); background: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.08) 0%, #0a0a0a 55%, #000 100%); }
.media-live[data-theme="fps"] { --live-glow: rgba(255,255,255,0.35); background: radial-gradient(circle at 50% 40%, rgba(57,255,20,0.1) 0%, #0a0a0a 50%, #000 100%); }
.media-live[data-theme="ping"] { --live-glow: rgba(255,255,255,0.35); background: radial-gradient(circle at 50% 50%, rgba(0,150,255,0.1) 0%, #0a0a0a 55%, #000 100%); }
.media-live[data-theme="controller"] { --live-glow: rgba(255,255,255,0.35); background: linear-gradient(135deg, rgba(87,242,135,0.08) 0%, #0a0a0a 40%, rgba(0,112,243,0.08) 100%); }
.media-live[data-theme="keyboard"] { --live-glow: rgba(255,255,255,0.35); background: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.06) 0%, #111 55%, #000 100%); }
.media-live[data-theme="aim"] { --live-glow: rgba(255,255,255,0.35); background: radial-gradient(circle at 50% 50%, rgba(255,60,60,0.1) 0%, #0a0a0a 55%, #000 100%); }
.media-live[data-theme="shotgun"] { --live-glow: rgba(255,255,255,0.35); background: radial-gradient(circle at 50% 50%, rgba(255,140,40,0.1) 0%, #0a0a0a 55%, #000 100%); }
/* All product icons use same white speed-mark as Blank Premium */
.media-live .mark--live { background: #fff; color: #000; box-shadow: 0 0 30px rgba(255,255,255,0.2); }
.media-live .live-pulse { border-color: rgba(255,255,255,0.35); }
.media-live .live-speed-lines::before,
.media-live .live-speed-lines::after { background: linear-gradient(90deg, transparent, rgba(255,255,255,0.45), transparent); }

.media-live .live-stat { bottom: 12px; z-index: 4; }
.media-live .product-media-overlay { z-index: 5; }

@media (max-width: 768px) {
    .checkout-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
}

/* ── Promo & pricing ── */
.price-breakdown { width: 100%; margin-bottom: 8px; }
.price-line { display: flex; justify-content: space-between; font-size: 13px; color: var(--text-dim); margin-bottom: 6px; }
.price-line.total-line { font-size: 18px; font-weight: 800; color: var(--text); margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--border); }
.discount-line { color: #6f6; display: none; }
.discount-line.show { display: flex; }
.promo-applied { display: none; font-size: 12px; color: #6f6; padding: 10px 14px; border-radius: 8px; background: rgba(100,255,100,0.1); border: 1px solid rgba(100,255,100,0.28); margin-bottom: 12px; }
.promo-applied.show { display: block; animation: fadeUp 0.35s both; }
.promo-feedback { font-size: 12px; margin-top: 8px; padding: 10px 12px; border-radius: 8px; line-height: 1.5; }
.promo-feedback--success { color: #6f6; background: rgba(100,255,100,0.1); border: 1px solid rgba(100,255,100,0.28); }
.promo-feedback--error { color: #ff6b6b; background: rgba(255,80,80,0.1); border: 1px solid rgba(255,80,80,0.25); }
.promo-applied-btn { background: rgba(100,255,100,0.15) !important; border-color: rgba(100,255,100,0.35) !important; color: #6f6 !important; cursor: default; }
.promo-input-applied { border-color: rgba(100,255,100,0.45) !important; }
.price-flash { animation: priceFlash 0.5s ease; }
@keyframes priceFlash {
    0% { color: #6f6; transform: scale(1.08); }
    100% { color: inherit; transform: scale(1); }
}
.total-line .now { transition: color 0.2s; }
.discount-line.show { display: flex; animation: fadeUp 0.3s both; }
.promo-row { display: flex; gap: 8px; }
.promo-row input { flex: 1; }

/* ── Specials & modals ── */
.specials-error { font-size: 12px; color: #ff6b6b; margin: 8px 0; }
.refer-success { margin-top: 12px; font-size: 12px; color: var(--text-dim); }
.refer-link { word-break: break-all; font-size: 11px; padding: 8px; background: rgba(255,255,255,0.04); border-radius: 8px; margin-top: 6px; }
.refer-card .form-group { margin-top: 10px; }
.refer-card .form-group label { display: block; font-size: 12px; font-weight: 600; color: var(--text-dim); margin-bottom: 6px; }
.field-hint { font-weight: 400; color: var(--text-muted); font-size: 11px; }
.refer-card input, .extras-grid input { width: 100%; padding: 10px 12px; border-radius: 8px; border: 1px solid var(--border); background: rgba(255,255,255,0.04); color: var(--text); font-family: inherit; font-size: 13px; }
.bd-modal {
    position: fixed; inset: 0; z-index: 9990; background: rgba(0,0,0,0.75);
    display: flex; align-items: center; justify-content: center; padding: 20px; backdrop-filter: blur(4px);
}
.bd-modal[hidden] { display: none; }
.bd-modal-inner { padding: 32px; max-width: 440px; width: 100%; position: relative; max-height: 90vh; overflow-y: auto; }
.auth-tabs { display: flex; gap: 8px; margin-bottom: 12px; }
.auth-tab-desc { font-size: 13px; color: var(--text-dim); margin-bottom: 18px; line-height: 1.5; min-height: 40px; }
.auth-tab {
    flex: 1; padding: 10px; border-radius: 8px; border: 1px solid var(--border);
    background: transparent; color: var(--text-dim); font-family: inherit; font-weight: 600; cursor: pointer;
}
.auth-tab.active { background: #fff; color: #000; border-color: transparent; }
.aff-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 16px 0; }
.aff-stat { padding: 14px; border-radius: 10px; background: rgba(255,255,255,0.04); border: 1px solid var(--border); }
.aff-stat .lbl { display: block; font-size: 11px; color: var(--text-muted); margin-bottom: 4px; }
.aff-stat .val { font-size: 20px; font-weight: 800; }
.aff-link-box { padding: 12px; border-radius: 8px; background: rgba(255,255,255,0.04); border: 1px solid var(--border); font-size: 11px; word-break: break-all; margin-top: 8px; }
body.theme-light .auth-tab.active { background: #111; color: #fff; }
body.theme-light .refer-card input, body.theme-light .extras-grid input { background: #fff; color: #111; }

/* ── Cart ── */
.cart-btn {
    position: relative; display: flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--border);
    background: rgba(255,255,255,0.04); color: var(--text); cursor: pointer;
}
.cart-badge {
    position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px;
    border-radius: 999px; background: #fff; color: #000; font-size: 10px; font-weight: 800;
    font-family: var(--mono); display: none; align-items: center; justify-content: center;
}
.cart-badge:not([hidden]) { display: flex; }
.cart-overlay {
    position: fixed; inset: 0; z-index: 9980; background: rgba(0,0,0,0.6); backdrop-filter: blur(2px);
}
.cart-overlay[hidden], .cart-drawer[hidden] { display: none; }
body.cart-open { overflow: hidden; }
.cart-drawer {
    position: fixed; top: 0; right: 0; z-index: 9995; width: min(400px, 100vw); height: 100vh;
    background: #0a0a0a; border-left: 1px solid var(--border); display: flex; flex-direction: column;
    box-shadow: -8px 0 40px rgba(0,0,0,0.5);
}
.cart-drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px; border-bottom: 1px solid var(--border); }
.cart-drawer-head h3 { font-size: 18px; font-weight: 800; }
.cart-body { flex: 1; overflow-y: auto; display: flex; flex-direction: column; min-height: 0; }
.cart-body.is-empty { justify-content: center; }
.cart-empty { padding: 40px 22px; text-align: center; color: var(--text-dim); }
.cart-empty[hidden] { display: none !important; }
.cart-items { flex: 1; overflow-y: auto; padding: 12px 22px; }
.cart-items[hidden] { display: none !important; }
.cart-item {
    display: flex; flex-direction: column; gap: 10px; padding: 14px 0;
    border-bottom: 1px solid var(--border);
}
.cart-item-info strong { display: block; font-size: 13px; margin-bottom: 2px; }
.cart-item-info span { font-size: 10px; color: var(--text-muted); }
.cart-item-actions { display: flex; align-items: center; gap: 10px; }
.cart-qty { display: flex; align-items: center; gap: 8px; }
.cart-qty button {
    width: 28px; height: 28px; border-radius: 6px; border: 1px solid var(--border);
    background: transparent; color: var(--text); cursor: pointer; font-size: 16px;
}
.cart-item-price { margin-left: auto; font-weight: 700; }
.cart-remove {
    width: 28px; height: 28px; border: none; background: transparent; color: #f66;
    font-size: 18px; cursor: pointer;
}
.cart-footer { padding: 18px 22px 24px; border-top: 1px solid var(--border); }
.cart-totals { margin-bottom: 14px; }
.cart-total-line { display: flex; justify-content: space-between; font-size: 13px; color: var(--text-dim); margin-bottom: 6px; }
.cart-total-final { font-size: 16px; font-weight: 800; color: var(--text); margin-top: 8px; }
.cart-toast {
    position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px);
    z-index: 10000; padding: 12px 20px; border-radius: 999px; background: #fff; color: #000;
    font-size: 13px; font-weight: 600; opacity: 0; pointer-events: none; transition: all 0.25s;
}
.cart-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.buy-modal-inner { max-width: 380px; text-align: center; }
.buy-modal-tag { font-size: 11px; color: var(--text-dim); margin: 4px 0 16px; }
.buy-modal-price { margin-bottom: 16px; }
.buy-modal-price .now { font-size: 28px; font-weight: 800; }
.buy-modal-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.cart-summary-list { margin-bottom: 16px; }
.cart-summary-item {
    display: flex; justify-content: space-between; gap: 12px; padding: 10px 0;
    border-bottom: 1px solid var(--border); font-size: 13px;
}
.cart-summary-item span { display: block; font-size: 10px; color: var(--text-muted); margin-top: 2px; }
.thank-license-row {
    display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
}
.thank-license-row:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.thank-license-row .license-display { font-size: 13px; padding: 10px; }

/* ── AI Help Support ── */
.faq-support-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.help-panel { padding: 22px; display: flex; flex-direction: column; min-height: 480px; }
.help-panel-head { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; }
.help-panel-head h3 { font-size: 16px; font-weight: 800; margin-bottom: 4px; }
.help-panel-head p { font-size: 12px; color: var(--text-dim); }
.help-live-dot {
    width: 10px; height: 10px; border-radius: 50%; background: #4f4; margin-top: 6px; flex-shrink: 0;
    box-shadow: 0 0 8px rgba(68,255,68,0.5); animation: help-pulse 2s infinite;
}
@keyframes help-pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.5; } }
.help-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.help-chip {
    padding: 6px 12px; border-radius: 999px; border: 1px solid var(--border);
    background: rgba(255,255,255,0.04); color: var(--text-dim); font-size: 11px;
    cursor: pointer; font-family: inherit; transition: border-color 0.15s, color 0.15s;
}
.help-chip:hover { border-color: #fff; color: #fff; }
.help-chat {
    flex: 1; overflow-y: auto; min-height: 220px; max-height: 300px; margin-bottom: 12px;
    padding: 10px; border-radius: 12px; background: rgba(0,0,0,0.35); border: 1px solid var(--border);
}
.help-msg { display: flex; gap: 8px; margin-bottom: 12px; }
.help-msg--user { justify-content: flex-end; }
.help-msg--user .help-bubble { background: #fff; color: #000; }
.help-avatar {
    width: 28px; height: 28px; border-radius: 8px; background: #fff; color: #000;
    font-size: 10px; font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.help-bubble {
    padding: 10px 14px; border-radius: 12px; background: rgba(255,255,255,0.08);
    border: 1px solid var(--border); font-size: 13px; line-height: 1.5; max-width: 85%;
}
.help-bubble a { color: #8eb8ff; text-decoration: underline; }
.help-input-row { display: flex; gap: 8px; }
.help-input-row input {
    flex: 1; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--border);
    background: rgba(255,255,255,0.04); color: var(--text); font-family: inherit; font-size: 13px;
}
.help-input-row input:focus { outline: none; border-color: #fff; }
body.theme-light .cart-drawer { background: #f8f8f8; }
body.theme-light .help-chat { background: rgba(0,0,0,0.04); }
body.theme-light .help-msg--user .help-bubble { background: #111; color: #fff; }
body.theme-light .help-avatar { background: #111; color: #fff; }
@media (max-width: 900px) {
    .faq-support-grid { grid-template-columns: 1fr; }
    .help-panel { min-height: 400px; }
}

.subscription-options { margin: 16px 0; display: flex; flex-direction: column; gap: 10px; }
.subscription-options[hidden] { display: none !important; }
.sub-option {
    display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; cursor: pointer;
    border: 1px solid var(--border); transition: border-color 0.2s;
}
.sub-option:has(input:checked) { border-color: rgba(255,255,255,0.45); }
.sub-option input { margin-top: 3px; accent-color: #fff; }
.sub-option span { font-size: 13px; line-height: 1.5; color: var(--text-dim); }
.sub-option strong { color: var(--text); }
.pass-status { font-size: 12px; margin: 8px 0 12px; }
.pass-modal-status { margin: 14px 0; }
.pass-modal-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
