/* =========================================================
   NAEEL SMART AI — PUBLIC MARKET INTELLIGENCE
   V1.0
   ========================================================= */

.nsai-public-platform {
    --nsai-navy: #0b2742;
    --nsai-navy-2: #123b60;
    --nsai-gold: #b99554;
    --nsai-gold-soft: #d9c49a;
    --nsai-cream: #f7f4ee;
    --nsai-bg: #f5f7f9;
    --nsai-white: #ffffff;
    --nsai-text: #17212b;
    --nsai-muted: #6b7785;
    --nsai-border: #e2e7ec;

    direction: rtl;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    color: var(--nsai-text);
    font-family: inherit;
}


/* =========================================================
   HERO
   ========================================================= */

.nsai-public-hero {
    position: relative;
    overflow: hidden;

    padding: 55px 45px;
    margin-bottom: 20px;

    background:
        linear-gradient(
            135deg,
            #081f35 0%,
            #0d3151 55%,
            #16466e 100%
        );

    border-radius: 18px;

    color: #fff;
}

.nsai-public-hero::after {
    content: "";
    position: absolute;

    width: 320px;
    height: 320px;

    left: -100px;
    top: -120px;

    border: 1px solid rgba(255,255,255,.08);
    border-radius: 50%;
}

.nsai-hero-badge {
    display: inline-flex;
    align-items: center;

    padding: 7px 13px;

    margin-bottom: 18px;

    border: 1px solid rgba(217,196,154,.45);
    border-radius: 30px;

    color: var(--nsai-gold-soft);

    font-size: 12px;
    letter-spacing: .4px;
}

.nsai-public-hero h1 {
    margin: 0 0 12px;

    color: #fff;

    font-size: clamp(30px, 4vw, 48px);
    font-weight: 800;
    line-height: 1.25;
}

.nsai-public-hero > p {
    max-width: 700px;

    margin: 0;

    color: rgba(255,255,255,.82);

    font-size: 16px;
    line-height: 2;
}


/* =========================================================
   HERO STATS
   ========================================================= */

.nsai-hero-stats {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 12px;

    max-width: 680px;

    margin-top: 32px;
}

.nsai-hero-stats > div {
    padding: 15px 18px;

    background: rgba(255,255,255,.07);

    border: 1px solid rgba(255,255,255,.11);
    border-radius: 12px;

    backdrop-filter: blur(8px);
}

.nsai-hero-stats strong {
    display: block;

    margin-bottom: 3px;

    color: #fff;

    font-size: 22px;
    font-weight: 800;

    direction: ltr;
    text-align: right;
}

.nsai-hero-stats span {
    color: rgba(255,255,255,.67);

    font-size: 12px;
}


/* =========================================================
   MARKET TICKER
   ========================================================= */

.nsai-market-ticker {
    display: flex;
    align-items: stretch;

    min-height: 52px;

    margin-bottom: 45px;

    overflow: hidden;

    background: #fff;

    border: 1px solid var(--nsai-border);
    border-radius: 12px;

    box-shadow: 0 7px 25px rgba(10,35,57,.05);
}

.nsai-ticker-label {
    display: flex;
    align-items: center;

    flex: 0 0 auto;

    padding: 0 22px;

    background: var(--nsai-gold);

    color: #fff;

    font-size: 13px;
    font-weight: 700;

    white-space: nowrap;
}

.nsai-ticker-window {
    display: flex;
    align-items: center;

    width: 100%;

    overflow: hidden;
}

.nsai-ticker-track {
    display: flex;
    align-items: center;

    min-width: max-content;

    padding: 0 22px;

    white-space: nowrap;
}

.nsai-ticker-track span {
    position: relative;

    padding: 0 22px;

    color: var(--nsai-muted);

    font-size: 13px;
}

.nsai-ticker-track span:not(:last-child)::after {
    content: "";

    position: absolute;

    left: 0;
    top: 50%;

    width: 4px;
    height: 4px;

    background: var(--nsai-gold);

    border-radius: 50%;

    transform: translateY(-50%);
}

.nsai-ticker-track strong {
    margin-right: 5px;

    color: var(--nsai-navy);

    font-weight: 800;
}


/* =========================================================
   SECTION HEADING
   ========================================================= */

.nsai-tools-heading {
    max-width: 700px;

    margin: 0 auto 28px;

    text-align: center;
}

.nsai-tools-heading > span {
    display: inline-block;

    margin-bottom: 7px;

    color: var(--nsai-gold);

    font-size: 12px;
    font-weight: 800;
}

.nsai-tools-heading h2 {
    margin: 0 0 8px;

    color: var(--nsai-navy);

    font-size: 30px;
    font-weight: 800;
}

