/* ==========================================================================
   Module Staff & VIP (Administrators & VIP Players List)
   Theme: Neo Remastered Dark / Cyberpunk CS2 Aesthetic
   ========================================================================== */

.staff-page-container {
    position: relative;
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 1.5rem 1rem 5rem 1rem;
    box-sizing: border-box;
}

/* --------------------------------------------------------------------------
   Select & Input Resets (Crucial for Neo Theme style.css compatibility)
   -------------------------------------------------------------------------- */
.staff-page-container select.staff-select {
    float: none !important;
    clear: both !important;
    display: block !important;
    width: 100% !important;
    min-width: 170px !important;
    height: 42px !important;
    line-height: 40px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    background-color: var(--transparent-4-w, rgba(255, 255, 255, 0.04)) !important;
    border: 1px solid var(--transparent-10-w, rgba(255, 255, 255, 0.1)) !important;
    border-radius: var(--br-12, 12px) !important;
    color: #fff !important;
    font-size: 0.85rem !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    padding: 0 2.4rem 0 1rem !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 0.85rem center !important;
    background-size: 14px 14px !important;
    transition: all 0.2s ease !important;
}

.staff-page-container select.staff-select:hover,
.staff-page-container select.staff-select:focus {
    border-color: rgba(77, 112, 239, 0.6) !important;
    background-color: var(--transparent-8-w, rgba(255, 255, 255, 0.08)) !important;
    outline: none !important;
    box-shadow: 0 0 14px rgba(77, 112, 239, 0.25) !important;
}

/* --------------------------------------------------------------------------
   Ambient Glowing Backdrops
   -------------------------------------------------------------------------- */
.staff-ambient-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 600px;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.staff-glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.25;
    animation: staffPulseOrb 8s infinite alternate ease-in-out;
}

.staff-glow-orb.orb-1 {
    top: -80px;
    left: 10%;
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, #6366f1, rgba(99, 102, 241, 0));
}

.staff-glow-orb.orb-2 {
    top: 60px;
    right: 8%;
    width: 360px;
    height: 360px;
    background: radial-gradient(circle, #a855f7, rgba(168, 85, 247, 0));
    animation-delay: -4s;
}

@keyframes staffPulseOrb {
    0% { transform: scale(1) translateY(0); opacity: 0.2; }
    100% { transform: scale(1.15) translateY(25px); opacity: 0.35; }
}

/* --------------------------------------------------------------------------
   Hero Header Banner
   -------------------------------------------------------------------------- */
.staff-hero-banner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 2.2rem 2.4rem;
    margin-bottom: 1.8rem;
    background: linear-gradient(135deg, rgba(20, 24, 38, 0.75) 0%, rgba(13, 16, 27, 0.85) 100%);
    border: 1px solid var(--transparent-10-w, rgba(255, 255, 255, 0.08));
    border-radius: var(--br-20, 20px);
    backdrop-filter: blur(16px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.staff-hero-icon-box {
    position: relative;
    width: 72px;
    height: 72px;
    border-radius: var(--br-16, 16px);
    background: linear-gradient(135deg, rgba(77, 112, 239, 0.25), rgba(168, 85, 247, 0.25));
    border: 1px solid rgba(168, 85, 247, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 8px 24px rgba(77, 112, 239, 0.3);
}

.hero-icon-shield {
    width: 36px;
    height: 36px;
    fill: #4D70EF;
    filter: drop-shadow(0 2px 8px rgba(77, 112, 239, 0.6));
}

.hero-icon-gem-wrap {
    position: absolute;
    bottom: -6px;
    right: -6px;
    width: 28px;
    height: 28px;
    background: #111422;
    border: 1px solid #38bdf8;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.hero-icon-gem {
    width: 15px;
    height: 15px;
    fill: #38bdf8;
}

.staff-hero-text {
    flex: 1;
}

.staff-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.25rem 0.65rem;
    background: rgba(77, 112, 239, 0.15);
    border: 1px solid rgba(77, 112, 239, 0.3);
    border-radius: 20px;
    color: #93c5fd;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    margin-bottom: 0.5rem;
}

.staff-hero-badge .badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #60a5fa;
    box-shadow: 0 0 8px #60a5fa;
    animation: staffPulseDot 2s infinite ease-in-out;
}

@keyframes staffPulseDot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.85); }
}

