/* ════════════════════════════════════════════
   LFF Guild Dashboard – Main Stylesheet
   ════════════════════════════════════════════ */

/* ── Variables ── */
:root {
    color-scheme: dark;
    --bg:          #0A0A0A;
    --card:        #111111;
    --card-hover:  #161616;
    --border:      #1E1E1E;
    --border-soft: #2A2A2A;
    --text:        #FFFFFF;
    --text-muted:  #666666;
    --text-dim:    #444444;
    --red:         #8B0000;
    --red-hover:   #A50000;
    --red-glow:    rgba(139,0,0,0.35);
    --green:       #2EB67D;
    --orange:      #ECB22E;
    --blue:        #36C5F0;
    --sidebar-w:   240px;
    --radius:      6px;
    --transition:  0.2s ease;
    --font:        'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ── Reset ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
body { background: var(--bg); color: var(--text); font-family: var(--font); min-height: 100vh; display: flex; flex-direction: column; -webkit-font-smoothing: antialiased; }
a { text-decoration: none; }
button { font-family: inherit; }
input, select, textarea { font-family: inherit; }
select, option { background-color: var(--card); color: var(--text); }
ul { list-style: none; }

/* Scrollbar */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border-soft); border-radius: 3px; }

/* ── Views ── */
.view-container { display: none; width: 100%; min-height: 100vh; }
.view-container.active { display: flex; }

/* ════════════════════════════════════════════
   LANDING PAGE
   ════════════════════════════════════════════ */
#landing-page {
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.landing-bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--border) 1px, transparent 1px),
        linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 60px 60px;
    opacity: 0.4;
    pointer-events: none;
}

.landing-content {
    position: relative;
    z-index: 1;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    padding: 2rem;
    max-width: 420px;
    width: 100%;
    animation: fadeUp 0.6s ease-out;
}

.landing-logo-wrap { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; }

.landing-logo {
    font-size: 6.5rem;
    font-weight: 800;
    letter-spacing: 0.6rem;
    line-height: 1;
    background: linear-gradient(135deg, #fff 40%, #888);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.landing-logo-accent {
    font-size: 0.75rem;
    letter-spacing: 0.25rem;
    text-transform: uppercase;
    color: var(--text-muted);
}

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: var(--radius);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}

.btn-discord {
    background: var(--red);
    color: #fff;
    width: 100%;
    font-size: 1rem;
    padding: 0.9rem;
    box-shadow: 0 4px 20px var(--red-glow);
    border-color: var(--red);
}
.btn-discord:hover { background: var(--red-hover); transform: translateY(-2px); box-shadow: 0 6px 24px var(--red-glow); }

.btn-primary { background: var(--red); color: #fff; border-color: var(--red); }
.btn-primary:hover { background: var(--red-hover); }

.btn-secondary { background: transparent; color: var(--text-muted); border-color: var(--border-soft); }
.btn-secondary:hover { color: var(--text); border-color: var(--text-muted); background: var(--card-hover); }

.btn-danger { background: #3D0000; color: #ff6666; border-color: var(--red); }
.btn-danger:hover { background: var(--red); color: #fff; }

.btn-sm { padding: 0.4rem 0.9rem; font-size: 0.8rem; }
.btn-xs { padding: 0.25rem 0.6rem; font-size: 0.75rem; }

.btn-logout { background: transparent; color: var(--text-muted); border: 1px solid var(--border); width: 100%; font-size: 0.85rem; padding: 0.6rem; }
.btn-logout:hover { background: var(--red); color: #fff; border-color: var(--red); }

.btn-text-red { background: none; border: none; color: var(--red); font-size: 0.78rem; cursor: pointer; font-weight: 600; }
.btn-text-red:hover { color: #ff4444; }

/* Mock login panel */
.mock-login-panel {
    width: 100%;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.mock-login-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.1rem;
    color: var(--text-dim);
    font-weight: 700;
}

.mock-buttons { display: flex; flex-direction: column; gap: 0.5rem; }

.btn-mock {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border-soft);
    font-size: 0.82rem;
    padding: 0.55rem 1rem;
    justify-content: flex-start;
}
.btn-mock:hover { color: var(--text); border-color: var(--border-soft); background: var(--card-hover); }
.btn-mock-owner { border-color: rgba(139,0,0,0.4); color: #cc6666; }
.btn-mock-owner:hover { border-color: var(--red); color: var(--red); }

/* ════════════════════════════════════════════
   DASHBOARD LAYOUT
   ════════════════════════════════════════════ */
#dashboard-page { flex-direction: row; position: relative; }

/* ── Sidebar ── */
.sidebar {
    width: var(--sidebar-w);
    background: var(--card);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    padding: 1.5rem 1.25rem;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    z-index: 20;
    gap: 1.5rem;
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sidebar-logo {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: 0.15rem;
}
.sidebar-logo-dot { color: var(--red); }

.notif-bell-btn {
    background: transparent;
    border: 1px solid var(--border-soft);
    color: var(--text-muted);
    width: 32px;
    height: 32px;
    border-radius: var(--radius);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all var(--transition);
}
.notif-bell-btn:hover { color: var(--text); border-color: var(--red); }

.notif-dot {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 7px;
    height: 7px;
    background: var(--red);
    border-radius: 50%;
    border: 1px solid var(--card);
}

.sidebar-user-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sidebar-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--red), #3a0000);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
    color: #fff;
}

.sidebar-user-info { display: flex; flex-direction: column; min-width: 0; }
.sidebar-username { font-size: 0.85rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-rank { font-size: 0.7rem; color: var(--red); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.sidebar-nav { flex: 1; }
.sidebar-nav ul { display: flex; flex-direction: column; gap: 0.3rem; }

.nav-btn {
    width: 100%;
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 0.65rem 0.9rem;
    text-align: left;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--radius);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    position: relative;
    transition: all var(--transition);
}
.nav-btn:hover { color: var(--text); background: var(--card-hover); }
.nav-btn.active { color: var(--text); background: rgba(139,0,0,0.12); border-left: 2px solid var(--red); padding-left: calc(0.9rem - 2px); }

.nav-badge {
    margin-left: auto;
    background: var(--red);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.1rem 0.4rem;
    border-radius: 20px;
}

/* ── Main content ── */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-w);
    padding: 2.5rem 1.5rem;
    max-width: 100%;
    width: calc(100% - var(--sidebar-w));
}

/* ── Tab panels ── */
.tab-panel { display: none; animation: fadeUp 0.3s ease-out; }
.tab-panel.active { display: block; }

/* ── Page header ── */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}
.page-header h1 { font-size: 2rem; font-weight: 700; letter-spacing: -0.02em; }

.header-badges { display: flex; gap: 0.5rem; flex-wrap: wrap; }

/* ── Cards ── */
.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    transition: border-color var(--transition);
}
.card:hover { border-color: var(--border-soft); }

/* ════════════════════════════════════════════
   OVERVIEW TAB
   ════════════════════════════════════════════ */
.profile-header-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.25rem;
    padding: 1.75rem 2rem;
}

