* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #c7ea46;
    --primary-dark: #a8c73a;
    --primary-light: #d4f066;
    --secondary: #1a1a1a;
    --accent: #c7ea46;
    --danger: #ef4444;
    --warning: #f59e0b;
    --success: #10b981;
    --dark: #0a0a0a;
    --text-dark: #1a1a1a;
    --text-gray: #6b7280;
    --gray: #9ca3af;
    --light-gray: #f3f4f6;
    --bg-light: #fafafa;
    --white: #ffffff;
    --border: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --radius: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
}

html {
    overflow-x: clip;
    width: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--white);
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: clip;
    width: 100%;
}

/* Header Styles */
.header {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: saturate(180%) blur(16px);
    -webkit-backdrop-filter: saturate(180%) blur(16px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: box-shadow .25s ease, background .25s ease, border-color .25s ease;
}

/* Elevated state once the page is scrolled */
.header.scrolled {
    background: rgba(255, 255, 255, 0.92);
    border-bottom-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 6px 24px -12px rgba(0, 30, 0, 0.25);
}

.navbar {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 0 32px;
    height: 70px;
}

.logo {
    font-size: 25px;
    font-weight: 800;
    color: var(--secondary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 9px;
    letter-spacing: -1px;
    flex-shrink: 0;
    transition: opacity .2s ease;
}

.logo:hover { opacity: .85; }

.logo-image {
    height: 38px;
    max-width: 190px;
    object-fit: contain;
}

.logo i {
    color: var(--primary);
    font-size: 26px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 6px;
    align-items: center;
}

.nav-links > li { display: flex; align-items: center; }

.nav-links a {
    color: #374151;
    text-decoration: none;
    font-weight: 600;
    font-size: 14.5px;
    transition: color .18s ease, background .18s ease;
    padding: 9px 14px;
    border-radius: 10px;
    position: relative;
    white-space: nowrap;
    line-height: 1;
}

/* Modern pill-hover for primary nav links (exclude buttons) */
.nav-links a:not(.btn):hover {
    color: var(--secondary);
    background: rgba(0, 0, 0, 0.05);
}

.nav-links a:not(.btn).active {
    color: var(--secondary);
}

.nav-links a:not(.btn).active::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 14px;
    right: 14px;
    height: 2.5px;
    background: var(--primary);
    border-radius: 2px;
}

.btn {
    padding: 14px 28px;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    line-height: 1;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--primary);
    color: #1a1a1a;
    box-shadow: 0 2px 8px rgba(199, 234, 70, 0.3);
    border: 2px solid var(--primary);
    font-weight: 600;
}

.btn-primary:hover {
    background: var(--primary-dark);
    box-shadow: 0 4px 12px rgba(199, 234, 70, 0.4);
    transform: translateY(-2px);
    border-color: var(--primary-dark);
}

.btn-outline {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: white;
    font-weight: 600;
}

.btn-outline:hover {
    border-color: var(--primary-dark);
    color: #1a1a1a;
    background: var(--primary);
    box-shadow: 0 2px 8px rgba(199, 234, 70, 0.3);
}

.btn-secondary {
    background: var(--secondary);
    color: var(--white);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    background: var(--dark);
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 18px 36px;
    font-size: 16px;
    border-radius: 14px;
}

.btn-sm {
    padding: 10px 20px;
    font-size: 14px;
}

/* Main Content */
.main-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 32px;
    width: 100%;
    box-sizing: border-box;
}

/* Hero Section */
.hero {
    background: linear-gradient(160deg, #0d1f0d 0%, #1a2e1a 50%, #0f2d0f 100%);
    color: var(--white);
    padding: 80px 32px;
    text-align: center;
    border-radius: var(--radius-xl);
    margin-bottom: 56px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(199, 234, 70, 0.15) 0%, transparent 60%);
    pointer-events: none;
}

.hero h1 {
    font-size: 52px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.15;
    letter-spacing: -1px;
    position: relative;
}

.hero h1 span {
    color: var(--primary);
}

.hero p {
    font-size: 18px;
    margin-bottom: 36px;
    opacity: 0.85;
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    font-weight: 400;
    line-height: 1.65;
}

/* Card Styles */
.card {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    padding: 32px;
    margin-bottom: 24px;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.card:hover {
    box-shadow: var(--shadow-lg);
    border-color: #d1d5db;
    transform: translateY(-2px);
}

.card-header {
    border-bottom: 1px solid var(--border);
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.card-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: -0.5px;
}

/* Grid Layouts */
.grid {
    display: grid;
    gap: 24px;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

/* Form Styles */
.form-group {
    margin-bottom: 28px;
}

.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-dark);
    font-size: 14px;
    letter-spacing: -0.2px;
}

.form-control {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 15px;
    transition: var(--transition);
    font-family: inherit;
    background: var(--white);
    color: var(--text-dark);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(199, 234, 70, 0.15);
    background: var(--white);
}

.form-control:hover {
    border-color: var(--gray);
}

.form-control::placeholder {
    color: var(--gray);
}

textarea.form-control {
    min-height: 140px;
    resize: vertical;
    line-height: 1.6;
}

/* Badge Styles */
.badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
}

.badge-primary {
    background: rgba(199, 234, 70, 0.15);
    color: #6b7c1e;
}

.badge-success {
    background: rgba(16, 185, 129, 0.15);
    color: #047857;
}

.badge-warning {
    background: rgba(245, 158, 11, 0.15);
    color: #92400e;
}

.badge-danger {
    background: rgba(239, 68, 68, 0.15);
    color: #991b1b;
}

.badge-secondary {
    background: var(--light-gray);
    color: var(--text-dark);
}

/* Footer */
.footer {
    position: relative;
    background:
        radial-gradient(ellipse at 15% 0%, rgba(199, 234, 70, 0.10) 0%, transparent 45%),
        linear-gradient(180deg, #002600 0%, #001E00 60%, #001400 100%);
    color: rgba(255, 255, 255, 0.85);
    padding: 72px 32px 28px;
    margin-top: 80px;
    border-top: 1px solid rgba(199, 234, 70, 0.18);
}
.footer::before {
    content: "";
    position: absolute;
    top: -1px; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #c7ea46 50%, transparent);
    opacity: .7;
}

.footer-content {
    max-width: 1280px;
    margin: 0 auto 44px;
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr 1.4fr;
    gap: 40px;
}

/* Brand column */
.footer-brand p {
    color: rgba(255, 255, 255, 0.62);
    font-size: 14px;
    line-height: 1.7;
    margin: 14px 0 18px;
    max-width: 280px;
}
.footer-logo {
    display: inline-block;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -.5px;
    color: #fff;
    text-decoration: none;
}
.footer-logo::after {
    content: "";
    display: inline-block;
    width: 7px; height: 7px;
    margin-left: 3px;
    border-radius: 50%;
    background: #c7ea46;
    vertical-align: baseline;
}
.footer-logo:has(.footer-logo-image)::after {
    display: none;
}
.footer-logo-image {
    display: block;
    max-height: 44px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
}
.footer-social {
    display: flex;
    gap: 10px;
}
.footer-social a {
    width: 38px; height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    font-size: 15px;
    text-decoration: none;
    transition: transform .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
}
.footer-social a:hover {
    background: #c7ea46;
    border-color: #c7ea46;
    color: #001E00;
    transform: translateY(-3px);
}

.footer-section h3 {
    margin-bottom: 18px;
    color: var(--white);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .8px;
    text-transform: uppercase;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 11px;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.62);
    text-decoration: none;
    transition: color .18s ease, padding .18s ease;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
}
.footer-section ul a:hover {
    color: #c7ea46;
    padding-left: 4px;
}

