@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@400;500;600;700&family=Orbitron:wght@400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;700&display=swap');

/* ══════════════════════════════════════════════
   SQUADCORE PREMIUM — DARK CYBER AESTHETIC
   Palette: Deep Navy · Electric Cyan · Gold · Neon Green
══════════════════════════════════════════════ */

:root {
    --bg:          #020810;
    --bg2:         #060d1a;
    --panel:       rgba(6, 15, 35, 0.75);
    --panel-hover: rgba(8, 20, 48, 0.92);
    --border:      rgba(0, 212, 255, 0.12);
    --border-gold: rgba(212, 175, 55, 0.25);
    --border-glow: rgba(0, 212, 255, 0.4);

    --text:        #ddeeff;
    --text-dim:    #6a8aaa;
    --text-mono:   #a8c4e0;

    --cyan:        #00d4ff;
    --cyan-dim:    rgba(0, 212, 255, 0.15);
    --gold:        #d4af37;
    --gold-dim:    rgba(212, 175, 55, 0.12);
    --green:       #39ff6e;
    --green-dim:   rgba(57, 255, 110, 0.12);
    --red:         #ff4466;
    --red-dim:     rgba(255, 68, 102, 0.12);
    --blue:        #1a56ff;

    --gradient-brand: linear-gradient(135deg, #00d4ff 0%, #d4af37 100%);
    --gradient-green: linear-gradient(135deg, #39ff6e 0%, #00d4ff 100%);
    --gradient-dark:  linear-gradient(180deg, rgba(6,15,35,0) 0%, rgba(6,15,35,1) 100%);

    --shadow-cyan:  0 0 30px rgba(0, 212, 255, 0.18), 0 0 80px rgba(0, 212, 255, 0.06);
    --shadow-gold:  0 0 30px rgba(212, 175, 55, 0.18);
    --shadow-panel: 0 20px 60px rgba(0, 0, 0, 0.7), 0 2px 0 rgba(0, 212, 255, 0.08) inset;
    --blur: blur(20px) saturate(1.4);
    --transition: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset ─────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
* { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

/* ── Body & Background ──────────────────────── */
body {
    font-family: 'Rajdhani', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
    font-size: 16px;
    font-weight: 500;
}

/* Animated starfield bg */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 50% 0%, rgba(0,100,180,0.12) 0%, transparent 70%),
        radial-gradient(ellipse 50% 40% at 80% 80%, rgba(212,175,55,0.06) 0%, transparent 60%),
        radial-gradient(ellipse 40% 50% at 10% 60%, rgba(0,212,255,0.05) 0%, transparent 60%);
    z-index: -2;
    animation: bgPulse 12s ease-in-out infinite alternate;
}
@keyframes bgPulse {
    0%   { opacity: 0.6; }
    100% { opacity: 1; }
}

/* Grid pattern overlay */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(0,212,255,0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,212,255,0.025) 1px, transparent 1px);
    background-size: 48px 48px;
    z-index: -1;
    mask-image: radial-gradient(ellipse 90% 90% at 50% 50%, black 30%, transparent 100%);
}

a { color: inherit; text-decoration: none; transition: var(--transition); }

/* ══════════════════════════════════════════════
   LAYOUT SHELL
══════════════════════════════════════════════ */
.shell {
    display: grid;
    grid-template-columns: 270px 1fr;
    min-height: 100vh;
}

/* ══════════════════════════════════════════════
   SIDEBAR
══════════════════════════════════════════════ */
.sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 28px 20px;
    background: rgba(2, 8, 16, 0.88);
    border-right: 1px solid var(--border);
    backdrop-filter: var(--blur);
    overflow: hidden;
    z-index: 100;
}

/* Sidebar glow line */
.sidebar::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 2px; height: 100%;
    background: linear-gradient(180deg, transparent 0%, var(--cyan) 40%, var(--gold) 70%, transparent 100%);
    opacity: 0.6;
    animation: lineFlow 4s ease-in-out infinite;
}
@keyframes lineFlow {
    0%, 100% { opacity: 0.4; transform: scaleY(0.8); }
    50%       { opacity: 0.8; transform: scaleY(1); }
}

