/* ============================================
   J4S Dashboard - Custom Styles
   Tone màu xanh dương chủ đạo
   ============================================ */

/* ---------- CSS Variables ---------- */
:root {
    --primary: #4F46E5;
    --primary-light: #6366F1;
    --primary-dark: #3730A3;
    --primary-50: #EEF2FF;
    --primary-100: #E0E7FF;
    --primary-200: #C7D2FE;
    --accent: #7C3AED;
    --bg-page: #F5F7FB;
    --bg-card: #FFFFFF;
    --text-primary: #1E293B;
    --text-secondary: #64748B;
    --text-muted: #94A3B8;
    --border-color: #E2E8F0;
    --success: #10B981;
    --warning: #F59E0B;
    --danger: #EF4444;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.1);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Reset & Base ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-page);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* ---------- TOP NAVIGATION BAR ---------- */
.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    padding: 0 24px;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 22px;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.5px;
}

.logo-img {
    height: 32px;
    width: auto;
    object-fit: contain;
}

.logo-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    font-weight: 900;
}

.hamburger {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 20px;
    padding: 8px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.hamburger:hover {
    background: var(--primary-50);
    color: var(--primary);
}

.nav-search {
    flex: 1;
    max-width: 520px;
    margin: 0 32px;
    position: relative;
}

.nav-search input {
    width: 100%;
    height: 40px;
    padding: 0 16px 0 42px;
    border: 1.5px solid var(--border-color);
    border-radius: 20px;
    font-size: 14px;
    color: var(--text-primary);
    background: var(--bg-page);
    transition: var(--transition);
    font-family: inherit;
}

.nav-search input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-100);
    background: var(--bg-card);
}

.nav-search input::placeholder {
    color: var(--text-muted);
}

.nav-search .search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 16px;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
}

.btn-find-freelancer {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    background: var(--bg-page);
    border: 1.5px solid var(--border-color);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
    white-space: nowrap;
}

.btn-find-freelancer:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-50);
}

.notification-btn {
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
    color: var(--text-secondary);
    font-size: 20px;
}

.notification-btn:hover {
    background: var(--primary-50);
    color: var(--primary);
}

.notification-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 18px;
    height: 18px;
    background: var(--danger);
    color: white;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 2px solid var(--bg-card);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 4px 8px 4px 4px;
    border-radius: 24px;
    transition: var(--transition);
}

.user-profile:hover {
    background: var(--primary-50);
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FDA4AF, #FBBF24);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: white;
    overflow: hidden;
}

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

.user-info {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.user-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.user-role {
    font-size: 11px;
    color: var(--text-muted);
}

.dropdown-arrow {
    color: var(--text-muted);
    font-size: 12px;
}

/* ---------- LAYOUT CONTAINER ---------- */
.dashboard-layout {
    display: flex;
    padding-top: 64px;
    min-height: 100vh;
}

/* ---------- LEFT SIDEBAR ---------- */
.sidebar {
    width: 230px;
    min-width: 230px;
    background: var(--bg-card);
    border-right: 1px solid var(--border-color);
    height: calc(100vh - 64px);
    position: fixed;
    top: 64px;
    left: 0;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    padding: 16px 0;
    z-index: 900;
}

.sidebar-group {
    padding: 0 12px;
    margin-bottom: 8px;
}

.sidebar-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 8px 12px 6px;
}

.sidebar-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
    position: relative;
}

.sidebar-item:hover {
    background: var(--primary-50);
    color: var(--primary);
}

.sidebar-item.active {
    background: var(--primary-50);
    color: var(--primary);
    font-weight: 600;
}

.sidebar-item.active::before {
    content: '';
    position: absolute;
    left: -12px;
    top: 4px;
    bottom: 4px;
    width: 3px;
    background: var(--primary);
    border-radius: 0 3px 3px 0;
}

.sidebar-item .item-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.sidebar-bottom {
    margin-top: auto;
    padding: 16px;
}

.btn-post-job {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 16px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.btn-post-job:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.4);
}

/* ---------- MAIN CONTENT AREA ---------- */
.main-content-wrapper {
    flex: 1;
    margin-left: 230px;
    display: flex;
    gap: 0;
}