/* Newsletter column */
.footer-newsletter p {
    color: rgba(255, 255, 255, 0.62);
    font-size: 14px;
    line-height: 1.65;
    margin: 0 0 14px;
}
.footer-sub {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 11px;
    padding: 5px;
    transition: border-color .18s ease, box-shadow .18s ease;
}
.footer-sub:focus-within {
    border-color: #c7ea46;
    box-shadow: 0 0 0 3px rgba(199, 234, 70, 0.15);
}
.footer-sub input {
    flex: 1;
    min-width: 0;
    border: none;
    background: transparent;
    outline: none;
    color: #fff;
    font-size: 14px;
    font-family: inherit;
    padding: 9px 12px;
}
.footer-sub input::placeholder { color: rgba(255, 255, 255, 0.4); }
.footer-sub button {
    flex-shrink: 0;
    width: 40px; height: 40px;
    border: none;
    border-radius: 8px;
    background: #c7ea46;
    color: #001E00;
    font-size: 15px;
    cursor: pointer;
    transition: background .18s ease, transform .18s ease;
}
.footer-sub button:hover { background: #d4f15f; transform: scale(1.05); }
.footer-trust {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.45);
}
.footer-trust i { color: #c7ea46; }

/* Bottom bar */
.footer-bottom {
    max-width: 1280px;
    margin: 0 auto;
    padding-top: 26px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 13.5px;
    color: rgba(255, 255, 255, 0.55);
}
.footer-bottom p { margin: 0; }
.footer-legal {
    display: flex;
    align-items: center;
    gap: 10px;
}
.footer-legal a {
    color: rgba(255, 255, 255, 0.62);
    text-decoration: none;
    transition: color .18s ease;
}
.footer-legal a:hover { color: #c7ea46; }
.footer-dot { color: rgba(255, 255, 255, 0.3); }
.footer-powered a {
    color: #c7ea46;
    text-decoration: none;
    font-weight: 600;
}
.footer-powered a:hover { text-decoration: underline; }

/* Footer tablet layout */
@media (max-width: 1024px) and (min-width: 769px) {
    .footer-content {
        grid-template-columns: 1.4fr 1fr 1fr;
        gap: 36px 32px;
    }
    .footer-newsletter { grid-column: 2 / -1; }
}
/* Footer small phones */
@media (max-width: 480px) {
    .footer-content { grid-template-columns: 1fr; }
    .footer-social a { width: 40px; height: 40px; }
}


    
    .hero p {
        font-size: 16px;
    }
    
    /* Removed: .nav-links display none - now handled by mobile menu system below */
    
    .navbar {
        padding: 0 16px;
    }
    
    .main-content {
        padding: 20px 16px;
    }
    
    .hero {
        padding: 40px 16px;
        border-radius: 12px;
        margin-bottom: 32px;
    }
    
    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.4s ease-out;
}

/* Loading Spinner */
.spinner {
    border: 3px solid var(--light-gray);
    border-top: 3px solid var(--primary);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 0.8s linear infinite;
    margin: 32px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Stats Card */
.stats-card {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 32px;
    border-radius: var(--radius-lg);
    text-align: center;
}

.stats-number {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -1px;
}

.stats-label {
    font-size: 15px;
    opacity: 0.9;
}

/* Alert Styles */
.alert {
    padding: 16px 20px;
    border-radius: var(--radius);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    border: 1px solid transparent;
}

.alert-success {
    background: #D1FAE5;
    color: #047857;
    border-color: #6EE7B7;
}

.alert-error {
    background: #FEE2E2;
    color: #991B1B;
    border-color: #FCA5A5;
}

.alert-warning {
    background: #FEF3C7;
    color: #92400E;
    border-color: #FCD34D;
}

.alert-info {
    background: #DBEAFE;
    color: #1E40AF;
    border-color: #93C5FD;
}

/* Additional Upwork-inspired Utilities */
h1, h2, h3, h4, h5, h6 {
    letter-spacing: -0.5px;
    font-weight: 600;
}

a {
    transition: var(--transition);
}

.light-bg {
    background: var(--bg-light);
}

.text-primary {
    color: var(--primary);
}

.text-gray {
    color: var(--text-gray);
}

.shadow-card {
    box-shadow: var(--shadow);
}

.rounded {
    border-radius: var(--radius);
}

.rounded-lg {
    border-radius: var(--radius-lg);
}

/* ============================================
   MODERN DASHBOARD STYLES
   ============================================ */

/* Welcome Banners */
.freelancer-welcome-banner,
.client-welcome-banner {
    background: linear-gradient(135deg, #c7ea46 0%, #a8c73a 100%);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 32px;
    box-shadow: 0 8px 32px rgba(199, 234, 70, 0.2);
}

.welcome-hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.dashboard-title {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 8px 0;
    letter-spacing: -0.5px;
}

.dashboard-subtitle {
    font-size: 16px;
    color: #2d2d2d;
    margin: 0;
    font-weight: 400;
}

.welcome-actions {
    display: flex;
    gap: 12px;
}

/* Modern Buttons */
.btn-modern {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    white-space: nowrap;
}

.btn-modern.btn-primary {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: white;
}

.btn-modern.btn-primary:hover {
    background: linear-gradient(135deg, #2d2d2d 0%, #3d3d3d 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(26, 26, 26, 0.3);
}

.btn-modern.btn-secondary {
    background: rgba(0, 0, 0, 0.12);
    color: #1a1a1a;
    border: 2px solid rgba(0, 0, 0, 0.2);
}

.btn-modern.btn-secondary:hover {
    background: rgba(0, 0, 0, 0.2);
    border-color: rgba(0, 0, 0, 0.4);
}

.btn-modern.btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.btn-modern.btn-success:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
}

.btn-modern.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

/* Dashboard Stats Modern */
.dashboard-stats-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.stat-card-modern {
    background: white;
    border-radius: 16px;
    padding: 24px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid #f1f5f9;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
}

.stat-card-modern.blue-gradient::before {
    background: linear-gradient(90deg, #3b82f6, #2563eb);
}

.stat-card-modern.purple-gradient::before {
    background: linear-gradient(90deg, #a855f7, #9333ea);
}

.stat-card-modern.green-gradient::before {
    background: linear-gradient(90deg, #10b981, #059669);
}

.stat-card-modern.orange-gradient::before {
    background: linear-gradient(90deg, #f59e0b, #d97706);
}

.stat-card-modern:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.stat-icon-modern {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.blue-gradient .stat-icon-modern {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.purple-gradient .stat-icon-modern {
    background: linear-gradient(135deg, #a855f7 0%, #9333ea 100%);
}

.green-gradient .stat-icon-modern {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.orange-gradient .stat-icon-modern {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.stat-card-modern:hover .stat-icon-modern {
    transform: scale(1.1) rotate(-5deg);
}

.stat-content-modern {
    flex: 1;
}

.stat-label-modern {
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.stat-value-modern {
    font-size: 32px;
    font-weight: 800;
    color: #0d1117;
    line-height: 1;
    margin-bottom: 4px;
}

.stat-detail-modern {
    font-size: 12px;
    color: #9ca3af;
    font-weight: 500;
}

/* Dashboard Content Grid */
.dashboard-content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.dashboard-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid #f1f5f9;
    overflow: hidden;
}

.dashboard-card-header {
    padding: 24px;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dashboard-card-title {
    font-size: 18px;
    font-weight: 700;
    color: #0d1117;
    margin: 0 0 4px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.dashboard-card-title i {
    color: #c7ea46;
}

.dashboard-card-subtitle {
    font-size: 13px;
    color: #6b7280;
    margin: 0;
}

.dashboard-card-body {
    padding: 24px;
}

.btn-link-modern {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #0d1117;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
}

.btn-link-modern:hover {
    color: #c7ea46;
    gap: 10px;
}

/* Project Items */
.project-item-modern {
    padding: 20px;
    border: 2px solid #f1f5f9;
    border-radius: 12px;
    margin-bottom: 16px;
    transition: all 0.3s ease;
}

.project-item-modern:hover {
    border-color: #c7ea46;
    box-shadow: 0 4px 16px rgba(199, 234, 70, 0.15);
}

.project-header-modern {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 12px;
}

.project-title-modern {
    font-size: 16px;
    font-weight: 700;
    color: #0d1117;
    margin: 0;
}

.project-title-modern a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.project-title-modern a:hover {
    color: #c7ea46;
}

.project-budget-modern {
    font-size: 16px;
    font-weight: 800;
    color: #10b981;
    white-space: nowrap;
}

.project-desc-modern {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 12px;
}

.project-meta-modern {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.badge-modern {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
}

.badge-modern.badge-blue {
    background: #dbeafe;
    color: #1e40af;
}

.badge-modern.badge-gray {
    background: #f3f4f6;
    color: #4b5563;
}

.badge-modern.badge-primary {
    background: #fef9e7;
    color: #a8c73a;
}

.badge-modern.badge-success {
    background: #d1fae5;
    color: #047857;
}

.badge-modern.badge-warning {
    background: #fed7aa;
    color: #c2410c;
}

.project-actions-modern {
    display: flex;
    gap: 10px;
}

/* Contract Items */
.contract-item-modern {
    padding: 20px;
    border: 2px solid #f1f5f9;
    border-radius: 12px;
    margin-bottom: 16px;
    transition: all 0.3s ease;
}

.contract-item-modern:hover {
    border-color: #e5e7eb;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.contract-header-modern {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 16px;
}

.contract-project-modern h3 {
    font-size: 16px;
    font-weight: 700;
    color: #0d1117;
    margin: 0 0 4px 0;
}

.contract-project-modern p {
    font-size: 13px;
    color: #6b7280;
    margin: 0;
}

.contract-amount-modern {
    font-size: 18px;
    font-weight: 800;
    color: #10b981;
}

.contract-progress-modern {
    margin-bottom: 16px;
}

.progress-bar-modern {
    height: 8px;
    background: #f3f4f6;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-fill-modern {
    height: 100%;
    background: linear-gradient(90deg, #c7ea46, #a8c73a);
    transition: width 0.3s ease;
}

.progress-text-modern {
    font-size: 12px;
    color: #6b7280;
    font-weight: 600;
}

.contract-footer-modern {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn-link-sm-modern {
    font-size: 13px;
    color: #0d1117;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.btn-link-sm-modern:hover {
    color: #c7ea46;
}

/* Empty State */
.empty-state-modern {
    text-align: center;
    padding: 48px 24px;
}

.empty-state-modern i {
    font-size: 48px;
    color: #d1d5db;
    margin-bottom: 16px;
}

.empty-state-modern p {
    font-size: 14px;
    color: #6b7280;
    margin: 0 0 16px 0;
}

/* Quick Actions Modern */
.dashboard-quick-actions-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.quick-action-modern {
    background: white;
    border-radius: 16px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.quick-action-modern.purple {
    border-color: #e9d5ff;
}

.quick-action-modern.purple:hover {
    border-color: #a855f7;
    box-shadow: 0 8px 24px rgba(168, 85, 247, 0.2);
    transform: translateY(-4px);
}

.quick-action-modern.green {
    border-color: #d1fae5;
}

.quick-action-modern.green:hover {
    border-color: #10b981;
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.2);
    transform: translateY(-4px);
}

.quick-action-modern.blue {
    border-color: #dbeafe;
}

.quick-action-modern.blue:hover {
    border-color: #3b82f6;
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.2);
    transform: translateY(-4px);
}

.quick-action-modern.orange {
    border-color: #fed7aa;
}

.quick-action-modern.orange:hover {
    border-color: #f59e0b;
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.2);
    transform: translateY(-4px);
}

.quick-action-icon-modern {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.quick-action-modern.purple .quick-action-icon-modern {
    background: linear-gradient(135deg, #a855f7 0%, #9333ea 100%);
}

.quick-action-modern.green .quick-action-icon-modern {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.quick-action-modern.blue .quick-action-icon-modern {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.quick-action-modern.orange .quick-action-icon-modern {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.quick-action-modern:hover .quick-action-icon-modern {
    transform: scale(1.1) rotate(-5deg);
}

.quick-action-content-modern {
    flex: 1;
}

.quick-action-content-modern h3 {
    font-size: 16px;
    font-weight: 700;
    color: #0d1117;
    margin: 0 0 4px 0;
}

.quick-action-content-modern p {
    font-size: 13px;
    color: #6b7280;
    margin: 0;
}

/* Responsive Dashboard */
@media (max-width: 968px) {
    .dashboard-content-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .freelancer-welcome-banner,
    .client-welcome-banner {
        padding: 24px;
    }
    
    .welcome-hero {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .dashboard-title {
        font-size: 24px;
        overflow-wrap: break-word;
        word-break: break-word;
    }
    
    .dashboard-subtitle {
        font-size: 14px;
    }
    
    .welcome-actions {
        width: 100%;
        flex-direction: column;
    }
    
    .btn-modern {
        justify-content: center;
        width: 100%;
    }
    
    .dashboard-stats-modern {
        grid-template-columns: 1fr;
    }
    
    .stat-value-modern {
        font-size: 28px;
    }
    
    .dashboard-content-grid {
        grid-template-columns: 1fr;
    }
    
    .dashboard-quick-actions-modern {
        grid-template-columns: 1fr;
    }
    
    .project-header-modern,
    .contract-header-modern {
        flex-direction: column;
        gap: 12px;
    }
    
    .project-actions-modern {
        flex-direction: column;
    }
    
    .btn-modern.btn-sm {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================
   FREELANCER LISTING STYLES
   ============================================ */

/* Page Header Modern */
.page-header-modern {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    gap: 24px;
}

.page-title-modern {
    font-size: 32px;
    font-weight: 800;
    color: #0d1117;
    margin: 0 0 8px 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.page-title-modern i {
    color: #c7ea46;
}

.page-subtitle-modern {
    font-size: 16px;
    color: #6b7280;
    margin: 0;
}

.search-box-modern {
    position: relative;
    width: 320px;
    max-width: 100%;
}

.search-box-modern i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 16px;
}

.search-input-modern {
    width: 100%;
    padding: 12px 16px 12px 44px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.search-input-modern:focus {
    outline: none;
    border-color: #c7ea46;
    box-shadow: 0 0 0 3px rgba(199, 234, 70, 0.1);
}

/* Filters */
.filters-modern {
    display: flex;
    gap: 12px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.filter-btn-modern {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
    background: white;
    color: #4b5563;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: border-color 0.15s ease, color 0.15s ease;
}

.filter-btn-modern:hover {
    border-color: #9ca3af;
    color: #111827;
}

.filter-btn-modern.active {
    background: #c7ea46;
    border-color: #c7ea46;
    color: #1a1a1a;
}

/* Freelancers Grid */
.freelancers-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
    padding: 0 20px;
}

.freelancer-card-modern {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.freelancer-card-modern:hover {
    border-color: #d1d5db;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

/* Freelancer Header */
.freelancer-header-modern {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 14px;
}

.freelancer-avatar-modern {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #f3f4f6;
    flex-shrink: 0;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.freelancer-card-modern:hover .freelancer-avatar-modern {
    border-color: #d1d5db;
    transform: none;
}

.freelancer-avatar-modern img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.freelancer-avatar-modern .avatar-initial {
    width: 100%;
    height: 100%;
    background: #c7ea46;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    font-weight: 700;
}

.freelancer-badges-modern {
    display: flex;
    gap: 6px;
    flex-direction: column;
}

.badge-icon-modern {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
}

.badge-icon-modern:hover {
    transform: scale(1.1);
}

.badge-icon-modern.verified {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    color: #1e40af;
}

.badge-icon-modern.available {
    background: linear-gradient(135deg, #dcfce7, #bbf7d0);
    color: #15803d;
}

/* Freelancer Info */
.freelancer-info-modern {
    text-align: center;
    margin-bottom: 12px;
}

.freelancer-name-modern {
    font-size: 16px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 4px 0;
    line-height: 1.3;
}

.freelancer-title-modern {
    font-size: 13px;
    color: #6b7280;
    margin: 0;
    font-weight: 500;
    line-height: 1.4;
}

/* Freelancer Bio */
.freelancer-bio-modern {
    font-size: 13px;
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 14px;
    text-align: center;
    min-height: 52px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Freelancer Stats */
.freelancer-stats-modern {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 12px 0;
    border-top: 1px solid #f3f4f6;
    border-bottom: 1px solid #f3f4f6;
    margin-bottom: 12px;
}

.stat-item-modern {
    display: flex;
    align-items: center;
    gap: 8px;
}

.stat-icon-sm-modern {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12);
}

.stat-icon-sm-modern.rating {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
}

.stat-icon-sm-modern.projects {
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
}

.stat-value-sm-modern {
    font-size: 15px;
    font-weight: 700;
    color: #111827;
    line-height: 1.2;
}

.stat-label-sm-modern {
    font-size: 11px;
    color: #9ca3af;
    line-height: 1;
}

/* Freelancer Rate */
.freelancer-rate-modern {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: linear-gradient(135deg, #f9fafb, #f3f4f6);
    border-radius: 8px;
    margin-bottom: 14px;
    border: 1px solid #e5e7eb;
}

.rate-label-modern {
    font-size: 12px;
    color: #6b7280;
    font-weight: 600;
}

.rate-value-modern {
    font-size: 16px;
    font-weight: 700;
    color: #111827;
}

/* Freelancer Button */
.btn-freelancer-modern {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 20px;
    background: linear-gradient(135deg, #111827, #1f2937);
    color: white;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: auto;
    box-shadow: 0 2px 8px rgba(17, 24, 39, 0.15);
}

.btn-freelancer-modern:hover {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(199, 234, 70, 0.25);
    color: var(--secondary);
}

/* Empty State Large */
.empty-state-large-modern {
    background: white;
    border-radius: 20px;
    padding: 64px 32px;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.empty-icon-modern {
    width: 96px;
    height: 96px;
    margin: 0 auto 24px;
    background: #f3f4f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: #9ca3af;
}

.empty-title-modern {
    font-size: 24px;
    font-weight: 700;
    color: #0d1117;
    margin: 0 0 12px 0;
}

.empty-text-modern {
    font-size: 16px;
    color: #6b7280;
    margin: 0;
}

/* Pagination Modern */
.pagination-modern {
    display: flex;
    justify-content: center;
    margin-top: 32px;
}

/* Modern Button Styles */
.btn-modern {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    gap: 8px;
    white-space: nowrap;
}

.btn-modern-primary {
    background: var(--primary);
    color: var(--secondary);
    box-shadow: var(--shadow-sm);
}

.btn-modern-primary:hover {
    background: var(--primary-dark);
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.btn-modern-secondary {
    background: var(--light-gray);
    color: var(--text-dark);
    border: 2px solid var(--border);
}

.btn-modern-secondary:hover {
    background: var(--white);
    border-color: var(--primary);
    color: var(--primary);
}

.btn-modern-outline {
    background: transparent;
    color: var(--accent);
    border: 2px solid var(--accent);
}

.btn-modern-outline:hover {
    background: var(--accent);
    color: var(--white);
}

/* Responsive Freelancer Listing */
@media (max-width: 1024px) {
    .freelancers-grid-modern {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .page-header-modern {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .page-title-modern {
        font-size: 24px;
    }
    
    .page-subtitle-modern {
        font-size: 14px;
    }
    
    .search-box-modern {
        width: 100%;
        max-width: 100%;
    }
    
    .search-input-modern {
        width: 100%;
        min-width: 0;
    }
    
    .filters-modern {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .freelancers-grid-modern {
        grid-template-columns: 1fr;
        padding: 0;
        gap: 16px;
    }
    
    .freelancer-card-modern {
        padding: 24px;
    }
    
    .freelancer-avatar-modern {
        width: 80px;
        height: 80px;
    }
    
    .freelancer-name-modern {
        font-size: 18px;
    }
    
    .freelancer-stats-modern {
        gap: 12px;
        padding: 16px 0;
    }
    
    .filters-modern {
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        padding: 0 16px;
    }
    
    .filter-btn-modern {
        flex-shrink: 0;
        font-size: 13px;
        padding: 10px 18px;
    }
}

@media (max-width: 480px) {
    .freelancer-card-modern {
        padding: 20px;
    }
    
    .freelancer-avatar-modern {
        width: 70px;
        height: 70px;
    }
    
    .freelancer-avatar-modern .avatar-initial {
        font-size: 28px;
    }
    
    .freelancer-name-modern {
        font-size: 17px;
    }
    
    .freelancer-title-modern {
        font-size: 13px;
    }
    
    .freelancer-bio-modern {
        font-size: 13px;
        min-height: auto;
    }
    
    .stat-icon-sm-modern {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
    
    .stat-value-sm-modern {
        font-size: 16px;
    }
    
    .rate-value-modern {
        font-size: 18px;
    }
    
    .btn-freelancer-modern {
        padding: 12px 24px;
        font-size: 14px;
    }
}
        white-space: nowrap;
    }
}

/* ==================== PROFESSIONAL PROFILE STYLES ==================== */

.profile-container {
    max-width: 1400px;
    margin: 0 auto;
    background: var(--bg-light);
}

.profile-cover {
    height: 280px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    position: relative;
    overflow: hidden;
}

.profile-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-cover-gradient {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a2e1a 0%, #0f2010 100%);
}

.profile-content {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 32px;
    padding: 0 40px 60px;
    max-width: 1400px;
    margin: -100px auto 0;
}

.profile-main {
    min-width: 0;
}

.profile-sidebar {
    position: sticky;
    top: 90px;
    height: fit-content;
}

/* Profile Header Card */
.profile-header-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 32px;
    margin-bottom: 24px;
}

.profile-header-top {
    display: grid;
    grid-template-columns: 140px 1fr auto;
    gap: 28px;
    align-items: start;
    margin-bottom: 32px;
}

.profile-avatar-wrapper {
    margin-top: -80px;
}

.profile-avatar {
    width: 140px;
    height: 140px;
    border-radius: 20px;
    object-fit: cover;
    border: 6px solid var(--white);
    box-shadow: var(--shadow-xl);
}

.profile-avatar-initial {
    background: linear-gradient(135deg, #1a2e1a 0%, #0f2010 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 56px;
    font-weight: 700;
}

.profile-header-info {
    padding-top: 8px;
}

.profile-name-badges {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.profile-name {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.2;
    margin: 0;
}

.profile-title {
    font-size: 18px;
    color: var(--text-gray);
    font-weight: 500;
    margin: 0 0 16px 0;
    line-height: 1.4;
}

.profile-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    font-size: 14px;
}

.profile-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-gray);
}

.profile-meta-item i {
    color: var(--gray);
    font-size: 12px;
}

.profile-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 8px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.badge-verified {
    background: #dbeafe;
    color: #1e40af;
}

.badge i {
    font-size: 12px;
}

/* Stats Row */
.profile-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 24px;
    padding-top: 32px;
    border-top: 2px solid var(--light-gray);
}

.profile-stat {
    text-align: center;
}

.profile-stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.profile-stat-value i {
    font-size: 20px;
    color: #fbbf24;
}

.profile-stat-rate {
    color: var(--primary);
}

.profile-stat-label {
    font-size: 13px;
    color: var(--text-gray);
    font-weight: 500;
}

/* Profile Cards */
.profile-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 32px;
    margin-bottom: 24px;
}

.profile-card-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 24px 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.profile-card-title i {
    color: var(--primary);
    font-size: 20px;
}

.profile-bio {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-gray);
    white-space: pre-line;
}

/* Skills */
.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-tag {
    display: inline-flex;
    align-items: center;
    padding: 10px 18px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--text-dark);
    border-radius: 24px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.skill-tag:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* Timeline */
.timeline {
    position: relative;
}

.timeline-item {
    position: relative;
    padding-left: 36px;
    padding-bottom: 32px;
    border-left: 2px solid var(--border);
}

.timeline-item:last-child {
    border-left-color: transparent;
    padding-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: -7px;
    top: 6px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary);
    border: 3px solid var(--white);
    box-shadow: 0 0 0 3px var(--light-gray);
}

.timeline-content {
    padding-bottom: 8px;
}

.timeline-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 6px 0;
}

.timeline-subtitle {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-gray);
    margin: 0 0 10px 0;
}

.timeline-field {
    font-size: 14px;
    color: var(--text-gray);
    margin: 0 0 10px 0;
    font-weight: 500;
}

.timeline-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 12px;
    font-size: 14px;
    color: var(--gray);
}

.timeline-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.timeline-meta i {
    font-size: 12px;
}

.timeline-description {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-gray);
    margin-top: 12px;
}

/* Certifications */
.certifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.certification-card {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: var(--bg-light);
    border-radius: var(--radius);
    border: 2px solid var(--border);
    transition: var(--transition);
}

.certification-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow);
}

.certification-expired {
    opacity: 0.6;
}

.certification-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 22px;
}

.certification-info {
    flex: 1;
    min-width: 0;
}

.certification-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 4px 0;
}

.certification-issuer {
    font-size: 14px;
    color: var(--text-gray);
    margin: 0 0 8px 0;
}

.certification-meta {
    font-size: 12px;
    color: var(--gray);
    margin-bottom: 8px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.certification-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}

.certification-link:hover {
    color: var(--primary);
}

/* Publications */
.publications-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.publication-item {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: var(--bg-light);
    border-radius: var(--radius);
    border-left: 4px solid var(--primary);
    transition: var(--transition);
}

.publication-item:hover {
    box-shadow: var(--shadow);
}

.publication-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
    font-size: 20px;
}

.publication-content {
    flex: 1;
}

.publication-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 8px 0;
}

.publication-meta {
    font-size: 14px;
    color: var(--text-gray);
    margin-bottom: 8px;
}

.publication-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}

.publication-link:hover {
    color: var(--primary);
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.service-card {
    background: var(--white);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
}

.service-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.service-image {
    height: 200px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-image-placeholder {
    background: linear-gradient(135deg, #1a2e1a 0%, #0f2010 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 60px;
    opacity: 0.3;
}

.service-content {
    padding: 20px;
}

.service-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 12px 0;
}

.service-description {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 16px;
}

.service-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 16px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.service-pricing {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.service-price {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
}

.service-price-type {
    font-size: 13px;
    color: var(--text-gray);
}

.service-delivery {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-gray);
}

.service-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.service-features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: var(--text-gray);
}

.service-features i {
    color: var(--success);
    margin-top: 2px;
    flex-shrink: 0;
}

/* Portfolio */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.portfolio-card {
    background: var(--white);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
}

.portfolio-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.portfolio-image {
    height: 220px;
    overflow: hidden;
    background: var(--light-gray);
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.portfolio-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--light-gray) 0%, var(--border) 100%);
    color: var(--gray);
    font-size: 60px;
}

.portfolio-content {
    padding: 20px;
}

.portfolio-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 12px 0;
}

.portfolio-description {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 12px;
}

.portfolio-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}

.portfolio-link:hover {
    color: var(--primary);
}

/* Sidebar */
.sidebar-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 24px;
    margin-bottom: 20px;
}

.sidebar-card-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 20px 0;
}

.sidebar-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sidebar-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 20px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.sidebar-btn-primary {
    background: var(--primary);
    color: var(--text-dark);
}

.sidebar-btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.sidebar-btn-secondary {
    background: var(--light-gray);
    color: var(--text-dark);
    border: 2px solid var(--border);
}

.sidebar-btn-secondary:hover {
    border-color: var(--primary);
    background: var(--white);
}

.sidebar-info-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sidebar-info-item {
    display: flex;
    gap: 14px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.sidebar-info-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.sidebar-info-item i {
    width: 20px;
    color: var(--primary);
    font-size: 16px;
    margin-top: 2px;
}

.sidebar-info-label {
    font-size: 12px;
    color: var(--gray);
    margin-bottom: 2px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.sidebar-info-value {
    font-size: 15px;
    color: var(--text-dark);
    font-weight: 600;
}

/* Social Links */
.social-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--radius);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition);
}

.social-linkedin {
    background: #0077b5;
    color: var(--white);
}

.social-linkedin:hover {
    background: #005885;
    transform: translateX(4px);
}

.social-github {
    background: #333;
    color: var(--white);
}

.social-github:hover {
    background: #000;
    transform: translateX(4px);
}

.social-website {
    background: var(--accent);
    color: var(--white);
}

.social-website:hover {
    background: #4f46e5;
    transform: translateX(4px);
}

.social-portfolio {
    background: var(--primary);
    color: var(--text-dark);
}

.social-portfolio:hover {
    background: var(--primary-dark);
    transform: translateX(4px);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .profile-content {
        grid-template-columns: 1fr 320px;
        gap: 24px;
    }
}

@media (max-width: 992px) {
    .profile-content {
        grid-template-columns: 1fr;
        padding: 0 24px 40px;
        margin-top: -80px;
    }

    .profile-sidebar {
        position: relative;
        top: 0;
    }

    .profile-header-top {
        grid-template-columns: 120px 1fr;
        gap: 20px;
    }

    .profile-actions {
        grid-column: 1 / -1;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .profile-avatar {
        width: 120px;
        height: 120px;
    }

    .profile-avatar-wrapper {
        margin-top: -60px;
    }

    .profile-name {
        font-size: 26px;
    }
}

@media (max-width: 640px) {
    .profile-cover {
        height: 180px;
    }

    .profile-content {
        padding: 0 16px 32px;
        margin-top: -60px;
    }

    .profile-header-card {
        padding: 20px;
    }

    .profile-header-top {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .profile-avatar-wrapper {
        margin: -60px auto 0;
    }

    .profile-name-badges {
        justify-content: center;
    }

    .profile-meta {
        justify-content: center;
    }

    .profile-actions {
        flex-direction: column;
    }

    .profile-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .services-grid,
    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .certifications-grid {
        grid-template-columns: 1fr;
    }
}

/* ==================== PROFESSIONAL PROFILE REDESIGN ==================== */

.pro-profile-wrapper {
    background: #fafbfc;
    min-height: 100vh;
    width: 100%;
    overflow-x: hidden;
}

/* Cover Section */
.pro-cover-section {
    height: 200px;
    position: relative;
    background: #f3f4f6;
    overflow: hidden;
}

.pro-cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pro-cover-default {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1b2b1b 0%, #243824 100%);
}

/* Container & Layout */
.pro-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.pro-layout {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 28px;
    margin-top: -60px;
    padding-bottom: 60px;
}

/* Sidebar */
.pro-sidebar {
    position: sticky;
    top: 90px;
    height: fit-content;
}

/* Cards */
.pro-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04), 0 4px 8px rgba(0,0,0,0.06);
    padding: 28px;
    margin-bottom: 20px;
    border: 1px solid rgba(0,0,0,0.06);
    transition: all 0.3s ease;
}

.pro-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08), 0 8px 16px rgba(0,0,0,0.08);
}

.pro-card-title {
    font-size: 17px;
    font-weight: 700;
    color: #14181f;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e8ebed;
    letter-spacing: -0.02em;
}

/* Profile Summary */
.pro-profile-summary {
    text-align: center;
    padding: 28px;
}

.pro-avatar-wrapper {
    position: relative;
    width: 130px;
    height: 130px;
    margin: 0 auto 20px;
}

.pro-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid white;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.pro-avatar-initial {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #c7ea46;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 52px;
    font-weight: 700;
    border: 4px solid white;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.pro-online-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 20px;
    height: 20px;
    background: #16a34a;
    border: 4px solid white;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.pro-user-name {
    font-size: 26px;
    font-weight: 700;
    color: #14181f;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    letter-spacing: -0.03em;
}

.pro-verified {
    color: #0ea5e9;
    font-size: 22px;
}

.pro-user-title {
    font-size: 15px;
    color: #6b7684;
    margin-bottom: 20px;
    line-height: 1.5;
    font-weight: 500;
}

/* Quick Stats */
.pro-quick-stats {
    background: linear-gradient(135deg, #f8f9fa 0%, #f1f3f5 100%);
    border-radius: 10px;
    padding: 18px;
    margin-bottom: 20px;
    border: 1px solid rgba(0,0,0,0.06);
}

.pro-stat-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 0;
    font-size: 14px;
    color: #6b7684;
}

.pro-stat-item i {
    color: #f59e0b;
    font-size: 17px;
}

.pro-stat-item strong {
    color: #14181f;
    font-size: 18px;
    font-weight: 700;
}

/* Action Buttons */
.pro-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pro-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    letter-spacing: -0.01em;
}

.pro-btn-primary {
    background: #c7ea46;
    color: #1a1a1a;
    box-shadow: 0 2px 8px rgba(199, 234, 70, 0.3);
}

.pro-btn-primary:hover {
    background: #a8c73a;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(199, 234, 70, 0.4);
}

.pro-btn-outline {
    background: white;
    color: #14181f;
    border: 2px solid #e8ebed;
}

.pro-btn-outline:hover {
    border-color: #14181f;
    background: #fafbfc;
}

/* Info Card */
.pro-info-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.pro-info-item {
    display: flex;
    gap: 14px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f1f3f5;
}

.pro-info-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.pro-info-item i {
    width: 20px;
    color: #c7ea46;
    font-size: 16px;
    margin-top: 2px;
    flex-shrink: 0;
}

.pro-info-item > div {
    flex: 1;
}

.pro-info-label {
    display: block;
    font-size: 12px;
    color: #9ca3af;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 600;
}

.pro-info-value {
    display: block;
    font-size: 15px;
    color: #14181f;
    font-weight: 600;
}

/* Social Links */
.pro-social-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pro-social-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
    color: white;
}

.pro-social-link i {
    font-size: 18px;
}

.pro-social-link.linkedin {
    background: #0077b5;
}

.pro-social-link.linkedin:hover {
    background: #005885;
    transform: translateX(4px);
}

.pro-social-link.github {
    background: #24292e;
}

.pro-social-link.github:hover {
    background: #000;
    transform: translateX(4px);
}

.pro-social-link.website {
    background: #475569;
}

.pro-social-link.website:hover {
    background: #334155;
    transform: translateX(4px);
}

.pro-social-link.portfolio {
    background: #c7ea46;
    color: white;
}

.pro-social-link.portfolio:hover {
    background: #a8c73a;
    transform: translateX(4px);
}

/* Main Content */
.pro-main-content {
    min-width: 0;
    padding-top: 20px;
}

.pro-section-title {
    font-size: 22px;
    font-weight: 700;
    color: #14181f;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e8ebed;
    display: flex;
    align-items: center;
    gap: 12px;
    letter-spacing: -0.02em;
}

.pro-section-title i {
    color: #6b7684;
    font-size: 18px;
}

.pro-bio {
    font-size: 16px;
    line-height: 1.8;
    color: #4b5563;
    white-space: pre-line;
}

/* Skills */
.pro-skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.pro-skill-tag {
    padding: 10px 18px;
    background: white;
    color: #14181f;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    border: 1.5px solid #e8ebed;
    transition: all 0.2s ease;
}

.pro-skill-tag:hover {
    background: #c7ea46;
    color: #1a1a1a;
    border-color: #c7ea46;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(199, 234, 70, 0.3);
}

/* Timeline */
.pro-timeline {
    position: relative;
}

.pro-timeline-item {
    position: relative;
    padding-left: 36px;
    padding-bottom: 28px;
    border-left: 2px solid #e8ebed;
}

.pro-timeline-item:last-child {
    border-left-color: transparent;
    padding-bottom: 0;
}

.pro-timeline-dot {
    position: absolute;
    left: -7px;
    top: 6px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #c7ea46;
    border: 2px solid white;
    box-shadow: 0 0 0 3px #e8ebed;
}

.pro-timeline-dot-blue {
    background: #0ea5e9;
}

.pro-timeline-content {
    padding-bottom: 8px;
}

.pro-timeline-title {
    font-size: 17px;
    font-weight: 700;
    color: #14181f;
    margin-bottom: 6px;
    letter-spacing: -0.01em;
}

.pro-timeline-company {
    font-size: 16px;
    font-weight: 600;
    color: #6b7684;
    margin-bottom: 10px;
}

.pro-timeline-field {
    font-size: 15px;
    color: #6b7684;
    margin-bottom: 10px;
    font-style: italic;
}

.pro-timeline-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 12px;
    font-size: 14px;
    color: #9ca3af;
}

.pro-timeline-date,
.pro-timeline-location {
    display: flex;
    align-items: center;
    gap: 6px;
}

.pro-timeline-desc {
    font-size: 15px;
    line-height: 1.7;
    color: #6b7684;
    margin-top: 12px;
}

/* Certifications */
.pro-cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.pro-cert-card {
    display: flex;
    gap: 16px;
    padding: 18px;
    background: white;
    border-radius: 10px;
    border: 1.5px solid #e8ebed;
    transition: all 0.2s ease;
}

.pro-cert-card:hover {
    border-color: #9ca3af;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

.pro-cert-expired {
    opacity: 0.5;
}

.pro-cert-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 22px;
}

.pro-cert-info {
    flex: 1;
    min-width: 0;
}

.pro-cert-name {
    font-size: 16px;
    font-weight: 700;
    color: #14181f;
    margin-bottom: 4px;
}

.pro-cert-issuer {
    font-size: 14px;
    color: #6b7684;
    margin-bottom: 8px;
}

.pro-cert-date {
    font-size: 13px;
    color: #9ca3af;
    margin-bottom: 8px;
}

.pro-cert-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #c7ea46;
    text-decoration: none;
    font-weight: 500;
}

.pro-cert-link:hover {
    color: #a8c73a;
    text-decoration: underline;
}

/* Services */
.pro-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.pro-service-card {
    background: white;
    border: 1.5px solid #e8ebed;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.pro-service-card:hover {
    border-color: #9ca3af;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.pro-service-img {
    height: 180px;
    overflow: hidden;
}

.pro-service-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pro-service-img-placeholder {
    background: linear-gradient(135deg, #1a2e1a 0%, #0f2010 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 54px;
    opacity: 0.3;
}

.pro-service-body {
    padding: 20px;
}

.pro-service-title {
    font-size: 18px;
    font-weight: 700;
    color: #14181f;
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}

.pro-service-desc {
    font-size: 14px;
    color: #6b7684;
    line-height: 1.6;
    margin-bottom: 16px;
}

.pro-service-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    margin-top: 16px;
    border-top: 1px solid #f1f3f5;
}

.pro-service-price {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.pro-price {
    font-size: 24px;
    font-weight: 700;
    color: #14181f;
}

.pro-price-type {
    font-size: 13px;
    color: #6b7684;
}

.pro-service-delivery {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #6b7684;
}

.pro-service-features {
    list-style: none;
    padding: 0;
    margin: 16px 0 0 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pro-service-features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: #6b7684;
}

.pro-service-features i {
    color: #16a34a;
    margin-top: 2px;
    flex-shrink: 0;
    font-size: 12px;
}

/* Portfolio */
.pro-portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.pro-portfolio-card {
    background: white;
    border: 1.5px solid #e8ebed;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.pro-portfolio-card:hover {
    border-color: #9ca3af;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.pro-portfolio-img {
    height: 200px;
    overflow: hidden;
    background: #f8f9fa;
}

.pro-portfolio-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pro-portfolio-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cbd5e1;
    font-size: 54px;
}

.pro-portfolio-body {
    padding: 20px;
}

.pro-portfolio-title {
    font-size: 18px;
    font-weight: 700;
    color: #14181f;
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}

.pro-portfolio-desc {
    font-size: 14px;
    color: #6b7684;
    line-height: 1.6;
    margin-bottom: 12px;
}

.pro-portfolio-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #c7ea46;
    text-decoration: none;
    font-weight: 500;
}

.pro-portfolio-link:hover {
    color: #a8c73a;
    text-decoration: underline;
}

/* Publications */
.pro-publications {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.pro-publication-item {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: white;
    border-radius: 10px;
    border-left: 4px solid #c7ea46;
    border-right: 1.5px solid #e8ebed;
    border-top: 1.5px solid #e8ebed;
    border-bottom: 1.5px solid #e8ebed;
    transition: all 0.2s ease;
}

.pro-publication-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transform: none;
}

.pro-publication-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: #c7ea46;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
}

.pro-publication-info {
    flex: 1;
}

.pro-publication-title {
    font-size: 16px;
    font-weight: 700;
    color: #14181f;
    margin-bottom: 8px;
}

.pro-publication-meta {
    font-size: 14px;
    color: #6b7684;
    margin-bottom: 8px;
}

.pro-publication-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #c7ea46;
    text-decoration: none;
    font-weight: 500;
}

.pro-publication-link:hover {
    color: #a8c73a;
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .pro-layout {
        grid-template-columns: 320px 1fr;
        gap: 24px;
    }
}

@media (max-width: 992px) {
    .pro-layout {
        grid-template-columns: 1fr;
        margin-top: -70px;
    }

    .pro-sidebar {
        position: relative;
        top: 0;
    }

    .pro-cover-section {
        height: 200px;
    }
}

@media (max-width: 768px) {
    .pro-cover-section {
        height: 140px;
    }

    .pro-container {
        padding: 0 12px;
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
    }

    .pro-layout {
        margin-top: -40px;
        gap: 16px;
        width: 100%;
    }

    .pro-card {
        padding: 16px;
    }

    .pro-avatar-wrapper {
        width: 90px;
        height: 90px;
    }

    .pro-user-name {
        font-size: 20px;
    }

    .pro-section-title {
        font-size: 18px;
    }

    .pro-services-grid,
    .pro-portfolio-grid {
        grid-template-columns: 1fr;
    }

    .pro-cert-grid {
        grid-template-columns: 1fr;
    }

    .pro-actions {
        gap: 8px;
    }

    .pro-social-links {
        gap: 8px;
    }
}

.pro-card-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
}

/* Profile Summary */
.pro-profile-summary {
    text-align: center;
}

.pro-avatar-wrapper {
    position: relative;
    width: 160px;
    height: 160px;
    margin: 0 auto 20px;
}

.pro-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid white;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.pro-avatar-initial {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, #1a2e1a 0%, #0f2010 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 64px;
    font-weight: 700;
    border: 5px solid white;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.pro-online-badge {
    position: absolute;
    bottom: 12px;
    right: 12px;
    width: 24px;
    height: 24px;
    background: var(--success);
    border: 4px solid white;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.pro-user-name {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.pro-verified {
    color: #3b82f6;
    font-size: 24px;
}

.pro-user-title {
    font-size: 17px;
    color: var(--text-gray);
    margin-bottom: 24px;
    line-height: 1.5;
}

/* Quick Stats */
.pro-quick-stats {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
}

.pro-stat-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 0;
    font-size: 15px;
    color: var(--text-gray);
}

.pro-stat-item i {
    color: #fbbf24;
    font-size: 18px;
}

.pro-stat-item strong {
    color: var(--text-dark);
    font-size: 18px;
    font-weight: 700;
}

/* Action Buttons */
.pro-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pro-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 24px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pro-btn-primary {
    background: var(--primary);
    color: var(--text-dark);
    box-shadow: 0 2px 8px rgba(199, 234, 70, 0.3);
}

.pro-btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(199, 234, 70, 0.4);
}

.pro-btn-outline {
    background: white;
    color: var(--text-dark);
    border: 2px solid #e5e7eb;
}

.pro-btn-outline:hover {
    border-color: var(--primary);
    background: #f9fafb;
}

/* Info Card */
.pro-info-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.pro-info-item {
    display: flex;
    gap: 14px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f3f4f6;
}

.pro-info-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.pro-info-item i {
    width: 20px;
    color: var(--primary);
    font-size: 16px;
    margin-top: 2px;
    flex-shrink: 0;
}

.pro-info-item > div {
    flex: 1;
}

.pro-info-label {
    display: block;
    font-size: 12px;
    color: var(--gray);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.pro-info-value {
    display: block;
    font-size: 15px;
    color: var(--text-dark);
    font-weight: 600;
}

/* Social Links */
.pro-social-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pro-social-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    color: white;
}

.pro-social-link i {
    font-size: 18px;
}

.pro-social-link.linkedin {
    background: #0077b5;
}

.pro-social-link.linkedin:hover {
    background: #005885;
    transform: translateX(4px);
}

.pro-social-link.github {
    background: #333;
}

.pro-social-link.github:hover {
    background: #000;
    transform: translateX(4px);
}

.pro-social-link.website {
    background: #6366f1;
}

.pro-social-link.website:hover {
    background: #4f46e5;
    transform: translateX(4px);
}

.pro-social-link.portfolio {
    background: var(--primary);
    color: var(--text-dark);
}

.pro-social-link.portfolio:hover {
    background: var(--primary-dark);
    transform: translateX(4px);
}

/* Main Content */
.pro-main-content {
    min-width: 0;
}

.pro-section-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.pro-section-title i {
    color: var(--primary);
    font-size: 22px;
}

.pro-bio {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-gray);
    white-space: pre-line;
}

/* Skills */
.pro-skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.pro-skill-tag {
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--text-dark);
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(199, 234, 70, 0.3);
    transition: all 0.3s ease;
}

.pro-skill-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(199, 234, 70, 0.4);
}

