/* ========== I. GLOBAL & UTILITIES ========== */


/* Prices Page Specific Styles - Dark Modern Theme */
.pricing-section {
    padding-top: 64px;
    padding-bottom: 64px;
    background-color: var(--dark-grey);
    /* Fallback or specific override */
    color: var(--white);
}

.text-center {
    text-align: center;
}

.mb-large {
    margin-bottom: 48px;
}

.mb-medium {
    margin-bottom: 32px;
}

.mt-small {
    margin-top: 16px;
}

.text-muted {
    font-size: 0.85em;
    color: #aaa;
    /* Lighter gray for dark mode */
    font-weight: normal;
    margin-left: 0.4em;
    /* Space between category name and price */
}

.full-width {
    width: 100%;
    display: block;
    text-align: center;
}

h3 {
    font-size: clamp(15px, 2vw, 19px);
    font-weight: 400;
    color: var(--white);
    margin-bottom: 16px;
    margin-left: 32px;
    margin-right: 32px;
    opacity: 0.9;
}

h1 {
    color: var(--primary-blue);
    font-weight: 700;
}

/* ========== II. VIDEO COMPONENT ========== */
.pricing-video-wrapper {
    position: relative;
    width: 100%;
    max-width: 800px;
    aspect-ratio: 16 / 9;
    margin: clamp(10px, 2vw, 20px) auto clamp(40px, 8vw, 100px) auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    background-color: #000;
    overflow: hidden;
}

.pricing-video-wrapper iframe,
.pricing-video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    object-fit: cover;
}

/* (Consolidated into max-width: 740px at line 638) */


/* ========== III. PRICING GRID SYSTEM ========== */
.pricing-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 0;
    /* Remove gap for border-collapse look */
    align-items: stretch;
    max-width: 1200px;
    margin: 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    background-color: rgba(255, 255, 255, 0.02);
}


/* Remove last column right border */
.pricing-grid>div:nth-child(4n) {
    border-right: none !important;
}

/* ========== COLOR-CODED COLUMNS (All screen sizes) ========== */
/* Plan 1 (Basic) - Subtle Blue */
.pricing-grid>div:nth-child(4n+2) {
    background-color: rgba(0, 102, 153, 0.06);
}

/* Plan 2 (Featured) - Subtle Cyan */
.pricing-grid>div:nth-child(4n+3) {
    background-color: rgba(0, 140, 188, 0.06);
}

/* Plan 3 (Premium) - Subtle Gold */
.pricing-grid>div:nth-child(4n+4):not(:first-child) {
    background-color: rgba(225, 178, 96, 0.06);
}

