﻿* {
    box-sizing: border-box
}

.page-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px
}

.ha-hero {
    background: linear-gradient(135deg,#0f172a 0%,#1e40af 40%,#3b82f6 70%,#10b981 100%);
    background-size: 160% 160%;
    animation: gradientShift 10s ease infinite;
    color: #fff;
    border-radius: 22px;
    padding: 26px 20px 30px;
    margin-bottom: 28px;
    box-shadow: 0 12px 36px rgba(0,0,0,.35);
    position: relative;
    overflow: hidden
}
/* Keep hero targets visible under sticky header */
#dynamicSection,
#gradePicker,
.quick-pick-card {
    scroll-margin-top: 110px; /* adjust to your header height */
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%
    }

    50% {
        background-position: 100% 50%
    }

    100% {
        background-position: 0% 50%
    }
}

.ha-hero::before {
    content: "";
    position: absolute;
    top: -40%;
    right: -40%;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle,rgba(255,255,255,.08),transparent);
    border-radius: 50%;
    filter: blur(1px)
}

.ha-hero-title {
    font-size: 28px;
    line-height: 1.2;
    font-weight: 900;
    margin: 0 0 8px
}

.ha-hero-desc {
    font-size: 15px;
    line-height: 1.55;
    max-width: 760px;
    color: rgba(255,255,255,.95);
    margin: 0 0 14px;
    font-weight: 600
}

.ha-hero-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center
}

.ha-main-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    color: #1e40af;
    font-weight: 800;
    font-size: 15px;
    padding: 12px 18px;
    border-radius: 999px;
    text-decoration: none;
    box-shadow: 0 10px 26px rgba(0,0,0,.35);
    transition: transform .2s
}

    .ha-main-cta:hover {
        transform: translateY(-2px)
    }

.ha-secondary-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,.16);
    border: 1px solid rgba(255,255,255,.35);
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    padding: 10px 16px;
    border-radius: 999px;
    text-decoration: none;
    backdrop-filter: blur(6px)
}

/* Social proof — compact */
.social-proof {
    margin-top: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 12px;
    padding: 10px 12px
}

.social-proof-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700
}

    .social-proof-item i {
        color: #fbbf24
    }

/* SEARCH / CARDS / ETC (unchanged visually except slight compaction) */
.quick-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 22px 60px rgba(0,0,0,.1);
    border: 1px solid #e2e8f0;
    padding: 22px;
    margin-bottom: 28px
}

.quick-headline {
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 6px
}

    .quick-headline i {
        color: #2563eb;
        font-size: 22px
    }

.quick-sub {
    color: #64748b;
    font-size: 14px;
    margin: 0 0 16px;
    line-height: 1.6
}

.search-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 10px
}

    .search-wrapper input {
        flex: 1 1 280px;
        padding: 12px 14px;
        border: 2px solid #e2e8f0;
        border-radius: 14px;
        font-size: 15px;
        outline: none;
        min-width: 240px
    }

        .search-wrapper input:focus {
            border-color: #2563eb;
            box-shadow: 0 0 0 3px rgba(37,99,235,.1)
        }

    .search-wrapper button {
        flex: 0 0 auto;
        background: linear-gradient(135deg,#2563eb,#1e40af);
        color: #fff;
        border: none;
        border-radius: 14px;
        font-size: 15px;
        font-weight: 800;
        padding: 12px 18px;
        display: inline-flex;
        align-items: center;
        gap: 8px;
        cursor: pointer
    }

#searchHelpText {
    color: #dc2626;
    font-size: 13px;
    font-weight: 700;
    margin-top: 10px;
    display: none;
    padding: 10px 12px;
    background: #fef2f2;
    border-radius: 10px;
    border-left: 4px solid #dc2626
}

.level-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(140px,1fr));
    gap: 10px
}

.level-btn {
    background: #fff;
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    padding: 14px 12px;
    text-align: center;
    font-weight: 800;
    font-size: 15px;
    color: #1e40af;
    display: flex;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    transition: .2s
}

    .level-btn:hover {
        border-color: #2563eb;
        transform: translateY(-2px);
        box-shadow: 0 10px 28px rgba(37,99,235,.18)
    }

    .level-btn.active {
        border-color: #1e40af;
        box-shadow: 0 10px 28px rgba(37,99,235,.25);
        color: #0b1f7a
    }

.ha-section {
    margin-bottom: 38px
}

.ha-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 18px;
    gap: 12px
}

.ha-title {
    font-size: 22px;
    font-weight: 900;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0
}

    .ha-title i {
        color: #2563eb;
        font-size: 22px
    }

.ha-muted {
    font-size: 13px;
    color: #64748b;
    font-weight: 700
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill,minmax(320px,1fr));
    gap: 18px
}

.ha-card {
    background: #fff;
    border-radius: 18px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 6px 20px rgba(0,0,0,.06);
    padding: 18px 18px 16px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: .2s
}

    .ha-card:hover {
        box-shadow: 0 14px 36px rgba(0,0,0,.12);
        transform: translateY(-4px);
        border-color: #2563eb
    }

.ha-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    background: linear-gradient(135deg,#fbbf24,#f59e0b);
    color: #0f172a;
    font-size: 11px;
    font-weight: 900;
    border-radius: 999px;
    padding: 6px 10px;
    display: flex;
    align-items: center;
    gap: 6px
}

