:root {
    --bg-primary: #0b0f19;
    --bg-secondary: #111827;
    --bg-card: #1a2236;
    --bg-input: #0f172a;
    --border: #1e2d45;
    --border-hover: #2d4a6f;
    --text-primary: #e2e8f0;
    --text-secondary: #8892a8;
    --text-muted: #5a6478;
    --accent: #3b82f6;
    --accent-hover: #2563eb;
    --accent-glow: rgba(59, 130, 246, 0.15);
    --purple: #8b5cf6;
    --purple-hover: #7c3aed;
    --purple-glow: rgba(139, 92, 246, 0.15);
    --green: #22c55e;
    --green-soft: #166534;
    --red: #ef4444;
    --red-soft: #7f1d1d;
    --orange: #f59e0b;
    --cyan: #06b6d4;
    --sidebar-width: 260px;
    --header-height: 56px;
    --radius: 10px;
    --radius-sm: 6px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'IBM Plex Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ===== LOGIN SCREEN ===== */
.login-screen {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #070c18;
    background-image:
        radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.022) 1px, transparent 0),
        radial-gradient(ellipse 90% 70% at 15% 40%, rgba(29, 78, 216, 0.14) 0%, transparent 65%),
        radial-gradient(ellipse 70% 60% at 85% 15%, rgba(109, 40, 217, 0.1) 0%, transparent 65%),
        radial-gradient(ellipse 50% 40% at 50% 100%, rgba(59, 130, 246, 0.06) 0%, transparent 50%);
    background-size: 28px 28px, 100% 100%, 100% 100%, 100% 100%;
}

.login-container {
    width: 100%;
    max-width: 400px;
    padding: 2rem;
}

.login-logo {
    text-align: center;
    margin-bottom: 2rem;
}

.login-logo .logo-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #1d4ed8, #6d28d9);
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    box-shadow: 0 4px 24px rgba(59, 130, 246, 0.4), 0 0 0 1px rgba(59, 130, 246, 0.15);
}

.login-logo h1 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #e2e8f0;
    letter-spacing: -0.02em;
}

.login-logo p {
    font-size: 0.8rem;
    color: #2d3d57;
    margin-top: 0.35rem;
    font-weight: 400;
    letter-spacing: 0.01em;
}

.login-box {
    background: #0a1020;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 14px;
    padding: 2rem;
    box-shadow: 0 8px 48px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(59, 130, 246, 0.04);
}

.login-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 1.5rem;
    background: rgba(0, 0, 0, 0.35);
    border-radius: var(--radius-sm);
    padding: 3px;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.login-tab {
    flex: 1;
    padding: 0.5rem;
    background: none;
    border: none;
    color: #2d3d57;
    font-size: 0.83rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s;
}

.login-tab:hover {
    color: #64748b;
}

