/* Checkout — page + overlay */
.is-hidden {
    display: none !important;
}

.checkout-page {
    min-height: 100vh;
    color: var(--text, #eee);
    display: flex;
    flex-direction: column;
    padding: 0 24px;
    box-sizing: border-box;
}

.checkout-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    flex-shrink: 0;
    max-width: 1040px;
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}

.checkout-brand {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--text, #fff);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.checkout-brand img {
    border-radius: 5px;
    display: block;
}

.checkout-back {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--text-muted, #888);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    transition: color 0.15s;
}

.checkout-back:hover {
    color: var(--text, #fff);
}

.premium-pay-modal.checkout-fullpage {
    display: block;
    padding: 0;
    z-index: 260000;
}

.premium-pay-modal.checkout-fullpage.open {
    opacity: 1;
    pointer-events: auto;
}

.premium-pay-modal.checkout-fullpage .pp-backdrop {
    background: #0a0a0a;
}

.premium-pay-modal.checkout-fullpage .premium-pay-sheet {
    width: 100%;
    max-width: none;
    height: 100%;
    max-height: 100vh;
    border-radius: 0;
    border: none;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.checkout-layout {
    display: grid;
    grid-template-columns: minmax(280px, 360px) 1fr;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

/* Standalone /checkout page: open, no card. */
.checkout-page .checkout-layout {
    display: grid;
    grid-template-columns: 360px minmax(0, 1fr);
    gap: 64px;
    max-width: 1040px;
    width: 100%;
    margin: 48px auto 80px;
    flex: none;
    align-items: start;
    border: none;
    border-radius: 0;
    background: transparent;
    overflow: visible;
}

@media (max-width: 880px) {
    .checkout-page .checkout-layout {
        grid-template-columns: 1fr;
        margin: 16px;
        width: auto;
    }
}

@media (max-width: 860px) {
    .checkout-layout {
        grid-template-columns: 1fr;
        overflow-y: auto;
    }
    .checkout-sidebar {
        border-right: none !important;
        border-bottom: 1px solid var(--border, #222);
    }
}

.checkout-sidebar {
    padding: 0;
    border-right: none;
    overflow-y: auto;
    background: transparent;
}

.checkout-page .checkout-sidebar,
.checkout-page .checkout-main {
    overflow: visible;
}

.checkout-sidebar h1 {
    font-size: 1.45rem;
    font-weight: 700;
    margin: 0 0 6px;
    letter-spacing: -0.02em;
    color: var(--text, #fff);
}

.checkout-tagline {
    font-size: 0.85rem;
    color: var(--text-muted, #9298a6);
    line-height: 1.5;
    margin: 0 0 22px;
}

.checkout-price-block {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 0 0 22px;
    margin-bottom: 22px;
    border-bottom: 1px solid var(--border, #23252d);
}

.checkout-sidebar .checkout-price {
    font-size: 2.4rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1;
    color: var(--text, #fff);
}

.checkout-price-sub {
    font-size: 0.8rem;
    color: var(--text-muted, #9298a6);
}

.checkout-features-head {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted, #9298a6);
    margin-bottom: 14px;
}

.checkout-video {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 16 / 9;
    margin-bottom: 22px;
    border: 1px solid var(--border, #222);
    background: #000;
}

.checkout-video-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease, opacity 0.2s ease;
}

.checkout-video:hover .checkout-video-thumb {
    transform: scale(1.05);
    opacity: 0.85;
}

.checkout-video-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: #0a0a0a;
    font-size: 1.05rem;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.5);
    transition: transform 0.2s ease;
}

.checkout-video:hover .checkout-video-play {
    transform: translate(-50%, -50%) scale(1.1);
}

.checkout-video-label {
    position: absolute;
    left: 10px;
    bottom: 10px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    font-weight: 600;
    color: #fff;
    background: rgba(0, 0, 0, 0.55);
    padding: 4px 9px;
    border-radius: 6px;
}

.checkout-video-label i {
    color: #fff;
}

.checkout-video.is-playing {
    cursor: default;
    aspect-ratio: 16 / 9;
}

.checkout-video-frame {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.checkout-features-list {
    list-style: none;
    margin: 0 0 24px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 13px;
}

.checkout-features-list li {
    display: flex;
    align-items: flex-start;
    gap: 11px;
}

.checkout-features-list > li > i {
    flex-shrink: 0;
    margin-top: 3px;
    font-size: 0.72rem;
    color: var(--accent, #3b82f6);
}

.cf-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
    font-size: 0.8rem;
    line-height: 1.45;
}

.cf-text strong {
    color: var(--text, #fff);
    font-size: 0.85rem;
    font-weight: 600;
}

.cf-text span {
    color: var(--text-muted, #9298a6);
}

.checkout-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    padding-top: 18px;
    border-top: 1px solid var(--border, #23252d);
}

.checkout-trust span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: var(--text-muted, #9298a6);
}

.checkout-trust i {
    color: var(--text-muted, #9298a6);
}

.checkout-note {
    margin: 20px 0 0;
    padding-top: 18px;
    border-top: 1px solid var(--border, #1d1d1f);
    font-size: 0.76rem;
    line-height: 1.6;
    color: var(--text-muted, #8b8b8f);
}

.checkout-main {
    padding: 0;
    overflow-y: auto;
    min-height: 0;
}

.checkout-section-label {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted, #888);
    margin-bottom: 12px;
}

.pay-methods-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 20px;
}

.pay-method-option {
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid var(--border, #2a2a2a);
    background: transparent;
    color: var(--text-muted, #999);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: left;
    font-family: inherit;
    transition: border-color 0.12s, background 0.12s;
}

.pay-method-option:hover {
    border-color: #333;
    background: rgba(255, 255, 255, 0.02);
}

.pay-method-option.active {
    border-color: var(--accent, #0066ff);
    background: rgba(0, 102, 255, 0.04);
}

.pay-method-radio {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 1.5px solid #444;
    flex-shrink: 0;
    position: relative;
}

.pay-method-option.active .pay-method-radio {
    border-color: var(--accent, #0066ff);
}

.pay-method-option.active .pay-method-radio::after {
    content: '';
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    background: var(--accent, #0066ff);
}

.pay-method-ico {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    background: rgba(255, 255, 255, 0.04);
    flex-shrink: 0;
}

.pay-method-title {
    display: block;
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--text, #eee);
}

.pay-method-sub {
    display: block;
    font-size: 0.72rem;
    color: var(--text-muted, #888);
    margin-top: 1px;
}

.pay-method-text {
    flex: 1;
    min-width: 0;
}

.pay-method-tag {
    font-size: 0.6rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted, #666);
    flex-shrink: 0;
}

.pay-panel-wrap {
    border: none;
    border-radius: 0;
    padding: 0;
    background: transparent;
}

.pay-panel.is-hidden {
    display: none;
}

.pay-stripe-desc,
.pay-crypto-intro {
    font-size: 0.82rem;
    color: var(--text-muted, #999);
    line-height: 1.5;
    margin: 0 0 14px;
}

.pay-stripe-methods {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
}

.pay-stripe-method-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 9px;
    border-radius: 6px;
    border: 1px solid var(--border, #2a2a2a);
    background: rgba(255, 255, 255, 0.02);
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--text-muted, #bbb);
}

.pay-stripe-method-chip img {
    width: 14px;
    height: 14px;
    object-fit: contain;
    display: block;
}

.premium-stripe-host {
    min-height: 48px;
    margin: 8px 0;
    display: flex;
    justify-content: center;
}

.premium-stripe-host stripe-buy-button {
    width: 100%;
    display: block;
}

.premium-stripe-host:empty + .pay-stripe-fallback {
    display: inline-flex !important;
}

.pay-stripe-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 11px 16px;
    border-radius: 8px;
    background: transparent;
    border: 1px solid var(--border, #2a2a2a);
    color: var(--text, #fff) !important;
    font-weight: 600;
    font-size: 0.84rem;
    text-decoration: none;
    box-sizing: border-box;
    margin-top: 10px;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.pay-stripe-fallback:hover {
    border-color: var(--accent, #2f6bff);
    background: rgba(47, 107, 255, 0.06);
}

.pay-crypto-amount-box {
    margin: 14px 0;
    padding: 14px 16px;
    border-radius: 8px;
    border: 1px solid var(--border, #23252d);
    background: rgba(255, 255, 255, 0.02);
}

.pay-crypto-amount-label {
    font-size: 0.7rem;
    color: var(--text-muted, #888);
    margin-bottom: 4px;
}

.pay-crypto-amount-value {
    font-size: 1.15rem;
    font-weight: 700;
    font-family: ui-monospace, monospace;
    color: var(--text, #fff);
}

.pay-crypto-amount-sub {
    font-size: 0.74rem;
    color: var(--text-muted, #777);
    margin-top: 6px;
}

.pay-crypto-amount-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
}

.pay-crypto-copy-amount {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.74rem;
    font-weight: 600;
    color: var(--text, #eee);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border, #2a2a2a);
    border-radius: 7px;
    padding: 6px 11px;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s ease, color 0.15s ease;
}

.pay-crypto-copy-amount:hover {
    background: rgba(255, 255, 255, 0.08);
}

.pay-crypto-copy-amount.is-copied {
    background: rgba(74, 222, 128, 0.14);
    border-color: rgba(74, 222, 128, 0.35);
    color: #4ade80;
}

.pay-crypto-refresh {
    margin-left: auto;
    font-size: 0.72rem;
    color: var(--text-muted, #888);
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px 4px;
    font-family: inherit;
}

.pay-crypto-refresh:hover {
    color: var(--text, #ccc);
}

.pay-paypal-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin: 16px 0;
}

.pay-paypal-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 8px;
    background: #0070ba;
    color: #fff !important;
    font-weight: 600;
    font-size: 0.84rem;
    text-decoration: none;
}

.pay-paypal-link:hover {
    background: #005ea6;
}

.pay-text-btn {
    border: none;
    background: none;
    color: var(--accent, #0066ff);
    font-size: 0.82rem;
    cursor: pointer;
    padding: 0;
    font-family: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.pay-text-btn:hover {
    color: #4d9fff;
}

.pay-giftcard-store-link {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 8px;
    border: 1px solid var(--border, #2a2a2a);
    text-decoration: none;
    color: inherit;
    margin-bottom: 16px;
    font-size: 0.82rem;
}

.pay-giftcard-store-link:hover {
    border-color: #444;
}

.pay-giftcard-store-link strong {
    display: block;
    color: var(--text, #eee);
    font-size: 0.84rem;
    margin-bottom: 2px;
}

.pay-giftcard-store-link span {
    color: var(--text-muted, #888);
    font-size: 0.76rem;
}

.pay-code-input {
    width: 100%;
    padding: 12px 14px;
    border-radius: 8px;
    border: 1px solid var(--border, #333);
    background: rgba(0, 0, 0, 0.3);
    color: var(--text, #fff);
    font-size: 1rem;
    font-family: ui-monospace, monospace;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    box-sizing: border-box;
}

.pay-code-input:focus {
    outline: none;
    border-color: #555;
}

.pay-submit-btn {
    width: 100%;
    padding: 11px 16px;
    border-radius: 8px;
    border: 1px solid var(--border, #333);
    background: #181818;
    color: var(--text, #eee);
    font-weight: 600;
    font-size: 0.84rem;
    cursor: pointer;
    font-family: inherit;
    margin-top: 4px;
}

.pay-submit-btn:hover:not(:disabled) {
    background: #222;
    border-color: #444;
}

.pay-submit-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.pay-form-error {
    font-size: 0.78rem;
    color: #e57373;
    margin: 4px 0 0;
}

.pay-status-note {
    font-size: 0.82rem;
    color: var(--text-muted, #999);
    line-height: 1.5;
    padding: 12px 0;
}

.pay-status-note.is-hidden {
    display: none;
}

.pay-ticket-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 18px;
    border-radius: 8px;
    background: #5865F2;
    color: #fff !important;
    font-weight: 600;
    font-size: 0.84rem;
    text-decoration: none;
}

.pay-ticket-foot {
    margin-top: 12px;
    font-size: 0.74rem;
    color: var(--text-muted, #777);
    line-height: 1.45;
}

.checkout-login-gate {
    max-width: 400px;
    margin: 80px auto;
    padding: 0 24px;
    text-align: center;
}

.checkout-login-gate h2 {
    font-size: 1.25rem;
    margin: 0 0 10px;
}

.checkout-login-gate p {
    font-size: 0.86rem;
    color: var(--text-muted, #999);
    margin: 0 0 20px;
    line-height: 1.5;
}

.checkout-login-btn {
    display: inline-block;
    padding: 11px 22px;
    border-radius: 8px;
    background: var(--accent, #0066ff);
    color: #fff;
    font-weight: 600;
    font-size: 0.88rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.pay-crypto-grid {
    display: grid;
    gap: 6px;
    margin-bottom: 12px;
}

.pay-crypto-opt {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid var(--border, #2a2a2a);
    background: transparent;
    cursor: pointer;
    text-align: left;
}

.pay-crypto-opt:hover {
    border-color: #383838;
}

.pay-crypto-opt.selected {
    border-color: var(--accent, #0066ff);
    background: rgba(0, 102, 255, 0.04);
}

.pay-crypto-opt input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.pay-crypto-coin-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    flex-shrink: 0;
}

.pay-crypto-opt-label {
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--text, #eee);
}

.pay-crypto-opt-hint {
    margin-left: auto;
    font-size: 0.72rem;
    color: var(--text-muted, #888);
}

.pay-crypto-detail {
    margin-top: 12px;
}

.pay-crypto-detail .addr-line {
    font-family: ui-monospace, monospace;
    font-size: 0.78rem;
    word-break: break-all;
    padding: 10px 12px;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid var(--border, #2a2a2a);
    margin: 8px 0;
    color: var(--text, #ddd);
}

.pay-crypto-copy,
.pay-crypto-sent-btn {
    width: 100%;
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid var(--border, #333);
    background: #161616;
    color: var(--text, #eee);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    margin-top: 8px;
}

.pay-crypto-copy:hover,
.pay-crypto-sent-btn:hover {
    background: #1e1e1e;
}

.pay-crypto-sent-btn {
    margin-top: 12px;
}

.pay-crypto-copy.is-copied {
    background: rgba(52, 211, 153, 0.16);
    border-color: rgba(52, 211, 153, 0.45);
    color: #4ade80;
}

.pay-crypto-copy i {
    margin-right: 4px;
}

@keyframes addr-flash {
    0% { border-color: var(--accent, #2f7bff); box-shadow: 0 0 0 0 rgba(47, 123, 255, 0.35); }
    100% { border-color: var(--border, #2a2a2a); box-shadow: 0 0 0 8px rgba(47, 123, 255, 0); }
}

.pay-crypto-detail .addr-line.addr-flash {
    animation: addr-flash 0.7s ease;
}

@keyframes pay-panel-in {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.pay-panel:not(.is-hidden) {
    animation: pay-panel-in 0.25s ease;
}
