/* ==========================================================================
   iK Freelancer Job Board Style Sheet - Glassmorphism UI & Dynamic Feed Layout
   ========================================================================== */

:root, [data-theme="dark"] {
    --bg-main: #0B0F19;
    --bg-card: rgba(17, 24, 39, 0.6);
    --card-border: rgba(255, 255, 255, 0.08);
    --card-border-hover: rgba(6, 182, 212, 0.35);
    
    /* Primary Colors */
    --accent: #4F46E5;        /* Indigo */
    --accent-glow: rgba(79, 70, 229, 0.4);
    --cyan: #06B6D4;          /* Cyan */
    --cyan-glow: rgba(6, 182, 212, 0.4);
    --orange: #F97316;
    
    /* Text Color Palette */
    --text-primary: #F3F4F6;
    --text-secondary: #9CA3AF;
    --text-muted: #6B7280;
    
    /* Semantic Colors */
    --success: #10B981;
    
    /* Dynamic UI Theme variables */
    --search-input-bg: rgba(255, 255, 255, 0.04);
    --filter-tab-bg: rgba(255, 255, 255, 0.03);
    --filter-tab-hover: rgba(255, 255, 255, 0.06);
    --modal-bg: #0D1322;
    --modal-footer-bg: #090E1A;
    --modal-overlay-bg: rgba(5, 8, 16, 0.85);
    --theme-toggle-bg: rgba(255, 255, 255, 0.05);
    --skeleton-bg: rgba(255, 255, 255, 0.02);
    --skeleton-line-bg: rgba(255, 255, 255, 0.04);
    --shadow-color: rgba(0, 0, 0, 0.3);
    
    /* Animations & Curves */
    --border-radius-lg: 16px;
    --border-radius-md: 12px;
    --transition-speed: 0.3s;
}

[data-theme="light"] {
    --bg-main: #F8FAFC;
    --bg-card: rgba(255, 255, 255, 0.85);
    --card-border: rgba(203, 213, 225, 0.8);
    --card-border-hover: rgba(6, 182, 212, 0.6);
    
    /* Primary Colors */
    --accent: #4338CA;
    --accent-glow: rgba(67, 56, 202, 0.25);
    --cyan: #0284C7;
    --cyan-glow: rgba(2, 132, 199, 0.25);
    --orange: #EA580C;
    
    /* Text Color Palette */
    --text-primary: #0F172A;
    --text-secondary: #475569;
    --text-muted: #64748B;
    
    /* Semantic Colors */
    --success: #059669;
    
    /* Dynamic UI Theme variables */
    --search-input-bg: #FFFFFF;
    --filter-tab-bg: #FFFFFF;
    --filter-tab-hover: #F1F5F9;
    --modal-bg: #FFFFFF;
    --modal-footer-bg: #F8FAFC;
    --modal-overlay-bg: rgba(15, 23, 42, 0.65);
    --theme-toggle-bg: #FFFFFF;
    --skeleton-bg: rgba(241, 245, 249, 0.9);
    --skeleton-line-bg: rgba(203, 213, 225, 0.6);
    --shadow-color: rgba(148, 163, 184, 0.2);
}

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

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif;
    min-height: 100vh;
    line-height: 1.5;
    overflow-x: hidden;
    position: relative;
}

/* Glowing Decorative Blurred Orbs */
.glow-bg {
    position: absolute;
    width: 450px;
    height: 450px;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    opacity: 0.15;
    pointer-events: none;
}

.bg-purple {
    background: var(--accent);
    top: -50px;
    right: -100px;
}

.bg-blue {
    background: var(--cyan);
    bottom: 200px;
    left: -150px;
}

/* Layout Wrapper */
.app-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Header Navigation */
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--card-border);
    padding-bottom: 20px;
}

.header-logo {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -1px;
}