.login-tab.active {
    background: rgba(59, 130, 246, 0.12);
    color: #93c5fd;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.login-form { display: block; }
.login-form.hidden { display: none; }

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.35rem;
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 0.6rem 0.75rem;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.9rem;
    font-family: inherit;
    transition: border-color 0.2s;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-group textarea {
    resize: vertical;
    font-family: 'IBM Plex Mono', 'Fira Code', 'Consolas', monospace;
    font-size: 0.8rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-primary {
    background: var(--accent);
    color: white;
    width: 100%;
}

.btn-primary:hover { background: var(--accent-hover); }
.btn-primary:disabled { background: #334155; cursor: not-allowed; color: var(--text-muted); }

.btn-purple {
    background: var(--purple);
    color: white;
}

.btn-purple:hover { background: var(--purple-hover); }

.btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

.btn-ghost:hover {
    background: var(--bg-input);
    border-color: var(--border-hover);
}

.login-error {
    margin-top: 1rem;
    padding: 0.6rem 0.875rem;
    background: rgba(127, 29, 29, 0.4);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: var(--radius-sm);
    color: #fca5a5;
    font-size: 0.8rem;
    display: none;
    letter-spacing: 0.01em;
}

.login-error.show { display: block; }

.login-box .form-group input {
    background: rgba(0, 0, 0, 0.35);
    border-color: rgba(255, 255, 255, 0.07);
}

.login-box .form-group input:focus {
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.login-box .form-group label {
    color: #3d5170;
}

/* ===== APP LAYOUT ===== */
.app-layout {
    display: none;
    min-height: 100vh;
    position: relative;
}

.app-layout.active {
    display: flex;
    opacity: 1;
    visibility: visible;
}

/* ===== SIDEBAR ===== */
.sidebar {
    width: var(--sidebar-width);
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    background: #070c18;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 4px 0 32px rgba(0, 0, 0, 0.45);
    display: flex;
    flex-direction: column;
    z-index: 1000;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
}

.sidebar-header {
    padding: 1.25rem 1.25rem 1.1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sidebar-brand .brand-icon {
    width: 34px;
    height: 34px;
    background: linear-gradient(135deg, #1d4ed8, #6d28d9);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 10px rgba(59, 130, 246, 0.35);
}

.sidebar-brand .brand-text h2 {
    font-size: 0.9rem;
    font-weight: 600;
    color: #e2e8f0;
    letter-spacing: -0.01em;
    line-height: 1.2;
}

.sidebar-brand .brand-text span {
    font-size: 0.68rem;
    color: #4b5a72;
    letter-spacing: 0.03em;
    font-weight: 400;
}

.sidebar-nav {
    flex: 1;
    padding: 1rem 0.75rem;
    overflow-y: auto;
}

.nav-section {
    margin-bottom: 1.5rem;
}

.nav-section-title {
    font-size: 0.63rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #2d3d57;
    padding: 0 0.625rem;
    margin-bottom: 0.4rem;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.575rem 0.625rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background 0.15s, color 0.15s, box-shadow 0.15s;
    font-size: 0.83rem;
    font-weight: 400;
    color: #64748b;
    user-select: none;
    position: relative;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.04);
    color: #94a3b8;
}

.nav-item.active {
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.14) 0%, rgba(59, 130, 246, 0.05) 100%);
    color: #93c5fd;
    font-weight: 500;
    box-shadow: inset 2.5px 0 0 #3b82f6;
}

.nav-item.active.purple-active {
    background: linear-gradient(90deg, rgba(139, 92, 246, 0.14) 0%, rgba(139, 92, 246, 0.05) 100%);
    color: #c4b5fd;
    box-shadow: inset 2.5px 0 0 #8b5cf6;
}

.nav-icon {
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    opacity: 0.85;
}

.nav-item.active .nav-icon,
.nav-item:hover .nav-icon {
    opacity: 1;
}

.nav-svg {
    width: 15px;
    height: 15px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.sidebar-footer {
    padding: 1rem 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(0, 0, 0, 0.2);
}

.user-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: linear-gradient(135deg, #1d4ed8, #6d28d9);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 1px 8px rgba(59, 130, 246, 0.3);
}

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

.user-info .name {
    font-size: 0.8rem;
    font-weight: 500;
    color: #cbd5e1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-info .role {
    font-size: 0.68rem;
    color: #2d3d57;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.logout-btn {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: #2d3d57;
    cursor: pointer;
    padding: 0.35rem;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
}

.logout-btn:hover {
    color: var(--red);
    border-color: rgba(239, 68, 68, 0.25);
    background: rgba(239, 68, 68, 0.08);
}

/* ===== MAIN CONTENT ===== */
.main-content {
    margin-left: var(--sidebar-width);
    flex: 1;
    min-height: 100vh;
    background: var(--bg-primary);
}

.page-header {
    padding: 1.5rem 2rem 0;
}

.page-header h1 {
    font-size: 1.35rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.page-header p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

.page-content {
    padding: 1.5rem 2rem 2rem;
}

.page { display: none; }
.page.active { display: block; }

/* ===== CARDS ===== */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: 0 1px 16px rgba(0, 0, 0, 0.25);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.card-title {
    font-size: 0.95rem;
    font-weight: 600;
}

.card-subtitle {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 0.15rem;
}

/* ===== STATS GRID ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    box-shadow: 0 1px 12px rgba(0, 0, 0, 0.2);
    transition: border-color 0.2s;
}

.stat-card:hover {
    border-color: var(--border-hover);
}

.stat-card .stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.stat-card .stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}

.stat-card .stat-value.blue { color: var(--accent); }
.stat-card .stat-value.purple { color: var(--purple); }
.stat-card .stat-value.green { color: var(--green); }
.stat-card .stat-value.orange { color: var(--orange); }

.stat-card .stat-detail {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 0.35rem;
}

/* ===== GRID LAYOUTS ===== */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.grid-full {
    grid-column: 1 / -1;
}

/* ===== TABLE ===== */
.table-container {
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8rem;
}

thead th {
    background: var(--bg-secondary);
    padding: 0.75rem 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    white-space: nowrap;
}

tbody td {
    padding: 0.65rem 1rem;
    border-bottom: 1px solid var(--border);
    color: var(--text-primary);
    max-width: 250px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

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

tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.table-scrollable {
    max-height: 500px;
    overflow-y: auto;
}

/* ===== BADGE ===== */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.badge-blue { background: rgba(59, 130, 246, 0.15); color: var(--accent); }
.badge-purple { background: rgba(139, 92, 246, 0.15); color: var(--purple); }
.badge-green { background: rgba(34, 197, 94, 0.15); color: var(--green); }
.badge-orange { background: rgba(245, 158, 11, 0.15); color: var(--orange); }
.badge-red { background: rgba(239, 68, 68, 0.15); color: var(--red); }
.badge-gray { background: rgba(148, 163, 184, 0.1); color: var(--text-secondary); }

/* ===== RESPONSE BOX ===== */
.response-box {
    margin-top: 1rem;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1rem;
    max-height: 350px;
    overflow-y: auto;
}

.response-box pre {
    font-family: 'IBM Plex Mono', 'Fira Code', 'Consolas', monospace;
    font-size: 0.78rem;
    white-space: pre-wrap;
    word-break: break-all;
    line-height: 1.5;
}

.response-box .success { color: var(--green); }
.response-box .error { color: var(--red); }
.response-box .info { color: var(--text-muted); }

/* ===== INVITE CODE DISPLAY ===== */
.invite-display {
    text-align: center;
    padding: 1.5rem;
    background: var(--bg-input);
    border: 1px dashed var(--purple);
    border-radius: var(--radius);
    margin-top: 1rem;
    display: none;
}

.invite-display.show { display: block; }

.invite-display .code {
    font-family: 'IBM Plex Mono', 'Fira Code', monospace;
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: var(--purple);
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
    display: inline-block;
}

.invite-display .code:hover {
    background: var(--purple-glow);
}

.invite-display .code.copied {
    color: var(--green);
}

.invite-display .hint {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.75rem;
}

/* ===== SEARCH BAR ===== */
.search-bar {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
    align-items: center;
}

.search-bar input {
    flex: 1;
    padding: 0.55rem 0.75rem;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.85rem;
    font-family: inherit;
}

.search-bar input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.search-bar select {
    padding: 0.55rem 0.75rem;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.85rem;
    font-family: inherit;
}

.search-bar select:focus {
    outline: none;
    border-color: var(--accent);
}

/* ===== TOAST ===== */
.toast-container {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.toast {
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    animation: toastIn 0.3s ease-out;
    min-width: 280px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.toast.success { background: var(--green-soft); color: #86efac; border: 1px solid rgba(34, 197, 94, 0.3); }
.toast.error { background: var(--red-soft); color: #fca5a5; border: 1px solid rgba(239, 68, 68, 0.3); }
.toast.info { background: rgba(59, 130, 246, 0.15); color: #93c5fd; border: 1px solid rgba(59, 130, 246, 0.3); }

.toast.fade-out {
    animation: toastOut 0.3s ease-in forwards;
}

@keyframes toastIn {
    from { opacity: 0; transform: translateX(1rem); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes toastOut {
    from { opacity: 1; transform: translateX(0); }
    to { opacity: 0; transform: translateX(1rem); }
}

/* ===== EMPTY STATE ===== */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-muted);
}

.empty-state .icon { font-size: 2.5rem; margin-bottom: 0.75rem; }
.empty-state p { font-size: 0.85rem; }

/* ===== LOADING SPINNER ===== */
.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===== MOBILE ===== */
.mobile-header {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    padding: 0 1rem;
    align-items: center;
    gap: 0.75rem;
    z-index: 99;
}

.menu-toggle {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.3rem;
    cursor: pointer;
    padding: 0.3rem;
}

.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 99;
}

@media (max-width: 768px) {
    .mobile-header {
        display: flex;
    }

    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .sidebar-overlay.open {
        display: block;
    }

    .main-content {
        margin-left: 0;
        padding-top: var(--header-height);
    }

    .page-header, .page-content {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .grid-2 {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
}

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

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #1e2d45; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #2d4a6f; }
.sidebar ::-webkit-scrollbar-thumb { background: #0f1a2e; }

/* ===== INLINE HELPERS ===== */
.flex { display: flex; }
.flex-center { display: flex; align-items: center; }
.gap-sm { gap: 0.5rem; }
.gap-md { gap: 0.75rem; }
.mt-1 { margin-top: 1rem; }
.mb-1 { margin-bottom: 1rem; }
.text-muted { color: var(--text-muted); }
.text-sm { font-size: 0.8rem; }
.text-xs { font-size: 0.7rem; }
.mono { font-family: 'IBM Plex Mono', 'Fira Code', 'Consolas', monospace; }

/* ===== MODAL ===== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 2rem;
}

.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.modal-header h2 {
    margin: 0;
    font-size: 1.25rem;
    color: var(--text-primary);
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-secondary);
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

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

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

/* ===== USER ACTIONS ===== */
.user-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-icon-only {
    width: 32px;
    height: 32px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 1rem;
}

.btn-edit {
    background: var(--accent);
    color: white;
}

.btn-edit:hover {
    background: #5b63ff;
    transform: translateY(-2px);
}

.btn-delete {
    background: var(--danger);
    color: white;
}

.btn-delete:hover {
    background: #dc2626;
    transform: translateY(-2px);
}

/* ===== ROLE BADGE ===== */
.role-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.role-badge.admin {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.role-badge.user {
    background: var(--bg-secondary);
    color: var(--text-secondary);
}
