.disabled-plan-button {
    opacity: 0.6 !important;
    cursor: not-allowed !important;
    position: relative;
    display: flex !important; /* Keep flex to maintain original button layout */
    justify-content: center !important; /* Keep centering */
}

.disabled-plan-link {
    opacity: 0.6 !important;
    cursor: not-allowed !important;
    position: relative;
    display: inline-block;
}

.disabled-plan-button:hover,
.disabled-plan-link:hover {
    opacity: 0.6 !important;
}

/* Reactivation button - green style similar to a2-button but with green color from confirmar y pagar */
.reactivate-button {
    padding: 8px 15px;
    color: white !important;
    text-decoration: none !important;
    border-radius: 5px;
    font-weight: bold;
    margin-bottom: 10px;
    display: flex;
    justify-content: center;
    background-color: #28a745 !important; /* Green color from confirmar y pagar button */
    transition: all 0.3s ease;
}

.reactivate-button:hover {
    background-color: #218838 !important; /* Darker green on hover */
    opacity: 0.9;
}

.reactivate-button:active {
    transform: scale(0.98);
}

/* Tooltip wrapper - allows hover events */
.disabled-plan-button,
.disabled-plan-link {
    position: relative;
}

/* Tooltip styles */
.tooltip-text {
    visibility: hidden;
    width: 280px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 10px;
    position: absolute;
    z-index: 10000;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    line-height: 1.4;
    opacity: 0;
    transition: opacity 0.3s, visibility 0.3s;
    white-space: normal;
    word-wrap: break-word;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    pointer-events: none;
}

.tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
}

.disabled-plan-button:hover .tooltip-text,
.disabled-plan-link:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

.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-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(2px);
}

.plan-change-modal-content {
    position: relative;
    background: white;
    border-radius: 12px;
    max-width: 1000px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    z-index: 10001;
}

.plan-change-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 32px;
    cursor: pointer;
    color: #666;
    line-height: 1;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.plan-change-modal-close:hover {
    color: #000;
}

.plan-change-modal-title {
    padding: 30px 30px 20px;
    margin: 0;
    font-size: 24px;
    color: #2c3e50;
    border-bottom: 1px solid #ecf0f1;
}

.plan-change-modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    padding: 30px;
}
.plan-change-modal-body.one-column {
    grid-template-columns: 1fr;
}
.plan-change-modal-body.no-gap {
    gap: 0;
}
.plan-change-left {
    border-right: 1px solid #ecf0f1;
    padding-right: 30px;
}

.plan-info {
    margin-bottom: 30px;
}

.plan-change-name {
    font-size: 24px;
    font-weight: bold;
    color: #2c3e50;
    text-align: center;
    margin-top: 25px;
    margin-bottom: 25px;
}

.plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 15px 0;
}

.plan-features li {
    padding: 6px 0;
    padding-left: 20px;
    position: relative;
    font-size: 14px;
    color: #34495e;
}

.plan-features li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #27ae60;
    font-weight: bold;
}

.compare-plans-link {
    display: block;
    text-align: center;
    margin-top: 20px;
    color: #3498db;
    text-decoration: underline;
    font-size: 14px;
    cursor: pointer;
}

.compare-plans-link:hover {
    color: #2980b9;
}

.plan-billing {
    font-size: 12px;
    color: #7f8c8d;
    padding-top: 10px;
    border-top: 1px solid #ecf0f1;
}


.billing-toggle-section {
    margin: 15px 0;
}

.billing-toggle {
    display: flex;
    align-items: center;
    gap: 15px;
}

.toggle-label {
    font-size: 14px;
    color: #7f8c8d;
    font-weight: 500;
    transition: color 0.3s;
}

.toggle-label.active {
    color: #2c3e50;
    font-weight: 600;
}

.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc; /* Default grey, will be overridden by plan-specific class */
    transition: .4s;
    border-radius: 24px;
}