/* Brand */
.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 36px;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid var(--border-gold);
    background: var(--gold-dim);
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}
.brand::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 60%, rgba(212,175,55,0.08) 100%);
}
.brand:hover { border-color: var(--gold); box-shadow: var(--shadow-gold); }

.brand-img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    filter: drop-shadow(0 0 12px rgba(0,212,255,0.5));
    animation: logoPulse 3s ease-in-out infinite;
}
@keyframes logoPulse {
    0%, 100% { filter: drop-shadow(0 0 10px rgba(0,212,255,0.4)); }
    50%       { filter: drop-shadow(0 0 20px rgba(0,212,255,0.8)) drop-shadow(0 0 40px rgba(212,175,55,0.3)); }
}

.brand-title {
    font-family: 'Orbitron', sans-serif;
    font-weight: 800;
    font-size: 18px;
    letter-spacing: 1px;
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.brand-subtitle {
    display: block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-top: 2px;
}

/* Nav */
.nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 12px;
    color: var(--text-dim);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.3px;
    border: 1px solid transparent;
    position: relative;
    transition: var(--transition);
    overflow: hidden;
}
.nav a .nav-icon {
    font-size: 18px;
    width: 22px;
    text-align: center;
    flex-shrink: 0;
    transition: var(--transition);
}
.nav a::before {
    content: "";
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 0;
    background: var(--gradient-brand);
    opacity: 0;
    border-radius: 2px;
    transition: var(--transition);
}
.nav a:hover {
    color: white;
    background: rgba(0,212,255,0.06);
    border-color: var(--border);
    transform: translateX(4px);
}
.nav a:hover .nav-icon { transform: scale(1.2); }
.nav a:hover::before { width: 3px; opacity: 1; }

.nav a.active {
    color: white;
    background: rgba(0,212,255,0.1);
    border-color: var(--border-glow);
    box-shadow: 0 0 20px rgba(0,212,255,0.08);
}
.nav a.active::before { width: 3px; opacity: 1; }
.nav a.active .nav-icon { color: var(--cyan); }

/* Nav divider */
.nav-divider {
    height: 1px;
    background: var(--border);
    margin: 8px 0;
}

/* Sidebar footer / user */
.sidebar-footer {
    padding-top: 20px;
    border-top: 1px solid var(--border);
    margin-top: auto;
}

.user-box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 14px;
    background: var(--panel);
    border: 1px solid var(--border);
    transition: var(--transition);
}
.user-box:hover { border-color: var(--border-glow); }

.user-avatar {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--gradient-brand);
    display: flex; align-items: center; justify-content: center;
    font-family: 'Orbitron', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: var(--bg);
    flex-shrink: 0;
}
.user-name {
    font-weight: 700;
    font-size: 14px;
    color: var(--text);
}
.logout-link {
    font-size: 11px;
    color: var(--text-dim);
    letter-spacing: 0.5px;
    transition: var(--transition);
}
.logout-link:hover { color: var(--red); }