/* Timeline */
.pro-timeline {
    position: relative;
}

.pro-timeline-item {
    position: relative;
    padding-left: 36px;
    padding-bottom: 32px;
    border-left: 2px solid #e5e7eb;
}

.pro-timeline-item:last-child {
    border-left-color: transparent;
    padding-bottom: 0;
}

.pro-timeline-dot {
    position: absolute;
    left: -8px;
    top: 4px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--primary);
    border: 3px solid white;
    box-shadow: 0 0 0 3px #e5e7eb;
}

.pro-timeline-dot-blue {
    background: #3b82f6;
}

.pro-timeline-content {
    padding-bottom: 8px;
}

.pro-timeline-title {
    font-size: 19px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.pro-timeline-company {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-gray);
    margin-bottom: 10px;
}

.pro-timeline-field {
    font-size: 15px;
    color: var(--text-gray);
    margin-bottom: 10px;
    font-style: italic;
}

.pro-timeline-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 12px;
    font-size: 14px;
    color: var(--gray);
}

.pro-timeline-date,
.pro-timeline-location {
    display: flex;
    align-items: center;
    gap: 6px;
}

.pro-timeline-desc {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-gray);
    margin-top: 12px;
}

/* Certifications */
.pro-cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.pro-cert-card {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 2px solid #e5e7eb;
    transition: all 0.3s ease;
}