.nsai-tools-heading p {
    margin: 0;

    color: var(--nsai-muted);

    font-size: 14px;
    line-height: 1.9;
}


/* =========================================================
   TOOL CARDS
   ========================================================= */

.nsai-tools-grid {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 15px;

    margin-bottom: 45px;
}

.nsai-tool-card {
    position: relative;

    display: flex;
    flex-direction: column;

    min-height: 225px;

    padding: 25px;

    appearance: none;

    text-align: right;

    background: #fff;

    border: 1px solid var(--nsai-border);
    border-radius: 15px;

    cursor: pointer;

    transition:
        transform .25s ease,
        border-color .25s ease,
        box-shadow .25s ease;
}

.nsai-tool-card:hover {
    transform: translateY(-5px);

    border-color: rgba(185,149,84,.55);

    box-shadow:
        0 15px 35px
        rgba(11,39,66,.09);
}

.nsai-tool-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 45px;
    height: 45px;

    margin-bottom: 20px;

    background: var(--nsai-cream);

    border-radius: 11px;

    color: var(--nsai-gold);

    font-size: 22px;
    font-weight: 700;
}

.nsai-tool-card strong {
    display: block;

    margin-bottom: 9px;

    color: var(--nsai-navy);

    font-size: 17px;
    font-weight: 800;
}

.nsai-tool-card small {
    display: block;

    flex: 1;

    color: var(--nsai-muted);

    font-size: 13px;
    line-height: 1.8;
}

.nsai-tool-action {
    display: inline-flex;

    margin-top: 20px;

    color: var(--nsai-navy);

    font-size: 12px;
    font-weight: 800;
}

.nsai-tool-action::after {
    content: "←";

    margin-right: 7px;

    color: var(--nsai-gold);

    transition: transform .2s ease;
}

.nsai-tool-card:hover
.nsai-tool-action::after {
    transform: translateX(-4px);
}


/* Smart Report larger */

.nsai-tool-card[
    data-nsai-tool="smart-report"
] {
    grid-column: span 4;

    min-height: auto;

    background:
        linear-gradient(
            135deg,
            #0b2742,
            #123b60
        );

    border-color: transparent;
}

.nsai-tool-card[
    data-nsai-tool="smart-report"
] strong {
    color: #fff;
}

.nsai-tool-card[
    data-nsai-tool="smart-report"
] small {
    color: rgba(255,255,255,.7);
}

.nsai-tool-card[
    data-nsai-tool="smart-report"
] .nsai-tool-icon {
    background: rgba(255,255,255,.09);

    color: var(--nsai-gold-soft);
}

.nsai-tool-card[
    data-nsai-tool="smart-report"
] .nsai-tool-action {
    color: #fff;
}


/* =========================================================
   ANALYSIS WORKSPACE
   ========================================================= */

.nsai-analysis-workspace {
    margin: 35px 0;

    padding: 35px;

    background: #fff;

    border: 1px solid var(--nsai-border);
    border-radius: 18px;

    box-shadow:
        0 12px 35px
        rgba(11,39,66,.06);
}

.nsai-analysis-workspace[hidden] {
    display: none !important;
}

.nsai-workspace-header {
    padding-bottom: 22px;

    margin-bottom: 25px;

    border-bottom:
        1px solid var(--nsai-border);
}

.nsai-workspace-header span {
    color: var(--nsai-gold);

    font-size: 11px;
    font-weight: 800;
}

.nsai-workspace-header h2 {
    margin: 5px 0;

    color: var(--nsai-navy);

    font-size: 27px;
}

.nsai-workspace-header p {
    margin: 0;

    color: var(--nsai-muted);
}


/* =========================================================
   REPORT RESULT
   ========================================================= */

.nsai-report-result {
    margin-top: 25px;
}

.nsai-report-result:empty {
    display: none;
}


/* =========================================================
   TRUST SECTION
   ========================================================= */

.nsai-public-trust {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    margin: 50px 0 20px;

    overflow: hidden;

    background: var(--nsai-cream);

    border-radius: 16px;
}

.nsai-public-trust > div {
    padding: 28px 20px;

    text-align: center;
}

.nsai-public-trust > div:not(:last-child) {
    border-left:
        1px solid rgba(11,39,66,.08);
}

.nsai-public-trust strong {
    display: block;

    margin-bottom: 4px;

    color: var(--nsai-navy);

    font-size: 25px;
    font-weight: 900;

    direction: ltr;
}

.nsai-public-trust span {
    color: var(--nsai-muted);

    font-size: 12px;
}


/* =========================================================
   WORDPRESS / THEME PROTECTION
   ========================================================= */

