.ns-platform {
    --ns-bg: #071827;
    --ns-text: #0f172a;
    --ns-muted: #546579;
    --ns-border: #dce7f2;
    --ns-cyan: #00c7ee;
    --ns-cyan-strong: #0096d7;
    --ns-surface: #ffffff;
    --ns-surface-soft: #f4f8fc;
    color: var(--ns-text);
    margin: 28px 0;
}

.ns-platform * {
    box-sizing: border-box;
}

.ns-shell {
    background: linear-gradient(180deg, #f7fbff 0%, #ffffff 25%);
    border: 1px solid #e2ecf5;
    border-radius: 28px;
    box-shadow: 0 24px 60px rgba(7, 24, 39, 0.08);
    overflow: hidden;
}

.ns-hero {
    align-items: end;
    background: radial-gradient(circle at 10% 20%, rgba(20, 210, 255, 0.18), transparent 24%), linear-gradient(135deg, #061a33 0%, #0a2441 52%, #03111e 100%);
    color: #fff;
    display: grid;
    gap: 20px;
    grid-template-columns: minmax(0, 1.5fr) minmax(220px, 0.8fr);
    padding: 34px;
    position: relative;
}

.ns-eyebrow {
    background: rgba(64, 209, 255, 0.12);
    border: 1px solid rgba(115, 235, 255, 0.28);
    border-radius: 999px;
    color: #93edff;
    display: inline-flex;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    margin-bottom: 14px;
    padding: 7px 12px;
    text-transform: uppercase;
}

.ns-hero h2 {
    color: #fff;
    font-size: clamp(28px, 3vw, 38px);
    line-height: 1.15;
    margin: 0 0 12px;
}

.ns-hero p {
    color: #d7f6ff;
    font-size: 15px;
    line-height: 1.8;
    margin: 0;
    max-width: 720px;
}

.ns-hero__stats {
    display: grid;
    gap: 12px;
}

.ns-mini-stat {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(143, 233, 255, 0.18);
    border-radius: 18px;
    padding: 16px 18px;
}

.ns-mini-stat strong {
    color: #fff;
    display: block;
    font-size: 24px;
    margin-bottom: 4px;
}

.ns-mini-stat span {
    color: #d5f5ff;
    font-size: 13px;
}

.ns-tabs-nav {
    background: #f7fbff;
    border-bottom: 1px solid var(--ns-border);
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 18px 24px 0;
    scrollbar-width: thin;
}

.ns-tab-btn {
    align-items: center;
    background: #fff;
    border: 1px solid #d9e8f4;
    border-bottom: 0;
    border-radius: 18px 18px 0 0;
    color: #4a6278;
    cursor: pointer;
    display: inline-flex;
    gap: 12px;
    justify-content: space-between;
    margin-bottom: -1px;
    min-width: 170px;
    padding: 14px 18px;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.ns-tab-btn:hover,
.ns-tab-btn:focus {
    border-color: #b9d8ee;
    color: #0d2136;
    outline: none;
    transform: translateY(-1px);
}

.ns-tab-btn.active {
    background: linear-gradient(180deg, #ffffff 0%, #f8fdff 100%);
    border-color: #a8dbef;
    box-shadow: 0 -8px 18px rgba(0, 151, 215, 0.06);
    color: #0b2237;
}

.ns-tab-btn__label {
    font-size: 14px;
    font-weight: 700;
}

.ns-tab-btn__count {
    background: #edf8ff;
    border-radius: 999px;
    color: #0c5d87;
    font-size: 12px;
    font-weight: 700;
    min-width: 30px;
    padding: 5px 9px;
}

.ns-tabs-content {
    padding: 24px;
}

.ns-tab-pane {
    display: none;
}

.ns-tab-pane.active {
    display: block;
}

.ns-provider-head {
    align-items: center;
    display: flex;
    gap: 16px;
    justify-content: space-between;
    margin-bottom: 22px;
}

.ns-provider-kicker {
    color: #0a6f99;
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.ns-provider-head h3 {
    color: #0b2137;
    font-size: 26px;
    margin: 0;
}

.ns-provider-pill {
    background: #edf8ff;
    border: 1px solid #cfe8f7;
    border-radius: 999px;
    color: #0b6891;
    font-size: 13px;
    font-weight: 700;
    padding: 9px 14px;
}

.ns-grid {
    display: grid;
    gap: 22px;
    grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
}

.ns-card {
    background: var(--ns-surface);
    border: 1px solid var(--ns-border);
    border-radius: 24px;
    box-shadow: 0 16px 40px rgba(10, 34, 55, 0.06);
    overflow: hidden;
}

.ns-card-header {
    align-items: flex-start;
    background: linear-gradient(180deg, #f9fcff 0%, #f3f8fd 100%);
    border-bottom: 1px solid var(--ns-border);
    display: flex;
    gap: 16px;
    padding: 22px;
}

.ns-card-img {
    align-items: center;
    background: #fff;
    border: 1px solid #d9e9f5;
    border-radius: 18px;
    display: flex;
    flex-shrink: 0;
    height: 72px;
    justify-content: center;
    overflow: hidden;
    width: 72px;
}

.ns-card-img img {
    height: 100%;
    object-fit: contain;
    width: 100%;
}

.ns-card-img--placeholder span {
    color: #0786c0;
    font-size: 26px;
    font-weight: 800;
}

.ns-card-header__content {
    min-width: 0;
    width: 100%;
}

.ns-card-header__top {
    align-items: center;
    display: flex;
    gap: 10px;
    justify-content: space-between;
    margin-bottom: 8px;
}

.ns-title {
    color: #0d2338;
    font-size: 21px;
    line-height: 1.25;
    margin: 0;
}

.ns-chip {
    background: #e8faff;
    border-radius: 999px;
    color: #0879a7;
    flex-shrink: 0;
    font-size: 12px;
    font-weight: 700;
    padding: 7px 10px;
}

.ns-desc {
    color: var(--ns-muted);
    font-size: 14px;
    line-height: 1.7;
}

.ns-card-body {
    padding: 20px 22px 22px;
}

.ns-table-wrap {
    overflow-x: auto;
}

.ns-controls-table {
    border-collapse: separate;
    border-spacing: 0;
    font-size: 14px;
    width: 100%;
}

.ns-controls-table th {
    background: #eff6fb;
    border-bottom: 1px solid #dbe8f1;
    color: #4b6275;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
    padding: 13px 14px;
    text-align: left;
}

.ns-controls-table th:first-child {
    border-top-left-radius: 14px;
}

.ns-controls-table th:last-child {
    border-top-right-radius: 14px;
}

.ns-controls-table td {
    border-bottom: 1px solid #eaf0f5;
    color: #1f3347;
    padding: 14px;
    vertical-align: top;
}

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

.ns-sev {
    border-radius: 999px;
    display: inline-flex;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.04em;
    padding: 6px 10px;
    text-transform: uppercase;
}

.ns-sev-critico {
    background: #ffe5e5;
    color: #9d1c1c;
}

.ns-sev-alto {
    background: #ffecd9;
    color: #9b4a05;
}

.ns-sev-medio {
    background: #fff4c7;
    color: #8d6704;
}

.ns-sev-bajo {
    background: #dff8e5;
    color: #19663c;
}

.ns-cmd {
    background: #081a2c;
    border-radius: 14px;
    color: #71efff;
    font-family: Consolas, Monaco, monospace;
    font-size: 12px;
    line-height: 1.6;
    margin: 0;
    max-width: 100%;
    overflow-x: auto;
    padding: 12px 14px;
    white-space: pre-wrap;
}

.ns-cmd-empty,
.ns-empty-message {
    color: #5b7185;
    font-size: 13px;
}

.ns-empty-state {
    background: #fff;
    border: 1px dashed #c3d8e8;
    border-radius: 22px;
    color: #4c6277;
    padding: 28px;
}

.ns-empty-state h4 {
    color: #0d2338;
    margin-top: 0;
}

@media (max-width: 900px) {
    .ns-hero {
        grid-template-columns: 1fr;
        padding: 24px;
    }

    .ns-tabs-content,
    .ns-tabs-nav {
        padding-left: 16px;
        padding-right: 16px;
    }

    .ns-provider-head {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 640px) {
    .ns-card-header {
        flex-direction: column;
    }

    .ns-card-header__top {
        align-items: flex-start;
        flex-direction: column;
    }
}