/* Plan-specific toggle colors - always show plan color */
.billing-toggle-section.plan-estandar .slider {
    background-color: #0dd3d3; /* Giweb cyan for Standard */
}

.billing-toggle-section.plan-ilimitado .slider {
    background-color: #eaa20f; /* Giweb orange for Illimité */
}

.billing-toggle-section.plan-empresa .slider {
    background-color: #9b59b6; /* Giweb purple for Enterprise */
}

.btn-confirm.plan-empresa {
    background: #9b59b6; /* Giweb purple for Enterprise */
}

.btn-confirm.plan-empresa:hover {
    background: #8e44ad;
}

/* Survey radio button label base styles */
.survey-radio-label {
    display: flex;
    align-items: center;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.survey-radio-label input[type="radio"] {
    margin-right: 10px;
}

/* Button styles */
.modal-button {
    padding: 10px 20px;
}

.modal-button-container {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* Form container styles */
.survey-form-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

/* Error message styles */
.error-message {
    display: none;
    padding: 10px;
    background-color: #fee;
    border: 1px solid #fcc;
    border-radius: 4px;
    color: #c33;
    margin-bottom: 15px;
}

/* Input field styles */
.form-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
}

/* Cancel subscription survey radio button styles */
#cancelSubscriptionSurveyForm label {
    transition: all 0.2s;
}

#cancelSubscriptionSurveyForm label:hover {
    border-color: #0dd3d3 !important;
    background-color: #f0f9ff;
}

#cancelSubscriptionSurveyForm label:has(input[type="radio"]:checked) {
    border-color: #0dd3d3 !important;
    background-color: #f0f9ff;
    font-weight: 600;
}

/* Delete Account Survey Form Styles */
#deleteAccountSurveyForm label {
    transition: all 0.2s;
}

#deleteAccountSurveyForm label:hover {
    border-color: #0dd3d3 !important;
    background-color: #f0f9ff;
}

#deleteAccountSurveyForm label:has(input[type="radio"]:checked) {
    border-color: #0dd3d3 !important;
    background-color: #f0f9ff;
    font-weight: 600;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

/* Background color for checked slider is handled by plan-specific classes above */

input:checked + .slider:before {
    transform: translateX(26px);
}

.plan-change-right {
    padding-left: 30px;
}

.plan-change-right h3 {
    font-size: 18px;
    color: #2c3e50;
    margin-bottom: 20px;
}

.pricing-breakdown {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.pricing-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
}

.pricing-row:last-child {
    border-bottom: none;
}

.pricing-label {
    color: #34495e;
    font-size: 14px;
}

.pricing-value {
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
}

.pricing-row.proration-row .pricing-value {
    color: #e67e22;
}

.pricing-row.total-row {
    margin-top: 10px;
    padding-top: 15px;
}

.pricing-row.total-row .pricing-label {
    font-size: 16px;
}

.pricing-row.total-row .pricing-value {
    font-size: 20px;
    color: #333;
}

.pricing-row.next-billing {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #e0e0e0;
    font-size: 12px;
    color: #7f8c8d;
}

.plan-change-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.btn-cancel, .btn-confirm {
    flex: 1;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-cancel {
    background: #ecf0f1;
    color: #34495e;
}

.btn-cancel:hover {
    background: #d5dbdb;
}

.btn-confirm {
    background: #f39c12; /* Default orange, will be overridden by plan-specific class */
    color: white;
}

.btn-confirm:hover {
    opacity: 0.9;
}

.btn-confirm.plan-estandar {
    background: #0dd3d3; /* Giweb cyan for Standard */
}

.btn-confirm.plan-estandar:hover {
    background: #0bc2c2;
}

.btn-confirm.plan-ilimitado {
    background: #eaa20f; /* Giweb orange for Illimité */
}

.btn-confirm.plan-ilimitado:hover {
    background: #d8910e;
}

.btn-confirm:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
}