.main-content {
    flex: 1;
    padding: 24px;
    max-width: calc(100% - 320px);
    min-width: 0;
}

/* -- Welcome Banner -- */
.welcome-banner {
    background: linear-gradient(135deg, var(--primary-100) 0%, var(--primary-50) 50%, #F0EAFF 100%);
    border-radius: var(--radius-lg);
    padding: 32px 36px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    margin-bottom: 28px;
}

.welcome-banner::before {
    content: '';
    position: absolute;
    top: -30px;
    right: 200px;
    width: 100px;
    height: 100px;
    background: var(--primary-200);
    border-radius: 50%;
    opacity: 0.3;
}

.banner-text {
    flex: 1;
    z-index: 1;
}

.banner-text h1 {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.35;
    margin-bottom: 8px;
}

.banner-text p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.banner-actions {
    display: flex;
    gap: 12px;
}

.btn-primary-main {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 22px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

.btn-primary-main:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.btn-outline-main {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 22px;
    background: transparent;
    color: var(--primary);
    border: 1.5px solid var(--primary);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

.btn-outline-main:hover {
    background: var(--primary-50);
}

.banner-illustration {
    width: 220px;
    height: 160px;
    flex-shrink: 0;
    z-index: 1;
}

.banner-illustration img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* -- Category Section -- */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.section-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.section-link {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    transition: var(--transition);
}

.section-link:hover {
    color: var(--primary-dark);
    gap: 8px;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
    margin-bottom: 32px;
}

.category-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px 12px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.category-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.category-icon {
    width: 48px;
    height: 48px;
    background: var(--primary-50);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin: 0 auto 10px;
    color: var(--primary);
    transition: var(--transition);
}

.category-card:hover .category-icon {
    background: var(--primary);
    color: white;
}

.category-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.category-count {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
}

/* -- Job Listings -- */
.jobs-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 12px;
}

.jobs-filters {
    display: flex;
    gap: 10px;
}

.filter-select {
    padding: 8px 32px 8px 14px;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: var(--text-secondary);
    background: var(--bg-card);
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    font-family: inherit;
    transition: var(--transition);
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary);
}

.job-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 12px;
    transition: var(--transition);
    position: relative;
}

.job-card:hover {
    border-color: var(--primary-200);
    box-shadow: var(--shadow-md);
}

.job-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.job-icon.design {
    background: #FEF3C7;
    color: #D97706;
}

.job-icon.translate {
    background: #DBEAFE;
    color: #2563EB;
}

.job-icon.slide {
    background: #FCE7F3;
    color: #DB2777;
}

.job-icon.code {
    background: #D1FAE5;
    color: #059669;
}

.job-icon.content {
    background: #EDE9FE;
    color: #7C3AED;
}

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

.job-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.job-desc {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.job-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.job-tag {
    display: inline-block;
    padding: 3px 10px;
    background: var(--bg-page);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 11px;
    color: var(--text-secondary);
    font-weight: 500;
}

.job-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    flex-shrink: 0;
    min-width: 140px;
}

.job-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
}

.job-deadline {
    font-size: 12px;
    color: var(--text-muted);
}

.job-deadline span {
    color: var(--warning);
    font-weight: 600;
}

.job-proposals {
    font-size: 12px;
    color: var(--text-muted);
}

.job-bookmark {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 18px;
    transition: var(--transition);
    padding: 4px;
}

.job-bookmark:hover {
    color: var(--primary);
    transform: scale(1.15);
}

.view-more-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 12px;
    background: transparent;
    border: none;
    color: var(--primary);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
    margin-top: 8px;
}

.view-more-btn:hover {
    color: var(--primary-dark);
    background: var(--primary-50);
    border-radius: var(--radius-sm);
}

/* ---------- RIGHT SIDEBAR ---------- */
.right-sidebar {
    width: 320px;
    min-width: 320px;
    padding: 24px 24px 24px 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* -- AI Suggestions Box -- */
.widget-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
}

.widget-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.widget-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.widget-title .ai-icon {
    font-size: 16px;
}

.widget-link {
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
    cursor: pointer;
    transition: var(--transition);
}

.widget-link:hover {
    color: var(--primary-dark);
}

.freelancer-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.freelancer-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.freelancer-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--primary-200), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
    font-size: 14px;
}

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