.avatar-ring {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--red), #3a0000);
    padding: 3px;
    flex-shrink: 0;
    box-shadow: 0 0 20px var(--red-glow);
}

.avatar-fallback, .avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    object-fit: cover;
}

.profile-header-info { flex: 1; }
.profile-header-info h2 { font-size: 1.7rem; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 0.25rem; }

.rank-tag {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--red);
    display: inline-block;
}

.profile-join-badge {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.6rem 1rem;
    text-align: right;
    flex-shrink: 0;
}
.profile-join-badge .label { display: block; font-size: 0.68rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05rem; }
.profile-join-badge span:last-child { font-size: 0.85rem; font-weight: 600; }

/* Role badges */
.role-badge {
    padding: 0.25rem 0.6rem;
    border-radius: var(--radius);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border: 1px solid;
}
.role-badge.host { color: var(--green); border-color: var(--green); background: rgba(46,182,125,0.08); }
.role-badge.cohost { color: var(--blue); border-color: var(--blue); background: rgba(54,197,240,0.08); }
.role-badge.hr { color: var(--red); border-color: var(--red); background: rgba(139,0,0,0.08); }
.role-badge.owner { color: var(--orange); border-color: var(--orange); background: rgba(236,178,46,0.08); }

/* Details grid */
.details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.9rem;
    margin-bottom: 1.25rem;
}

.detail-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 1.25rem;
    position: relative;
}
.detail-card.full-col { grid-column: span 2; }

.detail-icon { font-size: 1.1rem; color: var(--text-dim); margin-top: 0.15rem; flex-shrink: 0; }
.label { display: block; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); margin-bottom: 0.2rem; }
.val { font-size: 0.95rem; font-weight: 600; display: block; }

.btn-inline-edit {
    background: transparent;
    border: none;
    color: var(--text-dim);
    cursor: pointer;
    padding: 0 0.3rem;
    font-size: 0.75rem;
    transition: color var(--transition);
    display: inline;
    margin-left: 0.3rem;
}
.btn-inline-edit:hover { color: var(--red); }

.inline-edit-form {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    flex-wrap: wrap;
}
.inline-edit-form input {
    background: var(--bg);
    border: 1px solid var(--border-soft);
    color: var(--text);
    padding: 0.35rem 0.6rem;
    border-radius: var(--radius);
    font-size: 0.82rem;
    outline: none;
    flex: 1;
    min-width: 120px;
}
.inline-edit-form input:focus { border-color: var(--red); }

.div-badges { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.4rem; }
.div-badge {
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    background: rgba(139,0,0,0.1);
    border: 1px solid rgba(139,0,0,0.3);
    color: #cc4444;
}

