
:root {
    --b: #6EAAF2;
    --r: #F47471;
    --g: #7CD88B;
    --bg: #0b1220;
    --text: #e8eefc;
    --muted: #a9b6d6;
    --stroke: rgba(255,255,255,.10);
    --shadow: 0 16px 48px rgba(0,0,0,.35);
    --radius: 22px;
    --font: "Vazirmatn","IRANSans","IRANYekan","Yekan","Tahoma","Segoe UI",Arial,sans-serif;
    --topbarH: 56px;
    --navH: 72px;
}

html, body {
    height: 100%
}

body {
    margin: 0;
    font-family: var(--font);
    background: radial-gradient(1200px 600px at 15% 15%, rgba(110,170,242,.25), transparent 60%), radial-gradient(900px 500px at 90% 25%, rgba(124,216,139,.18), transparent 62%), radial-gradient(900px 520px at 50% 90%, rgba(244,116,113,.16), transparent 60%), linear-gradient(180deg, #070b14, #0b1220 35%, #070b14);
    color: var(--text);
    overflow: hidden;
}

.deck {
    height: 100%;
    display: flex;
    flex-direction: column
}

.topbar {
    height: var(--topbarH);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    gap: 12px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 260px
}

.brandMark {
    width: 14px;
    height: 14px;
    border-radius: 6px;
    background: linear-gradient(135deg,var(--b),var(--g));
    box-shadow: 0 0 0 6px rgba(110,170,242,.12)
}

.brandTitle {
    font-weight: 800;
    font-size: 14px;
    color: rgba(232,238,252,.92);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 540px
}

.meta {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: flex-end;
    min-width: 260px
}

.pill {
    border: 1px solid var(--stroke);
    background: rgba(255,255,255,.04);
    padding: 8px 10px;
    border-radius: 999px;
    font-size: 16px;
    color: rgba(232,238,252,.88)
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 99px;
    background: var(--r);
    box-shadow: 0 0 0 6px rgba(244,116,113,.12);
    display: inline-block;
    margin-left: 8px;
    vertical-align: middle
}

a {
    color: inherit;
    text-decoration: none
}




.stage {
    flex: 1;
    display: grid;
    place-items: center;
    padding: 10px 18px 0;
    min-height: 0;
}

.slide {
    width: min(1180px, calc(100vw - 36px));
    height: min(650px, calc(100vh - (var(--topbarH) + var(--navH) + 30px)));
    background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
    border: 1px solid var(--stroke);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
    display: none;
}

    .slide.active {
        display: block
    }

.accent {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(700px 350px at 12% 12%, rgba(110,170,242,.22), transparent 60%), radial-gradient(650px 320px at 90% 25%, rgba(124,216,139,.18), transparent 62%), radial-gradient(650px 350px at 55% 105%, rgba(244,116,113,.12), transparent 60%);
    opacity: .95
}

.accentBar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg,var(--b),var(--g),var(--r))
}

.content {
    position: relative;
    height: 100%;
    padding: 44px 44px 32px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}

h1, h2, h3, p, ul {
    margin: 0
}

h1 {
    font-size: 44px;
    line-height: 1.15;
    font-weight: 900;
    letter-spacing: -.6px
}

h2 {
    font-size: 30px;
    line-height: 1.2;
    font-weight: 900;
    letter-spacing: -.3px
}

.subtitle {
    font-size: 18px;
    line-height: 1.7;
    color: rgba(232,238,252,.82);
    max-width: 980px
}

.grid {
    display: grid;
    gap: 14px
}

    .grid.two {
        grid-template-columns: 1.15fr .85fr
    }

        .grid.two.equal {
            grid-template-columns: 1fr 1fr
        }

    .grid.three {
        grid-template-columns: repeat(3,1fr)
    }

    .grid > * {
        min-width: 0;
    }

.card {
    background: rgba(11,18,32,.55);
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 18px;
    padding: 16px 16px;
    backdrop-filter: blur(10px);
    min-height: 0;
    min-width: 0;
    overflow: hidden;
}

.cardTitle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-weight: 850;
    font-size: 16px;
    margin-bottom: 8px;
}

