body {
    background:
        radial-gradient(circle at top left, rgba(47, 116, 218, 0.06), transparent 28%),
        radial-gradient(circle at top right, rgba(242, 140, 40, 0.08), transparent 24%),
        linear-gradient(180deg, #f7faff 0%, #eef3f8 100%);
    color: var(--dark);
}

.pricing-hero {
    background:
        radial-gradient(circle at top left, rgba(47, 116, 218, 0.12), transparent 34%),
        radial-gradient(circle at 85% 15%, rgba(242, 140, 40, 0.12), transparent 24%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(245, 249, 255, 0.98) 100%);
    padding: 64px 24px 58px;
    text-align: center;
    border-bottom: 1px solid #e3eaf2;
    border-radius: 0 0 34px 34px;
}

.pricing-hero-content {
    max-width: 960px;
    margin: 0 auto;
}

.pricing-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(47, 116, 218, 0.08);
    border: 1px solid rgba(47, 116, 218, 0.14);
    color: var(--primary);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.pricing-hero h1 {
    font-size: clamp(2.6rem, 4vw, 4rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.04em;
    margin-bottom: 16px;
    color: #0c1422;
}

.pricing-hero p {
    font-size: 16px;
    color: #5b6778;
    max-width: 780px;
    margin: 0 auto;
    line-height: 1.8;
}

.billing-toggle-strip,
.pricing-grid-section,
.comparison-section,
.faq-section,
.pricing-cta {
    padding: 34px 24px 0;
}

.billing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    width: fit-content;
    margin: 0 auto;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid #dbe4ef;
    border-radius: 999px;
    box-shadow: var(--shadow-sm);
}

.toggle-label {
    font-size: 14px;
    font-weight: 600;
    color: #5b6778;
}

.toggle-label.active {
    color: var(--primary);
}

.save-badge {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 999px;
    margin-left: 6px;
}

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

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

.slider {
    position: absolute;
    inset: 0;
    cursor: pointer;
    background-color: #cbd5e1;
    transition: .3s;
    border-radius: 999px;
}

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

input:checked + .slider {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}

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

.pricing-grid-section {
    max-width: 1240px;
    margin: 0 auto;
    padding-top: 26px;
}

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

.pricing-card,
.comparison-table,
.faq-item,
.guarantee-box {
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    border: 1px solid #dbe4ef;
    box-shadow: var(--shadow-sm);
}

.pricing-card {
    border-radius: 26px;
    padding: 28px 22px 22px;
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: all 0.3s ease;
}

.pricing-card::before,
.comparison-table::before,
.faq-item::before,
.guarantee-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 18px;
    right: 18px;
    height: 4px;
    border-radius: 0 0 999px 999px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
}

.pricing-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 18px 34px rgba(47, 116, 218, 0.12);
}

.pricing-card.popular {
    border: 2px solid var(--primary);
    box-shadow: 0 22px 38px rgba(47, 116, 218, 0.14);
}

.pricing-card.enterprise {
    background: linear-gradient(180deg, #fff9f2 0%, #ffffff 100%);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    padding: 4px 16px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(47, 116, 218, 0.24);
}

.pricing-name {
    font-size: 21px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 10px;
    text-align: center;
}

.pricing-price {
    text-align: center;
    margin-bottom: 22px;
}

.monthly-price,
.yearly-price {
    font-size: 34px;
    font-weight: 700;
    color: var(--primary);
}

.original-price {
    font-size: 14px;
    color: #94a3b8;
    text-decoration: line-through;
    margin-top: 6px;
}

.price-period {
    font-size: 13px;
    color: #5b6778;
    display: block;
    margin-top: 4px;
}

.price-free {
    color: #10b981;
}

.savings-tag {
    background: #10b981;
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 999px;
    display: inline-block;
    margin-top: 8px;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 24px 0;
    flex: 1;
}

.pricing-features li {
    font-size: 13px;
    color: #475569;
    padding: 10px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid #edf2f8;
}

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

.pricing-features i {
    color: #10b981;
    font-size: 12px;
    width: 18px;
}

.pricing-footer {
    margin-top: auto;
}

.btn-pricing {
    display: block;
    width: 100%;
    min-height: 46px;
    line-height: 46px;
    background: #f1f5f9;
    color: #475569;
    text-decoration: none;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.btn-pricing:hover {
    background: #e2e8f0;
}

.btn-pricing.primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
}

.btn-pricing.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(47, 116, 218, 0.2);
}

.guarantee-box {
    margin-top: 24px;
    border-radius: 22px;
    padding: 22px;
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
}

.guarantee-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(47, 116, 218, 0.12), rgba(242, 140, 40, 0.14));
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 24px;
    flex-shrink: 0;
}

.guarantee-text h3 {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 6px;
}

.guarantee-text p {
    font-size: 13px;
    color: #5b6778;
    line-height: 1.7;
}

.comparison-section,
.faq-section {
    padding-top: 72px;
}

.section-head {
    text-align: center;
    max-width: 780px;
    margin: 0 auto 34px;
}

.section-head h2 {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: #0f172a;
    margin-bottom: 12px;
}

.section-head p {
    font-size: 16px;
    color: #5b6778;
    line-height: 1.8;
}

.comparison-table {
    max-width: 980px;
    margin: 0 auto;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
}

.comparison-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    border-bottom: 1px solid #e2e8f0;
}

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

.comparison-row.header {
    background: #f4f8fd;
    font-weight: 700;
}

