
:root{
    --ahq-dark:#050917;
    --ahq-dark-2:#081126;
    --ahq-panel:#0d1732;
    --ahq-white:#ffffff;
    --ahq-text:#111a2d;
    --ahq-muted:#65718a;
    --ahq-soft:#f4f7fd;
    --ahq-line:#dfe6f1;
    --ahq-cyan:#00cfee;
    --ahq-blue:#2675f3;
    --ahq-violet:#8b39ff;
    --ahq-gradient:linear-gradient(100deg,#00bfe8,#3975f6 52%,#8d3bff);
}

body.aivhq-global-brand{
    background:var(--ahq-soft)!important;
    color:var(--ahq-text);
}

body.aivhq-global-brand #page,
body.aivhq-global-brand .site-content{
    background:
        radial-gradient(circle at 6% 4%,rgba(0,207,238,.05),transparent 24%),
        radial-gradient(circle at 94% 12%,rgba(139,57,255,.05),transparent 25%),
        var(--ahq-soft)!important;
}

/* Hide old Astra header; premium header replaces it */
body.aivhq-global-brand .site-header,
body.aivhq-global-brand header.site-header,
body.aivhq-global-brand .ast-primary-header-bar,
body.aivhq-global-brand .main-header-bar{
    display:none!important;
}

/* Premium global header */
.aivhq-premium-header{
    position:sticky;
    top:0;
    z-index:99990;
    width:100%;
    color:#fff;
    background:rgba(5,9,23,.88);
    border-bottom:1px solid rgba(150,190,255,.15);
    box-shadow:0 12px 38px rgba(5,9,23,.16);
    backdrop-filter:blur(18px);
    -webkit-backdrop-filter:blur(18px);
}

.admin-bar .aivhq-premium-header{
    top:32px;
}

.aivhq-premium-header__inner{
    width:min(1220px,calc(100% - 30px));
    min-height:78px;
    margin:0 auto;
    display:grid;
    grid-template-columns:auto minmax(0,1fr) auto;
    align-items:center;
    gap:28px;
}

.aivhq-premium-brand{
    display:flex;
    align-items:center;
    gap:11px;
    color:#fff!important;
    text-decoration:none!important;
}

.aivhq-premium-brand__mark{
    width:43px;
    height:43px;
    display:grid;
    place-items:center;
    border-radius:14px;
    background:var(--ahq-gradient);
    color:#fff;
    font-weight:950;
    font-size:1.45rem;
    box-shadow:0 11px 26px rgba(48,94,242,.3);
}

.aivhq-premium-brand__text{
    display:flex;
    flex-direction:column;
}

.aivhq-premium-brand__text strong{
    color:#fff;
    font-size:1.32rem;
    line-height:1;
    letter-spacing:-.035em;
    white-space:nowrap;
}

.aivhq-premium-brand__text strong b:first-child{
    color:#58dff8;
}

.aivhq-premium-brand__text strong b:last-child{
    color:#a164ff;
}

.aivhq-premium-brand__text small{
    margin-top:6px;
    color:#91a2c2;
    font-size:.55rem;
    font-weight:850;
    letter-spacing:.16em;
}

.aivhq-premium-nav{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:clamp(16px,2.5vw,32px);
}

.aivhq-premium-nav a{
    color:#d9e4f8!important;
    text-decoration:none!important;
    font-size:.9rem;
    font-weight:750;
}

.aivhq-premium-nav a:hover{
    color:var(--ahq-cyan)!important;
    transform:translateY(-1px);
}

.aivhq-premium-header__actions{
    display:flex;
    align-items:center;
    gap:9px;
}

.aivhq-premium-search-link{
    width:42px;
    height:42px;
    display:grid;
    place-items:center;
    border:1px solid rgba(170,200,255,.18);
    border-radius:12px;
    color:#fff!important;
    text-decoration:none!important;
    background:rgba(255,255,255,.05);
    font-size:1.35rem;
}

.aivhq-premium-menu-button{
    display:none!important;
    width:44px;
    height:42px;
    align-items:center;
    justify-content:center;
    flex-direction:column;
    gap:5px;
    padding:0!important;
    border:1px solid rgba(170,200,255,.18)!important;
    border-radius:12px!important;
    background:rgba(255,255,255,.05)!important;
    box-shadow:none!important;
}

.aivhq-premium-menu-button span{
    width:20px;
    height:2px;
    border-radius:99px;
    background:#fff;
}

.aivhq-premium-mobile-menu{
    display:none;
    width:min(100% - 20px,520px);
    margin:0 auto 12px;
    padding:12px;
    border:1px solid rgba(160,190,255,.15);
    border-radius:17px;
    background:#0a1430;
    box-shadow:0 22px 50px rgba(0,0,0,.24);
}

.aivhq-premium-mobile-menu.is-open{
    display:grid;
}

.aivhq-premium-mobile-menu a{
    display:block;
    padding:13px 14px;
    border-radius:10px;
    color:#e9f1ff!important;
    text-decoration:none!important;
    font-weight:760;
}

.aivhq-premium-mobile-menu a:hover{
    background:rgba(255,255,255,.06);
    color:var(--ahq-cyan)!important;
}

.aivhq-premium-mobile-menu__cta{
    margin-top:7px;
    text-align:center;
    background:var(--ahq-gradient)!important;
    color:#fff!important;
}

/* Global page foundation */
body.aivhq-global-brand:not(.home) .ast-container{
    width:min(1180px,calc(100% - 28px))!important;
    max-width:1180px!important;
}

body.aivhq-global-brand .site-main{
    padding-top:12px;
}

body.aivhq-global-brand:not(.home) .site-main > article > .entry-header,
body.aivhq-global-brand .ast-archive-description,
body.aivhq-global-brand .page-header,
body.aivhq-global-brand.search .page-header,
body.aivhq-global-brand.error404 .page-header{
    position:relative;
    overflow:hidden;
    background:
        radial-gradient(circle at 12% 20%,rgba(0,207,238,.18),transparent 30%),
        radial-gradient(circle at 88% 20%,rgba(139,57,255,.18),transparent 32%),
        linear-gradient(145deg,#040815,#0a1430)!important;
    color:#fff!important;
    border:0!important;
    border-radius:24px!important;
    padding:clamp(34px,6vw,70px)!important;
    margin:26px auto 30px!important;
    box-shadow:0 24px 65px rgba(5,9,23,.18)!important;
}

body.aivhq-global-brand:not(.home) .entry-header .entry-title,
body.aivhq-global-brand .ast-archive-description .ast-archive-title,
body.aivhq-global-brand .page-title{
    color:#fff!important;
    font-size:clamp(2.3rem,5vw,4.8rem)!important;
    line-height:1!important;
    letter-spacing:-.055em!important;
    font-weight:900!important;
}

body.aivhq-global-brand .entry-content{
    color:#33405a;
    font-size:1.04rem;
    line-height:1.75;
}

body.aivhq-global-brand .entry-content h2,
body.aivhq-global-brand .entry-content h3,
body.aivhq-global-brand .entry-content h4{
    color:#111a2d;
    letter-spacing:-.035em;
    font-weight:850;
}

body.aivhq-global-brand .entry-content h2{
    font-size:clamp(1.9rem,3.5vw,3rem);
}

body.aivhq-global-brand .entry-content a{
    color:#286ee8;
    font-weight:700;
}

/* Premium cards */
body.aivhq-global-brand .ast-row{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:20px;
}

body.aivhq-global-brand .ast-row > article,
body.aivhq-global-brand .site-main > article.post,
body.aivhq-global-brand .site-main > article.aivhq_tool{
    margin:0!important;
    padding:0!important;
    border:1px solid var(--ahq-line)!important;
    border-radius:21px!important;
    overflow:hidden;
    background:#fff!important;
    box-shadow:0 14px 42px rgba(24,42,88,.08)!important;
}

body.aivhq-global-brand .ast-row > article:hover{
    transform:translateY(-3px);
    box-shadow:0 21px 55px rgba(24,42,88,.13)!important;
}

body.aivhq-global-brand .ast-row > article .blog-layout-1{
    padding:24px!important;
}

body.aivhq-global-brand article .entry-title a{
    color:#111a2d!important;
    font-weight:850!important;
    letter-spacing:-.03em;
}

body.aivhq-global-brand article .entry-meta,
body.aivhq-global-brand article .entry-meta a{
    color:#3972d8!important;
    font-weight:700;
}

body.aivhq-global-brand.page:not(.home) .site-main > article,
body.aivhq-global-brand.single .site-main > article{
    background:#fff;
    border:1px solid var(--ahq-line);
    border-radius:24px;
    padding:clamp(24px,5vw,54px)!important;
    box-shadow:0 16px 48px rgba(24,42,88,.08);
    margin-bottom:45px!important;
}

/* Disclosure is moved below Homepage 3.0 hero by JS */
.aivhq-affiliate-disclosure,
.affiliate-disclosure,
.aivhq-moved-disclosure{
    border-left:4px solid var(--ahq-cyan)!important;
    background:linear-gradient(135deg,#eefaff,#f1edff)!important;
    color:#26334e!important;
    border-radius:0 15px 15px 0!important;
    padding:18px 22px!important;
    box-shadow:none!important;
    width:min(1180px,calc(100% - 28px));
    margin:22px auto!important;
}

.aivhq-moved-disclosure{
    position:relative;
    z-index:2;
}

/* Buttons and forms */
body.aivhq-global-brand .wp-block-button__link,
body.aivhq-global-brand input[type=submit],
body.aivhq-global-brand .ast-button{
    border:0;
    border-radius:12px!important;
    background:var(--ahq-gradient)!important;
    color:#fff!important;
    font-weight:850!important;
    box-shadow:0 10px 24px rgba(55,99,242,.22);
}

body.aivhq-global-brand input:not([type=submit]):not([type=checkbox]):not([type=radio]),
body.aivhq-global-brand textarea,
body.aivhq-global-brand select{
    border:1px solid #cad5e7!important;
    border-radius:12px!important;
    background:#fff!important;
    color:#172139!important;
    box-shadow:none!important;
}

/* Category cards */
body.aivhq-global-brand .aivhq-category-card,
body.aivhq-global-brand .aivhq-category-grid > *,
body.aivhq-global-brand .aivhq-categories-grid > *,
body.aivhq-global-brand [class*="category-card"]{
    border:1px solid var(--ahq-line)!important;
    border-radius:20px!important;
    background:#fff!important;
    box-shadow:0 13px 38px rgba(24,42,88,.07)!important;
}

body.aivhq-global-brand [class*="category-card"]:hover{
    transform:translateY(-3px);
    border-color:#8bb7ff!important;
}

/* Search and 404 */
body.aivhq-global-brand.search .site-main,
body.aivhq-global-brand.error404 .site-main{
    min-height:55vh;
}

body.aivhq-global-brand.error404 .page-content,
body.aivhq-global-brand.search-no-results .page-content{
    background:#fff;
    border:1px solid var(--ahq-line);
    border-radius:22px;
    padding:34px;
    box-shadow:0 16px 48px rgba(24,42,88,.08);
}

body.aivhq-global-brand.error404 .page-title::after{
    content:"Let’s get you back to the AI tools.";
    display:block;
    margin-top:14px;
    color:#bdc8df;
    font-size:1.05rem;
    font-weight:500;
    letter-spacing:0;
}

/* Replace Astra footer */
body.aivhq-global-brand .site-footer,
body.aivhq-global-brand footer.site-footer,
body.aivhq-global-brand .ast-small-footer,
body.aivhq-global-brand .site-above-footer-wrap,
body.aivhq-global-brand .site-primary-footer-wrap,
body.aivhq-global-brand .site-below-footer-wrap{
    display:none!important;
}

.aivhq-global-footer{
    position:relative;
    z-index:20;
    background:
        radial-gradient(circle at 15% 10%,rgba(0,207,238,.12),transparent 27%),
        radial-gradient(circle at 85% 20%,rgba(139,57,255,.14),transparent 30%),
        #050917;
    color:#fff;
    border-top:1px solid rgba(150,190,255,.14);
    margin-top:60px;
}

.aivhq-global-footer__inner{
    width:min(1180px,calc(100% - 30px));
    margin:0 auto;
    padding:60px 0 44px;
    display:grid;
    grid-template-columns:minmax(280px,1.2fr) minmax(0,1.8fr);
    gap:55px;
}

.aivhq-global-footer__name{
    color:#fff!important;
    text-decoration:none!important;
    font-size:2rem;
    font-weight:900;
    letter-spacing:-.045em;
}

.aivhq-global-footer__brand p{
    color:#b8c4db;
    line-height:1.65;
    max-width:390px;
    margin:14px 0;
}

.aivhq-global-footer__brand span{
    color:#72ddfa;
    font-size:.76rem;
    font-weight:850;
    letter-spacing:.13em;
}

.aivhq-global-footer__links{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:28px;
}

.aivhq-global-footer__links strong{
    display:block;
    margin-bottom:14px;
    color:#fff;
}

.aivhq-global-footer__links a{
    display:block;
    color:#b8c4db!important;
    text-decoration:none!important;
    margin:9px 0;
    font-size:.91rem;
}

.aivhq-global-footer__links a:hover{
    color:var(--ahq-cyan)!important;
    transform:translateX(2px);
}

.aivhq-global-footer__bottom{
    width:min(1180px,calc(100% - 30px));
    margin:0 auto;
    border-top:1px solid rgba(150,190,255,.13);
    padding:20px 0 26px;
    display:flex;
    justify-content:space-between;
    gap:15px;
    color:#8f9db8;
    font-size:.82rem;
}

@media(max-width:980px){
    .aivhq-premium-nav{
        display:none;
    }

    .aivhq-premium-header__inner{
        grid-template-columns:minmax(0,1fr) auto;
    }

    .aivhq-premium-menu-button{
        display:flex!important;
    }

    .aivhq-global-footer__inner{
        grid-template-columns:1fr;
        gap:35px;
    }

    body.aivhq-global-brand .ast-row{
        grid-template-columns:1fr;
    }
}

@media(max-width:782px){
    .admin-bar .aivhq-premium-header{
        top:46px;
    }
}

@media(max-width:640px){
    .aivhq-premium-header__inner{
        width:calc(100% - 20px);
        min-height:70px;
    }

    .aivhq-premium-brand__mark{
        width:39px;
        height:39px;
    }

    .aivhq-premium-brand__text strong{
        font-size:1.15rem;
    }

    .aivhq-premium-brand__text small{
        font-size:.48rem;
    }

    .aivhq-premium-search-link{
        display:none;
    }

    body.aivhq-global-brand:not(.home) .ast-container{
        width:min(100% - 20px,1180px)!important;
    }

    body.aivhq-global-brand:not(.home) .site-main > article > .entry-header,
    body.aivhq-global-brand .ast-archive-description,
    body.aivhq-global-brand .page-header{
        border-radius:18px!important;
        padding:30px 20px!important;
        margin:15px auto 22px!important;
    }

    body.aivhq-global-brand.page:not(.home) .site-main > article,
    body.aivhq-global-brand.single .site-main > article{
        border-radius:18px;
        padding:24px 19px!important;
    }

    .aivhq-global-footer__links{
        grid-template-columns:1fr 1fr;
    }

    .aivhq-global-footer__bottom{
        flex-direction:column;
    }
}
