@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Inter:wght@400;500;600&display=swap');

/* ── DARK MODE (default) ── */
:root {
    --bg-main: #06080f;
    --bg-surface: #0c111d;
    --bg-card: rgba(17, 24, 39, 0.7);
    --border-soft: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.15);
    --border: rgba(255,255,255,0.18);

    --primary: #3b82f6;
    --primary-glow: rgba(59, 130, 246, 0.5);
    --accent: #8b5cf6;
    --accent-glow: rgba(139, 92, 246, 0.5);

    --text-title: #ffffff;
    --text-body: #cbd5e1;
    --text-muted: #64748b;

    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --shadow-float: 0 10px 40px -10px rgba(0,0,0,0.6);

    --input-bg: rgba(0,0,0,0.2);
    --select-bg: rgba(255,255,255,0.05);
    --select-color: #fff;
    --nav-bg: rgba(12, 17, 29, 0.85);
    --glass-bg: rgba(17, 24, 39, 0.7);
}

/* ── LIGHT MODE ── */
body.light-mode {
    --bg-main: #f0f4f8;
    --bg-surface: #ffffff;
    --bg-card: rgba(255, 255, 255, 0.95);
    --border-soft: rgba(0, 0, 0, 0.08);
    --border-strong: rgba(0, 0, 0, 0.15);
    --border: rgba(0,0,0,0.18);

    --primary: #2563eb;
    --primary-glow: rgba(37, 99, 235, 0.3);
    --accent: #7c3aed;
    --accent-glow: rgba(124, 58, 237, 0.3);

    --text-title: #0f172a;
    --text-body: #334155;
    --text-muted: #64748b;

    --success: #059669;
    --danger: #dc2626;
    --warning: #d97706;

    --shadow-float: 0 10px 40px -10px rgba(0,0,0,0.15);
    --input-bg: rgba(0,0,0,0.04);
    --select-bg: rgba(0,0,0,0.04);
    --select-color: #0f172a;
    --nav-bg: rgba(255, 255, 255, 0.9);
    --glass-bg: rgba(255, 255, 255, 0.95);
}

body.light-mode {
    background-image:
        radial-gradient(circle at 10% 20%, rgba(37, 99, 235, 0.05), transparent 25%),
        radial-gradient(circle at 90% 80%, rgba(124, 58, 237, 0.05), transparent 25%);
}

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

body {
    background-color: var(--bg-main);
    color: var(--text-body);
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
    background-image:
        radial-gradient(circle at 10% 20%, rgba(59, 130, 246, 0.06), transparent 25%),
        radial-gradient(circle at 90% 80%, rgba(139, 92, 246, 0.06), transparent 25%);
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    overflow-x: hidden;
    transition: background-color 0.3s, color 0.3s;
}

h1, h2, h3, h4, h5 { font-family: 'Outfit', sans-serif; color: var(--text-title); line-height: 1.2; margin-bottom: 0.5em; }
h1 { font-size: 2.25rem; font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: 1.5rem; font-weight: 600; }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin-bottom: 1rem; line-height: 1.6; }

#app-wrapper { width: 100%; max-width: 1100px; margin: 0 auto; display: flex; flex-direction: column; min-height: 100vh; }
@media (min-width: 1100px) {
    #app-wrapper { margin: 20px auto; border-radius: var(--radius-lg); background: var(--bg-surface); box-shadow: 0 0 0 1px var(--border-soft), var(--shadow-float); min-height: calc(100vh - 40px); overflow: hidden; }
}

.top-nav { display: flex; align-items: center; justify-content: space-between; padding: 16px 24px; background: var(--nav-bg); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border-soft); position: sticky; top: 0; z-index: 50; transition: background 0.3s; }
.nav-left, .nav-right { display: flex; align-items: center; gap: 16px; }

/* Theme & Language toggle buttons in nav */
.nav-controls { display: flex; align-items: center; gap: 8px; }