.comparison-cell {
    padding: 14px 12px;
    font-size: 13px;
    color: #475569;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.comparison-cell:first-child {
    justify-content: flex-start;
    text-align: left;
    font-weight: 600;
    color: #0f172a;
}

.comparison-cell .fa-check {
    color: #10b981;
}

.comparison-cell .fa-times {
    color: #cbd5e1;
}

.faq-section {
    max-width: 980px;
    margin: 0 auto;
}

.faq-grid {
    display: grid;
    gap: 16px;
}

.faq-item {
    border-radius: 20px;
    overflow: hidden;
    position: relative;
}

.faq-question {
    padding: 18px 20px;
    background: #f8fbff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 600;
    color: #0f172a;
    font-size: 15px;
}

.faq-question i {
    color: var(--primary);
    transition: transform 0.2s;
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    font-size: 13px;
    color: #475569;
    line-height: 1.7;
    background: white;
}

.faq-item.active .faq-answer {
    padding: 0 20px 18px 20px;
    max-height: 220px;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.pricing-cta {
    margin-top: 72px;
    padding: 72px 24px;
    background:
        radial-gradient(circle at top left, rgba(47, 116, 218, 0.12), transparent 30%),
        radial-gradient(circle at bottom right, rgba(242, 140, 40, 0.12), transparent 28%),
        linear-gradient(135deg, #0e1725 0%, #161f30 100%);
    text-align: center;
    color: white;
}

.pricing-cta h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.03em;
}

.pricing-cta p {
    font-size: 16px;
    color: #b8c6da;
    margin-bottom: 24px;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--accent), #ff9f43);
    color: #ffffff;
    padding: 14px 28px;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 16px 28px rgba(242, 140, 40, 0.24);
}

.btn-cta:hover {
    transform: translateY(-2px);
}

:root[data-theme="dark"] body {
    background:
        radial-gradient(circle at top left, rgba(47, 116, 218, 0.16), transparent 28%),
        radial-gradient(circle at top right, rgba(242, 140, 40, 0.1), transparent 20%),
        linear-gradient(180deg, #08111f 0%, #0b1220 100%);
    color: var(--page-text);
}

:root[data-theme="dark"] .pricing-hero {
    border-bottom-color: var(--page-border);
    background:
        radial-gradient(circle at top left, rgba(47, 116, 218, 0.16), transparent 32%),
        radial-gradient(circle at 88% 16%, rgba(242, 140, 40, 0.12), transparent 22%),
        linear-gradient(180deg, rgba(14, 23, 37, 0.96) 0%, rgba(11, 18, 32, 0.98) 100%);
}

:root[data-theme="dark"] .pricing-kicker {
    background: rgba(47, 116, 218, 0.14);
    border-color: rgba(47, 116, 218, 0.24);
    color: #9fc4ff;
}

:root[data-theme="dark"] .pricing-hero h1,
:root[data-theme="dark"] .pricing-name,
:root[data-theme="dark"] .guarantee-text h3,
:root[data-theme="dark"] .section-head h2,
:root[data-theme="dark"] .comparison-cell:first-child,
:root[data-theme="dark"] .faq-question,
:root[data-theme="dark"] .pricing-cta h2 {
    color: #f8fbff;
}

:root[data-theme="dark"] .pricing-hero p,
:root[data-theme="dark"] .section-head p,
:root[data-theme="dark"] .guarantee-text p,
:root[data-theme="dark"] .pricing-features li,
:root[data-theme="dark"] .comparison-cell,
:root[data-theme="dark"] .faq-answer,
:root[data-theme="dark"] .price-period,
:root[data-theme="dark"] .pricing-cta p {
    color: #9eb0c8;
}

:root[data-theme="dark"] .billing-toggle,
:root[data-theme="dark"] .pricing-card,
:root[data-theme="dark"] .comparison-table,
:root[data-theme="dark"] .faq-item,
:root[data-theme="dark"] .guarantee-box,
:root[data-theme="dark"] .faq-answer {
    background: linear-gradient(180deg, rgba(20, 30, 47, 0.96) 0%, rgba(17, 24, 39, 0.98) 100%);
    border-color: rgba(148, 163, 184, 0.16);
    box-shadow: 0 20px 44px rgba(3, 8, 18, 0.34);
}

:root[data-theme="dark"] .comparison-row.header,
:root[data-theme="dark"] .faq-question {
    background: rgba(255, 255, 255, 0.04);
}

:root[data-theme="dark"] .btn-pricing {
    background: rgba(255, 255, 255, 0.06);
    color: #dbe5f3;
    border-color: rgba(148, 163, 184, 0.16);
}

:root[data-theme="dark"] .btn-pricing.primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
}

:root[data-theme="dark"] .guarantee-icon {
    background: linear-gradient(135deg, rgba(47, 116, 218, 0.16), rgba(242, 140, 40, 0.18));
    color: #9fc4ff;
}

@media (max-width: 1024px) {
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .comparison-row {
        grid-template-columns: 2fr 1fr 1fr;
    }

    .comparison-row .comparison-cell:nth-child(4),
    .comparison-row .comparison-cell:nth-child(5) {
        display: none;
    }
}

@media (max-width: 768px) {
    .pricing-hero h1 {
        font-size: 32px;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 420px;
        margin: 0 auto;
    }

    .billing-toggle {
        flex-wrap: wrap;
    }

    .guarantee-box {
        flex-direction: column;
        text-align: center;
    }

    .comparison-row {
        grid-template-columns: 2fr 1fr;
    }

    .comparison-row .comparison-cell:nth-child(3) {
        display: none;
    }
}