.staff-hero-title {
    margin: 0 0 0.4rem 0;
    font-size: 1.85rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.staff-hero-subtitle {
    margin: 0;
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.5;
}

/* --------------------------------------------------------------------------
   Summary Stats Grid
   -------------------------------------------------------------------------- */
.staff-stats-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
    max-width: 1040px;
    margin: 0 auto 2rem auto;
    justify-content: center;
}

.staff-stat-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.1rem 1.3rem;
    background: rgba(18, 22, 36, 0.65);
    border: 1px solid var(--transparent-8-w, rgba(255, 255, 255, 0.07));
    border-radius: var(--br-16, 16px);
    backdrop-filter: blur(12px);
    transition: all 0.25s ease;
}

.staff-stat-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.staff-stat-card .stat-icon-wrap {
    width: 46px;
    height: 46px;
    border-radius: var(--br-12, 12px);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.staff-stat-card .stat-icon-wrap svg {
    width: 22px;
    height: 22px;
}

.staff-stat-card.stat-admins .stat-icon-wrap {
    background: rgba(77, 112, 239, 0.15);
    color: #60a5fa;
    fill: #60a5fa;
    border: 1px solid rgba(77, 112, 239, 0.3);
}

.staff-stat-card.stat-vips .stat-icon-wrap {
    background: rgba(56, 189, 248, 0.15);
    color: #38bdf8;
    fill: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.3);
}

.staff-stat-card.stat-permanent .stat-icon-wrap {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    fill: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.staff-stat-card.stat-servers .stat-icon-wrap {
    background: rgba(168, 85, 247, 0.15);
    color: #c084fc;
    fill: #c084fc;
    border: 1px solid rgba(168, 85, 247, 0.3);
}

.staff-stat-card .stat-value {
    font-size: 1.45rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
    font-family: var(--font-family-1, sans-serif);
}

.staff-stat-card .stat-label {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.55);
    margin-top: 0.2rem;
    font-weight: 500;
}

/* --------------------------------------------------------------------------
   Primary Switcher: VIP / Administrators Toggle
   -------------------------------------------------------------------------- */
.staff-nav-section {
    position: relative;
    z-index: 1;
    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
    align-items: center !important;
    margin-bottom: 1.5rem !important;
    width: 100% !important;
}

.staff-switch-control {
    display: inline-flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0.35rem !important;
    background: rgba(14, 17, 28, 0.85) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: var(--br-16, 16px) !important;
    backdrop-filter: blur(14px) !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3) !important;
    gap: 0.4rem !important;
    width: auto !important;
    max-width: 100% !important;
}

.staff-switch-btn {
    display: inline-flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: center !important;
    white-space: nowrap !important;
    flex: 0 0 auto !important;
    width: auto !important;
    gap: 0.65rem !important;
    padding: 0.65rem 1.4rem !important;
    background: transparent !important;
    border: 1px solid transparent !important;
    border-radius: var(--br-12, 12px) !important;
    color: rgba(255, 255, 255, 0.7) !important;
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    outline: none !important;
}

.staff-switch-btn .switch-icon svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
    display: block;
    transition: transform 0.2s ease;
}

.staff-switch-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.staff-switch-btn:hover .switch-icon svg {
    transform: scale(1.1);
}