.freelancer-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.freelancer-role {
    font-size: 11px;
    color: var(--text-muted);
}

.freelancer-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: 2px;
}

.freelancer-rating .star {
    color: #FBBF24;
}

.freelancer-action {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    flex-shrink: 0;
}

.match-badge {
    font-size: 11px;
    font-weight: 700;
    color: var(--success);
    background: #D1FAE5;
    padding: 2px 8px;
    border-radius: 20px;
}

.btn-view-profile {
    font-size: 11px;
    font-weight: 600;
    color: var(--primary);
    background: var(--primary-50);
    border: 1px solid var(--primary-200);
    padding: 4px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

.btn-view-profile:hover {
    background: var(--primary-100);
}

/* -- Income Widget -- */
.income-widget {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
}

.income-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.income-header h3 {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
}

.income-stats {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
}

.income-stat-item {
    flex: 1;
}

.income-stat-item .label {
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.income-stat-item .value {
    font-size: 20px;
    font-weight: 800;
    color: var(--primary);
}

.income-stat-item .value.compact {
    font-size: 18px;
    color: var(--text-primary);
}

.income-stat-item .change {
    font-size: 11px;
    color: var(--success);
    font-weight: 600;
}

.income-stat-item .change-note {
    font-size: 11px;
    color: var(--text-muted);
}

.income-actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.income-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px 4px;
    background: var(--bg-page);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

.income-action-btn:hover {
    border-color: var(--primary);
    background: var(--primary-50);
}

.income-action-btn .action-icon {
    font-size: 20px;
    color: var(--primary);
}

.income-action-btn .action-label {
    font-size: 11px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* -- Leaderboard Banner -- */
.leaderboard-banner {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    border-radius: var(--radius-md);
    padding: 24px;
    color: white;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 145px;
}

.leaderboard-banner::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.leaderboard-banner::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 30%;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}

.leaderboard-content {
    position: relative;
    z-index: 2;
    max-width: 65%;
}

.leaderboard-content h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
}

.leaderboard-content p {
    font-size: 12px;
    opacity: 0.85;
    margin-bottom: 14px;
    line-height: 1.4;
}

.leaderboard-trophy-img {
    width: 85px;
    height: 85px;
    object-fit: contain;
    position: absolute;
    right: 12px;
    bottom: 8px;
    z-index: 1;
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.2));
    animation: floatTrophy 3s ease-in-out infinite;
}