/* Stats */
.stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.9rem; }
.stat-card { display: flex; align-items: center; gap: 1.25rem; }
.stat-icon { font-size: 1.6rem; color: var(--text-dim); }
.stat-icon.red-icon { color: var(--red); }
.stat-val { font-size: 1.6rem; font-weight: 700; display: block; line-height: 1; }
.stat-label { font-size: 0.75rem; color: var(--text-muted); display: block; }

/* ════════════════════════════════════════════
   PROGRESSION TAB
   ════════════════════════════════════════════ */
.rank-compare-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.rank-col { display: flex; align-items: center; gap: 1.25rem; flex: 1; }
.rank-crest {
    width: 56px; height: 56px;
    border-radius: var(--radius);
    background: var(--bg);
    border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}
.rank-crest.current { color: var(--red); border-color: rgba(139,0,0,0.5); background: rgba(139,0,0,0.06); }
.rank-crest.next { color: var(--text-muted); }
.rank-col h3 { font-size: 1.1rem; font-weight: 700; margin-top: 0.2rem; }
.rank-arrow { font-size: 1.2rem; color: var(--text-dim); flex-shrink: 0; }

.prog-bar-card { margin-bottom: 1.5rem; }
.prog-bar-labels { display: flex; justify-content: space-between; font-size: 0.82rem; font-weight: 600; color: var(--text-muted); margin-bottom: 0.6rem; }
.prog-track { height: 8px; background: var(--bg); border: 1px solid var(--border); border-radius: 4px; overflow: hidden; }
.prog-fill { height: 100%; background: var(--red); border-radius: 4px; box-shadow: 0 0 10px var(--red-glow); transition: width 0.7s cubic-bezier(0.4,0,0.2,1); }

.prog-split-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 1.25rem; }
.card-heading { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; color: var(--text-muted); margin-bottom: 1rem; }

.checklist { display: flex; flex-direction: column; }
.checklist li { display: flex; align-items: center; gap: 0.75rem; padding: 0.7rem 0; border-bottom: 1px solid var(--border); font-size: 0.88rem; }
.checklist li:last-child { border-bottom: none; }
.check-icon.done { color: var(--green); }
.check-icon.pending { color: var(--text-dim); }

.quota-card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.5rem; flex-wrap: wrap; gap: 0.5rem; }
.quota-desc { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 1rem; line-height: 1.5; }

.deadline-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: var(--bg);
    border: 1px solid var(--red);
    color: var(--text);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
}

.quota-tasks { display: flex; flex-direction: column; gap: 0.6rem; }

.quota-row {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    transition: border-color var(--transition);
}
.quota-row:hover { border-color: var(--border-soft); }

.quota-left { display: flex; align-items: center; gap: 0.7rem; }

.quota-check {
    width: 18px; height: 18px;
    border-radius: 4px;
    border: 1.5px solid var(--border-soft);
    background: var(--card);
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.65rem;
    transition: all 0.15s;
    flex-shrink: 0;
}
.quota-check:hover { border-color: var(--green); }
.quota-check.done { background: var(--green); border-color: var(--green); color: #fff; }

.quota-name { font-size: 0.88rem; font-weight: 500; }
.quota-name.done { text-decoration: line-through; color: var(--text-muted); }

.quota-right { display: flex; align-items: center; gap: 0.5rem; }

.clip-badge {
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    border: 1px solid var(--border-soft);
    color: var(--text-muted);
    display: flex; align-items: center; gap: 0.3rem;
}
.clip-badge.sent { border-color: var(--blue); color: var(--blue); background: rgba(54,197,240,0.05); }

.btn-send-clip {
    background: var(--red);
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 0.3rem 0.6rem;
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
    transition: background var(--transition);
}
.btn-send-clip:hover { background: var(--red-hover); }

.clip-view-link { color: var(--blue); font-size: 0.72rem; font-weight: 700; }
.clip-view-link:hover { text-decoration: underline; }

/* ════════════════════════════════════════════
   WARNINGS TAB
   ════════════════════════════════════════════ */
.empty-slate { text-align: center; padding: 4rem 2rem; display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.empty-icon { font-size: 3rem; }
.empty-icon.green { color: var(--green); }
.empty-slate h3 { font-size: 1.2rem; }
.empty-slate p { color: var(--text-muted); font-size: 0.875rem; }

.warnings-list { display: flex; flex-direction: column; gap: 0.9rem; }

.warning-card {
    border-left: 3px solid var(--red);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}
.warning-info h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.4rem; }
.warning-detail-row { display: flex; flex-wrap: wrap; gap: 1rem; font-size: 0.8rem; color: var(--text-muted); }
.warning-detail-row strong { color: var(--text); }
.warning-expiry { text-align: right; flex-shrink: 0; }
.expiry-days { display: block; font-size: 0.88rem; font-weight: 700; color: var(--red); }
.expiry-date { font-size: 0.72rem; color: var(--text-muted); }

/* ════════════════════════════════════════════
   STAFF DASHBOARD
   ════════════════════════════════════════════ */
.search-card { padding: 0.9rem 1.25rem; }
.search-wrap { position: relative; display: flex; align-items: center; }
.search-icon { position: absolute; left: 0.9rem; color: var(--text-dim); font-size: 0.9rem; }
#member-search {
    width: 100%;
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 0.7rem 1rem 0.7rem 2.5rem;
    border-radius: var(--radius);
    font-size: 0.875rem;
    outline: none;
    transition: all var(--transition);
}
#member-search:focus { border-color: var(--red); box-shadow: 0 0 0 3px var(--red-glow); }
.hr-filters-bar { display: flex; gap: 0.6rem; margin-top: 0.75rem; flex-wrap: wrap; }
.filter-select {
    background-color: var(--card) !important;
    color: var(--text) !important;
    border: 1px solid var(--border-soft);
    padding: 0.55rem 0.75rem;
    border-radius: var(--radius);
    font-size: 0.82rem;
    outline: none;
    cursor: pointer;
    transition: all var(--transition);
}
.filter-select option {
    background-color: var(--card);
    color: var(--text);
}
.filter-select:focus { border-color: var(--red); }