.logo-accent {
    background: linear-gradient(135deg, var(--cyan), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Theme Toggle Button */
.theme-toggle-btn {
    background: var(--theme-toggle-bg);
    border: 1px solid var(--card-border);
    border-radius: 30px;
    color: var(--text-primary);
    padding: 8px 16px;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all var(--transition-speed) ease;
}

.theme-toggle-btn:hover {
    border-color: var(--cyan);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px var(--shadow-color);
}

.theme-toggle-btn i {
    font-size: 1rem;
    transition: transform 0.4s ease, color 0.3s ease;
}

[data-theme="light"] .icon-sun {
    display: inline-block;
    color: #F59E0B;
    transform: rotate(360deg);
}

[data-theme="light"] .icon-moon {
    display: none;
}

[data-theme="dark"] .icon-sun {
    display: none;
}

[data-theme="dark"] .icon-moon {
    display: inline-block;
    color: #38BDF8;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color var(--transition-speed) ease;
}

.nav-link:hover {
    color: var(--cyan);
}

/* Common Card Base Style */
.card {
    background: var(--bg-card);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius-lg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 24px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

/* Hero & Search Widget */
.search-section {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
}

.search-section h1 {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 8px;
}

.search-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 24px;
}

.search-box {
    display: flex;
    align-items: center;
    background: var(--search-input-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius-md);
    padding: 6px 12px;
    max-width: 700px;
    margin: 0 auto;
    transition: border-color var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.search-box:focus-within {
    border-color: var(--cyan);
    box-shadow: 0 0 0 2px rgba(6, 182, 212, 0.2);
}

.search-icon {
    color: var(--text-secondary);
    font-size: 1.2rem;
    margin-right: 12px;
}

.search-box input {
    flex-grow: 1;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1.1rem;
    padding: 10px 0;
    outline: none;
}

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

.search-btn {
    background: linear-gradient(135deg, var(--cyan), var(--accent));
    border: none;
    border-radius: var(--border-radius-md);
    color: white;
    font-family: inherit;
    font-weight: 600;
    font-size: 1rem;
    padding: 10px 24px;
    cursor: pointer;
    transition: transform 0.15s ease, opacity 0.15s ease;
}

.search-btn:hover {
    transform: translateY(-1px);
    opacity: 0.95;
}

/* Category Filter Tabs */
.filters-container {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.filter-tab {
    background: var(--filter-tab-bg);
    border: 1px solid var(--card-border);
    border-radius: 30px;
    color: var(--text-secondary);
    padding: 10px 20px;
    font-family: inherit;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all var(--transition-speed) ease;
}

.filter-tab:hover {
    color: var(--text-primary);
    border-color: var(--text-muted);
    background: var(--filter-tab-hover);
}

.filter-tab.active {
    background: linear-gradient(135deg, var(--cyan), var(--accent));
    color: white;
    border-color: transparent;
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.3);
}

/* Main Split Layout */
.main-layout {
    display: grid;
    grid-template-columns: 2.2fr 1.1fr; /* Job Feed takes primary space, ads/widgets take sidebar */
    gap: 30px;
}

/* Job Feed Header */
.feed-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.feed-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.update-badge {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    font-size: 0.78rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.jobs-list-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Individual Job Cards */
.job-card {
    background: var(--bg-card);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius-md);
    padding: 20px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    transition: all var(--transition-speed) ease;
}

.job-card:hover {
    border-color: var(--card-border-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px -8px var(--cyan-glow);
}

.job-company-logo {
    width: 52px;
    height: 52px;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.1), rgba(79, 70, 229, 0.1));
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--cyan);
    overflow: hidden;
    flex-shrink: 0;
}

.job-company-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.job-details {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

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

.job-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
}

.job-card:hover .job-title {
    color: var(--cyan);
}

.job-company {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.job-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 6px;
    font-size: 0.82rem;
    color: var(--text-muted);
}

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

.meta-category {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.salary-tag {
    color: var(--success);
    font-weight: 600;
}

.btn-apply-inline {
    background: rgba(6, 182, 212, 0.1);
    color: var(--cyan);
    border: 1px solid rgba(6, 182, 212, 0.2);
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 0.85rem;
    font-weight: 700;
    align-self: center;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.job-card:hover .btn-apply-inline {
    background: linear-gradient(135deg, var(--cyan), var(--accent));
    color: white;
    border-color: transparent;
}

/* Sidebar & Widgets */
.sidebar-widgets {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.widget-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    padding-bottom: 8px;
}

.widget-header h4 {
    font-size: 1.05rem;
    font-weight: 700;
}

.text-orange {
    color: var(--orange);
}

.sidebar-widgets p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 16px;
}

/* Widget Action Buttons */
.payoneer-btn, .calc-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    font-family: inherit;
    font-weight: 700;
    font-size: 0.88rem;
    padding: 10px 16px;
    border-radius: 8px;
    transition: transform 0.2s ease, opacity 0.2s ease;
    width: 100%;
}

.payoneer-btn {
    background: linear-gradient(135deg, #F97316, #EA580C);
    color: white;
}

.calc-btn {
    background: rgba(6, 182, 212, 0.08);
    border: 1px solid rgba(6, 182, 212, 0.2);
    color: var(--cyan);
}

.calc-btn:hover {
    background: rgba(6, 182, 212, 0.15);
    color: white;
}

.payoneer-btn:hover {
    transform: translateY(-1px);
    opacity: 0.95;
}

/* Skeleton Loading Shimmer Layout */
.skeleton-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius-md);
    padding: 20px;
    display: flex;
    gap: 20px;
    position: relative;
    overflow: hidden;
}