@keyframes floatTrophy {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.btn-leaderboard {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    background: #FFFFFF;
    border: none;
    color: var(--primary);
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.btn-leaderboard:hover {
    background: var(--primary-50);
    transform: translateY(-1px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

/* ---------- Animations ---------- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    animation: fadeInUp 0.5s ease forwards;
}

.animate-in:nth-child(1) { animation-delay: 0.05s; }
.animate-in:nth-child(2) { animation-delay: 0.1s; }
.animate-in:nth-child(3) { animation-delay: 0.15s; }
.animate-in:nth-child(4) { animation-delay: 0.2s; }
.animate-in:nth-child(5) { animation-delay: 0.25s; }
.animate-in:nth-child(6) { animation-delay: 0.3s; }

/* ---------- Responsive Adjustments ---------- */
@media (max-width: 1400px) {
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1200px) {
    .right-sidebar {
        width: 280px;
        min-width: 280px;
    }
    .main-content {
        max-width: calc(100% - 280px);
    }
}

@media (max-width: 1024px) {
    .right-sidebar {
        display: none;
    }
    .main-content {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        transition: var(--transition);
    }
    .sidebar.open {
        transform: translateX(0);
    }
    .main-content-wrapper {
        margin-left: 0;
    }
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .banner-illustration {
        display: none;
    }
    .nav-search {
        display: none;
    }
    .btn-find-freelancer {
        display: none;
    }
}

/* ---------- ACTIVE CATEGORY CARD ---------- */
.category-card.active {
    border-color: var(--primary);
    border-width: 2px;
    box-shadow: 0 4px 16px rgba(79, 70, 229, 0.18);
    background: var(--primary-50);
}

.category-card.active .category-icon {
    background: var(--primary);
    color: white;
}

/* ---------- SAVED BOOKMARK ---------- */
.job-bookmark.saved {
    color: var(--primary);
}

.job-bookmark.saved:hover {
    color: var(--primary-dark);
}

/* ---------- APPLIED BADGE ---------- */
.applied-badge {
    display: inline-block;
    padding: 2px 8px;
    background: #D1FAE5;
    color: #059669;
    font-size: 10px;
    font-weight: 700;
    border-radius: 20px;
    margin-left: 6px;
}

/* ---------- JOB TITLE CLICKABLE ---------- */
.job-title[data-job-id] {
    cursor: pointer;
    transition: var(--transition);
}

.job-title[data-job-id]:hover {
    color: var(--primary);
}

/* ---------- JOB ICON VIDEO ---------- */
.job-icon.video {
    background: #FEE2E2;
    color: #DC2626;
}

/* ---------- MODAL ---------- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 20px;
}

.modal-overlay.active {
    opacity: 1;
}

.modal-content {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 560px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2);
    transform: translateY(20px) scale(0.97);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
}

.modal-overlay.active .modal-content {
    transform: translateY(0) scale(1);
}

.modal-content.modal-sm {
    max-width: 440px;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--bg-page);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-secondary);
    transition: var(--transition);
    z-index: 10;
}

.modal-close:hover {
    background: var(--danger);
    color: white;
    border-color: var(--danger);
}

.modal-header {
    padding: 28px 28px 0;
}

.modal-header h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
    padding-right: 40px;
}

.modal-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.modal-body {
    padding: 20px 28px;
}

.modal-description {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
}

.modal-details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.detail-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px;
    background: var(--bg-page);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
}

.detail-icon {
    color: var(--primary);
    flex-shrink: 0;
    margin-top: 2px;
}

.detail-label {
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.detail-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

/* Escrow Notice */
.escrow-notice {
    display: flex;
    gap: 12px;
    padding: 16px;
    background: linear-gradient(135deg, #EEF2FF, #E0E7FF);
    border-radius: var(--radius-sm);
    border: 1px solid var(--primary-200);
    margin-bottom: 12px;
}

.escrow-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.escrow-notice strong {
    font-size: 13px;
    color: var(--primary-dark);
    display: block;
    margin-bottom: 4px;
}

.escrow-notice p {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

/* Deadline Warning */
.deadline-warning {
    display: flex;
    gap: 12px;
    padding: 14px;
    background: #FFFBEB;
    border-radius: var(--radius-sm);
    border: 1px solid #FDE68A;
}

.warning-icon {
    color: var(--warning);
    flex-shrink: 0;
    margin-top: 2px;
}

.deadline-warning strong {
    font-size: 13px;
    color: #92400E;
    display: block;
    margin-bottom: 4px;
}

.deadline-warning p {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

.modal-footer {
    padding: 0 28px 24px;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.btn-apply-job {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 28px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.btn-apply-job:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.4);
}

.btn-apply-job:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-applied {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 28px;
    background: #D1FAE5;
    color: #059669;
    border: 1px solid #A7F3D0;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: default;
    font-family: inherit;
}

.btn-modal-cancel {
    padding: 12px 24px;
    background: var(--bg-page);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

.btn-modal-cancel:hover {
    background: var(--border-color);
    color: var(--text-primary);
}

/* ---------- TOAST NOTIFICATIONS ---------- */
.toast-notification {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 22px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    color: white;
    z-index: 3000;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    max-width: 420px;
}

.toast-notification.show {
    transform: translateY(0);
    opacity: 1;
}

.toast-success {
    background: linear-gradient(135deg, #059669, #10B981);
}

.toast-error {
    background: linear-gradient(135deg, #DC2626, #EF4444);
}

.toast-info {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
}

.toast-warning {
    background: linear-gradient(135deg, #D97706, #F59E0B);
}

/* ---------- EMPTY STATE ---------- */
.empty-state {
    text-align: center;
    padding: 48px 24px;
    background: var(--bg-card);
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-lg);
}

.empty-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.empty-state h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.empty-state p {
    font-size: 13px;
    color: var(--text-muted);
}

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

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

/* ---------- FINANCIAL MODAL CONTENT ---------- */
.financial-result {
    text-align: center;
    padding: 20px 0;
}

.result-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.result-message {
    font-size: 15px;
    color: var(--text-primary);
    line-height: 1.6;
    margin-bottom: 8px;
}

.result-detail {
    font-size: 13px;
    color: var(--text-muted);
    padding: 10px 16px;
    background: var(--bg-page);
    border-radius: var(--radius-sm);
    display: inline-block;
}

.transaction-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.transaction-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.transaction-item:last-child {
    border-bottom: none;
}

.transaction-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.transaction-date {
    font-size: 11px;
    color: var(--text-muted);
}

.transaction-desc {
    font-size: 13px;
    color: var(--text-primary);
    font-weight: 500;
}

.transaction-amount {
    font-size: 14px;
    font-weight: 700;
}

.transaction-amount.income {
    color: var(--success);
}

.transaction-amount.expense {
    color: var(--danger);
}

.transaction-amount.deposit {
    color: var(--primary);
}

/* ---------- SIDEBAR MESSAGE BADGE ---------- */
.sidebar-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background: var(--danger);
    color: white;
    font-size: 10px;
    font-weight: 700;
    border-radius: 10px;
    margin-left: auto;
}

/* ---------- FREELANCER AVATAR IMAGE ---------- */
.freelancer-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* ---------- STAR FREELANCER HIGHLIGHT ---------- */
.freelancer-item.star {
    background: linear-gradient(135deg, var(--primary-50), #F0EAFF);
    padding: 14px 12px;
    border-radius: var(--radius-sm);
    margin: -4px -4px 0;
    border: 1px solid var(--primary-200);
}

/* ---------- LOGO IMAGE IN NAV ---------- */
.logo-img {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    object-fit: contain;
}

/* ============================================
   FULL MOCK PANEL STYLES
   ============================================ */

/* ---------- PAGE HEADERS ---------- */
.page-header {
    margin-bottom: 24px;
}

.page-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
}

.page-subtitle {
    font-size: 14px;
    color: var(--text-muted);
}

/* ---------- PROJECTS ---------- */
.projects-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    transition: var(--transition);
}

.project-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-200);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.project-header h3 {
    font-size: 16px;
    font-weight: 600;
}

.project-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.status-active {
    background: #DBEAFE;
    color: #2563EB;
}

.status-almost {
    background: #FEF3C7;
    color: #D97706;
}

.project-client {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.project-progress {
    margin-bottom: 16px;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.progress-pct {
    font-weight: 700;
    color: var(--primary);
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--bg-page);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    border-radius: 4px;
    transition: width 0.5s ease;
}

.project-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.project-deadline {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-muted);
}

.project-budget {
    font-size: 15px;
    font-weight: 700;
    color: var(--primary);
}

.project-actions {
    display: flex;
    gap: 8px;
}

.btn-sm {
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: none;
}

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

.btn-sm.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-sm.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 1.5px solid var(--primary);
}

.btn-sm.btn-outline:hover {
    background: var(--primary-50);
}

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

.btn-sm.btn-ghost:hover {
    color: var(--primary);
    border-color: var(--primary);
}

/* ---------- PROFILE ---------- */
.profile-container {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.profile-cover {
    height: 120px;
    position: relative;
}

.profile-cover-gradient {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary), var(--accent), #EC4899);
}

.profile-main {
    padding: 0 28px 28px;
    position: relative;
    z-index: 10;
}

.profile-avatar-section {
    display: flex;
    align-items: flex-end;
    gap: 20px;
    margin-top: -40px;
    margin-bottom: 24px;
}

.profile-avatar-large {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FDA4AF, #FBBF24);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
    color: white;
    border: 4px solid var(--bg-card);
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
}

.profile-name-section {
    flex: 1;
}

.profile-name-section h1 {
    font-size: 24px;
    font-weight: 800;
    color: #FFFFFF;
    margin-bottom: 4px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.profile-tagline {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.profile-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

.badge-verified {
    background: #D1FAE5;
    color: #059669;
}

.badge-level {
    background: var(--primary-50);
    color: var(--primary);
}

.badge-rating {
    background: #FEF3C7;
    color: #D97706;
}

.btn-edit-profile {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    background: var(--bg-page);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    color: var(--text-secondary);
    transition: var(--transition);
    margin-left: auto;
}

.btn-edit-profile:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.profile-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--bg-page);
    border-radius: var(--radius-sm);
    padding: 16px;
    text-align: center;
    border: 1px solid var(--border-color);
}

.stat-value {
    font-size: 20px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 11px;
    color: var(--text-muted);
}

.profile-sections {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.profile-section h3 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 10px;
}

.profile-section p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.skills-list {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.skill-tag {
    padding: 6px 14px;
    background: var(--primary-50);
    color: var(--primary);
    border: 1px solid var(--primary-200);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.portfolio-item {
    height: 100px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.portfolio-item:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
}

/* ---------- MESSAGES ---------- */
.messages-container {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    height: calc(100vh - 200px);
    min-height: 500px;
}

.messages-list {
    border-right: 1px solid var(--border-color);
    overflow-y: auto;
}

.message-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    cursor: pointer;
    transition: var(--transition);
    border-bottom: 1px solid var(--border-color);
}

.message-item:hover {
    background: var(--bg-page);
}

.message-item.selected {
    background: var(--primary-50);
    border-left: 3px solid var(--primary);
}

.message-item.unread {
    background: #FEFCE8;
}

.msg-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
    overflow: hidden;
}

.msg-avatar.small {
    width: 32px;
    height: 32px;
    font-size: 11px;
}

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

.msg-content {
    flex: 1;
    min-width: 0;
}

.msg-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2px;
}

.msg-name {
    font-size: 13px;
    font-weight: 600;
}

.msg-time {
    font-size: 11px;
    color: var(--text-muted);
}

.msg-preview {
    font-size: 12px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
}

.msg-badge {
    background: var(--primary);
    color: white;
    font-size: 10px;
    font-weight: 700;
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
}

.chat-panel {
    display: flex;
    flex-direction: column;
}

.chat-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    gap: 12px;
    color: var(--text-muted);
    font-size: 14px;
}

.chat-header {
    padding: 14px 20px;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-card);
}

.chat-user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.chat-user-name {
    font-size: 14px;
    font-weight: 600;
}

.chat-status {
    font-size: 11px;
    color: var(--success);
}

.chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: var(--bg-page);
}

.chat-bubble {
    max-width: 75%;
    padding: 10px 16px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.5;
    position: relative;
}

.chat-bubble p {
    margin: 0;
}

.chat-bubble.me {
    align-self: flex-end;
    background: var(--primary);
    color: white;
    border-bottom-right-radius: 4px;
}

.chat-bubble.them {
    align-self: flex-start;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-bottom-left-radius: 4px;
}

.bubble-time {
    font-size: 10px;
    opacity: 0.6;
    display: block;
    margin-top: 4px;
}

.chat-input-area {
    display: flex;
    gap: 8px;
    padding: 12px 16px;
    border-top: 1px solid var(--border-color);
    background: var(--bg-card);
}

.chat-input {
    flex: 1;
    padding: 10px 16px;
    border: 1.5px solid var(--border-color);
    border-radius: 20px;
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: var(--transition);
}

.chat-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-100);
}