.titleLeft {
    display: flex;
    align-items: center;
    gap: 10px
}

.icon {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.10);
    flex: 0 0 auto;
}

    .icon svg {
        width: 18px;
        height: 18px;
        opacity: .95
    }

.muted {
    color: rgba(232,238,252,.72);
    font-size: 14px;
    line-height: 1.75
}

.badge {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.14);
    background: rgba(255,255,255,.05);
    font-size: 13px;
    font-weight: 750
}

    .badge .price {
        background: rgba(244,116,113,.18);
        border: 1px solid rgba(244,116,113,.28);
        color: #fff;
        padding: 6px 10px;
        border-radius: 999px;
        font-weight: 900
    }

.kpiRow {
    display: flex;
    flex-wrap: wrap;
    gap: 10px
}

.kpi {
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(255,255,255,.05);
    min-width: 210px
}

    .kpi .label {
        font-size: 12px;
        color: rgba(232,238,252,.72)
    }

    .kpi .value {
        font-size: 20px;
        font-weight: 900;
        margin-top: 4px
    }

    .kpi .hint {
        font-size: 12px;
        color: rgba(232,238,252,.68);
        margin-top: 3px
    }

.nav {
    height: var(--navH);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 10px 18px 18px;
}

.btn {
    border: 1px solid rgba(255,255,255,.14);
    background: rgba(255,255,255,.06);
    color: rgba(232,238,252,.92);
    padding: 10px 12px;
    border-radius: 14px;
    cursor: pointer;
    transition: transform .12s ease, background .12s ease, border-color .12s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    user-select: none;
    font-family: var(--font);
    white-space: nowrap;
}

    .btn:hover {
        transform: translateY(-1px);
        background: rgba(255,255,255,.08);
        border-color: rgba(255,255,255,.22)
    }

    .btn[disabled] {
        opacity: .45;
        cursor: not-allowed;
        transform: none
    }

    .btn svg {
        width: 16px;
        height: 16px;
        opacity: .9
    }

.progress {
    min-width: 180px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(232,238,252,.80);
    font-size: 12px
}

.bar {
    flex: 1;
    height: 8px;
    border-radius: 999px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.10);
    overflow: hidden
}

    .bar > div {
        height: 100%;
        width: 0%;
        background: linear-gradient(90deg,var(--b),var(--g),var(--r));
        border-radius: 999px;
        transition: width .2s ease
    }

.chart {
    width: 100%;
    height: 360px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.10);
    background: rgba(11,18,32,.35);
    min-width: 0;
    max-width: 100%;
    contain: content;
}

    .chart, .chart > div, .highcharts-container, .highcharts-root {
        width: 100% !important;
        max-width: 100% !important;
    }

.highcharts-container {
    overflow: hidden !important;
    box-sizing: border-box !important;
}

.highcharts-root {
    display: block;
}

.callout {
    border-left: 4px solid var(--b);
    padding: 12px 14px;
    background: rgba(110,170,242,.10);
    border-radius: 14px;
    color: rgba(232,238,252,.90);
    font-size: 14px;
    line-height: 1.8
}

.quote {
    font-size: 16px;
    color: rgba(232,238,252,.88);
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px dashed rgba(255,255,255,.22);
    background: rgba(255,255,255,.04);
    line-height: 1.9
}

.mini {
    font-size: 12px;
    color: rgba(232,238,252,.65);
    line-height: 1.7
}

.logoGrid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 12px;
}

.logoTile {
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(255,255,255,.04);
    border-radius: 16px;
    height: 65px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2px;
}

    .logoTile .w1 {
        font-weight: 900;
        font-size: 18px;
        letter-spacing: .5px;
        color: #fff
    }

    .logoTile .w2 {
        font-weight: 800;
        font-size: 13px;
        opacity: .95;
        color: #fff
    }

    .logoTile.small .w1 {
        font-size: 16px
    }

    .logoTile.long .w1 {
        font-size: 15px
    }

    .logoTile.long .w2 {
        font-size: 12px
    }

.miniKpis {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 12px;
}