.staff-switch-btn.active {
    background: linear-gradient(135deg, #4D70EF 0%, #3b82f6 100%);
    border-color: rgba(255, 255, 255, 0.2);
    color: #fff;
    box-shadow: 0 4px 18px rgba(77, 112, 239, 0.45);
}

.staff-switch-btn[data-tab="vips"].active {
    background: linear-gradient(135deg, #0284c7 0%, #38bdf8 100%);
    box-shadow: 0 4px 18px rgba(56, 189, 248, 0.45);
}

.staff-switch-btn .switch-counter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.15rem 0.55rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1;
}

.staff-switch-btn.active .switch-counter {
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
}

/* --------------------------------------------------------------------------
   Toolbar Filters
   -------------------------------------------------------------------------- */
.staff-toolbar {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
    margin-bottom: 1.8rem;
    background: rgba(18, 22, 36, 0.6);
    border: 1px solid var(--transparent-8-w, rgba(255, 255, 255, 0.07));
    border-radius: var(--br-16, 16px);
    backdrop-filter: blur(12px);
    flex-wrap: wrap;
}

.staff-search-box {
    position: relative;
    flex: 1;
    min-width: 260px;
    display: flex;
    align-items: center;
}

.staff-search-box .search-icon {
    position: absolute;
    left: 1rem;
    width: 17px;
    height: 17px;
    fill: rgba(255, 255, 255, 0.4);
    pointer-events: none;
}

.staff-search-box input[type="text"],
.staff-search-box input {
    width: 100% !important;
    height: 42px !important;
    padding-left: 48px !important;
    padding-right: 2.4rem !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    background: var(--transparent-4-w, rgba(255, 255, 255, 0.04)) !important;
    border: 1px solid var(--transparent-10-w, rgba(255, 255, 255, 0.1)) !important;
    border-radius: var(--br-12, 12px) !important;
    color: #fff !important;
    font-size: 0.88rem !important;
    outline: none !important;
    transition: all 0.2s ease !important;
    box-sizing: border-box !important;
}

.staff-search-box input:focus {
    border-color: rgba(77, 112, 239, 0.6) !important;
    background: var(--transparent-6-w, rgba(255, 255, 255, 0.06)) !important;
    box-shadow: 0 0 16px rgba(77, 112, 239, 0.25) !important;
}

.staff-search-box input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.search-clear-btn {
    position: absolute;
    right: 0.75rem;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    padding: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.search-clear-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.search-clear-btn svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

.staff-filters-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.staff-filter-dropdown-wrap {
    min-width: 170px;
}

.staff-layout-toggles {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--br-10, 10px);
    padding: 2px;
}

.layout-toggle-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 36px !important;
    height: 36px !important;
    background: transparent !important;
    border: none !important;
    color: rgba(255, 255, 255, 0.5) !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    padding: 0 !important;
}

.layout-toggle-btn svg,
.layout-toggle-btn .layout-svg {
    width: 18px !important;
    height: 18px !important;
    display: block !important;
    stroke: currentColor !important;
    fill: none !important;
    stroke-width: 2 !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
    transition: transform 0.2s ease, stroke 0.2s ease !important;
}

.layout-toggle-btn:hover {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.06) !important;
}

.layout-toggle-btn:hover svg,
.layout-toggle-btn:hover .layout-svg {
    transform: scale(1.08) !important;
}

.layout-toggle-btn.active {
    background: rgba(77, 112, 239, 0.25) !important;
    color: #60a5fa !important;
    box-shadow: 0 0 12px rgba(77, 112, 239, 0.35) !important;
}

.layout-toggle-btn.active svg,
.layout-toggle-btn.active .layout-svg {
    stroke: #60a5fa !important;
}

/* --------------------------------------------------------------------------
   Cards Grid Layout
   -------------------------------------------------------------------------- */
.staff-cards-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}

.staff-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 1.3rem;
    background: rgba(18, 22, 36, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--br-16, 16px);
    backdrop-filter: blur(14px);
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-sizing: border-box;
    overflow: hidden;
}

.staff-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