.ha-title-link {
    font-weight: 900;
    font-size: 16px;
    line-height: 1.35;
    margin: 0 0 10px;
    padding-right: 70px;
    min-height: 42px
}

    .ha-title-link a {
        color: #1e40af;
        text-decoration: none;
        background-image: linear-gradient(currentColor,currentColor);
        background-size: 0 2px;
        background-repeat: no-repeat;
        background-position: 0 100%;
        transition: all .2s
    }

        .ha-title-link a:hover {
            color: #1e3a8a;
            background-size: 100% 2px
        }

.ha-meta {
    font-size: 13px;
    color: #64748b;
    line-height: 1.5;
    margin-bottom: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px
}

    .ha-meta span {
        display: inline-flex;
        align-items: center;
        gap: 7px;
        background: #f8fafc;
        padding: 6px 10px;
        border-radius: 8px;
        font-weight: 700
    }

.price-row {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid #f1f5f9
}

.price {
    font-size: 18px;
    font-weight: 900;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 8px
}

    .price::before {
        content: "💰";
        font-size: 16px
    }

.purchase-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* 1) WHATSAPP – GREEN (unchanged) */
.btn-wa {
    background: linear-gradient(135deg, #25d366, #22c55e);
    color: #fff;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 900;
    padding: 10px 14px;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 10px 26px rgba(34,197,94,.35);
    flex: 1;
    justify-content: center;
    min-width: fit-content;
}

/* 2) EMAIL – NEUTRAL (lighter, not dark navy) */
.btn-email {
    background: #ffffff;
    color: var(--dark);
    border-radius: 12px;
    font-size: 14px;
    font-weight: 900;
    padding: 10px 14px;
    border: 1px solid var(--gray-200);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: none;
    flex: 1;
    justify-content: center;
    min-width: fit-content;
}

    /* Hover for both WA + Email */
    .btn-wa:hover, .btn-email:hover {
        transform: translateY(-2px);
    }

/* 3) ADD TO CART – BLUE */
.add-to-cart-btn {
    background: linear-gradient(135deg, var(--primary), #3b82f6);
    color: #fff;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 900;
    padding: 10px 14px;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 10px 26px rgba(37,99,235,.35);
    flex: 1;
    justify-content: center;
    min-width: fit-content;
}

    .add-to-cart-btn:hover {
        transform: translateY(-2px);
        background: var(--primary-dark);
        box-shadow: 0 14px 30px rgba(37,99,235,.45);
    }

/* 4) IN CART – DEEP GREEN */
.in-cart-btn {
    background: linear-gradient(135deg, #15803d, #166534);
    color: #fff;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 900;
    padding: 10px 14px;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 10px 26px rgba(22,101,52,.35);
    flex: 1;
    justify-content: center;
    min-width: fit-content;
}

    .in-cart-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 14px 30px rgba(22,101,52,.45);
    }

.trust-block {
    background: linear-gradient(135deg,#0f172a 0%,#1e293b 100%);
    color: #fff;
    border-radius: 22px;
    padding: 26px 20px;
    margin: 34px 0 28px;
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(260px,1fr));
    gap: 22px;
    box-shadow: 0 22px 60px rgba(0,0,0,.28);
    position: relative;
    overflow: hidden
}

    .trust-block::before {
        content: "";
        position: absolute;
        top: -40%;
        right: -30%;
        width: 340px;
        height: 340px;
        background: radial-gradient(circle,rgba(59,130,246,.1),transparent);
        border-radius: 50%
    }

.trust-col-title {
    font-size: 16px;
    font-weight: 900;
    color: #fbbf24;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px
}

.trust-text {
    font-size: 14px;
    line-height: 1.7;
    color: rgba(255,255,255,.9);
    font-weight: 600
}

.trust-list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 14px;
    line-height: 1.7;
    color: rgba(255,255,255,.9)
}

    .trust-list li {
        display: flex;
        gap: 10px;
        margin-bottom: 10px;
        align-items: flex-start;
        font-weight: 600
    }

    .trust-list i {
        color: #4ade80;
        margin-top: 3px;
        flex-shrink: 0;
        font-size: 16px
    }

.trust-cta-card {
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 16px;
    padding: 18px;
    color: #fff;
    font-size: 14px;
    line-height: 1.6;
    backdrop-filter: blur(8px)
}

.trust-cta-title {
    font-weight: 900;
    font-size: 15px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px
}

.trust-cta-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 10px
}

.trust-wa-btn {
    background: #25d366;
    color: #fff;
    text-decoration: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 900;
    padding: 10px 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 12px 34px rgba(37,211,102,.5)
}

.urgency-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fef3c7;
    color: #92400e;
    font-size: 11px;
    font-weight: 900;
    padding: 6px 10px;
    border-radius: 999px
}

    .urgency-badge i {
        color: #f59e0b
    }

.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999
}

.loading-spinner {
    width: 44px;
    height: 44px;
    border: 4px solid rgba(255,255,255,.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite
}

@keyframes spin {
    to {
        transform: rotate(360deg)
    }
}

@media(max-width:768px) {
    .ha-hero {
        padding: 22px 16px 24px
    }

    .ha-hero-title {
        font-size: 24px
    }

    .ha-hero-desc {
        font-size: 14px
    }

    .card-grid {
        grid-template-columns: 1fr
    }

    .btn-wa, .btn-email {
        flex: auto
    }
}
/* Force each button to occupy its own row */
.purchase-options .btn-wa,
.purchase-options .btn-email,
.purchase-options .add-to-cart-btn,
.purchase-options .in-cart-btn {
    flex: 0 0 100% !important; /* full width */
    max-width: 100% !important;
    width: 100% !important; /* guarantees full row */
    justify-content: center;
}