.table-card { padding: 0; overflow: hidden; margin-top: 1rem; }
.table-scroll { overflow-x: auto; }
.members-table { width: 100%; border-collapse: collapse; }
.members-table th {
    background: rgba(255,255,255,0.02);
    border-bottom: 1px solid var(--border);
    padding: 0.5rem 0.45rem;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--text-muted);
    font-weight: 700;
    text-align: left;
}
.members-table td { padding: 0.5rem 0.45rem; border-bottom: 1px solid var(--border); font-size: 0.78rem; vertical-align: middle; }
.members-table tr:last-child td { border-bottom: none; }
.members-table tbody tr:hover { background: rgba(255,255,255,0.01); }

.member-cell { display: flex; align-items: center; gap: 0.5rem; }
.table-avatar {
    width: 26px; height: 26px;
    border-radius: 50%;
    background: rgba(139,0,0,0.2);
    border: 1px solid rgba(139,0,0,0.4);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.75rem; font-weight: 700;
    color: var(--red); flex-shrink: 0;
}
.table-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.member-main-name { font-weight: 600; font-size: 0.85rem; display: block; }
.member-roblox { font-size: 0.72rem; color: var(--text-muted); }

.rank-pill {
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
}

.fail-badge {
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
}
.fail-badge.none { color: var(--text-dim); background: none; }
.fail-badge.warn { color: var(--orange); background: rgba(236,178,46,0.08); border: 1px solid rgba(236,178,46,0.3); }
.fail-badge.danger { color: #ff6666; background: rgba(255,0,0,0.08); border: 1px solid rgba(255,0,0,0.3); }

.warn-count-badge {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
}
.warn-count-badge.has-warns { color: var(--red); background: rgba(139,0,0,0.08); border-color: rgba(139,0,0,0.35); }

.btn-manage {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border);
    padding: 0.35rem 0.75rem;
    font-size: 0.78rem;
    font-weight: 600;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--transition);
}
.btn-manage:hover { color: var(--text); border-color: var(--text-muted); }

/* Division Manager */
.division-manager { margin-bottom: 1rem; }
.division-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }
.division-chip {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.7rem;
    background: var(--bg);
    border: 1px solid var(--border-soft);
    border-radius: 4px;
    font-size: 0.8rem;
    color: var(--text-muted);
}
.division-chip button { background: none; border: none; color: var(--text-dim); cursor: pointer; font-size: 0.7rem; line-height: 1; }
.division-chip button:hover { color: var(--red); }
.add-division-form { display: flex; gap: 0.5rem; }
.add-division-form input {
    flex: 1;
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 0.45rem 0.7rem;
    border-radius: var(--radius);
    font-size: 0.82rem;
    outline: none;
}
.add-division-form input:focus { border-color: var(--red); }

/* ════════════════════════════════════════════
   OWNER NOTIFICATION TRAY
   ════════════════════════════════════════════ */
.owner-notif-tray {
    position: fixed;
    top: 1rem;
    right: 1rem;
    width: 340px;
    background: var(--card);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    z-index: 50;
    box-shadow: 0 8px 30px rgba(0,0,0,0.5);
    overflow: hidden;
    animation: slideLeft 0.3s ease-out;
}

.notif-tray-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border);
    font-size: 0.82rem;
    font-weight: 700;
}

.notif-unread-count {
    background: var(--red);
    color: #fff;
    border-radius: 10px;
    padding: 0.05rem 0.4rem;
    font-size: 0.7rem;
    margin-left: 0.4rem;
}

.notif-list { max-height: 320px; overflow-y: auto; }

