/* Pricing Page Styles */
.pricing-section {
    padding: 140px 0 100px;
    background: var(--bg-dark);
    /* Fallback */
    background-image:
        radial-gradient(circle at 10% 20%, rgba(30, 58, 138, 0.2) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(236, 72, 153, 0.1) 0%, transparent 20%);
    min-height: 100vh;
}

.pricing-subtitle {
    text-align: center;
    color: var(--accent-yellow);
    font-size: 1.8rem;
    font-weight: 700;
    margin-top: -2rem;
    margin-bottom: 4rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 20px rgba(251, 191, 36, 0.3);
}

.pricing-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.pricing-card {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 3rem;
    backdrop-filter: blur(12px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    position: relative;
    transition: transform 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-5px);
    border-color: var(--light-blue);
}

.pricing-card-header {
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.pricing-card-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: #ffffff;
    /* Solid White */
}

.pricing-table-wrapper {
    overflow-x: auto;
}

.pricing-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 0.5rem;
    min-width: 600px;
}

.pricing-table th {
    text-align: left;
    padding: 1rem;
    color: var(--accent-teal);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}

.pricing-table td {
    padding: 1.2rem 1rem;
    background: rgba(30, 58, 138, 0.2);
    color: var(--text-white);
    font-weight: 500;
}

.pricing-table tr td:first-child {
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
    font-weight: 700;
    color: #ffffff;
}

.pricing-table tr td:last-child {
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
    text-align: center;
}

.pricing-table tr td:nth-last-child(2) {
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--success-green);
}

.btn-buy {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    background: linear-gradient(135deg, var(--light-blue), var(--accent-pink));
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-buy:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.6);
}

.pricing-table tr {
    transition: all 0.2s ease;
}

.pricing-table tr:hover td {
    background: rgba(59, 130, 246, 0.3);
}

.discount-pill {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
}

.discount-30 {
    background: rgba(251, 191, 36, 0.2);
    color: var(--accent-yellow);
    border: 1px solid rgba(251, 191, 36, 0.5);
}

.discount-40 {
    background: rgba(236, 72, 153, 0.2);
    color: var(--accent-pink);
    border: 1px solid rgba(236, 72, 153, 0.5);
}

.discount-50 {
    background: rgba(20, 184, 166, 0.2);
    color: var(--accent-teal);
    border: 1px solid rgba(20, 184, 166, 0.5);
}

.price-original {
    text-decoration: line-through;
    color: var(--text-gray);
    font-size: 0.95rem;
}

.highlight-row td {
    background: linear-gradient(90deg, rgba(236, 72, 153, 0.15), rgba(30, 58, 138, 0.3));
    border-top: 1px solid rgba(236, 72, 153, 0.3);
    border-bottom: 1px solid rgba(236, 72, 153, 0.3);
}

@media (max-width: 768px) {
    .pricing-section {
        padding: 100px 0 60px;
    }

    .pricing-subtitle {
        font-size: 1.4rem;
        margin-bottom: 2.5rem;
    }

    .pricing-card {
        padding: 1.5rem;
    }

    .pricing-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .pricing-card-header i {
        display: none;
        /* Hide icon on mobile to save space or adjust */
    }

    .pricing-card-title {
        font-size: 1.3rem;
        line-height: 1.4;
    }

    /* Responsive Table - Stacked Layout */
    .pricing-table-wrapper {
        overflow-x: visible;
    }

    .pricing-table {
        min-width: 100%;
        display: block;
    }

    .pricing-table thead {
        display: none;
    }

    .pricing-table tbody {
        display: block;
    }

    .pricing-table tr {
        display: block;
        margin-bottom: 1.5rem;
        background: rgba(15, 23, 42, 0.6);
        border: 1px solid var(--border-color);
        border-radius: 16px;
        overflow: hidden;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    }

    .pricing-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        text-align: right;
        padding: 1rem 1.2rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        font-size: 0.95rem;
        background: transparent !important;
        min-height: 3.5rem;
    }

    .pricing-table td:last-child {
        border-bottom: none;
        justify-content: center;
        padding: 1.5rem;
        background: rgba(30, 58, 138, 0.2) !important;
    }

    .pricing-table td::before {
        content: attr(data-label);
        font-weight: 700;
        text-transform: uppercase;
        font-size: 0.8rem;
        color: var(--accent-teal);
        text-align: left;
        margin-right: 1rem;
        flex: 1;
    }

    /* Hide label for the last child (Button) to center it properly */
    .pricing-table td:last-child::before {
        display: none;
    }

    .pricing-table tr td:first-child {
        border-radius: 0;
        color: var(--light-blue);
        background: rgba(30, 58, 138, 0.3) !important;
        font-size: 1.1rem;
        border-bottom: 1px solid rgba(59, 130, 246, 0.2);
        justify-content: center;
        text-align: center;
    }

    /* Hide label for the first child (Period) if we want it to look like a card title, 
       but keeping it consistent is also fine. Let's make it look like a header. */
    .pricing-table tr td:first-child::before {
        display: none;
    }

    .pricing-table tr td:nth-last-child(2) {
        font-size: 1.1rem;
        color: var(--success-green);
    }

    .btn-buy {
        width: 100%;
        text-align: center;
        padding: 0.8rem;
    }
}

/* Checkout Modal Styles */
.modal-overlay {
    display: none;
    /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    overflow-y: auto;
    padding: 20px;
}

.modal-content {
    background: #0f172a;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    width: 100%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    animation: modalSlideIn 0.3s ease-out;
    max-height: 95vh;
    overflow-y: auto;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    color: var(--text-gray);
    cursor: pointer;
    transition: color 0.2s;
}

.close-modal:hover {
    color: var(--accent-pink);
}

.modal-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(90deg, var(--white), var(--light-blue));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
}

.modal-plan-name {
    text-align: center;
    color: var(--accent-teal);
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0.5rem;
}

.form-group {
    margin-bottom: 0.8rem;
}

.form-row {
    display: flex;
    gap: 1rem;
}

.form-row .form-group {
    flex: 1;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-gray);
    font-size: 0.9rem;
    font-weight: 500;
}

input[type="text"],
input[type="email"],
input[type="tel"],
select {
    width: 100%;
    padding: 0.6rem 0.8rem;
    background: rgba(30, 58, 138, 0.2);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--white);
    font-size: 0.95rem;
    transition: all 0.3s;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
select:focus {
    outline: none;
    border-color: var(--light-blue);
    background: rgba(30, 58, 138, 0.4);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

/* Add custom arrow for select */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px;
}

/* User select none for read-only to imply they are fixed */
input[readonly] {
    background: rgba(15, 23, 42, 0.8);
    opacity: 0.7;
    cursor: not-allowed;
}

@media (max-width: 480px) {
    .modal-content {
        padding: 1rem;
        width: 95%;
        margin: 0 auto;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .modal-title {
        font-size: 1.5rem;
    }
}