.pro-cert-card:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.pro-cert-expired {
    opacity: 0.6;
}

.pro-cert-icon {
    flex-shrink: 0;
    width: 54px;
    height: 54px;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
}

.pro-cert-info {
    flex: 1;
    min-width: 0;
}

.pro-cert-name {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.pro-cert-issuer {
    font-size: 14px;
    color: var(--text-gray);
    margin-bottom: 8px;
}

.pro-cert-date {
    font-size: 13px;
    color: var(--gray);
    margin-bottom: 8px;
}

.pro-cert-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #3b82f6;
    text-decoration: none;
    font-weight: 600;
}

.pro-cert-link:hover {
    color: var(--primary);
}

/* Services */
.pro-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.pro-service-card {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.pro-service-card:hover {
    border-color: var(--primary);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    transform: translateY(-4px);
}

.pro-service-img {
    height: 200px;
    overflow: hidden;
}

.pro-service-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pro-service-img-placeholder {
    background: linear-gradient(135deg, #1a2e1a 0%, #0f2010 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 60px;
    opacity: 0.3;
}

.pro-service-body {
    padding: 20px;
}

.pro-service-title {
    font-size: 19px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.pro-service-desc {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 16px;
}

.pro-service-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 16px;
    margin-bottom: 16px;
    border-bottom: 1px solid #e5e7eb;
}

.pro-service-price {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.pro-price {
    font-size: 26px;
    font-weight: 700;
    color: var(--primary);
}

.pro-price-type {
    font-size: 13px;
    color: var(--text-gray);
}

.pro-service-delivery {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-gray);
}

.pro-service-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pro-service-features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: var(--text-gray);
}

.pro-service-features i {
    color: var(--success);
    margin-top: 2px;
    flex-shrink: 0;
}

/* Portfolio */
.pro-portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.pro-portfolio-card {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.pro-portfolio-card:hover {
    border-color: var(--primary);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    transform: translateY(-4px);
}

.pro-portfolio-img {
    height: 220px;
    overflow: hidden;
    background: #f3f4f6;
}

.pro-portfolio-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pro-portfolio-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray);
    font-size: 60px;
}