/* ========== IV. HEADER COMPONENTS ========== */
.grid-header {
    text-align: center;
    padding: 32px 16px;
    position: relative;
    background-color: rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.grid-header.empty-cell {
    background-color: rgba(255, 255, 255, 0.02);
    border: none;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    /* Stack badge above label */
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    gap: 12px;
    transition: background-color 0.3s ease, opacity 0.3s ease;
}

.plan-icon {
    max-height: 80px;
    margin-bottom: 16px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.plan-value {
    color: #ccc;
    font-size: 15px;
    margin-bottom: 8px;
    font-weight: 600;
    text-decoration: line-through;
    /* Optional styling for "value" */
    text-decoration-color: var(--primary-blue);
    position: relative;
    display: inline-block;
    white-space: nowrap;
}

.plan-price {
    font-size: 40px;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 16px;
    margin-top: 4px;
    /* Space from value text */
}

.plan-header:nth-child(4) .plan-price {
    color: var(--accent-tan);
}

.currency-label {
    font-size: 0.4em;
    font-weight: 600;
    color: inherit;
    /* Inherit the price color (tan or white) */
    margin-left: 4px;
    vertical-align: baseline;
    opacity: 0.9;
}

/* Distinct Header Colors (Top Bars) */
.plan-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
}

.plan-header:nth-child(2)::before {
    background-color: var(--primary-blue);
}

.plan-header:nth-child(3)::before {
    background-color: #008CBC;
    height: 12px;
}

.plan-header:nth-child(3) {
    background-color: rgba(0, 140, 188, 0.1);
}

.plan-header:nth-child(4)::before {
    background-color: var(--accent-tan);
}

.plan-header:nth-child(4) {
    background-color: rgba(225, 178, 96, 0.1);
}

/* ========== V. BADGES & LABELS ========== */
.compare-label {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: center;
    line-height: 1.3;
    transition: color 0.3s ease, opacity 0.3s ease;
}

/* Money Back Badge (Inside Header Style) */
.money-back-badge {
    position: relative;
    width: clamp(160px, 20vw, 220px);
    height: clamp(160px, 20vw, 220px);
    z-index: 20;
    transition: transform 0.3s ease, filter 0.3s ease;
    margin-bottom: 24px;
    filter: drop-shadow(0 4px 15px rgba(0, 0, 0, 0.3));
    /* Spacing below badge on desktop */
}

.money-back-badge:hover {
    filter: drop-shadow(0 6px 20px rgba(0, 0, 0, 0.4)) hue-rotate(-10deg) brightness(1.1) saturate(1.2);
}

/* Most Popular Badge (Modern Premium Pill) */
.popular-badge {
    position: absolute;
    top: 8px;
    /* Controlled by JS in prices.html */
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(to bottom, #d49f3d 0%, #bd8e2b 100%);
    /* Rich Gold */
    color: #ffffff;
    padding: 6px 20px;
    border-radius: 50px;
    /* Pill Shape */
    font-weight: 800;
    font-size: 11px;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow:
        0 0 20px rgba(212, 159, 61, 0.6),
        0 4px 10px rgba(0, 0, 0, 0.4);
    z-index: 10;
    white-space: nowrap;
    border: 2px solid #ffffff;
    font-family: 'Montserrat', sans-serif;
}

/* ========== VI. FEATURE ROWS & CELLS ========== */
#sticky-sentinel {
    height: 1px;
    width: 100%;
    visibility: hidden;
    margin-bottom: -1px;
    /* Avoid adding space */
}

.feature-name {
    padding: 19.2px;
    font-weight: 500;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    background-color: rgba(255, 255, 255, 0.02);
    color: #eee;
    display: block;
}

.feature-check,
.check-cell,
.button-cell {
    padding: 16px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

/* Row Hover Effect */
.feature-name:hover,
.feature-name:hover+.feature-check,
.feature-name:hover+.feature-check+.feature-check,
.feature-name:hover+.feature-check+.feature-check+.feature-check {
    background-color: rgba(0, 140, 188, 0.05);
}





/* ========== VII. BUTTONS & ACTIONS ========== */
.btn-primary {
    transition: all 0.3s ease;
}

.btn-primary.full-width {
    font-size: 16px;
    padding: 10px 16px;
    white-space: nowrap;
}

/* ========== VIII. REFUND POLICY MODAL ========== */
.refund-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    /* Above sticky headers (z-index: 100-105) */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 20px;
    box-sizing: border-box;
}

.refund-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.refund-modal-content {
    background: linear-gradient(145deg, #1a2530 0%, #121920 100%);
    border-radius: 16px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.1);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.refund-modal-overlay.active .refund-modal-content {
    transform: translateY(0);
}

.refund-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--white);
    font-size: 28px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease, transform 0.2s ease;
    z-index: 10;
}

.refund-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.refund-modal-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px 24px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.refund-modal-logo {
    width: 144px;
    height: auto;
    border-radius: 8px;
}

.refund-modal-header h2 {
    color: var(--accent-tan);
    font-size: 24px;
    font-weight: 700;
    margin: 0;
    letter-spacing: 0.5px;
}

.refund-modal-body {
    padding: 24px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
    font-size: 15px;
}

.refund-modal-body p {
    margin-bottom: 16px;
}

.refund-intro {
    font-size: 17px;
    color: var(--white);
    font-weight: 500;
}

.refund-contact {
    background: rgba(0, 140, 188, 0.15);
    border-left: 4px solid var(--primary-blue);
    padding: 16px 20px;
    border-radius: 0 8px 8px 0;
    margin: 20px 0;
}

.refund-contact p {
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.7);
}