/* ══════════════════════════════════════════════
   MAIN CONTENT
══════════════════════════════════════════════ */
.content {
    padding: 40px 44px;
    min-height: 100vh;
    animation: fadeSlideIn 0.5s ease both;
}
@keyframes fadeSlideIn {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Page Header */
.page-header {
    margin-bottom: 36px;
    position: relative;
}
.page-header h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -0.5px;
    line-height: 1.1;
    background: linear-gradient(135deg, #ffffff 0%, var(--cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.page-header p {
    color: var(--text-dim);
    font-size: 15px;
    margin-top: 8px;
    font-weight: 500;
}

.header-with-icon {
    display: flex;
    align-items: center;
    gap: 18px;
}
.header-img {
    width: 48px; height: 48px;
    object-fit: contain;
    filter: drop-shadow(0 0 12px rgba(145,70,255,0.5));
    animation: logoPulse 3s ease-in-out infinite;
}

/* ══════════════════════════════════════════════
   STAT CARDS
══════════════════════════════════════════════ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 28px;
}

.stat-card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 22px;
    backdrop-filter: var(--blur);
    box-shadow: var(--shadow-panel);
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 16px;
    animation: cardIn 0.5s ease both;
}
.stat-card:nth-child(1) { animation-delay: 0.05s; }
.stat-card:nth-child(2) { animation-delay: 0.10s; }
.stat-card:nth-child(3) { animation-delay: 0.15s; }
.stat-card:nth-child(4) { animation-delay: 0.20s; }
@keyframes cardIn {
    from { opacity: 0; transform: translateY(20px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.stat-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: var(--gradient-brand);
    opacity: 0;
    transition: var(--transition);
}
.stat-card:hover {
    border-color: var(--border-glow);
    transform: translateY(-4px);
    box-shadow: var(--shadow-panel), var(--shadow-cyan);
    background: var(--panel-hover);
}
.stat-card:hover::before { opacity: 1; }

.stat-icon {
    width: 48px; height: 48px;
    border-radius: 14px;
    background: var(--cyan-dim);
    border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
    transition: var(--transition);
}
.stat-card:hover .stat-icon { transform: scale(1.1) rotate(-5deg); }

.stat-data { flex: 1; }
.stat-data span {
    display: block;
    color: var(--text-dim);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
}
.stat-data strong {
    display: block;
    font-family: 'Orbitron', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: white;
}

.text-green { color: var(--green) !important; }
.text-red   { color: var(--red)   !important; }
.text-gold  { color: var(--gold)  !important; }
.text-cyan  { color: var(--cyan)  !important; }

/* ══════════════════════════════════════════════
   CARDS
══════════════════════════════════════════════ */
.card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 28px;
    backdrop-filter: var(--blur);
    box-shadow: var(--shadow-panel);
    transition: var(--transition);
    animation: cardIn 0.5s ease both;
    animation-delay: 0.25s;
    position: relative;
    overflow: hidden;
}
.card::after {
    content: "";
    position: absolute;
    bottom: -40px; right: -40px;
    width: 140px; height: 140px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0,212,255,0.04) 0%, transparent 70%);
    pointer-events: none;
}
.card:hover { border-color: rgba(0,212,255,0.2); }

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
}
.card-header h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: white;
    display: flex;
    align-items: center;
    gap: 10px;
}
.card-header h2::before {
    content: "";
    width: 4px; height: 18px;
    border-radius: 2px;
    background: var(--gradient-brand);
    flex-shrink: 0;
}

.card h2 { /* legacy support */
    font-family: 'Orbitron', sans-serif;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
}
.card h2::before {
    content: "";
    width: 4px; height: 18px;
    border-radius: 2px;
    background: var(--gradient-brand);
    flex-shrink: 0;
}

.card h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--cyan);
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Dashboard layout */
.dashboard-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* ══════════════════════════════════════════════
   STATUS LIST
══════════════════════════════════════════════ */
.status-list { display: flex; flex-direction: column; gap: 0; }

.status-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    transition: var(--transition);
}
.status-item:last-child { border-bottom: none; padding-bottom: 0; }
.status-item:hover { padding-left: 6px; }

.status-item span {
    color: var(--text-dim);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.status-item b {
    font-family: 'JetBrains Mono', monospace;
    color: var(--cyan);
    font-size: 13px;
    background: var(--cyan-dim);
    border: 1px solid rgba(0,212,255,0.2);
    padding: 4px 12px;
    border-radius: 8px;
}

/* ══════════════════════════════════════════════
   MODULE PILLS
══════════════════════════════════════════════ */
.module-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.module-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 14px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
    font-family: 'Rajdhani', sans-serif;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: var(--transition);
    cursor: default;
    border: 1px solid;
}
.module-pill.on {
    background: var(--green-dim);
    border-color: rgba(57,255,110,0.25);
    color: var(--green);
}
.module-pill.off {
    background: rgba(255,255,255,0.03);
    border-color: rgba(255,255,255,0.07);
    color: var(--text-dim);
}
.module-pill .dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: currentColor;
    animation: dotBlink 2s ease-in-out infinite;
}
.module-pill.off .dot { animation: none; }
@keyframes dotBlink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.3; }
}
.module-pill:hover { transform: translateY(-2px) scale(1.04); }