.skeleton-logo {
    width: 52px;
    height: 52px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
}

.skeleton-details {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.skeleton-line {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 4px;
}

.skeleton-line.title {
    width: 40%;
    height: 18px;
}

.skeleton-line.company {
    width: 25%;
    height: 14px;
}

.skeleton-line.meta {
    width: 50%;
    height: 12px;
}

/* Skeleton Shimmer Animation Effect */
.skeleton-card::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    transform: translateX(-100%);
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.03) 20%,
        rgba(255, 255, 255, 0.05) 60%,
        rgba(255, 255, 255, 0) 100%
    );
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    100% {
        transform: translateX(100%);
    }
}

/* ==========================================================================
   JOB DETAILS SLIDE-IN MODAL
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--modal-overlay-bg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    transition: opacity 0.25s ease;
}

.modal-overlay.hidden {
    display: none !important;
    opacity: 0;
}

.modal-card {
    background: var(--modal-bg);
    border: 1px solid var(--card-border-hover);
    border-radius: var(--border-radius-lg);
    width: 100%;
    max-width: 800px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 50px var(--shadow-color);
    animation: modalSlide 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

@keyframes modalSlide {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    display: flex;
    justify-content: flex-end;
    padding: 16px 20px 4px 20px;
}

.close-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--card-border);
    color: var(--text-secondary);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all 0.2s ease;
}

.close-btn:hover {
    background: rgba(239, 68, 68, 0.15);
    color: #F87171;
    border-color: rgba(239, 68, 68, 0.3);
}

.modal-body {
    padding: 0 30px 24px 30px;
    overflow-y: auto;
    flex-grow: 1;
}

.modal-job-top {
    display: flex;
    gap: 20px;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.modal-logo {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.15), rgba(79, 70, 229, 0.15));
    border: 1px solid var(--card-border-hover);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--cyan);
    flex-shrink: 0;
}

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

.modal-meta-info {
    flex-grow: 1;
}

.modal-meta-info h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.2;
    margin-bottom: 6px;
}

.meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 0.88rem;
    color: var(--text-secondary);
}

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

/* Modal Content & Descriptions */
.modal-job-description h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
    border-left: 3px solid var(--cyan);
    padding-left: 10px;
}