.theme-toggle, .lang-toggle {
    display: flex; align-items: center; gap: 6px;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--border-soft);
    border-radius: 20px;
    padding: 5px 12px;
    cursor: pointer;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
    transition: all 0.2s;
    white-space: nowrap;
}
body.light-mode .theme-toggle, body.light-mode .lang-toggle {
    background: rgba(0,0,0,0.04);
}
.theme-toggle:hover, .lang-toggle:hover {
    background: rgba(255,255,255,0.1);
    color: var(--text-title);
    border-color: var(--border-strong);
}
body.light-mode .theme-toggle:hover, body.light-mode .lang-toggle:hover {
    background: rgba(0,0,0,0.08);
}

.brand { display: flex; align-items: center; gap: 8px; font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 1.25rem; color: var(--text-title); cursor: pointer; }
.brand-icon { color: var(--primary); display: flex; align-items: center; }

/* Nav menu button (3-line hamburger) next to brand */
.nav-menu-btn {
    width: 42px; height: 42px;
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    color: var(--text-title);
    cursor: pointer;
    transition: all 0.2s;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--border-soft) !important;
}
.nav-menu-btn:hover {
    background: rgba(255,255,255,0.12);
    border-color: var(--border-strong) !important;
    transform: scale(1.05);
}
body.light-mode .nav-menu-btn {
    background: rgba(0,0,0,0.04);
}
body.light-mode .nav-menu-btn:hover {
    background: rgba(0,0,0,0.08);
}

.user-profile { display: flex; align-items: center; gap: 12px; }
.user-info { display: flex; flex-direction: column; align-items: flex-end; }
.user-name { font-weight: 600; color: var(--text-title); font-size: 0.875rem; }
.user-company { font-size: 0.75rem; color: var(--text-muted); }

/* Avatar — can be photo or initials */
.avatar {
    width: 36px; height: 36px; border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 0.875rem; font-family: 'Outfit';
    overflow: hidden;
    flex-shrink: 0;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }

/* Profile photo upload area */
.photo-upload-area {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
    padding: 16px;
    background: rgba(255,255,255,0.03);
    border: 1px dashed var(--border-strong);
    border-radius: var(--radius-md);
}
body.light-mode .photo-upload-area { background: rgba(0,0,0,0.03); }
.photo-preview-circle {
    width: 72px; height: 72px; border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 1.5rem; font-family: 'Outfit';
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
    cursor: pointer;
}
.photo-preview-circle img { width: 100%; height: 100%; object-fit: cover; }
.photo-upload-btn-group { display: flex; flex-direction: column; gap: 8px; }
.photo-upload-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 16px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--text-title);
    cursor: pointer;
    font-size: 0.85rem;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    transition: all 0.2s;
}
.photo-upload-btn:hover { background: rgba(255,255,255,0.05); }
body.light-mode .photo-upload-btn:hover { background: rgba(0,0,0,0.05); }
.photo-upload-note { font-size: 0.75rem; color: var(--text-muted); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 24px; border-radius: var(--radius-sm); font-weight: 600; font-family: 'Inter', sans-serif; font-size: 0.95rem; cursor: pointer; transition: all 0.2s ease; border: none; outline: none; }
.btn-primary { background: linear-gradient(135deg, var(--primary), #2563eb); color: #fff; box-shadow: 0 4px 14px var(--primary-glow); }
.btn-primary:hover { box-shadow: 0 6px 20px var(--primary-glow); transform: translateY(-1px); }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-outline { background: transparent; border: 1px solid var(--border-strong); color: var(--text-title); }
.btn-outline:hover { background: rgba(255,255,255,0.05); }
body.light-mode .btn-outline:hover { background: rgba(0,0,0,0.05); }
.btn-large { width: 100%; padding: 16px; font-size: 1.05rem; border-radius: var(--radius-md); }

.btn-icon { background: transparent; border: 1px solid transparent; color: var(--text-muted); border-radius: var(--radius-sm); width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.2s; }
.btn-icon:hover { background: rgba(255,255,255,0.05); color: var(--text-title); }
body.light-mode .btn-icon:hover { background: rgba(0,0,0,0.06); }
.btn-icon.danger:hover { color: var(--danger); background: rgba(239, 68, 68, 0.1); }

main { flex: 1; position: relative; padding: 32px 24px; overflow-y: auto; }
.view { display: none; animation: fadeIn 0.3s ease; }
.view.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.glass-panel {
    background: var(--glass-bg);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    padding: 32px;
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 24px rgba(0,0,0,0.2);
    margin-bottom: 24px;
}
body.light-mode .glass-panel { box-shadow: 0 4px 24px rgba(0,0,0,0.08); }

.form-group { margin-bottom: 24px; text-align: left; }
.form-group label { display: block; font-size: 0.875rem; font-weight: 500; color: var(--text-title); margin-bottom: 8px; }
input[type="text"], input[type="email"], input[type="password"], input[type="number"], input[type="date"], select, textarea {
    width: 100%;
    padding: 14px 16px;
    background: var(--input-bg);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    color: var(--text-title);
    font-size: 0.95rem;
    transition: all 0.2s;
    font-family: 'Inter', sans-serif;
    resize: vertical;
}
select { background: var(--select-bg); color: var(--select-color); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); background: rgba(0,0,0,0.4); box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15); }
body.light-mode input:focus, body.light-mode select:focus, body.light-mode textarea:focus {
    background: rgba(255,255,255,0.9);
}