/* ══════════════════════════════════════════════
   FORMS
══════════════════════════════════════════════ */
.form-card,
.form-container { max-width: 760px; }

.form-container { display: flex; flex-direction: column; gap: 20px; }

label:not(.switch-row) {
    display: block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-dim);
    margin-bottom: 8px;
}

input[type="text"],
input[type="number"],
input[type="password"],
select {
    width: 100%;
    padding: 14px 18px;
    border-radius: 13px;
    border: 1px solid var(--border);
    background: rgba(2, 8, 20, 0.8);
    color: var(--text);
    font-family: 'Rajdhani', sans-serif;
    font-size: 15px;
    font-weight: 600;
    outline: none;
    margin-bottom: 18px;
    transition: var(--transition);
    appearance: none;
    -webkit-appearance: none;
}
input:focus,
select:focus {
    border-color: var(--cyan);
    box-shadow: 0 0 0 3px rgba(0,212,255,0.12), 0 0 20px rgba(0,212,255,0.08);
    background: rgba(0,20,40,0.9);
}
input::placeholder { color: rgba(106,138,170,0.5); }

select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2300d4ff' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
    cursor: pointer;
}
select option { background: #060d1a; color: white; }

.input-group { margin-bottom: 4px; }
.input-wrapper { position: relative; }
.input-wrapper input { padding-left: 46px; }
.input-icon {
    position: absolute;
    left: 14px; top: 50%;
    transform: translateY(-50%);
    width: 20px; height: 20px;
    object-fit: contain;
    opacity: 0.7;
    pointer-events: none;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* ══════════════════════════════════════════════
   TOGGLE SWITCHES
══════════════════════════════════════════════ */
.switch-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0,212,255,0.03);
    border: 1px solid var(--border);
    padding: 16px 20px;
    border-radius: 14px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
}
.switch-row:hover {
    border-color: rgba(0,212,255,0.3);
    background: rgba(0,212,255,0.06);
}

.switch-row input[type="checkbox"] {
    width: 44px;
    height: 24px;
    appearance: none;
    -webkit-appearance: none;
    background: rgba(255,255,255,0.08);
    border: 1px solid var(--border);
    border-radius: 100px;
    margin: 0;
    padding: 0;
    cursor: pointer;
    position: relative;
    transition: var(--transition);
    flex-shrink: 0;
}
.switch-row input[type="checkbox"]::after {
    content: "";
    position: absolute;
    top: 3px; left: 3px;
    width: 16px; height: 16px;
    border-radius: 50%;
    background: var(--text-dim);
    transition: var(--transition);
}
.switch-row input[type="checkbox"]:checked {
    background: linear-gradient(90deg, var(--cyan), var(--green));
    border-color: var(--cyan);
    box-shadow: 0 0 12px rgba(0,212,255,0.3);
}
.switch-row input[type="checkbox"]:checked::after {
    transform: translateX(20px);
    background: white;
}

/* ══════════════════════════════════════════════
   BUTTONS
══════════════════════════════════════════════ */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    border-radius: 13px;
    position: relative;
    overflow: hidden;
}
.button::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.08) 0%, transparent 50%);
    pointer-events: none;
}

