:root {
    --staff-accent: #37df91;
    --staff-accent-soft: #7dffd3;
    --staff-panel-rgb: 8, 24, 20;
    --staff-panel-alt-rgb: 12, 33, 27;
    --staff-glow-rgb: 55, 223, 145;
}

body.theme-midnight-purple {
    --staff-accent: #a855f7;
    --staff-accent-soft: #c084fc;
    --staff-panel-rgb: 26, 14, 46;
    --staff-panel-alt-rgb: 36, 21, 64;
    --staff-glow-rgb: 168, 85, 247;
}

body.theme-cursed-eddy {
    --staff-accent: #ffffff;
    --staff-accent-soft: #d4d4d4;
    --staff-panel-rgb: 8, 8, 8;
    --staff-panel-alt-rgb: 15, 15, 15;
    --staff-glow-rgb: 255, 255, 255;
}

body.theme-cyan-exhai {
    --staff-accent: #22d3ee;
    --staff-accent-soft: #3b82f6;
    --staff-panel-rgb: 15, 23, 42;
    --staff-panel-alt-rgb: 30, 41, 59;
    --staff-glow-rgb: 34, 211, 238;
}

body.theme-red-koen {
    --staff-accent: #f43f5e;
    --staff-accent-soft: #fb7185;
    --staff-panel-rgb: 26, 0, 9;
    --staff-panel-alt-rgb: 36, 0, 17;
    --staff-glow-rgb: 244, 63, 94;
}

body.theme-hakimis-cats {
    --staff-accent: #a0a0c8;
    --staff-accent-soft: #c4c4e0;
    --staff-panel-rgb: 28, 28, 34;
    --staff-panel-alt-rgb: 37, 37, 48;
    --staff-glow-rgb: 160, 160, 200;
}

body[class*="staff-"] {
    background-attachment: fixed;
}

body[class*="staff-"] nav,
body.staff-chat header {
    background: linear-gradient(180deg, rgba(var(--staff-panel-rgb), 0.86), rgba(var(--staff-panel-rgb), 0.64)) !important;
    border-bottom-color: rgba(var(--staff-glow-rgb), 0.14) !important;
    backdrop-filter: blur(24px) saturate(135%);
    -webkit-backdrop-filter: blur(24px) saturate(135%);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
}

body[class*="staff-"] .panel,
body[class*="staff-"] .s-card,
body[class*="staff-"] .announcement,
body[class*="staff-"] .client-card,
body[class*="staff-"] .stat-card,
body[class*="staff-"] .dash-stat,
body[class*="staff-"] .client-shell,
body[class*="staff-"] .compose,
body[class*="staff-"] .settings-modal,
body[class*="staff-"] .profile-modal {
    background: linear-gradient(180deg, rgba(var(--staff-panel-rgb), 0.84), rgba(var(--staff-panel-alt-rgb), 0.68)) !important;
    border-color: rgba(var(--staff-glow-rgb), 0.14) !important;
    box-shadow: 0 20px 54px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

body[class*="staff-"] .panel-header,
body[class*="staff-"] .compose-header,
body[class*="staff-"] .client-shell-topbar,
body[class*="staff-"] .ann-header {
    background: linear-gradient(180deg, rgba(var(--staff-panel-alt-rgb), 0.7), rgba(var(--staff-panel-rgb), 0.45)) !important;
}

body[class*="staff-"] .btn,
body[class*="staff-"] .s-btn-primary,
body.staff-chat #chatSendButton {
    box-shadow: 0 16px 38px rgba(var(--staff-glow-rgb), 0.25) !important;
}

body[class*="staff-"] .dash-header,
body.staff-clients .dash-header,
body.staff-announcements .feed-header,
body.staff-settings .settings-top {
    position: relative;
    overflow: hidden;
    padding: 1.6rem 1.8rem !important;
    border-radius: 32px;
    border: 1px solid rgba(var(--staff-glow-rgb), 0.14);
    background:
        radial-gradient(circle at 12% 0%, rgba(var(--staff-glow-rgb), 0.12), transparent 30%),
        linear-gradient(180deg, rgba(var(--staff-panel-alt-rgb), 0.76), rgba(var(--staff-panel-rgb), 0.54));
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.22);
}

body[class*="staff-"] .dash-header::before,
body.staff-clients .dash-header::before,
body.staff-announcements .feed-header::before,
body.staff-settings .settings-top::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(120deg, rgba(255, 255, 255, 0.05), transparent 26%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 55%);
}

body.staff-dashboard .dash-grid,
body.staff-clients .stats-row {
    gap: 1.15rem !important;
}

body.staff-dashboard .dash-stat,
body.staff-clients .stat-card {
    border-radius: 28px !important;
    padding: 1.35rem 1.4rem !important;
}

body.staff-dashboard .dash-stat strong,
body.staff-clients .stat-card strong {
    letter-spacing: -0.04em;
}

body.staff-settings .settings-layout {
    gap: 1.2rem !important;
}

body.staff-settings .settings-sidebar,
body.staff-settings .settings-content {
    position: relative;
}

body.staff-settings .s-user-card,
body.staff-settings .s-nav-item,
body.staff-settings .s-theme-swatch {
    background: rgba(var(--staff-panel-rgb), 0.48) !important;
    border-color: rgba(var(--staff-glow-rgb), 0.1) !important;
}

body.staff-settings .s-nav-item.active,
body.staff-settings .s-theme-swatch.active {
    background: rgba(var(--staff-glow-rgb), 0.1) !important;
}

body.staff-announcements .announcement,
body.staff-clients .client-card {
    border-radius: 28px !important;
}

body.staff-announcements .announcement.pinned {
    box-shadow: 0 0 0 1px rgba(255, 215, 0, 0.2), 0 24px 60px rgba(0, 0, 0, 0.2);
}

body.staff-announcements .ann-body h2,
body.staff-clients .client-card-company,
body.staff-dashboard .panel-header h3,
body.staff-settings .s-section-head h2 {
    letter-spacing: -0.04em;
}

/* Chat page — let Tailwind Discord classes handle all styling */
body.staff-chat .message-card {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

body.has-custom-bg[class*="staff-"] nav,
body.has-custom-bg[class*="staff-"] .panel,
body.has-custom-bg[class*="staff-"] .s-card,
body.has-custom-bg[class*="staff-"] .announcement,
body.has-custom-bg[class*="staff-"] .client-card,
body.has-custom-bg[class*="staff-"] .client-shell,
body.has-custom-bg[class*="staff-"] .compose,
body.has-custom-bg[class*="staff-"] .settings-modal,
body.has-custom-bg[class*="staff-"] .profile-modal {
    background: rgba(0, 0, 0, 0.76) !important;
    backdrop-filter: blur(18px) saturate(120%);
    -webkit-backdrop-filter: blur(18px) saturate(120%);
}


@media (max-width: 820px) {
    body[class*="staff-"] .dash-header,
    body.staff-clients .dash-header,
    body.staff-announcements .feed-header,
    body.staff-settings .settings-top {
        padding: 1.15rem 1.1rem !important;
        border-radius: 24px;
    }
}
