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

/* ---------- CSS Variables ---------- */
:root {
    --primary: #0ea5e9;
    --primary-dark: #0284c7;
    --primary-light: #38bdf8;
    --primary-50: #f0f9ff;
    --primary-100: #e0f2fe;
    --primary-200: #bae6fd;
    --accent: #0ea5e9;
    --bg-page: #F8F9FB;
    --bg-main: #F8F9FB;
    --bg-card: #FFFFFF;
    --text-primary: #111827;
    --text-secondary: #4B5563;
    --text-muted: #8A94A6;
    --border-color: #E6E8F0;
    --success: #16A34A;
    --success-soft: #DCFCE7;
    --warning: #F97316;
    --warning-soft: #FFEDD5;
    --danger: #DC2626;
    --danger-soft: #FEE2E2;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-soft: 0 16px 40px rgba(15, 23, 42, 0.07);
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 18px;
    --radius-xl: 24px;
    --transition: all 0.2s 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;
}

/* ---------- Browser Guard Overlay ---------- */
.browser-guard-overlay {
    position: fixed;
    inset: 0;
    z-index: 2147483647;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(10px);
}

.browser-guard-overlay.show {
    display: flex;
}

.browser-guard-panel {
    width: min(420px, 100%);
    padding: 28px;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid #dbeafe;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
    text-align: center;
}

.browser-guard-icon {
    width: 58px;
    height: 58px;
    margin: 0 auto 16px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: linear-gradient(135deg, #2563eb, #0ea5e9);
    font-weight: 900;
}

.browser-guard-panel h2 {
    margin: 0 0 8px;
    color: #0f172a;
    font-size: 22px;
    line-height: 1.25;
    font-weight: 900;
}

.browser-guard-panel p {
    margin: 0;
    color: #475569;
    line-height: 1.6;
    font-weight: 600;
}

html.browser-guard-active body {
    overflow: hidden !important;
}

.devtool-block-page {
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: radial-gradient(circle at top, #1e3a8a 0%, #0f172a 45%, #020617 100%);
}

.devtool-block-card {
    width: min(460px, 100%);
    padding: 32px;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid #dbeafe;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
    text-align: center;
}

.devtool-block-mark {
    width: 64px;
    height: 64px;
    margin: 0 auto 18px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: linear-gradient(135deg, #2563eb, #0ea5e9);
    font-weight: 900;
    box-shadow: 0 12px 26px rgba(37, 99, 235, 0.28);
}

.devtool-block-card h1 {
    margin: 0 0 10px;
    color: #0f172a;
    font-size: 26px;
    line-height: 1.2;
    font-weight: 900;
}

.devtool-block-card p {
    margin: 0 0 22px;
    color: #475569;
    font-size: 15px;
    line-height: 1.65;
    font-weight: 600;
}

.devtool-block-button {
    min-height: 46px;
    padding: 0 22px;
    border: none;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: #2563eb;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.22);
    cursor: pointer;
}

.devtool-block-button:hover {
    color: #ffffff;
    background: #1d4ed8;
}

.devtool-block-button.shake {
    animation: devtoolBlockShake 0.35s ease;
}

@keyframes devtoolBlockShake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    50% {
        transform: translateX(5px);
    }

    75% {
        transform: translateX(-3px);
    }
}

/* ---------- 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 J4S cách điệu mới với biểu tượng Sinh viên */
.j4s-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.5px;
    transition: var(--transition);
}

.j4s-brand:hover {
    opacity: 0.9;
}

.j4s-logo-box {
    width: 36px;
    height: 36px;
    background: var(--primary);
    /* Xanh Cobalt */
    border-radius: 10px;
    /* Bo góc tròn hiện đại */
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    /* Biểu tượng màu trắng */
    box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.2);
}

.j4s-logo-text {
    font-weight: 800;
    color: var(--primary);
    font-family: 'Inter', sans-serif;
}

.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;
    transition: transform 0.3s ease-in-out, width 0.3s ease-in-out;
}

.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;
    width: calc(100% - 230px);
    max-width: calc(100% - 230px);
    display: flex;
    gap: 0;
    transition: margin-left 0.3s ease-in-out, width 0.3s ease-in-out, max-width 0.3s ease-in-out;
}

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

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

body.sidebar-collapsed .main-content-wrapper {
    margin-left: 0;
    width: 100%;
    max-width: 100%;
}

body.sidebar-collapsed .main-content {
    max-width: 100%;
}

/* -- 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-card.job-card-vip {
    border: 1px solid #fcd34d;
    background: #fffbeb;
}

.job-card.job-card-vip:hover {
    border-color: #f59e0b;
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.1);
}

.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);
    }

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

    body.sidebar-collapsed .main-content-wrapper {
        margin-left: 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: 10px;
    right: 10px;
    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;
    padding-right: 40px;
}

.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;
    top: 80px;
    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, #0f172a 0%, #1e3a8a 50%, #2563eb 100%);
}

.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, #1d4ed8, #3b82f6);
    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);
    overflow: hidden;
}

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

.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;
    height: 100%;
    min-height: 0;
    overflow: hidden;
}

.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;
    word-break: break-word;
    overflow-wrap: break-word;
}

.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;
}

/* Custom Review Filters */
.reviews-filter-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
}

.review-tab-btn {
    background: none;
    border: none;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
}

.review-tab-btn:hover {
    color: var(--primary);
    background: var(--bg-page);
}

.review-tab-btn.active {
    color: white;
    background: var(--primary);
}

/* Review Actions */
.review-actions {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    border-top: 1px solid var(--border-color);
    padding-top: 12px;
}

.btn-review-reply,
.btn-review-report {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    background: none;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 6px 12px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-review-reply {
    color: var(--primary);
}

.btn-review-reply:hover {
    background: rgba(79, 70, 229, 0.05);
    border-color: var(--primary);
}

.btn-review-report {
    color: var(--text-muted);
}

.btn-review-report:hover {
    color: #EF4444;
    background: rgba(239, 68, 68, 0.05);
    border-color: #EF4444;
}

/* Reply Box style */
.review-reply-box {
    margin-top: 16px;
    background: var(--bg-page);
    border-left: 3px solid var(--primary);
    border-radius: 4px;
    padding: 12px 16px;
}

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

.reply-avatar {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    font-size: 9px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 6px;
}

.reply-content {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0;
}

/* Reply form styles */
.reply-form-wrapper textarea.reply-textarea {
    width: 100%;
    min-height: 80px;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-family: inherit;
    resize: vertical;
    outline: none;
}

.reply-form-wrapper textarea.reply-textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.1);
}

.btn-reply-cancel,
.btn-reply-submit,
.btn-report-cancel,
.btn-report-submit {
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
}

