* {
    box-sizing: border-box;
}
body {
    margin: 0;
    font-family: Inter, Arial, sans-serif;
    background: radial-gradient(circle at top, rgba(255,79,109,0.18), transparent 25%),
                radial-gradient(circle at 20% 10%, rgba(42, 196, 255,0.14), transparent 18%),
                linear-gradient(180deg, #090a0c 0%, #121215 35%, #0a0a0d 100%);
    color: #f3f4f8;
    min-height: 100vh;
}
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at 80% 10%, rgba(0, 144, 255, 0.14), transparent 20%),
                radial-gradient(circle at 15% 80%, rgba(255, 79, 109, 0.12), transparent 18%);
    pointer-events: none;
}
.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 32px;
    background: rgba(12, 14, 18, 0.96);
    border-bottom: 1px solid rgba(255, 79, 109, 0.18);
    backdrop-filter: blur(8px);
}
.topbar::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 79, 109, 0.25), transparent);
}
.topbar .brand {
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fff;
}
.topbar nav {
    display: flex;
    align-items: center;
    gap: 12px;
}
.button {
    display: inline-flex;
    padding: 12px 18px;
    color: #fff;
    background: linear-gradient(135deg, #ff4f6d, #ff9a62);
    border: none;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 16px 40px rgba(255, 79, 109, 0.18);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 48px rgba(255, 79, 109, 0.24);
}
.dashboard-grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 22px;
    padding: 26px;
}
.panel {
    background: rgba(20, 24, 34, 0.95);
    border: 1px solid rgba(255, 79, 109, 0.16);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(12px);
    transition: transform 0.2s ease, border-color 0.2s ease;
}
.panel:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 79, 109, 0.28);
}
.users-panel {
    min-height: 560px;
}
.details-panel {
    min-height: 520px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
}
.details-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    background: radial-gradient(circle at top right, rgba(255, 79, 109, 0.08), transparent 30%);
    pointer-events: none;
}
.list, .log-list {
    display: grid;
    gap: 10px;
    max-height: 560px;
    overflow-y: auto;
    padding-right: 4px;
}
.user-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    background: linear-gradient(180deg, rgba(25, 29, 40, 0.95), rgba(18, 21, 33, 0.9));
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.user-item:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 79, 109, 0.35);
    box-shadow: 0 18px 40px rgba(255, 79, 109, 0.08);
}
.user-item.active {
    border: 1px solid #ff4f6d;
    box-shadow: 0 20px 50px rgba(255, 79, 109, 0.16);
}
.status-pill {
    display: inline-flex;
    padding: 8px 12px;
    border-radius: 999px;
    background: #2a2a2a;
    font-size: 0.9rem;
}
.status-pill.online {
    background: #0f6;
    color: #050;
}
.status-pill.offline {
    background: #7a7a7a;
}
.details-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}
.user-meta {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.66);
    margin-top: 4px;
}
.screen-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.screen-toolbar select,
.screen-toolbar button {
    padding: 12px 14px;
    border: 1px solid #2a2a2a;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(255, 79, 109, 0.14), rgba(42, 196, 255, 0.12));
    color: #f0f0f0;
    border: 1px solid rgba(255, 79, 109, 0.12);
    transition: transform 0.2s ease, background 0.2s ease;
}
.screen-toolbar select,
.screen-toolbar button {
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    background: rgba(14, 18, 29, 0.92);
    color: #f0f0f0;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.screen-toolbar button:hover,
.button:hover {
    background: rgba(255, 79, 109, 0.16);
    border-color: rgba(255, 79, 109, 0.4);
    transform: translateY(-1px);
}
.screen-toolbar button:disabled,
.screen-toolbar select:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}
.screen-preview {
    position: relative;
    background: linear-gradient(180deg, rgba(5, 7, 10, 0.95), rgba(18, 22, 36, 0.98));
    border: 1px solid rgba(255, 79, 109, 0.18);
    border-radius: 22px;
    padding: 16px;
    min-height: 360px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.screen-preview::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top left, rgba(255, 79, 109, 0.16), transparent 25%),
                radial-gradient(circle at bottom right, rgba(42, 196, 255, 0.12), transparent 22%);
    pointer-events: none;
}
.screen-preview.closed::after {
    content: 'MONITOR CLOSED';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.72);
    font-size: 1.15rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    background: rgba(4, 7, 14, 0.85);
    backdrop-filter: blur(4px);
}
.screen-preview img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 16px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}
.screen-preview img.monitor-closed {
    opacity: 0.15;
}
.logs-section {
    background: rgba(12, 14, 18, 0.92);
    border: 1px solid rgba(255, 79, 109, 0.14);
    border-radius: 16px;
    padding: 18px;
    flex: 1;
}
.screen-status {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 14px 0;
}
.screen-status div {
    min-height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
    color: #e7eaf8;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
}
#discordToken {
    grid-column: 1 / -1;
    text-align: center;
    font-family: 'Courier New', monospace;
    font-size: 0.92rem;
    color: #98d6ff;
}
.log-item {
    padding: 14px 16px;
    background: rgba(14, 19, 32, 0.94);
    border-radius: 12px;
    border: 1px solid #262626;
}
.login-panel {
    max-width: 420px;
    margin: 120px auto;
    padding: 32px;
    border-radius: 22px;
    background: #171717;
    border: 1px solid #2a2a2a;
}
.login-panel h1 {
    margin: 0 0 22px;
    font-size: 1.8rem;
}
.login-panel label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.95rem;
}
.login-panel input {
    width: 100%;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid #2a2a2a;
    margin-bottom: 18px;
    background: #121212;
    color: #f9f9f9;
}
.login-panel button {
    width: 100%;
    padding: 14px 16px;
    border-radius: 14px;
    border: none;
    background: #ff4f6d;
    color: white;
    font-weight: 700;
    cursor: pointer;
}
.alert.error {
    margin-bottom: 18px;
    padding: 12px 14px;
    background: #4f1f1f;
    border-radius: 12px;
}
@media (max-width: 1050px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}