.selection-grid { display: flex; flex-direction: column; gap: 12px; margin-bottom: 12px; }
.selection-card { position: relative; cursor: pointer; display: block; }
.selection-card input { position: absolute; opacity: 0; cursor: pointer; height: 0; width: 0; }
.selection-content { display: flex; align-items: center; padding: 14px 16px; background: rgba(255,255,255,0.02); border: 1px solid var(--border-soft); border-radius: var(--radius-md); transition: all 0.25s ease; }
body.light-mode .selection-content { background: rgba(0,0,0,0.02); }
.selection-card:hover .selection-content { border-color: var(--border-strong); background: rgba(255,255,255,0.04); }
body.light-mode .selection-card:hover .selection-content { background: rgba(0,0,0,0.04); }
.selection-card input:checked ~ .selection-content { border-color: var(--primary); background: rgba(59, 130, 246, 0.08); box-shadow: 0 0 0 1px var(--primary); }
.selection-icon { margin-right: 12px; color: var(--text-muted); display: flex; align-items: center; transition: color 0.25s; }
.selection-card input:checked ~ .selection-content .selection-icon { color: var(--primary); }
.selection-text { font-weight: 500; font-size: 0.9rem; color: var(--text-body); transition: color 0.25s; }
.selection-card input:checked ~ .selection-content .selection-text { color: var(--text-title); }

.check-indicator { width: 20px; height: 20px; border: 2px solid var(--border-strong); border-radius: 4px; margin-right: 12px; display: flex; align-items: center; justify-content: center; transition: all 0.2s; }
.selection-card.radio .check-indicator { border-radius: 50%; }
.check-indicator i, .check-indicator svg { opacity: 0; width: 14px; height: 14px; color: var(--bg-main); transition: opacity 0.2s; }
.selection-card input:checked ~ .selection-content .check-indicator { background: var(--primary); border-color: var(--primary); }
.selection-card input:checked ~ .selection-content .check-indicator i, .selection-card input:checked ~ .selection-content .check-indicator svg { opacity: 1; }

.dash-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 24px; align-items: stretch; }
@media (max-width: 900px) { .dash-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .dash-grid { grid-template-columns: 1fr; } }
.dash-card { background: var(--bg-card); border: 1px solid var(--border-soft); border-radius: var(--radius-md); padding: 18px; cursor: pointer; transition: all 0.3s ease; display: flex; flex-direction: column; align-items: flex-start; height: 100%; box-sizing: border-box; }
.dash-card:hover { border-color: var(--border-strong); transform: translateY(-4px); box-shadow: 0 12px 30px rgba(0,0,0,0.3); }
body.light-mode .dash-card:hover { box-shadow: 0 12px 30px rgba(0,0,0,0.1); }
.dash-icon-wrapper { width: 40px; height: 40px; border-radius: var(--radius-sm); background: rgba(255,255,255,0.05); display: flex; align-items: center; justify-content: center; color: var(--primary); margin-bottom: 12px; }
body.light-mode .dash-icon-wrapper { background: rgba(0,0,0,0.04); }
.dash-icon-wrapper.icon-accent { color: var(--accent); background: rgba(139, 92, 246, 0.1); }
.dash-icon-wrapper.icon-warning { color: var(--warning); background: rgba(245, 158, 11, 0.1); }
.dash-icon-wrapper.icon-success { color: var(--success); background: rgba(16, 185, 129, 0.1); }
.dash-icon-wrapper.icon-danger { color: var(--danger); background: rgba(239, 68, 68, 0.1); }