.chat-send-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    flex-shrink: 0;
}

.chat-send-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

/* ---------- REVIEWS ---------- */
.reviews-summary {
    display: flex;
    gap: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    margin-bottom: 20px;
}

.review-score-big {
    text-align: center;
    min-width: 120px;
}

.score-number {
    font-size: 48px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.score-stars {
    font-size: 18px;
    color: #FBBF24;
    margin: 8px 0 4px;
}

.score-count {
    font-size: 12px;
    color: var(--text-muted);
}

.rating-bars {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    justify-content: center;
}

.rating-bar-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.bar-label {
    font-size: 12px;
    color: var(--text-secondary);
    min-width: 35px;
}

.bar-track {
    flex: 1;
    height: 8px;
    background: var(--bg-page);
    border-radius: 4px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    background: #FBBF24;
    border-radius: 4px;
}

.bar-count {
    font-size: 12px;
    color: var(--text-muted);
    min-width: 20px;
    text-align: right;
}

.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.review-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.reviewer-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.reviewer-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
    font-weight: 700;
}

.reviewer-name {
    font-size: 14px;
    font-weight: 600;
}

.review-project {
    font-size: 12px;
    color: var(--text-muted);
}

.review-meta {
    text-align: right;
}

.review-stars {
    color: #FBBF24;
    font-size: 14px;
}

