/* W3A11Y AltText - Pricing Page Styles */

/* Pricing-specific styles that extend the global layout */

/* Hero Section */
.pricing-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    padding: 4rem 2rem;
    text-align: center;
    margin: -2rem -2rem 0 -2rem;
    /* Extend beyond container padding */
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
    line-height: 1.2;
}

.hero-description {
    font-size: 1.25rem;
    margin: 0 0 3rem 0;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 3rem;
}

/* Billing Toggle */
.billing-toggle {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem;
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.billing-label {
    font-weight: 600;
    padding: 0 0.5rem;
}

.billing-option {
    background: transparent;
    border: none;
    color: #ffffff;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: inherit;
}

.billing-option:hover,
.billing-option:focus {
    background: rgba(255, 255, 255, 0.1);
    outline: 2px solid transparent;
}

.billing-option.active {
    background: #ffffff;
    color: #3b82f6;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.savings-badge {
    background: #10b981;
    color: #ffffff;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-weight: 700;
}

/* Pricing Plans */
.pricing-plans {
    padding: 4rem 0;
    background: #f9fafb;
    /* Extend beyond container padding */
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
    margin: 0 2rem 4rem 2rem;
    /* Add container padding back */
}

/* Responsive grid adjustments */
@media (max-width: 1400px) {
    .plans-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 1024px) {
    .plans-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .included-features {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .plans-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.plan-card {
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    padding: 1rem;
    position: relative;
    transition: all 0.3s ease;
    height: 100%;
}

.plan-card:hover {
    border-color: #3b82f6;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.plan-popular {
    border-color: #3b82f6;
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.2);
    transform: scale(1.05);
}

.popular-badge {
    min-width: max-content;
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: #ffffff;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.plan-header {
    text-align: center;
    margin-bottom: 2rem;
}

.plan-popular .plan-header {
    margin-top: 1.5rem;
}

.plan-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 1rem 0;
}

.plan-price {
    margin-bottom: 0.5rem;
}

.price-amount {
    font-size: 2rem;
    font-weight: 800;
    color: #3b82f6;
    line-height: 1;
}

.price-period {
    color: #6b7280;
    font-weight: 600;
}

.plan-credits {
    color: #6b7280;
    font-weight: 600;
    margin: 1rem 0;
}

.credits-amount {
    color: #1f2937;
    font-weight: 700;
}

.yearly-savings {
    margin-top: 0.5rem;
    padding: 0.5rem 1rem;
    background: #d1fae5;
    color: #065f46;
    border-radius: 8px;
    font-weight: 600;
    display: inline-block;
}

.plan-footer {
    margin-top: auto;
}

.plan-button {
    width: 100%;
    background: #f3f4f6;
    color: #374151;
    border: 2px solid #e5e7eb;
    padding: .9rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: inherit;
}

.plan-button:hover,
.plan-button:focus {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: #ffffff;
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    outline: 2px solid transparent;
    transform: translateY(-1px);
}

.plan-button-primary {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: #ffffff;
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.plan-button-primary:hover,
.plan-button-primary:focus {
    background: linear-gradient(135deg, #2563eb, #1e40af);
    border-color: #2563eb;
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
}

.button-icon {
    transition: transform 0.2s ease;
}

.plan-button:hover .button-icon {
    transform: translateX(2px);
}

/* Two-column section for credit pack and welcome bonus */
.two-column-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 3rem 2rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 768px) {
    .two-column-section {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin: 2rem 1rem;
    }
}

/* Credit Pack Section */
.credit-pack-section {
    position: relative;
}

.credit-pack-card {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #ffffff;
    border-radius: 16px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.credit-pack-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
}

.credit-pack-description {
    margin: 0 0 1.5rem 0;
    opacity: 0.9;
}

.credit-pack-quantity {
    margin-bottom: 1.5rem;
}

.quantity-label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 0.75rem;
    max-width: 120px;
}

.quantity-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 0.5rem;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-minus {
    border-radius: 6px 0 0 6px;
}

.quantity-plus {
    border-radius: 0 6px 6px 0;
}

.quantity-btn:hover,
.quantity-btn:focus {
    background: rgba(255, 255, 255, 0.3);
    outline: 2px solid rgba(255, 255, 255, 0.5);
}

.quantity-input {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-left: none;
    border-right: none;
    color: #111827;
    padding: 0.5rem;
    text-align: center;
    font-weight: 600;
    width: 48px;
    height: 36px;
    font-size: 0.875rem;
}

.quantity-input:focus {
    outline: none;
    background: white;
}

.quantity-total {
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
}

.total-credits,
.total-price {
    font-weight: 700;
}

.credit-pack-button {
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    min-width: 140px;
}

.credit-pack-button:hover,
.credit-pack-button:focus {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-1px);
    outline: none;
}