.btn-reply-cancel,
.btn-report-cancel {
    background: none;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.btn-reply-cancel:hover,
.btn-report-cancel:hover {
    background: var(--bg-page);
}

.btn-reply-submit {
    background: var(--primary);
    border: none;
    color: white;
}

.btn-reply-submit:hover {
    background: var(--primary-hover);
}

.btn-report-submit {
    background: #EF4444;
    border: none;
    color: white;
}

.btn-report-submit:hover {
    background: #DC2626;
}

/* Report Statuses */
.report-badge.pending {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #D97706;
    background: #FEF3C7;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
}

.review-card.reported-dimmed {
    opacity: 0.7;
    border-color: #FCA5A5;
    background: #FEF2F2;
}

/* Blog detail styles */
.blog-detail-container {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 32px;
}

.btn-back-to-blogs {
    background: none;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-weight: 600;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    margin-bottom: 24px;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.btn-back-to-blogs:hover {
    background: var(--bg-page);
    border-color: var(--text-secondary);
}

.blog-detail-category {
    background: rgba(79, 70, 229, 0.1);
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 999px;
    display: inline-block;
    margin-bottom: 12px;
}

.blog-detail-title {
    font-size: 26px;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.3;
    margin-bottom: 16px;
}

.blog-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 13px;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 16px;
    margin-bottom: 24px;
}

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

.blog-detail-body {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.blog-detail-body p {
    margin-bottom: 16px;
}

/* ---------- 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: min(360px, calc(100vw - 24px));
    max-height: min(620px, calc(100vh - 92px));
}

.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-section-label {
    padding: 8px 16px 4px;
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 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;
    }
}

/* ---------- CV SECTION ---------- */
.profile-cv-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background: var(--bg-page);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-top: 12px;
    transition: var(--transition);
}

.profile-cv-box:hover {
    border-color: var(--primary);
    background: var(--primary-50);
}

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

.cv-icon-box {
    width: 40px;
    height: 40px;
    background: #fee2e2;
    color: #ef4444;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.cv-details {
    display: flex;
    flex-direction: column;
}

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

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

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

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

/* File selector styled container */
.file-upload-wrapper {
    position: relative;
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    text-align: center;
    background: var(--bg-page);
    cursor: pointer;
    transition: var(--transition);
}

.file-upload-wrapper:hover {
    border-color: var(--primary);
    background: var(--primary-50);
}

.file-upload-wrapper input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.file-upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
}

.file-upload-icon {
    font-size: 24px;
    color: var(--primary);
}

.file-preview-img {
    width: 100%;
    max-height: 150px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    margin-top: 10px;
}

/* Portfolio editing modal table list */
.modal-portfolio-list {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.modal-portfolio-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: var(--bg-page);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
}

.modal-portfolio-item span {
    font-size: 13px;
    font-weight: 600;
}

.btn-delete-portfolio {
    background: none;
    border: none;
    color: var(--danger);
    cursor: pointer;
    padding: 4px;
    transition: var(--transition);
}

.btn-delete-portfolio:hover {
    transform: scale(1.1);
}

/* ==========================================================================
   MODERN & SMOOTH USER PROFILE REDESIGN (SKY BLUE, WHITE, GRAY THEME)
   ========================================================================== */

.profile-modern-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
    animation: fadeInUp 0.4s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Cover & Profile Header Card */
.profile-cover-modern {
    position: relative;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, #0ea5e9 0%, #38bdf8 50%, #e0f2fe 100%);
    height: 240px;
    box-shadow: var(--shadow-md);
    overflow: visible;
}

.profile-cover-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-lg);
}

.profile-header-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px 32px;
    margin-top: -60px;
    margin-left: 24px;
    margin-right: 24px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
    z-index: 10;
}

.profile-header-info {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.profile-avatar-frame {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: #ffffff;
    padding: 4px;
    border: 3px solid #0ea5e9;
    box-shadow: 0 8px 16px rgba(14, 165, 233, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: -60px;
    flex-shrink: 0;
}

.profile-avatar-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.profile-avatar-frame span {
    font-size: 36px;
    font-weight: 800;
    color: #0ea5e9;
    font-family: 'Inter', sans-serif;
}

.profile-meta-text {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.profile-meta-text h2 {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0;
}

.profile-meta-text .tagline {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
}

.badge-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 4px;
}

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

.badge-modern-blue {
    background: #e0f2fe;
    color: #0369a1;
}

.badge-modern-gray {
    background: #f1f5f9;
    color: #475569;
}

.badge-modern-green {
    background: #dcfce7;
    color: #15803d;
}

.badge-modern-orange {
    background: #fef3c7;
    color: #b45309;
}

.btn-modern-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #0ea5e9;
    color: white;
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.25);
    transition: var(--transition);
}

.btn-modern-primary:hover {
    background: #0284c7;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(14, 165, 233, 0.35);
}

/* Stats Card Grid */
.profile-stats-modern-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin: 0 24px;
}

@media (max-width: 992px) {
    .profile-stats-modern-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

.stat-modern-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 16px;
    transition: var(--transition);
}

.stat-modern-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: #38bdf8;
}

.stat-modern-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background: #f0f9ff;
    color: #0ea5e9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.stat-modern-info {
    display: flex;
    flex-direction: column;
}

.stat-modern-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-modern-title {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}

/* Layout for Profile Details Section */
.profile-content-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 24px;
    margin: 0 24px 24px;
}

@media (max-width: 992px) {
    .profile-content-grid {
        grid-template-columns: 1fr;
    }
}

/* Side Card & Main Cards */
.profile-card-modern {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.profile-card-modern h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    border-left: 4px solid #0ea5e9;
    padding-left: 10px;
    margin: 0 0 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.info-item-modern {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
}

.info-item-modern i {
    color: #0ea5e9;
    margin-top: 3px;
    flex-shrink: 0;
}

.info-item-modern .label {
    font-weight: 600;
    color: var(--text-secondary);
    min-width: 100px;
    flex-shrink: 0;
}

.info-item-modern .value {
    color: var(--text-primary);
}

/* Skills list */
.skills-modern-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.skill-modern-tag {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #475569;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    transition: var(--transition);
}

.skill-modern-tag:hover {
    background: #f0f9ff;
    border-color: #bae6fd;
    color: #0284c7;
    transform: translateY(-1px);
}

/* Portfolio Showcase */
.portfolio-modern-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

@media (max-width: 576px) {
    .portfolio-modern-grid {
        grid-template-columns: 1fr;
    }
}

.portfolio-modern-card {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: linear-gradient(to bottom right, #ffffff, #f8fafc);
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 140px;
    transition: var(--transition);
}

.portfolio-modern-card:hover {
    border-color: #38bdf8;
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.portfolio-modern-card h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 6px 0;
}

.portfolio-modern-card p {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

.portfolio-modern-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 600;
    color: #0ea5e9;
    transition: var(--transition);
}

.portfolio-modern-link:hover {
    color: #0284c7;
    text-decoration: underline;
}

/* CV Area */
.cv-modern-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f8fafc;
    border: 1.5px dashed #cbd5e1;
    border-radius: var(--radius-md);
    padding: 16px 20px;
    transition: var(--transition);
}

.cv-modern-card:hover {
    border-color: #0ea5e9;
    background: #f0f9ff;
}

.cv-modern-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.cv-modern-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #475569;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.cv-modern-card:hover .cv-modern-icon {
    background: #bae6fd;
    color: #0ea5e9;
}

.cv-modern-details {
    display: flex;
    flex-direction: column;
}

.cv-modern-details .filename {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.cv-modern-details .status {
    font-size: 11px;
    color: var(--text-muted);
}

.btn-cv-view {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
}

.btn-cv-view:hover {
    border-color: #0ea5e9;
    color: #0ea5e9;
    background: #ffffff;
}

/* Modals Modern overrides */
.form-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

@media (max-width: 576px) {
    .form-grid-2 {
        grid-template-columns: 1fr;
    }
}

/* Experiences, Certificates, and Customer Reviews styles */
.experience-modern-content {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-secondary);
    white-space: pre-line;
}

.experience-block {
    position: relative;
    padding-left: 20px;
    border-left: 2px solid #bae6fd;
    margin-bottom: 20px;
}

.experience-block::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 6px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #0ea5e9;
    border: 2px solid #ffffff;
}

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

.certificate-modern-card {
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    transition: var(--transition);
}

.certificate-modern-card:hover {
    border-color: #bae6fd;
    background: #f0f9ff;
    transform: translateX(3px);
}

.cert-info-main {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cert-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
}

.cert-org {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
}

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