.card-glow-edge {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--badge-color, #4D70EF), transparent);
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.staff-card:hover .card-glow-edge {
    opacity: 1;
}

/* Card Header: Avatar & Nick */
.staff-card-header {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    margin-bottom: 1rem;
}

.staff-avatar-wrap {
    position: relative;
    width: 52px;
    height: 52px;
    border-radius: var(--br-12, 12px);
    flex-shrink: 0;
}

.staff-avatar {
    width: 100%;
    height: 100%;
    border-radius: var(--br-12, 12px);
    object-fit: cover;
    display: block;
    background: #111422;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.avatar-ring {
    position: absolute;
    inset: -2px;
    border-radius: 14px;
    border: 1px solid var(--badge-color, rgba(77, 112, 239, 0.5));
    opacity: 0.6;
    pointer-events: none;
}

/* VIP corner badge */
.vip-avatar-wrap .avatar-vip-corner-icon {
    position: absolute;
    bottom: -4px;
    right: -4px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #0f172a;
    border: 1px solid #38bdf8;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.5);
}

.avatar-vip-corner-icon svg {
    width: 11px;
    height: 11px;
    fill: #38bdf8;
}

.staff-meta {
    flex: 1;
    min-width: 0;
}

.staff-name {
    display: block;
    color: #fff;
    font-size: 1.05rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.2s ease;
}

.staff-name:hover {
    color: #60a5fa;
}

.staff-steam-row {
    margin-top: 0.25rem;
}

.staff-steam-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.2rem 0.55rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--br-6, 6px);
    font-size: 0.73rem;
    color: rgba(255, 255, 255, 0.6);
    font-family: monospace;
    cursor: pointer;
    transition: all 0.2s ease;
}

.staff-steam-chip:hover {
    background: rgba(77, 112, 239, 0.2);
    border-color: rgba(77, 112, 239, 0.4);
    color: #93c5fd;
}

.staff-steam-chip .copy-icon {
    width: 11px;
    height: 11px;
    fill: currentColor;
    opacity: 0.65;
}

/* Role / Group Badges */
.staff-card-role-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.9rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.staff-role-badge,
.staff-vip-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.35rem 0.8rem;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.staff-role-badge .badge-icon,
.staff-vip-badge .badge-icon {
    width: 13px;
    height: 13px;
    fill: currentColor;
}

/* Role badge colors */
.role-owner .staff-role-badge,
.staff-role-badge.role-owner {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.25), rgba(217, 119, 6, 0.35));
    border-color: rgba(245, 158, 11, 0.6);
    color: #fde68a;
    box-shadow: 0 0 14px rgba(245, 158, 11, 0.3);
}

.role-curator .staff-role-badge,
.staff-role-badge.role-curator {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.25), rgba(124, 58, 237, 0.35));
    border-color: rgba(168, 85, 247, 0.6);
    color: #e9d5ff;
    box-shadow: 0 0 14px rgba(168, 85, 247, 0.3);
}

.role-head-admin .staff-role-badge,
.staff-role-badge.role-head-admin {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.25), rgba(2, 132, 199, 0.35));
    border-color: rgba(6, 182, 212, 0.6);
    color: #a5f3fc;
    box-shadow: 0 0 14px rgba(6, 182, 212, 0.3);
}

.role-admin .staff-role-badge,
.staff-role-badge.role-admin {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.25), rgba(29, 78, 216, 0.35));
    border-color: rgba(59, 130, 246, 0.6);
    color: #bfdbfe;
    box-shadow: 0 0 14px rgba(59, 130, 246, 0.3);
}

.role-moderator .staff-role-badge,
.staff-role-badge.role-moderator {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.25), rgba(4, 120, 87, 0.35));
    border-color: rgba(16, 185, 129, 0.6);
    color: #a7f3d0;
    box-shadow: 0 0 14px rgba(16, 185, 129, 0.3);
}

.role-helper .staff-role-badge,
.staff-role-badge.role-helper {
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.2), rgba(15, 118, 110, 0.3));
    border-color: rgba(20, 184, 166, 0.5);
    color: #99f6e4;
}

/* VIP badge colors */
.vip-diamond .staff-vip-badge,
.staff-vip-badge.vip-diamond {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.25), rgba(2, 132, 199, 0.35));
    border-color: rgba(56, 189, 248, 0.6);
    color: #bae6fd;
    box-shadow: 0 0 14px rgba(56, 189, 248, 0.35);
}

.vip-premium .staff-vip-badge,
.staff-vip-badge.vip-premium {
    background: linear-gradient(135deg, rgba(192, 132, 252, 0.25), rgba(147, 51, 234, 0.35));
    border-color: rgba(192, 132, 252, 0.6);
    color: #f3e8ff;
    box-shadow: 0 0 14px rgba(192, 132, 252, 0.35);
}

.vip-gold .staff-vip-badge,
.staff-vip-badge.vip-gold {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.25), rgba(217, 119, 6, 0.35));
    border-color: rgba(251, 191, 36, 0.6);
    color: #fef08a;
    box-shadow: 0 0 14px rgba(251, 191, 36, 0.35);
}