.nsai-public-platform button {
    font-family: inherit;
}

.nsai-public-platform *,
.nsai-public-platform *::before,
.nsai-public-platform *::after {
    box-sizing: border-box;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1024px) {

    .nsai-tools-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .nsai-tool-card[
        data-nsai-tool="smart-report"
    ] {
        grid-column: span 2;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 700px) {

    .nsai-public-hero {
        padding: 35px 22px;

        border-radius: 13px;
    }

    .nsai-public-hero h1 {
        font-size: 31px;
    }

    .nsai-public-hero > p {
        font-size: 14px;
    }


    .nsai-hero-stats {
        grid-template-columns: 1fr;

        gap: 8px;

        margin-top: 25px;
    }


    .nsai-market-ticker {
        min-height: 48px;

        margin-bottom: 35px;
    }

    .nsai-ticker-label {
        padding: 0 13px;

        font-size: 11px;
    }


    .nsai-tools-heading h2 {
        font-size: 25px;
    }


    .nsai-tools-grid {
        grid-template-columns: 1fr;
    }

    .nsai-tool-card[
        data-nsai-tool="smart-report"
    ] {
        grid-column: span 1;
    }

    .nsai-tool-card {
        min-height: 190px;
    }


    .nsai-analysis-workspace {
        padding: 22px 17px;
    }


    .nsai-public-trust {
        grid-template-columns: 1fr;
    }

    .nsai-public-trust > div:not(:last-child) {
        border-left: 0;

        border-bottom:
            1px solid rgba(11,39,66,.08);
    }

}
/* =========================================================
   PUBLIC FORMS
   ========================================================= */

.nsai-public-form {
    padding: 5px 0;
}

.nsai-form-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.nsai-field label {
    display: block;
    margin-bottom: 8px;
    color: var(--nsai-navy);
    font-weight: 800;
    font-size: 13px;
}

.nsai-field input,
.nsai-field select {
    width: 100%;
    min-height: 48px;
    padding: 0 14px;
    background: #fff;
    border: 1px solid var(--nsai-border);
    border-radius: 10px;
    color: var(--nsai-text);
    font-family: inherit;
    outline: none;
}

.nsai-field input:focus,
.nsai-field select:focus {
    border-color: var(--nsai-gold);
    box-shadow: 0 0 0 3px rgba(185,149,84,.10);
}

.nsai-input-money {
    position: relative;
}

.nsai-input-money input {
    padding-left: 55px;
}

.nsai-input-money span {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--nsai-muted);
    font-size: 12px;
}

.nsai-form-submit {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 25px;
}

.nsai-primary-button {
    min-height: 48px;
    padding: 0 28px;
    background: var(--nsai-navy);
    border: 0;
    border-radius: 10px;
    color: #fff;
    font-weight: 800;
    cursor: pointer;
}

.nsai-form-submit small {
    color: var(--nsai-muted);
}


/* LOADING / ERROR */

.nsai-public-loading,
.nsai-public-error {
    padding: 25px;
    border-radius: 12px;
    text-align: center;
}

.nsai-public-loading {
    background: var(--nsai-cream);
    color: var(--nsai-navy);
}

.nsai-public-error {
    background: #fff4f4;
    border: 1px solid #f0cccc;
    color: #8a2525;
}


/* =========================================================
   PUBLIC REPORT
   ========================================================= */

.nsai-public-report {
    margin-top: 35px;
}

.nsai-report-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 25px;
    padding: 28px;
    background: var(--nsai-navy);
    border-radius: 15px;
    color: #fff;
}

.nsai-report-header span {
    color: var(--nsai-gold-soft);
    font-size: 11px;
}

.nsai-report-header h2 {
    margin: 4px 0;
    color: #fff;
}

.nsai-report-header p {
    margin: 0;
    color: rgba(255,255,255,.7);
}

.nsai-report-city {
    padding: 10px 18px;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 30px;
    font-weight: 800;
}

.nsai-report-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 15px 0 35px;
}

.nsai-report-card {
    padding: 20px;
    background: var(--nsai-cream);
    border-radius: 12px;
}

.nsai-report-card span {
    display: block;
    margin-bottom: 5px;
    color: var(--nsai-muted);
    font-size: 12px;
}

.nsai-report-card strong {
    color: var(--nsai-navy);
    font-size: 19px;
}

.nsai-report-section {
    margin: 35px 0;
}

.nsai-section-heading {
    margin-bottom: 15px;
}

.nsai-section-heading > span {
    color: var(--nsai-gold);
    font-size: 11px;
    font-weight: 800;
}

.nsai-section-heading h3 {
    margin: 3px 0;
    color: var(--nsai-navy);
}