.notif-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.8rem 1rem;
    border-bottom: 1px solid var(--border);
    transition: background var(--transition);
}
.notif-item:last-child { border-bottom: none; }
.notif-item.unread { background: rgba(139,0,0,0.05); }
.notif-item:hover { background: var(--card-hover); }

.notif-icon { font-size: 1rem; color: var(--orange); flex-shrink: 0; margin-top: 0.1rem; }
.notif-content { flex: 1; }
.notif-message { font-size: 0.78rem; line-height: 1.4; color: var(--text); }
.notif-time { font-size: 0.68rem; color: var(--text-muted); margin-top: 0.2rem; }

.notif-dismiss {
    background: none;
    border: none;
    color: var(--text-dim);
    cursor: pointer;
    font-size: 0.75rem;
    flex-shrink: 0;
}
.notif-dismiss:hover { color: var(--red); }

.notif-empty { padding: 2rem; text-align: center; font-size: 0.8rem; color: var(--text-muted); }

/* ════════════════════════════════════════════
   MODAL
   ════════════════════════════════════════════ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75);
    backdrop-filter: blur(6px);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    animation: fadeIn 0.2s ease-out;
}

.modal-card {
    background: var(--card);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    width: 100%;
    max-width: 580px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 16px 48px rgba(0,0,0,0.6);
    animation: slideUp 0.3s cubic-bezier(0.16,1,0.3,1);
}
.modal-card.modal-sm { max-width: 420px; }

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.1rem 1.5rem;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}
.modal-header h2 { font-size: 1.1rem; font-weight: 700; }

.modal-close-btn { background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 1.1rem; }
.modal-close-btn:hover { color: var(--text); }

.modal-body { padding: 1.5rem; overflow-y: auto; display: flex; flex-direction: column; gap: 1.25rem; }

.modal-member-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.9rem 1rem;
}
.modal-avatar {
    width: 42px; height: 42px;
    border-radius: 50%;
    background: rgba(139,0,0,0.2);
    border: 1px solid rgba(139,0,0,0.4);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem; font-weight: 700;
    color: var(--red); flex-shrink: 0;
}
.modal-member-name { font-size: 0.95rem; font-weight: 700; }
.modal-member-rank { font-size: 0.75rem; color: var(--red); font-weight: 600; }
.modal-member-meta { margin-left: auto; display: flex; flex-direction: column; align-items: flex-end; gap: 0.3rem; }

.quota-fail-tag {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    background: rgba(236,178,46,0.1);
    border: 1px solid rgba(236,178,46,0.3);
    color: var(--orange);
}

.event-badge {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

.modal-section { display: flex; flex-direction: column; gap: 0.75rem; border-top: 1px solid var(--border); padding-top: 1.1rem; }
.modal-section-title { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--text-muted); font-weight: 700; }

/* Roblox history */
.roblox-history-list { display: flex; flex-direction: column; gap: 0.35rem; }
.history-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.35rem 0.6rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 0.8rem;
}
.history-name { font-weight: 600; }
.history-date { color: var(--text-muted); font-size: 0.72rem; }

/* Action grid */
.action-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
}

.btn-action {
    background: var(--bg);
    border: 1px solid var(--border-soft);
    color: var(--text);
    font-size: 0.82rem;
    padding: 0.6rem 0.9rem;
    border-radius: var(--radius);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all var(--transition);
    font-weight: 500;
}
.btn-action:hover { background: var(--card-hover); border-color: var(--border-soft); }

/* Sub forms */
.modal-sub-form {
    background: var(--bg);
    padding: 1rem;
    animation: fadeIn 0.2s ease-out;
}
.modal-sub-form h4 { font-size: 0.82rem; font-weight: 700; margin-bottom: 0.75rem; }

/* Notes */
.notes-list { display: flex; flex-direction: column; gap: 0.5rem; }
.note-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.75rem;
    font-size: 0.82rem;
    line-height: 1.5;
}
.note-meta { display: flex; justify-content: space-between; align-items: center; margin-top: 0.4rem; }
.note-author { font-size: 0.7rem; color: var(--text-muted); }
.note-delete-btn { background: none; border: none; color: var(--text-dim); cursor: pointer; font-size: 0.72rem; }
.note-delete-btn:hover { color: var(--red); }

.add-note-form { display: flex; flex-direction: column; gap: 0.5rem; }
.add-note-form textarea {
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 0.6rem;
    border-radius: var(--radius);
    font-size: 0.82rem;
    resize: vertical;
    outline: none;
}
.add-note-form textarea:focus { border-color: var(--red); }

/* Modal tabs */
.modal-tabs { display: flex; border-bottom: 1px solid var(--border); }
.modal-tab-btn {
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--text-muted);
    padding: 0.5rem 1rem;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: -1px;
    transition: all var(--transition);
}
.modal-tab-btn:hover { color: var(--text); }
.modal-tab-btn.active { color: var(--text); border-color: var(--red); }