/* Customer Reviews Styles */
.reviews-modern-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.review-modern-item {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
    display: flex;
    gap: 16px;
    transition: var(--transition);
}

.review-modern-item:hover {
    border-color: #e2e8f0;
    box-shadow: var(--shadow-sm);
}

.review-avatar-box {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    color: #475569;
    overflow: hidden;
    flex-shrink: 0;
}

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

.review-body-box {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex-grow: 1;
}

.review-header-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.reviewer-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
}

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

.review-stars {
    color: #f59e0b;
    font-size: 13px;
    display: flex;
    gap: 2px;
}

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

/* Modal Cert list */
.modal-cert-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 8px;
    background: #f8fafc;
}

.modal-cert-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 4px;
}

.modal-cert-item span {
    font-size: 12px;
    font-weight: 600;
}

/* ==========================================================================
   PREMIUM LOGIN & REGISTER PAGES STYLES
   ========================================================================== */
.auth-page-container {
    min-height: 100vh;
    display: flex;
    font-family: 'Inter', sans-serif;
    background-color: #f8fafc;
}

/* Left Showcase Panel */
.auth-showcase-panel {
    flex: 1;
    position: relative;
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.55) 0%, rgba(15, 23, 42, 0.35) 40%, rgba(15, 23, 42, 0.6) 100%),
        url('/images/auth_bg.png') no-repeat center center;
    background-size: cover;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 60px;
    color: #ffffff;
    overflow: hidden;
}

/* Floating Decorative Shapes */
.auth-bg-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.auth-shape {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 70%);
    filter: blur(40px);
    animation: floatAnimation 8s infinite ease-in-out;
}

.auth-shape-1 {
    width: 300px;
    height: 300px;
    top: -50px;
    left: -50px;
    animation-delay: 0s;
}

.auth-shape-2 {
    width: 400px;
    height: 400px;
    bottom: -100px;
    right: -100px;
    animation-delay: 3s;
}

.auth-shape-3 {
    width: 250px;
    height: 250px;
    top: 40%;
    right: 10%;
    background: radial-gradient(circle, rgba(255, 220, 100, 0.15) 0%, rgba(255, 220, 100, 0) 70%);
    animation-delay: 5s;
}

@keyframes floatAnimation {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(30px, -20px) scale(1.1);
    }
}

.auth-showcase-content {
    position: relative;
    z-index: 2;
    max-width: 520px;
    margin: auto 0;
}

.auth-showcase-content h1 {
    font-size: 2.75rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -1px;
    margin-bottom: 24px;
    color: #ffffff;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

.auth-showcase-content p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #f1f5f9;
    opacity: 0.95;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
}

/* Glassmorphism Stats Cards */
.auth-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 40px;
}

.auth-stat-card {
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: all 0.3s ease;
}

.auth-stat-card:hover {
    transform: translateY(-5px);
    background: rgba(0, 0, 0, 0.35);
    border-color: rgba(255, 255, 255, 0.3);
}

.auth-stat-number {
    font-size: 1.75rem;
    font-weight: 800;
    color: #fbbf24;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.auth-stat-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #f1f5f9;
}

/* Right Form Panel */
.auth-form-panel {
    width: 100%;
    max-width: 580px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 40px;
    position: relative;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.03);
}

.auth-form-wrapper {
    width: 100%;
    max-width: 420px;
}

.auth-form-wrapper.register-mode {
    max-width: 480px;
}

/* Modern Input Groups */
.input-group-modern {
    position: relative;
    margin-bottom: 20px;
}

.input-group-modern label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.input-field-container {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.input-field-icon {
    position: absolute;
    left: 16px;
    color: #94a3b8;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    z-index: 5;
}

.input-field-modern {
    width: 100%;
    padding: 12px 16px 12px 48px;
    font-size: 0.95rem;
    font-weight: 500;
    color: #1e293b;
    background-color: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.input-field-modern::placeholder {
    color: #94a3b8;
}

.input-field-modern:focus {
    outline: none;
    background-color: #ffffff;
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.input-field-modern:focus+.input-field-icon {
    color: #2563eb;
}

.input-field-modern.password-input {
    padding-right: 48px;
}

.password-toggle-btn {
    position: absolute;
    right: 16px;
    background: none;
    border: none;
    padding: 0;
    color: #94a3b8;
    cursor: pointer;
    display: flex;
    align-items: center;
    z-index: 5;
    transition: color 0.3s ease;
}

.password-toggle-btn:hover {
    color: #475569;
}

/* Hide native browser password reveal button (Edge/IE) */
.password-input::-ms-reveal,
.password-input::-ms-clear {
    display: none;
}

/* Custom Checkbox */
.checkbox-modern {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
    font-size: 0.9rem;
    color: #64748b;
}

.checkbox-modern input {
    display: none;
}

.checkbox-trigger {
    width: 20px;
    height: 20px;
    border: 2px solid #cbd5e1;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.checkbox-modern input:checked+.checkbox-trigger {
    background-color: #2563eb;
    border-color: #2563eb;
}

.checkbox-trigger svg {
    color: #ffffff;
    width: 12px;
    height: 12px;
    stroke-width: 4px;
    display: none;
}

.checkbox-modern input:checked+.checkbox-trigger svg {
    display: block;
}

/* Custom Radio selector for roles */
.role-cards-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.role-card-selector {
    position: relative;
}

.role-card-selector input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.role-card-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px;
    background-color: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    cursor: pointer;
    font-weight: 700;
    color: #475569;
    font-size: 0.9rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.role-card-label i,
.role-card-label svg {
    width: 28px;
    height: 28px;
    color: #94a3b8;
    transition: all 0.3s ease;
}

.role-card-selector input:checked+.role-card-label {
    background-color: #eff6ff;
    border-color: #2563eb;
    color: #1e40af;
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.08);
}

.role-card-selector input:checked+.role-card-label i,
.role-card-selector input:checked+.role-card-label svg {
    color: #2563eb;
    transform: scale(1.1);
}

/* Submit Button */
.btn-auth-submit {
    width: 100%;
    padding: 14px;
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn-auth-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.3);
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
}

.btn-auth-submit:active {
    transform: translateY(0);
}

/* Logo Box */
.auth-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    margin-bottom: 24px;
}

.auth-logo-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: #ffffff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.auth-logo-text {
    font-size: 1.75rem;
    font-weight: 900;
    letter-spacing: -0.5px;
    color: #1e293b;
}

/* Responsive auth layout */
@media (max-width: 768px) {
    .auth-page-container {
        flex-direction: column;
    }

    .auth-showcase-panel {
        display: none;
        /* Hide left showcase on small screens */
    }

    .auth-form-panel {
        max-width: 100%;
        min-height: 100vh;
        padding: 40px 24px;
    }
}

/* Business job management */
.business-jobs-panel,
.managed-job-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.managed-job-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 150px;
    gap: 16px;
    padding: 18px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.managed-job-main h3 {
    margin: 8px 0;
    font-size: 18px;
    font-weight: 800;
    color: var(--text-primary);
}

.managed-job-main p {
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.55;
    font-size: 14px;
}

.managed-job-topline,
.managed-job-side,
.applicant-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 700;
}

.managed-job-topline span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.managed-status {
    padding: 4px 8px;
    border-radius: 999px;
    background: #e0f2fe;
    color: #0369a1;
}

.managed-status.status-draft,
.managed-status.status-pending {
    background: #fef3c7;
    color: #92400e;
}

.managed-status.status-rejected {
    background: #fee2e2;
    color: #b91c1c;
}

.managed-status.status-paused,
.managed-status.status-closed {
    background: #f1f5f9;
    color: #475569;
}

.managed-job-side {
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
}

