/* ============================================================================
   Platform admin mode — distinct visual treatment from tenant dashboards so
   it's instantly clear the viewer is above the tenant layer.
   ============================================================================ */

/* Platform sidebar flag */
body.mode-platform .app-sidebar {
    background: linear-gradient(180deg, rgba(255,107,0,0.04), var(--bg-alt) 120px);
}
body.mode-platform .sidebar-head {
    border-bottom-color: rgba(255,107,0,0.2);
}
.sidebar-logomark-platform {
    background: linear-gradient(135deg, var(--orange), #ff8533);
}
.sidebar-platform-badge {
    margin: 8px 12px 4px;
    padding: 6px 10px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: var(--orange);
    background: rgba(255,107,0,0.08);
    border: 1px solid rgba(255,107,0,0.25);
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.platform-dot {
    width: 6px; height: 6px;
    background: var(--orange);
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(255,107,0,0.25);
}

/* "Coming soon" sidebar items are visibly dimmed */
.sidebar-link.is-soon { opacity: 0.55; }
.sidebar-link.is-soon:hover { opacity: 0.75; }

/* Platform-distinct user avatar accent */
.user-avatar-platform {
    background: linear-gradient(135deg, var(--orange), #ff8533);
}

/* KPI emphasis variant — used for MRR */
.kpi.kpi-emph {
    background: linear-gradient(135deg, rgba(255,107,0,0.12), rgba(255,107,0,0.02));
    border-color: rgba(255,107,0,0.35);
}
.kpi.kpi-emph .kpi-value {
    color: var(--orange);
    font-size: 26px;
}
.kpi-sub {
    font-size: 11px;
    margin-top: 2px;
    color: var(--muted);
}

/* Usage rows on platform dashboard */
.platform-usage-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    gap: 10px;
}
.platform-usage-row:last-child { border-bottom: 0; }
.platform-usage-row .kv-label { color: var(--text-dim); font-size: 14px; text-transform: none; letter-spacing: normal; font-weight: 500; }
.platform-usage-row .kv-value { font-size: 18px; font-weight: 700; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }

/* Customer health dot */
.health-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 6px;
    vertical-align: middle;
}
.health-green  { background: var(--green);  box-shadow: 0 0 0 3px rgba(22,163,74,0.18); }
.health-yellow { background: var(--amber);  box-shadow: 0 0 0 3px rgba(245,158,11,0.18); }
.health-red    { background: var(--red);    box-shadow: 0 0 0 3px rgba(239,68,68,0.18); }
.health-gray   { background: var(--muted);  box-shadow: 0 0 0 3px rgba(136,136,136,0.14); }