.pro-portfolio-body {
    padding: 20px;
}

.pro-portfolio-title {
    font-size: 19px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.pro-portfolio-desc {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 12px;
}

.pro-portfolio-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #3b82f6;
    text-decoration: none;
    font-weight: 600;
}

.pro-portfolio-link:hover {
    color: var(--primary);
}

/* Publications */
.pro-publications {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.pro-publication-item {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border-left: 4px solid var(--primary);
    transition: all 0.3s ease;
}

.pro-publication-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.pro-publication-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
    font-size: 20px;
}

.pro-publication-info {
    flex: 1;
}

.pro-publication-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.pro-publication-meta {
    font-size: 14px;
    color: var(--text-gray);
    margin-bottom: 8px;
}

.pro-publication-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #3b82f6;
    text-decoration: none;
    font-weight: 600;
}

.pro-publication-link:hover {
    color: var(--primary);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .pro-layout {
        grid-template-columns: 320px 1fr;
        gap: 24px;
    }
}

@media (max-width: 992px) {
    .pro-layout {
        grid-template-columns: 1fr;
        margin-top: -80px;
    }

    .pro-sidebar {
        position: relative;
        top: 0;
    }

    .pro-cover-section {
        height: 220px;
    }
}

@media (max-width: 768px) {
    .pro-cover-section {
        height: 180px;
    }

    .pro-container {
        padding: 0 16px;
    }

    .pro-layout {
        margin-top: -60px;
        gap: 20px;
    }

    .pro-card {
        padding: 20px;
    }

    .pro-avatar-wrapper {
        width: 120px;
        height: 120px;
    }

    .pro-user-name {
        font-size: 24px;
    }

    .pro-services-grid,
    .pro-portfolio-grid {
        grid-template-columns: 1fr;
    }

    .pro-cert-grid {
        grid-template-columns: 1fr;
    }
}