.desc-content {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Style raw HTML injected inside the modal */
.desc-content p, .desc-content ul, .desc-content ol {
    margin-bottom: 14px;
}

.desc-content ul, .desc-content ol {
    padding-left: 20px;
}

.desc-content li {
    margin-bottom: 6px;
}

.desc-content strong {
    color: var(--text-primary);
}

.modal-footer {
    border-top: 1px solid var(--card-border);
    padding: 20px 30px;
    display: flex;
    justify-content: flex-end;
    background: var(--modal-footer-bg);
}

.btn-apply-modal {
    background: linear-gradient(135deg, var(--cyan), var(--accent));
    border: none;
    border-radius: var(--border-radius-md);
    color: white;
    font-family: inherit;
    font-weight: 700;
    font-size: 1rem;
    padding: 12px 36px;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 0 15px var(--cyan-glow);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.btn-apply-modal:hover {
    transform: translateY(-1px);
    opacity: 0.95;
}

/* Ads containers styling */
.ad-sidebar-card {
    min-height: 250px;
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius-md);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    padding: 10px;
}

.ad-footer-container {
    width: 100%;
    margin-top: 20px;
    min-height: 90px;
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius-md);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    padding: 10px;
}

.modal-ad-box {
    margin: 15px 0 25px 0;
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius-md);
    padding: 12px;
    overflow: hidden;
}

/* Footer elements */
.app-footer {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--card-border);
    color: var(--text-muted);
    font-size: 0.9rem;
}

.app-footer a {
    color: var(--text-secondary);
    text-decoration: none;
}

.app-footer a:hover {
    color: var(--cyan);
    text-decoration: underline;
}

.footer-credit {
    font-size: 0.78rem;
    margin-top: 4px;
}

/* ==========================================================================
   RESPONSIVE DESIGN BREAKPOINTS
   ========================================================================== */

@media (max-width: 950px) {
    .main-layout {
        grid-template-columns: 1fr; /* Stack sidebar below listings on tablet/mobile */
    }
    
    .sidebar-widgets {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .ad-sidebar-card {
        grid-column: span 2;
        min-height: 120px;
    }
}

@media (max-width: 650px) {
    .app-container {
        padding: 20px 15px;
        gap: 20px;
    }
    
    .app-header {
        flex-direction: column;
        gap: 15px;
    }
    
    .search-section h1 {
        font-size: 1.8rem;
    }
    
    .search-subtitle {
        font-size: 0.95rem;
    }
    
    .filters-container {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 6px;
        white-space: nowrap;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
    }
    
    .filter-tab {
        flex-shrink: 0;
    }
    
    .job-card {
        flex-direction: column;
        gap: 12px;
    }
    
    .job-title-row {
        flex-direction: column;
        gap: 6px;
    }
    
    .btn-apply-inline {
        width: 100%;
        text-align: center;
        margin-top: 10px;
    }
    
    .sidebar-widgets {
        grid-template-columns: 1fr;
    }
    
    .ad-sidebar-card {
        grid-column: span 1;
    }
    
    .modal-card {
        max-height: 95vh;
        border-radius: 0;
    }
    
    .modal-body {
        padding: 0 20px 20px 20px;
    }
    
    .modal-job-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .role-options-grid, .form-grid {
        grid-template-columns: 1fr;
    }

    .search-box-row {
        flex-direction: column;
    }

    .btn-post-job {
        width: 100%;
        justify-content: center;
    }
}

/* ==========================================================================
   DUAL PORTAL (FREELANCER & VENDOR / WORK PROVIDER) STYLES
   ========================================================================== */

.role-switcher-container {
    display: flex;
    background: var(--theme-toggle-bg);
    border: 1px solid var(--card-border);
    border-radius: 30px;
    padding: 3px;
    gap: 2px;
}

.role-pill {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.25s ease;
}

.role-pill:hover {
    color: var(--text-primary);
}

.role-pill.active {
    background: linear-gradient(135deg, var(--cyan), var(--accent));
    color: white;
    box-shadow: 0 2px 10px var(--cyan-glow);
}

.nav-signin-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--card-border);
    color: var(--text-primary);
    border-radius: 20px;
    padding: 8px 16px;
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.nav-signin-btn:hover {
    border-color: var(--cyan);
    color: var(--cyan);
}