.nsai-section-heading p {
    margin: 0;
    color: var(--nsai-muted);
    font-size: 13px;
}

.nsai-recommendation-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.nsai-recommendation-card {
    padding: 22px;
    background: #fff;
    border: 1px solid var(--nsai-border);
    border-radius: 12px;
}

.nsai-recommendation-card span {
    display: block;
    color: var(--nsai-muted);
    font-size: 12px;
}

.nsai-recommendation-card strong {
    display: block;
    margin-top: 6px;
    color: var(--nsai-navy);
    font-size: 20px;
}

.nsai-public-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--nsai-border);
    border-radius: 12px;
}

.nsai-public-table {
    width: 100%;
    min-width: 750px;
    border-collapse: collapse;
}

.nsai-public-table th,
.nsai-public-table td {
    padding: 13px 15px;
    border-bottom: 1px solid var(--nsai-border);
    text-align: right;
    font-size: 12px;
}

.nsai-public-table th {
    background: var(--nsai-cream);
    color: var(--nsai-navy);
}

.nsai-report-verdict {
    padding: 28px;
    margin-top: 35px;
    background: #f7f9fb;
    border-right: 4px solid var(--nsai-gold);
    border-radius: 12px;
}

.nsai-report-verdict > span {
    color: var(--nsai-gold);
    font-size: 11px;
    font-weight: 800;
}

.nsai-report-verdict h3 {
    margin: 5px 0 10px;
    color: var(--nsai-navy);
}

.nsai-report-verdict p {
    margin: 0;
    color: var(--nsai-text);
    line-height: 2;
}


/* MOBILE */

@media (max-width: 700px) {

    .nsai-form-grid,
    .nsai-report-summary,
    .nsai-recommendation-grid {
        grid-template-columns: 1fr;
    }

    .nsai-form-submit,
    .nsai-report-header {
        align-items: stretch;
        flex-direction: column;
    }

    .nsai-primary-button {
        width: 100%;
    }
}
/* =========================================================
   PUBLIC INVESTOR
   ========================================================= */

.nsai-investor-public-recommendation {
    padding: 25px 28px;

    background: var(--nsai-cream);

    border-right:
        4px solid var(--nsai-gold);

    border-radius: 12px;

    color: var(--nsai-navy);

    font-size: 14px;

    line-height: 2.1;
}

.nsai-investor-report
.nsai-report-card:first-child {
    position: relative;

    overflow: hidden;
}

.nsai-investor-report
.nsai-report-card:first-child::before {
    content: "";

    position: absolute;

    right: 0;
    top: 0;
    bottom: 0;

    width: 3px;

    background: var(--nsai-gold);
}
/* =========================================================
   PUBLIC SELLER
   ========================================================= */

.nsai-seller-public-recommendation {
    padding: 25px 28px;

    background: var(--nsai-cream);

    border-right:
        4px solid var(--nsai-gold);

    border-radius: 12px;

    color: var(--nsai-navy);

    font-size: 14px;

    line-height: 2.1;
}

.nsai-seller-report
.nsai-report-card:first-child {
    position: relative;

    overflow: hidden;
}

.nsai-seller-report
.nsai-report-card:first-child::before {
    content: "";

    position: absolute;

    right: 0;
    top: 0;
    bottom: 0;

    width: 3px;

    background: var(--nsai-gold);
}
/* =====================================================
   NAEEL PUBLIC — DEVELOPER REPORT
   ===================================================== */

.nsai-developer-report {
    direction: rtl;
    text-align: right;
}


/* Developer Recommendation */

.nsai-developer-public-recommendation {
    background: #f8fafc;
    border-right: 5px solid #0f2a44;
    padding: 20px 24px;
    border-radius: 12px;
    line-height: 2;
    color: #0f2a44;
    font-size: 16px;
}


/* Developer Report Cards */

.nsai-developer-report .nsai-report-card {
    min-height: 110px;
}


/* Important numbers */

.nsai-developer-report .nsai-report-card strong {
    font-weight: 700;
}


/* Mobile */

@media (max-width: 768px) {

    .nsai-developer-public-recommendation {
        padding: 16px;
        font-size: 15px;
    }

    .nsai-developer-report .nsai-report-card {
        min-height: auto;
    }
}

/* =========================================================
   NAEEL SMART AI — VISUAL POLISH
   V1.1 (presentation layer only)
   ========================================================= */

.nsai-public-platform {
    --nsai-shadow-sm: 0 8px 24px rgba(11,39,66,.06);
    --nsai-shadow-md: 0 18px 48px rgba(11,39,66,.10);
    --nsai-radius-lg: 20px;
    padding: 18px 0 42px;
}