.plan-change-info {
    font-size: 12px;
    color: #7f8c8d;
    line-height: 1.5;
}

/* Plan Comparison Modal Styles */
.plan-comparison-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10002;
    display: flex;
    align-items: center;
    justify-content: center;
}

.plan-comparison-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(2px);
}

.plan-comparison-modal-content {
    position: relative;
    background: white;
    border-radius: 12px;
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    z-index: 10003;
}

.plan-comparison-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 32px;
    cursor: pointer;
    color: #666;
    line-height: 1;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.plan-comparison-modal-close:hover {
    color: #000;
}

.plan-comparison-modal-title {
    padding: 30px 30px 20px;
    margin: 0;
    font-size: 24px;
    color: #2c3e50;
    border-bottom: 1px solid #ecf0f1;
}

.plan-comparison-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    padding: 30px;
}

.comparison-plan {
    padding: 20px;
    border: 2px solid #ecf0f1;
    border-radius: 8px;
    transition: border-color 0.3s;
}

.comparison-plan.plan-estandar {
    border-color: #0dd3d3; /* Giweb cyan for Standard */
}

.comparison-plan.plan-ilimitado {
    border-color: #eaa20f; /* Giweb orange for Illimité */
}

.comparison-plan h3 {
    font-size: 14px;
    color: #7f8c8d;
    margin-bottom: 15px;
    text-transform: uppercase;
    font-weight: normal;
}

.comparison-plan-name {
    font-size: 20px;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 15px;
}

.comparison-plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 15px 0;
}

.comparison-plan-features li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    font-size: 14px;
    color: #34495e;
}

.comparison-plan-features li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #27ae60;
    font-weight: bold;
}

.comparison-plan-seats {
    font-size: 14px;
    color: #7f8c8d;
    padding: 10px 0;
    margin-top: 10px;
}

.comparison-plan-price {
    font-size: 18px;
    font-weight: bold;
    color: #2c3e50;
    padding-top: 15px;
    border-top: 1px solid #ecf0f1;
}

.plan-comparison-actions {
    padding: 20px 30px;
    border-top: 1px solid #ecf0f1;
    text-align: center;
}

.btn-close-comparison {
    padding: 12px 30px;
    background: #ecf0f1;
    color: #34495e;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-close-comparison:hover {
    background: #d5dbdb;
}

@media (max-width: 768px) {
    .plan-change-modal-body {
        grid-template-columns: 1fr;
    }
    
    .plan-change-left {
        border-right: none;
        padding-right: 0;
        border-bottom: 1px solid #ecf0f1;
        padding-bottom: 30px;
        margin-bottom: 30px;
    }
    
    .plan-change-right {
        padding-left: 0;
    }
    
    .plan-comparison-body {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Seat Management Styles */
.seat-selection {
    margin: 20px 0;
}

.seat-counter {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin: 30px 0;
}

.seat-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid #ecf0f1;
    background: white;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    color: #2c3e50;
}

.seat-btn:hover:not(:disabled) {
    background: #f8f9fa;
    border-color: #bdc3c7;
    transform: scale(1.1);
}

.seat-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.seat-count-display {
    font-size: 36px;
    font-weight: bold;
    color: #2c3e50;
    min-width: 60px;
    text-align: center;
}

.seat-info {
    text-align: center;
    margin-top: 20px;
}

.seat-info p {
    margin: 10px 0;
    font-size: 14px;
    color: #34495e;
}

.seat-info #seatChangeInfo {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
}

.seat-limits {
    font-size: 12px;
    color: #7f8c8d;
}
/* Invoices Table Styling */
#invoicesTable {
    font-size: 14px;
    width: 100%;
}

#invoicesTable tbody tr:hover {
    background-color: #f9f9f9;
}

#invoicesTable tbody tr td {
    vertical-align: middle;
}

#invoicesTable thead th {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #7f8c8d;
}

#invoicesTable tbody tr:last-child {
    border-bottom: none;
}