.review-date {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
}

.review-comment {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    font-style: italic;
    margin: 0;
}

/* ---------- WALLET ---------- */
.wallet-balance-card {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: var(--radius-lg);
    padding: 28px;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.balance-label {
    font-size: 13px;
    opacity: 0.85;
    margin-bottom: 4px;
}

.balance-amount {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 4px;
}

.balance-change {
    font-size: 12px;
    opacity: 0.7;
}

.wallet-quick-actions {
    display: flex;
    gap: 10px;
}

.wallet-action-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: var(--transition);
    border: none;
}

.wallet-action-btn.deposit {
    background: rgba(255,255,255,0.2);
    color: white;
    border: 1.5px solid rgba(255,255,255,0.4);
}

.wallet-action-btn.withdraw {
    background: rgba(255,255,255,0.1);
    color: white;
    border: 1.5px solid rgba(255,255,255,0.3);
}

.wallet-action-btn:hover {
    background: rgba(255,255,255,0.35);
}

.wallet-stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 8px;
}

.wallet-stat {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 16px;
}

.ws-label {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.ws-value {
    font-size: 18px;
    font-weight: 700;
}

.ws-value.income { color: var(--success); }
.ws-value.expense { color: var(--danger); }
.ws-value.pending { color: var(--warning); }

.transaction-list-full {
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
}

.transaction-item-full {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border-color);
}

