/* ==========================================================
   QAT SYSTEMS SITE LAYOUT
   File: /includes/site-layout.css
   ========================================================== */

:root {
    --qat-bg-dark: #0b0b0b;
    --qat-header: rgba(15,15,15,0.96);
    --qat-footer: #080808;
    --qat-panel-soft: rgba(255,255,255,.035);
    --qat-panel-note: rgba(255,255,255,.045);
    --qat-line: #2a2a2a;
    --qat-line-soft: #1f1f1f;
    --qat-text: #f5f5f5;
    --qat-text-soft: #dedede;
    --qat-muted: #cfcfcf;
    --qat-gold: #d4af37;
    --qat-white: #ffffff;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: var(--qat-bg-dark);
    color: var(--qat-text);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a,
a:link,
a:visited,
a:hover,
a:active,
a:focus {
    text-decoration: none !important;
}

/* ================= HOME-STYLE GLOBAL HEADER / NAV ================= */

.qat-home-style-navbar {
    background: var(--qat-header);
    border: none;
    border-bottom: 1px solid rgba(255,255,255,0.12);
    min-height: 86px;
    margin: 0;
    width: 100%;
    z-index: 1000;
}

.qat-home-style-container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 15px;
    min-height: 86px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.qat-home-style-brand-wrap {
    flex: 0 0 auto;
}

.qat-home-style-brand {
    display: block;
    font-weight: 800 !important;
    font-size: 23px !important;
    letter-spacing: 0.08em;
    line-height: 1.05 !important;
    text-transform: uppercase;
    color: #f5f5f5 !important;
    padding-top: 18px;
    padding-bottom: 14px;
    height: auto;
    text-decoration: none !important;
}

.qat-home-style-brand:hover,
.qat-home-style-brand:focus {
    color: #f5f5f5 !important;
    text-decoration: none !important;
}

.qat-home-style-brand small {
    display: block;
    color: rgba(255,255,255,0.78);
    font-size: 11px !important;
    font-weight: 500;
    margin-top: 5px;
    line-height: 1.25;
    letter-spacing: 0.22em;
    white-space: nowrap;
    text-transform: uppercase;
}

.qat-home-style-nav-wrap {
    flex: 1 1 auto;
    padding-left: 16px;
}

.qat-home-style-nav {
    list-style: none;
    float: right;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: nowrap;
    margin: 0;
    padding: 0;
}

.qat-home-style-nav > li {
    margin: 0;
    padding: 0;
}

.qat-home-style-nav > li > a {
    display: block;
    font-weight: 600 !important;
    letter-spacing: 0.08em;
    font-size: 13px !important;
    line-height: 1.1;
    text-transform: uppercase;
    padding: 34px 12px 26px;
    white-space: nowrap;
    color: rgba(255,255,255,0.82) !important;
    position: relative;
    transition: color 0.2s ease;
    text-decoration: none !important;
}

.qat-home-style-nav > li > a:hover,
.qat-home-style-nav > li > a:focus,
.qat-home-style-nav > li.active > a {
    color: var(--qat-gold) !important;
    background: transparent !important;
}

.qat-home-style-nav > li > a:after {
    content: '';
    position: absolute;
    bottom: 18px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--qat-gold);
    transition: width 0.25s ease;
}

.qat-home-style-nav > li > a:hover:after,
.qat-home-style-nav > li > a:focus:after,
.qat-home-style-nav > li.active > a:after {
    width: 100%;
}

/* ================= MAIN DARK SYSTEM ================= */