#invoicesTable a {
    transition: all 0.2s ease;
}

#invoicesTable a:hover {
    opacity: 0.8;
    text-decoration: underline !important;
}

/* Responsive invoices table */
@media (max-width: 768px) {
    #invoicesTable {
        font-size: 12px;
    }
    
    #invoicesTable thead th,
    #invoicesTable tbody td {
        padding: 8px 6px;
    }
    
    #invoicesModal .plan-change-modal-content {
        width: 95%;
        max-width: 95%;
    }
    
    .payment-method-item {
        transition: all 0.3s ease !important;
        cursor: pointer !important;
        position: relative !important;
    }
    
    .payment-method-item:not(.selected):hover {
        background-color: #f0f9ff !important;
        border-color: #0dd3d3 !important;
        transform: translateY(-2px) !important;
        box-shadow: 0 4px 8px rgba(0,0,0,0.1) !important;
    }
    
    .payment-method-item.selected {
        border-color: #27ae60 !important;
        background-color: #f0f9f4 !important;
    }
    
    .payment-method-item.selected:hover {
        background-color: #e8f5e9 !important;
        border-color: #27ae60 !important;
        transform: translateY(-2px) !important;
        box-shadow: 0 4px 8px rgba(0,0,0,0.1) !important;
    }
    
    #card-element {
        background: white;
    }
    
    @keyframes fadeInOut {
        0% {
            opacity: 0;
            transform: translate(-50%, -50%) scale(0.9);
        }
        20% {
            opacity: 1;
            transform: translate(-50%, -50%) scale(1);
        }
        80% {
            opacity: 1;
            transform: translate(-50%, -50%) scale(1);
        }
        100% {
            opacity: 0;
            transform: translate(-50%, -50%) scale(0.9);
        }
    }
}

/* Suspended User Overlay Styles */
#suspendedUserOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Backdrop blur is handled via inline styles in subscription-overlays.php */
#suspendedUserOverlay > div:last-child {
    position: relative;
    z-index: 1;
}

/* Ensure payment method modal appears above suspended overlay */
#paymentMethodModal.plan-change-modal {
    z-index: 1000000 !important;
}

.suspended-overlay-content {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
    max-width: 500px;
    text-align: center;
}

.suspended-overlay-logo-wrap {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}

.suspended-overlay-logo {
    height: 50px;
}

.suspended-overlay-title {
    margin: 0 0 20px 0;
    color: #2c3e50;
    font-size: 24px;
}

.suspended-overlay-text {
    margin: 0 0 30px 0;
    color: #7f8c8d;
    font-size: 16px;
    line-height: 1.6;
}

.suspended-overlay-button {
    display: inline-block;
    padding: 12px 30px;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s;
}

.account-plan-blurred {
    filter: blur(5px);
    pointer-events: none;
}

.plan-box-detail-cancelled {
    color: #e67e22;
}

.payment-renewal-failed {
    color: #c10506;
    font-size: 14px;
    margin-top: 10px;
    margin-bottom: 0;
    width: 57%;
}

.delete-account-link-wrap {
    text-align: center;
    margin-top: 40px;
}

.delete-account-link {
    color: #95a5a6;
    text-decoration: underline;
    font-size: 16px;
}

.plan-max-seats {
    display: none;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
}

.plan-max-seats-text {
    margin: 0;
    color: #7f8c8d;
    font-size: 14px;
}

.plan-seat-warning {
    display: none;
    margin-top: 15px;
    padding: 12px;
    background-color: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 4px;
}

.plan-seat-warning-text {
    margin: 0;
    color: #856404;
    font-size: 14px;
}

.custom-alert {
    display: none;
    z-index: 10010;
}

.custom-alert-content {
    z-index: 10011;
}

.custom-alert-icon-wrap {
    margin-bottom: 10px;
}

.custom-alert-emoji {
    font-size: 2rem;
}