.dash-title { font-size: 1.1rem; font-weight: 600; color: var(--text-title); margin-bottom: 8px; text-transform: uppercase; }
.dash-desc { font-size: 0.85rem; color: var(--text-muted); }

.premium-badge { background: linear-gradient(135deg, #fbbf24, #d97706); color: #000; font-size: 0.7rem; font-weight: 800; padding: 4px 8px; border-radius: 4px; letter-spacing: 0.05em; margin-bottom: 12px; display: inline-block; }
.module-badge { display: inline-flex; align-items: center; gap: 6px; background: rgba(139, 92, 246, 0.15); color: #c4b5fd; padding: 6px 12px; border-radius: 20px; font-size: 0.75rem; font-weight: 600; margin-bottom: 16px; border: 1px solid rgba(139, 92, 246, 0.3); }

/* Consulting booked badge in dashboard */
.consulting-booked-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: var(--success);
    border-radius: 6px;
    padding: 5px 10px;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
    text-decoration: none;
    margin-top: auto;
    align-self: flex-start;
}
.consulting-booked-badge:hover { background: rgba(16, 185, 129, 0.25); }

.section-header { margin-bottom: 32px; text-align: center; }
.form-section { border-bottom: 1px solid var(--border-soft); padding-bottom: 32px; margin-bottom: 32px; }
.form-section:last-child { border-bottom: none; }
.form-section h3 { color: var(--primary); margin-bottom: 4px; }

/* History Colors */
.history-item { display: flex; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--border-soft); background: rgba(255,255,255,0.02); border-radius: 8px; margin-bottom: 8px; border-left: 4px solid transparent; }
body.light-mode .history-item { background: rgba(0,0,0,0.02); }
.history-success { border-left-color: var(--success); background: rgba(16,185,129,0.05); }
.history-warning { border-left-color: var(--warning); background: rgba(245,158,11,0.05); }
.history-danger { border-left-color: var(--danger); background: rgba(239,68,68,0.05); }
.history-primary { border-left-color: var(--primary); background: rgba(59,130,246,0.05); }
.history-icon { width: 36px; height: 36px; border-radius: 8px; display: flex; align-items: center; justify-content: center; margin-right: 16px; }

.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.kpi-card { background: rgba(0,0,0,0.2); border: 1px solid var(--border-soft); border-radius: var(--radius-md); padding: 24px; display: flex; flex-direction: column; text-align: center; }
body.light-mode .kpi-card { background: rgba(0,0,0,0.04); }

.markdown-container { color: var(--text-body); font-size: 0.95rem; line-height: 1.7; text-align:left; }
.markdown-container h1, .markdown-container h2, .markdown-container h3, .markdown-container h4 { color: var(--text-title); margin-top: 1.5em; margin-bottom: 0.5em; border-bottom: 1px solid var(--border-soft); padding-bottom: 8px; font-family: 'Outfit'; }
/* FAQ items already have their own bottom separator on the wrapper div, so the h3
   question title should not draw an extra short underline. Keep the long separator only. */
#faq-content h3 { border-bottom: none; padding-bottom: 0; margin-top: 0; }
.markdown-container ul, .markdown-container ol { margin-left: 20px; margin-bottom: 1em; }
.markdown-container li { margin-bottom: 8px; }
.markdown-container strong { color: var(--primary); }
.result-actions { display: flex; gap: 16px; margin-top: 32px; justify-content: center;}

#loader-overlay { position: fixed; inset: 0; background: rgba(6, 8, 15, 0.9); backdrop-filter: blur(8px); display: none; flex-direction: column; align-items: center; justify-content: center; z-index: 100; }

.modal-overlay { position: fixed; inset: 0; background: rgba(6, 8, 15, 0.85); backdrop-filter: blur(8px); display: none; align-items: center; justify-content: center; z-index: 100; opacity: 1; transition: opacity 0.3s; }
.modal-overlay.active { display: flex; }
.modal-content { width: 90%; max-width: 500px; margin: 0; animation: scaleUp 0.3s cubic-bezier(0.16, 1, 0.3, 1); }
@keyframes scaleUp { from { opacity: 0; transform: scale(0.95) translateY(10px); } to { opacity: 1; transform: scale(1) translateY(0); } }
.spinner { width: 60px; height: 60px; border: 4px solid rgba(59, 130, 246, 0.2); border-top-color: var(--primary); border-radius: 50%; animation: spin 1s linear infinite; margin-bottom: 24px; }
@keyframes spin { to { transform: rotate(360deg); } }
.loader-text { font-family: 'Outfit'; font-size: 1.25rem; font-weight: 600; color: #fff; animation: pulse 1.5s infinite; text-align: center; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.6; } }

.hidden { display: none !important; }
.text-center { text-align: center; }
.mt-4 { margin-top: 16px; }
.mt-8 { margin-top: 32px; }
.glass-result { background: linear-gradient(180deg, rgba(30, 41, 59, 0.6) 0%, rgba(15, 23, 42, 0.6) 100%); border-top: 4px solid var(--primary); }
body.light-mode .glass-result { background: linear-gradient(180deg, rgba(240, 244, 255, 0.9) 0%, rgba(220, 232, 255, 0.8) 100%); }

/* Evaluated badge */
.eval-badge {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: 0.72rem; font-weight: 700;
    color: var(--success);
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: 6px; padding: 4px 8px;
    margin-top: auto; align-self: flex-start; line-height: 1.3;
}
.eval-badge.pending {
    color: var(--text-muted);
    background: rgba(255,255,255,0.03);
    border-color: rgba(255,255,255,0.07);
    font-weight: 500;
}
body.light-mode .eval-badge.pending { background: rgba(0,0,0,0.04); border-color: rgba(0,0,0,0.08); }
.eval-date { display: inline; margin-left: 4px; font-size: 0.68rem; font-weight: 500; color: rgba(16, 185, 129, 0.7); }

/* Dropdown menu in nav */
#dropdown-menu { background: var(--glass-bg) !important; }
body.light-mode #dropdown-menu div { color: var(--text-title) !important; }
body.light-mode #dropdown-menu div:hover { background: rgba(0,0,0,0.05); border-radius: 6px; }

/* Password strength / match indicator */
.pass-match-ok { color: var(--success); font-size: 0.78rem; margin-top: 6px; display: flex; align-items: center; gap: 4px; }
.pass-match-err { color: var(--danger); font-size: 0.78rem; margin-top: 6px; display: flex; align-items: center; gap: 4px; }

/* Forgot password link */
.forgot-link {
    font-size: 0.82rem;
    color: var(--primary);
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.2s;
    display: inline-block;
    margin-top: 6px;
}
.forgot-link:hover { opacity: 0.8; text-decoration: underline; }

/* Settings Confirm Modal */
#modal-settings-confirm .glass-panel { max-height: 85vh; overflow-y: auto; }

/* Photo upload previews */
.photo-upload-circle {
    width: 80px; height: 80px; border-radius: 50%; overflow: hidden;
    background: rgba(255,255,255,0.05); border: 2px dashed var(--border);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 12px; transition: border-color 0.2s;
}
.photo-upload-circle:hover { border-color: var(--primary); }
.photo-upload-circle img { width: 100%; height: 100%; object-fit: cover; }
body.light-mode .photo-upload-circle { background: rgba(0,0,0,0.03); }

/* Nav avatar image overflow */
.avatar { overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Light mode text fixes for inline styles using #fff */
body.light-mode .history-item div[style*="color:#fff"],
body.light-mode .history-item div[style*="color: #fff"] { color: var(--text-title) !important; }
body.light-mode .modal-content div[style*="color:#fff"],
body.light-mode .modal-content div[style*="color: #fff"] { color: var(--text-title) !important; }

/* Responsive nav controls */
@media (max-width: 640px) {
    .theme-toggle span, .lang-toggle span { display: none; }
    .theme-toggle, .lang-toggle { padding: 5px 8px; }
    .nav-controls { gap: 4px; }
}

/* ════════════════════════════════════════════════════════════════
   ADMIN PANEL — Master HR
   ════════════════════════════════════════════════════════════════ */
.admin-users-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
@media (max-width: 900px) { .admin-users-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .admin-users-grid { grid-template-columns: 1fr; } }

.admin-user-card {
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    padding: 20px;
    cursor: pointer;
    transition: transform 0.18s, box-shadow 0.18s;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.admin-user-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}
.admin-card-header { display: flex; align-items: center; gap: 12px; }
.admin-avatar {
    width: 46px; height: 46px; min-width: 46px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}
.admin-card-name {
    font-family: 'Outfit'; font-weight: 600; font-size: 0.95rem;
    color: var(--text-title);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.admin-card-company {
    font-size: 0.8rem; color: var(--text-muted); margin-top: 2px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.admin-card-industry {
    display: flex; align-items: center; gap: 6px;
    font-size: 0.78rem; color: var(--text-muted);
    background: rgba(255,255,255,0.04); border-radius: 6px;
    padding: 5px 8px; border: 1px solid var(--border-soft);
}
.admin-card-meta {
    display: flex; gap: 12px; font-size: 0.78rem; color: var(--text-muted);
}
.admin-card-stats {
    display: flex; gap: 0; border: 1px solid var(--border-soft);
    border-radius: 8px; overflow: hidden;
}
.admin-stat {
    flex: 1; display: flex; flex-direction: column; align-items: center;
    padding: 8px 4px; border-right: 1px solid var(--border-soft);
}
.admin-stat:last-child { border-right: none; }
.admin-stat-num { font-weight: 700; font-size: 1rem; font-family: 'Outfit'; }
.admin-stat-lbl { font-size: 0.7rem; color: var(--text-muted); margin-top: 1px; }
.admin-card-footer {
    display: flex; align-items: center; justify-content: center; gap: 6px;
    font-size: 0.78rem; color: var(--text-muted);
    border-top: 1px solid var(--border-soft); padding-top: 10px;
    transition: color 0.15s;
}
.admin-user-card:hover .admin-card-footer { color: var(--accent); }

/* Admin modal tabs */
.admin-tab-btn {
    flex: 1; padding: 8px 10px; border-radius: 7px; border: none; cursor: pointer;
    background: transparent; color: var(--text-muted);
    font-size: 0.82rem; font-family: 'Outfit'; font-weight: 500;
    display: flex; align-items: center; justify-content: center; gap: 5px;
    transition: background 0.15s, color 0.15s;
}
.admin-tab-btn:hover { background: rgba(255,255,255,0.06); color: var(--text-body); }
.admin-tab-btn.active { background: var(--bg-card-hover); color: var(--accent); font-weight: 600; }

/* Admin profile fields */
.admin-profile-field {
    padding: 10px 0; border-bottom: 1px solid var(--border-soft);
}
.admin-profile-field:last-child { border-bottom: none; }
.admin-profile-label {
    display: flex; align-items: center; gap: 6px;
    font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.07em;
    color: var(--text-muted); font-weight: 600; margin-bottom: 4px;
}
.admin-profile-val { font-size: 0.9rem; color: var(--text-body); line-height: 1.5; }

/* Admin history items */
.admin-hist-item {
    display: flex; align-items: flex-start; gap: 10px;
    padding: 10px 0; border-bottom: 1px solid var(--border-soft);
}
.admin-hist-item:last-child { border-bottom: none; }

/* Admin history cards */
.admin-hist-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border-soft);
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}
.admin-hist-card:hover {
    background: rgba(255,255,255,0.06);
    border-color: rgba(139,92,246,0.25);
}
.admin-hist-card:last-child { margin-bottom: 0; }

.admin-hist-card-clickable { cursor: pointer; }
.admin-hist-card-clickable:hover {
    background: rgba(255,255,255,0.07);
    border-color: rgba(139,92,246,0.3);
    transform: translateX(2px);
}