.qat-main {
    min-height: 70vh;
    background:
        radial-gradient(circle at 50% 8%, rgba(255,255,255,.06), transparent 30%),
        linear-gradient(180deg, #151515 0%, #0d0d0d 42%, #0a0a0a 100%);
    color: var(--qat-text);
}

/* ================= CONTAINERS ================= */

.qat-container {
    max-width: 1220px;
    margin: 0 auto;
    padding: 0 44px;
}

/* ================= COMPACT PAGE HERO ================= */

.qat-hero {
    text-align: center;
    padding: 56px 0 52px;
    border-bottom: 1px solid var(--qat-line);
}

.qat-eyebrow {
    color: #d1d1d1;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .14em;
    margin-bottom: 16px;
}

.qat-hero h1 {
    color: var(--qat-white);
    font-size: clamp(34px, 4vw, 52px);
    line-height: 1.14;
    max-width: 980px;
    margin: 0 auto;
    text-transform: none;
    letter-spacing: -.025em;
    font-weight: 500;
}

.qat-gold-rule {
    width: 58px;
    height: 3px;
    background: var(--qat-gold);
    margin: 22px auto 22px;
}

.qat-hero p {
    max-width: 820px;
    margin: 0 auto;
    color: #e5e5e5;
    font-size: 18px;
    line-height: 1.55;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
}

.qat-subcopy {
    margin-top: 18px !important;
    max-width: 760px !important;
    color: var(--qat-muted) !important;
    font-size: 16px !important;
    line-height: 1.65 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
}

/* ================= PAGE SECTIONS ================= */

.qat-section {
    padding: 64px 0 86px;
}

.qat-layout,
.qat-split {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 48px;
    align-items: start;
}

.qat-content {
    max-width: 900px;
}

/* ================= LEFT SIDE NAVIGATION ================= */

.qat-side-nav {
    border: 1px solid var(--qat-line);
    background: rgba(0,0,0,.32);
    padding: 22px;
    position: sticky;
    top: 24px;
}

.qat-side-nav strong {
    display: block;
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: 13px;
    color: var(--qat-white);
}

.qat-side-nav a {
    display: block;
    padding: 10px 0;
    border-top: 1px solid var(--qat-line);
    color: #d8d8d8 !important;
    font-weight: 600;
    font-size: 14px;
}

.qat-side-nav a:hover,
.qat-side-nav a.active {
    color: var(--qat-gold) !important;
}

/* ================= CONTENT ================= */

.qat-narrow {
    max-width: 880px;
}

.qat-narrow h2 {
    color: var(--qat-white);
    font-size: 34px;
    line-height: 1.15;
    margin: 0 0 18px;
    text-transform: none;
    font-weight: 500;
}

.qat-narrow h3 {
    color: var(--qat-white);
    font-size: 23px;
    line-height: 1.25;
    margin: 30px 0 10px;
    text-transform: none;
    font-weight: 500;
}

.qat-narrow p,
.qat-narrow li {
    color: var(--qat-text-soft);
    font-size: 17px;
}

.qat-narrow p {
    margin: 0 0 22px;
}

.qat-lead {
    font-size: 21px !important;
    color: var(--qat-white) !important;
    font-weight: 400;
    margin-top: 0;
}

.qat-note {
    background: var(--qat-panel-note);
    border-left: 4px solid var(--qat-gold);
    padding: 24px 26px;
    margin: 30px 0;
    color: #e5e5e5;
    font-size: 17px;
}

/* ================= CARDS ================= */

.qat-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.qat-card {
    border: 1px solid var(--qat-line);
    background: var(--qat-panel-soft);
    padding: 30px;
    min-height: 210px;
}

.qat-card h3 {
    margin-top: 0;
    color: var(--qat-white);
}

.qat-card p {
    color: var(--qat-text-soft);
}

.qat-card-link {
    display: inline-block;
    margin-top: 12px;
    color: var(--qat-gold) !important;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: .08em;
}

/* ================= BUTTONS / CTA ================= */

.qat-button {
    display: inline-block;
    border: 1px solid var(--qat-gold);
    color: var(--qat-white) !important;
    padding: 13px 18px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.qat-button:hover {
    color: var(--qat-gold) !important;
}

.qat-cta {
    border: 1px solid var(--qat-line);
    background: rgba(255,255,255,.045);
    padding: 34px;
    margin-top: 30px;
}

/* ================= FOOTER ================= */

.qat-footer {
    background: var(--qat-footer) !important;
    color: #cfcfcf !important;
    padding: 42px 48px;
    border-top: 1px solid var(--qat-line-soft);
}

.qat-footer-inner {
    max-width: 1320px;
    margin: 0 auto;
    display: flex;
    gap: 24px;
    justify-content: space-between;
    flex-wrap: wrap;
    font-size: 14px;
}

.qat-footer a {
    color: #cfcfcf !important;
}

.qat-footer a:hover {
    color: var(--qat-gold) !important;
}

/* ================= RESPONSIVE ================= */

@media (max-width: 1199px) {
    .qat-home-style-brand {
        font-size: 21px !important;
    }

    .qat-home-style-brand small {
        font-size: 10px !important;
        letter-spacing: 0.18em;
    }

    .qat-home-style-nav > li > a {
        font-size: 12px !important;
        padding-left: 9px;
        padding-right: 9px;
    }
}

@media (max-width: 991px) {
    .qat-home-style-navbar,
    .qat-home-style-container {
        min-height: 78px;
    }

    .qat-home-style-brand {
        font-size: 20px !important;
        letter-spacing: 0.06em;
        padding-top: 17px;
    }

    .qat-home-style-nav > li > a {
        font-size: 11px !important;
        letter-spacing: 0.07em;
        padding-left: 7px;
        padding-right: 7px;
    }

    .qat-container {
        padding: 0 24px;
    }

    .qat-layout,
    .qat-split,
    .qat-grid-2 {
        grid-template-columns: 1fr;
    }

    .qat-side-nav {
        position: relative;
        top: auto;
    }

    .qat-hero {
        text-align: left;
        padding: 52px 0;
    }

    .qat-hero h1,
    .qat-hero p {
        margin-left: 0;
    }

    .qat-gold-rule {
        margin-left: 0;
    }
}

@media (max-width: 767px) {
    .qat-home-style-navbar {
        min-height: 66px;
    }

    .qat-home-style-container {
        min-height: 66px;
        display: block;
        padding: 0 15px 10px;
    }

    .qat-home-style-brand {
        font-size: 18px !important;
        letter-spacing: 0.05em;
        padding-top: 14px;
        padding-bottom: 12px;
    }

    .qat-home-style-brand small {
        font-size: 9px !important;
        letter-spacing: 0.14em;
        white-space: normal;
    }

    .qat-home-style-nav-wrap {
        padding-left: 0;
        border-top: 1px solid rgba(255,255,255,0.08);
    }

    .qat-home-style-nav {
        float: none;
        flex-wrap: wrap;
        justify-content: flex-start;
        padding-bottom: 10px;
    }

    .qat-home-style-nav > li > a {
        font-size: 13px !important;
        padding: 12px 15px 12px 0;
    }

    .qat-home-style-nav > li > a:after {
        display: none;
    }

    .qat-section {
        padding: 48px 0 68px;
    }

    .qat-hero h1 {
        font-size: 34px;
    }

    .qat-hero p {
        font-size: 17px;
    }

    .qat-narrow h2 {
        font-size: 29px;
    }
}
.qat-centered-content {
    margin-left: auto;
    margin-right: auto;
}
/* ================= FORMS ================= */

.qat-form label {
    display: block;
    margin-bottom: 8px;
    color: var(--qat-white);
    font-weight: 600;
    font-size: 14px;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.qat-form input,
.qat-form select,
.qat-form textarea {
    width: 100%;
    margin-bottom: 22px;
    padding: 14px 16px;
    background: rgba(255,255,255,.04);
    border: 1px solid var(--qat-line);
    color: var(--qat-white);
    font-size: 16px;
}

.qat-form textarea {
    min-height: 180px;
    resize: vertical;
}

.qat-form input:focus,
.qat-form select:focus,
.qat-form textarea:focus {
    outline: none;
    border-color: var(--qat-gold);
}

/* ================= FORMS ================= */

.qat-form {
    border: 1px solid var(--qat-line);
    background: rgba(255,255,255,.03);
    padding: 34px;
}

.qat-form label {
    display: block;
    margin-bottom: 9px;
    color: var(--qat-white);
    font-weight: 600;
    font-size: 12px;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.qat-form input,
.qat-form select,
.qat-form textarea {
    width: 100%;
    margin-bottom: 24px;
    padding: 15px 16px;
    background: rgba(255,255,255,.045);
    border: 1px solid #343434;
    color: var(--qat-white);
    font-size: 16px;
    line-height: 1.5;
    transition:
        border-color .18s ease,
        background .18s ease,
        box-shadow .18s ease;
    appearance: none;
    border-radius: 0;
}

.qat-form select {
    cursor: pointer;
}

.qat-form textarea {
    min-height: 220px;
    resize: vertical;
}

.qat-form input::placeholder,
.qat-form textarea::placeholder {
    color: #9b9b9b;
}

.qat-form input:focus,
.qat-form select:focus,
.qat-form textarea:focus {
    outline: none;
    border-color: var(--qat-gold);
    background: rgba(255,255,255,.06);
    box-shadow: 0 0 0 1px rgba(212,175,55,.18);
}

.qat-form button.qat-button {
    width: 100%;
    margin-top: 8px;
    padding: 16px 20px;
    background: transparent;
    border: 1px solid var(--qat-gold);
    color: var(--qat-white);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    transition:
        background .18s ease,
        color .18s ease,
        border-color .18s ease;
}

.qat-form button.qat-button:hover {
    background: var(--qat-gold);
    color: #111;
}

.qat-form option {
    background: #111;
    color: #fff;
}
/* ================= RESEARCH REGISTRY SECTIONS ================= */

.qat-research-category {
    margin-top: 52px;
}

.qat-research-category h2 {
    color: var(--qat-white);
    font-size: 28px;
    font-weight: 500;
    margin: 0 0 22px;
}
/* ================= OBSERVER ================= */

.qat-observer-hero {
    padding-bottom: 48px;
}

.qat-observer-disclaimer-wrap {
    padding-top: 0;
}

.qat-observer-disclaimer {
    border: 1px solid rgba(212,175,55,.28);
    background: rgba(212,175,55,.05);
    padding: 28px;
    color: var(--qat-white);
}

.qat-observer-disclaimer strong {
    display: block;
    margin-bottom: 12px;
    color: var(--qat-gold);
    letter-spacing: .12em;
    text-transform: uppercase;
    font-size: 12px;
}

.qat-observer-panel {
    background: rgba(255,255,255,.03);
    border: 1px solid var(--qat-line);
    padding: 26px;
}

.qat-observer-bullish {
    color: #6fcf97;
}

.qat-observer-bearish {
    color: #eb5757;
}

.qat-observer-neutral {
    color: #bdbdbd;
}

.qat-observer-highlight {
    color: #d4af37;
}
/* Live Research Tools — add to /includes/site-layout.css */
.research-live-tools {
    margin: 48px 0 56px;
    padding: 34px;
    background: radial-gradient(circle at top left, rgba(37, 99, 235, 0.18), transparent 32%),
                linear-gradient(180deg, #0f172a 0%, #111827 100%);
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 22px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.22);
}

.research-live-tools-header {
    max-width: 760px;
    margin-bottom: 28px;
}

.research-live-kicker {
    margin-bottom: 10px;
    color: #facc15;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.research-live-tools h2 {
    margin: 0 0 14px;
    color: #ffffff;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.research-live-tools-header p {
    margin: 0;
    color: #cbd5e1;
    font-size: 17px;
    line-height: 1.65;
}

.research-live-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.research-live-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 220px;
    padding: 26px;
    overflow: hidden;
    color: #ffffff;
    text-decoration: none;
    background: rgba(15, 23, 42, 0.82);
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 18px;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.research-live-card::after {
    content: "";
    position: absolute;
    inset: auto -40px -60px auto;
    width: 180px;
    height: 180px;
    background: rgba(96, 165, 250, 0.12);
    border-radius: 999px;
}

.research-live-card:hover {
    transform: translateY(-3px);
    border-color: rgba(96, 165, 250, 0.75);
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.32);
}

.research-live-card-top {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
}

.live-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    color: #86efac;
    background: rgba(34, 197, 94, 0.14);
    border: 1px solid rgba(34, 197, 94, 0.38);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.research-live-universe {
    color: #93c5fd;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.research-live-card h3 {
    position: relative;
    z-index: 1;
    margin: 0 0 12px;
    color: #ffffff;
    font-size: 26px;
    line-height: 1.18;
}

.research-live-card p {
    position: relative;
    z-index: 1;
    max-width: 460px;
    margin: 0 0 24px;
    color: #cbd5e1;
    font-size: 15px;
    line-height: 1.65;
}

.research-live-meta {
    position: relative;
    z-index: 1;
    margin-top: auto;
    color: #7dd3fc;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.research-live-disclaimer {
    margin-top: 18px;
    padding: 12px 14px;
    color: #cbd5e1;
    background: rgba(15, 23, 42, 0.58);
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 12px;
    font-size: 13px;
    line-height: 1.5;
}

@media (max-width: 860px) {
    .research-live-tools {
        padding: 24px;
    }

    .research-live-grid {
        grid-template-columns: 1fr;
    }
}
.research-live-tools {
    margin: 50px 0 60px;
    padding: 42px;
    background: linear-gradient(180deg,#0f172a 0%,#111827 100%);
    border-radius: 22px;
    border: 1px solid #1f2937;
}

.research-live-tools-header {
    margin-bottom: 34px;
}

.research-live-kicker {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.18em;
    color: #7dd3fc;
    margin-bottom: 12px;
}

.research-live-tools h2 {
    font-size: 40px;
    line-height: 1.1;
    color: #ffffff;
    margin: 0 0 16px;
}

.research-live-tools p {
    color: #cbd5e1;
    font-size: 17px;
    line-height: 1.7;
}

.research-live-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(340px,1fr));
    gap: 28px;
}

.research-live-card {
    background: #111827;
    border: 1px solid #273449;
    border-radius: 20px;
    padding: 30px;
    transition: all 0.18s ease;
}

.research-live-card:hover {
    transform: translateY(-2px);
    border-color: #60a5fa;
    box-shadow: 0 12px 28px rgba(0,0,0,0.32);
}

.live-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(34,197,94,0.16);
    border: 1px solid rgba(34,197,94,0.36);
    color: #86efac;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.research-live-card h3 {
    margin: 18px 0 14px;
    font-size: 30px;
    line-height: 1.15;
    color: #ffffff;
}

.research-live-card p {
    margin: 0 0 20px;
}

.research-live-meta {
    color: #7dd3fc;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-bottom: 26px;
}

.research-live-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 22px;
    border-radius: 12px;
    background: #2563eb;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.18s ease;
}