.modal-tab-panel { display: flex; flex-direction: column; gap: 0.4rem; max-height: 200px; overflow-y: auto; padding-top: 0.5rem; }

.modal-list-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.6rem 0.75rem;
    font-size: 0.8rem;
}
.mlr-title { font-weight: 600; display: block; }
.mlr-sub { font-size: 0.72rem; color: var(--text-muted); }
.mlr-del { background: none; border: none; color: var(--text-dim); cursor: pointer; font-size: 0.8rem; }
.mlr-del:hover { color: var(--red); }

.empty-label { font-size: 0.78rem; color: var(--text-muted); text-align: center; padding: 1rem; }

/* ── Forms ── */
.form-group { display: flex; flex-direction: column; gap: 0.3rem; }
.form-group label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); font-weight: 700; }
.form-group input[type="text"],
.form-group input[type="url"],
.form-group select {
    background: var(--card);
    border: 1px solid var(--border-soft);
    color: var(--text);
    padding: 0.55rem 0.7rem;
    border-radius: var(--radius);
    font-size: 0.85rem;
    outline: none;
    width: 100%;
}
.form-group input:focus, .form-group select:focus { border-color: var(--red); box-shadow: 0 0 0 2px var(--red-glow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.checkbox-group { flex-direction: row; align-items: center; padding: 0.4rem 0; }
.checkbox-group input[type="checkbox"] { width: 15px; height: 15px; accent-color: var(--red); }
.checkbox-group label { text-transform: none; letter-spacing: normal; font-size: 0.82rem; color: var(--text); }
.form-actions { display: flex; justify-content: flex-end; gap: 0.5rem; margin-top: 0.75rem; }
.input-helper { font-size: 0.75rem; color: var(--text-muted); }
.clip-task-label { font-size: 0.88rem; font-weight: 600; }

/* ── Utilities ── */
.hidden { display: none !important; }
.text-green { color: var(--green); }
.text-orange { color: var(--orange); }
.text-blue { color: var(--blue); }
.text-red { color: var(--red); }

/* ── Animations ── */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideLeft { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: translateX(0); } }

/* ── Responsive ── */
@media (max-width: 900px) {
    .sidebar { width: 100%; height: auto; position: relative; flex-direction: row; flex-wrap: wrap; padding: 1rem; gap: 0.75rem; border-right: none; border-bottom: 1px solid var(--border); }
    .sidebar-header { flex: 0 0 auto; }
    .sidebar-user-card { flex: 1; }
    .sidebar-nav { flex: 1 1 100%; }
    .sidebar-nav ul { flex-direction: row; flex-wrap: wrap; gap: 0.4rem; }
    .nav-btn { font-size: 0.78rem; padding: 0.45rem 0.7rem; }
    .nav-btn.active { border-left: none; border-bottom: 2px solid var(--red); padding-left: 0.7rem; }
    .sidebar-footer { flex: 0 0 auto; }
    #dashboard-page { flex-direction: column; }
    .main-content { margin-left: 0; width: 100%; padding: 1.5rem; }
    .prog-split-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    .profile-header-card { flex-direction: column; text-align: center; }
    .profile-join-badge { text-align: center; width: 100%; }
    .details-grid { grid-template-columns: 1fr; }
    .detail-card.full-col { grid-column: span 1; }
    .stats-row { grid-template-columns: 1fr; }
    .action-grid { grid-template-columns: 1fr; }
    .rank-compare-card { flex-direction: column; }
}

/* ════════════════════════════════════════════
   QUOTA REVIEW WORKFLOW
   ════════════════════════════════════════════ */

/* Status chips */
.quota-status-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.25rem 0.65rem;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}
.quota-status-chip.completed {
    background: rgba(46,182,125,0.15);
    color: var(--green);
    border: 1px solid rgba(46,182,125,0.3);
}
.quota-status-chip.review {
    background: rgba(236,178,46,0.15);
    color: var(--orange);
    border: 1px solid rgba(236,178,46,0.3);
    animation: pulse-review 2s ease-in-out infinite;
}
.quota-status-chip.rejected {
    background: rgba(139,0,0,0.18);
    color: #ff6b6b;
    border: 1px solid rgba(139,0,0,0.3);
}

@keyframes pulse-review {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.65; }
}

/* Quota check static (no pointer events for non-clickable) */
.quota-check.static { pointer-events: none; cursor: default; }

/* Submit / Resubmit button */
.btn-submit-task {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.3rem 0.7rem;
    border-radius: var(--radius);
    font-size: 0.72rem;
    font-weight: 600;
    background: rgba(46,182,125,0.15);
    color: var(--green);
    border: 1px solid rgba(46,182,125,0.35);
    cursor: pointer;
    transition: background var(--transition), transform var(--transition);
}
.btn-submit-task:hover { background: rgba(46,182,125,0.28); transform: translateY(-1px); }

