.nsm-uptime {
    --nsm-bg: #07111f;
    --nsm-panel: rgba(255, 255, 255, 0.12);
    --nsm-line: rgba(255, 255, 255, 0.22);
    --nsm-text: #f8fbff;
    --nsm-muted: #c8d4e5;
    --nsm-green: #20d47b;
    --nsm-yellow: #f5bd28;
    --nsm-red: #f05252;
    background:
        radial-gradient(circle at 18% 14%, rgba(32, 212, 123, 0.22), transparent 24%),
        radial-gradient(circle at 86% 12%, rgba(62, 140, 255, 0.18), transparent 26%),
        linear-gradient(135deg, #07111f 0%, #102137 48%, #101725 100%);
    border-radius: 18px;
    color: var(--nsm-text);
    padding: 28px;
    overflow: hidden;
    position: relative;
}

.nsm-glass,
.nsm-server-card,
.nsm-summary-strip > div {
    background: var(--nsm-panel);
    border: 1px solid var(--nsm-line);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(18px);
}

.nsm-uptime-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 22px;
}

.nsm-kicker {
    color: #8ee9ff;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    margin: 0 0 8px;
    text-transform: uppercase;
}

.nsm-hero-copy h2 {
    color: var(--nsm-text);
    font-size: clamp(2rem, 4vw, 4.25rem);
    line-height: 0.95;
    margin: 0 0 12px;
}

.nsm-hero-copy p {
    color: var(--nsm-muted);
    font-size: 1.02rem;
    margin: 0;
    max-width: 760px;
}

.nsm-status-orb {
    align-items: center;
    border-radius: 24px;
    color: #06101d;
    display: flex;
    font-weight: 900;
    height: 112px;
    justify-content: center;
    min-width: 158px;
    text-transform: uppercase;
    transform: rotateX(18deg) rotateZ(-7deg);
    box-shadow: 0 22px 0 rgba(0, 0, 0, 0.22), 0 32px 55px rgba(0, 0, 0, 0.3);
}

