/* Pricing Section Styles */
:root {
    --pricing-bg-web: var(--bg-primary);
    --pricing-bg-card: var(--card-bg);
    --pricing-text-main: var(--text-primary);
    --pricing-text-sub: var(--text-secondary);
    --pricing-accent: var(--brand-red);
    --pricing-accent-hover: var(--brand-red-hover);
    --pricing-border: var(--border-color);
}

.pricing-section {
    padding: 24px 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;
    left: 50%;
    transform: translate(-50%, -55%);
    font-size: clamp(34px, 6.8vw, 92px);
    font-weight: 900;
    font-family: 'Inter', system-ui, sans-serif;
    letter-spacing: -1px;
    color: #eaeaea;
    opacity: 0.55;
    white-space: nowrap;
    z-index: 0;
    pointer-events: none;
    text-transform: uppercase;
    text-align: center;
    text-shadow: none;
    max-width: 95vw;
}

/* Fix CSS Animation overwriting the X-axis centering lock */
.huge-bg-text.scroll-animate {
    transform: translate(-50%, -45%);
}

.huge-bg-text.scroll-animate.show {
    transform: translate(-50%, -55%);
}

/* ===== 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: rgba(229, 9, 20, 0.08);
    border: 1px solid rgba(229, 9, 20, 0.3);
    color: var(--brand-red);
    box-shadow: 0 0 12px rgba(229, 9, 20, 0.1);
}

.tag-recommended {
    background: rgba(217, 119, 6, 0.08);
    border: 1px solid rgba(217, 119, 6, 0.3);
    color: #d97706;
    box-shadow: 0 0 12px rgba(217, 119, 6, 0.1);
}

.tag-best-offer {
    background: rgba(18, 18, 18, 0.06);
    border: 1px solid rgba(18, 18, 18, 0.2);
    color: var(--text-primary);
    box-shadow: 0 0 14px rgba(18, 18, 18, 0.05);
}

.tag-vault {
    background: rgba(147, 51, 234, 0.1);
    border: 1px solid rgba(147, 51, 234, 0.35);
    color: #c084fc;
    box-shadow: 0 0 12px rgba(147, 51, 234, 0.15);
}

/* ===== Black November Pricing Banner ===== */
.bn-pricing-banner {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: linear-gradient(135deg, rgba(229, 9, 20, 0.12), rgba(255, 176, 32, 0.06));
    border: 1px solid rgba(229, 9, 20, 0.4);
    border-radius: 14px;
    padding: 22px 24px;
    margin-bottom: 24px;
    box-shadow: 0 0 30px rgba(229, 9, 20, 0.2);
    position: relative;
    overflow: hidden;
}

.bn-pricing-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #ff2a35, #ffd700, transparent);
}

.bn-pricing-banner .bn-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #e50914;
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 999px;
    margin-bottom: 12px;
    box-shadow: 0 0 16px rgba(229, 9, 20, 0.5);
}

.bn-pricing-banner .bn-heading {
    font-family: 'Bebas Neue', 'Inter', system-ui, sans-serif;
    font-size: clamp(24px, 4.5vw, 36px);
    letter-spacing: 1px;
    line-height: 1.1;
    color: #ffffff;
    margin: 0 0 8px;
    text-align: center;
}

.bn-pricing-banner .bn-sub {
    font-size: 14px;
    color: #d1d5db;
    margin: 0;
    text-align: center;
    max-width: 580px;
}

/* ===== Strikethrough Original Price ===== */
.price-original {
    font-size: 20px;
    font-weight: 600;
    color: var(--pricing-text-sub);
    opacity: 0.7;
    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: var(--pricing-text-sub);
    font-weight: 600;
}

.countdown-blocks {
    display: flex;
    align-items: center;
    gap: 6px;
}

.countdown-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--bg-secondary);
    border: 1px solid var(--pricing-border);
    border-radius: 8px;
    padding: 6px 12px;
    min-width: 48px;
}

.countdown-block span {
    font-size: 22px;
    font-weight: 800;
    color: var(--pricing-text-main);
    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: var(--pricing-text-sub);
    text-transform: uppercase;
    margin-top: 3px;
}

.countdown-sep {
    font-size: 20px;
    font-weight: 800;
    color: var(--pricing-text-sub);
    padding-bottom: 8px;
}

/* Base Pricing Card */
.pricing-card {
    background: var(--pricing-bg-card);
    border: 1px solid var(--pricing-border);
    border-radius: 24px;
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 2;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease, border-color 0.3s ease;
    box-shadow: var(--card-shadow);
    min-height: 520px;
}

@media (hover: hover) and (pointer: fine) {
    .pricing-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
        border-color: rgba(0, 0, 0, 0.15);
    }
}

/* Highlighted Plan Style */
.pricing-card.highlighted {
    background: var(--pricing-bg-card);
    border: 2px solid var(--pricing-accent);
    box-shadow: 0 8px 32px rgba(229, 9, 20, 0.08), var(--card-shadow);
}

@media (hover: hover) and (pointer: fine) {
    .pricing-card.highlighted:hover {
        border-color: var(--pricing-accent);
        box-shadow: 0 16px 40px rgba(229, 9, 20, 0.15), var(--card-shadow);
    }
}

/* 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: var(--pricing-border);
    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: var(--pricing-text-sub);
    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='%23e50914' 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: var(--pricing-accent);
    color: #FFFFFF;
    border: 1px solid transparent;
}

.cta-button:hover {
    background: var(--pricing-accent-hover);
    transform: scale(1.02);
}

/* Outline/Ghost style for standard cards */
.cta-button.outline {
    background: transparent;
    color: var(--pricing-accent);
    border: 1px solid var(--pricing-accent);
}

.cta-button.outline:hover {
    background: var(--brand-red-light);
    border-color: var(--pricing-accent);
}

/* 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: var(--pricing-text-sub);
    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(20px, 6.2vw, 42px);
        letter-spacing: -0.5px;
        color: #eaeaea;
        opacity: 0.45;
        transform: translate(-50%, -50%);
    }

    .huge-bg-text.scroll-animate {
        transform: translate(-50%, -40%);
    }

    .huge-bg-text.scroll-animate.show {
        transform: translate(-50%, -50%);
    }

    /* Mobile Pricing Navigation Arrows */
    .pricing-nav-btn {
        display: flex;
        position: absolute;
        top: 55%;
        transform: translateY(-50%);
        width: 48px;
        height: 48px;
        border-radius: 50%;
        background: var(--bg-secondary);
        border: 1px solid var(--pricing-border);
        color: var(--pricing-text-main);
        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;
    }
}