/* =====================================================
   PWA Install Prompt & Notifications
   ===================================================== */

/* PWA Install Prompt */
#pwa-install-prompt {
    display: none;
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 16px 24px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(199, 234, 70, 0.3);
    z-index: 99999;
    max-width: 90%;
    width: 400px;
    visibility: visible;
    opacity: 1;
}

#pwa-install-prompt .close-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    line-height: 1;
}

#pwa-install-prompt .prompt-content {
    display: flex;
    align-items: center;
    gap: 16px;
}

#pwa-install-prompt .prompt-icon {
    width: 48px;
    height: 48px;
    background: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

#pwa-install-prompt .prompt-text {
    flex: 1;
}

#pwa-install-prompt .prompt-text h4 {
    margin: 0 0 4px 0;
    font-size: 16px;
    font-weight: 700;
}

#pwa-install-prompt .prompt-text p {
    margin: 0;
    font-size: 13px;
    opacity: 0.9;
}

#pwa-install-button {
    margin-top: 12px;
    width: 100%;
    background: white;
    color: var(--primary-dark);
    border: none;
    padding: 10px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
}

#pwa-install-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* iOS Add to Home Screen prompt */
#pwa-ios-prompt {
    display: none;
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: #1c1c1e;
    color: white;
    padding: 16px 20px;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
    z-index: 99999;
    max-width: 90%;
    width: 380px;
    /* iOS-style arrow pointing down */
}
#pwa-ios-prompt::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border: 10px solid transparent;
    border-top-color: #1c1c1e;
    border-bottom: 0;
}
#pwa-ios-prompt .close-btn {
    position: absolute;
    top: 8px;
    right: 10px;
    background: none;
    border: none;
    color: #8e8e93;
    font-size: 22px;
    cursor: pointer;
    line-height: 1;
    padding: 0;
}
#pwa-ios-prompt .prompt-content {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}
#pwa-ios-prompt .prompt-text h4 {
    margin: 0 0 6px;
    font-size: 15px;
    font-weight: 700;
}
#pwa-ios-prompt .prompt-text p {
    margin: 0;
    font-size: 13px;
    color: #ebebf5cc;
    line-height: 1.55;
}

/* Notification Permission Prompt */
#notification-prompt {
    display: none;
    position: fixed;
    top: 80px;
    right: 20px;
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    max-width: 320px;
    border-left: 4px solid var(--primary);
}

#notification-prompt .close-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: none;
    border: none;
    color: #6b7280;
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    line-height: 1;
}

#notification-prompt .notification-header {
    display: flex;
    align-items: start;
    gap: 12px;
    margin-bottom: 12px;
}

#notification-prompt .notification-icon {
    width: 40px;
    height: 40px;
    background: #f0f9e8;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

#notification-prompt .notification-icon i {
    color: var(--primary-dark);
    font-size: 18px;
}

#notification-prompt .notification-text h4 {
    margin: 0 0 4px 0;
    font-size: 15px;
    font-weight: 700;
    color: #1f2937;
}

#notification-prompt .notification-text p {
    margin: 0;
    font-size: 13px;
    color: #6b7280;
    line-height: 1.5;
}

#notification-prompt .notification-actions {
    display: flex;
    gap: 8px;
}

#notification-prompt .btn-enable {
    flex: 1;
    background: var(--primary);
    color: #1f2937;
    border: none;
    padding: 10px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s ease;
}

#notification-prompt .btn-enable:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

#notification-prompt .btn-later {
    flex: 1;
    background: #F3F4F6;
    color: #6b7280;
    border: none;
    padding: 10px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s ease;
}

#notification-prompt .btn-later:hover {
    background: #e5e7eb;
}

