/* Platform statistics (views/public/platform-stats.php), scoped under .pst */

.pst {
    max-width: 1180px;
    margin: 0 auto;
    padding: 34px 20px 56px;
    color: #12293f;
}

.pst-hero {
    margin-bottom: 26px;
    text-align: center;
}

.pst-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #e4ebf3;
    box-shadow: 0 1px 3px rgba(18, 41, 63, .06);
    color: #334155;
    font-size: 13px;
    font-weight: 700;
}

.pst-badge i {
    color: #4285f4;
}

.pst-hero h1 {
    margin: 14px 0 8px;
    font-size: clamp(26px, 3.2vw, 34px);
    font-weight: 800;
    letter-spacing: -.01em;
}

.pst-hero p {
    max-width: 640px;
    margin: 0 auto;
    color: #5b6b7d;
    font-size: 16px;
    line-height: 1.6;
}

.pst-meta {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 18px;
    margin-top: 14px;
    color: #64748b;
    font-size: 13.5px;
}

.pst-meta i {
    margin-right: 4px;
    color: #2d7a8c;
}

.pst-kpis {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.pst-kpi {
    padding: 18px 20px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid #e4ebf3;
    box-shadow: 0 1px 3px rgba(18, 41, 63, .05);
}

.pst-kpi-label {
    display: block;
    color: #64748b;
    font-size: 13px;
    font-weight: 600;
}

.pst-kpi b {
    display: block;
    margin-top: 4px;
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -.02em;
}

.pst-card {
    margin-bottom: 18px;
    padding: 20px 22px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid #e4ebf3;
    box-shadow: 0 1px 3px rgba(18, 41, 63, .05);
}

.pst-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin-bottom: 14px;
}

.pst-card-head h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
}

.pst-card-head h2 i {
    margin-right: 6px;
    color: #2d7a8c;
}

.pst-legend {
    display: flex;
    gap: 14px;
    color: #5b6b7d;
    font-size: 13px;
}

.pst-legend span::before {
    content: "";
    display: inline-block;
    width: 18px;
    height: 3px;
    margin-right: 6px;
    vertical-align: middle;
    border-radius: 2px;
}

.pst-legend .is-visitors::before {
    background: #2d7a8c;
}

.pst-legend .is-sessions::before {
    background: repeating-linear-gradient(90deg, #f97316 0 5px, transparent 5px 8px);
}

.pst-legend--admin {
    flex-wrap: wrap;
    gap: 14px;
    font-size: 12px;
    color: #6b7280;
}

.pst-legend--admin span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.pst-legend--admin span::before {
    display: none;
}

.pst-legend--admin i {
    display: inline-block;
    width: 12px;
    height: 3px;
    border-radius: 2px;
}

.pst-chart {
    position: relative;
    height: 300px;
}

.pst-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 18px;
}

.pst-col {
    display: grid;
    gap: 18px;
    align-content: start;
    min-width: 0;
}

.pst-grid .pst-card {
    margin-bottom: 0;
}

.pst-channels {
    display: grid;
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.pst-ch-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 6px;
    font-size: 14.5px;
}

.pst-ch-name {
    font-weight: 600;
}

.pst-ch-name i {
    width: 18px;
    margin-right: 4px;
    color: #64748b;
    text-align: center;
}

.pst-ch-num {
    font-weight: 700;
    white-space: nowrap;
}

.pst-ch-num small {
    margin-left: 4px;
    color: #64748b;
    font-weight: 600;
}

.pst-bar {
    display: block;
    height: 8px;
    border-radius: 999px;
    background: #eef2f7;
    overflow: hidden;
}

.pst-bar span {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #2d7a8c, #4fb3c8);
}

.pst-note {
    margin: 16px 0 0;
    color: #64748b;
    font-size: 12.5px;
    line-height: 1.5;
}

.pst-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.pst-table th {
    padding: 0 0 8px;
    border-bottom: 1px solid #e4ebf3;
    color: #64748b;
    font-size: 12.5px;
    font-weight: 600;
    text-align: left;
}

.pst-table td {
    padding: 9px 0;
    border-bottom: 1px solid #f1f5f9;
    word-break: break-word;
}

.pst-table tr:last-child td {
    border-bottom: 0;
}

.pst-table .num {
    padding-left: 12px;
    text-align: right;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.pst-table td.num {
    font-weight: 600;
}

.pst-footnote {
    margin: 22px auto 0;
    max-width: 760px;
    color: #64748b;
    font-size: 13px;
    line-height: 1.6;
    text-align: center;
}

.pst-footnote i {
    margin-right: 4px;
    color: #2d7a8c;
}

/* Countries (engaged sessions), a flag + bar per row */
.pst-countries {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.pst-countries li,
.pst-co-head {
    display: grid;
    grid-template-columns: minmax(0, 150px) minmax(0, 1fr) 44px 44px;
    align-items: center;
    gap: 12px;
    font-size: 14.5px;
}

.pst-co-name {
    overflow: hidden;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pst-flag {
    display: inline-block;
    width: 22px;
    margin-right: 6px;
    font-size: 17px;
    line-height: 1;
}

.pst-co-bar {
    display: block;
    height: 8px;
    border-radius: 999px;
    background: #eef2f7;
    overflow: hidden;
}

.pst-co-bar span {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
}

.pst-co-num {
    min-width: 28px;
    font-weight: 700;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.pst-card--sources {
    margin-top: 18px;
}

.pst-co-head {
    gap: 12px;
    margin-bottom: 8px;
    color: #64748b;
    font-size: 11.5px;
    font-weight: 600;
    text-align: right;
}

.pst-co-num--v {
    color: #64748b;
    font-weight: 600;
}

.pst-note--bots {
    padding-top: 14px;
    border-top: 1px solid #eef2f7;
}

.pst-note--bots i {
    margin-right: 4px;
    color: #94a3b8;
}

@media (max-width: 980px) {
    .pst-kpis {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* What "engaged session" means (EN / page language + Georgian) */
.pst-explain {
    display: flex;
    gap: 12px;
    margin-top: 4px;
    padding: 16px 18px;
    border-radius: 14px;
    background: #eef6fa;
    border: 1px solid #d6e9f0;
    color: #1e3a5f;
    font-size: 14px;
    line-height: 1.6;
}

.pst-explain > i {
    margin-top: 3px;
    color: #2d7a8c;
}

.pst-explain p {
    margin: 0;
}

.pst-explain p + p {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #d6e9f0;
}

.pst-empty {
    color: #5b6b7d;
    text-align: center;
}

@media (max-width: 860px) {
    .pst-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 560px) {
    .pst {
        padding: 22px 14px 40px;
    }

    .pst-kpis {
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
    }

    .pst-kpi {
        display: flex;
        align-items: baseline;
        justify-content: space-between;
        padding: 14px 16px;
    }

    .pst-kpi b {
        margin-top: 0;
        font-size: 24px;
    }

    .pst-card {
        padding: 16px;
    }

    .pst-chart {
        height: 240px;
    }

    .pst-countries li,
    .pst-co-head {
        grid-template-columns: minmax(0, 104px) minmax(0, 1fr) 46px 46px;
        gap: 8px;
        font-size: 14px;
    }

    .pst-co-head {
        font-size: 10.5px;
    }
}