.nsai-public-hero {
    isolation: isolate;
    padding: clamp(38px, 5vw, 68px) clamp(24px, 5vw, 62px);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 24px;
    box-shadow: 0 22px 60px rgba(8,31,53,.19);
}

.nsai-public-hero::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: auto auto -170px -70px;
    width: 430px;
    height: 430px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(185,149,84,.18), transparent 68%);
}

.nsai-public-hero::after {
    z-index: -1;
    width: 430px;
    height: 430px;
    left: -115px;
    top: -180px;
    box-shadow: 0 0 0 55px rgba(255,255,255,.018),
                0 0 0 110px rgba(255,255,255,.012);
}

.nsai-hero-badge {
    background: rgba(255,255,255,.045);
    backdrop-filter: blur(10px);
}

.nsai-hero-period {
    width: fit-content;
    margin: -8px auto 18px;
    color: rgba(255,255,255,.68);
    font-size: 12px;
    font-weight: 600;
    text-align: center;
}

.nsai-public-hero h1 {
    max-width: 820px;
    letter-spacing: -.5px;
}

.nsai-hero-stats > div {
    transition: transform .25s ease, background .25s ease;
}

.nsai-hero-stats > div:hover {
    transform: translateY(-3px);
    background: rgba(255,255,255,.11);
}

.nsai-market-ticker {
    position: relative;
    margin-top: -1px;
    box-shadow: var(--nsai-shadow-sm);
}

.nsai-ticker-window {
    direction: ltr;
    mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}

.nsai-ticker-track {
    direction: ltr;
    padding: 0;
    animation:
        nsaiTickerMove
        var(--nsai-ticker-duration, 85s)
        linear
        infinite;
    will-change: transform;
}

.nsai-ticker-group {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    min-width: max-content;
    padding: 0 4px;
    direction: rtl;
}

.nsai-market-ticker:hover .nsai-ticker-track {
    animation-play-state: paused;
}

@keyframes nsaiTickerMove {
    from { transform: translate3d(0, 0, 0); }
    to   { transform: translate3d(-50%, 0, 0); }
}

.nsai-tools-grid {
    gap: 18px;
}

.nsai-tool-card {
    overflow: hidden;
    border-radius: 18px;
    box-shadow: 0 4px 18px rgba(11,39,66,.035);
}

.nsai-tool-card::before {
    content: "";
    position: absolute;
    right: 0;
    top: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--nsai-gold), transparent);
    opacity: 0;
    transition: opacity .25s ease;
}

.nsai-tool-card:hover::before,
.nsai-tool-card:focus-visible::before {
    opacity: 1;
}

.nsai-tool-card:focus-visible,
.nsai-primary-button:focus-visible {
    outline: 3px solid rgba(185,149,84,.35);
    outline-offset: 3px;
}

.nsai-tool-icon {
    box-shadow: inset 0 0 0 1px rgba(185,149,84,.12);
}

.nsai-tool-card[data-nsai-tool="smart-report"] {
    padding: 30px 32px;
    box-shadow: 0 16px 42px rgba(11,39,66,.16);
}

.nsai-analysis-workspace {
    position: relative;
    overflow: hidden;
    padding: clamp(24px, 4vw, 42px);
    border-radius: var(--nsai-radius-lg);
    box-shadow: var(--nsai-shadow-md);
}

.nsai-analysis-workspace::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--nsai-navy), var(--nsai-gold), var(--nsai-navy));
}

.nsai-field input,
.nsai-field select {
    min-height: 52px;
    background: #fbfcfd;
    border-radius: 12px;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.nsai-field input:hover,
.nsai-field select:hover {
    border-color: #cbd4dc;
    background: #fff;
}

.nsai-primary-button {
    min-height: 52px;
    padding: 0 34px;
    border-radius: 12px;
    box-shadow: 0 10px 24px rgba(11,39,66,.17);
    transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}

.nsai-primary-button:hover {
    transform: translateY(-2px);
    background: var(--nsai-navy-2);
    box-shadow: 0 14px 30px rgba(11,39,66,.22);
}

.nsai-public-loading {
    border: 1px solid rgba(185,149,84,.22);
}

.nsai-loader {
    display: inline-block;
    width: 22px;
    height: 22px;
    margin-left: 10px;
    vertical-align: middle;
    border: 3px solid rgba(11,39,66,.14);
    border-top-color: var(--nsai-gold);
    border-radius: 50%;
    animation: nsaiSpin .8s linear infinite;
}

@keyframes nsaiSpin {
    to { transform: rotate(360deg); }
}

.nsai-report-header {
    position: relative;
    overflow: hidden;
    padding: clamp(24px, 4vw, 36px);
    border-radius: 18px;
    box-shadow: 0 14px 34px rgba(11,39,66,.14);
}

.nsai-report-header::after {
    content: "";
    position: absolute;
    left: -65px;
    top: -95px;
    width: 240px;
    height: 240px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 50%;
}

.nsai-report-card,
.nsai-recommendation-card {
    border: 1px solid rgba(11,39,66,.06);
    box-shadow: 0 5px 18px rgba(11,39,66,.035);
    transition: transform .2s ease, box-shadow .2s ease;
}

.nsai-report-card:hover,
.nsai-recommendation-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--nsai-shadow-sm);
}