.nsm-status-orb-healthy { background: linear-gradient(145deg, #a7ffd2, var(--nsm-green)); }
.nsm-status-orb-warning { background: linear-gradient(145deg, #ffe59a, var(--nsm-yellow)); }
.nsm-status-orb-critical,
.nsm-status-orb-unknown { background: linear-gradient(145deg, #ffb5b5, var(--nsm-red)); color: #ffffff; }

.nsm-summary-strip {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 18px;
}

.nsm-summary-strip > div {
    border-radius: 14px;
    padding: 16px;
}

.nsm-summary-strip span,
.nsm-mini-stats dt,
.nsm-graph-head span,
.nsm-server-card p {
    color: var(--nsm-muted);
}

.nsm-summary-strip strong {
    display: block;
    font-size: 1.35rem;
    margin-top: 4px;
}

.nsm-dashboard-monitor {
    border-radius: 18px;
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    margin-bottom: 18px;
    padding: 14px;
}

.nsm-monitor-pill {
    align-items: center;
    appearance: none;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 16px;
    color: #ffffff;
    cursor: pointer;
    display: grid;
    gap: 6px 12px;
    grid-template-columns: 18px minmax(0, 1fr) auto;
    min-height: 66px;
    padding: 12px 14px;
    text-align: left;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.nsm-monitor-pill:is(button):hover,
.nsm-monitor-pill:is(button):focus {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.34);
    transform: translateY(-1px);
}

.nsm-dashboard-monitor .nsm-monitor-pill:not(button) {
    cursor: default;
}

.nsm-check-timing {
    align-items: center;
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: -4px 0 18px;
    padding: 14px 16px;
}

.nsm-check-timing > div {
    align-items: center;
    display: flex;
    gap: 10px;
    justify-content: space-between;
    min-width: 0;
}

.nsm-check-timing span {
    color: var(--nsm-muted);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.nsm-check-timing strong {
    color: #ffffff;
    font-size: 0.92rem;
    overflow: hidden;
    text-align: right;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nsm-monitor-light,
.nsm-tab-dot {
    border-radius: 999px;
    display: inline-block;
    height: 14px;
    width: 14px;
}

.nsm-monitor-light {
    box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.08), 0 10px 22px rgba(0, 0, 0, 0.28);
}

.nsm-monitor-name {
    font-weight: 900;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nsm-monitor-state {
    border-radius: 999px;
    color: #07111f;
    font-size: 0.72rem;
    font-weight: 900;
    padding: 5px 9px;
    text-transform: uppercase;
}

.nsm-monitor-healthy .nsm-monitor-light,
.nsm-tab-healthy .nsm-tab-dot { background: var(--nsm-green); box-shadow: 0 0 24px rgba(32, 212, 123, 0.9); }
.nsm-monitor-warning .nsm-monitor-light,
.nsm-tab-warning .nsm-tab-dot { background: var(--nsm-yellow); box-shadow: 0 0 24px rgba(245, 189, 40, 0.9); }
.nsm-monitor-critical .nsm-monitor-light,
.nsm-monitor-unknown .nsm-monitor-light,
.nsm-tab-critical .nsm-tab-dot,
.nsm-tab-unknown .nsm-tab-dot { background: var(--nsm-red); box-shadow: 0 0 24px rgba(240, 82, 82, 0.9); }

.nsm-monitor-healthy .nsm-monitor-state { background: linear-gradient(145deg, #b8ffd9, var(--nsm-green)); }
.nsm-monitor-warning .nsm-monitor-state { background: linear-gradient(145deg, #ffe9a7, var(--nsm-yellow)); }
.nsm-monitor-critical .nsm-monitor-state,
.nsm-monitor-unknown .nsm-monitor-state { background: linear-gradient(145deg, #ffb8b8, var(--nsm-red)); color: #ffffff; }

.nsm-graph {
    border-radius: 16px;
    margin-bottom: 18px;
    padding: 18px;
}

.nsm-graph-head {
    align-items: center;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.nsm-graph-head strong {
    display: block;
    font-size: 1.05rem;
}

.nsm-graph-head > span {
    color: #ffffff;
    font-size: 1.45rem;
    font-weight: 900;
}

.nsm-graph-bars {
    align-items: end;
    display: grid;
    gap: 4px;
    grid-template-columns: repeat(48, minmax(4px, 1fr));
    min-height: 98px;
}

.nsm-graph-bar {
    border-radius: 8px 8px 3px 3px;
    display: block;
    min-height: 26px;
    transform: skewX(-8deg);
}

.nsm-bar-healthy { background: linear-gradient(180deg, #9cffcb, var(--nsm-green)); height: 86px; }
.nsm-bar-warning { background: linear-gradient(180deg, #ffe69d, var(--nsm-yellow)); height: 62px; }
.nsm-bar-critical,
.nsm-bar-unknown { background: linear-gradient(180deg, #ffaaa8, var(--nsm-red)); height: 36px; }

.nsm-privacy-note {
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.86rem;
    font-weight: 600;
    margin: -6px 0 18px;
    text-align: center;
}

.nsm-server-tabs {
    margin-top: 18px;
}

.nsm-tab-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 12px;
}

.nsm-tab-button {
    align-items: center;
    appearance: none;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    color: #ffffff;
    cursor: pointer;
    display: inline-flex;
    font-weight: 900;
    gap: 8px;
    min-height: 42px;
    padding: 9px 14px;
}

.nsm-tab-button.is-active {
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.42);
}

.nsm-tab-panel[hidden] {
    display: none;
}

.nsm-server-card {
    border-radius: 18px;
    padding: 20px;
    position: relative;
    transform: perspective(1100px) rotateX(1.5deg);
}

.nsm-server-card::after {
    background: linear-gradient(135deg, transparent, rgba(255, 255, 255, 0.18), transparent);
    content: "";
    inset: 0;
    opacity: 0.7;
    pointer-events: none;
    position: absolute;
}

.nsm-server-top {
    align-items: flex-start;
    display: flex;
    gap: 14px;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}

.nsm-server-top h3 {
    color: var(--nsm-text);
    font-size: 1.25rem;
    line-height: 1.15;
    margin: 0 0 6px;
}

.nsm-server-top p {
    margin: 0;
}

.nsm-3d-button {
    border-radius: 999px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 8px 0 rgba(0, 0, 0, 0.22), 0 16px 26px rgba(0, 0, 0, 0.22);
    color: #07111f;
    display: inline-flex;
    font-size: 0.75rem;
    font-weight: 900;
    min-width: 88px;
    justify-content: center;
    padding: 8px 12px;
    text-transform: uppercase;
}

.nsm-3d-healthy { background: linear-gradient(145deg, #b8ffd9, var(--nsm-green)); }
.nsm-3d-warning { background: linear-gradient(145deg, #ffe9a7, var(--nsm-yellow)); }
.nsm-3d-critical,
.nsm-3d-unknown { background: linear-gradient(145deg, #ffb8b8, var(--nsm-red)); color: #ffffff; }

.nsm-mini-stats {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 18px 0 0;
    position: relative;
    z-index: 1;
}

.nsm-mini-stats div {
    background: rgba(3, 10, 20, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 12px;
}

.nsm-mini-stats dt {
    font-size: 0.76rem;
    margin-bottom: 4px;
}

.nsm-mini-stats dd {
    color: #ffffff;
    font-weight: 800;
    margin: 0;
    overflow-wrap: anywhere;
}

.nsm-card-issues,
.nsm-issues ul {
    margin: 14px 0 0 18px;
    position: relative;
    z-index: 1;
}

.nsm-issues {
    border-radius: 16px;
    margin-top: 18px;
    padding: 16px;
}

.nsm-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 20px;
}

.nsm-button {
    align-items: center;
    appearance: none;
    background: linear-gradient(145deg, #ffffff, #d9e6f7);
    border: 0;
    border-radius: 18px;
    box-shadow: 0 10px 0 rgba(0, 0, 0, 0.24), 0 18px 34px rgba(0, 0, 0, 0.22);
    box-sizing: border-box;
    color: #07111f;
    cursor: pointer;
    display: inline-flex;
    flex: 0 1 220px;
    font-weight: 900;
    justify-content: center;
    line-height: 1.1;
    min-height: 76px;
    min-width: 190px;
    padding: 0 28px;
    text-decoration: none;
    transition: box-shadow 160ms ease, transform 160ms ease, background 160ms ease;
    white-space: nowrap;
}

.nsm-button:hover,
.nsm-button:focus {
    background: linear-gradient(145deg, #ffffff, #cfe0f4);
    color: #07111f;
    transform: translateY(2px);
}

.nsm-button:focus-visible {
    outline: 3px solid rgba(96, 165, 250, 0.6);
    outline-offset: 3px;
}

.nsm-inquiry-form {
    border-radius: 16px;
    display: grid;
    gap: 12px;
    margin-top: 18px;
    padding: 18px;
}

.nsm-inquiry-form[hidden] {
    display: none;
}

.nsm-inquiry-form label {
    color: #ffffff;
    display: grid;
    gap: 6px;
    font-weight: 800;
}

.nsm-inquiry-form input,
.nsm-inquiry-form textarea {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 10px;
    color: #07111f;
    padding: 10px 12px;
    width: 100%;
}

@media (max-width: 760px) {
    .nsm-uptime { padding: 18px; }
    .nsm-uptime-hero,
    .nsm-graph-head { display: grid; }
    .nsm-summary-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .nsm-status-orb { min-width: 0; width: 100%; }
    .nsm-graph-bars { grid-template-columns: repeat(24, minmax(5px, 1fr)); }
    .nsm-graph-bar:nth-child(-n+24) { display: none; }
}

@media (max-width: 520px) {
    .nsm-summary-strip,
    .nsm-mini-stats,
    .nsm-check-timing { grid-template-columns: 1fr; }
    .nsm-check-timing > div { align-items: flex-start; display: grid; }
    .nsm-check-timing strong { text-align: left; white-space: normal; }
    .nsm-monitor-pill { grid-template-columns: 18px minmax(0, 1fr); }
    .nsm-monitor-state { grid-column: 2; justify-self: start; }
    .nsm-server-top { display: grid; }
}
