/* Pricing Section Styles */
:root {
    --pricing-bg-web: #000000;
    /* Black background */
    --pricing-bg-card: #15171A;
    /* Dark card background */
    --pricing-text-main: #FFFFFF;
    /* White text */
    --pricing-text-sub: #9CA3AF;
    /* Gray text */
    --pricing-accent: #FFFFFF;
    /* White accent */
    --pricing-accent-hover: #E5E7EB;
    /* Light gray hover */
    --pricing-border: #333333;
    /* Dark border */
}

.pricing-section {
    padding: 64px 24px 16px 24px;
    background-color: var(--pricing-bg-web);
    font-family: 'Inter', system-ui, sans-serif;
    color: var(--pricing-text-main);
    overflow: hidden;
    /* Prevent horizontal scroll on body */
}

.pricing-container {
    max-width: 1280px;
    margin: 0 auto;
}

/* Header */
.pricing-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 64px;
}

.pricing-header h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 0px;
    /* Reduced to 0 */
    color: var(--pricing-text-main);
    line-height: 1;
    /* Tighter line height */
}

.social-proof {
    font-size: 18px;
    color: var(--pricing-text-sub);
    margin-top: 5px;
    /* Slight gap from the title */
    margin-bottom: 8px;
}

.cta-callout {
    font-size: 20px;
    font-weight: 600;
    color: var(--pricing-accent);
}

/* Wrapper to anchor the background text */
.pricing-cards-wrapper {
    position: relative;
    margin-top: clamp(80px, 10vw, 160px);
    z-index: 1;
}

/* Pricing Cards Container */
.pricing-cards-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    padding-bottom: 0px;
}

/* Huge Background Text */
.huge-bg-text {
    position: absolute;
    top: 0;
    /* Align to the very top edge of the cards wrapper */
    left: 50%;
    transform: translate(-50%, -65%);
    /* Shift up by exactly 65% per user request */
    font-size: clamp(100px, 18vw, 260px);
    font-weight: 900;
    color: #ffffff;
    opacity: 0.4;
    white-space: nowrap;
    z-index: 0;
    /* Behind the cards */
    pointer-events: none;
    /* Can't be clicked/selected */
    font-family: 'Inter', system-ui, sans-serif;
    letter-spacing: -2px;
    text-transform: uppercase;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Fix CSS Animation overwriting the X-axis centering lock */
.huge-bg-text.scroll-animate {
    transform: translate(-50%, -50%);
    /* Start slightly lower but perfectly centered */
}

.huge-bg-text.scroll-animate.show {
    transform: translate(-50%, -65%);
    /* Glide up to the final 65% position */
}

/* ===== Card Badges / Tags ===== */
.card-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 999px;
    margin-bottom: 14px;
    width: fit-content;
}

.tag-popular {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(239, 68, 68, 0.05));
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #f87171;
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.15);
}

.tag-recommended {
    background: linear-gradient(135deg, rgba(250, 204, 21, 0.2), rgba(250, 204, 21, 0.05));
    border: 1px solid rgba(250, 204, 21, 0.4);
    color: #fde047;
    box-shadow: 0 0 12px rgba(250, 204, 21, 0.15);
}

.tag-best-offer {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.04));
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #ffffff;
    box-shadow: 0 0 14px rgba(255, 255, 255, 0.12);
}

/* ===== Strikethrough Original Price ===== */
.price-original {
    font-size: 20px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.35);
    text-decoration: line-through;
    margin-right: 6px;
    align-self: flex-end;
    padding-bottom: 4px;
}

/* ===== Promo Countdown Timer ===== */
.promo-countdown {
    margin-top: 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.countdown-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.45);
    font-weight: 600;
}

.countdown-blocks {
    display: flex;
    align-items: center;
    gap: 6px;
}

.countdown-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    padding: 6px 12px;
    min-width: 48px;
}

.countdown-block span {
    font-size: 22px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    letter-spacing: -1px;
}

.countdown-block small {
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    margin-top: 3px;
}

.countdown-sep {
    font-size: 20px;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.4);
    padding-bottom: 8px;
}

/* Base Pricing Card (Glassmorphism) */
.pricing-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
    /* Enhanced Glass Gradient */
    border: 1px solid rgba(255, 255, 255, 0.1);
    /* Frosted border */
    backdrop-filter: blur(40px) saturate(150%);
    /* Strong Gaussian blur + saturation */
    -webkit-backdrop-filter: blur(40px) saturate(150%);
    border-radius: 24px;
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 2;
    /* Sits above the text */
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease, border-color 0.3s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    min-height: 500px;
    /* Ensure equal heights natively */
}

@media (hover: hover) and (pointer: fine) {
    .pricing-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
        border-color: rgba(255, 255, 255, 0.15);
    }
}

/* Highlighted Plan Style */
.pricing-card.highlighted {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04));
    /* Even stronger Glass effect */
    border: 1px solid rgba(255, 255, 255, 0.25);
    /* Stronger border */
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.05), 0 8px 32px rgba(0, 0, 0, 0.5);
    /* Outer glow */
}