.custom-alert-heading {
    font-size: 16px;
    font-weight: normal;
    margin: 0;
}

.billing-cycle-seat-notice {
    margin-top: 15px;
    padding: 12px;
    background-color: #e3f2fd;
    border-left: 4px solid #2196f3;
    border-radius: 4px;
    display: none;
}

.billing-cycle-seat-notice-text {
    margin: 0;
    color: #1565c0;
    font-size: 13px;
}

.plan-change-modal-content-max-900 {
    max-width: 900px;
}

.plan-change-modal-body-padding {
    padding: 20px;
}

.plan-change-modal-body-one-column {
    padding: 20px;
}

.plan-change-modal-body-no-gap {
    grid-template-columns: 1fr;
}

.invoices-loading {
    text-align: center;
    padding: 40px;
}

.invoices-error {
    display: none;
    text-align: center;
    padding: 40px;
    color: #e67e22;
}

.invoices-table-container {
    display: none;
}

.invoices-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.invoices-table-header {
    background-color: #f5f5f5;
    border-bottom: 2px solid #e0e0e0;
}

.invoices-table-th {
    padding: 12px;
    text-align: left;
    font-weight: 600;
}

.invoices-table-th-center {
    padding: 12px;
    text-align: center;
    font-weight: 600;
}

.invoices-empty {
    display: none;
    text-align: center;
    padding: 40px;
    color: #7f8c8d;
}

.scheduled-downgrade-notice {
    margin: 0 30px 20px 30px;
    padding: 15px;
    background-color: #fff3cd;
    border-left: 4px solid #ffc107;
    border-radius: 4px;
}

.scheduled-downgrade-notice-text {
    margin: 0;
    color: #856404;
    font-size: 14px;
    line-height: 1.5;
}

.plan-change-modal-content-max-600 {
    max-width: 600px;
}

.plan-change-modal-content-max-500 {
    max-width: 500px;
}

.plan-change-modal-content-max-400 {
    max-width: 400px;
}

.payment-methods-loading {
    text-align: center;
    padding: 20px;
}

.payment-methods-error {
    text-align: center;
    padding: 20px;
    color: red;
    display: none;
}

.existing-payment-methods {
    display: none;
}

.payment-methods-heading {
    margin-bottom: 15px;
    margin-top: 0;
    font-size: 16px;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 8px;
}

.edit-payment-methods-icon {
    cursor: pointer;
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: filter 0.2s;
}

.edit-payment-methods-icon-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(0);
}

.payment-methods-list {
    margin-bottom: 20px;
}

.payment-method-success-message {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #27ae60;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    z-index: 10020;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    font-size: 14px;
    text-align: center;
    white-space: nowrap;
    pointer-events: none;
}

.delete-payment-method-modal {
    display: none;
    z-index: 10030;
}

.delete-payment-method-text {
    text-align: center;
    margin-bottom: 20px;
}

.modal-button-container-center {
    justify-content: center;
}

.btn-confirm-delete {
    background: #e74c3c;
    border-color: #e74c3c;
}

.add-new-card-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.add-new-card-heading {
    margin-bottom: 15px;
    font-size: 16px;
    color: #2c3e50;
}

.card-element {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 15px;
}

.card-errors {
    color: #e67e22;
    font-size: 14px;
    margin-bottom: 15px;
}

.add-card-btn-full {
    width: 100%;
}

.cancel-subscription-modal {
    display: none;
    z-index: 10050;
}

/* Ensure payment modal is above cancel subscription modal */
#paymentMethodModal.plan-change-modal {
    z-index: 1000001 !important;
}

/* Prevent blur inheritance from parent elements (especially user-session-wrapper) */
/* Use transform to create new stacking context and prevent blur inheritance */
#paymentMethodModal.plan-change-modal {
    isolation: isolate !important;
    filter: none !important;
    will-change: transform;
    transform: translateZ(0);
    position: fixed !important;
    z-index: 1000001 !important;
}