.nsai-public-table th {
    position: sticky;
    top: 0;
    z-index: 1;
}

.nsai-public-table tbody tr {
    transition: background .18s ease;
}

.nsai-public-table tbody tr:hover {
    background: #fbf8f1;
}

.nsai-report-verdict,
.nsai-investor-public-recommendation,
.nsai-seller-public-recommendation,
.nsai-developer-public-recommendation {
    box-shadow: var(--nsai-shadow-sm);
}

.nsai-public-trust {
    border: 1px solid rgba(185,149,84,.12);
    box-shadow: var(--nsai-shadow-sm);
}

@media (max-width: 700px) {
    .nsai-public-platform { padding-top: 8px; }
    .nsai-public-hero { border-radius: 16px; }
    .nsai-market-ticker { border-radius: 10px; }
    .nsai-ticker-window {
        mask-image: none;
        -webkit-mask-image: none;
    }
    .nsai-tool-card { min-height: 175px; padding: 22px; }
    .nsai-tool-card[data-nsai-tool="smart-report"] { padding: 25px 22px; }
    .nsai-report-city { align-self: flex-start; }
    .nsai-report-card strong { font-size: 18px; }
}

/* =========================================================
   REPORT EXPORT & PRINT
   ========================================================= */

.nsai-report-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 18px;
}

