.layout:has(.premium-pricing-page) {
    grid-template-columns: minmax(0, 1180px);
    justify-content: center;
}

.layout:has(.premium-pricing-page) .left-sidebar,
.layout:has(.premium-pricing-page) .right-sidebar {
    display: none;
}

.premium-pricing-page {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    color: var(--text-primary);
}

.pricing-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
    align-items: center;
    padding: clamp(20px, 3vw, 32px);
    background:
        linear-gradient(135deg, rgba(34, 197, 94, 0.08), rgba(30, 58, 138, 0.06)),
        var(--surface-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: var(--shadow-card);
}

.pricing-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #f59e0b;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.pricing-kicker i {
    color: #facc15;
}

.pricing-hero h1,
.pricing-section-header h2,
.pricing-feature-copy h2 {
    margin: 6px 0 0;
    color: var(--text-primary);
    letter-spacing: 0;
}

.pricing-hero h1 {
    max-width: 600px;
    font-size: clamp(22px, 3vw, 32px);
    line-height: 1.15;
}

.pricing-hero p {
    max-width: 540px;
    margin: 10px 0 0;
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.7;
}

.pricing-trust-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(80px, 1fr));
    overflow: hidden;
    min-width: 280px;
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: 8px;
    background: var(--surface-card);
}

.pricing-trust-strip div {
    display: grid;
    gap: 2px;
    padding: 12px 14px;
    text-align: center;
    border-left: 1px solid var(--border-color);
}

.pricing-trust-strip div:first-child {
    border-left: 0;
}

.pricing-trust-strip strong {
    color: var(--accent-green);
    font-size: 17px;
    line-height: 1;
}

.pricing-trust-strip span {
    color: var(--text-secondary);
    font-size: 10px;
    font-weight: 800;
}

.pricing-section-header {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: end;
    margin: 30px 0 16px;
}

.pricing-section-header.compact {
    margin-top: 0;
}

.pricing-section-header h2,
.pricing-feature-copy h2 {
    font-size: clamp(22px, 3vw, 32px);
    line-height: 1.15;
}