.miniKpi {
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(255,255,255,.04);
    border-radius: 16px;
    padding: 12px 12px;
    min-height: 84px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    min-width: 0;
}

    .miniKpi .t {
        font-size: 12px;
        color: rgba(232,238,252,.72)
    }

    .miniKpi .v {
        font-size: 18px;
        font-weight: 900;
        color: #fff
    }

    .miniKpi .h {
        font-size: 12px;
        color: rgba(232,238,252,.68)
    }

/* Company logo placeholder */
.companyHeader {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 6px;
    padding: 10px 12px;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(255,255,255,.04);
    border-radius: 16px;
}

.companyLeft {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.companyLogo {
    border-radius: 14px;
    display: grid;
    place-items: center;
    border: 1px solid rgb(53 69 64);
    background: white;
    flex: 0 0 auto;
    font-weight: 900;
}

.companyNameWrap {
    min-width: 0;
}

.companyName {
    font-weight: 900;
    font-size: 16px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.companyTag {
    font-size: 12px;
    color: rgba(232,238,252,.72);
    margin-top: 2px;
}




















@media (max-width: 1366px) {

    .stage {
        flex: 1;
        display: grid;
        place-items: center;
        padding: 10px 18px 0;
        min-height: 0;
        height: calc(100% - 362px);
    }

    .slide {
        width: min(1180px, calc(100vw - 36px));
        /* height: min(650px, calc(100vh - (var(--topbarH) + var(--navH) + 30px)));*/
        height: 100%;
        background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
        border: 1px solid var(--stroke);
        border-radius: var(--radius);
        box-shadow: var(--shadow);
        position: relative;
        overflow: hidden;
        display: none;
    }

        .slide.active {
            display: block
        }

    .accent {
        position: absolute;
        inset: 0;
        pointer-events: none;
        background: radial-gradient(700px 350px at 12% 12%, rgba(110,170,242,.22), transparent 60%), radial-gradient(650px 320px at 90% 25%, rgba(124,216,139,.18), transparent 62%), radial-gradient(650px 350px at 55% 105%, rgba(244,116,113,.12), transparent 60%);
        opacity: .95
    }

    .accentBar {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 6px;
        background: linear-gradient(90deg,var(--b),var(--g),var(--r))
    }

    .content {
        position: relative;
        height: 100%;
        padding: 22px 22px 16px;
        display: flex;
        flex-direction: column;
        gap: 18px;
        overflow: auto;
        -webkit-overflow-scrolling: touch;
        align-items: center;
        justify-content: center;
    }

    h1, h2, h3, p, ul {
        margin: 0
    }

    h1 {
        font-size: 22px;
        line-height: 1.15;
        font-weight: 900;
        letter-spacing: -.6px
    }

    h2 {
        font-size: 15px;
        line-height: 1.2;
        font-weight: 900;
        letter-spacing: -.3px
    }

    .subtitle {
        font-size: 18px;
        line-height: 1.7;
        color: rgba(232,238,252,.82);
        max-width: 980px
    }

    .grid {
        display: grid;
        gap: 14px
    }

        .grid.two {
            grid-template-columns: 1.15fr .85fr
        }

            .grid.two.equal {
                grid-template-columns: 1fr 1fr
            }

        .grid.three {
            grid-template-columns: repeat(3,1fr)
        }

        .grid > * {
            min-width: 0;
        }

    .card {
        background: rgba(11,18,32,.55);
        border: 1px solid rgba(255,255,255,.10);
        border-radius: 18px;
        padding: 16px 16px;
        backdrop-filter: blur(10px);
        min-height: 0;
        min-width: 0;
        overflow: hidden;
    }

    .cardTitle {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        font-weight: 850;
        font-size: 16px;
        margin-bottom: 8px;
    }

    .titleLeft {
        display: flex;
        align-items: center;
        gap: 10px
    }

    .icon {
        width: 34px;
        height: 34px;
        border-radius: 12px;
        display: grid;
        place-items: center;
        background: rgba(255,255,255,.06);
        border: 1px solid rgba(255,255,255,.10);
        flex: 0 0 auto;
    }

        .icon svg {
            width: 18px;
            height: 18px;
            opacity: .95
        }

    .muted {
        color: rgba(232,238,252,.72);
        font-size: 14px;
        line-height: 1.75
    }

    .badge {
        align-self: flex-start;
        display: inline-flex;
        align-items: center;
        gap: 10px;
        padding: 10px 14px;
        border-radius: 999px;
        border: 1px solid rgba(255,255,255,.14);
        background: rgba(255,255,255,.05);
        font-size: 13px;
        font-weight: 750
    }

        .badge .price {
            background: rgba(244,116,113,.18);
            border: 1px solid rgba(244,116,113,.28);
            color: #fff;
            padding: 6px 10px;
            border-radius: 999px;
            font-weight: 900
        }

    .kpiRow {
        display: flex;
        flex-wrap: wrap;
        gap: 10px
    }

    .kpi {
        padding: 12px 14px;
        border-radius: 16px;
        border: 1px solid rgba(255,255,255,.12);
        background: rgba(255,255,255,.05);
        min-width: 210px
    }

        .kpi .label {
            font-size: 12px;
            color: rgba(232,238,252,.72)
        }

        .kpi .value {
            font-size: 12px;
            font-weight: 900;
            margin-top: 4px
        }

        .kpi .hint {
            font-size: 12px;
            color: rgba(232,238,252,.68);
            margin-top: 3px
        }

    .nav {
        height: var(--navH);
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 12px;
        padding: 10px 18px 18px;
    }

    .btn {
        border: 1px solid rgba(255,255,255,.14);
        background: rgba(255,255,255,.06);
        color: rgba(232,238,252,.92);
        padding: 10px 12px;
        border-radius: 14px;
        cursor: pointer;
        transition: transform .12s ease, background .12s ease, border-color .12s ease;
        display: inline-flex;
        align-items: center;
        gap: 10px;
        font-weight: 800;
        user-select: none;
        font-family: var(--font);
        white-space: nowrap;
    }

        .btn:hover {
            transform: translateY(-1px);
            background: rgba(255,255,255,.08);
            border-color: rgba(255,255,255,.22)
        }

        .btn[disabled] {
            opacity: .45;
            cursor: not-allowed;
            transform: none
        }

        .btn svg {
            width: 16px;
            height: 16px;
            opacity: .9
        }

    .progress {
        min-width: 180px;
        display: flex;
        align-items: center;
        gap: 10px;
        color: rgba(232,238,252,.80);
        font-size: 12px
    }

    .bar {
        flex: 1;
        height: 8px;
        border-radius: 999px;
        background: rgba(255,255,255,.08);
        border: 1px solid rgba(255,255,255,.10);
        overflow: hidden
    }

        .bar > div {
            height: 100%;
            width: 0%;
            background: linear-gradient(90deg,var(--b),var(--g),var(--r));
            border-radius: 999px;
            transition: width .2s ease
        }

    .chart {
        width: 100%;
        height: 360px;
        border-radius: 16px;
        overflow: hidden;
        border: 1px solid rgba(255,255,255,.10);
        background: rgba(11,18,32,.35);
        min-width: 0;
        max-width: 100%;
        contain: content;
    }

        .chart, .chart > div, .highcharts-container, .highcharts-root {
            width: 100% !important;
            max-width: 100% !important;
        }

    .highcharts-container {
        overflow: hidden !important;
        box-sizing: border-box !important;
    }

    .highcharts-root {
        display: block;
    }

    .callout {
        border-left: 4px solid var(--b);
        padding: 12px 14px;
        background: rgba(110,170,242,.10);
        border-radius: 14px;
        color: rgba(232,238,252,.90);
        font-size: 14px;
        line-height: 1.8
    }

    .quote {
        font-size: 16px;
        color: rgba(232,238,252,.88);
        padding: 12px 14px;
        border-radius: 16px;
        border: 1px dashed rgba(255,255,255,.22);
        background: rgba(255,255,255,.04);
        line-height: 1.9
    }

    .mini {
        font-size: 12px;
        color: rgba(232,238,252,.65);
        line-height: 1.7
    }

    .logoGrid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0,1fr));
        gap: 12px;
    }

    .logoTile {
        border: 1px solid rgba(255,255,255,.12);
        background: rgba(255,255,255,.04);
        border-radius: 16px;
        height: 65px;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        padding: 2px;
    }

        .logoTile .w1 {
            font-weight: 900;
            font-size: 18px;
            letter-spacing: .5px;
            color: #fff
        }

        .logoTile .w2 {
            font-weight: 800;
            font-size: 13px;
            opacity: .95;
            color: #fff
        }

        .logoTile.small .w1 {
            font-size: 16px
        }

        .logoTile.long .w1 {
            font-size: 15px
        }

        .logoTile.long .w2 {
            font-size: 12px
        }

    .miniKpis {
        display: grid;
        grid-template-columns: repeat(2, minmax(0,1fr));
        gap: 12px;
    }

    .miniKpi {
        border: 1px solid rgba(255,255,255,.12);
        background: rgba(255,255,255,.04);
        border-radius: 16px;
        padding: 12px 12px;
        min-height: 84px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 4px;
        min-width: 0;
    }

        .miniKpi .t {
            font-size: 12px;
            color: rgba(232,238,252,.72)
        }

        .miniKpi .v {
            font-size: 18px;
            font-weight: 900;
            color: #fff
        }

        .miniKpi .h {
            font-size: 12px;
            color: rgba(232,238,252,.68)
        }

    /* Company logo placeholder */
    .companyHeader {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 14px;
        margin-top: 6px;
        padding: 10px 12px;
        border: 1px solid rgba(255,255,255,.12);
        background: rgba(255,255,255,.04);
        border-radius: 16px;
    }

    .companyLeft {
        display: flex;
        align-items: center;
        gap: 12px;
        min-width: 0;
    }

    .companyLogo {
        border-radius: 14px;
        display: grid;
        place-items: center;
        border: 1px solid rgb(53 69 64);
        background: white;
        flex: 0 0 auto;
        font-weight: 900;
    }

    .companyNameWrap {
        min-width: 0;
    }

    .companyName {
        font-weight: 900;
        font-size: 16px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .companyTag {
        font-size: 12px;
        color: rgba(232,238,252,.72);
        margin-top: 2px;
    }
}