.nsai-print-frame {
    position: fixed !important;
    width: 0 !important;
    height: 0 !important;
    border: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.nsai-report-actions button {
    min-height: 46px;
    padding: 0 22px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 800;
    border-radius: 11px;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease;
}

.nsai-report-download {
    color: #fff;
    background: var(--nsai-navy);
    border: 1px solid var(--nsai-navy);
    box-shadow: 0 9px 22px rgba(11,39,66,.16);
}

.nsai-report-print {
    color: var(--nsai-navy);
    background: #fff;
    border: 1px solid var(--nsai-border);
}

.nsai-report-actions button:hover {
    transform: translateY(-2px);
    box-shadow: var(--nsai-shadow-sm);
}

.nsai-report-print-disclaimer {
    display: none;
    margin-top: 28px;
    padding: 18px 20px;
    text-align: right;
    background: #fff9e9;
    border: 1px solid #ead28d;
    border-right: 4px solid var(--nsai-gold);
    border-radius: 10px;
}

.nsai-report-print-disclaimer strong {
    display: block;
    margin-bottom: 5px;
    color: var(--nsai-navy);
    font-size: 13px;
}

.nsai-report-print-disclaimer p {
    margin: 0;
    color: #44515f;
    font-size: 11px;
    line-height: 1.9;
}

@media print {

    @page {
        size: A4;
        margin: 12mm;
    }

    body.nsai-printing-report {
        margin: 0 !important;
        background: #fff !important;
    }

    body.nsai-printing-report * {
        visibility: hidden !important;
    }

    body.nsai-printing-report .nsai-public-report,
    body.nsai-printing-report .nsai-public-report * {
        visibility: visible !important;
    }

    body.nsai-printing-report .nsai-public-report {
        position: absolute !important;
        top: 0 !important;
        right: 0 !important;
        left: 0 !important;
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
        direction: rtl !important;
        color: #17212b !important;
        background: #fff !important;
        print-color-adjust: exact;
        -webkit-print-color-adjust: exact;
    }

    body.nsai-printing-report .nsai-report-actions {
        display: none !important;
    }

    body.nsai-printing-report .nsai-report-print-disclaimer {
        display: block !important;
        break-inside: avoid;
        page-break-inside: avoid;
    }

    body.nsai-printing-report .nsai-report-card,
    body.nsai-printing-report .nsai-recommendation-card,
    body.nsai-printing-report .nsai-report-header,
    body.nsai-printing-report .nsai-report-intro,
    body.nsai-printing-report .nsai-report-verdict,
    body.nsai-printing-report tr {
        break-inside: avoid;
        page-break-inside: avoid;
    }

    body.nsai-printing-report .nsai-public-table-wrap {
        overflow: visible !important;
    }

    body.nsai-printing-report .nsai-public-table {
        min-width: 0 !important;
        font-size: 10px !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .nsai-ticker-track,
    .nsai-loader {
        animation: none;
    }
    .nsai-tool-card,
    .nsai-primary-button,
    .nsai-report-card,
    .nsai-recommendation-card {
        transition: none;
    }
}

/* =========================================================
   CENTERED CONTENT — MAIN PAGE & PUBLIC REPORTS
   ========================================================= */

.nsai-public-hero,
.nsai-public-hero > p,
.nsai-hero-stats > div,
.nsai-tools-heading,
.nsai-tool-card,
.nsai-workspace-header,
.nsai-report-header,
.nsai-section-heading,
.nsai-report-card,
.nsai-recommendation-card,
.nsai-report-verdict,
.nsai-investor-public-recommendation,
.nsai-seller-public-recommendation,
.nsai-developer-public-recommendation,
.nsai-public-trust > div {
    text-align: center;
}

.nsai-public-hero > p,
.nsai-public-hero h1,
.nsai-tools-heading,
.nsai-section-heading {
    margin-right: auto;
    margin-left: auto;
}

.nsai-hero-stats {
    margin-right: auto;
    margin-left: auto;
}

.nsai-hero-stats strong {
    text-align: center;
}

.nsai-tool-card {
    align-items: center;
}

.nsai-tool-icon {
    margin-right: auto;
    margin-left: auto;
}

.nsai-report-header {
    justify-content: center;
    flex-direction: column;
}

.nsai-report-city {
    align-self: center;
}

.nsai-report-verdict {
    border-right: 0;
    border-top: 4px solid var(--nsai-gold);
}

.nsai-investor-public-recommendation,
.nsai-seller-public-recommendation,
.nsai-developer-public-recommendation {
    border-right: 0;
    border-top: 4px solid var(--nsai-gold);
}

.nsai-primary-button,
.nsai-form-submit small,
.nsai-public-loading,
.nsai-public-error {
    text-align: center;
}

.nsai-form-submit {
    justify-content: center;
}

.nsai-public-table th,
.nsai-public-table td {
    text-align: center;
}

@media (max-width: 700px) {
    .nsai-report-city {
        align-self: center;
    }
}

/* =========================================================
   LIVE MARKET TREND INDICATORS
   ========================================================= */

.nsai-ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.nsai-trend {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 58px;
    padding: 4px 8px;
    border-radius: 999px;
    direction: ltr;
    font-size: 11px;
    font-weight: 900;
}

.nsai-trend::before {
    margin-right: 4px;
    font-size: 10px;
}

.nsai-trend-up {
    color: #087443;
    background: #e9f8f0;
    border: 1px solid #bfe8d2;
}

.nsai-trend-up::before {
    content: "▲";
}

.nsai-trend-down {
    color: #b42318;
    background: #fff0ee;
    border: 1px solid #f4c7c2;
}

.nsai-trend-down::before {
    content: "▼";
}

.nsai-trend-flat {
    color: #667085;
    background: #f2f4f7;
    border: 1px solid #dfe3e8;
}

.nsai-trend-flat::before {
    content: "●";
}

/* Ticker is moved above the hero by the public JavaScript. */

.nsai-public-platform > .nsai-market-ticker,
.nsai-market-ticker:first-child {
    margin-top: 0;
    margin-bottom: 14px;
}

.nsai-ticker-summary {
    gap: 6px;
}

.nsai-ticker-value {
    display: inline-flex;
    align-items: center;
    min-height: 25px;
    padding: 3px 9px;
    color: var(--nsai-navy);
    background: var(--nsai-cream);
    border: 1px solid var(--nsai-border);
    border-radius: 999px;
    direction: ltr;
    font-size: 11px;
    font-weight: 900;
}

.nsai-market-ticker-legacy {
    display: none !important;
}

/* =========================================================
   REPORT INTRODUCTION
   ========================================================= */

.nsai-report-intro {
    margin-bottom: 22px;
    padding: clamp(30px, 5vw, 52px) clamp(22px, 5vw, 48px);
    text-align: center;
    background: #fff;
    border: 1px solid var(--nsai-border);
    border-radius: 20px;
    box-shadow: var(--nsai-shadow-sm);
}

.nsai-report-brand {
    margin-bottom: 18px;
    color: var(--nsai-navy);
    font-size: 20px;
    font-weight: 900;
    letter-spacing: .4px;
}

.nsai-report-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 58px;
    margin: 0 auto 18px;
}

.nsai-report-logo img {
    display: block;
    width: auto;
    max-width: 180px;
    height: auto;
    max-height: 72px;
    object-fit: contain;
}

/* =========================================================
   MARKET SCOPE SWITCH
   ========================================================= */

.nsai-market-scope-switch {
    display: inline-flex;
    gap: 5px;
    margin: 22px auto 0;
    padding: 5px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 999px;
}

.nsai-market-scope-switch button {
    min-height: 38px;
    padding: 0 16px;
    color: rgba(255,255,255,.72);
    background: transparent;
    border: 0;
    border-radius: 999px;
    font-family: inherit;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    transition: color .2s ease, background .2s ease;
}

.nsai-market-scope-switch button.is-active {
    color: var(--nsai-navy);
    background: var(--nsai-gold-soft);
}

.nsai-public-hero .nsai-hero-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    max-width: 900px;
}