.button.primary {
    background: linear-gradient(135deg, #0080cc 0%, #00d4ff 50%, #d4af37 100%);
    background-size: 200% auto;
    color: var(--bg);
    padding: 15px 36px;
    box-shadow: 0 8px 24px rgba(0,212,255,0.25), 0 2px 0 rgba(255,255,255,0.15) inset;
    margin-top: 8px;
}
.button.primary:hover {
    background-position: right center;
    transform: translateY(-2px);
    box-shadow: 0 14px 36px rgba(0,212,255,0.35), 0 2px 0 rgba(255,255,255,0.15) inset;
}
.button.primary:active { transform: translateY(0); }

.floating-save {
    position: sticky;
    bottom: 20px;
    z-index: 10;
    margin-top: 4px;
}

/* ══════════════════════════════════════════════
   NOTICE / ALERT
══════════════════════════════════════════════ */
.notice {
    background: var(--green-dim);
    border: 1px solid rgba(57,255,110,0.3);
    color: var(--green);
    padding: 14px 20px;
    border-radius: 13px;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideDown 0.4s ease both;
}
.notice::before { content: "✓"; font-size: 16px; }
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ══════════════════════════════════════════════
   SERVER GRID
══════════════════════════════════════════════ */
.grid-servers {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.server-card-link { display: block; }
.server-item {
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    padding: 20px 24px !important;
    transition: var(--transition) !important;
}
.server-item:hover {
    border-color: var(--border-glow) !important;
    transform: translateY(-4px);
    box-shadow: var(--shadow-panel), var(--shadow-cyan) !important;
}

.server-icon-placeholder {
    width: 48px; height: 48px;
    border-radius: 14px;
    background: var(--gradient-brand);
    display: flex; align-items: center; justify-content: center;
    font-family: 'Orbitron', sans-serif;
    font-size: 20px;
    font-weight: 800;
    color: var(--bg);
    flex-shrink: 0;
}
.server-details { flex: 1; }
.server-details h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 5px;
    color: white;
}
.badge {
    font-size: 11px;
    font-family: 'JetBrains Mono', monospace;
    color: var(--text-dim);
    background: rgba(255,255,255,0.04);
    padding: 3px 8px;
    border-radius: 6px;
    border: 1px solid var(--border);
}
.arrow {
    color: var(--cyan);
    font-size: 20px;
    opacity: 0;
    transform: translateX(-8px);
    transition: var(--transition);
}
.server-item:hover .arrow { opacity: 1; transform: translateX(0); }

/* ══════════════════════════════════════════════
   LOGIN PAGE
══════════════════════════════════════════════ */
.login-body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: var(--bg);
}

.login-card {
    text-align: center;
    padding: 60px 56px;
    background: var(--panel);
    border: 1px solid var(--border-gold);
    border-radius: 28px;
    backdrop-filter: var(--blur);
    box-shadow: var(--shadow-panel), var(--shadow-gold);
    max-width: 420px;
    width: 90%;
    position: relative;
    overflow: hidden;
    animation: loginIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.login-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: var(--gradient-brand);
}
@keyframes loginIn {
    from { opacity: 0; transform: translateY(30px) scale(0.95); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.login-logo {
    width: 90px; height: 90px;
    object-fit: contain;
    margin-bottom: 24px;
    filter: drop-shadow(0 0 24px rgba(0,212,255,0.5));
    animation: logoPulse 3s ease-in-out infinite;
}

.login-card h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 26px;
    font-weight: 900;
    letter-spacing: 1px;
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
}
.login-card p {
    color: var(--text-dim);
    font-size: 15px;
    margin-bottom: 36px;
    line-height: 1.5;
}
.login-card .button.primary {
    width: 100%;
    padding: 17px 32px;
    font-size: 14px;
}

/* Discord brand button */
.btn-discord {
    background: linear-gradient(135deg, #5865F2, #7289da) !important;
    box-shadow: 0 8px 24px rgba(88,101,242,0.35) !important;
}
.btn-discord:hover {
    box-shadow: 0 14px 36px rgba(88,101,242,0.5) !important;
}

/* ══════════════════════════════════════════════
   SCROLLBAR
══════════════════════════════════════════════ */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--cyan), var(--gold));
    border-radius: 6px;
}
::-webkit-scrollbar-thumb:hover { opacity: 0.8; }

/* ══════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════ */
@media (max-width: 1200px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .dashboard-main { grid-template-columns: 1fr; }
}

@media (max-width: 1000px) {
    .shell { grid-template-columns: 1fr; }
    .sidebar { display: none; }
    .content { padding: 24px 20px; }
}

@media (max-width: 700px) {
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .page-header h1 { font-size: 24px; }
    .grid-2 { grid-template-columns: 1fr; }
    .content { padding: 20px 16px; }
}

@media (max-width: 480px) {
    .stats-grid { grid-template-columns: 1fr; }
    .login-card { padding: 40px 28px; }
}