.research-live-button:hover {
    background: #1d4ed8;
}
4/* Live Research Tools Showcase */
.research-live-showcase {
    margin: 52px 0 64px;
    padding: 40px;
    border-radius: 24px;
    background:
        radial-gradient(circle at 15% 0%, rgba(124, 58, 237, 0.18), transparent 34%),
        linear-gradient(180deg, #111827 0%, #070b12 100%);
    border: 1px solid rgba(148, 163, 184, 0.22);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
}

.research-live-showcase .research-live-tools-header {
    max-width: 820px;
    margin-bottom: 32px;
}

.research-live-showcase .research-live-kicker {
    color: #a78bfa;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.research-live-showcase h2 {
    margin: 0 0 14px;
    color: #ffffff;
    font-size: clamp(30px, 4vw, 44px);
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.research-live-showcase .research-live-tools-header p {
    margin: 0;
    color: #cbd5e1;
    font-size: 17px;
    line-height: 1.7;
}

.research-live-product-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px;
}

.research-product-card {
    position: relative;
    overflow: hidden;
    min-height: 420px;
    padding: 30px;
    border-radius: 22px;
    border: 1px solid rgba(148, 163, 184, 0.24);
    background:
        linear-gradient(180deg, rgba(15, 23, 42, 0.95), rgba(3, 7, 18, 0.96));
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

.research-product-card:hover {
    border-color: rgba(167, 139, 250, 0.65);
    transform: translateY(-2px);
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.34);
}

.research-card-preview {
    height: 118px;
    margin-bottom: 26px;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.24);
    background: rgba(2, 6, 23, 0.54);
}

