/* ==========================================================================
   Requestarr User Management & Services
   ========================================================================== */

/* ── User List ────────────────────────────────────────────── */

.requsers-page {
    padding: 0;
}

.requsers-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.requsers-toolbar-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.requsers-toolbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

/* ── Checkbox Cells ──────────────────────────────────────────── */

.requsers-checkbox-cell {
    width: 36px;
    text-align: center;
    padding-left: 12px !important;
    padding-right: 4px !important;
}

.requsers-checkbox-cell input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--accent-color, #6366f1);
    cursor: pointer;
}

.requsers-row-cb {
    width: 16px;
    height: 16px;
    accent-color: var(--accent-color, #6366f1);
    cursor: pointer;
}

/* ── Bulk Edit Button ────────────────────────────────────────── */

.requsers-btn-bulk {
    background: rgba(99, 102, 241, 0.12);
    color: #818cf8;
    border: 1px solid rgba(99, 102, 241, 0.3);
}

.requsers-btn-bulk:hover {
    background: rgba(99, 102, 241, 0.22);
}

/* ── Default Categories Button ───────────────────────────── */

.requsers-btn-defaults {
    background: rgba(20, 184, 166, 0.12);
    color: #2dd4bf;
    border: 1px solid rgba(20, 184, 166, 0.25);
}

.requsers-btn-defaults:hover {
    background: rgba(20, 184, 166, 0.22);
}

/* ── Category Badges ─────────────────────────────────────── */

.requsers-cat-cell {
    white-space: nowrap;
}

.requsers-cat-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.requsers-cat-movie {
    background: rgba(239, 68, 68, 0.12);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.requsers-cat-tv {
    background: rgba(59, 130, 246, 0.12);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.requsers-cat-all {
    background: rgba(34, 197, 94, 0.1);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.requsers-cat-none {
    color: var(--text-dim, #475569);
    font-size: 0.8rem;
}

.requsers-cat-none-badge {
    background: rgba(100, 116, 139, 0.1);
    color: #94a3b8;
    border: 1px solid rgba(100, 116, 139, 0.2);
    font-size: 0.7rem;
}

/* ── Bulk Edit Permission Dropdowns ──────────────────────── */

.requsers-bulk-perm-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.requsers-bulk-perm-select {
    width: 100%;
    padding: 6px 8px;
    background: var(--input-bg, rgba(15, 23, 42, 0.6));
    border: 1px solid var(--input-border, rgba(71, 85, 105, 0.4));
    border-radius: var(--input-radius, 6px);
    color: var(--input-text, #e2e8f0);
    font-size: 0.8rem;
    cursor: pointer;
    transition: border-color 0.15s;
}

.requsers-bulk-perm-select:focus {
    outline: none;
    border-color: var(--input-focus-border, rgba(99, 102, 241, 0.5));
}

.requsers-bulk-perm-select option {
    background: #0f172a;
    color: #e2e8f0;
}

.requsers-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.requsers-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: none;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: background var(--transition-fast), opacity var(--transition-fast);
    white-space: nowrap;
}

.requsers-btn-primary {
    background: var(--button-primary-bg);
    color: var(--button-primary-text);
}

.requsers-btn-primary:hover {
    background: var(--button-primary-hover);
}

.requsers-btn-plex {
    background: #e5a00d;
    color: #000;
}

.requsers-btn-plex:hover {
    background: #f0b429;
}

.requsers-btn-danger {
    background: var(--button-danger-bg);
    color: #fff;
}

.requsers-btn-danger:hover {
    background: var(--button-danger-hover);
}

.requsers-btn-sm {
    padding: 5px 10px;
    font-size: 0.8rem;
}

/* ── User Table ───────────────────────────────────────────── */

.requsers-table-wrap {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    backdrop-filter: blur(var(--glass-blur));
}

.requsers-table {
    width: 100%;
    border-collapse: collapse;
}

.requsers-table thead {
    background: rgba(99, 102, 241, 0.08);
}

.requsers-table th {
    padding: 12px 16px;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-color);
}

.requsers-table td {
    padding: 12px 16px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    border-bottom: 1px solid rgba(71, 85, 105, 0.15);
    vertical-align: middle;
}

.requsers-table tbody tr:last-child td {
    border-bottom: none;
}

.requsers-table tbody tr:hover {
    background: rgba(99, 102, 241, 0.04);
}

.requsers-user-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}

.requsers-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
    overflow: hidden;
    flex-shrink: 0;
}

.requsers-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.requsers-user-info {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.requsers-user-name {
    font-weight: 500;
    color: var(--text-primary);
}

.requsers-user-email {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ── Role Badges ──────────────────────────────────────────── */

.requsers-role-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: capitalize;
}

.requsers-role-owner {
    background: rgba(234, 179, 8, 0.15);
    color: #eab308;
}

.requsers-role-user {
    background: rgba(99, 102, 241, 0.15);
    color: #818cf8;
}

/* ── Actions ──────────────────────────────────────────────── */

.requsers-actions {
    display: flex;
    gap: 6px;
}

/* ── Pagination ───────────────────────────────────────────── */

.requsers-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    font-size: 0.85rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border-color);
}

/* ── Modal ─────────────────────────────────────────────────── */

.requsers-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.requsers-modal {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 520px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
}

.requsers-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px 0;
}