.transaction-item-full:last-child {
    border-bottom: none;
}

.tx-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.tx-icon.income { background: #D1FAE5; color: #059669; }
.tx-icon.expense { background: #FEE2E2; color: #DC2626; }
.tx-icon.deposit { background: var(--primary-50); color: var(--primary); }

.tx-info {
    flex: 1;
}

.tx-desc {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
}

.tx-date {
    font-size: 11px;
    color: var(--text-muted);
}

.tx-amount {
    font-size: 14px;
    font-weight: 700;
}

.tx-amount.income { color: var(--success); }
.tx-amount.expense { color: var(--danger); }
.tx-amount.deposit { color: var(--primary); }

/* ---------- FEATURED FREELANCERS ---------- */
.featured-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.featured-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    text-align: center;
    transition: var(--transition);
    position: relative;
}

.featured-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-200);
}

.featured-badge {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 12px;
}

.featured-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    font-weight: 700;
    overflow: hidden;
}

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

.featured-avatar-modal {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
    font-weight: 700;
    overflow: hidden;
}

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

.featured-name {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 2px;
}

.featured-skill {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.featured-stats {
    display: flex;
    justify-content: center;
    gap: 16px;
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 14px;
}

/* ---------- LEADERBOARD ---------- */
.leaderboard-top3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.top3-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    text-align: center;
}

.top3-card.top1 {
    border-color: #FBBF24;
    box-shadow: 0 4px 16px rgba(251, 191, 36, 0.2);
}