.research-card-preview-sp500 {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 5px;
    padding: 12px;
}

.research-card-preview-sp500 span,
.research-card-preview-etf span {
    border-radius: 5px;
    min-height: 20px;
    background: #1f2937;
}

.research-card-preview-sp500 span:nth-child(3n+1),
.research-card-preview-etf span:nth-child(4n+1) { background: #15803d; }
.research-card-preview-sp500 span:nth-child(3n+2),
.research-card-preview-etf span:nth-child(4n+2) { background: #991b1b; }
.research-card-preview-sp500 span:nth-child(5n),
.research-card-preview-etf span:nth-child(5n) { background: #b45309; }

.research-card-preview-etf {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2px;
    padding: 12px;
}

.research-card-preview-etf span {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.research-live-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
}

.live-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(34, 197, 94, 0.16);
    border: 1px solid rgba(34, 197, 94, 0.36);
    color: #86efac;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.live-badge::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: #22c55e;
    box-shadow: 0 0 14px rgba(34, 197, 94, 0.9);
}

.live-badge-next {
    background: rgba(124, 58, 237, 0.18);
    border-color: rgba(167, 139, 250, 0.38);
    color: #c4b5fd;
}

.live-badge-next::before { background: #a78bfa; box-shadow: 0 0 14px rgba(167, 139, 250, 0.8); }

.research-live-universe {
    color: #94a3b8;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.research-product-card h3 {
    margin: 0 0 14px;
    color: #ffffff;
    font-size: 30px;
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.research-product-card p {
    margin: 0 0 22px;
    color: #cbd5e1;
    font-size: 16px;
    line-height: 1.7;
}

.research-live-meta {
    margin-bottom: 26px;
    padding-top: 20px;
    border-top: 1px solid rgba(148, 163, 184, 0.16);
    color: #a78bfa;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.research-live-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 15px 20px;
    border-radius: 12px;
    background: linear-gradient(90deg, #6d28d9, #4f46e5);
    color: #ffffff !important;
    font-size: 15px;
    font-weight: 850;
    text-decoration: none;
    box-shadow: 0 12px 24px rgba(79, 70, 229, 0.25);
}

.research-live-button:hover {
    background: linear-gradient(90deg, #7c3aed, #2563eb);
    color: #ffffff !important;
}

.research-live-disclaimer {
    margin-top: 26px;
    text-align: center;
    color: #94a3b8;
    font-size: 13px;
    line-height: 1.6;
}

@media (max-width: 900px) {
    .research-live-showcase { padding: 28px; }
    .research-live-product-grid { grid-template-columns: 1fr; }
}
.live-tools-showcase {
    margin: 52px 0 64px;
    padding: 42px;
    border-radius: 24px;
    background:
        radial-gradient(circle at top left, rgba(124,58,237,.20), transparent 35%),
        linear-gradient(180deg, #0b1020 0%, #090d16 100%);
    border: 1px solid rgba(148,163,184,.22);
}

.live-tools-heading {
    margin-bottom: 30px;
}

.live-tools-kicker {
    color: #a855f7;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .14em;
    margin-bottom: 12px;
}

.live-tools-heading h2 {
    margin: 0 0 14px;
    color: #fff;
    font-size: 38px;
    line-height: 1.1;
}

.live-tools-heading p {
    margin: 0;
    color: #cbd5e1;
    font-size: 17px;
}

.live-tools-card-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 26px;
}

.live-tool-card {
    padding: 30px;
    border-radius: 20px;
    background:
        radial-gradient(circle at top right, rgba(30,41,59,.70), transparent 35%),
        #101622;
    border: 1px solid rgba(148,163,184,.25);
    box-shadow: 0 18px 40px rgba(0,0,0,.28);
}

.live-tool-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 42px;
}

.live-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(22,163,74,.22);
    color: #86efac;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .08em;
}

.live-pill span {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #22c55e;
    display: inline-block;
}

.live-tool-icon {
    width: 82px;
    height: 56px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    color: #a855f7;
    font-size: 34px;
    background: rgba(168,85,247,.10);
    border: 1px solid rgba(168,85,247,.28);
}

.live-tool-card h3 {
    margin: 0 0 14px;
    color: #fff;
    font-size: 30px;
    line-height: 1.15;
}

.live-tool-card p {
    margin: 0 0 24px;
    color: #d1d5db;
    font-size: 17px;
    line-height: 1.55;
}

.live-tool-meta {
    padding-top: 18px;
    margin-bottom: 24px;
    border-top: 1px solid rgba(148,163,184,.16);
    color: #a78bfa;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: .04em;
}

.meta-icon {
    margin-right: 8px;
}

.live-tool-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 15px 20px;
    border-radius: 12px;
    background: linear-gradient(90deg, #6d28d9, #7c3aed);
    color: #fff !important;
    text-decoration: none;
    font-weight: 900;
    font-size: 15px;
    box-shadow: 0 10px 24px rgba(109,40,217,.32);
}

.live-tool-button:hover {
    background: linear-gradient(90deg, #5b21b6, #6d28d9);
    transform: translateY(-1px);
}

@media (max-width: 900px) {
    .live-tools-card-grid {
        grid-template-columns: 1fr !important;
    }

    .live-tools-showcase {
        padding: 28px;
    }

    .live-tools-heading h2 {
        font-size: 30px;
    }
}

.qat-section-dark {
    background:
        radial-gradient(circle at top left, rgba(121, 58, 255, 0.22), transparent 38%),
        #07101d;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.08);
}

.qat-section-title {
    font-size: clamp(2rem, 4vw, 3.4rem);
    margin: 0 0 18px;
}

.qat-section-intro {
    font-size: 1.15rem;
    max-width: 850px;
    margin-bottom: 42px;
}

.qat-tool-grid {
    align-items: stretch;
}

.qat-tool-card {
    background: linear-gradient(180deg, #101928, #0b1220);
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 22px;
    padding: 34px;
    box-shadow: 0 22px 50px rgba(0,0,0,0.32);
}

.qat-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 48px;
}

.qat-live-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(24, 169, 89, 0.18);
    color: #51f08d;
    font-weight: 800;
    letter-spacing: .05em;
    padding: 10px 18px;
    border-radius: 999px;
}

.qat-live-pill span {
    width: 10px;
    height: 10px;
    background: #20d66b;
    border-radius: 50%;
    display: inline-block;
}

.qat-tool-card h3 {
    font-size: 2.15rem;
    line-height: 1.15;
    margin: 0 0 18px;
}

.qat-tool-card p {
    font-size: 1.05rem;
    line-height: 1.65;
    color: rgba(255,255,255,0.86);
}

.qat-card-rule {
    height: 1px;
    background: rgba(255,255,255,0.10);
    margin: 34px 0 24px;
}

.qat-card-label {
    color: #a77cff;
    text-transform: uppercase;
    font-weight: 900;
    letter-spacing: .06em;
    margin-bottom: 26px;
}

.qat-purple-button {
    display: block;
    text-align: center;
    background: linear-gradient(135deg, #7a2df0, #8d42ff);
    color: #fff;
    text-decoration: none;
    font-weight: 900;
    padding: 18px 24px;
    border-radius: 14px;
}

.qat-purple-button:hover {
    transform: translateY(-1px);
    opacity: .95;
}

.qat-mini-heatmap,
.qat-etf-mini-grid {
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 14px;
    padding: 14px;
    background: rgba(255,255,255,0.03);
}

.qat-mini-heatmap {
    display: grid;
    grid-template-columns: repeat(5, 18px);
    gap: 6px;
}

.qat-mini-heatmap i {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    background: #1ec86b;
}

.qat-mini-heatmap i:nth-child(2),
.qat-mini-heatmap i:nth-child(6),
.qat-mini-heatmap i:nth-child(13) {
    background: #ef3737;
}

.qat-mini-heatmap i:nth-child(3),
.qat-mini-heatmap i:nth-child(8),
.qat-mini-heatmap i:nth-child(12) {
    background: #334155;
}

.qat-mini-heatmap i:nth-child(5),
.qat-mini-heatmap i:nth-child(10) {
    background: #f59e0b;
}

.qat-etf-mini-grid {
    display: grid;
    grid-template-columns: repeat(4, auto);
    gap: 5px;
}

.qat-etf-mini-grid b {
    font-size: .62rem;
    padding: 4px 5px;
    border-radius: 4px;
    background: #15803d;
    color: #fff;
}

.qat-etf-mini-grid b:nth-child(3),
.qat-etf-mini-grid b:nth-child(6),
.qat-etf-mini-grid b:nth-child(12) {
    background: #dc2626;
}

.qat-etf-mini-grid b:nth-child(4),
.qat-etf-mini-grid b:nth-child(9) {
    background: #334155;
}

.qat-etf-mini-grid b:nth-child(7),
.qat-etf-mini-grid b:nth-child(10) {
    background: #d97706;
}

.qat-disclaimer {
    max-width: 900px;
    text-align: center;
    margin: 34px auto 0;
    color: rgba(255,255,255,0.82);
}