.requsers-modal-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.requsers-modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 4px;
}

.requsers-modal-close:hover {
    color: var(--text-primary);
}

.requsers-modal-body {
    padding: 20px 24px;
}

.requsers-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 0 24px 20px;
}

/* ── Form Fields ──────────────────────────────────────────── */

.requsers-field {
    margin-bottom: 16px;
}

.requsers-field label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.requsers-field input,
.requsers-field select {
    width: 100%;
    padding: 10px 12px;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: var(--input-radius);
    color: var(--input-text);
    font-size: 0.9rem;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
    box-sizing: border-box;
}

.requsers-field input:focus,
.requsers-field select:focus {
    outline: none;
    border-color: var(--input-focus-border);
    box-shadow: var(--input-focus-glow);
}

.requsers-field-hint {
    font-size: 0.78rem;
    color: var(--text-dim);
    margin-top: 4px;
}

/* ── Permissions Grid ─────────────────────────────────────── */

.requsers-perms-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.requsers-perm-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
    font-size: 0.83rem;
    color: var(--text-secondary);
}

.requsers-perm-item input[type="checkbox"] {
    width: auto;
    accent-color: var(--accent-color);
}

/* ── Services Page ────────────────────────────────────────── */

/* ── Services Page (uses shared instance-card system from instances-card.css) ── */
/* Matches Media Hunt Instances bordered-section design exactly */

.reqservices-group {
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid rgba(148, 163, 184, 0.08);
    border-radius: 12px;
    padding: 24px;
    margin: 12px 0 20px 0;
}

.reqservices-group .profiles-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 4px;
}

.reqservices-group .profiles-header h3 {
    margin: 0;
    padding: 0 0 12px 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #f1f5f9;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.reqservices-group .profiles-help {
    color: rgba(255, 255, 255, 0.55);
    font-size: 13px;
    margin: 12px 0 0;
}

.reqservices-group .instances-card-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 14px;
    margin-top: 16px;
    margin-bottom: 0;
}

.reqservices-group .instances-card-grid .add-instance-card {
    min-height: 100px;
}

.reqservices-group .instances-card-grid .add-instance-card .add-icon {
    font-size: 1.5rem;
}

.reqservices-group .instances-card-grid .add-instance-card .add-text {
    font-size: 0.85rem;
}

/* 4K inline badge (next to instance name in card header) */
.reqservices-badge-4k-inline {
    font-size: 0.65rem;
    background: rgba(234, 179, 8, 0.25);
    color: #eab308;
    padding: 2px 7px;
    border-radius: 12px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-left: 6px;
}

/* ── Plex Import Modal ────────────────────────────────────── */

.requsers-plex-list {
    max-height: 450px;
    overflow-y: auto;
}

.requsers-plex-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-bottom: 1px solid rgba(71, 85, 105, 0.15);
    cursor: pointer;
}

.requsers-plex-item:hover {
    background: rgba(99, 102, 241, 0.04);
}

.requsers-plex-item input[type="checkbox"] {
    accent-color: var(--accent-color);
}

.requsers-plex-avatar-wrap {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    position: relative;
}

.requsers-plex-thumb {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.requsers-plex-avatar-fallback {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.4), rgba(139, 92, 246, 0.4));
    border: 1px solid rgba(99, 102, 241, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 700;
    color: #e2e8f0;
}

.requsers-plex-select-all {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    border-bottom: 1px solid rgba(71, 85, 105, 0.25);
    margin-bottom: 4px;
}

.requsers-plex-select-all input[type="checkbox"] {
    accent-color: var(--accent-color);
}

.requsers-plex-item-disabled {
    opacity: 0.45;
    pointer-events: none;
}

.requsers-plex-imported-badge {
    margin-left: auto;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 2px 8px;
    border-radius: 6px;
    background: rgba(34, 197, 94, 0.12);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.25);
    flex-shrink: 0;
}