.vip-custom .staff-vip-badge,
.staff-vip-badge.vip-custom {
    background: linear-gradient(135deg, rgba(244, 63, 94, 0.25), rgba(190, 18, 60, 0.35));
    border-color: rgba(244, 63, 94, 0.6);
    color: #fecdd3;
    box-shadow: 0 0 14px rgba(244, 63, 94, 0.35);
}

.vip-standard .staff-vip-badge,
.staff-vip-badge.vip-standard {
    background: linear-gradient(135deg, rgba(96, 165, 250, 0.2), rgba(37, 99, 235, 0.3));
    border-color: rgba(96, 165, 250, 0.5);
    color: #dbeafe;
    box-shadow: 0 0 12px rgba(96, 165, 250, 0.25);
}

.staff-immunity-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.25rem 0.55rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--br-6, 6px);
    font-size: 0.72rem;
    font-weight: 700;
    color: #f59e0b;
}

.staff-immunity-pill svg {
    width: 10px;
    height: 10px;
    fill: #f59e0b;
}

/* Detail items (servers, expiry, lastvisit) */
.staff-card-detail-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.82rem;
}

.staff-card-detail-item .detail-label {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: rgba(255, 255, 255, 0.5);
    flex-shrink: 0;
}

.staff-card-detail-item .detail-label svg {
    width: 13px;
    height: 13px;
    fill: currentColor;
    opacity: 0.75;
}

.staff-card-detail-item .detail-value {
    color: #e2e8f0;
    font-weight: 500;
    text-align: right;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 160px;
}

.detail-servers {
    color: #93c5fd !important;
}

.badge-status-forever {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.2rem 0.55rem;
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.35);
    border-radius: 6px;
    color: #fde68a;
    font-size: 0.73rem;
    font-weight: 700;
}

.badge-status-forever svg {
    width: 10px;
    height: 10px;
    fill: #f59e0b;
}

.badge-status-temp {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.55rem;
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.25);
    border-radius: 6px;
    color: #93c5fd;
    font-size: 0.73rem;
    font-weight: 600;
}

.text-accent-forever {
    color: #fbbf24;
    font-weight: 700;
}

.detail-lastvisit {
    color: #94a3b8;
    font-size: 0.78rem;
}

/* Card Footer Links */
.staff-card-footer {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.staff-btn-profile {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.55rem 0.9rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--br-10, 10px);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.staff-btn-profile svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

.staff-btn-profile:hover {
    background: #4D70EF;
    border-color: #4D70EF;
    color: #fff;
    box-shadow: 0 4px 14px rgba(77, 112, 239, 0.35);
}

.staff-btn-steam {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--br-10, 10px);
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.staff-btn-steam svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.staff-btn-steam:hover {
    background: #1e293b;
    border-color: rgba(255, 255, 255, 0.25);
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

/* --------------------------------------------------------------------------
   Table View Layout
   -------------------------------------------------------------------------- */
.staff-table-wrap {
    position: relative;
    z-index: 1;
    overflow-x: auto;
    background: rgba(18, 22, 36, 0.6);
    border: 1px solid var(--transparent-8-w, rgba(255, 255, 255, 0.07));
    border-radius: var(--br-16, 16px);
    backdrop-filter: blur(12px);
    padding: 0.5rem;
}

.staff-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.staff-table thead th {
    padding: 0.9rem 1.1rem;
    font-size: 0.78rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    text-align: left;
}

.staff-table tbody tr {
    transition: background-color 0.2s ease;
}

.staff-table tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.035);
}

.staff-table tbody td {
    padding: 0.85rem 1.1rem;
    font-size: 0.88rem;
    color: #e2e8f0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    vertical-align: middle;
}

.staff-table tbody tr:last-child td {
    border-bottom: none;
}

.td-num {
    color: rgba(255, 255, 255, 0.35);
    font-weight: 600;
    font-size: 0.8rem;
}