/* Hero Portal Badge */
.portal-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.portal-badge.freelancer-mode {
    background: rgba(6, 182, 212, 0.12);
    color: var(--cyan);
    border: 1px solid rgba(6, 182, 212, 0.3);
}

.portal-badge.vendor-mode {
    background: rgba(249, 115, 22, 0.12);
    color: var(--orange);
    border: 1px solid rgba(249, 115, 22, 0.3);
}

/* Hero Search & Action Row */
.search-box-row {
    display: flex;
    gap: 12px;
    justify-content: center;
    align-items: center;
    max-width: 800px;
    margin: 0 auto;
}

.search-box-row .search-box {
    margin: 0;
    flex-grow: 1;
}

.btn-post-job {
    background: linear-gradient(135deg, #F97316, #EA580C);
    color: white;
    border: none;
    border-radius: var(--border-radius-md);
    padding: 12px 24px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.3);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.btn-post-job:hover {
    transform: translateY(-1px);
    opacity: 0.95;
}

.hidden {
    display: none !important;
}

/* Sign In & Role Selection Cards */
.role-modal-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 20px;
}

.role-options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

.role-option-card {
    background: var(--bg-card);
    border: 2px solid var(--card-border);
    border-radius: var(--border-radius-md);
    padding: 20px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    transition: all 0.25s ease;
}

.role-option-card input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.role-option-card:hover {
    border-color: var(--card-border-hover);
    transform: translateY(-2px);
}

.role-option-card.active {
    border-color: var(--cyan);
    background: rgba(6, 182, 212, 0.05);
    box-shadow: 0 4px 20px var(--cyan-glow);
}

.role-option-icon {
    font-size: 2rem;
}

.role-option-info h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.role-option-info p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.role-check {
    position: absolute;
    top: 15px;
    right: 15px;
    color: var(--text-muted);
    font-size: 1.2rem;
}

.role-option-card.active .role-check {
    color: var(--cyan);
}

.signin-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 10px;
}

.signin-form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.modal-input {
    background: var(--search-input-bg);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    padding: 12px 16px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    outline: none;
}

.modal-input:focus {
    border-color: var(--cyan);
}

/* Post a Job Form Modal */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group.full-width {
    grid-column: span 2;
}

.form-group label {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.form-group input, .form-group select, .form-group textarea {
    background: var(--search-input-bg);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    padding: 10px 14px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    border-color: var(--cyan);
}

.modal-form-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
}

.btn-primary-action {
    background: linear-gradient(135deg, var(--cyan), var(--accent));
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 28px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.btn-primary-action:hover {
    transform: translateY(-1px);
    opacity: 0.95;
}

/* ==========================================================================
   ONLINE AUTH, WORKING DETAILS & CLOUD STORAGE STYLES
   ========================================================================== */

/* Glassmorphic Modal Overhaul */
.modal-signin.glass-modal {
    background: var(--modal-bg);
    border: 1px solid var(--card-border-hover);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
    border-radius: var(--border-radius-lg);
}

.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: var(--card-border-hover);
    border-radius: 4px;
}

.auth-tabs-container {
    display: flex;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--card-border);
    border-radius: 30px;
    padding: 4px;
    gap: 4px;
    margin: 0 auto;
}

.auth-tab {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 700;
    padding: 8px 20px;
    border-radius: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.auth-tab.active {
    background: linear-gradient(135deg, var(--cyan), var(--accent));
    color: white;
    box-shadow: 0 4px 15px var(--cyan-glow);
}

.cloud-status-badge {
    background: rgba(6, 182, 212, 0.08);
    color: var(--text-secondary);
    border: 1px solid rgba(6, 182, 212, 0.2);
    border-radius: 10px;
    padding: 10px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-icon input {
    width: 100%;
    padding-right: 44px;
}

.password-toggle-btn {
    position: absolute;
    right: 12px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 1.05rem;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.password-toggle-btn:hover {
    color: var(--cyan);
}

.btn-submit-glowing {
    background: linear-gradient(135deg, var(--cyan), var(--accent));
    box-shadow: 0 4px 20px var(--cyan-glow);
    padding: 14px 36px;
    font-size: 1.05rem;
    font-weight: 700;
    border-radius: var(--border-radius-md);
    transition: all 0.3s ease;
}

.btn-submit-glowing:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--cyan-glow);
}

.working-details-block {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius-md);
    padding: 18px;
    margin-top: 20px;
    margin-bottom: 20px;
}