/* ── Responsive ───────────────────────────────────────────── */

@media (max-width: 1024px) {

    /* Hide Movie Cat., TV Cat. on tablets */
    .requsers-table th:nth-child(5),
    .requsers-table td:nth-child(5),
    .requsers-table th:nth-child(6),
    .requsers-table td:nth-child(6) {
        display: none;
    }
}

@media (max-width: 768px) {
    .requsers-toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .requsers-toolbar-left,
    .requsers-toolbar-right {
        justify-content: center;
    }

    .requsers-perms-grid {
        grid-template-columns: 1fr;
    }

    /* Hide Requests (3), Movie Cat (5), TV Cat (6), Joined (7) on mobile */
    .requsers-table th:nth-child(3),
    .requsers-table td:nth-child(3),
    .requsers-table th:nth-child(5),
    .requsers-table td:nth-child(5),
    .requsers-table th:nth-child(6),
    .requsers-table td:nth-child(6),
    .requsers-table th:nth-child(7),
    .requsers-table td:nth-child(7) {
        display: none;
    }

    .requsers-user-cell {
        min-width: 0;
    }

    .requsers-user-name {
        max-width: 120px;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .requsers-user-email {
        max-width: 120px;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .requsers-btn-sm {
        padding: 4px 8px;
        font-size: 0.75rem;
    }

    .requsers-modal {
        width: 95vw;
        max-width: 95vw;
        margin: 10px;
    }
}

/* ── Requests Management ─────────────────────────────────── */

.reqrequests-filters {
    display: flex;
    gap: 10px;
    align-items: center;
}

.reqrequests-filters .control-select {
    min-width: 140px;
}

.reqrequests-pagination-bar {
    display: flex;
    align-items: center;
    gap: 8px;
}

.reqrequests-pagination-bar .pagination-btn {
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(148, 163, 184, 0.12);
    color: #94a3b8;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.reqrequests-pagination-bar .pagination-btn:hover:not(:disabled) {
    background: rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.3);
    color: #e2e8f0;
}

.reqrequests-pagination-bar .pagination-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.reqrequests-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 20px;
    text-align: center;
}

.reqrequests-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.reqrequests-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(148, 163, 184, 0.08);
    border-radius: 10px;
    padding: 14px 18px;
    transition: border-color 0.15s ease, opacity 0.2s ease;
}

.reqrequests-card:hover {
    border-color: rgba(99, 102, 241, 0.3);
}

.reqrequests-card-processing {
    opacity: 0.5;
    pointer-events: none;
}

.reqrequests-poster {
    width: 48px;
    height: 72px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
    background: var(--bg-tertiary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.reqrequests-info {
    flex: 1;
    min-width: 0;
}

.reqrequests-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.reqrequests-year {
    font-weight: 400;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.reqrequests-meta {
    display: flex;
    gap: 14px;
    margin-top: 5px;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.reqrequests-meta i {
    margin-right: 4px;
    opacity: 0.6;
}

.reqrequests-notes {
    margin-top: 4px;
    font-size: 0.78rem;
    color: var(--text-dim);
    font-style: italic;
}

.reqrequests-notes i {
    margin-right: 4px;
}

.reqrequests-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    flex-shrink: 0;
}

.reqrequests-status {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.reqrequests-status-pending {
    background: rgba(234, 179, 8, 0.12);
    color: #eab308;
    border: 1px solid rgba(234, 179, 8, 0.25);
}

.reqrequests-status-approved {
    background: rgba(34, 197, 94, 0.12);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.25);
}

.reqrequests-status-denied {
    background: rgba(239, 68, 68, 0.12);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.25);
}

.reqrequests-status-blacklisted {
    background: rgba(239, 68, 68, 0.12);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.25);
}

.reqrequests-status-withdrawn {
    background: rgba(148, 163, 184, 0.12);
    color: #94a3b8;
    border: 1px solid rgba(148, 163, 184, 0.25);
}

.reqrequests-also {
    font-size: 0.75rem;
    color: var(--text-dim, #9ca3af);
    margin-top: 4px;
}

.reqrequests-also i {
    margin-right: 4px;
    opacity: 0.7;
}

.reqrequests-demand {
    display: inline-block;
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
    font-size: 0.65rem;
    font-weight: 600;
    padding: 1px 6px;
    border-radius: 4px;
    margin-left: 6px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.reqrequests-actions {
    display: flex;
    gap: 6px;
}

/* ── Request Action Buttons ──────────────────────────────── */

.reqrequests-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border: 1px solid transparent;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease, opacity 0.15s ease, border-color 0.15s ease;
    white-space: nowrap;
}

.reqrequests-action-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.reqrequests-action-approve {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
    border-color: rgba(34, 197, 94, 0.3);
}

.reqrequests-action-approve:hover:not(:disabled) {
    background: rgba(34, 197, 94, 0.25);
}

.reqrequests-action-deny {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.3);
}

.reqrequests-action-deny:hover:not(:disabled) {
    background: rgba(239, 68, 68, 0.25);
}

.reqrequests-action-blacklist {
    background: rgba(234, 179, 8, 0.12);
    color: #eab308;
    border-color: rgba(234, 179, 8, 0.25);
}

.reqrequests-action-blacklist:hover:not(:disabled) {
    background: rgba(234, 179, 8, 0.22);
}

.reqrequests-action-withdraw {
    background: rgba(148, 163, 184, 0.15);
    color: #94a3b8;
    border-color: rgba(148, 163, 184, 0.3);
}

.reqrequests-action-withdraw:hover:not(:disabled) {
    background: rgba(148, 163, 184, 0.25);
}

/* Mobile responsive */
@media (max-width: 640px) {
    .reqrequests-card {
        flex-wrap: wrap;
    }

    .reqrequests-right {
        flex-direction: row;
        width: 100%;
        justify-content: space-between;
        align-items: center;
    }

    .reqrequests-filters {
        flex-wrap: wrap;
    }
}

/* ── Pending Request Badge (sidebar) ─────────────────────── */

.nav-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    font-size: 0.65rem;
    font-weight: 700;
    background: #ef4444;
    color: #fff;
    margin-left: auto;
    line-height: 1;
}

