:root {
    font-family: Tahoma, "Segoe UI", sans-serif;
    color: #eef4ff;
    background: #07101f;
}

* { box-sizing: border-box; }

body {
    min-height: 100vh;
    margin: 0;
    background:
        radial-gradient(circle at 15% 0%, rgba(55, 116, 255, .20), transparent 35rem),
        radial-gradient(circle at 100% 100%, rgba(32, 210, 166, .13), transparent 32rem),
        #07101f;
}

.shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
}

.card {
    width: min(720px, 100%);
    padding: clamp(22px, 5vw, 42px);
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 24px;
    background: rgba(13, 25, 46, .86);
    box-shadow: 0 28px 80px rgba(0, 0, 0, .35);
    backdrop-filter: blur(18px);
}

.card-header, .actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.eyebrow {
    margin: 0 0 8px;
    color: #69a0ff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .14em;
}

h1 { margin: 0; font-size: clamp(28px, 6vw, 42px); }

.badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 10px 14px;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 999px;
    color: #b8c4d8;
    background: rgba(255, 255, 255, .04);
    white-space: nowrap;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #8c98aa;
    box-shadow: 0 0 0 5px rgba(140, 152, 170, .12);
}

.badge.online .dot { background: #38e2a2; box-shadow: 0 0 0 5px rgba(56, 226, 162, .13); }
.badge.offline .dot { background: #ff667d; box-shadow: 0 0 0 5px rgba(255, 102, 125, .13); }

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 34px 0;
}

.stats div {
    min-width: 0;
    padding: 16px;
    border-radius: 15px;
    background: rgba(255, 255, 255, .035);
}

.stats span, label {
    display: block;
    margin-bottom: 8px;
    color: #8fa0ba;
    font-size: 13px;
}

.stats strong {
    display: block;
    overflow: hidden;
    font-size: 17px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

textarea, input {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, .11);
    border-radius: 14px;
    outline: none;
    color: #f6f9ff;
    background: #091426;
    transition: border-color .2s, box-shadow .2s;
}

textarea {
    min-height: 140px;
    padding: 16px;
    resize: vertical;
    font: inherit;
    line-height: 1.8;
}

input { padding: 12px 14px; }
textarea:focus, input:focus { border-color: #4d8cff; box-shadow: 0 0 0 4px rgba(77, 140, 255, .12); }

.actions { justify-content: flex-start; margin-top: 14px; }

button {
    min-width: 130px;
    padding: 12px 19px;
    border: 0;
    border-radius: 12px;
    color: white;
    background: linear-gradient(135deg, #3978f6, #5b55e9);
    cursor: pointer;
    font: inherit;
    font-weight: 700;
}

button:hover { filter: brightness(1.08); }
button:disabled { cursor: wait; opacity: .6; }
button.secondary { border: 1px solid rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .055); }

.settings { margin-top: 28px; color: #8fa0ba; }
.settings summary { cursor: pointer; font-size: 13px; }
.settings label { margin-top: 14px; }

.notice { min-height: 24px; margin: 20px 0 0; color: #9fb0c9; font-size: 14px; }
.notice.success { color: #49e4aa; }
.notice.error { color: #ff8395; }

@media (max-width: 580px) {
    .card-header { align-items: flex-start; flex-direction: column; }
    .stats { grid-template-columns: 1fr; }
    .actions { align-items: stretch; flex-direction: column; }
    button { width: 100%; }
}