.pricing-payment-note,
.pricing-checkout-note {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 10px 14px;
    color: var(--text-secondary);
    background: var(--surface-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-weight: 750;
}

.pricing-payment-note i,
.pricing-checkout-note i {
    color: var(--accent-green);
}

.pricing-checkout-note {
    width: 100%;
    margin-bottom: 16px;
    color: var(--text-primary);
    background: rgba(34, 197, 94, 0.08);
    border-color: rgba(34, 197, 94, 0.28);
}

.pricing-checkout-note.status-success {
    background: rgba(34, 197, 94, 0.12);
    border-color: rgba(34, 197, 94, 0.42);
}

.pricing-checkout-note.status-failed,
.pricing-checkout-note.status-checkout-error,
.pricing-checkout-note.status-verify-error {
    background: rgba(239, 68, 68, 0.10);
    border-color: rgba(239, 68, 68, 0.34);
}

.pricing-checkout-note.status-failed i,
.pricing-checkout-note.status-checkout-error i,
.pricing-checkout-note.status-verify-error i {
    color: #ef4444;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.pricing-plan {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 20px;
    background: var(--surface-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: var(--shadow-card);
}

.pricing-plan.featured {
    border-color: rgba(34, 197, 94, 0.65);
    box-shadow: 0 16px 34px rgba(34, 197, 94, 0.14);
}

.plan-badge {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: #0f9f6e;
    border-radius: 7px 7px 0 0;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.pricing-plan:has(.plan-badge) {
    padding-top: 54px;
}

.plan-head {
    display: grid;
    gap: 8px;
    min-height: 92px;
}

.plan-label {
    width: fit-content;
    padding: 4px 10px;
    color: var(--text-secondary);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* VIP plan labels get a subtle green tint */
.pricing-plan.featured .plan-label {
    color: #16a34a;
    background: rgba(34, 197, 94, 0.10);
    border-color: rgba(34, 197, 94, 0.30);
}

.plan-discount {
    width: fit-content;
    padding: 4px 10px;
    color: #b45309;
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.26);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.04em;
}

.plan-head h3 {
    margin: 0;
    color: var(--text-primary);
    font-size: 19px;
    line-height: 1.2;
}

.plan-price {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-top: 12px;
    color: var(--text-primary);
}

.plan-price .currency {
    font-size: 18px;
    font-weight: 900;
}

.plan-price strong {
    font-size: clamp(32px, 4vw, 40px);
    line-height: 1;
    letter-spacing: 0;
}

.plan-price .per {
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 850;
}

.plan-billing {
    display: grid;
    gap: 4px;
    min-height: 72px;
    margin-top: 12px;
    color: var(--text-secondary);
    font-size: 12px;
    line-height: 1.35;
}

.plan-billing strong {
    color: var(--text-primary);
}

.plan-features {
    display: grid;
    gap: 12px;
    margin: 18px 0 20px;
    padding: 0;
    list-style: none;
}

.plan-features li {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    color: var(--text-primary);
    font-size: 13px;
    line-height: 1.45;
}

.plan-features i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    margin-top: 1px;
    color: #ffffff;
    background: var(--accent-green);
    border-radius: 50%;
    font-size: 9px;
}

.plan-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 44px;
    margin-top: auto;
    padding: 0 16px;
    color: #052e16;
    background: linear-gradient(135deg, #facc15, #f59e0b);
    border: 1px solid rgba(217, 119, 6, 0.55);
    border-radius: 8px;
    text-decoration: none;
    font-weight: 950;
    box-shadow: 0 10px 22px rgba(245, 158, 11, 0.18);
    cursor: pointer;
    font-family: inherit;
    font-size: 13px;
}

.plan-cta.secondary {
    color: var(--text-primary);
    background: transparent;
    border: 1.5px solid var(--border-color);
    box-shadow: none;
}

.dark-mode .plan-cta.secondary {
    color: #e2e8f0;
    border-color: rgba(226, 232, 240, 0.25);
    background: rgba(226, 232, 240, 0.06);
}

.dark-mode .plan-cta.secondary:hover {
    border-color: rgba(226, 232, 240, 0.45);
    background: rgba(226, 232, 240, 0.10);
}

.dark-mode .plan-cta:not(.secondary) {
    color: #e2e8f0;
}

.plan-cta:hover {
    transform: translateY(-1px);
}

.plan-checkout-form {
    display: flex;
    margin-top: auto;
}

.pricing-faq {
    margin-top: 18px;
    padding: 24px;
    background: var(--surface-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: var(--shadow-card);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    align-items: start;
}

.faq-grid details {
    padding: 16px 18px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

.faq-grid summary {
    color: var(--text-primary);
    font-weight: 900;
    cursor: pointer;
}

.faq-grid p {
    margin: 12px 0 0;
    color: var(--text-secondary);
    line-height: 1.65;
}

.dark-mode .pricing-hero {
    background:
        linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(59, 130, 246, 0.12)),
        var(--surface-card);
}

.dark-mode .plan-discount {
    color: #fde68a;
}

.dark-mode .plan-cta {
    color: #111827;
}

@media (max-width: 1099px) {
    .pricing-hero {
        grid-template-columns: 1fr;
    }

    .pricing-trust-strip {
        min-width: 0;
    }

    .pricing-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 699px) {
    .premium-pricing-page {
        padding: 0 4px 70px;
    }

    .pricing-hero {
        padding: 24px 18px;
    }

    .pricing-hero h1 {
        font-size: 31px;
    }

    .pricing-section-header {
        display: grid;
        align-items: start;
    }

    .pricing-payment-note,
    .pricing-checkout-note {
        width: 100%;
    }

    .pricing-trust-strip,
    .pricing-grid,
    .pricing-feature-grid,
    .faq-grid {
        grid-template-columns: 1fr;
    }

    .pricing-trust-strip div {
        border-left: 0;
        border-top: 1px solid var(--border-color);
    }

    .pricing-trust-strip div:first-child {
        border-top: 0;
    }

    .pricing-feature-band,
    .pricing-faq,
    .pricing-compare {
        padding: 18px;
    }
}

/* Compare Plans Table */
.pricing-compare {
    margin-top: 18px;
    padding: 24px;
    background: var(--surface-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: var(--shadow-card);
}

.compare-table-wrapper {
    overflow-x: auto;
    margin-top: 20px;
}

.compare-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.compare-table th,
.compare-table td {
    padding: 14px 18px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 14px;
}

.compare-table th {
    font-weight: 900;
    font-size: 15px;
    background: rgba(0,0,0,0.02);
}

.compare-table tr:last-child td {
    border-bottom: none;
}

.compare-table .plan-col {
    text-align: center;
    width: 15%;
    min-width: 110px;
}

.compare-table .vip-col {
    background: rgba(34, 197, 94, 0.05);
}

.compare-table th.vip-col {
    color: var(--accent-green);
    background: rgba(34, 197, 94, 0.1);
    border-radius: 6px 6px 0 0;
}

.compare-table td.vip-col:last-child {
    border-radius: 0 0 6px 6px;
}

.check-icon {
    color: var(--accent-green);
    font-size: 16px;
}

.cross-icon {
    color: var(--text-muted);
    opacity: 0.5;
    font-size: 16px;
}

.dark-mode .compare-table th {
    background: rgba(255,255,255,0.02);
}

.dark-mode .compare-table .vip-col {
    background: rgba(34, 197, 94, 0.08);
}

.dark-mode .compare-table th.vip-col {
    background: rgba(34, 197, 94, 0.15);
}

/* Local Currency Display */
.local-currency-display {
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 800;
    margin-top: 4px;
}

/* Payment Modal Backdrop */
.payment-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 1;
    transition: opacity 0.2s ease;
}

.payment-modal-backdrop[hidden] {
    display: none;
    opacity: 0;
}

/* Payment Modal Dialog */
.payment-modal-dialog {
    background: var(--surface-card);
    width: 100%;
    max-width: 540px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.payment-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-secondary);
}

.payment-modal-header h3 {
    margin: 0;
    font-size: 18px;
    color: var(--text-primary);
}

.payment-modal-close {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 20px;
    cursor: pointer;
    padding: 4px;
}

.payment-modal-close:hover {
    color: var(--text-primary);
}

/* Plan Summary inside Modal */
.payment-modal-plan-summary {
    display: flex;
    align-items: baseline;
    gap: 12px;
    padding: 24px;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.08), transparent);
    border-bottom: 1px solid var(--border-color);
}