@media (max-width: 768px) {
    #pwa-install-prompt {
        bottom: 16px;
        left: 16px;
        right: 16px;
        transform: none;
        width: auto;
        max-width: none;
        padding: 16px;
        border-radius: 16px;
    }
    
    #pwa-install-prompt .close-btn {
        top: 12px;
        right: 12px;
    }
    
    #pwa-install-prompt .prompt-content {
        flex-direction: row;
        align-items: center;
        gap: 12px;
    }
    
    #pwa-install-prompt .prompt-icon {
        width: 48px;
        height: 48px;
        font-size: 24px;
        flex-shrink: 0;
        border-radius: 10px;
    }
    
    #pwa-install-prompt .prompt-text {
        flex: 1;
        min-width: 0;
    }
    
    #pwa-install-prompt .prompt-text h4 {
        font-size: 15px;
        line-height: 1.3;
        margin-bottom: 4px;
    }
    
    #pwa-install-prompt .prompt-text p {
        font-size: 12px;
        line-height: 1.4;
    }
    
    #pwa-install-button {
        margin-top: 12px;
        padding: 14px 16px;
        font-size: 15px;
        font-weight: 600;
        border-radius: 10px;
        min-height: 48px;
    }
    
    #notification-prompt {
        right: 10px;
        left: 10px;
        top: 70px;
        max-width: none;
        padding: 16px;
    }
    
    #notification-prompt .notification-prompt-buttons {
        flex-direction: column;
        gap: 8px;
    }
    
    #notification-prompt .btn-allow,
    #notification-prompt .btn-later {
        width: 100%;
        min-height: 44px;
    }
}

@media (max-width: 480px) {
    #pwa-install-prompt {
        bottom: 12px;
        left: 12px;
        right: 12px;
        padding: 14px;
        border-radius: 14px;
    }
    
    #pwa-install-prompt .prompt-content {
        gap: 10px;
    }
    
    #pwa-install-prompt .prompt-icon {
        width: 44px;
        height: 44px;
        font-size: 22px;
        border-radius: 8px;
    }
    
    #pwa-install-prompt .prompt-text h4 {
        font-size: 14px;
        line-height: 1.3;
    }
    
    #pwa-install-prompt .prompt-text p {
        font-size: 11px;
        line-height: 1.4;
    }
    
    #pwa-install-button {
        margin-top: 10px;
        padding: 12px 14px;
        font-size: 14px;
        min-height: 46px;
    }
}

/* ===== MOBILE RESPONSIVENESS ===== */

/* ── Desktop user dropdown in public nav ──────────────────────────────── */
.nav-user-dropdown {
    position: relative;
}

.nav-user-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1.5px solid rgba(0, 0, 0, 0.1);
    border-radius: 40px;
    padding: 4px 12px 4px 4px;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    transition: border-color .18s, box-shadow .18s, background .18s;
}

.nav-user-btn:hover {
    border-color: var(--primary);
    background: #fafff1;
    box-shadow: 0 0 0 3px rgba(199,234,70,.18);
}

.nav-user-btn .fa-chevron-down {
    color: #9ca3af;
    transition: transform .2s ease;
}
.nav-user-menu.open ~ .fa-chevron-down,
.nav-user-dropdown:has(.nav-user-menu.open) .fa-chevron-down {
    transform: rotate(180deg);
}

.nav-user-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(135deg, #c7ea46, #a8c43a);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
    color: #0d1f0d;
    overflow: hidden;
    flex-shrink: 0;
}

.nav-user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.nav-user-name {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nav-user-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: 0 12px 32px rgba(0,0,0,.14);
    min-width: 240px;
    z-index: 2000;
    max-height: calc(100vh - 90px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 6px 0;
}

/* Custom scrollbar for the account dropdown */
.nav-user-menu::-webkit-scrollbar { width: 8px; }
.nav-user-menu::-webkit-scrollbar-track { background: transparent; }
.nav-user-menu::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 8px;
    border: 2px solid #fff;
}
.nav-user-menu::-webkit-scrollbar-thumb:hover { background: #9ca3af; }
.nav-user-menu { scrollbar-width: thin; scrollbar-color: #d1d5db transparent; }

.nav-user-menu.open { display: block; }

.nav-user-menu a,
.nav-user-menu button {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 9px 16px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
    text-decoration: none;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
    transition: background .12s;
}

.nav-user-menu a:hover,
.nav-user-menu button:hover { background: #f9fafb; }

.nav-user-menu a i,
.nav-user-menu button i { width: 16px; text-align: center; color: #9ca3af; font-size: 13px; }

.nav-user-menu-divider { height: 1px; background: #f3f4f6; margin: 4px 0; }
.nav-user-menu-section {
    padding: 6px 14px 3px;
    font-size: .67rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: #9ca3af;
    pointer-events: none;
}

/* Mobile-only nav items — hidden on desktop */
.nav-links > li.mobile-only-nav { display: none; }

/* Desktop-only nav items — hidden on mobile */
.nav-links > li.desktop-only-nav { display: flex; }

/* Mobile Menu Toggle Button */
/* Mobile nav controls wrapper (avatar + hamburger) */
.nav-mobile-controls {
    display: none;
    align-items: center;
    gap: 6px;
    z-index: 1001;
}

/* Guest auth buttons in mobile header */
.nav-mobile-auth-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 32px;
    padding: 0 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.nav-mobile-login {
    background: transparent;
    color: var(--text-dark);
    border: 1.5px solid #d1d5db;
}
.nav-mobile-login:hover {
    background: #f3f4f6;
    color: var(--text-dark);
}
.nav-mobile-register {
    background: var(--primary);
    color: var(--secondary);
    border: 1.5px solid var(--primary);
}
.nav-mobile-register:hover {
    background: var(--secondary);
    color: var(--primary);
    box-shadow: 0 0 0 3px rgba(199, 234, 70, 0.3);
}

/* Avatar circle in mobile header */
.nav-mobile-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    overflow: hidden;
    flex-shrink: 0;
    text-decoration: none;
    border: 2px solid var(--border);
    transition: box-shadow 0.2s;
}

.nav-mobile-avatar:hover {
    box-shadow: 0 0 0 3px rgba(199, 234, 70, 0.35);
}

.nav-mobile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #fff;
    border: 1.5px solid rgba(0, 0, 0, 0.1);
    border-radius: 11px;
    font-size: 18px;
    color: var(--text-dark);
    cursor: pointer;
    padding: 0;
    transition: background .18s, border-color .18s, box-shadow .18s;
}
.mobile-menu-toggle:hover {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(199, 234, 70, 0.18);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(8, 20, 8, 0.45);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    display: block;
    opacity: 1;
}

/* Desktop Navigation Button Styling */
.nav-links .btn {
    padding: 9px 18px;
    font-size: 14px;
    font-weight: 700;
    border-radius: 10px;
    transition: all 0.2s ease;
}

.nav-links .btn-outline {
    border: 1.5px solid var(--primary);
    color: var(--secondary);
    background: white;
}

.nav-links .btn-outline:hover {
    background: var(--primary);
    color: var(--secondary);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px -6px rgba(199, 234, 70, 0.6);
}

.nav-links .btn-primary {
    background: var(--primary);
    color: var(--secondary);
    border: 1.5px solid var(--primary);
    box-shadow: 0 2px 8px -2px rgba(199, 234, 70, 0.5);
}

.nav-links .btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 8px 20px -6px rgba(199, 234, 70, 0.7);
}

/* Large desktop: roomier link spacing */
@media (min-width: 1200px) {
    .nav-links { gap: 10px; }
}

/* Tablet / small-desktop (993px - 1100px): tighten spacing */
@media (max-width: 1100px) {
    .navbar { padding: 0 24px; }
    .nav-links { gap: 2px; }
    .nav-links a:not(.btn) { padding: 9px 11px; font-size: 14px; }
    .nav-user-name { max-width: 90px; }
}

/* Tablet Responsiveness */
@media (max-width: 1024px) {
    .hero-content {
        padding: 60px 24px;
    }
    
    .section {
        padding: 60px 24px;
    }
    
    .container {
        padding: 0 24px;
    }
    
    .grid-3, .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Switch to slide-out menu earlier so tablets aren't cramped */
@media (max-width: 992px) {
    /* Mobile Menu */
    .nav-mobile-controls {
        display: flex;
    }

    /* Hide desktop user dropdown on tablet/mobile */
    .nav-links > li.nav-user-dropdown { display: none; }

    /* Show mobile-only nav items in the slide-out menu */
    .nav-links > li.mobile-only-nav { display: block; }

    /* Hide desktop-only nav items */
    .nav-links > li.desktop-only-nav { display: none; }

    .navbar {
        padding: 0 20px;
        height: 64px;
    }

    .logo { font-size: 22px; }
    .logo-image { height: 34px; max-width: 160px; }
    .logo i { font-size: 24px; }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: min(86vw, 340px);
        height: 100vh;
        background: #fff;
        flex-direction: column;
        align-items: stretch;
        padding: 88px 18px 28px;
        gap: 2px;
        box-shadow: -12px 0 40px -12px rgba(0, 0, 0, 0.25);
        transition: right 0.32s cubic-bezier(.4, 0, .2, 1);
        overflow-y: auto;
        overscroll-behavior: contain;
        z-index: 1000;
    }

    .nav-links.active { right: 0; }

    .nav-links > li {
        width: 100%;
        border-bottom: none !important;
        display: block;
    }

    .nav-links a:not(.btn) {
        display: flex;
        align-items: center;
        gap: 11px;
        padding: 13px 14px !important;
        width: 100%;
        border-radius: 11px;
        font-size: 15px;
        font-weight: 600;
        color: #374151;
    }
    .nav-links a:not(.btn):hover {
        background: rgba(0, 0, 0, 0.05);
    }
    .nav-links a:not(.btn) i { width: 18px; text-align: center; color: #9ca3af; }
    .nav-links a:not(.btn).active::after { display: none; }

    /* Full-width buttons inside the slide-out menu */
    .nav-links .btn {
        width: 100%;
        text-align: center;
        justify-content: center;
        display: flex;
        margin: 6px 0 2px;
        padding: 13px 18px !important;
        border-radius: 11px;
        font-size: 15px;
    }
    .nav-links form { width: 100%; }
    .nav-links form .btn { margin-top: 6px; }
}

/* Mobile Responsiveness (max-width: 768px) */
@media (max-width: 768px) {
    .navbar {
        padding: 0 16px;
        height: 60px;
    }
    
    .logo {
        font-size: 20px;
    }
    
    .logo-image {
        height: 32px;
        max-width: 150px;
    }
    
    .logo i {
        font-size: 22px;
    }
    
    .nav-links form {
        width: 100%;
    }
    
    .nav-links form .btn {
        margin-top: 12px;
    }
    
    /* Hero Section */
    .hero {
        min-height: auto;
        padding: 40px 0;
    }
    
    .hero-content {
        padding: 40px 16px;
    }
    
    .hero h1 {
        font-size: 32px;
        line-height: 1.2;
    }
    
    .hero p {
        font-size: 16px;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 12px;
    }
    
    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
    }
    
    /* Sections */
    .section {
        padding: 40px 16px;
    }
    
    .section-header h2 {
        font-size: 28px;
    }
    
    .section-header p {
        font-size: 15px;
    }
    
    /* Grids */
    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    /* Cards */
    .card {
        padding: 20px;
    }
    
    .card h3 {
        font-size: 18px;
    }
    
    /* Buttons */
    .btn {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .btn-lg {
        padding: 14px 24px;
        font-size: 15px;
    }
    
    /* Forms */
    .form-group {
        margin-bottom: 16px;
    }
    
    .form-control {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    /* Typography — prevent overflow & scale down */
    h1, h2, h3, h4, h5, h6 {
        overflow-wrap: break-word;
        word-break: break-word;
        hyphens: auto;
    }

    p, li, td, th, span, a {
        overflow-wrap: break-word;
        word-break: break-word;
    }

    body {
        font-size: 15px;
    }

    p, .text-body {
        font-size: 14px;
        line-height: 1.65;
    }

    h1 { font-size: 26px; line-height: 1.2; }
    h2 { font-size: 22px; line-height: 1.25; }
    h3 { font-size: 18px; line-height: 1.3; }

    .card-title { font-size: 18px; }

    /* Tables - Make scrollable */
    .table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        width: 100%;
    }
    
    .table-wrapper table {
        min-width: 500px;
    }
    
    table:not(.table-wrapper table) {
        width: 100%;
        min-width: unset;
    }
    
    /* Stats Cards */
    .stats-card {
        padding: 24px;
    }
    
    .stats-number {
        font-size: 36px;
    }
    
    /* Footer */
    .footer {
        padding: 48px 16px 24px;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 32px 24px;
    }
    .footer-brand,
    .footer-newsletter {
        grid-column: 1 / -1;
    }
    .footer-brand p { max-width: none; }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 14px;
    }
    
    /* Project Cards */
    .project-card {
        padding: 20px;
    }
    
    .project-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .project-budget {
        width: 100%;
        text-align: left;
    }
    
    .project-footer {
        flex-direction: column;
        gap: 16px;
    }
    
    .project-stats {
        flex-wrap: wrap;
    }
    
    /* Filters */
    .filters-card {
        padding: 16px;
    }
    
    .filters-form {
        flex-direction: column;
        gap: 12px;
    }
    
    .filter-item {
        width: 100%;
    }
    
    /* Search Box */
    .search-box-modern {
        padding: 16px;
    }
    
    .search-input-wrapper {
        flex-direction: column;
    }
    
    .search-input {
        width: 100%;
        border-radius: 8px;
    }
    
    .search-button {
        width: 100%;
        border-radius: 8px;
        margin-top: 8px;
    }
    
    /* Page Headers */
    .page-header-card {
        padding: 20px 16px;
    }
    
    .header-content {
        flex-direction: column;
        gap: 16px;
    }
    
    .header-text h1 {
        font-size: 24px;
    }
    
    /* Modals */
    .modal-content {
        width: 95%;
        margin: 20px;
        max-height: 90vh;
        overflow-y: auto;
    }
    
    /* User Profile */
    .profile-header {
        flex-direction: column;
        text-align: center;
    }
    
    .profile-avatar {
        margin: 0 auto;
    }
    
    /* Messages */
    .messages-container {
        flex-direction: column;
    }
    
    .messages-sidebar {
        width: 100%;
        max-height: 300px;
    }
    
    .messages-main {
        width: 100%;
    }
    
    /* Dashboard Stats */
    .dashboard-stats {
        grid-template-columns: 1fr;
    }
    
    .stat-card {
        padding: 20px;
    }
}

/* Small Mobile (max-width: 480px) */
@media (max-width: 480px) {
    .navbar {
        padding: 0 12px;
    }

    h1 { font-size: 22px; }
    h2 { font-size: 19px; }
    h3 { font-size: 16px; }
    p, body { font-size: 14px; }
    
    .hero h1 {
        font-size: 24px;
    }
    
    .section-header h2 {
        font-size: 21px;
    }

    .dashboard-title {
        font-size: 20px;
    }

    .dashboard-subtitle {
        font-size: 13px;
    }
    
    .card {
        padding: 16px;
    }
    
    .btn {
        padding: 10px 16px;
        font-size: 13px;
    }
    
    .project-skills {
        gap: 6px;
    }
    
    .skill-badge {
        font-size: 11px;
        padding: 4px 10px;
    }
    
    .nav-links {
        width: 100%;
        right: -100%;
    }
    
    .nav-links.active {
        right: 0;
    }
}

/* Landscape Mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 20px 0;
    }
    
    .hero-content {
        padding: 20px 16px;
    }
    
    .nav-links {
        height: 100vh;
    }
}

/* Touch Device Improvements */
@media (hover: none) and (pointer: coarse) {
    /* Larger touch targets */
    .btn, a, button {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Remove hover effects on touch devices */
    .card:hover {
        transform: none;
    }
    
    .btn:hover {
        transform: none;
    }
}

/* Print Styles */
@media print {
    .header, .footer, .mobile-menu-toggle, .mobile-menu-overlay {
        display: none;
    }
    
    body {
        font-size: 12pt;
    }
}
/* Proposals & Projects Pages */
.proposal-header {
    margin-bottom: 2rem;
}

.proposal-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.proposal-header p {
    color: var(--gray);
}

.proposal-filters {
    margin-bottom: 1.5rem;
}

.filter-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 100px;
    gap: 1rem;
    align-items: end;
}

.filter-grid-4 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 100px;
    gap: 1rem;
    align-items: end;
}

.filter-label {
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.filter-actions {
    margin-top: 1rem;
}

.status-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.status-card {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    color: white;
    padding: 1.5rem;
    border-radius: var(--radius);
}

.status-card-title {
    font-size: 0.875rem;
    opacity: 0.9;
    margin-bottom: 0.25rem;
}

.status-card-value {
    font-size: 2rem;
    font-weight: 800;
}

.status-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.stat-item-title {
    font-size: 0.875rem;
    opacity: 0.9;
    margin-bottom: 0.25rem;
}

.stat-item-value {
    font-size: 2rem;
    font-weight: 800;
}

.stat-item-value-lg {
    font-size: 1.25rem;
    font-weight: 700;
}

.proposal-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.proposal-card-grid {
    display: grid;
    grid-template-columns: 80px 1fr auto;
    gap: 1.5rem;
    align-items: start;
}

.proposal-card-simple {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1.5rem;
    align-items: start;
}

.freelancer-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--border);
}

