/* =======================================================
   SECTION 14 : PRICING PLANS & SUBSCRIPTION SYSTEM
======================================================= */
.pricing-section {
    position: relative;
    padding: 110px 5.5%;
    overflow: hidden;
    background:
        radial-gradient(circle at 16% 12%, rgba(46, 196, 255, 0.08), transparent 27%),
        radial-gradient(circle at 85% 76%, rgba(180, 130, 255, 0.08), transparent 29%),
        linear-gradient(180deg, #07121f 0%, #091a2a 100%);
}
.pricing-section::before {
    position: absolute;
    inset: 0;
    content: "";
    opacity: 0.2;
    background-image:
        linear-gradient(rgba(98, 204, 249, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(98, 204, 249, 0.04) 1px, transparent 1px);
    background-size: 58px 58px;
    pointer-events: none;
}
.pricing-section .section-header,
.billing-switch,
.pricing-grid,
.pricing-comparison,
.pricing-cta {
    position: relative;
    z-index: 1;
    width: min(1380px, 100%);
    margin-right: auto;
    margin-left: auto;
}
/* ---------- Monthly / yearly switch ---------- */
.billing-switch {
    display: flex;
    justify-content: center;
    width: fit-content;
    margin-bottom: 32px;
    padding: 4px;
    border: 1px solid rgba(133, 211, 244, 0.17);
    border-radius: 12px;
    background: rgba(4, 20, 33, 0.64);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}
.billing-switch button {
    min-height: 38px;
    padding: 8px 14px;
    color: #9ebfce;
    border: 0;
    border-radius: 8px;
    background: transparent;
    font-size: 0.73rem;
    font-weight: 500;
    cursor: pointer;
    transition: 0.22s ease;
}
.billing-switch button.active {
    color: #04131f;
    background: var(--cyan);
    box-shadow: 0 6px 16px rgba(46, 196, 255, 0.2);
}
.billing-switch button:not(.active):hover {
    color: #e7faff;
    background: rgba(46, 196, 255, 0.08);
}
.billing-switch span {
    display: inline-block;
    margin-left: 6px;
    color: #9befbd;
    font-size: 0.62rem;
}
/* ---------- Pricing cards ---------- */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: stretch;
    gap: 18px;
}
.pricing-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 490px;
    padding: 25px 22px;
    border: 1px solid rgba(132, 211, 244, 0.17);
    border-radius: 16px;
    background:
        linear-gradient(145deg, rgba(17, 44, 65, 0.8), rgba(6, 23, 38, 0.88));
    box-shadow:
        0 17px 45px rgba(0, 0, 0, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.035);
    transition:
        transform 0.24s ease,
        border-color 0.24s ease,
        box-shadow 0.24s ease;
}
.pricing-card:hover {
    transform: translateY(-6px);
    border-color: rgba(46, 196, 255, 0.36);
    box-shadow:
        0 27px 60px rgba(0, 0, 0, 0.28),
        0 0 27px rgba(46, 196, 255, 0.07);
}
.plan-header h3 {
    margin: 0;
    color: #e9faff;
    font-size: 1rem;
    font-weight: 600;
}
.plan-header p {
    min-height: 40px;
    margin: 9px 0 0;
    color: #91afbd;
    font-size: 0.72rem;
    line-height: 1.5;
}
.price {
    display: flex;
    align-items: baseline;
    gap: 5px;
    margin: 24px 0 20px;
}
.price strong {
    color: #edfcff;
    font-size: 2.35rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.07em;
}
.price span {
    color: #8caab9;
    font-size: 0.69rem;
}
.pricing-card > button {
    width: 100%;
    min-height: 43px;
    margin-bottom: 22px;
    padding: 10px 14px;
    color: #b7d8e5;
    border: 1px solid rgba(137, 212, 245, 0.22);
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.025);
    font-size: 0.76rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.22s ease;
}
.pricing-card > button:hover {
    transform: translateY(-2px);
    color: #ffffff;
    border-color: rgba(46, 196, 255, 0.52);
    background: rgba(46, 196, 255, 0.1);
}
.plan-features {
    display: grid;
    gap: 11px;
    margin: 0;
    padding: 18px 0 0;
    border-top: 1px solid rgba(132, 211, 244, 0.11);
    color: #a5c2cf;
    font-size: 0.72rem;
    line-height: 1.45;
    list-style: none;
}
.plan-features li {
    position: relative;
    padding-left: 1px;
}
.plan-features li::first-letter {
    color: #93edb9;
}
/* ---------- Featured pricing plan ---------- */
.featured-plan {
    z-index: 1;
    border-color: rgba(46, 196, 255, 0.52);
    background:
        radial-gradient(circle at 50% 0%, rgba(46, 196, 255, 0.14), transparent 31%),
        linear-gradient(145deg, rgba(14, 54, 77, 0.94), rgba(7, 29, 45, 0.95));
    box-shadow:
        0 24px 65px rgba(0, 0, 0, 0.32),
        0 0 35px rgba(46, 196, 255, 0.11);
}
.popular-badge {
    position: absolute;
    top: -13px;
    left: 50%;
    padding: 6px 12px;
    color: #04131f;
    border-radius: 999px;
    background: var(--cyan);
    font-size: 0.64rem;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 7px 16px rgba(46, 196, 255, 0.25);
    transform: translateX(-50%);
}
.featured-plan > .primary-btn {
    color: #04131f;
    border-color: var(--cyan);
    background: var(--cyan);
    box-shadow: 0 10px 20px rgba(46, 196, 255, 0.21);
}
.featured-plan > .primary-btn:hover {
    color: #04131f;
    background: #80e5ff;
}
/* ---------- Plan comparison ---------- */
.pricing-comparison {
    padding: 0;
    margin-top: 25px;
    overflow: hidden;
}
.pricing-comparison::before {
    display: none;
}
.pricing-comparison .card-header {
    margin: 0;
    padding: 19px 22px;
    border-bottom: 1px solid rgba(132, 211, 244, 0.13);
    background: rgba(46, 196, 255, 0.035);
}
.pricing-comparison .card-header h3 {
    margin: 0;
    color: #e8f9ff;
    font-size: 0.94rem;
    font-weight: 600;
}
.pricing-comparison table {
    width: 100%;
    border-collapse: collapse;
}
.pricing-comparison th,
.pricing-comparison td {
    padding: 15px 17px;
    border-bottom: 1px solid rgba(132, 211, 244, 0.1);
    font-size: 0.73rem;
    text-align: center;
}
.pricing-comparison th {
    color: #7ea3b5;
    background: rgba(3, 17, 29, 0.25);
    font-size: 0.64rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.pricing-comparison th:first-child,
.pricing-comparison td:first-child {
    text-align: left;
}
.pricing-comparison td {
    color: #aac6d2;
}
.pricing-comparison td:first-child {
    color: #dceff7;
    font-weight: 600;
}
.pricing-comparison td:nth-child(3),
.pricing-comparison td:nth-child(4),
.pricing-comparison td:nth-child(5) {
    color: #9bedbd;
    font-weight: 500;
}
.pricing-comparison tbody tr {
    transition: background 0.2s ease;
}
.pricing-comparison tbody tr:hover {
    background: rgba(46, 196, 255, 0.045);
}
.pricing-comparison tbody tr:last-child td {
    border-bottom: 0;
}
/* ---------- Pricing CTA ---------- */
.pricing-cta {
    margin-top: 26px;
    padding: 40px 25px;
    overflow: hidden;
    border: 1px solid rgba(46, 196, 255, 0.28);
    border-radius: 16px;
    background:
        radial-gradient(circle at 76% 50%, rgba(46, 196, 255, 0.19), transparent 30%),
        linear-gradient(120deg, rgba(11, 49, 72, 0.92), rgba(8, 27, 44, 0.95));
    text-align: center;
    box-shadow:
        0 22px 54px rgba(0, 0, 0, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.pricing-cta h3 {
    margin: 0;
    color: #edfcff;
    font-size: clamp(1.35rem, 2.5vw, 1.85rem);
    font-weight: 600;
    letter-spacing: -0.04em;
}
.pricing-cta p {
    max-width: 590px;
    margin: 11px auto 22px;
    color: #a8c9d7;
    font-size: 0.8rem;
    line-height: 1.65;
}
/* ---------- Responsive pricing section ---------- */
@media (max-width: 1160px) {
    .pricing-section {
        padding: 88px 4%;
    }
    .pricing-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px 18px;
    }
    .featured-plan {
        transform: none;
    }
}
@media (max-width: 650px) {
    .pricing-section {
        padding: 72px 22px;
    }
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }
    .pricing-card {
        min-height: auto;
    }
    .pricing-comparison {
        overflow-x: auto;
    }
    .pricing-comparison table {
        min-width: 620px;
    }
    .pricing-comparison th,
    .pricing-comparison td {
        padding: 13px 12px;
        font-size: 0.68rem;
        white-space: nowrap;
    }
    .pricing-cta {
        padding: 31px 19px;
    }
    .pricing-cta .primary-btn {
        width: 100%;
    }
    .billing-switch {
        width: 100%;
    }
    .billing-switch button {
        flex: 1;
        padding: 8px 10px;
        font-size: 0.68rem;
    }
    .billing-switch span {
        display: none;
    }
}
