.pricing-section {
    min-height: calc(100vh - 80px);
    padding: 40px 20px 80px;
    text-align: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.pricing-section h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: var(--text);
}

.pricing-section .subtitle {
    color: var(--text-light);
    font-size: 1.2rem;
    margin-bottom: 30px;
}

/* Billing Segmented Control */
.billing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 90px;
}

.billing-segments {
    display: inline-grid;
    grid-template-columns: repeat(3, 1fr);
    background: #e9ecef;
    border-radius: 12px;
    padding: 4px;
    gap: 4px;
    position: relative;
}

.billing-segment {
    position: relative;
    padding: 16px 24px 12px 24px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    color: #999;
    border-radius: 10px;
    transition: color 0.3s ease;
    z-index: 1;
    text-align: center;
}

.billing-segment:hover {
    color: var(--text);
}

.billing-segment.active {
    color: var(--text);
}

/* Animated sliding background */
.billing-segments::before {
    content: '';
    position: absolute;
    top: 4px;
    left: 4px;
    height: calc(100% - 8px);
    width: calc((100% - 16px) / 3);
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 0;
}

.billing-segments[data-active="monthly"]::before {
    left: 4px;
}

.billing-segments[data-active="6month"]::before {
    left: calc(4px + (100% - 16px) / 3 + 4px);
}

.billing-segments[data-active="yearly"]::before {
    left: calc(4px + ((100% - 16px) / 3 + 4px) * 2);
}

/* Save badge overlapping segment at bottom */
.save-badge-floating {
    position: absolute;
    bottom: -17px;
    left: 50%;
    transform: translateX(-50%);
    background: #27ae60;
    color: white;
    font-size: 0.75rem;
    padding: 4px 12px;
    border-radius: 10px;
    font-weight: 600;
    white-space: nowrap;
    z-index: 10;
}

.billing-segment[data-period="yearly"] .save-badge-floating {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #000;
}



/* Pricing cards animation */
.pricing-card {
    transition: transform 0.3s, box-shadow 0.3s, opacity 0.3s;
}

.pricing-card.fade-out {
    opacity: 0;
    transform: translateY(10px);
}

.pricing-card.fade-in {
    animation: fadeIn 0.3s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pricing-cards {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.pricing-card {
    background: white;
    padding: 40px;
    border-radius: 16px;
    width: 100%;
    max-width: 320px;
    position: relative;
    border: 1px solid var(--gray-dark);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

@media (hover: hover) {
    .pricing-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    }

    .pricing-card.featured:hover {
        transform: scale(1.05) translateY(-5px);
    }
}

.pricing-card.featured {
    border: 2px solid var(--primary);
    transform: scale(1.05);
}

.badge {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    background: linear-gradient(135deg, #e31937 0%, #b7142c 100%);
    backdrop-filter: blur(10px) saturate(180%);
    -webkit-backdrop-filter: blur(10px) saturate(180%);
    color: white;
    padding: 6px 20px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
    text-align: center;
}

.badge.save {
    background: #27ae60;
}

.badge.gold {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.9) 0%, rgba(255, 165, 0, 0.9) 100%);
    backdrop-filter: blur(10px) saturate(180%);
    -webkit-backdrop-filter: blur(10px) saturate(180%);
    color: #000;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.btn-gold {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    backdrop-filter: blur(10px) saturate(180%);
    -webkit-backdrop-filter: blur(10px) saturate(180%);
    color: #000;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.btn-gold:hover {
    background: linear-gradient(135deg, #FFE033 0%, #FFB733 100%);
    transform: translateY(-2px);
}

/* Spotlight effect on pricing buttons */
.pricing-section .btn-primary:hover {
    background: linear-gradient(135deg, #f04058 0%, #c91a32 100%);
    transform: translateY(-2px);
}

.price-compare {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-top: -15px;
    margin-bottom: 10px;
}

.price-compare s {
    color: #999;
}

.price-note {
    font-size: 0.85rem;
    color: #27ae60;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 15px;
}

.pricing-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    margin-top: 10px;
    color: var(--text);
}

.price {
    margin-bottom: 20px;
    color: var(--text);
    white-space: nowrap;
}

.price .currency {
    font-size: 1.5rem;
    vertical-align: top;
}

.price .amount {
    font-size: 4rem;
    font-weight: 700;
}

.price .period {
    color: var(--text-light);
}

.features-list {
    list-style: none;
    text-align: left;
    margin-bottom: 30px;
}

.features-list li {
    padding: 10px 0;
    border-bottom: 1px solid var(--gray-dark);
    color: var(--text);
}

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

.payment-methods {
    margin-top: 60px;
    margin-bottom: 0;
    color: var(--text-light);
}

.payment-icons {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 15px;
    font-size: 1.2rem;
    color: var(--text);
}

/* Desktop disclaimer spacing */
@media (min-width: 769px) {
    .wake-disclaimer {
        margin-top: 5rem !important;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .pricing-section {
        padding: 40px 25px;
    }

    .pricing-section .container {
        padding: 0;
    }

    .pricing-section h1 {
        font-size: 1.8rem;
    }

    .pricing-section .subtitle {
        font-size: 1rem;
        margin-bottom: 40px;
    }

    .billing-toggle {
        margin-bottom: 60px;
    }

    .billing-segments {
        flex-direction: row;
        width: 100%;
        max-width: 360px;
    }

    .billing-segment {
        flex: 1;
        padding: 10px 12px;
        font-size: 0.9rem;
    }

    .pricing-cards {
        gap: 50px;
        flex-direction: column;
    }

    .pricing-card {
        padding: 20px;
        max-width: none;
    }

    .pricing-card.featured {
        transform: none;
    }

    .price .amount {
        font-size: 3rem;
    }

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

    .payment-icons {
        gap: 20px;
    }
}