/* Undo button */
.btn-undo-task {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.3rem 0.65rem;
    border-radius: var(--radius);
    font-size: 0.72rem;
    font-weight: 600;
    background: rgba(54,197,240,0.12);
    color: var(--blue);
    border: 1px solid rgba(54,197,240,0.3);
    cursor: pointer;
    transition: background var(--transition);
}
.btn-undo-task:hover { background: rgba(54,197,240,0.22); }

/* Rejection reason tooltip-style text */
.quota-rejection-reason {
    font-size: 0.7rem;
    color: #ff6b6b;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: inline-block;
    vertical-align: middle;
}

/* ════════════════════════════════════════════
   IN REVIEW BADGE (Member List)
   ════════════════════════════════════════════ */
.in-review-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.67rem;
    font-weight: 600;
    color: var(--orange);
    background: rgba(236,178,46,0.12);
    border: 1px solid rgba(236,178,46,0.3);
    border-radius: 20px;
    padding: 0.1rem 0.5rem;
    margin-top: 0.2rem;
}

/* ════════════════════════════════════════════
   HR ACCEPT / REJECT BUTTONS (Modal Quota Panel)
   ════════════════════════════════════════════ */
.hr-review-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.btn-accept-quota {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.28rem 0.65rem;
    border-radius: var(--radius);
    font-size: 0.72rem;
    font-weight: 600;
    background: rgba(46,182,125,0.15);
    color: var(--green);
    border: 1px solid rgba(46,182,125,0.35);
    cursor: pointer;
    transition: background var(--transition);
}
.btn-accept-quota:hover { background: rgba(46,182,125,0.3); }

.btn-reject-quota {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.28rem 0.65rem;
    border-radius: var(--radius);
    font-size: 0.72rem;
    font-weight: 600;
    background: rgba(139,0,0,0.15);
    color: #ff6b6b;
    border: 1px solid rgba(139,0,0,0.35);
    cursor: pointer;
    transition: background var(--transition);
}
.btn-reject-quota:hover { background: rgba(139,0,0,0.3); }

/* Modal list row highlight for In Review tasks */
.modal-list-row.review-pending {
    border-left: 3px solid var(--orange);
    padding-left: 0.6rem;
    background: rgba(236,178,46,0.04);
}

/* ════════════════════════════════════════════
   DIVISION CHECKBOXES GRID
   ════════════════════════════════════════════ */
.division-checkboxes-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    padding: 0.5rem 0;
}

.div-checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.65rem;
    border-radius: 20px;
    border: 1px solid var(--border-soft);
    background: var(--card);
    color: var(--text-muted);
    font-size: 0.75rem;
    cursor: pointer;
    transition: all var(--transition);
    user-select: none;
}
.div-checkbox-label:hover { border-color: var(--red); color: var(--text); }
.div-checkbox-label input[type=checkbox] {
    accent-color: var(--red);
    width: 13px;
    height: 13px;
    cursor: pointer;
}
.div-checkbox-label:has(input:checked) {
    border-color: var(--red);
    background: rgba(139,0,0,0.1);
    color: var(--text);
}

/* ════════════════════════════════════════════
   ACHIEVEMENTS SYSTEM
   ════════════════════════════════════════════ */
.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
}

.achievement-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.9rem;
    transition: all var(--transition);
    opacity: 0.45;
    filter: grayscale(80%);
}

.achievement-card.unlocked {
    opacity: 1;
    filter: none;
    border-color: rgba(236,178,46,0.3);
    box-shadow: 0 0 10px rgba(236,178,46,0.05);
}

.achievement-card.unlocked:hover {
    border-color: var(--orange);
    box-shadow: 0 0 15px rgba(236,178,46,0.15);
    transform: translateY(-1px);
}

.achievement-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--card);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--text-dim);
    flex-shrink: 0;
    border: 1px solid var(--border);
}

.achievement-card.unlocked .achievement-icon-wrap {
    color: var(--orange);
    background: rgba(236,178,46,0.06);
    border-color: rgba(236,178,46,0.4);
}

.achievement-info {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.achievement-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-muted);
}

.achievement-card.unlocked .achievement-title {
    color: var(--text);
}

.achievement-desc {
    font-size: 0.7rem;
    color: var(--text-muted);
    line-height: 1.3;
}

/* ════════════════════════════════════════════
   FANCY DIRECTORY ANALYTICS
   ════════════════════════════════════════════ */
.analytics-dashboard-fancy {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.fancy-stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

@media (max-width: 900px) {
    .fancy-stats-row {
        grid-template-columns: 1fr;
    }
}

.fancy-stat-widget {
    padding: 1.25rem 1.5rem;
    position: relative;
    overflow: hidden;
}

.fancy-stat-widget::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 3px; height: 100%;
}
.fancy-stat-widget:nth-child(1)::before { background: var(--blue); }
.fancy-stat-widget:nth-child(2)::before { background: var(--green); }
.fancy-stat-widget:nth-child(3)::before { background: var(--orange); }

