/* Sales Page Pricing Styles */
.pricing-container {
    width: 100%;
}

.pricing-card {
    background-color: var(--card-bg, #151515);
    border-radius: 20px;
    padding: 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.essential-card {
    border-color: #333;
}

.premium-card {
    border-color: var(--blue, #0066ff);
    box-shadow: 0 0 50px rgba(0, 102, 255, 0.15);
}

.card-header {
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
}

.plan-badge {
    display: inline-block;
    padding: 0.4rem 1.2rem;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.essential-badge {
    background-color: #29292e;
    color: #e1e1e6;
}

.premium-badge {
    background-color: rgba(0, 102, 255, 0.2);
    color: #60a5fa;
    border: 1px solid rgba(0, 102, 255, 0.3);
}

.plan-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
    color: #fff;
}

.plan-desc {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.plan-price {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
}

.price-old {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.4);
    text-decoration: line-through;
    font-weight: 500;
}

.price-current-row {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.price-value {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: #ffffff;
}

.price-period {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
}

.plan-features-container {
    flex-grow: 1;
    padding-top: 2rem;
    margin-bottom: 2.5rem;
    border-top: 1px solid #333;
    position: relative;
    z-index: 2;
}

.features-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.features-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    padding-left: 0;
}

.features-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    font-size: 1rem;
    line-height: 1.5;
    color: #e1e1e6;
}

.check-icon {
    color: #00ff88;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}

.plan-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 1.2rem;
    border-radius: 50px;
    border: 1px solid #444;
    background: transparent;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    margin-top: auto;
    position: relative;
    z-index: 2;
}

.arrow-icon {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.plan-btn:hover {
    background: #fff;
    color: #000;
    border-color: #fff;
}

.plan-btn:hover .arrow-icon {
    transform: translate(2px, -2px);
}

/* Comparison Slider */
.comparison-section {
    position: relative;
    z-index: 5;
}

.comparison-wrapper {
    position: relative;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    aspect-ratio: 16 / 9;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: ew-resize;
    user-select: none;
    -webkit-user-drag: none;
}

.comparison-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
}

.img-before {
    z-index: 2;
    clip-path: inset(0 50% 0 0);
    /* left side */
}

.img-after {
    z-index: 1;
}

.comparison-slider-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background-color: #0066ff;
    box-shadow: 0 0 15px rgba(0, 102, 255, 0.8), 0 0 5px rgba(255, 255, 255, 1);
    transform: translateX(-50%);
    z-index: 3;
    pointer-events: none;
}

.comparison-slider-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    background-color: #111;
    border: 2px solid #0066ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(0, 102, 255, 0.5);
    color: #fff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.comparison-wrapper:hover .comparison-slider-button {
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 0 30px rgba(0, 102, 255, 0.7);
}

.comparison-badge {
    position: absolute;
    top: 24px;
    padding: 8px 20px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 5;
    pointer-events: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.badge-before {
    left: 24px;
}

.badge-after {
    right: 24px;
}

/* =========================================================
   Mobile Optimization & Immersive Enhancements
========================================================= */

/* Animations */
@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 102, 255, 0.4);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(0, 102, 255, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(0, 102, 255, 0);
    }
}

@keyframes floatButton {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-3px);
    }
}

.premium-card .btn-primary {
    animation: pulseGlow 2s infinite, floatButton 3s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}

/* Responsive Queries */
@media (max-width: 992px) {
    .pricing-card {
        padding: 2.5rem 1.5rem;
    }

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

@media (max-width: 768px) {
    .comparison-wrapper {
        height: 50vh;
        min-height: 400px;
        border-radius: 12px;
    }

    .comparison-badge {
        font-size: 0.75rem;
        padding: 0.3rem 0.8rem;
    }

    .comparison-slider-button {
        width: 40px;
        height: 40px;
    }

    .pricing-card {
        padding: 2rem 1.5rem;
        margin-bottom: 2rem !important;
    }

    .plan-title {
        font-size: 1.6rem !important;
    }

    .price-value {
        font-size: 2.5rem;
    }

    .plan-desc {
        font-size: 0.95rem;
    }

    .features-list li {
        font-size: 0.95rem;
        align-items: flex-start;
    }

    .check-icon {
        width: 18px;
        height: 18px;
        margin-top: 1px;
    }

    .plan-btn,
    .premium-card .btn-primary {
        font-size: 1rem;
        padding: 1rem;
    }
}