@media (max-width: 980px) {
    .grid.two, .grid.two.equal {
        grid-template-columns: 1fr
    }

    .slide {
        /*        height: min(760px, calc(100vh - (var(--topbarH) + var(--navH) + 18px)));*/
    }

    h1 {
        font-size: 36px
    }

    .kpi {
        min-width: 180px
    }

    .chart {
        height: 320px
    }
}

@media (max-width: 640px) {
    body {
        overflow: auto
    }

    .topbar {
        padding: 12px 12px;
        display: none;
    }

    .brand {
        min-width: auto;
        display: none;
    }

    .meta {
        min-width: auto
    }

    .pill {
        padding: 8px 10px
    }

    .stage {
        padding: 10px 12px 0;
        display: block;
        min-height: unset;
        padding-bottom: 100px;
    }

    .slide {
        width: calc(100vw - 24px);
        height: auto;
        min-height: calc(100vh - (var(--topbarH) + var(--navH) + 16px));
        margin-top: 0px;
        padding-bottom:200px;
    }

    .content {
        height: auto;
        min-height: calc(100vh - (var(--topbarH) + var(--navH) + 16px));
        padding: 18px 18px 18px;
        overflow: visible;
        text-align: center;
    }

    h1 {
        font-size: 30px
    }

    h2 {
        font-size: 24px
    }

    .subtitle {
        font-size: 15px
    }

    .nav {
        position: fixed;
        bottom: 0;
        background: linear-gradient(180deg, rgba(7,11,20,0), rgba(7,11,20,.75) 30%, rgba(7,11,20,.92));
        backdrop-filter: blur(10px);
        padding: 10px 12px calc(12px + env(safe-area-inset-bottom));
        width: 100%;
    }

    .progress {
        min-width: 140px
    }

    .logoGrid {
        grid-template-columns: 1fr
    }

    .miniKpis {
        grid-template-columns: 1fr
    }

    .logoTile {
        height: 74px
    }

    .miniKpi {
        min-height: 74px
    }
}
