.payment-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 18px; align-items: start; }
.payment-card { padding: 18px; }
.payment-card label { display: grid; gap: 6px; margin-bottom: 12px; color: var(--muted); }
.payment-card input, .payment-card select { width: 100%; color: var(--text); background: #10151b; border: 1px solid var(--line); border-radius: var(--radius); padding: 11px; }
.payment-form .payment-grid { grid-template-columns: 1fr 1fr; gap: 10px; }

.payment-shell { min-height: 100vh; padding: 54px 0 72px; background: #0c0c0c; }
.payment-checkout { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(360px, .72fr); gap: 22px; align-items: start; }
.payment-hero-panel, .checkout-card, .payment-result-card, .provider-card { background: #121212; border: 1px solid rgba(255,255,255,.08); border-radius: 8px; box-shadow: 0 22px 58px rgba(0,0,0,.34); }
.payment-hero-panel { min-height: 560px; padding: 30px; display: flex; flex-direction: column; gap: 18px; }
.payment-hero-panel h1 { max-width: 760px; margin: 0; color: #fff; font-size: 38px; line-height: 1.08; letter-spacing: 0; }
.payment-hero-panel p { max-width: 720px; margin: 0; color: #cdcdcd; line-height: 1.65; }
.payment-creator-strip { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 16px; background: #161616; border: 1px solid rgba(255,255,255,.08); border-radius: 8px; }
.payment-creator-strip span, .payment-breakdown dt, .payment-card-head span { color: #8f8f8f; }
.payment-creator-strip strong, .payment-breakdown dd { color: #fff; }
.payment-periods { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; max-width: 520px; padding: 6px; background: #161616; border: 1px solid rgba(255,255,255,.08); border-radius: 8px; }
.payment-periods a { min-height: 42px; display: inline-flex; align-items: center; justify-content: center; border-radius: 6px; color: #8f8f8f; border: 1px solid transparent; }
.payment-periods a.is-active { color: #fff; background: #1e018f; border-color: #1e018f; }
.payment-breakdown { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: auto 0 0; }
.payment-breakdown div, .payment-result-card dl div { padding: 14px; background: #161616; border: 1px solid rgba(255,255,255,.08); border-radius: 8px; }
.payment-breakdown dt, .payment-breakdown dd, .payment-result-card dt, .payment-result-card dd { margin: 0; }
.payment-breakdown dd, .payment-result-card dd { margin-top: 5px; font-weight: 800; }
.payment-note, .payment-security-note { color: #8f8f8f; font-size: 13px; }
.payment-site-features { display: flex; flex-wrap: wrap; gap: 8px; }
.checkout-card { position: sticky; top: 104px; padding: 20px; background: #121212; }
.payment-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 16px; padding-bottom: 14px; border-bottom: 1px solid rgba(255,255,255,.08); }
.payment-card-head strong { display: block; margin-top: 3px; color: #fff; font-size: 26px; letter-spacing: 0; }
.payment-card-head small { color: #cdcdcd; padding: 7px 10px; background: #161616; border: 1px solid rgba(255,255,255,.08); border-radius: 999px; }
.test-card-note { display: grid; gap: 5px; margin-bottom: 16px; padding: 12px; background: rgba(30,1,143,.22); border: 1px solid rgba(255,255,255,.08); border-radius: 8px; color: #cdcdcd; font-size: 13px; }
.test-card-note strong { color: #fff; }
.payment-form { display: grid; gap: 12px; }
.payment-form label { margin: 0; }
.payment-form input, .payment-form select, .provider-form input { background: #161616; border-color: rgba(255,255,255,.08); border-radius: 8px; color: #cdcdcd; }
.payment-form-grid { display: grid; grid-template-columns: 1fr 120px; gap: 10px; }
.card-input-wrap { position: relative; display: block; }
.card-input-wrap input { padding-right: 88px; }
.card-input-wrap span { position: absolute; top: 50%; right: 9px; transform: translateY(-50%); min-width: 64px; padding: 5px 8px; text-align: center; color: #fff; background: #1e018f; border-radius: 6px; font-size: 12px; font-weight: 800; }
.payment-card-flags { display: flex; flex-wrap: wrap; gap: 8px; }
.payment-card-flags span { padding: 7px 10px; color: #cdcdcd; background: #161616; border: 1px solid rgba(255,255,255,.08); border-radius: 999px; font-size: 12px; }
.payment-options { display: grid; gap: 8px; }
.payment-toggle { min-height: 42px; display: flex !important; align-items: center; grid-template-columns: none !important; gap: 10px !important; padding: 11px; background: #161616; border: 1px solid rgba(255,255,255,.08); border-radius: 8px; }
.payment-toggle input { width: auto; }
.payment-test-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.payment-submit { width: 100%; min-height: 48px; }
.payment-submit.is-loading { pointer-events: none; opacity: .72; }
.hp { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; opacity: 0 !important; }

.payment-result-page { min-height: 72vh; display: grid; place-items: center; padding: 54px 0; background: #0c0c0c; }
.payment-result-card { max-width: 720px; padding: 30px; text-align: center; }
.payment-result-card h1 { margin: 6px 0 8px; color: #fff; font-size: 34px; letter-spacing: 0; }
.payment-result-card p { color: #cdcdcd; }
.payment-result-card dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 20px 0; text-align: left; }
.payment-result-card dt { color: #8f8f8f; font-size: 13px; }
.payment-result-icon { width: 58px; height: 58px; display: grid; place-items: center; margin: 0 auto 14px; border-radius: 50%; color: #fff; font-weight: 900; }
.payment-result-icon.success { background: #179650; }
.payment-result-icon.failed { background: #b4233c; }
.payment-result-icon.pending { background: #1e018f; }

.payment-provider-page .side a.active { background: #1e018f; color: #fff; }
.payment-provider-body .section-head { align-items: center; }
.payment-provider-active { padding: 8px 12px; color: #fff; background: #1e018f; border-radius: 999px; font-weight: 800; }
.provider-grid { display: grid; gap: 14px; }
.provider-card { padding: 18px; background: #121212; }
.provider-card.is-active { border-color: rgba(30,1,143,.7); box-shadow: 0 0 0 1px rgba(30,1,143,.18), 0 22px 58px rgba(0,0,0,.34); }
.provider-card-head { display: flex; justify-content: space-between; gap: 14px; margin-bottom: 16px; }
.provider-card-head strong { display: block; color: #fff; }
.provider-card-head span { color: #8f8f8f; }
.provider-form { display: grid; gap: 14px; }
.provider-toggles { display: flex; flex-wrap: wrap; gap: 8px; }
.provider-toggles label { display: inline-flex; align-items: center; gap: 7px; min-height: 38px; padding: 8px 10px; background: #161616; border: 1px solid rgba(255,255,255,.08); border-radius: 999px; color: #cdcdcd; }
.provider-toggles input { width: auto; }
.provider-form-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.provider-form-grid label { display: grid; gap: 6px; color: #8f8f8f; }

[data-theme="light"] .payment-shell,
[data-theme="light"] .payment-result-page {
    background: var(--bg-main);
}

[data-theme="light"] .payment-hero-panel,
[data-theme="light"] .checkout-card,
[data-theme="light"] .payment-result-card,
[data-theme="light"] .provider-card,
[data-theme="light"] .payment-card {
    color: var(--text);
    background: var(--bg-card);
    border-color: var(--line);
    box-shadow: var(--shadow-soft);
}

[data-theme="light"] .payment-creator-strip,
[data-theme="light"] .payment-periods,
[data-theme="light"] .payment-breakdown div,
[data-theme="light"] .payment-result-card dl div,
[data-theme="light"] .payment-card-head small,
[data-theme="light"] .test-card-note,
[data-theme="light"] .payment-card-flags span,
[data-theme="light"] .payment-toggle,
[data-theme="light"] .provider-toggles label {
    color: var(--text);
    background: var(--bg-card-soft);
    border-color: var(--line);
}

[data-theme="light"] .payment-hero-panel h1,
[data-theme="light"] .payment-creator-strip strong,
[data-theme="light"] .payment-breakdown dd,
[data-theme="light"] .payment-card-head strong,
[data-theme="light"] .payment-result-card h1,
[data-theme="light"] .provider-card-head strong {
    color: var(--text);
}

[data-theme="light"] .payment-hero-panel p,
[data-theme="light"] .payment-creator-strip span,
[data-theme="light"] .payment-breakdown dt,
[data-theme="light"] .payment-card-head span,
[data-theme="light"] .payment-note,
[data-theme="light"] .payment-security-note,
[data-theme="light"] .payment-result-card p,
[data-theme="light"] .payment-result-card dt,
[data-theme="light"] .provider-card-head span,
[data-theme="light"] .provider-form-grid label {
    color: var(--muted);
}

[data-theme="light"] .payment-card input,
[data-theme="light"] .payment-card select,
[data-theme="light"] .payment-form input,
[data-theme="light"] .payment-form select,
[data-theme="light"] .provider-form input {
    color: var(--text);
    background: var(--bg-card-soft);
    border-color: var(--line);
}

@media (max-width: 760px) {
    .payment-grid { grid-template-columns: 1fr; }
    .payment-form .payment-grid { grid-template-columns: 1fr; }
    .payment-shell { padding: 24px 0 42px; }
    .payment-checkout, .payment-breakdown, .payment-result-card dl, .provider-form-grid { grid-template-columns: 1fr; }
    .checkout-card { position: static; }
    .payment-hero-panel { min-height: auto; padding: 20px; }
    .payment-hero-panel h1, .payment-result-card h1 { font-size: 28px; }
    .payment-form-grid { grid-template-columns: 1fr 1fr; }
    .payment-test-actions { grid-template-columns: 1fr; }
    .payment-periods { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
    .payment-form-grid { grid-template-columns: 1fr; }
}