.refund-email {
    color: var(--primary-blue);
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.refund-email:hover {
    color: var(--accent-tan);
}

.refund-list {
    margin: 12px 0 20px 20px;
    padding: 0;
}

.refund-list li {
    margin-bottom: 8px;
    position: relative;
    padding-left: 8px;
}

.refund-list li::marker {
    color: var(--primary-blue);
}

.refund-requirements {
    font-size: clamp(13px, 1.3vw, 15px);
    line-height: 1.5;
    margin-bottom: 20px;
    opacity: 0.9;
}

.refund-note {
    background: rgba(225, 178, 96, 0.15);
    border-left: 4px solid var(--accent-tan);
    padding: 12px 16px;
    border-radius: 0 8px 8px 0;
    font-size: 14px;
}

.refund-fee {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    font-style: italic;
}

@media (max-width: 600px) {
    .refund-modal-header {
        /*
        flex-direction: column;
        */
        text-align: center;
        gap: 12px;
    }

    .refund-modal-header h2 {
        font-size: clamp(16px, 5vw, 20px);
    }

    .refund-modal-logo {
        width: clamp(90px, 20vw, 120px);
    }

    .refund-modal-body {
        padding: clamp(12px, 4vw, 16px);
        font-size: clamp(12px, 3.5vw, 14px);
    }

    .refund-modal-body p {
        font-size: clamp(12px, 3.2vw, 14px);
        /* Clamp all paragraph text */
    }

    .refund-intro {
        font-size: clamp(13px, 4vw, 16px);
    }

    .refund-email {
        font-size: clamp(14px, 4vw, 18px);
    }

    .refund-list li {
        font-size: clamp(11px, 3vw, 13px);
    }

    .refund-note,
    .refund-fee {
        font-size: clamp(10px, 3vw, 13px) !important;
    }
}


/* ========== IX. MOBILE RESPONSIVE HIERARCHY ========== */
@media (max-width: 1024px) {

    /* Feature Value Stacking - ($425 value) always on new line and centered */
    .pricing-grid .feature-name {
        text-align: center;
        display: block;
    }

    .pricing-grid .feature-name .text-muted {
        display: block;
        text-align: center;
        margin-left: 0;
        margin-top: 2px;
        white-space: normal;
    }

    /* Scaling buttons to fit narrow columns at 1024px */
    .btn-primary.full-width {
        font-size: 13px;
        padding: 8px 12px;
    }
}

@media (max-width: 740px) {

    /* Main Layout */
    .pricing-section {
        padding-top: 16px;
        padding-bottom: 32px;
        padding-left: 2px;
        padding-right: 2px;
    }

    .pricing-section .container {
        padding: 0;
        width: 100%;
    }

    .pricing-grid {
        display: grid;
        grid-template-columns: 34% 22% 22% 22%;
        gap: 0;
        width: 100%;
        border: none;
        background: transparent;
        margin-top: 40px !important;
        overflow: visible !important;
    }

    .pricing-video-wrapper {
        width: 90%;
        max-width: 100%;
        border-radius: 8px;
    }

    /* Headers */
    .grid-header {
        position: sticky;
        top: 80px;
        z-index: 100;
        /* background-color: rgba(18, 25, 32, 0.85); */
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        padding: 8px 2px;
        border-bottom: 2px solid rgba(255, 255, 255, 0.1);
        border-right: 1px solid rgba(255, 255, 255, 0.05);
        min-width: 0;
    }

    .grid-header.empty-cell {
        background-color: rgba(255, 255, 255, 0.02);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-top-left-radius: 8px;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 12px 4px !important;
        gap: 8px !important;
    }

    .compare-label {
        font-size: 10px;
        letter-spacing: 0.5px;
    }

    .money-back-badge {
        display: block !important;
        width: clamp(100px, 25vw, 140px) !important;
        height: clamp(100px, 25vw, 140px) !important;
        position: static !important;
        transform: none !important;
        margin-bottom: 8px;
        border-width: 2px !important;
    }

    .popular-badge {
        font-size: clamp(7px, 2vw, 11px);
        padding: 4px 10px !important;
        top: 8px;
        left: 50% !important;
        transform: translateX(-50%) !important;
        border-width: 1px;
        white-space: normal;
        max-width: 100%;
        line-height: 1.3;
    }

    /* Column Color Overrides */
    .pricing-grid>div:nth-child(4n+2) {
        background-color: rgba(0, 102, 153, 0.08);
    }

    .grid-header.plan-header:nth-child(2) {
        background-color: rgba(0, 102, 153, 0.15);
    }

    .pricing-grid>div:nth-child(4n+3) {
        background-color: rgba(0, 140, 188, 0.08);
    }

    .grid-header.plan-header:nth-child(3) {
        background-color: rgba(0, 140, 188, 0.15);
    }

    .pricing-grid>div:nth-child(4n+4):not(:first-child) {
        background-color: rgba(225, 178, 96, 0.08);
    }

    .grid-header.plan-header:nth-child(4) {
        background-color: rgba(225, 178, 96, 0.15);
    }

    /* Feature Styling Overrides */
    .feature-name {
        font-size: 9px;
        padding: 8px 4px;
        line-height: 1.2;
        word-break: break-word;
        font-weight: 500;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        background-color: rgba(255, 255, 255, 0.02);
        color: #eee;
    }

    .feature-name .text-muted {
        font-size: 0.85em;
        opacity: 0.7;
    }

    /* Plan Stats */
    .plan-icon {
        max-height: 45px;
        margin-bottom: 2px;
    }

    .plan-value {
        font-size: 11px;
        display: block;
        margin-bottom: 2px;
        margin-top: 8px;
        opacity: 0.7;
    }

    .plan-price {
        font-size: 15px;
        font-weight: 700;
        margin-bottom: 0;
        margin-top: 4px;
    }

    .currency-label {
        font-size: 9px;
        margin-left: 2px;
    }

    /* Common Cells */
    .feature-check,
    .check-cell,
    .button-cell {
        font-size: 14px;
        padding: 4px 0;
        min-width: 0;
        overflow: hidden;
    }

    .btn-primary.full-width {
        font-size: 9px;
        padding: 5px 4px;
        white-space: nowrap;
        text-overflow: clip;
        min-width: 0;
        height: auto;
        line-height: 1;
        border-radius: 4px;
        width: 90%;
        margin-left: auto;
        margin-right: auto;
        word-break: normal;
        overflow-wrap: normal;
    }

    .button-cell {
        padding-top: 8px;
        padding-left: 1px;
        padding-right: 1px;
    }

    /* Sticky State Logic (Moved here) */
    .pricing-grid.stuck .money-back-badge {
        opacity: 1 !important;
        pointer-events: auto !important;
        transform: scale(1) !important;
    }

    .pricing-grid.stuck .grid-header {
        padding: 8px 2px;
        /* background-color: rgba(18, 25, 32, 0.98); */
        backdrop-filter: blur(10px);
    }

    .pricing-grid.stuck .grid-header.empty-cell {
        padding: 12px 4px !important;
        gap: 8px !important;
    }

    .pricing-grid.stuck .compare-label {
        font-size: 10px;
    }

    .pricing-grid.stuck .plan-icon {
        max-height: 45px;
        margin-bottom: 2px;
        margin-top: clamp(8px, 4vw, 16px);
    }

    .pricing-grid.stuck .plan-value {
        display: block;
        opacity: 0.7;
    }

    .pricing-grid.stuck .plan-price {
        margin-top: 0;
    }

    .pricing-grid.stuck .popular-badge {
        font-size: 8px !important;
        padding: 4px 10px !important;
        top: 0;
        transform: translateX(-50%) !important;
    }
}


@media (max-width: 500px) {

    /* Vertical Text for "Get Started" to fit? Or just Arrow? */
    .btn-primary.full-width {
        padding: 4px 0;
        font-size: 0;
        /* Hide text */
        height: 19px;
        /* Reduced height */
        /* Fixes: Gap & Width & Centering */
        margin-top: 5px;
        width: 90%;
        margin-left: auto;
        margin-right: auto;
        border-radius: 4px;
        position: relative;
        white-space: nowrap;
    }

    .btn-primary.full-width::after {
        /*content: '➜';*/
        content: 'Pick';
        font-size: 9px;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        text-transform: uppercase;
        font-weight: 700;
    }

    /* Icons larger for this view */
    .plan-icon {
        display: block;
        max-height: 34px;
        margin-bottom: 1px;
        width: auto;
    }

    .currency-label {
        font-size: 7px;
        margin-left: 1px;
    }

    /* Wrap value text on narrow screens */
    .plan-value {
        white-space: normal !important;
        line-height: 1.1 !important;
        margin-bottom: 6px !important;
    }

    /* Refund Modal Scaling (Consolidated from 480px) */
    .refund-modal-header {
        gap: 8px;
        padding-right: 50px;
    }

    .refund-modal-header h2 {
        font-size: clamp(14px, 4.5vw, 18px);
    }

    /* Badge Consolidation */
    .popular-badge {
        font-size: clamp(9px, 2.5vw, 11px) !important;
        padding: 3px 6px !important;
        letter-spacing: 0.3px !important;
        max-width: 100% !important;
        white-space: normal !important;
        text-align: center !important;
        line-height: 1.3 !important;
        top: 8px;
        /* Text-only styling */
        background: transparent;
        border: none;
        box-shadow: none;
        color: #d49f3d;
    }

    .pricing-grid.stuck .popular-badge {
        font-size: 7px !important;
        padding: 2px 4px !important;
        max-width: 50px !important;
    }
}

/* Ultra-Compact Creative Layout (< 300px) */
@media (max-width: 300px) {
    .pricing-grid {
        /* Creative: Text gets all space, Plans get fixed 'stat' columns */
        grid-template-columns: 1fr 48px 48px 48px;
    }

    /* Minimal Headers */
    .plan-icon {
        display: block;
        max-height: 30px;
        width: auto;
        margin: 0 auto 0px auto;
    }

    .plan-value {
        display: block;
        font-size: 9px;
        /* Increased from 7px */
        margin-bottom: 1px;
        margin-top: 8px;
        opacity: 0.6;
    }

    .plan-price {
        font-size: 13px;
        white-space: nowrap;
        /* Prevent price from breaking */
        line-height: 1;
        margin-top: 2px;
        /* Reduced from 12px to close gap with value */
        margin-bottom: 12px;
        /* Ensure gap from button */
    }

    .currency-label {
        font-size: 4px;
        margin-left: 0px;
    }

    /* Badge positioning for ultra-narrow screens */
    .popular-badge {
        font-size: 7px !important;
        padding: 2px 4px !important;
        letter-spacing: 0.2px !important;
        max-width: 45px !important;
        white-space: normal !important;
        text-align: center !important;
        line-height: 1.2 !important;
        top: 6px;
        left: 50% !important;
        transform: translateX(-50%) !important;
        /* Text-only badge at ultra-narrow widths */
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        color: #ffffff !important;
    }

    /* Vertical Text for "Get Started" to fit? Or just Arrow? */
    .btn-primary.full-width {
        padding: 4px 0;
        font-size: 0;
        /* Hide text */
        height: 22px;
        width: 100%;
        margin: 0;
        border-radius: 4px;
        position: relative;

    }

    .btn-primary.full-width::after {
        /*content: '➜';*/
        content: 'Pick';
        font-size: 9px;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        text-transform: uppercase;
        font-weight: 700;
    }

    /* Feature Text Room */
    .feature-name {
        font-size: 11px;
        /* Can be slightly larger now */
        padding: 6px 4px;
        padding-left: 4px;
        /* Reduced from 10px to avoid centering offset */
        font-weight: 600;
        letter-spacing: -0.3px;
        text-align: center;
        display: block;
    }

    .feature-name .text-muted {
        display: block;
        margin-left: 0;
        margin-top: 2px;
        font-weight: 400;
        font-size: 0.9em;
    }

    /* Centered Emojis */
    .feature-check,
    .check-cell {
        font-size: 16px;
        padding: 6px 0;
    }

    /* Zebra Striping for readability */
    .pricing-grid>div:nth-child(8n+5),
    .pricing-grid>div:nth-child(8n+6),
    .pricing-grid>div:nth-child(8n+7),
    .pricing-grid>div:nth-child(8n+8) {
        background-color: rgba(255, 255, 255, 0.03);
    }
}