.freelancer-avatar-initial {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    font-weight: 700;
}

.proposal-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.proposal-meta-item {
    color: var(--gray);
    font-size: 0.875rem;
}

.proposal-amounts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1rem;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: var(--radius);
}

.proposal-amounts-simple {
    display: flex;
    gap: 2rem;
    margin-bottom: 1rem;
}

.amount-label {
    color: var(--gray);
    font-size: 0.875rem;
    display: block;
    margin-bottom: 0.25rem;
}

.amount-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.amount-value-lg {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
}

.amount-note {
    color: var(--gray);
    display: block;
    margin-top: 0.25rem;
    font-size: 0.875rem;
}

.delivery-value {
    font-weight: 700;
    font-size: 1.125rem;
}

.delivery-value-simple {
    font-weight: 600;
}

.cover-letter {
    color: var(--gray);
    line-height: 1.6;
    white-space: pre-wrap;
}

.cover-letter-short {
    color: var(--gray);
    line-height: 1.6;
    margin-bottom: 0;
}

.proposal-actions {
    text-align: right;
    min-width: 150px;
}

.proposal-actions-grid {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.proposal-status-badge {
    margin-bottom: 1rem;
}

.showing-count {
    margin-bottom: 1rem;
    color: var(--gray);
    font-weight: 600;
}

.showing-count-simple {
    margin-bottom: 1rem;
    color: var(--gray);
}

.empty-state {
    text-align: center;
    padding: 4rem;
    background: var(--bg-light);
}

.empty-icon {
    font-size: 4rem;
    color: var(--light-gray);
    margin-bottom: 1.5rem;
}

.empty-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.empty-message {
    color: var(--gray);
    font-size: 1.125rem;
}

/* Status Badge Variations */
.status-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.status-card-pending {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: white;
    padding: 1.25rem;
}

.status-card-accepted {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 1.25rem;
}

.status-card-rejected {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    padding: 1.25rem;
}

/* Responsive Design - Proposals & Projects */
@media (max-width: 992px) {
    .filter-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }
    
    .filter-grid > div:nth-child(1) {
        grid-column: span 2;
    }
    
    .filter-grid > div:nth-child(4) {
        grid-column: span 2;
    }
    
    .filter-grid-4 {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }
    
    .filter-grid-4 > div:nth-child(1) {
        grid-column: span 2;
    }
    
    .filter-grid-4 > div:nth-child(4) {
        grid-column: span 2;
    }
    
    .proposal-card-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .freelancer-avatar,
    .freelancer-avatar-initial {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .proposal-actions {
        text-align: left;
        min-width: auto;
    }
    
    .proposal-amounts {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .proposal-header h1 {
        font-size: 1.75rem;
    }
    
    .filter-grid,
    .filter-grid-4 {
        grid-template-columns: 1fr;
    }
    
    .filter-grid > div,
    .filter-grid-4 > div {
        grid-column: span 1 !important;
    }
    
    .status-summary {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .status-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .status-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-item-value {
        font-size: 1.5rem;
    }
    
    .status-card-value {
        font-size: 1.5rem;
    }
    
    .proposal-card-grid {
        gap: 0.75rem;
    }
    
    .proposal-meta {
        flex-direction: column;
        gap: 0.5rem;
        margin-bottom: 0.75rem;
    }
    
    .proposal-amounts-simple {
        flex-direction: column;
        gap: 1rem;
    }
    
    .amount-value {
        font-size: 1.25rem;
    }
    
    .delivery-value {
        font-size: 1rem;
    }
    
    .empty-state {
        padding: 2rem 1rem;
    }
    
    .empty-icon {
        font-size: 3rem;
    }
    
    .empty-title {
        font-size: 1.25rem;
    }
    
    .empty-message {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .proposal-header h1 {
        font-size: 1.5rem;
    }
    
    .card {
        padding: 1rem;
    }
    
    .freelancer-avatar,
    .freelancer-avatar-initial {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    .proposal-actions-grid {
        gap: 0.5rem;
    }
    
    .btn {
        font-size: 0.875rem;
        padding: 0.5rem 1rem;
    }
    
    .filter-actions {
        margin-top: 0.75rem;
    }
}