@media (hover: hover) and (pointer: fine) {
    .pricing-card.highlighted:hover {
        border-color: rgba(255, 255, 255, 0.3);
        box-shadow: 0 0 40px rgba(255, 255, 255, 0.1), 0 16px 40px rgba(0, 0, 0, 0.6);
    }
}

/* Card Typography */
.plan-header {
    margin-bottom: 24px;
}

.plan-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--pricing-text-sub);
    text-transform: capitalize;
    display: block;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.price-wrapper {
    display: flex;
    align-items: baseline;
    color: var(--pricing-text-main);
}

.price {
    font-size: 48px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -1.5px;
}

.billing-period {
    font-size: 16px;
    color: var(--pricing-text-sub);
    margin-left: 4px;
    font-weight: 500;
}

/* Divider */
.plan-divider {
    border: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0 0 24px 0;
}

/* Features List */
.features {
    list-style: none;
    padding: 0;
    margin: 0 0 32px;
    flex-grow: 1;
}

.features li {
    font-size: 14px;
    color: #e2e8f0;
    margin-bottom: 16px;
    display: flex;
    align-items: flex-start;
    line-height: 1.5;
}

/* Custom Checkmark icon using pseudo-element */
.features li::before {
    content: "";
    /* Use empty content for SVG bg */
    display: block;
    width: 16px;
    height: 16px;
    min-width: 16px;
    margin-right: 12px;
    margin-top: 3px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.8)' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* CTA Buttons */
.cta-button {
    width: 100%;
    padding: 14px 20px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
    display: block;
    margin-top: 18px;
    box-sizing: border-box;
}

/* Filled solid button primarily for highlighted card */
.cta-button {
    background: #ffffff;
    color: #000000;
    border: 1px solid transparent;
}

.cta-button:hover {
    background: #f0f0f0;
    transform: scale(1.02);
}

/* Outline/Ghost style for standard cards */
.cta-button.outline {
    background: transparent;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.cta-button.outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
}

/* Payment Methods Global Bottom */
.payment-methods-global {
    text-align: center;
    margin-top: 16px;
    padding: 0 10px;
    width: 100%;
}

.supported-text {
    font-size: 14px;
    font-weight: 500;
    color: var(--pricing-text-sub);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.payment-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    font-size: 28px;
    color: rgba(255, 255, 255, 0.7);
    flex-wrap: wrap;
}

/* Responsive Grid Rules */

/* Small Desktop / Large Tablet */
@media (max-width: 1199px) {
    .pricing-cards-container {
        grid-template-columns: repeat(2, 1fr);
        /* 2x2 grid */
        gap: 24px;
        max-width: 800px;
        margin: 0 auto;
    }
}

/* Tablet & Mobile Layouts */
@media (max-width: 768px) {
    .pricing-section {
        padding: 24px 16px 16px 16px;
        /* Greatly reduced top gap */
    }

    .pricing-header {
        margin: 0 auto 32px;
        /* Tighter header bottom margin */
    }

    .pricing-cards-wrapper {
        margin-top: 60px;
        /* Much closer to the title text on mobile */
    }

    .pricing-cards-container {
        display: flex;
        flex-direction: row;
        /* Scroll horizontally */
        gap: 16px;
        align-items: stretch;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding-bottom: 32px;
        /* Space for scrollbar/shadows */
        -webkit-overflow-scrolling: touch;
        justify-content: flex-start;
        /* Override grid from desktop */
    }

    /* Hide scrollbar for cleaner look */
    .pricing-cards-container::-webkit-scrollbar {
        display: none;
    }

    .pricing-cards-container {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    .pricing-card {
        flex: 0 0 85%;
        /* Mobile card width */
        min-width: 280px;
        scroll-snap-align: center;
        max-width: none;
    }

    .huge-bg-text {
        font-size: clamp(80px, 25vw, 150px);
        /* Adjust bg text for mobile */
        opacity: 0.2;
        /* slightly fainter on mobile but still visible */
        transform: translate(-50%, -60%);
        /* Re-center behind tighter grid */
    }

    /* Mobile Pricing Navigation Arrows */
    .pricing-nav-btn {
        display: flex;
        position: absolute;
        top: 55%;
        transform: translateY(-50%);
        width: 48px;
        height: 48px;
        border-radius: 50%;
        background: rgba(0, 0, 0, 0.7);
        border: 1px solid rgba(255, 255, 255, 0.2);
        color: white;
        align-items: center;
        justify-content: center;
        z-index: 10;
        cursor: pointer;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        transition: opacity 0.4s ease, transform 0.2s ease;
    }

    .pricing-nav-btn i {
        font-size: 18px;
    }

    .pricing-nav-btn.prev {
        left: 4px;
    }

    .pricing-nav-btn.next {
        right: 4px;
    }

    .pricing-nav-btn.hidden {
        opacity: 0;
        pointer-events: none;
    }

    .pricing-nav-btn:active {
        transform: translateY(-50%) scale(0.9);
    }
}

/* Hide on Desktop naturally */
@media (min-width: 769px) {
    .pricing-nav-btn {
        display: none !important;
    }
}