.header-and-filter-container .page-header {
        text-align: center;
        margin-bottom: 20px;
        position: relative;
    }

    .header-and-filter-container .pricing-title {
        font-size: clamp(2rem, 5vw, 3rem);
        font-weight: 800;
        /* Updated to use gradient */
        background-image: linear-gradient(90deg, #3C0753, #910A67);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        /* End Updated */
        margin-bottom: 0.5rem;
    }

    .header-and-filter-container .header-and-filter-container .header-subtitle {
        font-size: 1.25rem;
        color: #4b5563;
        /* Using mid tone for better contrast */
    }

    /* --- Filter Controls (UX Feature) --- */
    .header-and-filter-container .filter-controls-wrapper {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 2rem;
        gap: 1rem;
        max-width: 1280px;
        margin: 0 auto 2rem;
        padding: 0 1rem;
    }

    @media (min-width: 768px) {
        .header-and-filter-container .filter-controls-wrapper {
            flex-direction: row;
        }
    }

    .header-and-filter-container .filter-dropdown-container {
        width: 100%;
    }

    @media (min-width: 768px) {
        .header-and-filter-container .filter-dropdown-container {
            width: 33.333333%;
        }
    }

    @media (min-width: 1024px) {
        .header-and-filter-container .filter-dropdown-container {
            width: 25%;
        }
    }

    .header-and-filter-container .filter-label {
        display: block;
        font-size: 0.875rem;
        font-weight: 500;
        color: #4b5563;
        margin-bottom: 0.25rem;
    }

    .header-and-filter-container #location-filter {
        display: block;
        width: 100%;
        padding: 0.5rem 2.5rem 0.5rem 0.75rem;
        font-size: 1rem;
        border: 1px solid #d1d5db;
        border-radius: 0.5rem;
        box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
        cursor: pointer;
        outline: none;
        transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    }

    .header-and-filter-container #location-filter:focus {
        border-color: #910A67;
        box-shadow: 0 0 0 3px rgba(145, 10, 103, 0.5);
    }

    .header-and-filter-container .offer-count-wrapper {
        display: none;
        font-size: 0.875rem;
        color: #1f2937;
    }

    @media (min-width: 1024px) {
        .header-and-filter-container .offer-count-wrapper {
            display: flex;
            /* Changed to flex for alignment */
            align-items: center;
            /* New Badge Style */
            background-color: #ffffff;
            border: 1px solid #e5e7eb;
            padding: 0.5rem 1rem;
            border-radius: 0.5rem;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
            /* End New Badge Style */
        }

        .header-and-filter-container .offer-count-wrapper span:first-child {
            color: #4b5563;
        }
    }

    /* Highlight the dynamic offer count using the accent color */
    .header-and-filter-container .offer-count {
        font-weight: 800;
        color: #ff6c2c;
        margin-left: 0.25rem;
    }

    /* --- CORE TABLE TO CARD CONVERSION STYLES --- */

    /* Hide all redundant table components, keep only the container for the cards */

    .promotion-section .container {
        max-width: 1500px;
        margin-left: auto;
        margin-right: auto;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .promotion-section .g-redirect-table-btns-div,
    .promotion-section .g-new-product-pricing-table-thead {
        display: none;
    }

    .promotion-section .g-new-product-pricing-table-caption{
        display: block;
        padding: 1.5rem 0;
        background: transparent;
        color: #3c0753;
        font-size: 30px;
    }

    /* Ensure table elements behave as blocks/grids */
    .promotion-section .g-new-product-pricing-table,
    .promotion-section .g-new-product-pricing-table-tbody,
    .promotion-section .g-new-product-pricing-table-tbody-row,
    .promotion-section .g-new-product-pricing-table-data {
        display: block;
        /* Overrides default table display properties */
        border: none;
        width: 100%;
        box-sizing: border-box;
        padding: 0;
    }

    .promotion-section .g-new-product-pricing-table-wrapper {
        box-shadow: none;
        overflow: visible;
        margin: 0 !important;
    }

    .promotion-section .g-new-product-pricing-table {
        margin-bottom: 3rem;
    }

    /* 1. Card Grid Container (g-new-product-pricing-table-tbody) */
    .promotion-section .g-new-product-pricing-table-tbody {
        display: grid;
        gap: 1.5rem;
        grid-template-columns: 1fr;
        /* Mobile default: 1 column */
        padding: 0;
    }

    @media (min-width: 768px) {
        .promotion-section .g-new-product-pricing-table-tbody {
            grid-template-columns: repeat(2, 1fr);
            /* Tablet: 2 columns */
        }
    }

    @media (min-width: 1280px) {
        .promotion-section .g-new-product-pricing-table-tbody {
            grid-template-columns: repeat(3, 1fr);
            /* Desktop: 3 columns */
        }
    }

    /* 2. Individual Card Styling (g-new-product-pricing-table-tbody-row) */
    .promotion-section .g-new-product-pricing-table-tbody-row {
        background-color: #ffffff;
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
        border-radius: 1rem;
        overflow: hidden;
        transition: all 0.3s ease;
        border: 2px solid transparent;
        position: relative;

        /* Card Cell Layout (Mobile) */
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-template-areas:
            "proc proc"
            "ram storage"
            "band price"
            "action action";
    }

    .promotion-section .g-new-product-pricing-table-tbody-row:hover {
        box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
        border-color: #910A67;
        transform: scale(1.02);
    }

    /* Card Cell Layout (Tablet/Desktop) */
    @media (min-width: 768px) {
        .promotion-section .g-new-product-pricing-table-tbody-row {
            grid-template-columns: 1fr 1fr;
            grid-template-areas:
                "proc proc"
                "ram storage"
                "band action"
                "price price";
        }
    }

    /* Tablet/Desktop layout adjustment (For cards side-by-side, price and action go to the bottom row) */
    @media (min-width: 1024px) {
        .promotion-section .g-new-product-pricing-table-tbody-row {
            grid-template-columns: 1fr 1fr;
            grid-template-areas:
                "proc proc"
                "ram storage"
                "band band"
                "price price"
                "action action";
        }
    }


    /* 3. Individual Cell Styling (g-new-product-pricing-table-data) */
    .promotion-section .g-new-product-pricing-table-data {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 1rem;
        border-bottom: 1px solid #e5e7eb !important;
        gap: 0.5rem;
        text-align: center;
    }

    /* Cell Grid Area Mapping (using :nth-child based on the original table column order) */
    .promotion-section .g-new-product-pricing-table-data:nth-child(1) {
        grid-area: proc;
    }

    /* Processor */
    .promotion-section .g-new-product-pricing-table-data:nth-child(2) {
        grid-area: ram;
    }

    /* RAM */
    .promotion-section .g-new-product-pricing-table-data:nth-child(3) {
        grid-area: storage;
        border-left: 1px solid #e5e7eb;
    }

    /* Storage */
    .promotion-section .g-new-product-pricing-table-data:nth-child(4) {
        grid-area: band;
    }

    /* Bandwidth */
    .promotion-section .g-new-product-pricing-table-data:nth-child(5) {
        grid-area: price;
    }

    /* Price */
    .promotion-section .g-new-product-pricing-table-data:nth-child(6) {
        grid-area: action;
        border-top: 1px solid #e5e7eb;
    }

    /* Action */

    /* Processor Cell Overrides (Header) */
    .promotion-section .g-new-product-pricing-table-data:nth-child(1) {
        background: linear-gradient(135deg, rgba(60, 7, 83, 0.3) 0%, rgba(145, 10, 103, 0.1) 100%);
        color: #4b5563;
    }

    .promotion-section .g-new-product-pricing-table-data:nth-child(1) .g-new-product-pricing-table-data-span {
        font-size: 1.25rem;
        font-weight: 700;
        color: #1f2937;
    }

    .promotion-section .g-new-product-pricing-table-data:nth-child(1) .refcode {
        font-size: 0.75rem;
        color: #9ca3af;
        font-family: monospace;
        padding: 0.25rem 0.75rem;
        background-color: #f3f4f6;
        border-radius: 9999px;
        margin-top: 0.5rem;
    }

    /* Specs Labels (RAM, Storage, Bandwidth) */
    .promotion-section .g-new-product-pricing-table-data:nth-child(2)::before,
    .promotion-section .g-new-product-pricing-table-data:nth-child(3)::before,
    .promotion-section .g-new-product-pricing-table-data:nth-child(4)::before {
        content: attr(data-label);
        /* Label content injected via JS for readability */
        font-size: 0.75rem;
        font-weight: 600;
        color: #910A67;
        margin-bottom: 0.25rem;
    }

    .promotion-section .g-new-product-pricing-table-data:nth-child(2)::before{
        content: "RAM";
    }

    .promotion-section .g-new-product-pricing-table-data:nth-child(3)::before{
        content: "STORAGE";
    }

    .promotion-section .g-new-product-pricing-table-data:nth-child(4)::before{
        content: "BANDWIDTH";
    }

    .promotion-section .g-new-product-pricing-table-data:nth-child(2),
    .promotion-section .g-new-product-pricing-table-data:nth-child(3),
    .promotion-section .g-new-product-pricing-table-data:nth-child(4) {
        font-size: 1.125rem;
        font-weight: 700;
        color: #1f2937;
        padding-bottom: 0;
    }

    /* Price Cell Styling (Current Price) */
    .promotion-section .g-new-product-pricing-table-data:nth-child(5) {
        border-bottom: none !important;
        padding-top: 1.5rem;
        padding-bottom: 1.5rem;
    }

    .promotion-section .g-new-product-pricing-table-data-span.price {
        font-size: 2.25rem;
        font-weight: 800;
        line-height: 1;
        background-image: linear-gradient(135deg, #720455, #910A67);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        display: block;
    }

    .promotion-section .g-new-product-pricing-table-data-span.price span {
        font-size: 0.875rem;
        color: #6b7280;
        -webkit-text-fill-color: #6b7280;
        /* Override gradient for /Mo text */
    }

    /* Discount and Old Price (Injected by JS) */
    .previous-price-container {
        display: flex;
        align-items: baseline;
        justify-content: center;
        gap: 0.5rem;
    }

    .old-price {
        font-size: 0.875rem;
        color: #6b7280;
        text-decoration: line-through;
    }

    .save-percent {
        font-size: 0.75rem;
        font-weight: 600;
        color: #ff6c2c;
        background-color: #ff6c2c1a;
        padding: 0.125rem 0.5rem;
        border-radius: 9999px;
    }

    /* Action Cell Styling (Button) */
    .promotion-section .g-new-product-pricing-table-data:nth-child(6) {
        background-color: rgba(249, 250, 251, 0.5);
        border-bottom: none !important;
        padding-top: 1.5rem;
        padding-bottom: 1.5rem;
    }

    .promotion-section .g-new-product-pricing-table-data-btn {
        width: 100%;
        background-color: #910A67;
        color: white;
        font-weight: 700;
        padding: 0.75rem 1rem;
        border-radius: 9999px;
        transition: all 0.3s ease;
        box-shadow: 0 4px 6px -1px rgba(145, 10, 103, 0.3), 0 2px 4px -2px rgba(145, 10, 103, 0.2);
        display: flex;
        align-items: center;
        justify-content: center;
        max-width: 300px;
    }

    .promotion-section .g-new-product-pricing-table-data:nth-child(6) a {
        text-decoration: none;
        display: flex;
        justify-content: center;
        width: 100%;
    }

    .promotion-section .g-new-product-pricing-table-data-btn:hover {
        background-color: #720455;
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
        transform: translateY(-2px);
    }

    .promotion-section .g-new-product-pricing-table-data-btn i {
        margin-right: 0.5rem;
    }

    /* --- Popular Card Overrides (Card 2) --- */
    .promotion-section .g-new-product-pricing-table-tbody-row:nth-child(2) {
        border-color: #ff6c2c;
    }

    .promotion-section .g-new-product-pricing-table-tbody-row:nth-child(2) .g-new-product-pricing-table-data:nth-child(1) {
        background-color: #3C0753;
        color: white;
    }

    .promotion-section .g-new-product-pricing-table-tbody-row:nth-child(2) .g-new-product-pricing-table-data:nth-child(1) .g-new-product-pricing-table-data-span {
        color: white;
    }

    .promotion-section .g-new-product-pricing-table-tbody-row:nth-child(2) .g-new-product-pricing-table-data:nth-child(1) .refcode {
        color: #d1d5db;
        background-color: rgba(60, 7, 83, 0.5);
    }

    .promotion-section .g-new-product-pricing-table-tbody-row:nth-child(2)::after {
        content: 'MOST POPULAR';
        position: absolute;
        top: 0;
        right: 0;
        transform: translate(25%, -25%) rotate(45deg);
        z-index: 10;
        background-color: #ff6c2c;
        color: white;
        font-size: 0.75rem;
        font-weight: 700;
        text-transform: uppercase;
        padding: 0.25rem 1.5rem;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.06);
        letter-spacing: 0.05em;
    }

    .promotion-section .g-new-product-pricing-table-tbody-row:nth-child(2) .g-new-product-pricing-table-data-btn {
        background-color: #ff6c2c;
        box-shadow: 0 4px 6px -1px rgba(255, 108, 44, 0.3), 0 2px 4px -2px rgba(255, 108, 44, 0.2);
    }

    .promotion-section .g-new-product-pricing-table-tbody-row:nth-child(2) .g-new-product-pricing-table-data-btn:hover {
        background-color: #910A67;
    }


    .promotion-section .coupon-code {
    /* Layout and Sizing */
    display: inline-flex; /* Changed for single-line layout */
    align-items: center; /* Vertically align items */
    padding: 14px 28px;
    position: relative;
    margin-top: 10px;
    
    /* Typography */
    font-family: 'monospace', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: #3C0753; /* Darkest purple for the code text */
    letter-spacing: 1.5px;
    text-align: center;

    /* Background and Border */
    background-color: #fff;
    border: 2px dashed #910A67; /* Lighter purple for dashed border */
    border-radius: 10px;
    
    /* Interaction and Animation */
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 4px 15px rgba(60, 7, 83, 0.1);
}

/* Using the ::before pseudo-element to add "COUPON CODE" text */
.promotion-section .coupon-code::before {
    content: 'COUPON:';
    margin-right: 10px; /* Adds space between label and code */
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    color: #720455; /* Medium purple for the label */
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Hover effect for better user experience */
.promotion-section .coupon-code:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(60, 7, 83, 0.15);
    border-color: #3C0753;
}

/* Style for the "Copied!" state, triggered by the .copied class from your JS */
.promotion-section .coupon-code.copied {
    background-color: #EA9611; /* Accent yellow */
    color: #3C0753; /* Dark purple text for contrast */
    border-color: #EA9611; /* Solid border in accent color */
    border-style: solid;
}

/* Hide the "COUPON CODE" label when the text changes to "Copied!" */
.promotion-section .coupon-code.copied::before {
    display: none;
}