.table-player-cell {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.table-avatar {
    width: 36px;
    height: 36px;
    border-radius: var(--br-8, 8px);
    object-fit: cover;
    display: block;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.table-name {
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.table-name:hover {
    color: #60a5fa;
}

.staff-role-badge.compact,
.staff-vip-badge.compact {
    padding: 0.2rem 0.6rem;
    font-size: 0.72rem;
}

.badge-status-forever.compact,
.badge-status-temp.compact {
    padding: 0.18rem 0.5rem;
    font-size: 0.7rem;
}

.staff-steam-chip.compact {
    font-size: 0.72rem;
    padding: 0.18rem 0.45rem;
}

/* --------------------------------------------------------------------------
   Empty States
   -------------------------------------------------------------------------- */
.staff-empty-state,
.staff-filter-empty {
    text-align: center;
    padding: 3.5rem 1.5rem;
    background: rgba(18, 22, 36, 0.5);
    border: 1px dashed rgba(255, 255, 255, 0.12);
    border-radius: var(--br-16, 16px);
    margin: 1.5rem 0;
}

.empty-icon-wrap {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.2rem auto;
}

.empty-icon-wrap svg {
    width: 30px;
    height: 30px;
    fill: rgba(255, 255, 255, 0.35);
}

.staff-empty-state h3,
.staff-filter-empty h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.25rem;
    color: #fff;
    font-weight: 700;
}

.staff-filter-empty p {
    margin: 0 0 1.2rem 0;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

.staff-btn-reset-filters {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    background: rgba(77, 112, 239, 0.2);
    border: 1px solid rgba(77, 112, 239, 0.4);
    border-radius: var(--br-10, 10px);
    color: #93c5fd;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.staff-btn-reset-filters svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

.staff-btn-reset-filters:hover {
    background: #4D70EF;
    color: #fff;
    box-shadow: 0 4px 16px rgba(77, 112, 239, 0.4);
}

/* --------------------------------------------------------------------------
   Responsive Breakpoints
   -------------------------------------------------------------------------- */
@media (max-width: 992px) {
    .staff-stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.85rem;
    }
    .staff-hero-banner {
        padding: 1.8rem;
    }
    .staff-hero-title {
        font-size: 1.55rem;
    }
}

@media (max-width: 768px) {
    .staff-stats-grid {
        grid-template-columns: 1fr;
        max-width: 440px;
        margin: 0 auto 1.5rem auto;
    }
    .staff-hero-banner {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        padding: 1.5rem;
    }
    .staff-toolbar {
        flex-direction: column;
        align-items: stretch;
    }
    .staff-search-box {
        min-width: 100%;
    }
    .staff-filters-row {
        width: 100%;
        justify-content: space-between;
    }
    .staff-filter-dropdown-wrap {
        flex: 1;
        min-width: 140px;
    }
    .staff-switch-control {
        display: inline-flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        width: auto !important;
        max-width: 100% !important;
        justify-content: center !important;
    }
    .staff-switch-btn {
        flex: 1 1 auto !important;
        justify-content: center !important;
        padding: 0.65rem 1rem !important;
        font-size: 0.88rem !important;
        white-space: nowrap !important;
    }
}

@media (max-width: 480px) {
    .staff-switch-control {
        display: inline-flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        gap: 0.25rem !important;
        padding: 0.25rem !important;
    }
    .staff-switch-btn {
        padding: 0.55rem 0.7rem !important;
        font-size: 0.8rem !important;
        gap: 0.4rem !important;
        white-space: nowrap !important;
    }
    .staff-switch-btn .switch-icon svg {
        width: 15px !important;
        height: 15px !important;
    }
    .staff-switch-btn .switch-counter {
        padding: 0.1rem 0.4rem !important;
        font-size: 0.7rem !important;
    }
    .staff-stats-grid {
        grid-template-columns: 1fr;
    }
    .staff-cards-grid {
        grid-template-columns: 1fr;
    }
    .staff-hero-title {
        font-size: 1.35rem;
    }
}

/* Ensure Staff Badges & Select Options are strictly uppercase */
.staff-role-badge,
.staff-vip-badge,
.staff-hero-badge {
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
}
#staffAdminRoleFilter option,
#staffVipGroupFilter option {
    text-transform: uppercase !important;
}
