:root {
    --primary: #6C3BF5;
    --primary-dark: #5A2DE0;
    --primary-light: #8B6FF7;
    --secondary: #00D4AA;
    --accent: #FF6B6B;
    --dark: #1a1a2e;
    --darker: #16213e;
    --darkest: #0f0f23;
    --card-dark: #1e1e3a;
    --light: #f8f9fe;
    --gray: #6c757d;
    --gray-light: #e9ecef;
    --gray-dark: #343a40;
    --success: #28a745;
    --danger: #dc3545;
    --warning: #ffc107;
    --info: #17a2b8;
    --radius: 16px;
    --radius-sm: 8px;
    --radius-lg: 24px;
    --shadow: 0 4px 24px rgba(108, 59, 245, 0.10);
    --shadow-lg: 0 8px 40px rgba(108, 59, 245, 0.15);
    --transition: all 0.3s cubic-bezier(.4,0,.2,1);
    --bg-gradient: linear-gradient(135deg, #6C3BF5 0%, #00D4AA 100%);
    --gradient-1: linear-gradient(135deg, #6C3BF5, #8B6FF7);
    --gradient-2: linear-gradient(135deg, #00D4AA, #00B4D8);
    --gradient-3: linear-gradient(135deg, #FF6B6B, #FFB347);
    --gradient-4: linear-gradient(135deg, #17a2b8, #6610f2);
    --glass-bg: rgba(255,255,255,0.08);
    --glass-border: rgba(255,255,255,0.12);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--light);
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; height: auto; }

/* ===== CONTAINER ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
@media (max-width: 768px) { .container { padding: 0 16px; } }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--light); }
::-webkit-scrollbar-thumb { background: var(--gray-light); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gray); }

/* ===== GLASSMORPHISM ===== */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
}
.glass-card {
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}
.glass-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 28px; border-radius: var(--radius-sm);
    font-weight: 600; font-size: 15px;
    border: none; cursor: pointer;
    transition: all 0.3s cubic-bezier(.4,0,.2,1);
    text-decoration: none; white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn-primary {
    background: var(--bg-gradient);
    color: #fff; box-shadow: 0 4px 15px rgba(108,59,245,0.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(108,59,245,0.4); }
.btn-secondary {
    background: var(--glass-bg);
    color: var(--dark);
    border: 1px solid var(--glass-border);
}
.btn-secondary:hover { background: rgba(108,59,245,0.1); }
.btn-success { background: var(--success); color: #fff; }
.btn-success:hover { background: #218838; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #c82333; }
.btn-warning { background: var(--warning); color: var(--dark); }
.btn-info { background: var(--info); color: #fff; }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-lg { padding: 16px 36px; font-size: 17px; }
@media (max-width: 480px) { .btn-lg { padding: 14px 24px; font-size: 15px; } }
.btn-block { width: 100%; justify-content: center; }
.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-xs { padding: 4px 10px; font-size: 11px; border-radius: 4px; }
.btn-icon { width: 40px; height: 40px; padding: 0; justify-content: center; border-radius: 50%; }

/* ===== FORMS ===== */
.form-group { margin-bottom: 20px; }
.form-group label {
    display: block; margin-bottom: 6px;
    font-weight: 600; font-size: 14px;
    color: var(--gray-dark);
}
.form-control {
    width: 100%; padding: 12px 16px;
    border: 2px solid var(--gray-light);
    border-radius: var(--radius-sm);
    font-size: 15px; transition: var(--transition);
    background: #fff; color: var(--dark);
}
.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(108,59,245,0.15);
}
.form-control.error { border-color: var(--danger); }
textarea.form-control { min-height: 120px; resize: vertical; }
select.form-control { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236c757d' stroke-width='2' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
input[type="file"].form-control { padding: 10px; }
input[type="color"].form-control { height: 48px; padding: 4px; }

/* ===== ALERTS ===== */
.alert { padding: 16px 20px; border-radius: var(--radius-sm); margin-bottom: 20px; font-weight: 500; display: flex; align-items: center; gap: 10px; font-size: 14px; animation: slideDown 0.3s ease; }
@keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
.alert-success { background: #d4edda; color: #155724; border-left: 4px solid var(--success); }
.alert-danger { background: #f8d7da; color: #721c24; border-left: 4px solid var(--danger); }
.alert-warning { background: #fff3cd; color: #856404; border-left: 4px solid var(--warning); }
.alert-info { background: #d1ecf1; color: #0c5460; border-left: 4px solid var(--info); }

/* ===== TOAST ===== */
.toast-notification {
    position: fixed; top: 20px; right: 20px;
    padding: 16px 24px; border-radius: var(--radius-sm);
    color: #fff; font-weight: 500;
    display: flex; align-items: center; gap: 12px;
    z-index: 9999;
    animation: slideInRight 0.3s ease;
    box-shadow: var(--shadow-lg);
    max-width: 400px;
}
.toast-notification.success { background: var(--success); }
.toast-notification.danger { background: var(--danger); }
.toast-notification.warning { background: var(--warning); color: var(--dark); }
.toast-notification.info { background: var(--info); }
.toast-notification button {
    background: none; border: none; color: inherit;
    cursor: pointer; margin-left: auto; font-size: 18px; padding: 0 4px;
}
@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}
@media (max-width: 480px) {
    .toast-notification { left: 12px; right: 12px; top: 12px; max-width: none; }
}

/* ===== CARD ===== */
.card {
    background: #fff; border-radius: var(--radius);
    box-shadow: 0 2px 12px rgba(0,0,0,0.06); padding: 24px;
    transition: var(--transition);
}
.card:hover { box-shadow: var(--shadow); }
.card-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 20px; padding-bottom: 16px;
    border-bottom: 1px solid var(--gray-light);
    flex-wrap: wrap; gap: 8px;
}
.card-title { font-size: 18px; font-weight: 700; }

/* ===== BADGE ===== */
.badge {
    display: inline-block; padding: 4px 12px;
    border-radius: 20px; font-size: 12px; font-weight: 600;
    white-space: nowrap;
}
.badge-primary { background: rgba(108,59,245,0.15); color: var(--primary); }
.badge-success { background: rgba(40,167,69,0.15); color: var(--success); }
.badge-danger { background: rgba(220,53,69,0.15); color: var(--danger); }
.badge-warning { background: rgba(255,193,7,0.15); color: #856404; }
.badge-info { background: rgba(23,162,184,0.15); color: var(--info); }
.badge-secondary { background: var(--gray-light); color: var(--gray); }

/* ===== STAT CARD ===== */
.stat-card {
    background: #fff; border-radius: var(--radius);
    padding: 24px; text-align: center;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: var(--transition);
    position: relative; overflow: hidden;
}
.stat-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0;
    height: 3px;
}
.stat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.stat-card .icon {
    width: 56px; height: 56px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 12px; font-size: 24px;
}
.stat-card .icon.purple { background: rgba(108,59,245,0.15); color: var(--primary); }
.stat-card .icon.green { background: rgba(0,212,170,0.15); color: var(--secondary); }
.stat-card .icon.blue { background: rgba(23,162,184,0.15); color: var(--info); }
.stat-card .icon.orange { background: rgba(255,193,7,0.15); color: var(--warning); }
.stat-card .icon.red { background: rgba(255,107,107,0.15); color: var(--accent); }
.stat-card .value { font-size: 28px; font-weight: 800; margin-bottom: 4px; }
.stat-card .label { font-size: 14px; color: var(--gray); font-weight: 500; }

/* ===== TABLE ===== */
.table-container { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 -4px; padding: 0 4px; }
.table-container::-webkit-scrollbar { height: 4px; }
table { width: 100%; border-collapse: collapse; min-width: 600px; }
table th, table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--gray-light); font-size: 14px; }
table th { font-weight: 700; font-size: 12px; text-transform: uppercase; color: var(--gray); background: var(--light); position: sticky; top: 0; }
table tr:hover { background: rgba(108,59,245,0.03); }
table tr:last-child td { border-bottom: none; }
@media (max-width: 768px) {
    table { font-size: 13px; }
    table th, table td { padding: 10px 12px; }
}

/* ===== PAGINATION ===== */
.pagination { margin-top: 24px; display: flex; justify-content: center; }
.pagination ul { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.pagination li a {
    display: flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: var(--radius-sm);
    background: #fff; color: var(--dark);
    font-weight: 600; transition: var(--transition);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05); font-size: 14px;
}
.pagination li.active a, .pagination li a:hover {
    background: var(--bg-gradient); color: #fff;
}

/* ===== MODAL ===== */
.modal {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5); backdrop-filter: blur(4px);
    display: none; align-items: center; justify-content: center;
    z-index: 10000; padding: 20px;
}
.modal.active { display: flex; }
.modal-content {
    background: #fff; border-radius: var(--radius-lg);
    padding: 32px; max-width: 500px; width: 100%;
    animation: modalIn 0.3s ease;
    max-height: 90vh; overflow-y: auto;
}
@keyframes modalIn { from { transform: scale(0.9) translateY(20px); opacity: 0; } to { transform: scale(1) translateY(0); opacity: 1; } }
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.modal-title { font-size: 20px; font-weight: 700; }
.modal-close { background: none; border: none; font-size: 28px; cursor: pointer; color: var(--gray); line-height: 1; padding: 0 4px; }
@media (max-width: 480px) {
    .modal-content { padding: 24px 20px; }
}

/* ===== SKELETON ===== */
.skeleton { background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%); background-size: 200% 100%; animation: shimmer 1.5s infinite; border-radius: 4px; }
@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }

/* ===== EMPTY STATE ===== */
.empty-state { text-align: center; padding: 60px 20px; }
.empty-state i { font-size: 64px; color: var(--gray-light); margin-bottom: 16px; }
.empty-state h3 { font-size: 20px; margin-bottom: 8px; }
.empty-state p { color: var(--gray); margin-bottom: 20px; }

/* ===== GRADIENT TEXT ===== */
.gradient-text {
    background: var(--bg-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== HERO ===== */
.hero-section {
    background: linear-gradient(135deg, var(--darkest) 0%, var(--darker) 50%, var(--dark) 100%);
    min-height: 100vh;
    display: flex; align-items: center;
    position: relative; overflow: hidden;
}
.hero-section::before {
    content: ''; position: absolute;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(108,59,245,0.15) 0%, transparent 70%);
    top: -200px; right: -200px;
    border-radius: 50%;
}
.hero-section::after {
    content: ''; position: absolute;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(0,212,170,0.1) 0%, transparent 70%);
    bottom: -100px; left: -100px;
    border-radius: 50%;
}
@media (max-width: 768px) {
    .hero-section { min-height: auto; }
    .hero-section .container { padding-top: 100px; padding-bottom: 60px; }
}

/* ===== NAVBAR ===== */
.navbar {
    position: fixed; top: 0; left: 0; right: 0;
    z-index: 1000; padding: 16px 0;
    transition: var(--transition);
}
.navbar.scrolled {
    background: rgba(26,26,46,0.95);
    backdrop-filter: blur(20px);
    padding: 10px 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
.navbar .container { display: flex; justify-content: space-between; align-items: center; }
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a { color: rgba(255,255,255,0.8); font-weight: 500; transition: var(--transition); font-size: 15px; }
.nav-links a:hover { color: #fff; }
.mobile-toggle { display: none; background: none; border: none; color: #fff; font-size: 24px; cursor: pointer; padding: 4px; }
@media (max-width: 768px) {
    .nav-links { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(15,15,35,0.98); flex-direction: column; justify-content: center; align-items: center; gap: 24px; z-index: 999; }
    .nav-links.open { display: flex; }
    .nav-links a { font-size: 20px; }
    .mobile-toggle { display: block; z-index: 1000; }
}

/* ===== AUTH PAGE ===== */
.auth-page {
    min-height: 100vh;
    display: flex;
    background: linear-gradient(135deg, var(--darkest) 0%, var(--darker) 100%);
}
.auth-side {
    flex: 1;
    display: flex; align-items: center; justify-content: center;
    padding: 40px;
    position: relative; overflow: hidden;
}
.auth-side::before {
    content: ''; position: absolute;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(108,59,245,0.2) 0%, transparent 70%);
    top: -100px; right: -100px;
    border-radius: 50%;
}
.auth-form {
    flex: 1;
    display: flex; align-items: center; justify-content: center;
    padding: 40px;
    background: #fff;
}
.auth-box { width: 100%; max-width: 420px; }
.auth-box h2 { font-size: 32px; font-weight: 800; margin-bottom: 8px; }
.auth-box > p { color: var(--gray); margin-bottom: 32px; }
@media (max-width: 768px) {
    .auth-page { flex-direction: column; }
    .auth-side { display: none; }
    .auth-form { padding: 60px 20px 40px; min-height: 100vh; align-items: flex-start; }
    .auth-box { max-width: 100%; }
    .auth-box h2 { font-size: 26px; }
}

/* ===== DASHBOARD LAYOUT ===== */
.dashboard-layout { display: flex; min-height: 100vh; }
.sidebar {
    width: 280px;
    background: var(--darkest);
    padding: 24px 0;
    position: fixed; top: 0; left: 0; bottom: 0;
    overflow-y: auto;
    z-index: 100;
    transition: transform 0.3s ease;
}
.sidebar-logo { padding: 0 20px 24px; border-bottom: 1px solid rgba(255,255,255,0.1); margin-bottom: 16px; }
.sidebar-logo a { display: flex; align-items: center; gap: 12px; }
.sidebar-logo span { font-size: 20px; font-weight: 800; color: #fff; }
.sidebar-menu { padding: 0 12px; }
.sidebar-item {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 16px; border-radius: var(--radius-sm);
    color: rgba(255,255,255,0.6);
    font-weight: 500; transition: var(--transition);
    margin-bottom: 2px; font-size: 14px;
}
.sidebar-item:hover, .sidebar-item.active {
    background: rgba(108,59,245,0.2);
    color: #fff;
}
.sidebar-item i { width: 20px; text-align: center; font-size: 16px; }
.sidebar-divider {
    height: 1px; background: rgba(255,255,255,0.1);
    margin: 12px 16px;
}
.sidebar-overlay {
    display: none; position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5); z-index: 99;
}
.main-content {
    flex: 1;
    margin-left: 280px;
    padding: 24px;
    min-height: 100vh;
}
.main-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 32px; flex-wrap: wrap; gap: 12px;
}
.main-header h1 { font-size: 24px; font-weight: 800; }
.header-actions { display: flex; gap: 12px; align-items: center; }
.header-actions .btn { font-size: 13px; padding: 10px 20px; }

@media (max-width: 768px) {
    .sidebar { transform: translateX(-100%); }
    .sidebar.open { transform: translateX(0); }
    .sidebar-overlay.active { display: block; }
    .main-content { margin-left: 0; padding: 16px; }
    .main-header h1 { font-size: 20px; }
    .mobile-toggle { display: block !important; }
}
@media (max-width: 480px) {
    .main-content { padding: 12px; }
    .main-header { margin-bottom: 20px; }
}

/* ===== NOTIFICATION DROPDOWN ===== */
.notif-dropdown { position: relative; }
.notif-toggle {
    background: none; border: none; font-size: 20px; cursor: pointer;
    position: relative; padding: 8px; color: var(--dark);
}
.notif-menu {
    position: absolute; top: 100%; right: 0;
    width: 320px; max-height: 400px; overflow-y: auto;
    background: #fff; border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    display: none; z-index: 1000;
    margin-top: 8px;
}
.notif-menu.active { display: block; }
.notif-item {
    padding: 12px 16px; border-bottom: 1px solid var(--gray-light);
    transition: var(--transition); cursor: pointer;
}
.notif-item:hover { background: var(--light); }
.notif-item.unread { background: rgba(108,59,245,0.05); border-left: 3px solid var(--primary); }
.notif-item .title { font-weight: 600; margin-bottom: 2px; font-size: 14px; }
.notif-item .message { font-size: 13px; color: var(--gray); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.notif-item .time { font-size: 11px; color: var(--gray); margin-top: 4px; }
@media (max-width: 480px) {
    .notif-menu { width: 290px; right: -60px; }
}

/* ===== AVATAR ===== */
.avatar {
    width: 40px; height: 40px; border-radius: 50%;
    object-fit: cover;
    background: var(--bg-gradient);
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-weight: 700; flex-shrink: 0;
}
.avatar-sm { width: 32px; height: 32px; font-size: 13px; }
.avatar-lg { width: 64px; height: 64px; font-size: 24px; }

/* ===== JOB CARD ===== */
.job-card {
    background: #fff; border-radius: var(--radius);
    padding: 24px; box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: var(--transition);
    border: 1px solid var(--gray-light);
}
.job-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.job-card .category-badge {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 14px; border-radius: 20px;
    font-size: 12px; font-weight: 600;
    background: rgba(108,59,245,0.1); color: var(--primary);
}
.job-card h3 { font-size: 18px; font-weight: 700; margin: 12px 0 8px; }
.job-card p { color: var(--gray); font-size: 14px; margin-bottom: 16px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.job-card .meta { display: flex; gap: 16px; flex-wrap: wrap; }
.job-card .meta span { font-size: 13px; color: var(--gray); display: flex; align-items: center; gap: 6px; }

/* ===== PROGRESS BAR ===== */
.progress-bar {
    height: 8px; background: var(--gray-light);
    border-radius: 4px; overflow: hidden;
}
.progress-bar .fill {
    height: 100%; border-radius: 4px;
    background: var(--bg-gradient);
    transition: width 0.5s ease;
}

/* ===== TABS ===== */
.tabs { display: flex; gap: 4px; margin-bottom: 24px; background: var(--light); padding: 4px; border-radius: var(--radius-sm); overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tab {
    padding: 10px 24px; border-radius: 6px;
    font-weight: 600; font-size: 14px;
    cursor: pointer; transition: var(--transition);
    border: none; background: none; color: var(--gray);
    white-space: nowrap;
}
.tab.active { background: #fff; color: var(--primary); box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.tab:hover:not(.active) { color: var(--dark); }
@media (max-width: 480px) {
    .tabs { padding: 4px; }
    .tab { padding: 8px 16px; font-size: 13px; }
}

/* ===== GRIDS ===== */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 24px; }
.grid-4 { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 24px; }
@media (max-width: 992px) { .grid-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 768px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ===== FOOTER ===== */
footer {
    background: var(--darkest);
    color: rgba(255,255,255,0.7);
    padding: 40px 0;
    text-align: center;
}
@media (max-width: 768px) {
    footer > .container > div:first-child { flex-direction: column; text-align: center; }
}

/* ===== MOBILE BOTTOM NAV ===== */
.mobile-bottom-nav {
    display: none;
    position: fixed; bottom: 0; left: 0; right: 0;
    background: #fff; border-top: 1px solid var(--gray-light);
    padding: 6px 0 env(safe-area-inset-bottom, 6px) 0;
    z-index: 100;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
}
.mobile-bottom-nav ul { display: flex; justify-content: space-around; }
.mobile-bottom-nav a {
    display: flex; flex-direction: column; align-items: center;
    gap: 2px; color: var(--gray); font-size: 10px;
    padding: 8px 12px; transition: var(--transition);
}
.mobile-bottom-nav a.active { color: var(--primary); }
.mobile-bottom-nav a i { font-size: 20px; }
@media (max-width: 768px) {
    .mobile-bottom-nav { display: block; }
    .main-content { padding-bottom: 76px; }
}

/* ===== DROPDOWN ===== */
.dropdown { position: relative; display: inline-block; }
.dropdown-menu {
    display: none; position: absolute; top: 100%; right: 0;
    background: #fff; border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg); min-width: 200px;
    z-index: 1000; padding: 8px 0;
    animation: dropIn 0.2s ease;
}
@keyframes dropIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
.dropdown:hover .dropdown-menu, .dropdown-menu.show { display: block; }
.dropdown-item {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 16px; color: var(--dark);
    transition: var(--transition); font-size: 14px;
}
.dropdown-item:hover { background: var(--light); color: var(--primary); }

/* ===== SECTION ===== */
.section { padding: 80px 0; }
.section-title { text-align: center; margin-bottom: 48px; }
.section-title h2 { font-size: 36px; font-weight: 800; margin-bottom: 12px; }
.section-title p { color: var(--gray); font-size: 18px; max-width: 600px; margin: 0 auto; }
@media (max-width: 768px) {
    .section { padding: 48px 0; }
    .section-title { margin-bottom: 32px; }
    .section-title h2 { font-size: 28px; }
    .section-title p { font-size: 16px; }
}

/* ===== FEATURES ===== */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; margin: 40px 0; }
.feature-box { text-align: center; padding: 32px 24px; }
.feature-box .icon { font-size: 36px; margin-bottom: 16px; }
.feature-box h3 { margin-bottom: 8px; }
.feature-box p { color: var(--gray); font-size: 14px; }

/* ===== STEPS ===== */
.steps-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; margin: 40px 0; }
.step-card { text-align: center; padding: 24px; position: relative; }
.step-number {
    width: 48px; height: 48px; border-radius: 50%;
    background: var(--bg-gradient); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 20px;
    margin: 0 auto 16px;
}

/* ===== TESTIMONIALS ===== */
.testimonial-card {
    background: #fff; border-radius: var(--radius);
    padding: 24px; box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.testimonial-card .stars { color: var(--warning); margin-bottom: 12px; }
.testimonial-card p { font-style: italic; color: var(--gray); margin-bottom: 16px; }
.testimonial-card .author { display: flex; align-items: center; gap: 12px; }

/* ===== FAQ ===== */
.faq-item {
    border-bottom: 1px solid var(--gray-light);
    padding: 16px 0;
}
.faq-question {
    display: flex; justify-content: space-between; align-items: center;
    cursor: pointer; font-weight: 600; font-size: 15px;
    padding: 4px 0;
}
.faq-question i { transition: transform 0.3s ease; color: var(--primary); }
.faq-item.open .faq-question i { transform: rotate(180deg); }
.faq-answer { padding-top: 12px; color: var(--gray); display: none; line-height: 1.7; }
.faq-item.open .faq-answer { display: block; animation: fadeIn 0.3s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ===== ANIMATIONS ===== */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}
@keyframes spin { to { transform: rotate(360deg); } }
.animate-float { animation: float 3s ease-in-out infinite; }
.animate-pulse { animation: pulse 2s ease-in-out infinite; }

/* ===== LOADING SPINNER ===== */
.spinner {
    width: 40px; height: 40px; border: 3px solid var(--gray-light);
    border-top-color: var(--primary); border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto;
}
.spinner-sm { width: 20px; height: 20px; border-width: 2px; }

/* ===== UTILITY ===== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-primary { color: var(--primary); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-warning { color: var(--warning); }
.text-gray { color: var(--gray); }
.text-white { color: #fff; }
.font-bold { font-weight: 700; }
.font-black { font-weight: 900; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.w-full { width: 100%; }

/* ===== TOOLTIP ===== */
[data-tooltip] { position: relative; cursor: pointer; }
[data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%);
    padding: 6px 12px; background: var(--dark); color: #fff;
    border-radius: 4px; font-size: 12px; white-space: nowrap;
    margin-bottom: 6px; z-index: 1000;
}

/* ===== FILE INPUT STYLING ===== */
.file-input-wrapper {
    position: relative; display: flex; align-items: center;
    border: 2px dashed var(--gray-light);
    border-radius: var(--radius-sm); padding: 16px;
    cursor: pointer; transition: var(--transition);
    background: var(--light);
}
.file-input-wrapper:hover { border-color: var(--primary); background: rgba(108,59,245,0.05); }
.file-input-wrapper input[type="file"] {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    opacity: 0; cursor: pointer;
}
.file-input-wrapper i { font-size: 24px; color: var(--primary); margin-right: 12px; }
.file-input-wrapper span { font-size: 14px; color: var(--gray); }

/* ===== PRINT MEDIA QUERIES ===== */
@media print {
    .sidebar, .mobile-bottom-nav, .header-actions, .navbar { display: none !important; }
    .main-content { margin-left: 0 !important; padding: 0 !important; }
    .card { box-shadow: none !important; border: 1px solid #ddd; }
}

/* ===== DARK MODE TOGGLE READY ===== */
@media (prefers-color-scheme: dark) {
    body.dark-mode, .dark-mode {
        --light: #1a1a2e;
        --gray-light: #2a2a4a;
        --gray-dark: #e0e0e0;
        --dark: #f0f0f0;
    }
}

/* ===== RESPONSIVE TABLES - CARD VIEW ===== */
@media (max-width: 600px) {
    table { min-width: auto; }
    table thead { display: none; }
    table tr { display: block; margin-bottom: 16px; border: 1px solid var(--gray-light); border-radius: var(--radius-sm); padding: 12px; }
    table td { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--gray-light); text-align: right; }
    table td:last-child { border-bottom: none; }
    table td::before { content: attr(data-label); font-weight: 700; font-size: 12px; text-transform: uppercase; color: var(--gray); text-align: left; }
}

/* ===== CARD GRID ON MOBILE ===== */
@media (max-width: 480px) {
    .stat-card { padding: 16px; }
    .stat-card .value { font-size: 22px; }
    .card { padding: 16px; }
    .job-card { padding: 16px; }
    .job-card .meta { gap: 10px; }
    .job-card .meta span { font-size: 12px; }
    .badge { font-size: 11px; padding: 3px 10px; }
}

/* ===== CHART CONTAINER ===== */
.chart-container { background: #fff; border-radius: var(--radius); padding: 24px; box-shadow: 0 2px 12px rgba(0,0,0,0.06); }
@media (max-width: 480px) { .chart-container { padding: 16px; } }

/* ===== QUICK ACTION CARDS ===== */
.quick-action {
    display: flex; align-items: center; gap: 16px;
    padding: 20px; border-radius: var(--radius-sm);
    background: var(--light); transition: var(--transition);
    cursor: pointer;
}
.quick-action:hover { background: rgba(108,59,245,0.08); transform: translateX(4px); }
.quick-action .icon {
    width: 48px; height: 48px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; flex-shrink: 0;
}

/* ===== STATUS INDICATOR ===== */
.status-dot {
    width: 8px; height: 8px; border-radius: 50%;
    display: inline-block;
}
.status-dot.online { background: var(--success); }
.status-dot.offline { background: var(--gray); }
.status-dot.away { background: var(--warning); }