#paymentMethodModal .plan-change-modal-content {
    isolation: isolate !important;
    filter: none !important;
    will-change: transform;
    transform: translateZ(0);
    position: relative !important;
    z-index: 1000002 !important;
}

/* Ensure payment modal content is not affected by any backdrop filters */
#paymentMethodModal .plan-change-modal-content {
    position: relative !important;
    z-index: 1000002 !important;
    background: white !important;
}

/* Prevent cancel subscription modal overlay from blurring payment modal */
.cancel-subscription-modal .plan-change-modal-overlay {
    z-index: 0 !important;
}

.cancel-subscription-modal .plan-change-modal-content {
    z-index: 1 !important;
    isolation: isolate !important;
}

.cancel-subscription-content-wrap {
    margin-bottom: 20px;
}

.cancel-subscription-attention {
    color: #c10506;
    font-weight: 600;
    margin-bottom: 15px;
}

.cancel-subscription-intro {
    margin-bottom: 15px;
    line-height: 25px;
}

.cancel-subscription-expiry-label {
    margin: 0 0 10px 0;
    font-weight: 600;
}

.subscription-expiry-date {
    margin: 0 0 15px 0;
    font-size: 18px;
    font-weight: 600;
    color: #e67e22;
}

.enterprise-warning-box {
    background-color: #f8d7da;
    border: 1px solid #dc3545;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 15px;
}

.enterprise-warning-title {
    margin: 0 0 10px 0;
    font-weight: 600;
    color: #721c24;
}

.enterprise-warning-text {
    margin: 0 0 10px 0;
    line-height: 25px;
    color: #721c24;
}

.enterprise-warning-text-last {
    margin: 0;
    line-height: 25px;
    color: #721c24;
}

.cancel-subscription-info-box {
    background-color: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 15px;
}

.cancel-subscription-info-title {
    margin: 0 0 10px 0;
    font-weight: 600;
}

.cancel-subscription-info-list {
    margin-left: -10px;
    margin-bottom: 0;
    line-height: 25px;
}

.btn-proceed-cancel {
    background: #c10506 !important;
    border-color: #c10506 !important;
    color: white !important;
}

.btn-proceed-cancel:hover {
    background: #a00405 !important;
    border-color: #a00405 !important;
    opacity: 0.9;
}

.cancel-subscription-survey-modal {
    display: none;
    z-index: 10060;
}

.cancel-reason-other-input {
    display: none;
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #2c3e50;
}

.form-textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
}

.btn-confirm-red {
    background: #c10506 !important;
    border-color: #c10506 !important;
    color: white !important;
}

.btn-confirm-red:hover {
    background: #a00405 !important;
    border-color: #a00405 !important;
    opacity: 0.9;
}

.delete-account-warning-modal {
    display: none;
    z-index: 10070;
}

.delete-account-content-wrap {
    margin-bottom: 20px;
}

.delete-account-attention {
    color: #c10506;
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 18px;
}

.delete-account-intro {
    margin-bottom: 15px;
    line-height: 1.6;
}

.delete-account-note {
    margin: 0;
    color: #7f8c8d;
    font-size: 14px;
}

.delete-account-data-warning-box {
    background: #fee;
    border: 1px solid #fcc;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 15px;
}

.delete-account-data-warning-title {
    margin: 0;
    color: #c33;
    font-weight: 600;
}

.delete-account-data-warning-list {
    margin: 10px 0 0 20px;
    color: #c33;
}

.delete-account-survey-modal {
    display: none;
    z-index: 10071;
}

.billing-info-modal {
    display: none;
    z-index: 10040;
}

.billing-info-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.billing-info-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.billing-info-error {
    display: none;
    padding: 10px;
    background-color: #fee;
    border: 1px solid #fcc;
    border-radius: 4px;
    color: #c33;
    margin-top: 10px;
}

.modal-button-container-margin {
    margin-top: 10px;
}