.fancy-widget-header {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.widget-icon-fancy {
    font-size: 2.2rem;
    flex-shrink: 0;
}

.widget-icon-fancy.color-blue { color: var(--blue); }
.widget-icon-fancy.color-green { color: var(--green); }
.widget-icon-fancy.color-orange { color: var(--orange); }

.widget-label-fancy {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    display: block;
    margin-bottom: 0.2rem;
}

.widget-value-fancy {
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1;
    color: var(--text);
}

.analytics-panels-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

@media (max-width: 900px) {
    .analytics-panels-grid {
        grid-template-columns: 1fr;
    }
}

.fancy-chart-card {
    padding: 1.5rem;
}

.fancy-chart-card.full-width-card {
    grid-column: span 2;
}
@media (max-width: 900px) {
    .fancy-chart-card.full-width-card {
        grid-column: span 1;
    }
}

.card-heading-fancy {
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.fancy-gauges-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 140px;
    gap: 1.5rem;
}

.fancy-gauge-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.gauge-title-fancy {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
}

.fancy-bars-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
    height: 140px;
}

.stat-bar-row-fancy {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    width: 100%;
}

.bar-header-fancy {
    display: flex;
    justify-content: space-between;
    font-size: 0.78rem;
    font-weight: 500;
}

.bar-name-fancy {
    color: var(--text-muted);
}

.bar-val-fancy {
    font-weight: 700;
    color: var(--text);
}

.ratio-bar-fancy {
    width: 100%;
    height: 8px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 4px;
    overflow: hidden;
}

.ratio-fill-fancy {
    height: 100%;
    border-radius: 4px;
    transition: width 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.ratio-fill-fancy.green { background: var(--green); box-shadow: 0 0 10px rgba(46,182,125,0.2); }
.ratio-fill-fancy.red { background: var(--red); box-shadow: 0 0 10px rgba(139,0,0,0.2); }
.ratio-fill-fancy.orange { background: var(--orange); box-shadow: 0 0 10px rgba(236,178,46,0.2); }

/* Division bar chart styling */
.divisions-bar-chart {
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    height: 200px;
    padding-top: 1rem;
    border-bottom: 1px solid var(--border);
    gap: 1rem;
}

.div-bar-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    height: 100%;
    justify-content: flex-end;
}

.div-bar-val {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text);
}

.div-bar-track {
    width: 24px;
    height: 120px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 4px 4px 0 0;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.div-bar-fill {
    width: 100%;
    background: linear-gradient(to top, rgba(139, 0, 0, 0.4), var(--red));
    box-shadow: 0 0 10px var(--red-glow);
    border-radius: 2px 2px 0 0;
    transition: height 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    height: 0%;
}

.div-bar-name {
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--text-muted);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 70px;
}

/* Conic Circular Gauge */
.gauge-container {
    position: relative;
    width: 100px;
    height: 100px;
}

.circular-gauge {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: conic-gradient(var(--red) var(--val, 0%), var(--border) 0%);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.5s ease-out;
}

#gauge-quota-pass {
    background: conic-gradient(var(--green) var(--val, 0%), var(--border) 0%);
}

.circular-gauge::before {
    content: '';
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--bg);
    position: absolute;
}

.gauge-label {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 2;
}

.gauge-number {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text);
    line-height: 1.1;
}

.gauge-desc {
    font-size: 0.58rem;
    color: var(--text-muted);
}

/* ════════════════════════════════════════════
   FLOATING BULK ACTION BAR
   ════════════════════════════════════════════ */
.bulk-action-bar {
    position: fixed;
    bottom: 1.5rem;
    left: calc(var(--sidebar-w) + (100% - var(--sidebar-w) - 780px)/2);
    width: 780px;
    max-width: 90%;
    background: rgba(17, 17, 17, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    padding: 0.8rem 1.25rem;
    z-index: 90;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(139, 0, 0, 0.15);
    animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    transition: transform var(--transition), opacity var(--transition);
}

@media (max-width: 900px) {
    .bulk-action-bar {
        left: 5%;
        width: 90%;
    }
}

.bulk-bar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.bulk-count {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text);
}

#bulk-select-count {
    color: var(--red);
    font-size: 1rem;
}

.bulk-actions-group {
    display: flex;
    gap: 0.5rem;
}

.members-table tr.selected {
    background: rgba(139, 0, 0, 0.04) !important;
}

.members-table tr.selected:hover {
    background: rgba(139, 0, 0, 0.06) !important;
}

/* Select Checkbox Column */
.select-all-col input[type="checkbox"],
.members-table td input[type="checkbox"] {
    width: 14px;
    height: 14px;
    accent-color: var(--red);
    cursor: pointer;
    vertical-align: middle;
}