/* ── Request Status Buttons (detail pages) ───────────────── */

.mh-btn-warning {
    background: rgba(234, 179, 8, 0.2) !important;
    color: #eab308 !important;
    border: 1px solid rgba(234, 179, 8, 0.4) !important;
    cursor: default !important;
}

.mh-btn-denied {
    background: rgba(239, 68, 68, 0.15) !important;
    color: #f87171 !important;
    border: 1px solid rgba(239, 68, 68, 0.3) !important;
    cursor: pointer !important;
}

.mh-btn-denied:hover {
    background: rgba(239, 68, 68, 0.25) !important;
}

.requsers-btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
}

.requsers-btn-secondary:hover {
    background: var(--bg-hover);
}

/* ── Non-owner flat sidebar (standalone nav, replaces owner sidebar entirely) ── */

.non-owner-nav-item {
    display: flex;
    align-items: center;
    padding: 0 12px;
    height: 36px;
    color: rgba(203, 213, 225, 0.8);
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 8px;
    margin: 1px 10px;
    position: relative;
    cursor: pointer;
}

.non-owner-nav-item span {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.non-owner-nav-item .nav-icon-wrapper {
    width: 28px;
    height: 28px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 10px;
    flex-shrink: 0;
    border-radius: 7px;
    background: transparent;
    border: none;
    position: relative;
}

.non-owner-nav-item .nav-icon-wrapper i {
    font-size: 14px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: rgba(148, 163, 184, 0.7);
}

.non-owner-nav-item:hover {
    background: rgba(99, 102, 241, 0.06);
    color: #e2e8f0;
    text-decoration: none;
}

.non-owner-nav-item.active {
    background: rgba(99, 102, 241, 0.1);
    color: #a5b4fc;
}

.non-owner-nav-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 6px;
    bottom: 6px;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background: #6366f1;
    box-shadow: 0 0 8px rgba(99, 102, 241, 0.4);
}

.non-owner-nav-item.active .nav-icon-wrapper i {
    color: #a5b4fc;
    filter: drop-shadow(0 0 3px rgba(99, 102, 241, 0.4));
}

.non-owner-nav-item.active span {
    font-weight: 600;
    color: #a5b4fc;
}

/* ── Hidden Media Scope Badges ─────────────────────────────── */

.hidden-scope-badge {
    position: absolute;
    top: 6px;
    left: 6px;
    padding: 2px 7px;
    border-radius: 8px;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    z-index: 2;
}

.hidden-scope-global {
    background: rgba(234, 179, 8, 0.85);
    color: #000;
}

.hidden-scope-personal {
    background: rgba(99, 102, 241, 0.85);
    color: #fff;
    top: auto !important;
    bottom: 6px;
}

.hidden-scope-blacklisted {
    background: rgba(239, 68, 68, 0.85);
    color: #fff;
    top: auto !important;
    bottom: 6px;
    left: 6px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* ── Non-owner mode: hide elements outside the standalone sidebar ── */

body.non-owner-mode .requestarr-header-bar {
    display: none !important;
}