.pm-plan-name {
    font-size: 16px;
    font-weight: 850;
    color: var(--text-secondary);
}

.pm-plan-price {
    font-size: 24px;
    font-weight: 900;
    color: var(--text-primary);
}

.pm-local-price {
    font-size: 14px;
    font-weight: 800;
    color: var(--text-secondary);
    margin-left: auto;
}

/* Payment Methods List */
.payment-methods-list {
    padding: 24px;
    display: grid;
    gap: 12px;
    max-height: 60vh;
    overflow-y: auto;
}

.payment-method-card {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    padding: 16px;
    width: 100%;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    transition: all 0.2s ease;
}

.payment-method-form {
    margin: 0;
}

.payment-method-card:hover {
    border-color: rgba(34, 197, 94, 0.4);
    background: var(--surface-card);
}

.payment-method-card.active {
    border-color: var(--accent-green);
    background: rgba(34, 197, 94, 0.05);
}

.pm-icon {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #fff;
}

.pm-icon.flutterwave { background: #F5A623; }
.pm-icon.binance { background: #F3BA2F; color: #000; }
.pm-icon.skrill { background: #811E68; }
.pm-icon.eversend { background: #0033FF; }
.pm-icon.chippercash { background: #6F42C1; }

.pm-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.pm-details strong {
    font-size: 15px;
    color: var(--text-primary);
}

.pm-details span {
    font-size: 12px;
    color: var(--text-secondary);
}

.pm-action {
    font-size: 13px;
    font-weight: 850;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.payment-method-card:hover .pm-action {
    color: var(--text-primary);
}

/* Manual Payment Details Accordion */
.manual-payment-details {
    margin-top: -8px;
    padding: 16px;
    background: var(--surface-card);
    border: 1px solid var(--border-color);
    border-top: none;
    border-radius: 0 0 8px 8px;
    font-size: 13px;
}

.crypto-addresses {
    display: grid;
    gap: 12px;
    margin-bottom: 20px;
}

.crypto-addr {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.crypto-addr span {
    color: var(--text-secondary);
    font-weight: 850;
}

.crypto-addr code {
    background: transparent;
    padding: 0;
    border: none;
    font-family: monospace;
    font-size: 13px;
    color: var(--text-primary);
    word-break: break-all;
    user-select: all;
    flex: 1;
}

.crypto-addr-copy {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-secondary);
    padding: 10px 12px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

.copy-btn {
    background: var(--surface-card);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    width: 32px;
    height: 32px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s;
}

.copy-btn:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border-color: var(--text-secondary);
}

.copy-btn.copied {
    background: var(--accent-green);
    color: white;
    border-color: var(--accent-green);
}

.manual-submit-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.manual-submit-form label {
    font-weight: 850;
    color: var(--text-primary);
}

.manual-submit-form input {
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 14px;
}

.manual-submit-form input:focus {
    outline: none;
    border-color: var(--accent-green);
}

.submit-tx-btn {
    margin-top: 6px;
    padding: 12px;
    background: var(--accent-green);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-weight: 900;
    font-size: 14px;
    cursor: pointer;
    font-family: inherit;
}

.submit-tx-btn:hover {
    background: #16a34a;
}

.dark-mode .payment-modal-backdrop {
    background: rgba(0, 0, 0, 0.6);
}