.managed-job-side strong {
    color: #f59e0b;
    font-size: 18px;
}

.managed-job-actions {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
}

.applicant-card {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border-color);
}

.applicant-card:last-child {
    border-bottom: 0;
}

.applicant-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(135deg, #0ea5e9, #14b8a6);
    color: #fff;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.applicant-info h3 {
    margin: 0 0 4px;
    font-size: 16px;
    font-weight: 800;
}

.applicant-info p {
    margin: 0 0 8px;
    color: var(--text-secondary);
    line-height: 1.5;
    font-size: 13px;
}

.business-job-stats-panel,
.new-applicants-panel {
    margin-bottom: 18px;
}

.business-job-overview {
    display: grid;
    grid-template-columns: repeat(4, minmax(150px, 1fr));
    gap: 14px;
}

.overview-stat,
.overview-details,
.new-applicants-section {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-card);
    box-shadow: var(--shadow-sm);
}

.overview-stat {
    padding: 18px;
}

.overview-stat span {
    display: block;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 800;
    line-height: 1.35;
}

.overview-stat strong {
    display: block;
    margin-top: 10px;
    color: #0f766e;
    font-size: 32px;
    font-weight: 900;
}

.overview-stat.warning strong {
    color: #d97706;
}

.overview-details {
    grid-column: 1 / -1;
    padding: 16px;
}

.overview-details h3 {
    margin: 0 0 10px;
    font-size: 15px;
    font-weight: 900;
}

.overview-details p {
    margin: 0;
    color: var(--text-muted);
    font-weight: 700;
}

.overview-job-row {
    width: 100%;
    border: 0;
    border-top: 1px solid var(--border-color);
    background: transparent;
    padding: 10px 0;
    text-align: left;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: var(--text-primary);
    font-weight: 800;
}

.overview-job-row:first-of-type {
    border-top: 0;
}

.overview-job-row small {
    color: var(--text-muted);
    font-weight: 700;
    white-space: nowrap;
}

.new-applicants-section {
    padding: 18px;
}

.section-subtitle {
    margin: 4px 0 0;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 700;
}

.new-applicant-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 14px;
}

.new-applicant-card {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 16px;
    padding: 20px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: #f8fafc;
}

.new-applicant-main h3 {
    margin: 0 0 4px;
    font-size: 16px;
    font-weight: 900;
}

.new-applicant-main p {
    margin: 0 0 7px;
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.45;
}

.new-applicant-side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    text-align: right;
}

.new-applicant-side strong {
    color: #0f766e;
    font-weight: 900;
}

.new-applicant-side span,
.new-applicants-loading {
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 800;
}

.new-applicants-loading {
    padding: 18px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-card);
}

.candidate-search-panel {
    padding: 18px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-card);
    box-shadow: var(--shadow-sm);
    margin-bottom: 18px;
}

.candidate-filter-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.candidate-filter-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.candidate-results-panel,
.candidate-result-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.candidate-card {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr) 170px;
    gap: 16px;
    padding: 18px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-card);
    box-shadow: var(--shadow-sm);
}

.candidate-avatar,
.candidate-profile-avatar {
    overflow: hidden;
    background: linear-gradient(135deg, #0ea5e9, #14b8a6);
    color: #fff;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
}

.candidate-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
}

.candidate-avatar img,
.candidate-profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.candidate-title-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
}

.candidate-title-row h3 {
    margin: 0 0 4px;
    color: var(--text-primary);
    font-size: 17px;
    font-weight: 900;
}

.candidate-title-row p,
.candidate-bio,
.candidate-side span {
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.5;
}

.candidate-bio {
    margin: 8px 0 10px;
}

.candidate-rating {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    color: #f59e0b;
    font-size: 12px;
    font-weight: 800;
}

.candidate-side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    text-align: right;
}

.candidate-side strong {
    color: #0f766e;
    font-size: 16px;
    font-weight: 900;
}

.candidate-profile-cover {
    height: 150px;
    background: linear-gradient(135deg, #e0f2fe, #ccfbf1);
    background-size: cover;
    background-position: center;
    position: relative;
}

.candidate-profile-avatar {
    width: 86px;
    height: 86px;
    border: 4px solid #fff;
    border-radius: 50%;
    position: absolute;
    left: 24px;
    bottom: -36px;
    box-shadow: var(--shadow-md);
}

.candidate-profile-body {
    padding-top: 48px;
}

.candidate-profile-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 16px;
}

.candidate-profile-head h2 {
    margin: 0 0 4px;
    font-size: 24px;
    font-weight: 900;
}

.candidate-profile-head p,
.candidate-profile-body section p {
    color: var(--text-secondary);
    line-height: 1.55;
}

.candidate-profile-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin: 16px 0;
}

.candidate-profile-stats div,
.candidate-profile-list>div {
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: #f8fafc;
}

.candidate-profile-stats strong {
    display: block;
    color: var(--text-primary);
    font-weight: 900;
}

.candidate-profile-stats span {
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 700;
}

.candidate-profile-body section {
    margin-top: 18px;
}

.candidate-profile-body section h3 {
    margin: 0 0 8px;
    font-size: 15px;
    font-weight: 900;
}

.candidate-profile-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

@media (max-width: 768px) {
    .managed-job-card {
        grid-template-columns: 1fr;
    }

    .managed-job-side,
    .candidate-side {
        align-items: flex-start;
        text-align: left;
    }

    .business-job-overview,
    .new-applicant-card,
    .candidate-filter-grid,
    .candidate-card,
    .candidate-profile-stats,
    .candidate-profile-list {
        grid-template-columns: 1fr;
    }

    .overview-job-row,
    .candidate-profile-head {
        flex-direction: column;
    }

    .new-applicant-side {
        align-items: flex-start;
        text-align: left;
    }
}

/* Business service packages */
#servicePackagesPanel {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.service-package-current {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 20px;
    padding: 24px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, #ffffff, #f0fdfa);
    box-shadow: var(--shadow-sm);
}

.service-eyebrow {
    color: #0f766e;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0;
}

.service-current-main h2 {
    margin: 8px 0;
    color: var(--text-primary);
    font-size: 28px;
    font-weight: 900;
}

.service-current-main p,
.service-plan-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

.service-benefits {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.service-benefits span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 10px;
    border-radius: 999px;
    background: #e0f2fe;
    color: #0369a1;
    font-size: 12px;
    font-weight: 800;
}

.service-current-stats {
    display: grid;
    gap: 10px;
}

.service-current-stats div {
    padding: 12px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid var(--border-color);
}

.service-current-stats strong {
    display: block;
    color: var(--text-primary);
    font-size: 20px;
    font-weight: 900;
}

.service-current-stats span {
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 700;
}

.service-plan-grid {
    display: flex;
    gap: 16px;
    justify-content: center;
    max-width: 900px;
    margin: 0 auto;
}

.service-plan-card {
    flex: 1;
    min-width: 280px;
    max-width: 420px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 16px;
    padding: 18px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-card);
    box-shadow: var(--shadow-sm);
}

.service-plan-card.active {
    border-color: #0ea5e9;
    box-shadow: 0 12px 28px rgba(14, 165, 233, 0.14);
}

.service-plan-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.service-plan-head h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 900;
}

.service-plan-head span {
    color: #0f766e;
    background: #ccfbf1;
    border-radius: 999px;
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 900;
}

.service-plan-card strong {
    display: block;
    margin-top: 14px;
    color: #f59e0b;
    font-size: 22px;
    font-weight: 900;
}

.service-plan-card small {
    display: block;
    color: var(--text-muted);
    font-weight: 700;
    margin-top: 2px;
}