.working-details-block h4 {
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* User Profile Modal */
.modal-profile {
    max-width: 650px;
}

.profile-header-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--bg-card);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius-md);
    padding: 20px;
    margin-bottom: 16px;
}

.profile-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--cyan), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
    box-shadow: 0 4px 15px var(--cyan-glow);
}

.profile-title-info h3 {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.profile-email {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.cloud-sync-info {
    font-size: 0.88rem;
    color: var(--text-secondary);
    padding: 14px 18px;
    margin-bottom: 16px;
}

.saved-details-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius-md);
    padding: 20px;
}

.saved-details-box h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
    border-bottom: 1px solid var(--card-border);
    padding-bottom: 8px;
}

.details-content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    font-size: 0.9rem;
}

.details-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.details-item.full-width {
    grid-column: span 2;
}

.details-item .item-label {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.details-item .item-val {
    font-size: 0.95rem;
    color: var(--text-primary);
    font-weight: 500;
}

.profile-modal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn-danger-action {
    background: rgba(239, 68, 68, 0.15);
    color: #F87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 8px;
    padding: 10px 20px;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.btn-danger-action:hover {
    background: #EF4444;
    color: white;
}

/* ==========================================================================
   CURRENCY SWITCHER, SAVED JOBS, PROPOSALS & VENDOR DASHBOARD STYLES
   ========================================================================== */

.currency-switcher {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--theme-toggle-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 4px 12px;
}

.currency-select {
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 700;
    outline: none;
    cursor: pointer;
}

.currency-select option {
    background: var(--modal-bg);
    color: var(--text-primary);
}

.btn-view-applicants {
    background: linear-gradient(135deg, var(--cyan), var(--accent));
    color: white;
    border: none;
    border-radius: var(--border-radius-md);
    padding: 12px 20px;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    transition: transform 0.2s ease;
}

.btn-view-applicants:hover {
    transform: translateY(-1px);
}

.bookmark-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 4px 8px;
    transition: all 0.2s ease;
}

.bookmark-btn:hover, .bookmark-btn.saved {
    color: var(--orange);
    transform: scale(1.15);
}

.btn-proposal-modal {
    background: linear-gradient(135deg, var(--cyan), var(--accent));
    color: white;
    border: none;
    border-radius: var(--border-radius-md);
    padding: 12px 24px;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.2s ease;
    margin-right: 12px;
}

.btn-proposal-modal:hover {
    transform: translateY(-1px);
}

/* Proposal Target Job Box */
.target-job-summary {
    background: var(--bg-card);
    border: 1px solid var(--card-border-hover);
    border-radius: var(--border-radius-md);
    padding: 14px 18px;
    margin-bottom: 16px;
}

.target-job-summary h4 {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-primary);
}

/* Vendor Applicants List Cards */
.applicants-list-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.applicant-card {
    background: var(--bg-card);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius-md);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.applicant-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 1px solid var(--card-border);
    padding-bottom: 10px;
}

.applicant-header h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.applicant-bid {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success);
    font-weight: 700;
    font-size: 0.9rem;
    padding: 4px 12px;
    border-radius: 12px;
}

.applicant-pitch {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Advanced Multi-Filter Options Control Bar */
.advanced-filter-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid var(--card-border);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: left;
}

.filter-group label {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-select {
    background: var(--search-input-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius-md);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 10px 12px;
    outline: none;
    cursor: pointer;
    transition: border-color var(--transition-speed) ease;
}

.filter-select:focus {
    border-color: var(--cyan);
}

.filter-select option {
    background: var(--modal-bg);
    color: var(--text-primary);
}

@media (max-width: 900px) {
    .advanced-filter-bar {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .advanced-filter-bar {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}