.top3-card.top2 { border-color: #94A3B8; }
.top3-card.top3 { border-color: #D97706; }

.top3-rank {
    font-size: 32px;
    margin-bottom: 8px;
}

.top3-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    margin: 0 auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 18px;
    overflow: hidden;
}

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

.top3-name {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.top3-score {
    font-size: 18px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 4px;
}

.top3-meta {
    font-size: 12px;
    color: var(--text-muted);
}

.leaderboard-table {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.lb-header-row, .lb-row {
    display: grid;
    grid-template-columns: 60px 1fr 80px 80px 80px 80px;
    padding: 12px 20px;
    align-items: center;
}

.lb-header-row {
    background: var(--bg-page);
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.lb-row {
    border-bottom: 1px solid var(--border-color);
    font-size: 13px;
    transition: var(--transition);
}

.lb-row:last-child { border-bottom: none; }
.lb-row:hover { background: var(--primary-50); }

.lb-row.current-user {
    background: linear-gradient(135deg, var(--primary-50), #F0EAFF);
    border: 1px solid var(--primary-200);
    font-weight: 600;
}

.lb-col-rank { font-weight: 700; color: var(--primary); }
.lb-col-score { font-weight: 700; }
.lb-col-rating { color: #D97706; }

.you-badge {
    display: inline-block;
    padding: 2px 8px;
    background: var(--primary);
    color: white;
    font-size: 10px;
    font-weight: 700;
    border-radius: 10px;
    margin-left: 6px;
}

.trend-up { color: var(--success); font-weight: 700; }
.trend-down { color: var(--danger); font-weight: 700; }
.trend-same { color: var(--text-muted); }

/* ---------- BLOG ---------- */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.blog-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
}

.blog-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.blog-thumbnail {
    height: 120px;
    position: relative;
    display: flex;
    align-items: flex-start;
    padding: 12px;
}

.blog-category-tag {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(255,255,255,0.9);
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-primary);
    backdrop-filter: blur(4px);
}

.blog-content {
    padding: 16px;
}

.blog-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 6px;
    line-height: 1.4;
}

.blog-excerpt {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-meta {
    display: flex;
    gap: 14px;
    font-size: 11px;
    color: var(--text-muted);
}

.blog-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ---------- DROPDOWNS ---------- */
.dropdown-panel {
    position: fixed;
    z-index: 2000;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transform: translateY(-8px);
    transition: all 0.2s ease;
    max-height: 420px;
    overflow-y: auto;
}

.dropdown-panel.show {
    opacity: 1;
    transform: translateY(0);
}

.notification-dropdown {
    width: 380px;
}

.user-dropdown {
    width: 260px;
}

.dropdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-color);
}

.dropdown-header h4 {
    font-size: 14px;
    font-weight: 700;
}

.dropdown-mark-read {
    font-size: 12px;
    color: var(--primary);
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-family: inherit;
}

.dropdown-mark-read:hover {
    color: var(--primary-dark);
}

.dropdown-list {
    max-height: 360px;
    overflow-y: auto;
}

.dropdown-item {
    display: flex;
    gap: 12px;
    padding: 12px 16px;
    cursor: pointer;
    transition: var(--transition);
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

.dropdown-item:hover {
    background: var(--bg-page);
}

.dropdown-item.unread {
    background: #FEFCE8;
}

.dropdown-item-icon {
    font-size: 20px;
    width: 36px;
    height: 36px;
    background: var(--bg-page);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dropdown-item-content {
    flex: 1;
    min-width: 0;
}

.dropdown-item-title {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 2px;
}

.dropdown-item-desc {
    font-size: 12px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dropdown-item-time {
    font-size: 10px;
    color: var(--text-muted);
    margin-top: 2px;
}

.dropdown-dot {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 6px;
}

.dropdown-user-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
}

.dropdown-user-name {
    font-size: 14px;
    font-weight: 600;
}

.dropdown-user-email {
    font-size: 12px;
    color: var(--text-muted);
}

.dropdown-divider {
    height: 1px;
    background: var(--border-color);
}

.dropdown-menu-list {
    padding: 6px 0;
}

.dropdown-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    font-size: 13px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
}

.dropdown-menu-item:hover {
    background: var(--bg-page);
    color: var(--primary);
}

.dropdown-menu-item.danger {
    color: var(--danger);
}

.dropdown-menu-item.danger:hover {
    background: #FEE2E2;
}

/* ---------- FORM ELEMENTS ---------- */
.form-group {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.form-input, .form-textarea, .form-select {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: inherit;
    color: var(--text-primary);
    transition: var(--transition);
    background: var(--bg-card);
}

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

.form-textarea {
    resize: vertical;
    min-height: 80px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* ---------- RESPONSIVE ADDITIONS ---------- */
@media (max-width: 1200px) {
    .featured-grid { grid-template-columns: repeat(2, 1fr); }
    .leaderboard-top3 { grid-template-columns: repeat(3, 1fr); }
    .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .messages-container { grid-template-columns: 1fr; }
    .chat-panel { display: none; }
    .featured-grid { grid-template-columns: 1fr; }
    .blog-grid { grid-template-columns: 1fr; }
    .wallet-balance-card { flex-direction: column; gap: 16px; text-align: center; }
    .profile-stats-grid { grid-template-columns: repeat(2, 1fr); }
    .lb-header-row, .lb-row { grid-template-columns: 40px 1fr 60px 60px; }
    .lb-col-rating, .lb-col-trend { display: none; }
}