.service-payment-list {
    display: grid;
    gap: 10px;
}

.service-payment-item,
.service-payment-empty {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
}

.service-payment-item span {
    display: block;
    margin-top: 4px;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 700;
}

.service-payment-item>div:last-child {
    text-align: right;
}

.service-payment-empty {
    color: var(--text-muted);
    font-weight: 700;
}

@media (max-width: 980px) {

    .service-package-current,
    .service-plan-grid {
        grid-template-columns: 1fr;
    }
}

/* ---------- Business Employer Dashboard Redesign ---------- */


.top-nav {
    height: 70px;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid #ECEEF5;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
    padding: 0 26px;
}

.nav-brand {
    min-width: 250px;
}

.j4s-logo-box {
    background: #EEF2FF;
    color: #6366F1;
    box-shadow: inset 0 0 0 1px #C7D2FE;
}

.hamburger-btn {
    border-radius: 12px;
}

.nav-search {
    max-width: 660px;
    flex: 1 1 480px;
}

.nav-search input {
    height: 46px;
    border-radius: 999px;
    border: 1px solid #E3E6EF;
    background: #F9FAFC;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.03);
}

.nav-search input:focus {
    background: #FFFFFF;
    border-color: #A5B4FC;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.12);
}

.nav-right {
    gap: 14px;
}

.business-public-jobs-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 14px;
    color: var(--primary);
    background: #FFFFFF;
    border: 1px solid var(--primary-200);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    transition: var(--transition);
    white-space: nowrap;
}

.business-public-jobs-btn:hover {
    color: var(--primary-dark);
    background: var(--primary-50);
    transform: translateY(-1px);
}

.notification-btn {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: 1px solid #E5E7EB;
    background: #FFFFFF;
}

.user-profile {
    min-height: 48px;
    padding: 6px 8px 6px 6px;
    border-radius: 999px;
    border: 1px solid transparent;
}

.user-profile:hover {
    border-color: #E0E7FF;
    background: #F8FAFF;
}

.user-avatar {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
}

.dashboard-layout {
    padding-top: 70px;
    background: #F8F9FB;
}

.sidebar {
    width: 250px;
    min-width: 250px;
    top: 70px;
    height: calc(100vh - 70px);
    padding: 22px 14px 18px;
    border-right: 1px solid #ECEEF5;
    background: #FFFFFF;
    box-shadow: 12px 0 34px rgba(15, 23, 42, 0.035);
}

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

.sidebar-label {
    padding: 8px 10px 10px;
    font-size: 11px;
    letter-spacing: 0.08em;
    color: #9CA3AF;
}

.sidebar-item {
    min-height: 44px;
    padding: 11px 12px;
    border-radius: 12px;
    color: #596174;
    font-weight: 750;
    gap: 12px;
}

.sidebar-item .item-icon {
    width: 22px;
    height: 22px;
    color: inherit;
}

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

.sidebar-item.active::before {
    display: none;
}

.sidebar-item.has-chevron .sidebar-chevron {
    margin-left: auto;
    color: #A5B4FC;
}

.sidebar-bottom {
    padding: 16px 2px 4px;
}