@media (max-width: 800px) {
    .nsai-public-hero .nsai-hero-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    .nsai-market-scope-switch {
        display: flex;
        width: 100%;
        border-radius: 14px;
    }

    .nsai-market-scope-switch button {
        flex: 1;
        padding: 7px 10px;
        line-height: 1.5;
    }

    .nsai-public-hero .nsai-hero-stats {
        grid-template-columns: 1fr;
    }
}

/* Print refinements after the general report rules. */

@media print {
    body.nsai-printing-report .nsai-report-intro {
        padding: 22px 24px !important;
        margin-bottom: 14px !important;
    }

    body.nsai-printing-report .nsai-report-section {
        margin: 18px 0 !important;
    }

    body.nsai-printing-report .nsai-report-summary,
    body.nsai-printing-report .nsai-recommendation-grid {
        gap: 7px !important;
        margin-bottom: 18px !important;
    }

    body.nsai-printing-report .nsai-report-card,
    body.nsai-printing-report .nsai-recommendation-card {
        padding: 12px !important;
        min-height: auto !important;
    }

    body.nsai-printing-report .nsai-public-table th,
    body.nsai-printing-report .nsai-public-table td {
        padding: 6px 5px !important;
        font-size: 8.5px !important;
        white-space: normal !important;
    }

    body.nsai-printing-report .nsai-report-verdict {
        margin-top: 18px !important;
        padding: 18px !important;
        break-after: avoid-page !important;
        page-break-after: avoid !important;
    }

    body.nsai-printing-report .nsai-report-print-disclaimer {
        margin-top: 10px !important;
        padding: 12px 14px !important;
        break-before: avoid-page !important;
        page-break-before: avoid !important;
    }

    body.nsai-printing-report .nsai-report-print-disclaimer p {
        font-size: 9px !important;
        line-height: 1.65 !important;
    }
}

.nsai-report-intro h2 {
    margin: 0;
    color: var(--nsai-navy);
    font-size: clamp(23px, 3vw, 31px);
    font-weight: 900;
}

.nsai-report-intro > i {
    display: block;
    width: 105px;
    height: 3px;
    margin: 18px auto;
    background: linear-gradient(90deg, var(--nsai-navy), var(--nsai-gold));
    border-radius: 999px;
}

.nsai-report-intro > p {
    max-width: 720px;
    margin: 0 auto 7px;
    color: var(--nsai-muted);
    line-height: 1.9;
}

.nsai-report-intro > small {
    color: var(--nsai-gold);
    font-weight: 800;
}

.nsai-report-identity {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 22px;
    margin-top: 15px;
    color: var(--nsai-muted);
    font-size: 12px;
}

.nsai-report-details {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--nsai-border);
}

.nsai-report-details > div {
    padding: 14px 12px;
    background: var(--nsai-cream);
    border-radius: 10px;
}

.nsai-report-details span,
.nsai-report-details strong {
    display: block;
}

.nsai-report-details span {
    margin-bottom: 4px;
    color: var(--nsai-muted);
    font-size: 11px;
}

.nsai-report-details strong {
    color: var(--nsai-navy);
    font-size: 14px;
}

/* =========================================================
   PAGE DISCLAIMER
   ========================================================= */

.nsai-public-disclaimer {
    margin-top: 24px;
    padding: 22px 26px;
    text-align: right;
    background: #fff9e9;
    border: 1px solid #ead28d;
    border-right: 4px solid var(--nsai-gold);
    border-radius: 13px;
}

.nsai-public-disclaimer strong {
    display: block;
    margin-bottom: 7px;
    color: var(--nsai-navy);
    font-size: 14px;
}

.nsai-public-disclaimer p {
    margin: 0;
    color: #44515f;
    font-size: 13px;
    line-height: 2;
}

@media (max-width: 700px) {
    .nsai-report-details {
        grid-template-columns: 1fr;
    }

    .nsai-public-disclaimer {
        padding: 19px 18px;
    }
}