/* ===== STUNNING PRICING SECTION ===== */
.pricing-section {
    padding: 80px 20px;
    background: transparent;
    position: relative;
    width: 100%;
}

.pricing-section .section-title {
    text-align: center;
    margin-bottom: 50px;
}

.pricing-section .section-title h2 {
    font-size: 42px;
    margin-bottom: 10px;
    color: #ffffff;
    font-weight: 800;
    letter-spacing: -1px;
}

.pricing-section .section-title p {
    color: #ffffff;
    margin-top: 10px;
    font-size: 1.15rem;
}

/* ===== TOGGLE CONTAINER ===== */
.pricing-toggle-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 50px;
    background: rgba(255, 255, 255, 0.03);
    padding: 10px 20px;
    border-radius: 50px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
}

.toggle-label {
    font-size: 15px;
    font-weight: 500;
    color: #ffffff;
    opacity: 0.7;
    transition: all 0.3s;
}

.toggle-label.active {
    color: #fff;
    opacity: 1;
    font-weight: 600;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 28px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: #fff;
    transition: .4s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

input:checked+.slider {
    background: linear-gradient(135deg, #a855f7, #ec4899);
    border-color: transparent;
}

input:checked+.slider:before {
    transform: translateX(24px);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

.badge-save {
    background: linear-gradient(135deg, #f97316, #ec4899);
    color: white;
    font-size: 10px;
    padding: 3px 10px;
    border-radius: 12px;
    margin-left: 8px;
    vertical-align: middle;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===== PRICING GRID ===== */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

/* ===== PRICING CARDS - TRANSPARENT WITH GRADIENT BORDER ===== */
.pricing-card {
    background: transparent;
    backdrop-filter: none;
    border: none;
    border-radius: 24px;
    padding: 40px 32px;
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
    overflow: visible !important;
}

/* Logged-in user pricing background */
.logged-in .pricing-section,
.screen .pricing-section {
    background-color: #000000;
    border-radius: 20px;
    margin-top: 20px;
    padding: 40px;
}

/* Animated Gradient Border */
.pricing-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 24px;
    padding: 1.5px;
    background: linear-gradient(135deg,
            rgba(168, 85, 247, 0.4),
            rgba(236, 72, 153, 0.4),
            rgba(249, 115, 22, 0.3),
            rgba(168, 85, 247, 0.4));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    transition: all 0.4s ease;
    z-index: -1;
}

/* Inner glow effect */
.pricing-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(236, 72, 153, 0.5), transparent);
    opacity: 0.6;
}

/* Hover State - More vibrant gradient */
.pricing-card:hover::before {
    padding: 2px;
    background: linear-gradient(135deg,
            rgba(168, 85, 247, 0.8),
            rgba(236, 72, 153, 0.8),
            rgba(249, 115, 22, 0.7),
            rgba(168, 85, 247, 0.8));
}

.pricing-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.04);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 0 60px rgba(168, 85, 247, 0.15);
}

/* ===== POPULAR CARD - EXTRA STUNNING ===== */
.pricing-card.popular::before {
    padding: 2px;
    background: linear-gradient(135deg,
            #a855f7,
            #ec4899,
            #f97316,
            #a855f7);
    animation: gradientRotate 4s linear infinite;
}

@keyframes gradientRotate {
    0% {
        background: linear-gradient(135deg, #a855f7, #ec4899, #f97316, #a855f7);
    }

    25% {
        background: linear-gradient(135deg, #ec4899, #f97316, #a855f7, #ec4899);
    }

    50% {
        background: linear-gradient(135deg, #f97316, #a855f7, #ec4899, #f97316);
    }

    75% {
        background: linear-gradient(135deg, #a855f7, #ec4899, #f97316, #a855f7);
    }

    100% {
        background: linear-gradient(135deg, #a855f7, #ec4899, #f97316, #a855f7);
    }
}

.pricing-card.popular {
    background: transparent;
    box-shadow:
        0 0 80px rgba(168, 85, 247, 0.15),
        0 0 40px rgba(236, 72, 153, 0.1);
}

.pricing-card.popular:hover {
    box-shadow:
        0 25px 50px rgba(0, 0, 0, 0.4),
        0 0 100px rgba(168, 85, 247, 0.25),
        0 0 60px rgba(236, 72, 153, 0.15);
}

/* Popular Badge */
.popular-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #a855f7, #ec4899);
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    z-index: 10;
    box-shadow: 0 4px 20px rgba(168, 85, 247, 0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===== TEXT STYLES - ALL WHITE ===== */
.plan-name {
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.plan-price {
    font-size: 48px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 5px;
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.plan-price span,
.plan-price .price-period {
    font-size: 16px;
    font-weight: 500;
    color: #ffffff;
    opacity: 0.8;
}

/* CRITICAL: "billed yearly" text must be WHITE */
.price-subtext {
    color: #ffffff !important;
    font-size: 0.95rem;
    margin-bottom: 24px;
    opacity: 0.85;
    font-weight: 400;
}

/* ===== FEATURES LIST ===== */
.features-list {
    list-style: none;
    padding: 0;
    margin: 24px 0 32px;
    flex-grow: 1;
}

.features-list li {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
    color: #ffffff !important;
    font-size: 15px;
    font-weight: 500;
}

.features-list li svg {
    width: 20px;
    height: 20px;
    color: #a855f7;
    flex-shrink: 0;
}

.features-list li.disabled {
    color: rgba(255, 255, 255, 0.4) !important;
    text-decoration: line-through;
}

.features-list li.disabled svg {
    color: rgba(255, 255, 255, 0.3);
}

/* ===== BUTTONS ===== */
.btn-landing {
    display: block;
    width: 100%;
    padding: 16px;
    border-radius: 14px;
    text-align: center;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    font-size: 1rem;
    letter-spacing: 0.3px;
}

.btn-outline {
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    background: transparent;
}

.btn-outline:hover {
    border-color: rgba(168, 85, 247, 0.6);
    background: rgba(168, 85, 247, 0.1);
    color: #fff;
    box-shadow: 0 0 30px rgba(168, 85, 247, 0.2);
}

.btn-primary-glow {
    background: linear-gradient(135deg, #a855f7, #ec4899);
    color: #ffffff;
    box-shadow: 0 4px 20px rgba(168, 85, 247, 0.4);
    border: none;
}

.btn-primary-glow:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(168, 85, 247, 0.5);
    background: linear-gradient(135deg, #9333ea, #db2777);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .pricing-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .pricing-section {
        padding: 40px 16px;
    }

    .pricing-section .section-title h2 {
        font-size: 32px;
    }

    .pricing-toggle-container {
        padding: 8px 12px;
        gap: 10px;
        margin-bottom: 40px;
        width: 100%;
        max-width: 320px;
        justify-content: center;
        /* Center items instead of space-between */
    }

    .toggle-label {
        font-size: 13px;
        white-space: nowrap;
    }

    .toggle-switch {
        transform: scale(0.9);
        /* Scale down toggle slightly */
    }

    .badge-save {
        font-size: 9px;
        padding: 2px 5px;
        margin-left: 3px;
        display: inline-block;
        transform: translateY(-1px);
        white-space: nowrap;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        gap: 20px;
    }

    .pricing-card {
        padding: 30px 20px;
    }

    .plan-price {
        font-size: 36px;
    }

    .features-list {
        margin: 20px 0;
    }

    .features-list li {
        font-size: 14px;
        gap: 10px;
        margin-bottom: 12px;
    }
}