.btn-post-job {
    min-height: 48px;
    border-radius: 16px;
    background: linear-gradient(135deg, #6366F1, #7C3AED);
    box-shadow: 0 14px 28px rgba(99, 102, 241, 0.24);
    font-weight: 850;
}

.main-content-wrapper {
    margin-left: 250px;
    gap: 24px;
    padding: 24px 24px 28px;
}

.main-content {
    max-width: calc(100% - 344px);
    padding: 0;
}

.right-sidebar {
    width: 320px;
    min-width: 320px;
    padding: 0;
    gap: 18px;
}

.business-welcome-card,
.latest-candidates-card,
.business-side-card,
.business-stat-card {
    background: #FFFFFF;
    border: 1px solid #ECEEF5;
    border-radius: 18px;
    box-shadow: var(--shadow-soft);
}

.business-welcome-card {
    min-height: 260px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 290px;
    gap: 28px;
    align-items: center;
    padding: 34px 36px;
    margin-bottom: 22px;
    background: linear-gradient(135deg, #FFFFFF 0%, #F8FAFF 58%, #EEF2FF 100%);
    overflow: hidden;
    position: relative;
}

.business-welcome-copy>span {
    display: block;
    margin-bottom: 10px;
    color: #8A94A6;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.12em;
}

.business-welcome-copy h1 {
    margin: 0 0 10px;
    color: #111827;
    font-size: 34px;
    line-height: 1.15;
    font-weight: 900;
    letter-spacing: 0;
}

.business-welcome-copy p {
    max-width: 520px;
    margin: 0 0 24px;
    color: #667085;
    font-size: 15px;
    line-height: 1.7;
}

.business-welcome-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.btn-business-primary,
.btn-business-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 999px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 850;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    white-space: nowrap;
}

.btn-business-primary {
    color: #FFFFFF;
    border: 1px solid var(--primary);
    background: var(--primary);
    box-shadow: 0 12px 24px rgba(14, 165, 233, 0.22);
}

.btn-business-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.btn-business-outline {
    color: var(--primary);
    border: 1px solid var(--primary-200);
    background: #FFFFFF;
}

.btn-business-outline:hover {
    background: var(--primary-50);
    transform: translateY(-1px);
}

.btn-business-outline.sm {
    min-height: 36px;
    padding: 0 13px;
    border-radius: 12px;
}

.btn-business-outline.full {
    width: 100%;
    margin-top: 14px;
}

.business-welcome-illustration {
    position: relative;
    min-height: 218px;
}

.illustration-card.main {
    position: absolute;
    right: 22px;
    bottom: 8px;
    width: 218px;
    height: 164px;
    border-radius: 26px;
    background: linear-gradient(145deg, #FFFFFF, #EEF2FF);
    border: 1px solid #DDE4FF;
    box-shadow: 0 24px 44px rgba(99, 102, 241, 0.16);
}

.illustration-person {
    position: absolute;
    left: 48px;
    bottom: 26px;
    width: 124px;
    height: 118px;
}

.person-head {
    position: absolute;
    top: 8px;
    left: 42px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #FBCFE8;
    border: 6px solid #4338CA;
}

.person-body {
    position: absolute;
    top: 54px;
    left: 28px;
    width: 72px;
    height: 62px;
    border-radius: 28px 28px 12px 12px;
    background: linear-gradient(135deg, #6366F1, #8B5CF6);
}

.person-laptop {
    position: absolute;
    right: 2px;
    bottom: 4px;
    width: 92px;
    height: 54px;
    border-radius: 8px;
    background: #111827;
    box-shadow: 0 8px 0 #D1D5DB;
}

.floating-candidate {
    position: absolute;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
    border-radius: 999px;
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.10);
    color: #F59E0B;
    font-size: 12px;
    font-weight: 900;
}

.floating-candidate span {
    display: inline-flex;
    width: 30px;
    height: 30px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #FFFFFF;
    background: linear-gradient(135deg, #6366F1, #22C55E);
}

.floating-candidate svg {
    width: 15px;
    height: 15px;
    fill: currentColor;
}

.candidate-a {
    top: 6px;
    right: 2px;
}

.candidate-b {
    top: 68px;
    left: 0;
}

.candidate-c {
    right: 0;
    bottom: 0;
}

.business-stat-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 22px;
}

.business-stat-card {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 118px;
    padding: 20px;
}

.business-stat-card strong {
    display: block;
    color: #111827;
    font-size: 30px;
    line-height: 1;
    font-weight: 950;
}

.business-stat-card span {
    display: block;
    margin-top: 7px;
    color: #344054;
    font-size: 14px;
    font-weight: 850;
}

.business-stat-card small {
    display: block;
    margin-top: 5px;
    color: #8A94A6;
    font-size: 12px;
    font-weight: 800;
}

.business-stat-card small.danger {
    color: #DC2626;
}

.business-stat-card small.success {
    color: #16A34A;
}

.stat-icon {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    flex-shrink: 0;
}

.stat-icon svg {
    width: 23px;
    height: 23px;
}

.stat-icon.danger {
    color: #DC2626;
    background: #FEE2E2;
}

.stat-icon.success {
    color: #16A34A;
    background: #DCFCE7;
}

.stat-icon.neutral {
    color: #6366F1;
    background: #EEF2FF;
}

.latest-candidates-card {
    padding: 22px;
}

.business-section-heading,
.business-side-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.business-section-heading h2,
.business-side-heading h3 {
    margin: 0;
    color: #111827;
    font-size: 18px;
    font-weight: 900;
}

.text-link-button {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 0;
    color: #6366F1;
    background: transparent;
    border: none;
    font-family: inherit;
    font-size: 13px;
    font-weight: 850;
    cursor: pointer;
}

.latest-candidate-list {
    display: grid;
    gap: 10px;
}

.latest-candidate-row {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 14px 0;
    border-top: 1px solid #EEF0F5;
}

.latest-candidate-row:first-child {
    border-top: none;
    padding-top: 0;
}

.latest-candidate-avatar {
    width: 48px;
    height: 48px;
    overflow: hidden;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366F1, #22C55E);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 900;
}

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

.latest-candidate-title {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.latest-candidate-title strong {
    color: #111827;
    font-size: 14px;
    font-weight: 900;
}

.latest-candidate-main p {
    margin: 4px 0 0;
    color: #667085;
    font-size: 13px;
    line-height: 1.45;
}

.latest-candidate-main small {
    display: block;
    margin-top: 4px;
    color: #98A2B3;
    font-size: 12px;
    font-weight: 700;
}

.match-pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 900;
}

.match-pill.medium {
    color: #C2410C;
    background: #FFEDD5;
}

.business-side-card {
    padding: 18px;
}

.recent-job-list {
    display: grid;
    gap: 12px;
}

.recent-job-item {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 12px;
    padding: 13px;
    border: 1px solid #EEF0F5;
    border-radius: 14px;
    background: #FCFCFD;
}

.recent-job-icon {
    width: 42px;
    height: 42px;
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6366F1;
    background: #EEF2FF;
}

.recent-job-item strong {
    display: block;
    color: #111827;
    font-size: 13px;
    font-weight: 900;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.recent-job-item p {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 6px 0 8px;
    color: #667085;
    font-size: 12px;
    font-weight: 750;
}

.recent-job-item p span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.recent-job-item p svg {
    width: 13px;
    height: 13px;
}

.job-warning-badge {
    display: inline-flex;
    width: fit-content;
    padding: 4px 8px;
    border-radius: 999px;
    color: #C2410C;
    background: #FFEDD5;
    font-size: 11px;
    font-weight: 900;
}

.side-eyebrow {
    display: block;
    margin-bottom: 14px;
    color: #8A94A6;
    font-size: 11px;
    font-weight: 950;
    letter-spacing: 0.1em;
}

.current-plan-head {
    display: flex;
    align-items: center;
    gap: 12px;
}

.plan-star {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: #F59E0B;
    background: #FEF3C7;
}

.current-plan-head h3 {
    margin: 0 0 6px;
    color: #111827;
    font-size: 16px;
    font-weight: 950;
}

.active-plan-badge {
    display: inline-flex;
    padding: 4px 8px;
    color: #15803D;
    background: #DCFCE7;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 900;
}

.plan-expiry {
    margin: 14px 0;
    color: #667085;
    font-size: 13px;
    font-weight: 750;
}

.plan-checklist {
    display: grid;
    gap: 9px;
    margin-bottom: 16px;
}

.plan-checklist span {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #344054;
    font-size: 13px;
    font-weight: 750;
}

.plan-checklist svg {
    width: 16px;
    height: 16px;
    color: #16A34A;
    stroke-width: 3;
}

.plan-progress-row>span {
    display: block;
    margin-bottom: 8px;
    color: #667085;
    font-size: 12px;
    font-weight: 850;
}

.plan-progress {
    width: 100%;
    height: 10px;
    overflow: hidden;
    border-radius: 999px;
    background: #EEF0F5;
}

.plan-progress>div {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #6366F1, #22C55E);
}

.business-loading-row,
.business-empty-row {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 54px;
    color: #8A94A6;
    font-size: 13px;
    font-weight: 750;
}

.support-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.support-card-grid .business-side-card h3 {
    margin: 0 0 8px;
    color: #111827;
    font-size: 16px;
    font-weight: 900;
}

.support-card-grid .business-side-card p {
    margin: 0;
    color: #667085;
    line-height: 1.6;
}

.notification-list-item {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 12px;
    padding: 14px 0;
    border-top: 1px solid #EEF0F5;
}

.notification-list-item:first-child {
    border-top: none;
    padding-top: 0;
}

.notification-list-item.unread strong {
    color: var(--primary);
}

.notification-list-item .notification-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    background: var(--primary-50);
    color: var(--primary);
    font-weight: 900;
}

@media (max-width: 1280px) {
    .main-content-wrapper {
        gap: 18px;
        padding: 20px;
    }

    .business-welcome-card {
        grid-template-columns: 1fr;
    }

    .business-welcome-illustration {
        display: none;
    }
}

@media (max-width: 1120px) {
    .right-sidebar {
        display: none;
    }

    .main-content {
        max-width: 100%;
    }

    .business-stat-grid,
    .support-card-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 860px) {
    .nav-brand {
        min-width: auto;
    }

    .business-public-jobs-btn span,
    .user-info,
    .dropdown-arrow {
        display: none;
    }

    .main-content-wrapper {
        margin-left: 0;
        padding: 16px;
    }

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

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

    .business-welcome-card {
        padding: 24px;
        min-height: auto;
    }

    .business-welcome-copy h1 {
        font-size: 28px;
    }

    .latest-candidate-row {
        grid-template-columns: 44px minmax(0, 1fr);
    }

    .latest-candidate-row .btn-business-outline {
        grid-column: 2;
        justify-self: start;
    }
}

@media (max-width: 640px) {
    .top-nav {
        padding: 0 14px;
    }

    .nav-search {
        display: none;
    }

    .business-public-jobs-btn {
        width: 40px;
        min-width: 40px;
        padding: 0;
    }

    .business-welcome-actions {
        flex-direction: column;
    }

    .btn-business-primary,
    .btn-business-outline {
        width: 100%;
    }
}

/* ---------- ADMIN SPECIFIC OVERRIDES ---------- */
.layout-admin .main-content-wrapper {
    margin-left: 250px !important;
    width: calc(100% - 250px) !important;
    max-width: calc(100% - 250px) !important;
}

.layout-admin .main-content {
    width: 100% !important;
    max-width: 100% !important;
}

body.sidebar-collapsed .layout-admin .main-content-wrapper {
    margin-left: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
}

@media (max-width: 860px) {
    .layout-admin .main-content-wrapper {
        margin-left: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }
}

/* ---------- Mobile App Experience: iOS & Android ---------- */
@media (max-width: 768px) {
    html {
        -webkit-text-size-adjust: 100%;
        scroll-padding-top: 74px;
    }

    body {
        background: #f7fbff;
        font-size: 15px;
        padding-bottom: max(18px, env(safe-area-inset-bottom));
    }

    .top-nav {
        height: 64px;
        padding: 0 max(12px, env(safe-area-inset-left)) 0 max(12px, env(safe-area-inset-right));
        gap: 10px;
        box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
    }

    .nav-left {
        gap: 10px;
        min-width: 0;
    }

    .j4s-brand {
        gap: 8px;
        font-size: 19px;
        min-width: 0;
    }

    .j4s-logo-box {
        width: 34px;
        height: 34px;
        border-radius: 10px;
    }

    .hamburger,
    .notification-btn {
        width: 42px;
        height: 42px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 14px;
        background: #ffffff;
        border: 1px solid var(--border-color);
    }

    .nav-right {
        gap: 8px;
        min-width: 0;
    }

    .nav-search,
    .btn-find-freelancer,
    .business-public-jobs-btn,
    .user-info,
    .dropdown-arrow {
        display: none !important;
    }

    .user-profile {
        padding: 0;
        min-height: 42px;
        border: none;
        background: transparent;
    }

    .user-avatar {
        width: 42px;
        height: 42px;
        border: 2px solid #ffffff;
        box-shadow: 0 5px 14px rgba(15, 23, 42, 0.12);
    }

    .dropdown-menu[aria-labelledby="notificationBtn"] {
        position: fixed !important;
        top: 70px !important;
        left: 12px !important;
        right: 12px !important;
        width: auto !important;
        max-height: calc(100dvh - 92px);
        transform: none !important;
        border-radius: 16px !important;
    }

    .dashboard-layout {
        display: block;
        padding-top: 64px;
        min-height: 100dvh;
    }

    .dashboard-layout::after {
        content: '';
        position: fixed;
        inset: 64px 0 0;
        z-index: 895;
        background: rgba(15, 23, 42, 0.36);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.2s ease;
    }

    .dashboard-layout:has(.sidebar.open)::after {
        opacity: 1;
        pointer-events: auto;
    }

    .sidebar {
        top: 64px !important;
        left: 0;
        width: min(86vw, 320px) !important;
        min-width: 0 !important;
        height: calc(100dvh - 64px) !important;
        padding: 16px 12px max(18px, env(safe-area-inset-bottom)) !important;
        z-index: 920;
        border-right: 1px solid rgba(226, 232, 240, 0.95);
        box-shadow: 20px 0 40px rgba(15, 23, 42, 0.16);
        transform: translateX(-105%);
    }

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

    .sidebar-label {
        padding: 12px 12px 8px;
        font-size: 10px;
    }

    .sidebar-item {
        min-height: 48px;
        padding: 12px;
        border-radius: 12px;
        font-size: 14px;
    }

    .main-content-wrapper,
    .layout-admin .main-content-wrapper {
        display: block !important;
        margin-left: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 14px !important;
    }

    .main-content,
    .layout-admin .main-content {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
    }

    .right-sidebar {
        display: none !important;
    }

    .welcome-banner,
    .business-welcome-card,
    .welcome-box-business,
    .admin-hero,
    .admin-section,
    .admin-home-panel,
    .admin-chart-panel,
    .latest-candidates-card,
    .business-side-card,
    .widget-card,
    .income-widget,
    .candidates-section {
        border-radius: 14px !important;
        padding: 18px !important;
        margin-bottom: 14px !important;
        box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06) !important;
    }

    .welcome-banner,
    .welcome-box-business,
    .admin-hero {
        display: block !important;
    }

    .banner-text h1,
    .business-welcome-copy h1,
    .welcome-box-business .welcome-title {
        font-size: 24px !important;
        line-height: 1.2 !important;
        letter-spacing: 0 !important;
    }

    .banner-actions,
    .business-welcome-actions,
    .welcome-actions-business,
    .jobs-header,
    .jobs-filters,
    .admin-section-header,
    .candidates-header {
        align-items: stretch !important;
        flex-direction: column !important;
        gap: 10px !important;
    }

    .btn-primary-main,
    .btn-outline-main,
    .btn-business-primary,
    .btn-business-outline,
    .btn-indigo-solid,
    .btn-indigo-outline,
    .filter-select {
        width: 100% !important;
        min-height: 44px;
        justify-content: center;
    }

    .categories-grid,
    .business-stat-grid,
    .business-stats-grid,
    .admin-stats-grid,
    .support-card-grid,
    .service-plan-grid,
    .service-package-current {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }

    .category-card {
        display: grid;
        grid-template-columns: 48px minmax(0, 1fr);
        align-items: center;
        text-align: left;
        gap: 12px;
        padding: 14px;
        border-radius: 12px;
    }

    .category-icon {
        margin: 0;
        width: 46px;
        height: 46px;
    }

    .job-card,
    .managed-job-card,
    .candidate-item,
    .service-payment-item,
    .service-payment-empty,
    .business-stat-card,
    .admin-stat-card {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 12px !important;
        padding: 16px !important;
        border-radius: 14px !important;
    }

    .job-card {
        padding-right: 52px !important;
    }

    .job-icon,
    .stat-icon,
    .business-stat-icon,
    .admin-stat-icon {
        width: 44px;
        height: 44px;
    }

    .job-title {
        font-size: 16px;
        line-height: 1.35;
    }

    .job-desc {
        -webkit-line-clamp: 2;
        line-height: 1.45;
    }

    .job-meta {
        min-width: 0;
        align-items: flex-start;
        width: 100%;
    }

    .job-bookmark,
    .btn-save-job {
        top: 14px !important;
        right: 14px !important;
    }

    .latest-candidate-row,
    .recent-job-item,
    .notification-list-item {
        grid-template-columns: 44px minmax(0, 1fr) !important;
        gap: 12px !important;
    }

    .admin-section,
    .admin-home-panel,
    .admin-chart-panel,
    .latest-candidates-card,
    .table-responsive,
    [style*="overflow-x"] {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .admin-table,
    table {
        min-width: 680px;
    }

    .modal-dialog {
        margin: 10px;
        max-width: calc(100% - 20px);
    }

    .modal-content {
        border-radius: 16px;
    }

    .toast-container {
        left: 12px !important;
        right: 12px !important;
        padding: 0 !important;
    }

    .j4s-toast {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .top-nav {
        height: 60px;
    }

    .dashboard-layout {
        padding-top: 60px;
    }

    .dashboard-layout::after {
        inset: 60px 0 0;
    }

    .sidebar {
        top: 60px !important;
        height: calc(100dvh - 60px) !important;
        width: min(88vw, 304px) !important;
    }

    .j4s-logo-text {
        display: none;
    }

    .main-content-wrapper,
    .layout-admin .main-content-wrapper {
        padding: 10px !important;
    }

    .section-header,
    .business-section-heading,
    .business-side-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .section-title,
    .business-section-heading h2,
    .business-side-heading h3 {
        font-size: 17px;
    }

    .admin-stat-val,
    .business-stat-card strong,
    .business-stat-val {
        font-size: 26px !important;
    }

    .chat-bubble-widget {
        right: 14px !important;
        bottom: max(14px, env(safe-area-inset-bottom)) !important;
    }

    .chat-bubble-panel {
        position: fixed !important;
        left: 10px !important;
        right: 10px !important;
        bottom: 78px !important;
        width: auto !important;
        height: min(70dvh, 520px) !important;
        border-radius: 16px !important;
        transform-origin: bottom right;
    }

    .chat-bubble-btn {
        width: 54px !important;
        height: 54px !important;
    }
}

/* ---------- Student Home Mobile Polish ---------- */
@media (max-width: 768px) {
    .main-content>section {
        width: 100% !important;
        max-width: 100% !important;
    }

    .welcome-banner {
        margin: 0 0 18px !important;
        padding: 18px !important;
        border-radius: 0 0 18px 18px !important;
        background: linear-gradient(180deg, #eef6ff 0%, #ffffff 100%) !important;
        border: 0 !important;
        box-shadow: none !important;
    }

    .banner-text {
        width: 100% !important;
    }

    .banner-text p {
        margin-bottom: 16px !important;
    }

    .banner-actions {
        width: 100% !important;
    }

    #btnFindJobNow {
        width: 100% !important;
        min-height: 46px !important;
        border-radius: 999px !important;
        padding: 0 18px !important;
        justify-content: center !important;
        box-shadow: 0 10px 24px rgba(37, 99, 235, 0.18) !important;
    }

    .stats-grid {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
        width: 100% !important;
        overflow: visible !important;
    }

    .stat-card {
        min-width: 0 !important;
        min-height: 106px !important;
        padding: 14px 10px !important;
        border-radius: 14px !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 8px !important;
        text-align: center !important;
    }

    .stat-card>div:first-child {
        width: 40px !important;
        height: 40px !important;
        border-radius: 12px !important;
        flex: 0 0 auto !important;
    }

    .stat-card>div:last-child {
        min-width: 0 !important;
        width: 100% !important;
    }

    .stat-card>div:last-child>div:first-child {
        font-size: 22px !important;
        line-height: 1.05 !important;
    }

    .stat-card>div:last-child>div:last-child {
        font-size: 12px !important;
        line-height: 1.25 !important;
        overflow-wrap: anywhere;
    }

    .categories-grid,
    [style*="grid-template-columns: repeat(5, 1fr)"] {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 10px !important;
        width: 100% !important;
    }

    .category-card {
        min-height: 74px !important;
        padding: 12px 14px !important;
        border-radius: 14px !important;
        display: grid !important;
        grid-template-columns: 44px minmax(0, 1fr) !important;
        align-items: center !important;
        gap: 12px !important;
        text-align: left !important;
    }

    .category-card .category-icon {
        width: 44px !important;
        height: 44px !important;
        margin: 0 !important;
        border-radius: 12px !important;
    }

    .category-card .category-name {
        min-width: 0 !important;
        font-size: 14px !important;
        line-height: 1.3 !important;
        text-align: left !important;
        overflow-wrap: anywhere;
    }

    #featuredJobs>div[style*="grid-template-columns"],
    [style*="grid-template-columns: repeat(3, 1fr)"] {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 12px !important;
        width: 100% !important;
    }
}

@media (max-width: 390px) {

    .main-content-wrapper,
    .layout-admin .main-content-wrapper {
        padding: 8px !important;
    }

    .section-title {
        font-size: 20px !important;
        line-height: 1.25 !important;
    }

    .stats-grid {
        gap: 8px !important;
    }

    .stat-card {
        min-height: 100px !important;
        padding: 12px 8px !important;
    }
}

/* ---------- Public Landing Mobile Fix ---------- */
@media (max-width: 768px) {
    .main-content[style*="max-width: 1200px"] {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 10px !important;
    }

    .main-content[style*="max-width: 1200px"]>div[style*="linear-gradient(135deg, #eff6ff"] {
        display: block !important;
        width: 100% !important;
        min-width: 0 !important;
        padding: 24px 18px !important;
        margin: 0 0 18px !important;
        border-radius: 18px !important;
        overflow: hidden !important;
        box-shadow: 0 8px 22px rgba(37, 99, 235, 0.06) !important;
    }

    .main-content[style*="max-width: 1200px"]>div[style*="linear-gradient(135deg, #eff6ff"]>div:first-child {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        display: block !important;
    }

    .main-content[style*="max-width: 1200px"]>div[style*="linear-gradient(135deg, #eff6ff"]>div:first-child>span:first-child {
        max-width: 100% !important;
        padding: 6px 10px !important;
        margin-bottom: 14px !important;
        border-radius: 999px !important;
        font-size: 10px !important;
        line-height: 1.25 !important;
        letter-spacing: 0.4px !important;
        white-space: normal !important;
        overflow-wrap: normal !important;
        text-align: left !important;
    }

    .main-content[style*="max-width: 1200px"]>div[style*="linear-gradient(135deg, #eff6ff"] h1 {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 0 14px !important;
        color: #172033 !important;
        font-size: clamp(30px, 9vw, 40px) !important;
        line-height: 1.08 !important;
        letter-spacing: 0 !important;
        overflow-wrap: normal !important;
        word-break: normal !important;
        hyphens: none !important;
    }

    .main-content[style*="max-width: 1200px"]>div[style*="linear-gradient(135deg, #eff6ff"] h1 span {
        display: inline !important;
    }

    .main-content[style*="max-width: 1200px"]>div[style*="linear-gradient(135deg, #eff6ff"] p {
        width: 100% !important;
        max-width: 100% !important;
        margin-bottom: 18px !important;
        font-size: 15px !important;
        line-height: 1.55 !important;
    }

    .main-content[style*="max-width: 1200px"]>div[style*="linear-gradient(135deg, #eff6ff"]>div:first-child>div[style*="display: flex"] {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 10px !important;
        width: 100% !important;
    }

    .main-content[style*="max-width: 1200px"]>div[style*="linear-gradient(135deg, #eff6ff"] a.btn {
        width: 100% !important;
        min-height: 46px !important;
        padding: 0 16px !important;
        border-radius: 999px !important;
        text-align: center !important;
    }

    .main-content[style*="max-width: 1200px"]>div[style*="linear-gradient(135deg, #eff6ff"]>div:last-child {
        display: none !important;
    }

    .main-content[style*="max-width: 1200px"]>div[style*="grid-template-columns: repeat(3, 1fr)"],
    .main-content[style*="max-width: 1200px"] div[style*="grid-template-columns: repeat(3, 1fr)"] {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 14px !important;
        margin-bottom: 28px !important;
    }

    .main-content[style*="max-width: 1200px"] h2 {
        font-size: 24px !important;
        line-height: 1.2 !important;
    }
}

@media (max-width: 390px) {
    .main-content[style*="max-width: 1200px"] {
        padding: 8px !important;
    }

    .main-content[style*="max-width: 1200px"]>div[style*="linear-gradient(135deg, #eff6ff"] {
        padding: 22px 16px !important;
    }

    .main-content[style*="max-width: 1200px"]>div[style*="linear-gradient(135deg, #eff6ff"] h1 {
        font-size: 32px !important;
    }
}

/* ---------- Payment Loading Motion ---------- */
.j4s-btn-loading {
    position: relative;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    pointer-events: none;
    overflow: hidden;
}

.j4s-btn-loading::after {
    content: "";
    position: absolute;
    inset: 0;
    transform: translateX(-120%);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent);
    animation: j4s-loading-sweep 1.35s ease-in-out infinite;
}

.j4s-mini-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.42);
    border-top-color: #fff;
    border-radius: 50%;
    flex: 0 0 auto;
    animation: j4s-spin 0.7s linear infinite;
}

.j4s-loading-dots {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    height: 1em;
}

.j4s-loading-dots span {
    width: 4px;
    height: 4px;
    border-radius: 999px;
    background: currentColor;
    opacity: 0.55;
    animation: j4s-dot-bounce 0.95s ease-in-out infinite;
}

.j4s-loading-dots span:nth-child(2) {
    animation-delay: 0.14s;
}

.j4s-loading-dots span:nth-child(3) {
    animation-delay: 0.28s;
}

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

@keyframes j4s-loading-sweep {
    to {
        transform: translateX(120%);
    }
}

@keyframes j4s-dot-bounce {

    0%,
    80%,
    100% {
        transform: translateY(0);
        opacity: 0.45;
    }

    40% {
        transform: translateY(-3px);
        opacity: 1;
    }
}