/* FAQ Section */
.pricing-faq {
    background: #ffffff;
    border-radius: 16px;
    padding: 3rem;
    margin-bottom: 4rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

.faq-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 3rem 0;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.faq-item {
    background: #f9fafb;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.faq-question {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 1rem 0;
}

.faq-answer {
    color: #6b7280;
    margin: 0;
    line-height: 1.7;
}

/* CTA Section */
.pricing-cta {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    color: #ffffff;
    padding: 4rem 2rem;
    text-align: center;
    margin: 0 -2rem -2rem -2rem;
    /* Extend beyond container padding */
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
}

.cta-description {
    font-size: 1.25rem;
    margin: 0 0 2rem 0;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.cta-button {
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
    font-family: inherit;
}

.cta-primary {
    background: #3b82f6;
    color: #ffffff;
}

.cta-primary:hover,
.cta-primary:focus {
    background: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
    color: #ffffff;
}

.cta-secondary {
    background: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
}

.cta-secondary:hover,
.cta-secondary:focus {
    background: #ffffff;
    color: #1f2937;
}

/* Checkout Loading Overlay */
.checkout-loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-content {
    background: #ffffff;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    max-width: 300px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e5e7eb;
    border-top: 4px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem auto;
}

.loading-text {
    color: #6b7280;
    margin: 0;
    font-weight: 600;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Screen reader only content */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Toast Notifications */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    min-width: 300px;
    max-width: 400px;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.toast-success {
    background: #10b981;
    color: white;
}

.toast-error {
    background: #ef4444;
    color: white;
}

.toast.show {
    transform: translateX(0);
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.toast-icon {
    flex-shrink: 0;
}

.toast-message {
    flex: 1;
    font-weight: 600;
}

.toast-close {
    background: none;
    border: none;
    color: currentColor;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    opacity: 0.8;
    transition: opacity 0.2s ease;
    font-family: inherit;
}

.toast-close:hover,
.toast-close:focus {
    opacity: 1;
    outline: 2px solid currentColor;
}

/* Welcome Bonus Section - Updated for grid layout */
.welcome-bonus {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    padding: 2rem;
    text-align: center;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.bonus-content {
    max-width: 100%;
}

.bonus-icon {
    color: #ffffff;
    margin-bottom: 1rem;
}

.bonus-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
    line-height: 1.2;
}

.bonus-description {
    font-size: 1rem;
    opacity: 0.95;
    margin: 0;
    line-height: 1.6;
}

/* Everything Included Section */
.everything-included {
    background: #ffffff;
    border-radius: 16px;
    padding: 3rem;
    margin: 3rem 2rem 0 2rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

.included-header {
    text-align: center;
    margin-bottom: 3rem;
}

.included-title {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    color: #1f2937;
}

.included-subtitle {
    font-size: 1.125rem;
    color: #6b7280;
    margin: 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.included-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.feature-column {
    background: #f8fafc;
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.feature-column:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border-color: #cbd5e1;
}

.feature-column-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.feature-icon-header {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    color: white;
    flex-shrink: 0;
}

.feature-column-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.feature-item.available {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
}

.feature-item.upcoming {
    background: #fef3c7;
    border: 1px solid #fde68a;
}

.feature-item:hover {
    transform: translateX(4px);
}

.feature-status {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.feature-check {
    color: #10b981;
    width: 20px;
    height: 20px;
}

.upcoming-badge {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    line-height: 1;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.feature-name {
    font-size: 0.9rem;
    font-weight: 500;
    color: #374151;
    line-height: 1.4;
}

.feature-item.upcoming .feature-status {
    margin: 0 28px;
}

.feature-item.available .feature-name {
    color: #047857;
}

.feature-item.upcoming .feature-name {
    color: #92400e;
}

/* Current Plan Badge */
.current-plan-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #10b981;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-top: 1rem;
    justify-content: center;
    width: 100%;
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.2);
    border: 2px solid transparent;
}

.current-plan-badge svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .current-plan-badge {
        background: #059669;
        box-shadow: 0 2px 4px rgba(5, 150, 105, 0.3);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-description {
        font-size: 1.125rem;
    }

    .billing-toggle {
        flex-direction: column;
        gap: 0.5rem;
        background: rgba(255, 255, 255, 0.15);
        padding: 1rem;
    }

    .billing-option {
        width: 100%;
        justify-content: center;
    }

    .bonus-title {
        font-size: 1.5rem;
    }

    .bonus-description {
        font-size: 1rem;
    }

    .everything-included {
        margin: 0 1rem 2rem 1rem;
        padding: 2rem;
    }

    .included-title {
        font-size: 1.5rem;
    }

    .included-features {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .feature-column {
        padding: 1.5rem;
    }

    .feature-column-header {
        gap: 0.75rem;
        margin-bottom: 1rem;
    }

    .feature-icon-header {
        width: 40px;
        height: 40px;
    }

    .feature-column-title {
        font-size: 1.125rem;
    }

    .feature-item {
        gap: 0.5rem;
        padding: 0.5rem;
    }

    .upcoming-badge {
        font-size: 0.55rem;
        padding: 0.2rem 0.4rem;
    }

    .plan-card {
        padding: 1.5rem;
    }

    .plan-popular {
        transform: none;
    }

    .price-amount {
        font-size: 2.5rem;
    }

    .credit-pack-section {
        position: relative;
    }

    .credit-pack-card {
        padding: 1.5rem;
    }

    .credit-pack-title {
        font-size: 1.25rem;
    }

    .quantity-selector {
        justify-content: center;
    }

    .credit-pack-button {
        padding: 0.875rem 1.25rem;
        width: 100%;
        margin-top: 0.5rem;
    }
}

@media (max-width: 480px) {
    .pricing-hero {
        padding: 3rem 1rem;
    }

    .welcome-bonus {
        padding: 2rem 1rem;
    }

    .everything-included {
        margin: 0 0.5rem 1.5rem 0.5rem;
        padding: 1.5rem;
    }

    .plans-grid {
        margin: 0 0.5rem 3rem 0.5rem;
        gap: 1.5rem;
    }

    .plan-card {
        padding: 1rem;
    }

    .credit-pack-button {
        padding: 0.6rem 1.2rem;
        font-size: 0.8rem;
        min-width: 120px;
    }
}

/* Pre-Checkout Modal Styles */
.pre-checkout-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2rem 2rem 1rem 2rem;
    border-bottom: 1px solid #e5e7eb;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
}

.modal-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: none;
    background: none;
    border-radius: 8px;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s ease;
}

.modal-close:hover,
.modal-close:focus {
    background: #f3f4f6;
    color: #374151;
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

.modal-close svg {
    stroke-width: 2;
}

.modal-body {
    padding: 1rem 2rem 2rem 2rem;
}

.plan-summary {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

.plan-summary h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
}

.plan-details {
    margin: 0 0 1rem 0;
    color: var(--slate-200);
    font-size: 0.95rem;
}

.plan-price {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: #2563eb;
}

.pre-checkout-modal .plan-price {
    font-size: 2rem;
}

.checkout-options p {
    margin: 0 0 1.5rem 0;
    color: var(--slate-200);
    font-weight: 500;
}

.option-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.option-btn {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 1.5rem;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}

.option-btn:hover,
.option-btn:focus {
    border-color: #2563eb;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
    outline: none;
}

.option-btn.primary {
    border-color: #2563eb;
    background: #2563eb;
    color: #ffffff;
}

.option-btn.primary:hover,
.option-btn.primary:focus {
    background: #1d4ed8;
    border-color: #1d4ed8;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.option-btn.primary .option-content h4,
.option-btn.primary .option-content p {
    color: #ffffff;
}

.option-content h4 {
    margin: 0 0 0.25rem 0;
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
}

.option-content p {
    margin: 0;
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.4;
}

.plan-change-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.plan-change-modal .modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.plan-change-modal .modal-dialog {
    position: relative;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.plan-change-modal .modal-header {
    padding: 20px 24px 0;
    border-bottom: 1px solid #eee;
}

.plan-change-modal .modal-header h3 {
    margin: 0 0 16px;
    font-size: 1.25rem;
}

.plan-change-modal .modal-body {
    padding: 20px 24px;
}

.plan-change-modal .modal-body ul {
    margin: 12px 0;
    padding-left: 20px;
}

.plan-change-modal .modal-footer {
    padding: 16px 24px 20px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.plan-change-modal .modal-footer .btn {
    padding: 8px 16px;
    font-size: 0.875rem;
}

.plan-change-modal a {
    color: var(--text-inverse);
    font-weight: bold;
}

/* Mobile responsiveness for modal */
@media (max-width: 640px) {
    .pre-checkout-modal {
        padding: 0.5rem;
    }

    .modal-header {
        padding: 1.5rem 1.5rem 1rem 1.5rem;
    }

    .modal-header h2 {
        font-size: 1.25rem;
    }

    .modal-body {
        padding: 1rem 1.5rem 1.5rem 1.5rem;
    }

    .plan-summary {
        padding: 1rem;
    }

    .option-btn {
        padding: 1rem;
    }

    .option-content h4 {
        font-size: 0.95rem;
    }

    .option-content p {
        font-size: 0.8rem;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    .modal-content {
        animation: none;
    }
}

@media (prefers-color-scheme: dark) {
    .modal-content {
        background: #1f2937;
        color: #f9fafb;
    }

    .modal-header {
        border-bottom-color: #374151;
    }

    .modal-header h2 {
        color: #f9fafb;
    }

    .modal-close {
        color: #9ca3af;
    }

    .modal-close:hover,
    .modal-close:focus {
        background: #374151;
        color: #e5e7eb;
    }

    .plan-summary {
        background: #374151;
        border-color: #4b5563;
    }

    .plan-summary h3 {
        color: #f9fafb;
    }

    .option-btn {
        background: #374151;
        border-color: #4b5563;
        color: #f9fafb;
    }

    .option-btn:hover,
    .option-btn:focus {
        border-color: #3b82f6;
    }

    .option-content h4 {
        color: #f9fafb;
    }

    .option-content p {
        color: #d1d5db;
    }
}