/* Entdo - CSS Styles
   Theme: White & Red (Light Theme)
*/

:root {
    /* Primary Colors */
    --primary: #E53935;
    --primary-light: #FF6F60;
    --primary-dark: #AB000D;
    --primary-hover: #C62828;

    /* Neutral Colors */
    --white: #FFFFFF;
    --gray-50: #FAFAFA;
    --gray-100: #F5F5F5;
    --gray-200: #EEEEEE;
    --gray-300: #E0E0E0;
    --gray-400: #BDBDBD;
    --gray-500: #9E9E9E;
    --gray-600: #757575;
    --gray-700: #616161;
    --gray-800: #424242;
    --gray-900: #212121;

    /* Status Colors */
    --success: #4CAF50;
    --warning: #FF9800;
    --error: #F44336;
    --info: #2196F3;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 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);

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 200ms ease;
    --transition-slow: 300ms ease;

    /* Spacing */
    --container-max: 1200px;
    --container-padding: 1rem;
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Prompt', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--gray-50);
    color: var(--gray-900);
    line-height: 1.6;
    min-height: 100vh;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
}

/* Prevent iOS zoom on form inputs (must be 16px minimum) */
@media (max-width: 768px) {
    input[type="text"],
    input[type="number"],
    input[type="email"],
    input[type="tel"],
    input[type="password"],
    input[type="search"],
    input[type="date"],
    input[type="time"],
    textarea,
    select {
        font-size: 16px !important;
        touch-action: manipulation;
    }
}

/* App Layout */
.app {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.main-content {
    flex: 1;
    padding-top: 70px; /* Navbar height */
}

/* Breadcrumb - Modern Design */
.breadcrumb {
    background: linear-gradient(180deg, var(--white) 0%, var(--gray-50) 100%);
    border-bottom: 1px solid var(--gray-100);
    padding: 0.75rem var(--container-padding);
    font-size: 0.875rem;
}

.breadcrumb-list {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0;
    list-style: none;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
}

.breadcrumb-link {
    color: var(--gray-500);
    text-decoration: none;
    transition: all 0.2s ease;
    padding: 0.375rem 0.625rem;
    border-radius: var(--radius-md);
    font-weight: 500;
}

.breadcrumb-link:hover {
    color: var(--primary);
    background: rgba(229, 57, 53, 0.08);
}

.breadcrumb-current {
    color: var(--gray-900);
    font-weight: 600;
    padding: 0.375rem 0.625rem;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.breadcrumb-separator {
    color: var(--gray-300);
    margin: 0 0.25rem;
    font-size: 0.875rem;
    user-select: none;
}

/* Mobile breadcrumb */
@media (max-width: 768px) {
    .breadcrumb {
        padding: 0.5rem 0.75rem;
        font-size: 0.8125rem;
    }

    .breadcrumb-link,
    .breadcrumb-current {
        padding: 0.25rem 0.5rem;
    }

    .breadcrumb-separator {
        margin: 0 0.125rem;
    }

    /* Show only last 2 items on mobile with ellipsis */
    .breadcrumb-item:not(:nth-last-child(-n+3)):not(:first-child) {
        display: none;
    }

    .breadcrumb-item:first-child:not(:nth-last-child(-n+3))::after {
        content: "...";
        color: var(--gray-400);
        margin: 0 0.375rem;
    }
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    z-index: 10000;
    box-shadow: var(--shadow-sm);
}

.navbar-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.navbar-logo {
    display: flex;
    align-items: center;
}

.logo-text {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -0.5px;
}

.navbar-search {
    flex: 1;
    max-width: 400px;
    display: flex;
    align-items: center;
    background: var(--gray-100);
    border-radius: var(--radius-full);
    padding: 0.5rem 1rem;
    transition: all var(--transition-base);
    cursor: pointer;
}

.navbar-search:hover {
    background: var(--white);
    box-shadow: 0 0 0 2px var(--primary-light);
}

.search-input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 0.875rem;
    color: var(--gray-800);
    outline: none;
    cursor: pointer;
    pointer-events: none;
}

.search-input::placeholder {
    color: var(--gray-500);
}

.search-btn {
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: var(--radius-full);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background var(--transition-fast);
}

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

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Language Switcher */
.lang-switcher {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 0.75rem;
    background: var(--gray-100);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-full);
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-700);
    transition: all var(--transition-fast);
    font-family: inherit;
}

.lang-switcher:hover {
    background: var(--gray-200);
    border-color: var(--gray-300);
}

.lang-switcher:active {
    transform: scale(0.95);
}

.lang-code {
    font-weight: 600;
    color: var(--primary);
}

.navbar-profile {
    display: flex;
    align-items: center;
}

.navbar-profile .profile-avatar {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    max-width: 40px;
    max-height: 40px;
    border-radius: var(--radius-full);
    overflow: hidden;
    border: 2px solid var(--gray-200);
}

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

.avatar-placeholder {
    width: 100%;
    height: 100%;
    background: var(--primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1rem;
}

/* User Dropdown */
.user-dropdown {
    position: relative;
}

.user-dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem;
    background: transparent;
    border: none;
    cursor: pointer;
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
}

.user-dropdown-trigger:hover {
    background: var(--gray-100);
}

.user-dropdown-trigger .profile-avatar {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    border-radius: var(--radius-full);
    overflow: hidden;
    border: 2px solid var(--gray-200);
    transition: border-color var(--transition-fast);
}

.user-dropdown-trigger:hover .profile-avatar {
    border-color: var(--primary);
}

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

.dropdown-arrow {
    color: var(--gray-500);
    transition: transform var(--transition-fast);
}

.dropdown-arrow.open {
    transform: rotate(180deg);
}

.user-dropdown-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999;
    background: transparent;
}

.user-dropdown-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    min-width: 260px;
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.05);
    z-index: 10000;
    animation: dropdownIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

@keyframes dropdownIn {
    from {
        opacity: 0;
        transform: translateY(-10px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Dropdown Header with Avatar */
.dropdown-header {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 1rem 1rem 0.875rem;
    background: linear-gradient(135deg, rgba(229, 57, 53, 0.03) 0%, rgba(229, 57, 53, 0.08) 100%);
}

.dropdown-header-avatar {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: var(--radius-full);
    overflow: hidden;
    border: 2px solid var(--white);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

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

.avatar-placeholder-lg {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary) 0%, #c62828 100%);
    color: var(--white);
    font-weight: 600;
    font-size: 1.25rem;
}

.dropdown-header-info {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    min-width: 0;
}

.dropdown-user-name {
    font-weight: 600;
    color: var(--gray-900);
    font-size: 0.9375rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dropdown-user-phone {
    font-size: 0.8125rem;
    color: var(--gray-500);
}

.dropdown-divider {
    height: 1px;
    background: var(--gray-100);
    margin: 0;
}

.dropdown-section {
    padding: 0.375rem 0;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.625rem 1rem;
    color: var(--gray-700);
    font-size: 0.875rem;
    text-decoration: none;
    transition: all var(--transition-fast);
    cursor: pointer;
    border: none;
    background: transparent;
    width: 100%;
    text-align: left;
    font-family: inherit;
    position: relative;
}

.dropdown-item::before {
    content: '';
    position: absolute;
    left: 0.5rem;
    right: 0.5rem;
    top: 0;
    bottom: 0;
    background: var(--gray-50);
    border-radius: var(--radius-md);
    opacity: 0;
    transition: opacity var(--transition-fast);
    z-index: -1;
}

.dropdown-item:hover::before {
    opacity: 1;
}

.dropdown-item:hover {
    color: var(--gray-900);
}

.dropdown-item:active::before {
    background: var(--gray-100);
}

/* Icon wrapper with colored backgrounds */
.dropdown-item-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: var(--gray-100);
    flex-shrink: 0;
    transition: all var(--transition-fast);
}

.dropdown-item-icon svg {
    width: 16px;
    height: 16px;
    color: var(--gray-600);
    transition: color var(--transition-fast);
}

.dropdown-item:hover .dropdown-item-icon {
    background: var(--gray-200);
}

.dropdown-item:hover .dropdown-item-icon svg {
    color: var(--gray-800);
}

/* Colored icon variants */
.dropdown-item-icon-heart {
    background: rgba(236, 72, 153, 0.1);
}
.dropdown-item-icon-heart svg {
    color: #ec4899;
}
.dropdown-item:hover .dropdown-item-icon-heart {
    background: rgba(236, 72, 153, 0.15);
}

.dropdown-item-icon-calendar {
    background: rgba(168, 85, 247, 0.1);
}
.dropdown-item-icon-calendar svg {
    color: #a855f7;
}
.dropdown-item:hover .dropdown-item-icon-calendar {
    background: rgba(168, 85, 247, 0.15);
}

.dropdown-item-icon-jobs {
    background: rgba(59, 130, 246, 0.1);
}
.dropdown-item-icon-jobs svg {
    color: #3b82f6;
}
.dropdown-item:hover .dropdown-item-icon-jobs {
    background: rgba(59, 130, 246, 0.15);
}

.dropdown-item-icon-apps {
    background: rgba(16, 185, 129, 0.1);
}
.dropdown-item-icon-apps svg {
    color: #10b981;
}
.dropdown-item:hover .dropdown-item-icon-apps {
    background: rgba(16, 185, 129, 0.15);
}

.dropdown-item-icon-notification {
    background: rgba(245, 158, 11, 0.1);
}
.dropdown-item-icon-notification svg {
    color: #f59e0b;
}
.dropdown-item:hover .dropdown-item-icon-notification {
    background: rgba(245, 158, 11, 0.15);
}

.dropdown-item-icon-lock {
    background: rgba(139, 92, 246, 0.1);
}
.dropdown-item-icon-lock svg {
    color: #8b5cf6;
}
.dropdown-item:hover .dropdown-item-icon-lock {
    background: rgba(139, 92, 246, 0.15);
}

.dropdown-item-icon-lang {
    background: rgba(6, 182, 212, 0.1);
}
.dropdown-item-icon-lang svg {
    color: #06b6d4;
}
.dropdown-item:hover .dropdown-item-icon-lang {
    background: rgba(6, 182, 212, 0.15);
}

.dropdown-item-icon-danger {
    background: rgba(239, 68, 68, 0.1);
}
.dropdown-item-icon-danger svg {
    color: #ef4444;
}
.dropdown-item:hover .dropdown-item-icon-danger {
    background: rgba(239, 68, 68, 0.15);
}

/* Language item with badge */
.dropdown-item-lang {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
}

.lang-badge {
    font-size: 0.6875rem;
    font-weight: 600;
    padding: 0.125rem 0.375rem;
    background: var(--gray-100);
    color: var(--gray-600);
    border-radius: var(--radius-sm);
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.dropdown-item:hover .lang-badge {
    background: var(--gray-200);
}

/* Danger item */
.dropdown-item-danger {
    color: var(--error);
}

.dropdown-item-danger::before {
    background: rgba(239, 68, 68, 0.05);
}

.dropdown-item-danger:hover::before {
    background: rgba(239, 68, 68, 0.08);
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
    white-space: nowrap;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

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

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

.btn-outline {
    background: transparent;
    color: var(--gray-700);
    border: 1px solid var(--gray-300);
}

.btn-outline:hover:not(:disabled) {
    background: var(--gray-100);
    border-color: var(--gray-400);
}

.btn-text {
    background: transparent;
    color: var(--primary);
    padding: 0.5rem;
}

.btn-text:hover:not(:disabled) {
    background: var(--gray-100);
}

.btn-full {
    width: 100%;
}

.btn-large {
    padding: 0.875rem 2rem;
    font-size: 1rem;
}

.btn.loading {
    position: relative;
    color: transparent;
}

.btn-spinner {
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid var(--white);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* Input Components */
.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.input-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-700);
}

.input-label .required {
    color: var(--error);
    margin-left: 0.25rem;
}

.input-field {
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    background: var(--white);
    color: var(--gray-900);
    transition: all var(--transition-fast);
    font-family: inherit;
}

.input-field:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.1);
}

.input-field::placeholder {
    color: var(--gray-400);
}

.input-field.textarea {
    resize: vertical;
    min-height: 100px;
}

.input-group.has-error .input-field {
    border-color: var(--error);
}

.input-error {
    font-size: 0.75rem;
    color: var(--error);
}

.input-counter {
    font-size: 0.75rem;
    color: var(--gray-500);
    text-align: right;
}

/* Alerts */
.alert {
    padding: 0.875rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.alert-error {
    background: #FFEBEE;
    color: var(--error);
    border: 1px solid #FFCDD2;
}

.alert-success {
    background: #E8F5E9;
    color: var(--success);
    border: 1px solid #C8E6C9;
}

/* Home Page */
.home-page {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 1rem var(--container-padding);
}

/* Job Category Filter - Shared Style (flex wrap) */
.job-filter-section,
.job-category-filter-section {
    margin-bottom: 0.75rem;
}

/* Job Type Filter Section */
.job-type-filter-section {
    margin-bottom: 1rem;
}

.job-type-filter-tabs {
    display: flex;
    gap: 0.5rem;
    padding: 0.5rem 0;
}

.job-type-tab {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem 1rem;
    background: var(--white);
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-fast);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-700);
}

.job-type-tab:hover {
    border-color: var(--primary-light);
    background: rgba(229, 57, 53, 0.05);
}

.job-type-tab.active {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(229, 57, 53, 0.1), rgba(229, 57, 53, 0.15));
    color: var(--primary);
    font-weight: 600;
}

.job-filter-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    padding: 0.5rem 0;
}

.job-filter-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.125rem;
    padding: 0.375rem 0.5rem;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    font-size: 1.125rem;
    min-width: 65px;
    min-height: 50px;
}

.job-filter-btn span {
    font-size: 0.6rem;
    color: var(--gray-600);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 70px;
    text-align: center;
    line-height: 1.2;
}

.job-filter-btn:hover {
    border-color: var(--primary-light);
    background: var(--gray-50);
}

.job-filter-btn.active {
    border-color: var(--primary);
    background: rgba(229, 57, 53, 0.1);
}

.job-filter-btn.active span {
    color: var(--primary);
    font-weight: 600;
}

.no-members {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--gray-600);
}

.no-members p {
    margin-bottom: 1rem;
}

.members-section {
    padding: 1rem 0;
}

.members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
}

/* Infinite Scroll / Load More */
.load-more-indicator {
    display: flex;
    justify-content: center;
    padding: 2rem 0;
}

.load-more-hint {
    display: flex;
    justify-content: center;
    padding: 1.5rem 0;
    color: var(--gray-500);
    font-size: 0.875rem;
}

.load-more-end {
    display: flex;
    justify-content: center;
    padding: 1.5rem 0;
    color: var(--gray-400);
    font-size: 0.875rem;
}

/* Member Card */
.member-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    text-decoration: none;
    color: inherit;
    display: block;
    border: 3px solid transparent;
}

.member-card.online {
    border-color: var(--success);
    box-shadow: var(--shadow-sm), 0 0 12px rgba(76, 175, 80, 0.3);
}

.member-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.member-card-image {
    position: relative;
    aspect-ratio: 3/4;
    overflow: hidden;
    background: var(--gray-200);
}

.member-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.member-card:hover .member-card-image img {
    transform: scale(1.05);
}

.member-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
}

.verified-badge {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    background: linear-gradient(135deg, #2196F3, #1565C0);
    color: var(--white);
    border-radius: var(--radius-full);
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.4);
    border: 2px solid var(--white);
    z-index: 5;
}

/* Gallery Preview on Hover */
.gallery-preview {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 70%, transparent 100%);
    display: flex;
    gap: 4px;
    padding: 8px;
    padding-top: 30px;
    animation: slideUp 0.2s ease-out;
}

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

.gallery-preview-item {
    flex: 1;
    aspect-ratio: 1;
    border-radius: 4px;
    overflow: hidden;
    max-width: 50px;
}

.gallery-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-preview-more {
    flex: 1;
    aspect-ratio: 1;
    max-width: 50px;
    border-radius: 4px;
    background: rgba(255,255,255,0.2);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
}

/* Gallery Slideshow Indicators */
.gallery-slide-indicators {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 4px;
    z-index: 10;
}

.gallery-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transition: all 0.2s ease;
}

.gallery-dot.active {
    background: var(--white);
    width: 8px;
    height: 8px;
}

.member-card-image {
    position: relative;
    overflow: hidden;
}

/* Favorite button on member card */
.member-card-image .favorite-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: var(--white);
    border: none;
    border-radius: var(--radius-full);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--gray-400);
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-sm);
    z-index: 10;
    padding: 0;
}

.member-card-image .favorite-btn:hover:not(:disabled) {
    color: var(--primary);
    transform: scale(1.1);
}

.member-card-image .favorite-btn.favorited {
    background: var(--primary);
    color: var(--white);
}

.member-card-image .favorite-btn.favorited:hover:not(:disabled) {
    background: var(--primary-dark);
}

.member-card-image .favorite-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Online Status Dot - deprecated, now using card border instead */

.member-card-info {
    padding: 1rem;
}

.member-name-row {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    margin-bottom: 0.25rem;
}

.member-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-900);
    margin: 0;
}

.member-flags {
    display: flex;
    align-items: center;
    gap: 0.125rem;
}

.member-flag {
    width: 16px;
    height: 12px;
    border-radius: 2px;
    object-fit: cover;
}

.member-meta {
    display: flex;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--gray-600);
    margin-bottom: 0.25rem;
}

.member-gender {
    color: var(--primary);
}

.member-age {
    color: var(--gray-500);
}

.member-location {
    font-size: 0.875rem;
    color: var(--gray-600);
    margin: 0;
}

/* Auth Pages */
.auth-page {
    min-height: calc(100vh - 70px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem var(--container-padding);
}

.auth-container {
    width: 100%;
    max-width: 400px;
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header h1 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.auth-header p {
    color: var(--gray-600);
}

.auth-form {
    display: flex;
    flex-direction: column;
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-200);
    font-size: 0.875rem;
    color: var(--gray-600);
}

.otp-info {
    text-align: center;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--gray-50);
    border-radius: var(--radius-md);
}

.otp-info p {
    color: var(--gray-600);
    margin-bottom: 0.25rem;
}

.otp-info strong {
    color: var(--gray-900);
    font-size: 1.125rem;
}

.otp-ref {
    font-size: 0.75rem;
    color: var(--gray-500);
    margin-top: 0.5rem;
}

/* Profile Page - Modern Card-Based Design */
.profile-page {
    max-width: var(--container-max);
    margin: 0 auto;
    background: var(--gray-50);
    min-height: calc(100vh - 70px);
}

.profile-banner {
    position: relative;
    height: 280px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 50%, #1a1a2e 100%);
    overflow: hidden;
}

.banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 50%, #1a1a2e 100%);
}

.banner-upload-btn {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.95);
    color: var(--gray-700);
    border-radius: var(--radius-full);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-fast);
    z-index: 10;
    backdrop-filter: blur(10px);
}

.banner-upload-btn:hover {
    background: var(--white);
    transform: scale(1.1);
    box-shadow: var(--shadow-xl);
}

.profile-content {
    padding: 0 var(--container-padding) 3rem;
    margin-top: -80px;
    position: relative;
    z-index: 1;
}

/* Minimal Modern Profile Header */
.profile-header {
    display: flex;
    gap: 1.25rem;
    align-items: center;
    margin-bottom: 1.5rem;
    background: var(--white);
    padding: 1.25rem 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    position: relative;
    z-index: 2;
}

.profile-avatar-container {
    position: relative;
    flex-shrink: 0;
    margin-top: -40px;
    z-index: 2;
}

/* Online status - green border on avatar */
.profile-avatar-container.online .profile-avatar,
.profile-avatar-container.online .profile-avatar-placeholder {
    border-color: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
}

/* Verified badge on avatar */
.profile-verified-badge {
    position: absolute;
    bottom: 2px;
    left: 2px;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    border-radius: 50%;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(59, 130, 246, 0.4);
    border: 2px solid white;
}

.profile-verified-badge svg {
    width: 14px;
    height: 14px;
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.15));
}

.profile-avatar,
.profile-avatar-placeholder {
    width: 100px;
    height: 100px;
    border-radius: var(--radius-full);
    border: 3px solid var(--white);
    box-shadow: var(--shadow-lg);
    object-fit: cover;
    transition: all 0.3s ease;
}

.profile-avatar-placeholder {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.25rem;
    font-weight: 700;
}

.avatar-upload-btn {
    position: absolute;
    bottom: 4px;
    right: 4px;
    background: var(--white);
    color: var(--gray-600);
    border-radius: var(--radius-full);
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-fast);
    border: 1px solid var(--gray-200);
}

.avatar-upload-btn:hover {
    background: var(--gray-50);
    transform: scale(1.05);
    border-color: var(--primary);
    color: var(--primary);
}

.avatar-upload-btn svg {
    width: 14px;
    height: 14px;
}

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

.profile-name {
    font-size: 1.375rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.25rem;
    letter-spacing: -0.25px;
    line-height: 1.3;
}

.profile-status-row {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    flex-wrap: wrap;
    margin-bottom: 0.375rem;
}

.verified-status {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    padding: 0.2rem 0.5rem;
    border-radius: var(--radius-full);
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    background: linear-gradient(135deg, #4CAF50, #2E7D32);
    color: var(--white);
}

.verified-status svg {
    flex-shrink: 0;
}

.verification-pending-status {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    padding: 0.2rem 0.5rem;
    border-radius: var(--radius-full);
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: #FFF3E0;
    color: #E65100;
}

.verification-request-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    padding: 0.2rem 0.5rem;
    border-radius: var(--radius-full);
    font-size: 0.65rem;
    font-weight: 600;
    background: var(--gray-100);
    color: var(--gray-600);
    border: 1px solid var(--gray-200);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.verification-request-btn:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

/* Online Status Badge (for profile page) */
.online-status {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.online-status::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.online-status.online {
    background: rgba(76, 175, 80, 0.15);
    color: #2E7D32;
}

.online-status.online::before {
    background: var(--success);
    box-shadow: 0 0 6px var(--success);
}

.online-status.offline {
    background: var(--gray-200);
    color: var(--gray-600);
}

.online-status.offline::before {
    background: var(--gray-400);
}

.profile-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    align-items: center;
    margin-bottom: 0.625rem;
}

.profile-gender {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.625rem;
    background: var(--primary);
    color: var(--white);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 500;
}

.profile-birthdate {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.625rem;
    background: var(--gray-100);
    color: var(--gray-600);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 500;
}

.profile-birthdate::before {
    content: "";
}

/* Gender selector in edit form */
.gender-selector {
    margin-bottom: 1rem;
}

.gender-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
}

.gender-select {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    background: var(--white);
    color: var(--gray-900);
    cursor: pointer;
    transition: all var(--transition-fast);
    font-family: inherit;
}

.gender-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.1);
}

/* Location/Province Selector */
.location-selector {
    margin-bottom: 1rem;
}

.location-label {
    display: block;
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.location-select {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    background: white;
    color: var(--gray-800);
    cursor: pointer;
    transition: all 0.2s;
}

.location-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.1);
}

.profile-location {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.625rem;
    background: var(--gray-100);
    color: var(--gray-600);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 500;
}

.profile-location::before {
    content: "📍";
    font-size: 0.7rem;
}

.profile-bio {
    color: var(--gray-600);
    margin-bottom: 0.75rem;
    line-height: 1.6;
    font-size: 0.875rem;
}

/* Profile Actions */
.profile-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}

.profile-actions .btn {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* Secondary outline button (Request Verification) */
.profile-actions .btn-secondary-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 500;
    background: var(--white);
    color: var(--gray-600);
    border: 1px solid var(--gray-300);
    cursor: pointer;
    transition: all 0.2s ease;
}

.profile-actions .btn-secondary-outline:hover {
    background: var(--gray-50);
    border-color: var(--gray-400);
    color: var(--gray-700);
}

/* Verification pending badge */
.profile-actions .verification-pending-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.8125rem;
    font-weight: 500;
    background: #FFF3E0;
    color: #E65100;
}

/* Edit Profile Button - Make it stand out */
.profile-actions .btn-outline {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border: none;
    color: var(--white);
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(229, 57, 53, 0.3);
    transition: all 0.2s ease;
}

.profile-actions .btn-outline:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #b71c1c 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(229, 57, 53, 0.4);
}

/* Favorite button on profile page */
.profile-actions .favorite-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.4rem 0.875rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    background: var(--white);
    color: var(--gray-600);
    font-size: 0.8125rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.profile-actions .favorite-btn:hover:not(:disabled) {
    border-color: var(--primary);
    color: var(--primary);
}

.profile-actions .favorite-btn.favorited {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

.profile-actions .favorite-btn.favorited:hover:not(:disabled) {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

.profile-actions .favorite-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.profile-actions .favorite-btn svg {
    flex-shrink: 0;
}

.profile-actions .favorite-loading {
    min-width: 100px;
    text-align: center;
}

/* Two-column Profile Body Layout */
.profile-body {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

/* Desktop: Gallery and About Me span both columns */
.profile-body > .profile-gallery {
    grid-column: 1 / -1;
}

.profile-body > .profile-about-me {
    grid-column: 2;
}

.profile-body > .profile-jobs-section {
    grid-column: 2;
}

/* Left Sidebar */
.profile-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.sidebar-section {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 1rem;
    box-shadow: var(--shadow-sm);
}

.sidebar-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sidebar-icon {
    width: 24px;
    height: 24px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
}

.sidebar-icon.districts { background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%); }
.sidebar-icon.languages { background: linear-gradient(135deg, #e91e63 0%, #c2185b 100%); }
.sidebar-icon.hobbies { background: linear-gradient(135deg, #4caf50 0%, #388e3c 100%); }
.sidebar-icon.interested { background: linear-gradient(135deg, #2196f3 0%, #1976d2 100%); }

.sidebar-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
}

/* Compact tags for sidebar */
.tag {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.625rem;
    border-radius: var(--radius-full);
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--white);
    transition: all var(--transition-fast);
}

.tag:hover {
    transform: translateY(-1px);
}

.tag-orange {
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
    box-shadow: 0 2px 6px rgba(255, 152, 0, 0.25);
}

.tag-pink {
    background: linear-gradient(135deg, #e91e63 0%, #c2185b 100%);
    box-shadow: 0 2px 6px rgba(233, 30, 99, 0.25);
}

.tag-green {
    background: linear-gradient(135deg, #4caf50 0%, #388e3c 100%);
    box-shadow: 0 2px 6px rgba(76, 175, 80, 0.25);
}

.tag-blue {
    background: linear-gradient(135deg, #2196f3 0%, #1976d2 100%);
    box-shadow: 0 2px 6px rgba(33, 150, 243, 0.25);
}

.tag-purple {
    background: linear-gradient(135deg, #9c27b0 0%, #7b1fa2 100%);
    box-shadow: 0 2px 6px rgba(156, 39, 176, 0.25);
}

/* Main content area */
.profile-main {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    min-width: 0;
    overflow: hidden;
}

/* Profile Section Cards */
.profile-section {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.5rem;
}

.profile-section-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--gray-100);
}

.profile-section-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
}

.profile-section-icon.districts { background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%); }
.profile-section-icon.languages { background: linear-gradient(135deg, #e91e63 0%, #c2185b 100%); }
.profile-section-icon.hobbies { background: linear-gradient(135deg, #4caf50 0%, #388e3c 100%); }
.profile-section-icon.interested { background: linear-gradient(135deg, #2196f3 0%, #1976d2 100%); }
.profile-section-icon.about { background: linear-gradient(135deg, #9c27b0 0%, #7b1fa2 100%); }

.profile-section-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-800);
}

.profile-about-me {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: none;
    border-left: none;
}

.profile-about-me h3 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--gray-800);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--gray-100);
}

.profile-about-me h3::before {
    content: "💬";
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #9c27b0 0%, #7b1fa2 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-about-me p {
    color: var(--gray-600);
    line-height: 1.9;
    white-space: pre-wrap;
    font-size: 0.9375rem;
}

/* Profile Jobs Section (LookingForWork jobs on profile) */
.profile-jobs-section {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: none;
}

.profile-jobs-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--gray-800);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--gray-100);
}

.profile-jobs-title .jobs-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #4caf50 0%, #388e3c 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-jobs-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.profile-job-card {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: 0.875rem 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.profile-job-card:hover {
    background: var(--white);
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.profile-job-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.profile-job-category {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-700);
}

.profile-job-budget {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary);
    background: rgba(229, 57, 53, 0.08);
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
}

.profile-job-info {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: 0.813rem;
    color: var(--gray-500);
}

.profile-job-location,
.profile-job-time {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.profile-job-location svg,
.profile-job-time svg {
    color: var(--gray-400);
}

/* Profile Job Card V2 - Enhanced version */
.profile-job-card-v2 {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 1rem 1.25rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.profile-job-card-v2:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.profile-job-header-v2 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.profile-job-category-v2 {
    font-size: 0.938rem;
    font-weight: 600;
    color: var(--gray-800);
}

.profile-job-budget-v2 {
    font-size: 0.938rem;
    font-weight: 700;
    color: var(--primary);
    background: linear-gradient(135deg, rgba(229, 57, 53, 0.1), rgba(229, 57, 53, 0.05));
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius-full);
}

.profile-job-description {
    font-size: 0.875rem;
    color: var(--gray-600);
    line-height: 1.5;
    margin-bottom: 0.875rem;
    padding: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.profile-job-info-grid {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.profile-job-info-row {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.813rem;
}

.profile-job-icon {
    flex-shrink: 0;
    width: 1.25rem;
    text-align: center;
}

.profile-job-info-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem;
    color: var(--gray-600);
    flex: 1;
}

.profile-job-province {
    font-weight: 500;
    color: var(--gray-700);
}

.profile-job-separator {
    color: var(--gray-400);
}

.profile-job-meeting {
    color: var(--gray-500);
}

.profile-job-dates {
    font-weight: 500;
    color: var(--gray-700);
}

.profile-job-time-v2 {
    color: var(--gray-600);
}

.profile-job-min-hours {
    color: var(--gray-400);
    font-size: 0.75rem;
}

.profile-job-prefs {
    gap: 0.375rem;
}

.profile-job-pref-tag {
    background: var(--gray-100);
    color: var(--gray-700);
    padding: 0.125rem 0.5rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 500;
}

.profile-job-age {
    color: var(--gray-500);
    font-size: 0.75rem;
}

.profile-job-footer {
    margin-top: 0.875rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--gray-100);
    display: flex;
    justify-content: flex-end;
}

.profile-job-view-more {
    font-size: 0.813rem;
    font-weight: 500;
    color: var(--primary);
    transition: transform 0.2s ease;
}

.profile-job-card-v2:hover .profile-job-view-more {
    transform: translateX(4px);
}

/* Languages */
.profile-languages {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    margin-top: 1.5rem;
}

.profile-languages h3 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--gray-800);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--gray-100);
}

.profile-languages h3::before {
    content: "🌐";
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #e91e63 0%, #c2185b 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.languages-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.language-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #e91e63 0%, #c2185b 100%);
    color: var(--white);
    border-radius: var(--radius-full);
    font-size: 0.8125rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(233, 30, 99, 0.25);
    transition: all var(--transition-fast);
}

.language-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(233, 30, 99, 0.35);
}

.languages-selector {
    margin-bottom: 1rem;
}

.languages-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
}

.languages-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.language-option {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: var(--gray-100);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    font-size: 0.875rem;
}

.language-option:hover {
    border-color: var(--primary-light);
}

.language-option.selected {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.language-option input[type="checkbox"] {
    display: none;
}

/* Hobbies */
.profile-hobbies {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    margin-top: 1.5rem;
}

.profile-hobbies h3 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--gray-800);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--gray-100);
}

.profile-hobbies h3::before {
    content: "🎯";
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #4caf50 0%, #388e3c 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hobbies-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.hobby-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #4caf50 0%, #388e3c 100%);
    color: var(--white);
    border-radius: var(--radius-full);
    font-size: 0.8125rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.25);
    transition: all var(--transition-fast);
}

.hobby-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.35);
}

.hobbies-selector {
    margin-bottom: 1rem;
}

.hobbies-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
}

.hobbies-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    max-height: 200px;
    overflow-y: auto;
    padding: 0.5rem;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    background: var(--gray-50);
}

.hobby-option {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    font-size: 0.875rem;
}

.hobby-option:hover {
    border-color: var(--success);
}

.hobby-option.selected {
    background: var(--success);
    color: var(--white);
    border-color: var(--success);
}

.hobby-option input[type="checkbox"] {
    display: none;
}

/* Preferred Gender */
.profile-preferred-gender {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    margin-top: 1.5rem;
}

.profile-preferred-gender h3 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--gray-800);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--gray-100);
}

.profile-preferred-gender h3::before {
    content: "💕";
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #2196f3 0%, #1976d2 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.preferred-gender-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.preferred-gender-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #2196f3 0%, #1976d2 100%);
    color: var(--white);
    border-radius: var(--radius-full);
    font-size: 0.8125rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.25);
    transition: all var(--transition-fast);
}

.preferred-gender-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.35);
}

.preferred-gender-selector {
    margin-bottom: 1rem;
}

.preferred-gender-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
}

.preferred-gender-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.preferred-gender-option {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: var(--gray-100);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    font-size: 0.875rem;
}

.preferred-gender-option:hover {
    border-color: var(--info);
}

.preferred-gender-option.selected {
    background: var(--info);
    color: var(--white);
    border-color: var(--info);
}

.preferred-gender-option input[type="checkbox"] {
    display: none;
}

/* Districts */
.profile-districts {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    margin-top: 1.5rem;
}

.profile-districts h3 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--gray-800);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--gray-100);
}

.profile-districts h3::before {
    content: "📍";
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.districts-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.district-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
    color: var(--white);
    border-radius: var(--radius-full);
    font-size: 0.8125rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(255, 152, 0, 0.25);
    transition: all var(--transition-fast);
}

.district-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.35);
}

.districts-selector {
    margin-bottom: 1rem;
}

.districts-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
}

.districts-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    max-height: 200px;
    overflow-y: auto;
    padding: 0.5rem;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    background: var(--gray-50);
}

/* Legacy edit-form (keep for backwards compatibility) */
.edit-form {
    background: transparent;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* New Sidebar Layout for Profile Edit */
.edit-form-with-sidebar {
    display: flex;
    gap: 1.5rem;
    width: 100%;
    min-height: 400px;
}

/* Edit Sidebar Navigation */
.edit-sidebar {
    width: 220px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 0.75rem;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 1rem;
    align-self: flex-start;
    max-height: calc(100vh - 200px);
    overflow-y: auto;
}

.edit-nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: var(--radius-md);
    background: transparent;
    color: var(--gray-600);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-align: left;
    width: 100%;
}

.edit-nav-item:hover {
    background: var(--gray-50);
    color: var(--gray-800);
}

.edit-nav-item.active {
    background: var(--white);
    color: var(--gray-800);
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.edit-nav-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    font-size: 0.875rem;
    flex-shrink: 0;
}

.edit-nav-icon.location { background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%); }
.edit-nav-icon.map { background: linear-gradient(135deg, #00bcd4 0%, #0097a7 100%); }
.edit-nav-icon.languages { background: linear-gradient(135deg, #e91e63 0%, #c2185b 100%); }
.edit-nav-icon.hobbies { background: linear-gradient(135deg, #4caf50 0%, #388e3c 100%); }
.edit-nav-icon.interested { background: linear-gradient(135deg, #2196f3 0%, #1976d2 100%); }
.edit-nav-icon.about { background: linear-gradient(135deg, #9c27b0 0%, #7b1fa2 100%); }
.edit-nav-icon.job-categories { background: linear-gradient(135deg, #673ab7 0%, #512da8 100%); }

.edit-nav-label {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Edit Content Area */
.edit-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Mobile: Sidebar becomes horizontal icon tabs at top - fits all 8 items without scrolling */
@media (max-width: 768px) {
    .edit-form-with-sidebar {
        flex-direction: column;
        gap: 0.75rem;
        max-width: 100%;
        overflow-x: hidden;
    }

    .edit-sidebar {
        width: 100%;
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: hidden;
        overflow-y: hidden;
        position: static;
        max-height: none;
        padding: 0.25rem;
        gap: 0.25rem;
        justify-content: space-between;
    }

    .edit-nav-item {
        padding: 0.375rem;
        flex: 1;
        min-width: 0;
        justify-content: center;
    }

    .edit-nav-label {
        display: none;
    }

    .edit-nav-icon {
        width: 28px;
        height: 28px;
        font-size: 0.875rem;
    }

    .edit-content {
        max-width: 100%;
        overflow: hidden;
    }

    .edit-section {
        max-width: 100%;
    }

    .edit-section-content {
        overflow-x: hidden;
        word-wrap: break-word;
    }
}

/* Edit Section Cards */
.edit-section {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.edit-section-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-100);
}

.edit-section-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.edit-section-icon.location { background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%); }
.edit-section-icon.map { background: linear-gradient(135deg, #00bcd4 0%, #0097a7 100%); }
.edit-section-icon.languages { background: linear-gradient(135deg, #e91e63 0%, #c2185b 100%); }
.edit-section-icon.hobbies { background: linear-gradient(135deg, #4caf50 0%, #388e3c 100%); }
.edit-section-icon.interested { background: linear-gradient(135deg, #2196f3 0%, #1976d2 100%); }
.edit-section-icon.about { background: linear-gradient(135deg, #9c27b0 0%, #7b1fa2 100%); }

.edit-section-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-800);
    margin: 0;
}

.edit-section-content {
    padding: 1.25rem;
}

.edit-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
}

.edit-field {
    flex: 1;
}

.edit-hint {
    font-size: 0.75rem;
    color: var(--gray-500);
    margin: 0.25rem 0 0.75rem 0;
}

/* Map Location Section in Profile Edit */
.map-location-status {
    margin-bottom: 1rem;
}

.map-location-set,
.map-location-not-set {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    background: var(--gray-50);
}

.map-location-set {
    border: 1px solid #22c55e;
    background: #f0fdf4;
}

.map-location-not-set {
    border: 1px solid var(--gray-300);
}

.location-set-text {
    font-family: monospace;
    font-size: 0.875rem;
    color: var(--gray-700);
}

.location-not-set-text {
    font-size: 0.875rem;
    color: var(--gray-500);
}

.map-location-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-set-location {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    border: none;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, #00bcd4 0%, #0097a7 100%);
    color: white;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-set-location:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 188, 212, 0.3);
}

.map-visibility-toggle {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.toggle-label {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    cursor: pointer;
}

.toggle-label input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--gray-300);
    border-radius: 24px;
    transition: all var(--transition-fast);
}

.toggle-slider::before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    border-radius: 50%;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-sm);
}

.toggle-label input:checked + .toggle-slider {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
}

.toggle-label input:checked + .toggle-slider::before {
    transform: translateX(20px);
}

.toggle-label input:disabled + .toggle-slider {
    opacity: 0.5;
    cursor: not-allowed;
}

.toggle-text {
    font-size: 0.875rem;
    color: var(--gray-600);
}

.edit-form .input-group {
    margin-bottom: 0;
}

.edit-form .input-field,
.edit-form .gender-select,
.edit-form .location-select {
    background: var(--white);
    border: 1px solid var(--gray-200);
}

.edit-form .input-field:focus,
.edit-form .gender-select:focus,
.edit-form .location-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.1);
}

/* Chip Grid for multi-select */
.chip-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.chip {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-full);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--gray-700);
    cursor: pointer;
    transition: all var(--transition-fast);
    user-select: none;
}

.chip:hover {
    border-color: var(--gray-300);
    background: var(--gray-50);
}

.chip input[type="checkbox"] {
    display: none;
}

/* Chip color variants when selected */
.chip.chip-pink.selected {
    background: linear-gradient(135deg, #e91e63 0%, #c2185b 100%);
    border-color: transparent;
    color: var(--white);
    box-shadow: 0 2px 8px rgba(233, 30, 99, 0.3);
}

.chip.chip-green.selected {
    background: linear-gradient(135deg, #4caf50 0%, #388e3c 100%);
    border-color: transparent;
    color: var(--white);
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

.chip.chip-blue.selected {
    background: linear-gradient(135deg, #2196f3 0%, #1976d2 100%);
    border-color: transparent;
    color: var(--white);
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.3);
}

.chip.chip-orange.selected {
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
    border-color: transparent;
    color: var(--white);
    box-shadow: 0 2px 8px rgba(255, 152, 0, 0.3);
}

.chip.chip-purple.selected {
    background: linear-gradient(135deg, #9c27b0 0%, #7b1fa2 100%);
    border-color: transparent;
    color: var(--white);
    box-shadow: 0 2px 8px rgba(156, 39, 176, 0.3);
}

.chip-flag {
    width: 20px;
    height: 15px;
    margin-right: 0.375rem;
    border-radius: 2px;
    object-fit: cover;
    flex-shrink: 0;
}

.tag-flag {
    width: 16px;
    height: 12px;
    margin-right: 0.25rem;
    border-radius: 2px;
    object-fit: cover;
    flex-shrink: 0;
}

.checkbox-flag {
    width: 20px;
    height: 15px;
    margin-right: 0.5rem;
    border-radius: 2px;
    object-fit: cover;
    flex-shrink: 0;
}

.checkbox-icon {
    font-size: 1rem;
    flex-shrink: 0;
    width: 20px;
    text-align: center;
}

.chip-icon {
    font-size: 1em;
    margin-right: 0.25rem;
}

.tag-icon {
    font-size: 0.875em;
    margin-right: 0.2rem;
}

.edit-actions {
    display: flex;
    gap: 0.75rem;
    padding: 1.5rem;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.edit-actions .btn {
    flex: 1;
    justify-content: center;
}

.edit-actions .btn-primary {
    flex: 2;
}

/* Districts grid in edit mode */
.districts-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    max-height: 250px;
    overflow-y: auto;
    padding: 0.5rem;
    background: var(--gray-50);
    border-radius: var(--radius-md);
}

.district-option {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 0.875rem;
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-full);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--gray-700);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.district-option:hover {
    border-color: var(--warning);
}

.district-option.selected {
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
    border-color: transparent;
    color: var(--white);
    box-shadow: 0 2px 8px rgba(255, 152, 0, 0.3);
}

.district-option input[type="checkbox"] {
    display: none;
}

/* Gallery */
.profile-gallery {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    min-width: 0;
}

.profile-gallery h2 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--gray-100);
    color: var(--gray-800);
}

.profile-gallery h2::before {
    content: "🖼️";
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #673ab7 0%, #512da8 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-empty {
    text-align: center;
    color: var(--gray-400);
    padding: 3rem 2rem;
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    border: 2px dashed var(--gray-200);
}

/* Gallery Slider */
.gallery-slider-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    max-width: 100%;
}

.gallery-slider-wrapper {
    flex: 1;
    overflow-x: auto;
    overflow-y: hidden;
    border-radius: var(--radius-lg);
    min-width: 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.gallery-slider-wrapper::-webkit-scrollbar {
    display: none;
}

.gallery-slider {
    display: flex;
    gap: 0.75rem;
    transition: transform 0.3s ease;
    width: max-content;
    padding: 0.25rem 0;
}

.gallery-slide {
    flex-shrink: 0;
    width: 180px;
    height: 240px;
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
}

.gallery-slide:hover {
    box-shadow: var(--shadow-lg);
    transform: scale(1.02);
}

.gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-base);
}

.gallery-slide:hover img {
    transform: scale(1.05);
}

.gallery-nav {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: var(--white);
    border: 1px solid var(--gray-200);
    color: var(--gray-600);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-sm);
}

.gallery-nav:hover {
    background: var(--gray-50);
    border-color: var(--gray-300);
    color: var(--gray-800);
    box-shadow: var(--shadow-md);
}

.gallery-delete-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: var(--error);
    color: var(--white);
    border: none;
    border-radius: var(--radius-full);
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity var(--transition-fast);
    z-index: 10;
}

.gallery-slide:hover .gallery-delete-btn {
    opacity: 1;
}

/* Drag Handle for Gallery */
.drag-handle {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--radius-sm);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: grab;
    opacity: 0;
    transition: all var(--transition-fast);
    z-index: 10;
    color: var(--gray-600);
    box-shadow: var(--shadow-sm);
}

.gallery-slide:hover .drag-handle {
    opacity: 1;
}

.drag-handle:hover {
    background: var(--white);
    color: var(--primary);
    box-shadow: var(--shadow-md);
    transform: scale(1.1);
}

.drag-handle:active {
    cursor: grabbing;
    transform: scale(0.95);
    background: var(--primary-light);
}

/* Draggable Gallery Slide */
.gallery-slide.draggable {
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    touch-action: none;
}

/* Click is now handled on parent div, not img */

.gallery-slide.dragging {
    opacity: 0.5;
    transform: scale(0.95);
    box-shadow: var(--shadow-xl);
    z-index: 100;
}

.gallery-slide.drag-over {
    transform: scale(1.08);
    box-shadow: 0 0 0 4px var(--primary), var(--shadow-xl);
}

.gallery-slide.drag-over::before {
    content: "";
    position: absolute;
    inset: -12px;
    background: rgba(229, 57, 53, 0.15);
    border: 3px dashed var(--primary);
    border-radius: calc(var(--radius-lg) + 8px);
    z-index: -1;
}

/* Expand drop zone during drag - add invisible padding for easier dropping */
.gallery-slide.draggable::after {
    content: "";
    position: absolute;
    inset: -16px;
    z-index: -1;
}

/* Gallery Modal */
.gallery-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 2rem;
}

.gallery-modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-modal-content img {
    max-width: 100%;
    max-height: 85vh;
    border-radius: var(--radius-md);
    object-fit: contain;
}

.gallery-modal-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: transparent;
    border: none;
    color: var(--white);
    cursor: pointer;
    padding: 0.5rem;
    opacity: 0.7;
    transition: opacity var(--transition-fast);
}

.gallery-modal-close:hover {
    opacity: 1;
}

.gallery-modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--white);
    width: 50px;
    height: 50px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    backdrop-filter: blur(4px);
}

.gallery-modal-nav:hover {
    background: rgba(255, 255, 255, 0.2);
}

.gallery-modal-prev {
    left: -70px;
}

.gallery-modal-next {
    right: -70px;
}

.gallery-modal-counter {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--white);
    font-size: 0.875rem;
    opacity: 0.7;
}

.gallery-uploader {
    margin-bottom: 1rem;
}

.gallery-upload-input {
    display: none;
}

.gallery-upload-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1.25rem;
    border: 2px dashed var(--gray-300);
    border-radius: var(--radius-lg);
    color: var(--gray-500);
    cursor: pointer;
    transition: all var(--transition-fast);
    background: var(--gray-50);
    font-weight: 500;
}

.gallery-upload-label:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(229, 57, 53, 0.05);
}

.gallery-upload-label.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.upload-count {
    font-size: 0.75rem;
    background: var(--primary);
    color: var(--white);
    padding: 0.25rem 0.625rem;
    border-radius: var(--radius-full);
    font-weight: 600;
}

/* Uploading state for label */
.gallery-upload-label.uploading {
    border-color: var(--primary);
    background: rgba(229, 57, 53, 0.05);
    cursor: wait;
}

/* Upload Progress Indicator */
.upload-progress-indicator {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
}

.upload-progress-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.upload-progress-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    flex-shrink: 0;
}

.upload-progress-icon svg {
    color: var(--success);
}

.upload-progress-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.upload-file-name {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--gray-800);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.upload-status {
    font-size: 0.75rem;
    color: var(--gray-600);
}

.upload-progress-bar-container {
    height: 6px;
    background: var(--gray-200);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.upload-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    border-radius: var(--radius-full);
    transition: width 0.2s ease;
}

.upload-progress-bar.complete {
    background: linear-gradient(90deg, var(--success), #66BB6A);
}

/* Upload Spinner */
.upload-spinner {
    width: 24px;
    height: 24px;
    border: 3px solid var(--gray-300);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.upload-spinner-small {
    width: 16px;
    height: 16px;
    border: 2px solid var(--gray-300);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* Avatar and Banner upload button uploading state */
.avatar-upload-btn.uploading,
.banner-upload-btn.uploading {
    background: rgba(229, 57, 53, 0.1);
    border-color: var(--primary);
    cursor: wait;
}

.avatar-upload-btn.uploading:hover,
.banner-upload-btn.uploading:hover {
    transform: none;
}

/* Loading */
.loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    gap: 1rem;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--gray-200);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.loading-spinner.large {
    width: 60px;
    height: 60px;
    border-width: 4px;
}

.loading-message {
    color: var(--gray-600);
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3000;
}

/* Error Page */
.error-page {
    text-align: center;
    padding: 3rem;
}

.error-page h2 {
    font-size: 1.5rem;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.error-page p {
    color: var(--gray-600);
    margin-bottom: 1.5rem;
}

.error-message {
    text-align: center;
    padding: 2rem;
}

.error-message p {
    color: var(--error);
    margin-bottom: 1rem;
}

/* Login Required Message */
.login-required-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 200px);
    text-align: center;
    padding: 2rem;
}

.login-required-message p {
    font-size: 1.125rem;
    color: var(--gray-600);
}

/* Not Found */
.not-found {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 70px);
    text-align: center;
}

.not-found h1 {
    font-size: 6rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}

.not-found p {
    font-size: 1.5rem;
    color: var(--gray-600);
}

/* Responsive */
@media (max-width: 768px) {
    .navbar-container {
        padding: 0 0.75rem;
        gap: 0.5rem;
    }

    .navbar-logo .logo-text {
        font-size: 1.5rem;
    }

    .navbar-search {
        flex: 0;
        max-width: none;
        width: 40px;
        height: 40px;
        min-width: 40px;
        padding: 0;
        border-radius: var(--radius-full);
        justify-content: center;
    }

    .navbar-search .search-input {
        display: none;
    }

    .navbar-search .search-btn {
        width: 40px;
        height: 40px;
    }

    .navbar-actions {
        gap: 0.5rem;
    }

    .navbar-actions .btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }

    .lang-switcher {
        padding: 0.375rem 0.5rem;
        font-size: 0.75rem;
    }

    .lang-switcher .globe-icon {
        display: none;
    }

    .navbar-favorites-link,
    .navbar-admin-link {
        width: 36px;
        height: 36px;
        padding: 0.375rem;
    }

    .navbar-profile .profile-avatar {
        width: 36px;
        height: 36px;
        min-width: 36px;
        min-height: 36px;
        max-width: 36px;
        max-height: 36px;
    }

    /* User dropdown mobile */
    .user-dropdown-trigger .profile-avatar {
        width: 36px;
        height: 36px;
        min-width: 36px;
        min-height: 36px;
    }

    .dropdown-arrow {
        display: none;
    }

    .user-dropdown-menu {
        min-width: 240px;
        right: -0.5rem;
    }

    .dropdown-header {
        padding: 0.875rem 0.875rem 0.75rem;
    }

    .dropdown-header-avatar {
        width: 42px;
        height: 42px;
        min-width: 42px;
    }

    .dropdown-item {
        padding: 0.5rem 0.875rem;
    }

    .dropdown-item-icon {
        width: 28px;
        height: 28px;
    }

    .dropdown-item-icon svg {
        width: 14px;
        height: 14px;
    }

    /* Home page mobile */
    .home-page {
        padding: 0.75rem 0.5rem;
    }

    /* Job filter responsive - single row horizontal scroll on mobile */
    .job-filter-section,
    .job-category-filter-section {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .job-filter-section::-webkit-scrollbar,
    .job-category-filter-section::-webkit-scrollbar {
        display: none;
    }

    .job-filter-grid {
        flex-wrap: nowrap;
        gap: 0.25rem;
        width: max-content;
    }

    .job-filter-btn {
        padding: 0.25rem 0.375rem;
        font-size: 1rem;
        min-width: 55px;
        min-height: 44px;
        flex-shrink: 0;
    }

    .job-filter-btn span {
        font-size: 0.5rem;
        max-width: 55px;
    }

    .members-section {
        padding: 0.5rem 0;
    }

    .members-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }

    .member-card {
        border-radius: var(--radius-md);
    }

    .member-card-info {
        padding: 0.5rem;
    }

    .member-name {
        font-size: 0.85rem;
    }

    .member-meta {
        font-size: 0.65rem;
    }

    .member-bio {
        font-size: 0.7rem;
        -webkit-line-clamp: 1;
    }

    .no-members {
        padding: 2rem 1rem;
    }

    .error-message {
        padding: 2rem 1rem;
    }

    .profile-banner {
        height: 160px;
    }

    .profile-content {
        padding: 0 0.75rem 1.5rem;
        margin-top: -45px;
    }

    .profile-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 55px 0.75rem 1rem 0.75rem;
        gap: 0.75rem;
    }

    .profile-avatar-container {
        position: absolute;
        top: -40px;
        left: 50%;
        transform: translateX(-50%);
        margin-top: 0;
    }

    .profile-info {
        padding-top: 0;
        width: 100%;
        max-width: 100%;
        overflow: hidden;
    }

    .profile-avatar,
    .profile-avatar-placeholder {
        width: 80px;
        height: 80px;
    }

    .profile-avatar-placeholder {
        font-size: 1.75rem;
    }

    .profile-verified-badge {
        width: 22px;
        height: 22px;
        bottom: 0;
        left: 0;
    }

    .profile-verified-badge svg {
        width: 12px;
        height: 12px;
    }

    .avatar-upload-btn {
        width: 24px;
        height: 24px;
        bottom: 2px;
        right: 2px;
    }

    .avatar-upload-btn svg {
        width: 12px;
        height: 12px;
    }

    .profile-name {
        font-size: 1.125rem;
    }

    .profile-meta {
        justify-content: center;
    }

    .profile-bio {
        text-align: center;
        font-size: 0.8125rem;
    }

    .profile-actions .btn,
    .profile-actions .favorite-btn {
        padding: 0.35rem 0.75rem;
        font-size: 0.75rem;
    }

    /* Single column on mobile with specific order */
    .profile-body {
        grid-template-columns: 1fr;
        display: flex;
        flex-direction: column;
    }

    .profile-body > .profile-gallery {
        order: 1;
    }

    .profile-sidebar {
        order: 2;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .profile-body > .profile-about-me {
        order: 4;
    }

    .profile-body > .profile-jobs-section {
        order: 3;
    }

    .sidebar-section {
        padding: 0.75rem;
    }

    .sidebar-title {
        font-size: 0.75rem;
        margin-bottom: 0.5rem;
    }

    .sidebar-icon {
        width: 20px;
        height: 20px;
        font-size: 0.625rem;
    }

    .tag {
        padding: 0.2rem 0.5rem;
        font-size: 0.625rem;
    }

    .profile-about-me,
    .profile-gallery {
        padding: 1.25rem;
    }

    .profile-about-me h3,
    .profile-gallery h2 {
        font-size: 0.9375rem;
    }

    .profile-about-me h3::before,
    .profile-gallery h2::before {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }

    /* Edit form responsive */
    .edit-row {
        grid-template-columns: 1fr;
    }

    .edit-section-header {
        padding: 0.875rem 1rem;
    }

    .edit-section-content {
        padding: 1rem;
    }

    .edit-section-icon {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }

    .edit-actions {
        flex-direction: column;
        padding: 1rem;
    }

    .chip {
        padding: 0.4rem 0.75rem;
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .home-page {
        padding: 0.5rem 0.25rem;
    }

    .job-filter-btn {
        min-width: 55px;
        padding: 0.4rem 0.3rem;
        font-size: 1.1rem;
    }

    .job-filter-btn span {
        font-size: 0.55rem;
    }

    .members-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.35rem;
    }

    .member-card-info {
        padding: 0.4rem;
    }

    .member-name {
        font-size: 0.8rem;
    }

    .member-meta {
        font-size: 0.6rem;
    }

    .member-bio {
        display: none;
    }

    .gallery-slide {
        width: 140px;
        height: 186px;
    }

    .gallery-nav {
        width: 32px;
        height: 32px;
    }

    .gallery-modal-prev {
        left: 10px;
    }

    .gallery-modal-next {
        right: 10px;
    }

    .profile-meta {
        justify-content: center;
    }

    .languages-grid {
        justify-content: center;
    }

    .hobbies-grid {
        justify-content: center;
    }

    .preferred-gender-grid {
        justify-content: center;
    }

    .hobbies-tags,
    .preferred-gender-tags,
    .districts-tags {
        justify-content: center;
    }

    .districts-grid {
        justify-content: center;
    }

    .edit-form {
        padding: 1rem;
    }
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 80px;
    right: 1rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 400px;
    width: calc(100% - 2rem);
}

.toast {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    animation: slideIn 0.3s ease;
    border-left: 4px solid;
}

.toast.removing {
    animation: slideOut 0.3s ease forwards;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

.toast-success {
    border-left-color: var(--success);
}

.toast-success .toast-icon {
    color: var(--success);
}

.toast-error {
    border-left-color: var(--error);
}

.toast-error .toast-icon {
    color: var(--error);
}

.toast-warning {
    border-left-color: var(--warning);
}

.toast-warning .toast-icon {
    color: var(--warning);
}

.toast-info {
    border-left-color: var(--info);
}

.toast-info .toast-icon {
    color: var(--info);
}

.toast-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toast-message {
    flex: 1;
    font-size: 0.875rem;
    color: var(--gray-800);
    line-height: 1.4;
}

.toast-close {
    flex-shrink: 0;
    background: transparent;
    border: none;
    color: var(--gray-400);
    cursor: pointer;
    padding: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.toast-close:hover {
    background: var(--gray-100);
    color: var(--gray-600);
}

@media (max-width: 480px) {
    .toast-container {
        left: 1rem;
        right: 1rem;
        max-width: none;
        width: auto;
    }
}

/* ============================================
   Job Notification Styles
   ============================================ */

.job-notification-container {
    position: fixed;
    top: 80px;
    left: 1rem;
    z-index: 9998;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 380px;
    width: calc(100% - 2rem);
}

.job-notification {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    animation: jobNotificationSlideIn 0.3s ease;
    border-left: 4px solid var(--primary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.job-notification:hover {
    transform: translateX(4px);
    box-shadow: 0 12px 20px -5px rgba(0, 0, 0, 0.15);
}

.job-notification.removing {
    animation: jobNotificationSlideOut 0.3s ease forwards;
}

@keyframes jobNotificationSlideIn {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes jobNotificationSlideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(-100%);
        opacity: 0;
    }
}

/* Notification Types */
.job-notification.notification-new-application {
    border-left-color: var(--success);
}

.job-notification.notification-new-application .job-notification-icon {
    color: var(--success);
}

.job-notification.notification-accepted {
    border-left-color: var(--success);
}

.job-notification.notification-accepted .job-notification-icon {
    color: var(--success);
}

.job-notification.notification-rejected {
    border-left-color: var(--error);
}

.job-notification.notification-rejected .job-notification-icon {
    color: var(--error);
}

.job-notification.notification-countered {
    border-left-color: var(--info);
}

.job-notification.notification-countered .job-notification-icon {
    color: var(--info);
}

.job-notification.notification-withdrawn {
    border-left-color: var(--gray-500);
}

.job-notification.notification-withdrawn .job-notification-icon {
    color: var(--gray-500);
}

.job-notification.notification-status-changed {
    border-left-color: var(--warning);
}

.job-notification.notification-status-changed .job-notification-icon {
    color: var(--warning);
}

.job-notification.notification-cancelled {
    border-left-color: var(--error);
}

.job-notification.notification-cancelled .job-notification-icon {
    color: var(--error);
}

.job-notification-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    background: var(--gray-100);
}

.job-notification-icon svg {
    width: 24px;
    height: 24px;
}

.notification-avatar {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    object-fit: cover;
}

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

.job-notification-title {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--gray-800);
    margin-bottom: 0.125rem;
}

.job-notification-job {
    font-size: 0.85rem;
    color: var(--gray-600);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.job-notification-desc {
    font-size: 0.8rem;
    color: var(--gray-500);
    margin-top: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.notification-applicant-name {
    font-weight: 500;
    color: var(--gray-600);
}

.notification-amount {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #E53935, #ff6b6b);
    color: #fff;
    padding: 0.2rem 0.6rem;
    border-radius: 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.job-notification-close {
    flex-shrink: 0;
    background: none;
    border: none;
    color: var(--gray-400);
    cursor: pointer;
    padding: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.job-notification-close:hover {
    background: var(--gray-100);
    color: var(--gray-600);
}

@media (max-width: 768px) {
    .job-notification-container {
        top: 80px;
        left: 0.5rem;
        right: 0.5rem;
        max-width: none;
        width: auto;
    }
}

/* ============================================
   Verification Section Styles
   ============================================ */

.verification-section {
    border-top: 1px solid var(--gray-200);
    padding-top: 1rem;
    margin-top: 1rem;
}

.sidebar-icon.verification {
    background: var(--info);
    color: white;
    border-radius: var(--radius-full);
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.verification-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    border-radius: var(--radius-md);
    margin-bottom: 0.75rem;
}

.verification-status.verified {
    background: rgba(76, 175, 80, 0.15);
    color: #2E7D32;
}

.verification-status.pending {
    background: rgba(255, 152, 0, 0.15);
    color: #F57C00;
}

.verification-status.rejected {
    background: rgba(244, 67, 54, 0.15);
    color: #D32F2F;
}

.verification-status.not-verified {
    background: rgba(158, 158, 158, 0.15);
    color: #757575;
}

.verification-status svg {
    flex-shrink: 0;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* Verification Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 1rem;
}

.modal-content {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    max-width: 500px;
    width: 100%;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--gray-500);
    padding: 0.5rem;
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
}

.modal-close:hover {
    background: var(--gray-100);
    color: var(--gray-700);
}

.verification-modal h2 {
    margin-bottom: 0.5rem;
    color: var(--gray-800);
}

.verification-instructions {
    color: var(--gray-600);
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    line-height: 1.5;
}

.verification-upload-group {
    margin-bottom: 1rem;
}

.verification-upload-label {
    display: block;
    padding: 1rem;
    border: 2px dashed var(--gray-300);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    text-align: center;
}

.verification-upload-label:hover {
    border-color: var(--primary);
    background: rgba(229, 57, 53, 0.05);
}

.verification-upload-label span {
    display: block;
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
}

.verification-upload-label input[type="file"] {
    width: 100%;
    font-size: 0.875rem;
    color: var(--gray-600);
}

.verification-modal form button[type="submit"] {
    width: 100%;
    margin-top: 1rem;
}

/* ============================================
   Favorites Page
   ============================================ */

.favorites-page {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.favorites-header {
    margin-bottom: 2rem;
}

.favorites-header h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0;
}

.no-favorites {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--gray-600);
}

.no-favorites-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.no-favorites p {
    font-size: 1.125rem;
    margin: 0;
}

/* ============================================
   Admin Pages Styles - Sidebar Layout
   ============================================ */

.admin-layout {
    display: flex;
    min-height: calc(100vh - 70px);
}

/* Left Sidebar */
.admin-sidebar {
    width: 260px;
    background: var(--white);
    border-right: 1px solid var(--gray-200);
    padding: 1.5rem 0;
    flex-shrink: 0;
    position: sticky;
    top: 70px;
    height: calc(100vh - 70px);
    overflow-y: auto;
}

.admin-sidebar-header {
    padding: 0 1.5rem 1.5rem;
    border-bottom: 1px solid var(--gray-200);
    margin-bottom: 1rem;
}

.admin-sidebar-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.admin-sidebar-title svg {
    width: 24px;
    height: 24px;
}

.admin-nav {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0 0.75rem;
}

.admin-nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    color: var(--gray-600);
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    font-weight: 500;
    font-size: 0.9375rem;
}

.admin-nav-link svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.admin-nav-link:hover {
    color: var(--gray-900);
    background: var(--gray-100);
}

.admin-nav-link.active {
    color: var(--primary);
    background: rgba(229, 57, 53, 0.1);
    font-weight: 600;
}

.admin-nav-link.active::before {
    content: "";
    position: absolute;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary);
    border-radius: 0 2px 2px 0;
}

/* Main Content Area */
.admin-content {
    flex: 1;
    padding: 2rem;
    background: var(--gray-50);
    min-width: 0;
}

.admin-page-header {
    margin-bottom: 2rem;
}

.admin-page-header h1 {
    color: var(--gray-900);
    font-size: 1.75rem;
    font-weight: 700;
}

/* Legacy support for old .admin-page class */
.admin-page {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

.admin-header {
    margin-bottom: 2rem;
}

.admin-header h1 {
    margin-bottom: 1rem;
    color: var(--gray-900);
    font-size: 1.75rem;
}

/* Admin Stats Grid */
.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-icon {
    font-size: 2rem;
    width: 60px;
    height: 60px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-icon.users { background: #e3f2fd; }
.stat-icon.active { background: #e8f5e9; }
.stat-icon.verified { background: #fff3e0; }
.stat-icon.pending { background: #fce4ec; }
.stat-icon.new { background: #f3e5f5; }
.stat-icon.online { background: #e8f5e9; }

.stat-content {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--gray-900);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--gray-600);
}

/* Admin Filters */
.admin-filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.admin-search {
    flex: 1;
    min-width: 200px;
    padding: 0.75rem 1rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    font-size: 1rem;
}

.admin-search:focus {
    outline: none;
    border-color: var(--primary);
}

.admin-filter-select {
    padding: 0.75rem 1rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    background: var(--white);
    font-size: 1rem;
    min-width: 150px;
}

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

/* Admin Table */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.admin-table th,
.admin-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--gray-200);
}

.admin-table th {
    background: var(--gray-100);
    font-weight: 600;
    color: var(--gray-700);
}

.admin-table tr:hover {
    background: var(--gray-50);
}

.user-cell {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.user-avatar-small {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.user-avatar-placeholder-small {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1rem;
}

.status-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    margin-right: 0.25rem;
}

.status-badge.active { background: #e8f5e9; color: #2e7d32; }
.status-badge.inactive { background: #ffebee; color: #c62828; }
.status-badge.admin { background: #e3f2fd; color: #1565c0; }
.status-badge.user { background: var(--gray-100); color: var(--gray-700); }
.status-badge.verified { background: #fff3e0; color: #ef6c00; }

.action-buttons {
    display: flex;
    gap: 0.5rem;
}

.action-btn {
    padding: 0.5rem;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
    font-size: 1rem;
}

.action-btn.view { background: #e8f5e9; color: #2e7d32; text-decoration: none; display: flex; align-items: center; justify-content: center; }
.action-btn.edit { background: #fff3e0; color: #ef6c00; }
.action-btn.ban { background: #ffebee; color: #c62828; }
.action-btn.unban { background: #e8f5e9; color: #2e7d32; }
.action-btn.role { background: #e3f2fd; color: #1565c0; }
.action-btn.delete { background: #ffebee; color: #c62828; }

.action-btn:hover {
    opacity: 0.8;
    transform: scale(1.1);
}

/* Edit User Modal */
.edit-user-modal {
    max-width: 450px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--gray-200);
}

.modal-header h2 {
    margin: 0;
    font-size: 1.25rem;
    color: var(--gray-800);
}

.modal-body {
    margin-bottom: 1.5rem;
}

.modal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-200);
}

.user-info-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--gray-50);
    border-radius: var(--radius-md);
}

.user-avatar-large {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-full);
    object-fit: cover;
}

.user-avatar-placeholder-large {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 600;
    font-size: 1.5rem;
}

.user-info-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.user-info-details .user-phone {
    font-size: 1rem;
    color: var(--gray-700);
    font-weight: 500;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--gray-700);
}

.form-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    font-size: 1rem;
    transition: border-color var(--transition-fast);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.1);
}

.btn-secondary {
    background: var(--gray-200);
    color: var(--gray-700);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.btn-secondary:hover:not(:disabled) {
    background: var(--gray-300);
}

.btn-secondary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Verification List */
.verification-list {
    display: grid;
    gap: 1.5rem;
}

.verification-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
}

.verification-card.selected {
    box-shadow: var(--shadow-lg);
    border: 2px solid var(--primary);
}

.verification-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    cursor: pointer;
}

.verification-card-header .user-cell {
    gap: 1rem;
}

.verification-card-header .user-name {
    display: block;
    font-weight: 600;
    color: var(--gray-900);
}

.verification-card-header .user-phone {
    display: block;
    font-size: 0.875rem;
    color: var(--gray-600);
}

.submitted-date {
    font-size: 0.875rem;
    color: var(--gray-500);
}

.verification-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.verification-image-container {
    position: relative;
}

.verification-image-label {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    background: rgba(0, 0, 0, 0.7);
    color: var(--white);
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 500;
}

.verification-image {
    width: 100%;
    height: 300px;
    object-fit: contain;
    background: var(--gray-100);
    border-radius: var(--radius-md);
}

.verification-actions {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-200);
}

.verification-notes {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    resize: vertical;
    min-height: 60px;
}

.verification-notes:focus {
    outline: none;
    border-color: var(--primary);
}

.verification-buttons {
    display: flex;
    gap: 0.5rem;
}

.btn-success {
    background: var(--success);
    color: var(--white);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-success:hover {
    opacity: 0.9;
}

.btn-danger {
    background: var(--error);
    color: var(--white);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-danger:hover {
    opacity: 0.9;
}

/* Pagination Container */
.pagination-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
    padding: 1rem;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    flex-wrap: wrap;
}

.pagination-info-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pagination-showing {
    font-size: 0.875rem;
    color: var(--gray-600);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.25rem;
}

.pagination-btn {
    min-width: 36px;
    height: 36px;
    padding: 0 0.75rem;
    border: 1px solid var(--gray-300);
    background: var(--white);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    font-weight: 500;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pagination-btn.pagination-num {
    padding: 0;
}

.pagination-btn:hover:not(:disabled) {
    border-color: var(--primary);
    color: var(--primary);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

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

.pagination-ellipsis {
    padding: 0 0.5rem;
    color: var(--gray-500);
}

.pagination-info {
    font-weight: 500;
    color: var(--gray-700);
}

/* Page Size Selector */
.pagination-size {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--gray-600);
}

.page-size-select {
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    background: var(--white);
    font-size: 0.875rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

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

.page-size-select:hover {
    border-color: var(--gray-400);
}

/* Navbar admin link */
.navbar-admin-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: var(--primary);
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: background var(--transition-fast);
}

.navbar-admin-link:hover {
    background: rgba(229, 57, 53, 0.1);
}

.navbar-favorites-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: var(--gray-600);
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.navbar-favorites-link:hover {
    background: rgba(229, 57, 53, 0.1);
    color: var(--primary);
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--gray-600);
}

.empty-state p {
    font-size: 1.125rem;
}

/* Responsive Admin */
@media (max-width: 992px) {
    .admin-layout {
        flex-direction: column;
    }

    .admin-sidebar {
        width: 100%;
        height: auto;
        position: relative;
        top: 0;
        border-right: none;
        border-bottom: 1px solid var(--gray-200);
        padding: 1rem 0;
    }

    .admin-sidebar-header {
        padding: 0 1rem 1rem;
    }

    .admin-nav {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.5rem;
        padding: 0 1rem;
    }

    .admin-nav-link {
        padding: 0.625rem 1rem;
        font-size: 0.875rem;
    }

    .admin-content {
        padding: 1.5rem;
    }
}

@media (max-width: 768px) {
    .admin-page {
        padding: 1rem;
    }

    .admin-content {
        padding: 1rem;
    }

    .admin-stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .admin-table {
        font-size: 0.875rem;
    }

    .admin-table th,
    .admin-table td {
        padding: 0.75rem 0.5rem;
    }

    .verification-images {
        grid-template-columns: 1fr;
    }

    .verification-actions {
        flex-direction: column;
    }

    .verification-buttons {
        width: 100%;
    }

    .verification-buttons button {
        flex: 1;
    }

    /* Responsive pagination */
    .pagination-container {
        flex-direction: column;
        gap: 1rem;
    }

    .pagination-info-left,
    .pagination-size {
        width: 100%;
        justify-content: center;
    }

    .pagination {
        width: 100%;
        justify-content: center;
    }

    .pagination-btn.pagination-num {
        display: none;
    }

    .pagination-btn.pagination-num.active {
        display: flex;
    }

    .pagination-ellipsis {
        display: none;
    }

    .admin-filters {
        flex-direction: column;
    }

    .admin-search,
    .admin-filter-select {
        width: 100%;
    }
}

/* ===== Reaction System ===== */

.profile-reactions {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-200);
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

/* Icon-only favorite button in reactions section */
.favorite-btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-full);
    background: var(--white);
    color: var(--gray-500);
    cursor: pointer;
    transition: all 0.2s ease;
}

.favorite-btn-icon:hover:not(:disabled) {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
}

.favorite-btn-icon.favorited {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

.favorite-btn-icon.favorited:hover:not(:disabled) {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

.favorite-btn-icon:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.favorite-btn-icon svg {
    flex-shrink: 0;
}

/* Reaction Summary */
.reaction-summary {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-full);
    transition: background var(--transition-fast);
}

.reaction-summary:hover {
    background: var(--gray-100);
}

.reaction-summary.empty {
    cursor: default;
}

.reaction-summary.empty:hover {
    background: transparent;
}

.reaction-emojis {
    display: flex;
}

.summary-emoji {
    font-size: 1.25rem;
    margin-left: -0.25rem;
}

.summary-emoji:first-child {
    margin-left: 0;
}

.reaction-users-text {
    font-size: 0.875rem;
    color: var(--gray-600);
}

.no-reactions {
    font-size: 0.875rem;
    color: var(--gray-500);
}

/* Reaction Button */
.reaction-button-container {
    position: relative;
}

.reaction-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-full);
    background: var(--white);
    cursor: pointer;
    font-size: 0.875rem;
    color: var(--gray-700);
    transition: all var(--transition-fast);
}

.reaction-button:hover {
    background: var(--gray-100);
    border-color: var(--gray-400);
}

.reaction-button.reacted {
    background: #fff3e0;
    border-color: #ff9800;
    color: #e65100;
}

.reaction-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.reaction-emoji {
    font-size: 1.25rem;
}

.reaction-label {
    font-weight: 500;
}

/* Reaction Picker */
.reaction-picker-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99;
}

.reaction-picker {
    position: absolute;
    bottom: 100%;
    left: 0;
    margin-bottom: 0.5rem;
    display: flex;
    gap: 0.25rem;
    padding: 0.5rem;
    background: var(--white);
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-lg);
    z-index: 100;
    animation: reactionPickerIn 0.15s ease-out;
}

@keyframes reactionPickerIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(4px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.reaction-picker-item {
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    border-radius: 50%;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.reaction-picker-item:hover {
    background: var(--gray-100);
    transform: scale(1.2);
}

.reaction-picker-item.selected {
    background: #fff3e0;
}

.picker-emoji {
    font-size: 1.5rem;
}

/* Reaction Users Modal */
.reaction-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 1rem;
}

.reaction-modal {
    background: var(--white);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 480px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    animation: modalIn 0.2s ease-out;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.reaction-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--gray-200);
}

.reaction-modal-header h3 {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
}

.reaction-modal-header .close-btn {
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--gray-600);
    transition: background var(--transition-fast);
}

.reaction-modal-header .close-btn:hover {
    background: var(--gray-100);
}

.reaction-modal-tabs {
    display: flex;
    gap: 0.25rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--gray-200);
    overflow-x: auto;
}

.reaction-tab {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 0.75rem;
    border: none;
    background: transparent;
    border-radius: var(--radius-full);
    cursor: pointer;
    font-size: 0.875rem;
    color: var(--gray-600);
    white-space: nowrap;
    transition: all var(--transition-fast);
}

.reaction-tab:hover {
    background: var(--gray-100);
}

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

.tab-emoji {
    font-size: 1rem;
}

.tab-count {
    font-weight: 600;
}

.reaction-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 0.5rem 0;
}

.reaction-modal-body .loading,
.reaction-modal-body .empty {
    padding: 2rem;
    text-align: center;
    color: var(--gray-500);
}

.reaction-users-list {
    display: flex;
    flex-direction: column;
}

.reaction-user-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    cursor: pointer;
    transition: background var(--transition-fast);
}

.reaction-user-item:hover {
    background: var(--gray-50);
}

.reaction-user-item .user-avatar {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

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

.reaction-user-item .avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-200);
    font-size: 1.25rem;
}

.reaction-user-item .user-info {
    flex: 1;
    min-width: 0;
}

.reaction-user-item .user-name {
    font-weight: 500;
    color: var(--gray-900);
}

.reaction-user-item .user-reaction {
    font-size: 1.25rem;
}

.reaction-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1rem;
    border-top: 1px solid var(--gray-200);
}

.reaction-pagination .pagination-btn {
    padding: 0.5rem 1rem;
    border: 1px solid var(--gray-300);
    background: var(--white);
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 0.875rem;
    transition: all var(--transition-fast);
}

.reaction-pagination .pagination-btn:hover:not(:disabled) {
    background: var(--gray-100);
    border-color: var(--gray-400);
}

.reaction-pagination .pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.reaction-pagination .pagination-info {
    font-size: 0.875rem;
    color: var(--gray-600);
}

/* Mobile responsive */
@media (max-width: 640px) {
    .profile-reactions {
        flex-direction: column;
        align-items: flex-start;
    }

    .reaction-picker {
        left: 50%;
        transform: translateX(-50%);
    }

    .reaction-modal {
        max-height: 90vh;
    }
}

/* ============================================
   Search Modal
   ============================================ */

.search-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    z-index: 2000;
    padding: 2rem 1rem;
    overflow-y: auto;
}

.search-modal {
    background: var(--white);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    animation: modalIn 0.2s ease-out;
    margin: auto;
}

.search-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--gray-200);
}

.search-modal-header h2 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-800);
}

.search-modal-close {
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--gray-200);
    background: var(--white);
    border-radius: var(--radius-full);
    cursor: pointer;
    color: var(--gray-600);
    transition: all var(--transition-fast);
    flex-shrink: 0;
}

.search-modal-close svg {
    width: 18px;
    height: 18px;
}

.search-modal-close:hover {
    background: var(--gray-100);
    border-color: var(--gray-300);
    color: var(--gray-800);
}

.search-modal-close:active {
    transform: scale(0.95);
}

.search-modal-content {
    padding: 0.75rem 1rem;
    overflow-y: auto;
    max-height: 65vh;
}

.search-section {
    margin-bottom: 0.875rem;
}

.search-section:last-child {
    margin-bottom: 0;
}

.search-section > label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gray-600);
    margin-bottom: 0.375rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.search-section-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gray-600);
    margin-bottom: 0.375rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.search-section select {
    width: 100%;
    padding: 0.5rem 0.625rem;
    font-size: 0.8125rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    background: var(--white);
    color: var(--gray-800);
    cursor: pointer;
    transition: border-color var(--transition-fast);
}

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

/* Checkbox Grid for multi-select options - moved to Modern checkbox section below */

/* Age Range Inputs */
.age-range-inputs {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: 0.5rem 0.75rem;
}

.age-input-group {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    flex: 1;
}

.age-input-group label {
    font-size: 0.7rem;
    color: var(--gray-600);
    white-space: nowrap;
    min-width: 30px;
}

.age-input-group input {
    width: 55px;
    padding: 0.375rem 0.375rem;
    font-size: 0.8125rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    text-align: center;
    background: var(--white);
}

.age-input-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(229, 57, 53, 0.1);
}

.age-input-group input::placeholder {
    color: var(--gray-400);
    font-size: 0.8rem;
}

.age-range-separator {
    color: var(--gray-400);
    font-size: 1rem;
    font-weight: 500;
    padding: 0 0.25rem;
}

.age-range-unit {
    font-size: 0.8rem;
    color: var(--gray-500);
    white-space: nowrap;
}

/* Search Modal Footer */
.search-modal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-top: 1px solid var(--gray-200);
    background: var(--gray-50);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.search-modal-footer .btn-clear {
    background: transparent;
    border: 1px solid var(--gray-300);
    color: var(--gray-600);
    padding: 0.5rem 0.75rem;
    font-size: 0.8125rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.search-modal-footer .btn-clear:hover {
    background: var(--gray-100);
    border-color: var(--gray-400);
}

.search-modal-footer .btn-search {
    background: var(--primary);
    border: none;
    color: var(--white);
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
    font-weight: 500;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: background var(--transition-fast);
}

.search-modal-footer .btn-search:hover {
    background: var(--primary-dark);
}

/* Search Bar Section on Home Page */
.search-bar-section {
    margin-bottom: 1rem;
}

.search-bar-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-full);
    cursor: pointer;
    color: var(--gray-500);
    font-size: 0.875rem;
    transition: all var(--transition-fast);
}

.search-bar-btn:hover {
    border-color: var(--primary);
    color: var(--gray-700);
}

.search-bar-btn svg {
    width: 1.125rem;
    height: 1.125rem;
}

/* Active Filters Bar */
.active-filters-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem 1rem;
    background: rgba(229, 57, 53, 0.05);
    border: 1px solid rgba(229, 57, 53, 0.2);
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
}

.active-filters-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--gray-700);
}

.active-filters-info .filter-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.5rem;
    height: 1.5rem;
    padding: 0 0.375rem;
    background: var(--primary);
    color: var(--white);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
}

.clear-filters-btn {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    background: transparent;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    font-size: 0.75rem;
    color: var(--gray-600);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.clear-filters-btn:hover {
    background: var(--gray-100);
    border-color: var(--gray-400);
}

/* Search Results Info */
.search-results-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding: 0.5rem 0;
    font-size: 0.875rem;
    color: var(--gray-600);
}

.search-results-info .result-count {
    font-weight: 600;
    color: var(--primary);
}

/* Mobile responsive for search */
@media (max-width: 640px) {
    .search-modal-backdrop {
        padding: 1rem 0.5rem;
        align-items: flex-start;
    }

    .search-modal {
        max-width: 100%;
        border-radius: var(--radius-md);
    }

    .search-modal-content {
        max-height: 55vh;
    }

    .age-range-inputs {
        flex-wrap: wrap;
    }

    .age-input-group {
        flex: 1 1 45%;
    }

    .age-range-separator {
        display: none;
    }

    .search-modal-footer {
        flex-direction: column;
    }

    .search-modal-footer .btn-clear,
    .search-modal-footer .btn-search {
        width: 100%;
    }

    .active-filters-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }

    .active-filters-info {
        justify-content: center;
    }

    .clear-filters-btn {
        justify-content: center;
    }
}

/* View Mode Toggle in Active Filters Bar */
.filters-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.filters-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.filter-count {
    font-size: 0.875rem;
    color: var(--gray-700);
    font-weight: 500;
}

.filter-results {
    font-size: 0.875rem;
    color: var(--primary);
    font-weight: 600;
}

.view-mode-toggle {
    display: flex;
    align-items: center;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.view-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.375rem 0.625rem;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--gray-500);
    transition: all var(--transition-fast);
}

.view-toggle-btn:hover {
    background: var(--gray-100);
    color: var(--gray-700);
}

.view-toggle-btn.active {
    background: var(--primary);
    color: var(--white);
}

.view-toggle-btn svg {
    width: 16px;
    height: 16px;
}

/* SearchMap Container */
.search-map-container {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 220px);
    min-height: 400px;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.search-map-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
}

.search-map-stats {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.search-map-stats .member-count {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.875rem;
    color: var(--gray-700);
}

.search-map-stats .member-count svg {
    color: var(--primary);
}

.search-map-stats .loading-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--gray-500);
}

.search-map-stats .spinner-small {
    width: 16px;
    height: 16px;
    border: 2px solid var(--gray-300);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.search-map-province-jump {
    flex: 1;
    max-width: 200px;
    margin: 0 0.5rem;
}

.province-jump-select {
    width: 100%;
    padding: 0.375rem 0.625rem;
    font-size: 0.8125rem;
    color: var(--gray-700);
    background: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s ease;
}

.province-jump-select:hover {
    border-color: var(--primary-light);
}

.province-jump-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.1);
}

.search-map-filters {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.search-map-filters .filter-btn {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    background: transparent;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    color: var(--gray-600);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.search-map-filters .filter-btn:hover {
    border-color: var(--gray-400);
    background: var(--gray-50);
}

.search-map-filters .filter-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

.search-map-filters .filter-btn .online-indicator {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
}

.search-map-wrapper {
    flex: 1;
    position: relative;
}

.search-map-wrapper .leaflet-container {
    height: 100%;
    width: 100%;
}

.search-map-empty {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
    color: var(--gray-500);
    z-index: 500;
}

.search-map-empty p {
    font-size: 0.875rem;
    margin: 0;
}

.search-map-privacy {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 1rem;
    background: var(--gray-50);
    border-top: 1px solid var(--gray-200);
    font-size: 0.75rem;
    color: var(--gray-500);
}

.search-map-privacy svg {
    color: var(--gray-400);
}

/* Search Modal View Mode Toggle */
.search-modal-footer .view-mode-toggle {
    display: flex;
    align-items: center;
    gap: 0.125rem;
    padding: 0.1875rem;
    background: var(--gray-100);
    border-radius: var(--radius-md);
    border: none;
}

.search-modal-footer .view-mode-btn {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.375rem 0.625rem;
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    color: var(--gray-600);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.search-modal-footer .view-mode-btn:hover {
    color: var(--gray-800);
}

.search-modal-footer .view-mode-btn.active {
    background: var(--white);
    color: var(--primary);
    font-weight: 500;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.search-modal-footer .view-mode-btn svg {
    flex-shrink: 0;
}

.search-modal-footer .view-mode-label {
    display: inline;
}

.search-modal-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Mobile responsive for view mode toggle */
@media (max-width: 640px) {
    .filters-left {
        flex: 1;
    }

    .filters-right {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .view-mode-toggle {
        flex: 0 0 auto;
    }

    .search-map-container {
        height: calc(100vh - 180px);
        border-radius: 0;
        margin: 0 -1rem;
    }

    .search-map-header {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .search-map-filters {
        width: 100%;
        justify-content: space-between;
    align-items: center;
    }

    .search-modal-footer .view-mode-toggle {
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .search-modal-footer .view-mode-btn {
        flex: 1;
        justify-content: center;
    }

    .search-modal-footer .view-mode-label {
        display: none;
    }

    .search-modal-footer {
        flex-direction: column;
        gap: 0.75rem;
    }

    .search-modal-actions {
        width: 100%;
        flex-direction: column;
    }

    .search-modal-actions .btn {
        width: 100%;
    }
}

/* Lightbox */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeIn 0.2s ease-out;
    /* Escape from transform containing block */
    contain: none;
    isolation: isolate;
}

.lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--white);
    transition: background 0.2s;
    z-index: 3001;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lightbox-content {
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-image {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: var(--radius-md);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    user-select: none;
    -webkit-user-drag: none;
}

/* Lightbox Navigation */
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--white);
    transition: all 0.2s;
    z-index: 3001;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
    left: 1rem;
}

.lightbox-next {
    right: 1rem;
}

.lightbox-counter {
    position: absolute;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 500;
    z-index: 3001;
}

.lightbox-dots {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 3001;
}

.lightbox-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.5);
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: all 0.2s;
}

.lightbox-dot:hover {
    border-color: var(--white);
}

.lightbox-dot.active {
    background: var(--white);
    border-color: var(--white);
}

@media (max-width: 768px) {
    .lightbox-nav {
        width: 40px;
        height: 40px;
    }

    .lightbox-nav svg {
        width: 24px;
        height: 24px;
    }

    .lightbox-prev {
        left: 0.5rem;
    }

    .lightbox-next {
        right: 0.5rem;
    }

    .lightbox-counter {
        top: 0.75rem;
        font-size: 0.8rem;
        padding: 0.375rem 0.75rem;
    }

    .lightbox-dots {
        bottom: 1rem;
    }

    .lightbox-dot {
        width: 8px;
        height: 8px;
    }
}

/* Clickable profile/banner images */
.profile-avatar-clickable,
.profile-banner-clickable {
    cursor: zoom-in;
    transition: opacity 0.2s;
}

.profile-avatar-clickable:hover,
.profile-banner-clickable:hover {
    opacity: 0.9;
}

/* ============================================
   Admin Cache Management Page
   ============================================ */

.cache-stats-section,
.cache-actions-section,
.cache-user-section {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
}

.cache-stats-section h2,
.cache-actions-section h2,
.cache-user-section h2 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gray-800);
    margin: 0 0 1rem 0;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--gray-200);
}

/* Cache Statistics Grid */
.cache-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1rem;
}

.cache-stat-card {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: 1rem;
    text-align: center;
    transition: all var(--transition-fast);
}

.cache-stat-card:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-sm);
}

.cache-stat-card.total {
    background: linear-gradient(135deg, rgba(229, 57, 53, 0.1), rgba(229, 57, 53, 0.05));
    border-color: var(--primary);
}

.cache-stat-card.total .cache-stat-value {
    color: var(--primary);
}

.cache-stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--gray-800);
    line-height: 1.2;
}

.cache-stat-label {
    font-size: 0.75rem;
    color: var(--gray-600);
    margin-top: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

/* Cache Actions Grid */
.cache-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
}

.cache-action-card {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.cache-action-card h3 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-800);
    margin: 0;
}

.cache-action-card p {
    font-size: 0.75rem;
    color: var(--gray-600);
    margin: 0;
    flex: 1;
    line-height: 1.4;
}

.cache-action-card.danger {
    background: rgba(244, 67, 54, 0.05);
    border-color: rgba(244, 67, 54, 0.3);
}

.cache-action-card.danger h3 {
    color: var(--error);
}

/* Clear Cache Buttons */
.btn-clear {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    font-weight: 500;
    background: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    color: var(--gray-700);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-clear:hover:not(:disabled) {
    background: var(--gray-100);
    border-color: var(--gray-400);
}

.btn-clear:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-clear.btn-danger {
    background: var(--error);
    border-color: var(--error);
    color: var(--white);
}

.btn-clear.btn-danger:hover:not(:disabled) {
    background: #d32f2f;
    border-color: #d32f2f;
}

/* Refresh Button */
.btn-refresh {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    background: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    color: var(--gray-700);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-refresh:hover:not(:disabled) {
    background: var(--gray-100);
    border-color: var(--gray-400);
}

.btn-refresh:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-refresh svg {
    width: 1rem;
    height: 1rem;
}

/* Small Spinner */
.spinner-small {
    width: 1rem;
    height: 1rem;
    border: 2px solid var(--gray-300);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* Clear User Cache Section */
.cache-user-section p {
    font-size: 0.875rem;
    color: var(--gray-600);
    margin: 0 0 1rem 0;
}

.cache-user-input-group {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.cache-user-input-group input {
    flex: 1;
    max-width: 400px;
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    transition: border-color var(--transition-fast);
}

.cache-user-input-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(229, 57, 53, 0.1);
}

.cache-user-input-group input::placeholder {
    color: var(--gray-400);
}

/* Admin Page Header with Button */
.admin-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.admin-page-header h1 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--gray-800);
    margin: 0;
}

/* Mobile responsive for cache page */
@media (max-width: 768px) {
    .cache-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cache-actions-grid {
        grid-template-columns: 1fr;
    }

    .cache-user-input-group {
        flex-direction: column;
        align-items: stretch;
    }

    .cache-user-input-group input {
        max-width: none;
    }

    .admin-page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .cache-stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }

    .cache-stat-card {
        padding: 0.75rem;
    }

    .cache-stat-value {
        font-size: 1.5rem;
    }

    .cache-stat-label {
        font-size: 0.65rem;
    }

    .cache-stats-section,
    .cache-actions-section,
    .cache-user-section {
        padding: 1rem;
    }
}

/* ============================================
   Admin Rate Limit Management Page
   ============================================ */

.rate-limit-config-section,
.rate-limit-clear-section,
.rate-limit-entries-section {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
}

.rate-limit-config-section h2,
.rate-limit-clear-section h2,
.rate-limit-entries-section h2 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gray-800);
    margin: 0 0 1rem 0;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--gray-200);
}

/* Rate Limit Config Grid */
.rate-limit-config-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
}

.config-card {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: 1rem;
    text-align: center;
    transition: all var(--transition-fast);
}

.config-card:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-sm);
}

.config-card h3 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-800);
    margin: 0 0 0.5rem 0;
    text-transform: capitalize;
}

.config-card .config-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.2;
}

.config-card .config-label {
    font-size: 0.7rem;
    color: var(--gray-500);
    margin-top: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

/* Rate Limit Clear Section */
.rate-limit-clear-section p {
    font-size: 0.875rem;
    color: var(--gray-600);
    margin: 0 0 1rem 0;
}

.rate-limit-input-group {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.rate-limit-input-group input {
    flex: 1;
    max-width: 400px;
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    transition: border-color var(--transition-fast);
}

.rate-limit-input-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(229, 57, 53, 0.1);
}

.rate-limit-input-group input::placeholder {
    color: var(--gray-400);
}

/* Rate Limit Entries Table */
.rate-limit-table-container {
    overflow-x: auto;
    margin-top: 0.5rem;
}

.rate-limit-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.rate-limit-table th,
.rate-limit-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--gray-200);
}

.rate-limit-table th {
    background: var(--gray-50);
    font-weight: 600;
    color: var(--gray-700);
    white-space: nowrap;
}

.rate-limit-table tbody tr:hover {
    background: var(--gray-50);
}

.rate-limit-table tbody tr:last-child td {
    border-bottom: none;
}

.ip-cell {
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Code', monospace;
    font-size: 0.8rem;
    color: var(--gray-700);
    background: var(--gray-100);
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    display: inline-block;
}

.endpoint-cell {
    color: var(--gray-600);
    font-size: 0.8rem;
}

.count-cell {
    font-weight: 600;
    color: var(--gray-800);
}

.count-cell.count-high {
    color: var(--error);
}

.count-cell.count-medium {
    color: #f59e0b;
}

.ttl-cell {
    color: var(--gray-500);
    font-size: 0.8rem;
}

.btn-clear-small {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 500;
    background: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    color: var(--gray-600);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-clear-small:hover:not(:disabled) {
    background: rgba(244, 67, 54, 0.1);
    border-color: var(--error);
    color: var(--error);
}

.btn-clear-small:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* No entries message */
.no-entries {
    text-align: center;
    padding: 2rem;
    color: var(--gray-500);
    font-size: 0.875rem;
}

/* IP Group styling for grouped entries */
.ip-group-header {
    background: var(--gray-100);
    font-weight: 600;
}

.ip-group-header td {
    border-top: 2px solid var(--gray-300);
}

/* Mobile responsive for rate limit page */
@media (max-width: 768px) {
    .rate-limit-config-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .rate-limit-input-group {
        flex-direction: column;
        align-items: stretch;
    }

    .rate-limit-input-group input {
        max-width: none;
    }

    .rate-limit-table {
        font-size: 0.8rem;
    }

    .rate-limit-table th,
    .rate-limit-table td {
        padding: 0.5rem;
    }

    .rate-limit-config-section,
    .rate-limit-clear-section,
    .rate-limit-entries-section {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .rate-limit-config-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }

    .config-card {
        padding: 0.75rem;
    }

    .config-card h3 {
        font-size: 0.75rem;
    }

    .config-card .config-value {
        font-size: 1rem;
    }

    .rate-limit-table-container {
        margin: 0 -1rem;
        padding: 0 1rem;
    }
}

/* Rate Limit Config - Section Header */
.rate-limit-config-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--gray-200);
}

.rate-limit-config-section .section-header h2 {
    margin: 0;
    padding: 0;
    border: none;
}

.rate-limit-config-section .section-desc {
    font-size: 0.875rem;
    color: var(--gray-600);
    margin: 0 0 1rem 0;
}

/* Config Card Enhanced */
.config-card.custom {
    border-color: var(--primary-light);
    background: linear-gradient(135deg, rgba(229, 57, 53, 0.02) 0%, rgba(229, 57, 53, 0.05) 100%);
}

.config-card .config-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.config-card .config-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-800);
    text-transform: capitalize;
}

.config-card .custom-badge {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    padding: 0.15rem 0.5rem;
    background: var(--primary);
    color: white;
    border-radius: var(--radius-sm);
}

.config-card .config-value {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.25rem;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}

.config-card .value-number {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
}

.config-card .value-unit {
    font-size: 0.75rem;
    color: var(--gray-500);
}

.config-card .config-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.config-card .btn-edit,
.config-card .btn-reset {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.375rem 0.625rem;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.config-card .btn-edit {
    background: var(--white);
    border: 1px solid var(--gray-300);
    color: var(--gray-600);
}

.config-card .btn-edit:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.config-card .btn-reset {
    background: transparent;
    border: 1px solid var(--gray-300);
    color: var(--gray-500);
}

.config-card .btn-reset:hover:not(:disabled) {
    background: var(--gray-100);
    border-color: var(--gray-400);
    color: var(--gray-700);
}

.config-card .btn-reset:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Reset All Button */
.btn-reset-all {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    font-weight: 500;
    background: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    color: var(--gray-600);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-reset-all:hover:not(:disabled) {
    background: var(--gray-100);
    border-color: var(--gray-400);
    color: var(--gray-700);
}

.btn-reset-all:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Edit Modal for Rate Limit Config */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 1rem;
}

.modal-content {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    max-width: 400px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--gray-200);
}

.modal-header h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-900);
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--gray-400);
    cursor: pointer;
    padding: 0.25rem;
    line-height: 1;
    transition: color var(--transition-fast);
}

.modal-close:hover {
    color: var(--gray-600);
}

.modal-body {
    padding: 1.25rem;
}

.modal-body .form-group {
    margin-bottom: 1rem;
}

.modal-body .form-group:last-child {
    margin-bottom: 0;
}

.modal-body .form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: 0.375rem;
}

.modal-body .form-group input {
    width: 100%;
    padding: 0.625rem 0.875rem;
    font-size: 0.875rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    transition: border-color var(--transition-fast);
}

.modal-body .form-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(229, 57, 53, 0.1);
}

.modal-body .form-hint {
    display: block;
    font-size: 0.75rem;
    color: var(--gray-500);
    margin-top: 0.375rem;
}

.modal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--gray-200);
    background: var(--gray-50);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

/* Form Error */
.form-error {
    padding: 0.75rem 1rem;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: var(--radius-md);
    color: #dc2626;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

/* Change Password Modal */
.change-password-modal {
    max-width: 400px;
}

.change-password-modal .modal-header h2 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gray-900);
    margin: 0;
}

.modal-footer .btn-cancel {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    background: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    color: var(--gray-600);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.modal-footer .btn-cancel:hover {
    background: var(--gray-100);
}

.modal-footer .btn-save {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    background: var(--primary);
    border: none;
    border-radius: var(--radius-md);
    color: white;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.modal-footer .btn-save:hover:not(:disabled) {
    background: var(--primary-dark);
}

.modal-footer .btn-save:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Mobile modal */
@media (max-width: 480px) {
    .modal-content {
        max-width: none;
        margin: 0;
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        max-height: 80vh;
    }

    .config-card .config-actions {
        flex-direction: column;
    }

    .config-card .btn-edit,
    .config-card .btn-reset {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================
   JOB BOARD STYLES
   ============================================ */

/* Job Board Page */
.job-board-page {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 1rem var(--container-padding);
}

.job-board-page .page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.job-board-page .page-header h1 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--gray-900);
    margin: 0;
}

/* Filter Tabs */
.filter-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.filter-tab {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    background: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-full);
    color: var(--gray-600);
    cursor: pointer;
    white-space: nowrap;
    transition: all var(--transition-fast);
}

.filter-tab:hover {
    background: var(--gray-50);
    border-color: var(--gray-400);
}

.filter-tab.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

/* Jobs Grid */
.jobs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.25rem;
}

/* Job Card - Modern Design */
.job-card {
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-xl);
    padding: 1.25rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.job-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), #ff6b6b);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.job-card:hover {
    border-color: transparent;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
}

.job-card:hover::before {
    opacity: 1;
}

.job-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
    gap: 0.75rem;
}

.job-card-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-900);
    margin: 0;
    line-height: 1.4;
    flex: 1;
}

.job-card-status {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.5rem;
    font-size: 0.7rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    text-transform: uppercase;
}

.job-card-status.status-open {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
}

.job-card-status.status-filled {
    background: rgba(59, 130, 246, 0.1);
    color: #2563eb;
}

.job-card-status.status-cancelled {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

.job-card-status.status-completed {
    background: rgba(168, 85, 247, 0.1);
    color: #9333ea;
}

.job-card-status.status-expired {
    background: rgba(156, 163, 175, 0.1);
    color: #6b7280;
}

.job-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 0.8rem;
    color: var(--gray-600);
}

.job-card-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.job-card-budget {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
    margin-bottom: 0.75rem;
}

.job-card-budget .amount {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
}

.job-card-budget .type {
    font-size: 0.75rem;
    color: var(--gray-500);
}

.job-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    margin-bottom: 0.75rem;
}

.job-card-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.5rem;
    font-size: 0.7rem;
    background: var(--gray-100);
    border-radius: var(--radius-sm);
    color: var(--gray-600);
}

.job-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.75rem;
    border-top: 1px solid var(--gray-100);
}

.job-card-owner {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.job-card-owner-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.job-card-owner-avatar-placeholder {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gray-500);
}

.job-card-owner-name {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--gray-700);
}

.job-card-applicants {
    font-size: 0.75rem;
    color: var(--gray-500);
}

/* Job Card - New Component Styles */
.job-owner {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
}

.job-owner-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    position: relative;
    flex-shrink: 0;
}

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

.job-owner-avatar .avatar-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #ff6b6b 0%, var(--primary) 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50%;
    text-transform: uppercase;
}

.job-owner-avatar.online {
    border: 2.5px solid #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
}

.job-owner-avatar .verified-badge {
    position: absolute;
    top: auto;
    left: auto;
    bottom: -2px;
    right: -2px;
    width: 16px;
    height: 16px;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    border-radius: 50%;
    font-size: 0.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.3);
}

.job-owner-info {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.job-owner-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gray-900);
    display: flex;
    align-items: center;
    gap: 0.375rem;
    flex-wrap: wrap;
}

.job-owner-gender {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--gray-500);
}

.job-owner-age {
    font-size: 0.75rem;
    color: var(--gray-500);
}

.job-posted-time {
    font-size: 0.75rem;
    color: var(--gray-400);
}

.job-menu-btn {
    background: none;
    border: none;
    font-size: 1.25rem;
    color: var(--gray-400);
    cursor: pointer;
    padding: 0.25rem;
    line-height: 1;
}

.job-menu-btn:hover {
    color: var(--gray-600);
}

.job-card-content {
    padding: 0.75rem 0;
}

.job-card-content .job-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0 0 0.75rem 0;
    line-height: 1.4;
    letter-spacing: -0.01em;
}

.job-location {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.85rem;
    color: var(--gray-600);
    margin-bottom: 0.5rem;
}

.job-location .location-icon {
    font-size: 0.9rem;
}

.job-datetime {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    font-size: 0.85rem;
    color: var(--gray-600);
    margin-bottom: 0.5rem;
}

.job-datetime .job-date {
    font-weight: 600;
    color: var(--gray-700);
}

.job-datetime .job-time {
    color: var(--gray-600);
}

.job-datetime .job-duration {
    color: var(--gray-500);
    font-size: 0.8rem;
}

.job-budget {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.25rem;
    font-size: 0.9rem;
    margin-top: 0.75rem;
    padding: 0.75rem;
    background: linear-gradient(135deg, rgba(229, 57, 53, 0.06) 0%, rgba(255, 107, 107, 0.04) 100%);
    border-radius: var(--radius-lg);
}

.job-budget .budget-label {
    color: var(--gray-500);
    font-size: 0.8rem;
}

.job-budget .budget-amount {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.02em;
}

.job-budget .budget-hourly {
    font-size: 0.8rem;
    color: var(--gray-500);
    font-weight: 500;
}

.job-status-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.job-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.375rem 0.75rem;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.job-status-badge.status-open {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.15) 0%, rgba(34, 197, 94, 0.08) 100%);
    color: #16a34a;
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.15);
}

.job-status-badge.status-open::before {
    content: "";
    width: 6px;
    height: 6px;
    background: #22c55e;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.job-status-badge.status-filled {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(59, 130, 246, 0.08) 100%);
    color: #2563eb;
}

.job-status-badge.status-cancelled {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(239, 68, 68, 0.08) 100%);
    color: #dc2626;
}

.job-status-badge.status-completed {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.15) 0%, rgba(168, 85, 247, 0.08) 100%);
    color: #9333ea;
}

.job-status-badge.status-expired {
    background: linear-gradient(135deg, rgba(156, 163, 175, 0.15) 0%, rgba(156, 163, 175, 0.08) 100%);
    color: #6b7280;
}

.job-applicants {
    font-size: 0.75rem;
    color: var(--gray-500);
}

.job-app-status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.5rem;
    font-size: 0.65rem;
    font-weight: 600;
    border-radius: var(--radius-full);
}

.job-app-status-badge.badge-pending {
    background: rgba(251, 191, 36, 0.15);
    color: #d97706;
}

.job-app-status-badge.badge-accepted {
    background: rgba(34, 197, 94, 0.15);
    color: #16a34a;
}

.job-app-status-badge.badge-rejected {
    background: rgba(239, 68, 68, 0.15);
    color: #dc2626;
}

.job-app-status-badge.badge-countered {
    background: rgba(59, 130, 246, 0.15);
    color: #2563eb;
}

.job-app-status-badge.badge-withdrawn {
    background: rgba(156, 163, 175, 0.15);
    color: #6b7280;
}

.job-actions {
    display: flex;
    gap: 0.5rem;
}

.job-btn {
    padding: 0.5rem 1.25rem;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.job-btn-apply {
    background: linear-gradient(135deg, var(--gray-100) 0%, var(--gray-50) 100%);
    color: var(--gray-700);
    border: 1px solid var(--gray-200);
}

.job-btn-apply:hover {
    background: linear-gradient(135deg, var(--primary) 0%, #c62828 100%);
    border-color: transparent;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(229, 57, 53, 0.3);
}

.job-btn-interested {
    background: linear-gradient(135deg, var(--primary) 0%, #c62828 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(229, 57, 53, 0.25);
}

.job-btn-interested:hover {
    box-shadow: 0 4px 14px rgba(229, 57, 53, 0.35);
    transform: translateY(-1px);
}

/* Job Board Page - Minimal Compact Design */
.job-board-page {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 1rem var(--container-padding);
    min-height: calc(100vh - 200px);
}

.job-board-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    padding: 0.75rem 1rem;
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-100);
}

.job-board-header h1 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.job-board-header h1::before {
    content: "💼";
    font-size: 1rem;
}

.job-board-header-actions {
    display: flex;
    gap: 0.5rem;
}

.job-board-header .btn-primary {
    background: var(--primary);
    border: none;
    font-weight: 600;
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
}

.job-board-header .btn-primary:hover {
    background: var(--primary-dark);
}

.job-board-header .btn-secondary,
.job-board-header .btn-map {
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
    border-radius: var(--radius-md);
}

.job-board-filters {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    padding: 0.625rem 0.75rem;
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-100);
}

.filter-row-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.filter-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.btn-filter-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gray-600);
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-filter-toggle:hover {
    background: var(--gray-100);
    color: var(--gray-800);
}

.btn-filter-toggle.active {
    background: rgba(229, 57, 53, 0.08);
    color: var(--primary);
    border-color: var(--primary);
}

.btn-filter-toggle svg {
    width: 14px;
    height: 14px;
    opacity: 0.7;
}

.btn-filter-toggle.active svg {
    opacity: 1;
}

.filter-tabs {
    display: flex;
    gap: 0.25rem;
    background: var(--gray-100);
    padding: 0.1875rem;
    border-radius: var(--radius-md);
}

.filter-tabs-small {
    padding: 0.1875rem;
}

.filter-tabs-small .filter-tab {
    padding: 0.375rem 0.625rem;
    font-size: 0.7rem;
}

.filter-tab {
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    color: var(--gray-500);
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    white-space: nowrap;
}

.filter-tab:hover {
    color: var(--gray-700);
    background: rgba(255, 255, 255, 0.5);
}

.filter-tab.active {
    background: var(--white);
    color: var(--primary);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

/* Advanced Filters - Inline Layout */
.advanced-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    padding-top: 0.75rem;
    margin-top: 0.5rem;
    border-top: 1px solid var(--gray-100);
    align-items: flex-end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.filter-label {
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-select {
    padding: 0.5rem 0.625rem;
    font-size: 0.8125rem;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    background: var(--white);
    color: var(--gray-800);
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 140px;
    height: 36px;
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(229, 57, 53, 0.1);
}

/* Date filter tabs need consistent height */
.filter-tabs-small {
    height: 36px;
    display: flex;
    align-items: center;
    padding: 0.1875rem;
}

.filter-budget-inputs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    height: 36px;
}

.filter-input {
    padding: 0.5rem 0.625rem;
    font-size: 0.8125rem;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    background: var(--white);
    color: var(--gray-800);
    width: 80px;
    height: 36px;
    transition: all 0.2s ease;
}

.filter-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(229, 57, 53, 0.1);
}

.filter-input::placeholder {
    color: var(--gray-400);
    font-size: 0.75rem;
}

.filter-separator {
    color: var(--gray-400);
    font-weight: 500;
    font-size: 0.875rem;
}

.btn-clear-filters {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.875rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gray-500);
    background: transparent;
    border: 1px dashed var(--gray-300);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    height: 36px;
    margin-left: auto;
}

.btn-clear-filters:hover {
    color: var(--primary);
    border-color: var(--primary);
    background: rgba(229, 57, 53, 0.05);
}

.job-quick-links {
    display: flex;
    gap: 0.375rem;
}

.quick-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.375rem 0.625rem;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    background: rgba(229, 57, 53, 0.06);
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.quick-link:hover {
    background: rgba(229, 57, 53, 0.12);
    text-decoration: none;
}

.job-list-section {
    margin-top: 0.5rem;
}

.job-list-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

/* Single column on smaller screens */
@media (max-width: 900px) {
    .job-list-grid {
        grid-template-columns: 1fr;
    }
}

.no-jobs {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--gray-500);
    background: linear-gradient(180deg, var(--gray-50) 0%, transparent 100%);
    border-radius: var(--radius-xl);
    margin-top: 1rem;
}

.no-jobs-icon {
    font-size: 4rem;
    margin-bottom: 1.25rem;
    opacity: 0.8;
}

.no-jobs p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--gray-600);
}

.no-jobs .btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, #c62828 100%);
    box-shadow: 0 4px 14px rgba(229, 57, 53, 0.3);
    border: none;
    padding: 0.75rem 2rem;
    font-weight: 600;
}

.load-more-indicator,
.load-more-hint,
.load-more-end {
    text-align: center;
    padding: 1.5rem;
    color: var(--gray-400);
    font-size: 0.85rem;
}

.load-more-hint {
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    margin-top: 1rem;
}

.load-more-end {
    border-top: 1px solid var(--gray-100);
    margin-top: 1.5rem;
    padding-top: 1.5rem;
}

/* Job Detail Page */
.job-detail-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 1.5rem;
}

.job-detail-nav {
    margin-bottom: 1rem;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    color: var(--gray-600);
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-back svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.btn-back:hover {
    background: var(--gray-50);
    border-color: var(--gray-400);
    color: var(--gray-800);
}

/* Job Detail Header with Owner */
.job-detail-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    margin-bottom: 1rem;
}

.job-owner-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    transition: opacity var(--transition-fast);
}

.job-owner-section:hover {
    opacity: 0.8;
}

.job-owner-avatar {
    position: relative;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    overflow: visible;
}

.job-owner-avatar.online {
    box-shadow: 0 0 0 3px #22c55e;
}

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

.job-owner-avatar .avatar-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--white);
}

.job-owner-avatar .verified-badge {
    position: absolute;
    top: auto;
    left: auto;
    bottom: -2px;
    right: -2px;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    border: 2px solid var(--white);
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.3);
    z-index: 2;
}

.job-owner-avatar .verified-badge svg {
    width: 12px;
    height: 12px;
}

.job-owner-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.job-owner-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-900);
}

.job-owner-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.job-owner-gender {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--white);
    background: var(--primary);
    padding: 0.125rem 0.5rem;
    border-radius: 9999px;
}

.job-owner-age {
    font-size: 0.8rem;
    color: var(--gray-500);
}

/* Job Detail Content */
.job-detail-content {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1rem;
}

/* Job Title Row with Edit Button */
.job-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.job-title-row .job-title {
    margin: 0;
    flex: 1;
}

.job-title-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.btn-edit-title {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    flex-shrink: 0;
    white-space: nowrap;
}

.btn-edit-title svg {
    flex-shrink: 0;
}

.btn-chat {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    background: linear-gradient(135deg, #4CAF50 0%, #388E3C 100%);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.25);
}

.btn-chat:hover {
    box-shadow: 0 4px 14px rgba(76, 175, 80, 0.35);
    transform: translateY(-1px);
}

.btn-chat svg {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
}

.job-detail-content .job-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0 0 1rem 0;
    line-height: 1.3;
}

.job-detail-content .job-description {
    color: var(--gray-600);
    line-height: 1.7;
    margin: 0 0 1.5rem 0;
    white-space: pre-wrap;
}

/* Job Detail Images Gallery */
.job-detail-images {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    scrollbar-width: thin;
}

.job-detail-image-item {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    background: var(--gray-100);
}

.job-detail-image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s ease;
}

.job-detail-image-item:hover img {
    transform: scale(1.05);
}

/* Job Info Grid */
.job-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.job-info-grid.compact {
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.job-info-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--gray-50);
    border-radius: var(--radius-md);
}

.job-info-item.full-width {
    grid-column: 1 / -1;
}

.job-info-item.budget {
    background: linear-gradient(135deg, rgba(229, 57, 53, 0.05), rgba(229, 57, 53, 0.1));
    border: 1px solid rgba(229, 57, 53, 0.2);
}

/* Location Combined */
.info-value.location-combined {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem;
}

.location-province {
    font-weight: 600;
    color: var(--gray-800);
}

.location-separator {
    color: var(--gray-400);
}

.location-meeting {
    color: var(--gray-700);
}

.info-link-inline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    margin-left: 0.5rem;
    color: var(--primary);
    background: rgba(229, 57, 53, 0.1);
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

.info-link-inline:hover {
    background: rgba(229, 57, 53, 0.2);
}

.info-link-inline svg {
    flex-shrink: 0;
}

/* Preferences Inline */
.job-preferences-inline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    background: var(--gray-50);
    border-radius: var(--radius-md);
    border: 1px solid var(--gray-100);
}

.pref-inline-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pref-inline-label {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--gray-500);
}

.pref-inline-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
}

.pref-inline-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.625rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--gray-700);
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 999px;
}

.pref-inline-value {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-700);
}

.info-icon {
    font-size: 1.25rem;
    line-height: 1;
    flex-shrink: 0;
}

.info-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
}

.info-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.info-value {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--gray-800);
    word-break: break-word;
}

.info-value.budget-amount {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--primary);
}

.info-value .hourly-rate {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--gray-500);
}

.info-value.info-link {
    color: var(--primary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.info-value.info-link:hover {
    text-decoration: underline;
}

.info-link-small {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin-top: 0.25rem;
    font-size: 0.8rem;
    color: var(--primary);
    text-decoration: none;
}

.info-link-small:hover {
    text-decoration: underline;
}

.info-link-small svg {
    flex-shrink: 0;
}

.info-value-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.btn-reopen {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    color: var(--success);
    border-color: var(--success);
}

.btn-reopen:hover {
    background: var(--success);
    color: white;
}

.btn-reopen svg {
    flex-shrink: 0;
}

/* Reopen Job Modal */
.reopen-modal {
    max-width: 400px;
}

.reopen-modal .modal-description {
    font-size: 0.875rem;
    color: var(--gray-600);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.reopen-modal .current-info {
    font-size: 0.8rem;
    color: var(--gray-500);
    margin-bottom: 0.5rem;
}

.reopen-modal input[type="number"] {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    font-size: 1.25rem;
    font-weight: 600;
    text-align: center;
}

.reopen-modal input[type="number"]:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.1);
}

/* Applicant Previews (Owner view) */
.applicant-previews {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.applicant-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    cursor: pointer;
}

.applicant-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--gray-200);
}

.applicant-amount {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--primary);
    background: rgba(229, 57, 53, 0.1);
    padding: 0.125rem 0.375rem;
    border-radius: 4px;
}

.more-applicants {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gray-200);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gray-600);
}
/* Job Preferences */
.job-preferences {
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-200);
}

.job-preferences h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-800);
    margin: 0 0 1rem 0;
}

.preferences-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.preference-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.pref-label {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--gray-500);
}

.pref-value {
    font-size: 0.95rem;
    color: var(--gray-800);
}

.pref-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.pref-tag {
    display: inline-flex;
    padding: 0.375rem 0.75rem;
    background: var(--gray-100);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--gray-700);
}

/* Job Detail Actions */
.job-detail-actions {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.owner-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-large {
    width: 100%;
    padding: 1rem 2rem;
    font-size: 1rem;
}

/* Application Status */
.application-status {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.app-status-badge {
    display: inline-flex;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    width: fit-content;
}

.app-status-badge.status-pending {
    background: rgba(255, 152, 0, 0.1);
    color: #f57c00;
}

.app-status-badge.status-accepted {
    background: rgba(76, 175, 80, 0.1);
    color: #388e3c;
}

.app-status-badge.status-rejected {
    background: rgba(244, 67, 54, 0.1);
    color: #d32f2f;
}

.app-status-badge.status-countered {
    background: rgba(33, 150, 243, 0.1);
    color: #1976d2;
}

.app-status-badge.status-withdrawn {
    background: rgba(158, 158, 158, 0.1);
    color: #616161;
}

.proposed-amount,
.counter-amount {
    font-size: 0.9rem;
    color: var(--gray-600);
}

.counter-amount {
    color: var(--info);
    font-weight: 500;
}

/* Applications Section (Owner View) */
.applications-section {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}

.applications-section h2 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gray-900);
    margin: 0 0 1rem 0;
}

.applications-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.application-card {
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: 1rem;
    transition: box-shadow var(--transition-fast);
}

.application-card:hover {
    box-shadow: var(--shadow-sm);
}

.applicant-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    margin-bottom: 0.75rem;
}

.applicant-avatar {
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: visible;
}

.applicant-avatar.online {
    box-shadow: 0 0 0 2px #22c55e;
}

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

.applicant-avatar .avatar-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 600;
    color: var(--white);
}

.applicant-details {
    flex: 1;
}

.applicant-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--gray-900);
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.verified-badge-small {
    display: inline-flex;
    width: 16px;
    height: 16px;
    background: var(--info);
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    color: var(--white);
}

.applicant-gender {
    font-size: 0.8rem;
    color: var(--gray-500);
}

/* Applicant Gallery Preview */
.applicant-gallery-preview {
    display: flex;
    gap: 0.5rem;
    margin: 0.75rem 0;
    padding-left: 52px;
    flex-wrap: wrap;
}

.gallery-preview-item {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    border: 1px solid var(--gray-200);
}

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

.gallery-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-preview-more {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-md);
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-600);
    border: 1px solid var(--gray-200);
}

.application-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    padding-left: 52px;
}

.app-status {
    display: inline-flex;
    padding: 0.25rem 0.625rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    width: fit-content;
}

.app-status.status-pending {
    background: rgba(255, 152, 0, 0.1);
    color: #f57c00;
}

.app-status.status-accepted {
    background: rgba(76, 175, 80, 0.1);
    color: #388e3c;
}

.app-status.status-rejected {
    background: rgba(244, 67, 54, 0.1);
    color: #d32f2f;
}

.app-status.status-countered {
    background: rgba(33, 150, 243, 0.1);
    color: #1976d2;
}

.app-status.status-withdrawn {
    background: rgba(158, 158, 158, 0.1);
    color: #616161;
}

.app-proposed,
.app-counter {
    font-size: 0.85rem;
    color: var(--gray-600);
}

.app-counter {
    color: var(--info);
    font-weight: 500;
}

.app-message {
    font-size: 0.85rem;
    color: var(--gray-500);
    font-style: italic;
}

.application-actions {
    display: flex;
    gap: 0.5rem;
    padding-left: 52px;
}

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.8rem;
}

.btn-success {
    background: var(--success);
    color: var(--white);
    border: none;
}

.btn-success:hover {
    background: #43a047;
}

.btn-warning {
    background: var(--warning);
    color: var(--white);
    border: none;
}

.btn-warning:hover {
    background: #f57c00;
}

.btn-danger {
    background: var(--error);
    color: var(--white);
    border: none;
}

.btn-danger:hover {
    background: #d32f2f;
}

/* ============================================
   Application Card V2 - Modern Design
   ============================================ */

.applications-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 1rem;
}

.applications-icon {
    font-size: 1.25rem;
}

.applications-count {
    background: var(--primary);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-full);
    min-width: 1.5rem;
    text-align: center;
}

.application-card-v2 {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    overflow: hidden;
    transition: all var(--transition-fast);
}

.application-card-v2:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.application-card-v2.status-accepted {
    border-left: 4px solid var(--success);
}

.application-card-v2.status-rejected {
    border-left: 4px solid var(--error);
}

.application-card-v2.status-countered {
    border-left: 4px solid var(--info);
}

.application-card-v2.status-pending {
    border-left: 4px solid var(--warning);
}

.application-card-v2.status-withdrawn {
    border-left: 4px solid var(--gray-400);
}

.app-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-100);
}

.app-status-badge-v2 {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
}

.app-status-badge-v2.status-pending {
    background: rgba(255, 152, 0, 0.15);
    color: #e65100;
}

.app-status-badge-v2.status-accepted {
    background: rgba(76, 175, 80, 0.15);
    color: #2e7d32;
}

.app-status-badge-v2.status-rejected {
    background: rgba(244, 67, 54, 0.15);
    color: #c62828;
}

.app-status-badge-v2.status-countered {
    background: rgba(33, 150, 243, 0.15);
    color: #1565c0;
}

.app-status-badge-v2.status-withdrawn {
    background: rgba(158, 158, 158, 0.15);
    color: #424242;
}

.app-proposed-badge {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary);
    background: rgba(229, 57, 53, 0.1);
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius-md);
}

.app-card-body {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
}

.app-card-avatar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    flex-shrink: 0;
}

.app-card-avatar:hover .applicant-name-v2 {
    color: var(--primary);
}

.applicant-avatar-v2 {
    position: relative;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    flex-shrink: 0;
}

.applicant-avatar-v2.online {
    box-shadow: 0 0 0 3px #22c55e;
}

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

.avatar-placeholder-v2 {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--white);
}

.verified-badge-v2 {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    border: 2px solid var(--white);
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.3);
}

.verified-badge-v2 svg {
    width: 12px;
    height: 12px;
}

.applicant-info-v2 {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.applicant-name-v2 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-900);
    transition: color var(--transition-fast);
}

.applicant-meta-v2 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.gender-tag,
.age-tag {
    font-size: 0.75rem;
    color: var(--gray-500);
    background: var(--gray-100);
    padding: 0.125rem 0.5rem;
    border-radius: var(--radius-sm);
}

.gender-tag {
    color: var(--primary);
    background: rgba(229, 57, 53, 0.1);
}

.app-card-gallery {
    flex: 1;
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding: 0.25rem;
    margin: -0.25rem;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.app-card-gallery::-webkit-scrollbar {
    height: 4px;
}

.app-card-gallery::-webkit-scrollbar-thumb {
    background: var(--gray-300);
    border-radius: 2px;
}

.gallery-thumb {
    width: 72px;
    height: 72px;
    flex-shrink: 0;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all var(--transition-fast);
}

.gallery-thumb:hover {
    border-color: var(--primary);
    transform: scale(1.05);
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.app-card-message {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: var(--gray-50);
    border-top: 1px solid var(--gray-100);
}

.app-card-message .message-icon {
    flex-shrink: 0;
    font-size: 1rem;
}

.app-card-message p {
    margin: 0;
    font-size: 0.875rem;
    color: var(--gray-600);
    font-style: italic;
    line-height: 1.4;
}

.app-card-counter {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: rgba(33, 150, 243, 0.05);
    border-top: 1px solid rgba(33, 150, 243, 0.15);
}

.app-card-counter .counter-label {
    font-size: 0.8rem;
    color: var(--gray-600);
}

.app-card-counter .counter-value {
    font-size: 1rem;
    font-weight: 700;
    color: var(--info);
}

.app-card-counter .counter-msg {
    flex-basis: 100%;
    margin: 0.25rem 0 0;
    font-size: 0.85rem;
    color: var(--gray-600);
    font-style: italic;
}

.app-card-actions {
    display: flex;
    gap: 0.5rem;
    padding: 1rem;
    background: var(--white);
    border-top: 1px solid var(--gray-100);
}

.action-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    padding: 0.625rem 1rem;
    border: none;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.action-btn .action-icon {
    font-size: 1rem;
}

.action-btn.accept {
    background: var(--success);
    color: var(--white);
}

.action-btn.accept:hover {
    background: #43a047;
    transform: translateY(-1px);
}

.action-btn.counter {
    background: var(--warning);
    color: var(--white);
}

.action-btn.counter:hover {
    background: #f57c00;
    transform: translateY(-1px);
}

.action-btn.reject {
    background: var(--gray-200);
    color: var(--gray-700);
}

.action-btn.reject:hover {
    background: var(--error);
    color: var(--white);
    transform: translateY(-1px);
}

/* Mobile responsive for Application Card V2 */
@media (max-width: 640px) {
    .app-card-body {
        flex-direction: column;
        gap: 0.75rem;
    }

    .app-card-avatar {
        width: 100%;
    }

    .app-card-gallery {
        width: 100%;
    }

    .gallery-thumb {
        width: 64px;
        height: 64px;
    }

    .app-card-actions {
        flex-direction: column;
    }

    .action-btn {
        width: 100%;
    }

    .app-card-header {
        flex-direction: row;
        align-items: center;
        gap: 0.5rem;
    }
}

/* Apply Modal */
.apply-modal,
.respond-modal {
    width: 100%;
    max-width: 420px;
}

.apply-modal h2,
.respond-modal h2 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gray-900);
    margin: 0 0 1.5rem 0;
}

.budget-display {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    padding: 0.75rem;
    background: rgba(229, 57, 53, 0.05);
    border-radius: var(--radius-md);
    text-align: center;
}

.budget-display .budget-type {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-600);
}

/* Time Selection Section for LookingForWork Jobs */
.time-selection-section {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: 1rem;
    margin-bottom: 1rem;
}

.time-selection-section .section-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-800);
    margin: 0 0 0.25rem 0;
}

.time-selection-section .section-hint {
    font-size: 0.813rem;
    color: var(--gray-500);
    margin: 0 0 1rem 0;
}

.time-selection-section .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.time-selection-section select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    font-size: 1rem;
    background: white;
    cursor: pointer;
}

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

.availability-loading {
    text-align: center;
    padding: 1rem;
    color: var(--gray-500);
    font-size: 0.875rem;
}

.blocked-times-section {
    margin-bottom: 1rem;
}

.blocked-times-section .blocked-label {
    font-size: 0.813rem;
    font-weight: 600;
    color: var(--gray-600);
    margin-bottom: 0.5rem;
    display: block;
}

.blocked-times-list {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.blocked-time-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0.75rem;
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: var(--radius-sm);
    font-size: 0.813rem;
}

.blocked-time-item .blocked-time {
    font-weight: 500;
    color: var(--gray-700);
}

.blocked-time-item .blocked-reason {
    color: #dc2626;
    font-size: 0.75rem;
}

.no-slots-message {
    text-align: center;
    padding: 1rem;
    color: #dc2626;
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
}

.input-with-prefix {
    display: flex;
    align-items: center;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.input-with-prefix .prefix {
    padding: 0.75rem;
    background: var(--gray-100);
    color: var(--gray-600);
    font-weight: 500;
    border-right: 1px solid var(--gray-300);
}

.input-with-prefix input {
    flex: 1;
    border: none;
    padding: 0.75rem;
    font-size: 1rem;
    outline: none;
}

.form-hint {
    font-size: 0.75rem;
    color: var(--gray-500);
    margin-top: 0.375rem;
}

.modal-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
}

/* Application Modal */
.application-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 1rem;
}

.application-modal {
    background: var(--white);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
}

.application-modal-header {
    padding: 1.25rem;
    border-bottom: 1px solid var(--gray-100);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.application-modal-header h2 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gray-900);
    margin: 0;
}

.modal-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    color: var(--gray-500);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.modal-close:hover {
    background: var(--gray-100);
    color: var(--gray-700);
}

.application-modal-body {
    padding: 1.25rem;
}

.application-modal-footer {
    padding: 1.25rem;
    border-top: 1px solid var(--gray-100);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
}

/* Job Create Page - Compact */
.job-create-page {
    max-width: 600px;
    margin: 0 auto;
    padding: 1rem;
}

.job-create-page .page-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.job-create-page .page-header h1 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-900);
    margin: 0;
}

/* Modern Job Form - Compact */
.job-form {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.form-section {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--gray-100);
}

.form-section:last-of-type {
    border-bottom: none;
}

.form-section h2 {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--gray-900);
    margin: 0 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary);
    width: fit-content;
}

.form-section h2 .section-icon {
    font-size: 1rem;
}

.form-group {
    margin-bottom: 0.875rem;
}

.form-group:last-child {
    margin-bottom: 0;
}

.form-group label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 0.375rem;
    letter-spacing: 0.01em;
}

.form-group label.required::after {
    content: " *";
    color: var(--error);
}

.form-group input[type="text"],
.form-group input[type="url"],
.form-group input[type="number"],
.form-group input[type="date"],
.form-group input[type="time"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.625rem 0.75rem;
    font-size: 0.875rem;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-md);
    background: var(--gray-50);
    transition: all var(--transition-fast);
    color: var(--gray-800);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--gray-400);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none !important;
    outline-offset: 0;
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(229, 57, 53, 0.1);
}

.form-group select:focus-visible {
    outline: none !important;
}

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

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.form-row-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.job-form .input-with-prefix {
    display: flex;
    align-items: stretch;
}

.job-form .input-with-prefix .prefix {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.75rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: 1.5px solid var(--primary);
    border-right: none;
    border-radius: var(--radius-md) 0 0 var(--radius-md);
    font-size: 0.875rem;
    font-weight: 600;
    color: white;
    min-width: 40px;
}

.job-form .input-with-prefix input {
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    border-left: none;
}

.job-form .input-with-prefix input:focus {
    border-left: none;
}

/* Job Type Selector */
.job-type-section {
    background: linear-gradient(135deg, var(--primary-light), rgba(229, 57, 53, 0.05)) !important;
}

.job-type-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.job-type-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.25rem 1rem;
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-fast);
    text-align: center;
}

.job-type-option:hover {
    border-color: var(--primary-light);
    background: var(--primary-light);
}

.job-type-option.selected {
    border-color: var(--primary);
    background: linear-gradient(135deg, var(--primary-light), rgba(229, 57, 53, 0.1));
    box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.15);
}

.job-type-option input[type="radio"] {
    display: none;
}

.job-type-icon {
    font-size: 2rem;
}

.job-type-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--gray-900);
}

.job-type-option.selected .job-type-title {
    color: var(--primary);
}

.job-type-desc {
    font-size: 0.75rem;
    color: var(--gray-500);
    line-height: 1.3;
}

/* Section hint text */
.section-hint {
    font-size: 0.8125rem;
    color: var(--gray-500);
    margin: -0.5rem 0 1rem 0;
    font-style: italic;
}

/* Job code auto-generate display */
.job-code-auto {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, var(--gray-50), var(--gray-100));
    border: 1.5px dashed var(--gray-300);
    border-radius: var(--radius-md);
    color: var(--gray-600);
    font-size: 0.875rem;
}

.job-code-icon {
    font-size: 1.25rem;
}

.job-code-text {
    font-style: italic;
}

/* Read-only input style */
.readonly-input {
    background: var(--gray-100) !important;
    color: var(--gray-600) !important;
    cursor: not-allowed;
    font-family: 'Courier New', monospace;
    font-weight: 600;
    letter-spacing: 0.05em;
}

/* Duration input group - Compact */
.duration-input-group {
    display: flex;
    align-items: stretch;
}

.duration-input-group input {
    flex: 1;
    border-radius: var(--radius-md) 0 0 var(--radius-md);
    border-right: none;
    max-width: 60px;
    text-align: center;
    font-size: 0.9375rem;
    font-weight: 600;
}

.duration-input-group input:focus {
    border-right: none;
}

.duration-suffix {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.75rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: 1.5px solid var(--primary);
    border-left: none;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    font-size: 0.8125rem;
    font-weight: 600;
    color: white;
    min-width: 40px;
}

/* Multi-day toggle with switch */
.multi-day-toggle {
    margin-bottom: 0.75rem !important;
}

.switch-label {
    display: inline-flex !important;
    align-items: center !important;
    cursor: pointer !important;
    user-select: none !important;
    gap: 10px !important;
}

.switch-label input {
    position: absolute !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.switch-slider {
    position: relative !important;
    display: inline-block !important;
    width: 48px !important;
    min-width: 48px !important;
    height: 26px !important;
    background-color: #d1d5db !important;
    border-radius: 26px !important;
    transition: background-color 0.3s ease !important;
    flex-shrink: 0 !important;
}

.switch-slider::before {
    content: "" !important;
    position: absolute !important;
    width: 20px !important;
    height: 20px !important;
    left: 3px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    background-color: white !important;
    border-radius: 50% !important;
    transition: left 0.3s ease !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25) !important;
}

/* Active state using class */
.switch-label.active .switch-slider {
    background-color: #E53935 !important;
}

.switch-label.active .switch-slider::before {
    left: 25px !important;
}

.switch-label:hover .switch-slider {
    background-color: #b0b5bd !important;
}

.switch-label.active:hover .switch-slider {
    background-color: #C62828 !important;
}

.switch-text {
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    color: #374151 !important;
}

/* Modern checkbox/toggle grid - Compact */
.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.375rem;
}

.checkbox-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.125rem;
    padding: 0.375rem 0.25rem;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.65rem;
    font-weight: 500;
    color: var(--gray-600);
    transition: all var(--transition-fast);
    text-align: center;
    min-height: 42px;
}

.checkbox-item .checkbox-icon {
    font-size: 0.9375rem;
    line-height: 1;
}

.checkbox-item:hover {
    border-color: var(--gray-300);
    background: var(--gray-50);
}

.checkbox-item.selected {
    background: rgba(229, 57, 53, 0.08);
    border-color: var(--primary);
    color: var(--primary);
    font-weight: 600;
}

.checkbox-item input {
    display: none;
}

/* Checkbox item with flag image */
.checkbox-item .checkbox-flag {
    width: 18px;
    height: 13px;
    border-radius: 2px;
    object-fit: cover;
}

/* Text-only checkbox item (no icon) - like districts */
.checkbox-item.text-only {
    min-height: auto;
    padding: 0.5rem 0.75rem;
    flex-direction: row;
}

/* Budget Type Toggle - Compact */
.budget-type-toggle {
    display: flex;
    background: var(--gray-100);
    border-radius: var(--radius-md);
    padding: 3px;
    gap: 3px;
}

.budget-type-toggle label {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--gray-600);
    transition: all var(--transition-fast);
    margin: 0;
}

.budget-type-toggle input {
    display: none;
}

.budget-type-toggle label:has(input:checked) {
    background: var(--white);
    color: var(--primary);
    font-weight: 600;
    box-shadow: var(--shadow-sm);
}

.budget-type-toggle label:hover:not(:has(input:checked)) {
    color: var(--gray-800);
}

/* Age Range Slider - Compact */
.age-range-slider {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.age-range-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.125rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--gray-800);
    padding: 0.25rem 0.5rem;
    background: var(--gray-50);
    border-radius: var(--radius-sm);
}

.age-range-display .age-value {
    color: var(--primary);
    font-size: 0.875rem;
    min-width: 2ch;
    text-align: center;
}

.age-range-display .age-separator {
    color: var(--gray-500);
}

.age-range-display .age-unit {
    font-size: 0.6875rem;
    color: var(--gray-500);
    font-weight: 500;
}

.range-slider-container {
    position: relative;
    height: 32px;
    padding: 0 6px;
}

.range-slider {
    position: absolute;
    width: 100%;
    height: 8px;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    pointer-events: none;
    top: 50%;
    transform: translateY(-50%);
    left: 0;
}

.range-slider-min {
    z-index: 2;
}

.range-slider-max {
    z-index: 1;
}

/* Slider track */
.range-slider::-webkit-slider-runnable-track {
    height: 8px;
    background: var(--gray-200);
    border-radius: 4px;
}

.range-slider::-moz-range-track {
    height: 8px;
    background: var(--gray-200);
    border-radius: 4px;
}

/* Slider thumb */
.range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: var(--primary);
    border-radius: 50%;
    cursor: pointer;
    pointer-events: auto;
    margin-top: -6px;
    box-shadow: 0 2px 6px rgba(229, 57, 53, 0.3);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.range-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: var(--primary);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    pointer-events: auto;
    box-shadow: 0 2px 6px rgba(229, 57, 53, 0.3);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.range-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(229, 57, 53, 0.4);
}

.range-slider::-moz-range-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(229, 57, 53, 0.4);
}

.range-slider::-webkit-slider-thumb:active {
    transform: scale(0.95);
}

.range-slider::-moz-range-thumb:active {
    transform: scale(0.95);
}

/* Form Actions - Sticky Footer - Compact */
.form-actions {
    position: sticky;
    bottom: 0;
    padding: 1rem 1.5rem;
    background: var(--white);
    border-top: 1px solid var(--gray-100);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.04);
}

.form-actions .btn {
    min-width: 100px;
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
}

/* Form helper text */
.form-helper {
    font-size: 0.75rem;
    color: var(--gray-500);
    margin-top: 0.375rem;
}

/* Date/Time inputs modern style */
.form-group input[type="date"],
.form-group input[type="time"] {
    cursor: pointer;
}

.form-group input[type="date"]::-webkit-calendar-picker-indicator,
.form-group input[type="time"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    padding: 0.25rem;
    border-radius: var(--radius-sm);
    transition: background var(--transition-fast);
}

.form-group input[type="date"]::-webkit-calendar-picker-indicator:hover,
.form-group input[type="time"]::-webkit-calendar-picker-indicator:hover {
    background: var(--gray-200);
}

/* Select with custom arrow */
.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23757575' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    padding-right: 2.5rem;
}

.form-group select:focus {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23E53935' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
}

/* My Jobs Page */
/* My Jobs Page - Modern Design */
.my-jobs-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 1.5rem;
    min-height: calc(100vh - 200px);
}

.my-jobs-page .page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.08) 0%, rgba(168, 85, 247, 0.02) 100%);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(168, 85, 247, 0.1);
    flex-wrap: wrap;
    gap: 1rem;
}

.my-jobs-page .page-header h1 {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--gray-900);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.my-jobs-page .page-header h1::before {
    content: "📋";
    font-size: 1.5rem;
}

.my-jobs-page .page-header .btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, #c62828 100%);
    box-shadow: 0 4px 14px rgba(229, 57, 53, 0.3);
    border: none;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-lg);
}

.my-jobs-section {
    background: transparent;
    border: none;
    overflow: visible;
}

.my-jobs-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* My Job Detail Card - Modern Design */
.my-job-detail-card {
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.my-job-detail-card:hover {
    border-color: transparent;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.job-detail-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.job-detail-title {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0;
    letter-spacing: -0.01em;
}

.job-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.875rem;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    white-space: nowrap;
}

.job-status-pill.status-open {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.15) 0%, rgba(34, 197, 94, 0.08) 100%);
    color: #16a34a;
}

.job-status-pill.status-open::before {
    content: "";
    width: 6px;
    height: 6px;
    background: #22c55e;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.job-status-pill.status-filled {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(59, 130, 246, 0.08) 100%);
    color: #2563eb;
}

.job-status-pill.status-cancelled {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(239, 68, 68, 0.08) 100%);
    color: #dc2626;
}

.job-status-pill.status-completed {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.15) 0%, rgba(168, 85, 247, 0.08) 100%);
    color: #9333ea;
}

.job-status-pill.status-expired {
    background: linear-gradient(135deg, rgba(156, 163, 175, 0.15) 0%, rgba(156, 163, 175, 0.08) 100%);
    color: #6b7280;
}

.job-detail-description {
    color: var(--gray-600);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0 0 1.25rem 0;
}

/* Info Grid */
.job-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1.25rem;
}

/* Compact Grid - single column layout for My Jobs/My Applications */
.job-info-grid.compact,
.app-info-grid.compact {
    grid-template-columns: 1fr;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.job-info-box.full-width,
.app-info-box.full-width {
    grid-column: 1 / -1;
}

/* Combined value styles for My Jobs/My Applications */
.info-box-value.combined-value {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.375rem;
}

.combined-value .location-text {
    font-weight: 600;
    color: var(--gray-800);
}

.combined-value .meeting-text {
    color: var(--gray-600);
    font-weight: 500;
}

.combined-value .value-separator {
    color: var(--gray-400);
    font-weight: 500;
}

.combined-value .budget-inline {
    font-weight: 700;
    color: var(--primary);
}

.combined-value .interested-inline {
    font-weight: 600;
    color: var(--gray-600);
}

.job-info-box {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-100);
}

.job-info-box.budget-box {
    background: linear-gradient(135deg, rgba(229, 57, 53, 0.06) 0%, rgba(255, 107, 107, 0.04) 100%);
    border-color: rgba(229, 57, 53, 0.1);
}

.info-box-icon {
    font-size: 1.25rem;
    line-height: 1;
    flex-shrink: 0;
}

.info-box-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
}

.info-box-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-box-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--gray-900);
}

.info-box-value.budget-value {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary);
}

.info-box-value .hourly-rate {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--gray-500);
}

.interested-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.interested-count {
    font-weight: 700;
}

.btn-reopen-small {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.625rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #16a34a;
    background: transparent;
    border: 1px solid #22c55e;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-reopen-small:hover {
    background: rgba(34, 197, 94, 0.1);
}

/* Preferences Section */
.job-preferences-section {
    padding-top: 1.25rem;
    border-top: 1px solid var(--gray-100);
    margin-bottom: 1.25rem;
}

.preferences-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0 0 0.75rem 0;
}

.preference-row {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.preference-row:last-child {
    margin-bottom: 0;
}

.preference-label {
    font-size: 0.8rem;
    color: var(--gray-500);
}

.preference-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
}

.preference-tag {
    display: inline-flex;
    padding: 0.375rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 500;
    background: var(--gray-100);
    color: var(--gray-700);
    border-radius: var(--radius-md);
}

/* Job Detail Actions */
.job-detail-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    padding-top: 1.25rem;
    border-top: 1px solid var(--gray-100);
}

.job-detail-actions .btn {
    padding: 0.625rem 1.25rem;
    font-weight: 600;
    border-radius: var(--radius-lg);
}

.job-detail-actions .btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, #c62828 100%);
    border: none;
    color: white;
    box-shadow: 0 4px 12px rgba(229, 57, 53, 0.25);
}

.job-detail-actions .btn-primary:hover {
    box-shadow: 0 6px 16px rgba(229, 57, 53, 0.35);
    transform: translateY(-1px);
}

.job-detail-actions .btn-secondary {
    background: var(--gray-100);
    border: 1px solid var(--gray-200);
    color: var(--gray-700);
}

.job-detail-actions .btn-secondary:hover {
    background: var(--gray-200);
}

.job-detail-actions .btn-outline-danger {
    background: transparent;
    border: 1px solid var(--gray-300);
    color: var(--gray-600);
}

.job-detail-actions .btn-outline-danger:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: #ef4444;
    color: #dc2626;
}

.app-count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 0.375rem;
    font-size: 0.7rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.25);
    color: var(--white);
    border-radius: var(--radius-full);
    margin-left: 0.5rem;
}

/* Legacy styles (keep for backward compatibility) */
.my-job-card-wrapper {
    border-bottom: 1px solid var(--gray-100);
    padding: 1rem 1.25rem;
}

.my-job-card-wrapper:last-child {
    border-bottom: none;
}

.owner-actions-bar {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
    flex-wrap: wrap;
}

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.8rem;
}

/* My Applications Page - Modern Design */
.my-applications-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 1.5rem;
    min-height: calc(100vh - 200px);
}

.my-applications-page .page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.08) 0%, rgba(59, 130, 246, 0.02) 100%);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(59, 130, 246, 0.1);
}

.my-applications-page .page-header h1 {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--gray-900);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.my-applications-page .page-header h1::before {
    content: "📝";
    font-size: 1.5rem;
}

.applications-section {
    background: transparent;
    border: none;
    border-radius: 0;
    overflow: visible;
}

.applications-list,
.my-applications-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* My Application Detail Card - Modern Design (like My Jobs) */
.my-application-detail-card {
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.my-application-detail-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    border-color: transparent;
}

/* Application Header Row */
.app-detail-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.app-detail-title {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0;
    cursor: pointer;
    transition: color 0.2s ease;
}

.app-detail-title:hover {
    color: var(--primary);
}

/* Application Status Pill */
.app-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.app-status-pill.status-Pending {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.2) 0%, rgba(245, 158, 11, 0.1) 100%);
    color: #b45309;
}

.app-status-pill.status-Pending::before {
    content: "⏳";
}

.app-status-pill.status-Accepted {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.2) 0%, rgba(22, 163, 74, 0.1) 100%);
    color: #15803d;
}

.app-status-pill.status-Accepted::before {
    content: "✅";
}

.app-status-pill.status-Rejected {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2) 0%, rgba(220, 38, 38, 0.1) 100%);
    color: #b91c1c;
}

.app-status-pill.status-Rejected::before {
    content: "❌";
}

.app-status-pill.status-Countered {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(37, 99, 235, 0.1) 100%);
    color: #1d4ed8;
}

.app-status-pill.status-Countered::before {
    content: "💬";
}

.app-status-pill.status-Withdrawn {
    background: linear-gradient(135deg, rgba(156, 163, 175, 0.2) 0%, rgba(107, 114, 128, 0.1) 100%);
    color: #4b5563;
}

.app-status-pill.status-Withdrawn::before {
    content: "↩️";
}

/* Application Owner Section */
.app-owner-section {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 1rem;
    background: linear-gradient(135deg, var(--gray-50) 0%, rgba(249, 250, 251, 0.5) 100%);
    border-radius: var(--radius-lg);
    margin-bottom: 1.25rem;
    border: 1px solid var(--gray-100);
}

.app-owner-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
    flex-shrink: 0;
    border: 2px solid var(--white);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
}

.app-owner-avatar:hover {
    transform: scale(1.05);
}

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

.app-owner-avatar .avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary) 0%, #c62828 100%);
    color: var(--white);
    font-weight: 600;
    font-size: 1.125rem;
}

.app-owner-info {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.app-owner-name {
    font-weight: 600;
    color: var(--gray-900);
    font-size: 1rem;
}

.app-owner-label {
    font-size: 0.75rem;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Application Info Grid */
.app-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.app-info-box {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-100);
    transition: all 0.2s ease;
}

.app-info-box:hover {
    background: var(--white);
    border-color: var(--gray-200);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.app-info-box.budget-box {
    background: linear-gradient(135deg, rgba(229, 57, 53, 0.06) 0%, rgba(255, 107, 107, 0.04) 100%);
    border-color: rgba(229, 57, 53, 0.15);
}

/* Application Amounts Section */
.app-amounts-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 1.25rem;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.04) 0%, rgba(139, 92, 246, 0.02) 100%);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(168, 85, 247, 0.1);
}

.app-amount-box {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-100);
}

.app-amount-box.proposal-box {
    border-left: 3px solid #8b5cf6;
}

.app-amount-box.counter-box {
    border-left: 3px solid #3b82f6;
}

.app-amount-box.final-box {
    border-left: 3px solid #22c55e;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.05) 0%, rgba(34, 197, 94, 0.02) 100%);
}

.proposal-value {
    color: #7c3aed;
    font-weight: 700;
    font-size: 1.125rem;
}

.counter-value {
    color: #2563eb;
    font-weight: 700;
    font-size: 1.125rem;
}

.final-value {
    color: #16a34a;
    font-weight: 700;
    font-size: 1.25rem;
}

/* Counter Message */
.app-counter-message {
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-left: 4px solid #f59e0b;
    border-radius: var(--radius-lg);
    margin-bottom: 1.25rem;
}

.counter-message-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.counter-message-icon {
    font-size: 1rem;
}

.counter-message-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #92400e;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.app-counter-message .counter-message-text {
    margin: 0;
    color: var(--gray-800);
    line-height: 1.5;
    font-size: 0.9rem;
}

/* Application Action Buttons */
.app-detail-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    padding-top: 1.25rem;
    border-top: 1px solid var(--gray-100);
}

.app-detail-actions .btn {
    padding: 0.625rem 1.25rem;
    font-weight: 600;
    border-radius: var(--radius-lg);
    transition: all 0.2s ease;
}

.app-detail-actions .btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, #c62828 100%);
    border: none;
    color: white;
    box-shadow: 0 4px 12px rgba(229, 57, 53, 0.25);
}

.app-detail-actions .btn-primary:hover {
    box-shadow: 0 6px 16px rgba(229, 57, 53, 0.35);
    transform: translateY(-1px);
}

.app-detail-actions .btn-success {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    border: none;
    color: white;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

.app-detail-actions .btn-success:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(34, 197, 94, 0.4);
}

.app-detail-actions .btn-outline-danger {
    background: transparent;
    border: 1px solid var(--gray-300);
    color: var(--gray-600);
}

.app-detail-actions .btn-outline-danger:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: #ef4444;
    color: #dc2626;
}

/* Application Card - Modern Design (legacy) */
.application-card {
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.application-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--gray-200);
    transition: background 0.3s ease;
}

.application-card:hover {
    border-color: transparent;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.application-card:last-child {
    border-bottom: 1px solid var(--gray-100);
}

.application-card:last-child:hover {
    border-color: transparent;
}

/* Status colors for left border */
.application-card.status-Pending::before,
.application-card:has(.app-status-badge.status-Pending)::before {
    background: linear-gradient(180deg, #fbbf24 0%, #f59e0b 100%);
}

.application-card.status-Accepted::before,
.application-card:has(.app-status-badge.status-Accepted)::before {
    background: linear-gradient(180deg, #22c55e 0%, #16a34a 100%);
}

.application-card.status-Countered::before,
.application-card:has(.app-status-badge.status-Countered)::before {
    background: linear-gradient(180deg, #3b82f6 0%, #2563eb 100%);
}

.application-card.status-Rejected::before,
.application-card:has(.app-status-badge.status-Rejected)::before {
    background: linear-gradient(180deg, #ef4444 0%, #dc2626 100%);
}

.application-card.status-Withdrawn::before,
.application-card:has(.app-status-badge.status-Withdrawn)::before {
    background: linear-gradient(180deg, #9ca3af 0%, #6b7280 100%);
}

.app-job-info {
    cursor: pointer;
    padding: 1rem;
    margin: -1rem -1rem 1rem -1rem;
    margin-left: 0.5rem;
    border-radius: var(--radius-lg);
    transition: all 0.2s ease;
    background: linear-gradient(135deg, var(--gray-50) 0%, transparent 100%);
}

.app-job-info:hover {
    background: linear-gradient(135deg, var(--gray-100) 0%, var(--gray-50) 100%);
}

.app-job-info .job-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0 0 0.75rem 0;
    letter-spacing: -0.01em;
}

.app-job-info .job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--gray-600);
    margin-bottom: 0.75rem;
}

.app-job-info .job-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.app-job-info .job-budget {
    font-weight: 600;
    color: var(--primary);
}

.job-owner-row {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--gray-100);
}

.owner-avatar-small {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--white);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

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

.avatar-placeholder-small {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
}

.owner-name {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--gray-700);
}

.app-details {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    margin-bottom: 1rem;
    padding: 1rem;
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    margin-left: 0.5rem;
}

.app-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.875rem;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.app-status-badge.status-Pending {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.2) 0%, rgba(251, 191, 36, 0.1) 100%);
    color: #b45309;
    box-shadow: 0 2px 8px rgba(251, 191, 36, 0.2);
}

.app-status-badge.status-Pending::before {
    content: "⏳";
    font-size: 0.7rem;
}

.app-status-badge.status-Accepted {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.2) 0%, rgba(34, 197, 94, 0.1) 100%);
    color: #15803d;
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.2);
}

.app-status-badge.status-Accepted::before {
    content: "✅";
    font-size: 0.7rem;
}

.app-status-badge.status-Rejected {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2) 0%, rgba(239, 68, 68, 0.1) 100%);
    color: #b91c1c;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.2);
}

.app-status-badge.status-Rejected::before {
    content: "❌";
    font-size: 0.7rem;
}

.app-status-badge.status-Countered {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(59, 130, 246, 0.1) 100%);
    color: #1d4ed8;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
}

.app-status-badge.status-Countered::before {
    content: "💬";
    font-size: 0.7rem;
}

.app-status-badge.status-Withdrawn {
    background: linear-gradient(135deg, rgba(156, 163, 175, 0.2) 0%, rgba(156, 163, 175, 0.1) 100%);
    color: #4b5563;
}

.app-status-badge.status-Withdrawn::before {
    content: "↩️";
    font-size: 0.7rem;
}

.app-amount,
.app-counter-offer,
.final-amount {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    padding: 0.375rem 0.75rem;
    background: var(--white);
    border-radius: var(--radius-md);
    border: 1px solid var(--gray-200);
}

.amount-label {
    color: var(--gray-500);
    font-weight: 500;
}

.amount-value {
    font-weight: 700;
    color: var(--gray-800);
}

.amount-value.counter {
    color: #2563eb;
}

.amount-value.final {
    color: #16a34a;
    font-size: 1rem;
}

.final-amount {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1) 0%, rgba(34, 197, 94, 0.05) 100%);
    border-color: rgba(34, 197, 94, 0.3);
}

.counter-message {
    width: 100%;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-left: 4px solid #f59e0b;
    border-radius: var(--radius-lg);
    font-size: 0.875rem;
    margin-top: 0.75rem;
    margin-left: 0.5rem;
}

.counter-message .message-label {
    color: #92400e;
    margin-bottom: 0.5rem;
    display: block;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.counter-message p {
    margin: 0;
    color: var(--gray-800);
    line-height: 1.5;
}

/* Counter message display for applicants */
.counter-message-display {
    width: 100%;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
    border-left: 3px solid #f97316;
    border-radius: var(--radius-md);
    margin-top: 0.75rem;
}

.counter-message-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #ea580c;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.counter-message-text {
    margin: 0.5rem 0 0 0;
    color: var(--gray-700);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Applicant counter actions */
.applicant-counter-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.applicant-counter-actions .btn {
    flex: 1;
    min-width: 120px;
    padding: 0.75rem 1.5rem;
}

.app-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-left: 0.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-100);
}

.app-actions .btn {
    padding: 0.625rem 1.25rem;
    font-weight: 600;
    border-radius: var(--radius-lg);
    transition: all 0.2s ease;
}

.app-actions .btn-success {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    border: none;
    color: white;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

.app-actions .btn-success:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(34, 197, 94, 0.4);
}

.app-actions .btn-danger {
    background: transparent;
    border: 1px solid var(--gray-300);
    color: var(--gray-600);
}

.app-actions .btn-danger:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: #ef4444;
    color: #dc2626;
}

/* Empty States */
.no-applications {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(180deg, var(--gray-50) 0%, transparent 100%);
    border-radius: var(--radius-xl);
}

.no-apps-icon {
    font-size: 4rem;
    margin-bottom: 1.25rem;
    opacity: 0.8;
}

.no-applications p {
    font-size: 1.1rem;
    color: var(--gray-600);
    margin-bottom: 1.5rem;
}

.no-applications .btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, #c62828 100%);
    box-shadow: 0 4px 14px rgba(229, 57, 53, 0.3);
    border: none;
    padding: 0.75rem 2rem;
    font-weight: 600;
}

/* Applications in Job Detail */
.job-applications-section {
    margin-top: 1.5rem;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.job-applications-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--gray-100);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.job-applications-header h2 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-800);
    margin: 0;
}

.applicant-card {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--gray-100);
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

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

.applicant-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    cursor: pointer;
}

.applicant-avatar-placeholder {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gray-500);
    cursor: pointer;
}

.applicant-info {
    flex: 1;
}

.applicant-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gray-900);
    cursor: pointer;
}

.applicant-name:hover {
    color: var(--primary);
}

.applicant-meta {
    font-size: 0.8rem;
    color: var(--gray-500);
    margin-top: 0.25rem;
}

.applicant-proposal {
    margin-top: 0.5rem;
    font-size: 0.85rem;
}

.applicant-message {
    margin-top: 0.375rem;
    padding: 0.5rem;
    background: var(--gray-50);
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    color: var(--gray-600);
}

.applicant-actions {
    display: flex;
    gap: 0.375rem;
    flex-wrap: wrap;
}

.btn-success {
    background: #16a34a;
    border-color: #16a34a;
    color: var(--white);
}

.btn-success:hover {
    background: #15803d;
    border-color: #15803d;
}

/* Counter Offer Form */
.counter-offer-form {
    margin-top: 0.75rem;
    padding: 1rem;
    background: var(--gray-50);
    border-radius: var(--radius-md);
}

.counter-offer-form h4 {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-800);
    margin: 0 0 0.75rem 0;
}

.counter-form-row {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.counter-form-row input,
.counter-form-row textarea {
    flex: 1;
    padding: 0.5rem 0.625rem;
    font-size: 0.85rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
}

.counter-form-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: space-between;
    align-items: center;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .job-board-page,
    .job-detail-page,
    .job-create-page,
    .my-jobs-page,
    .my-applications-page {
        padding: 0.75rem;
    }

    /* Job Board Mobile */
    .job-board-header {
        padding: 1rem;
        margin-bottom: 1rem;
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }

    .job-board-header h1 {
        font-size: 1.375rem;
        justify-content: center;
    }

    .job-board-header h1::before {
        font-size: 1.25rem;
    }

    .job-board-header .btn-primary {
        width: 100%;
        justify-content: center;
        padding: 0.875rem 1.5rem;
    }

    .job-board-filters {
        padding: 0.75rem;
        gap: 0.75rem;
    }

    .filter-row-top {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }

    .filter-tabs {
        width: 100%;
        justify-content: center;
    }

    .filter-tab {
        flex: 1;
        justify-content: center;
        padding: 0.625rem 0.75rem;
        font-size: 0.8rem;
    }

    .filter-actions {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }

    .btn-filter-toggle {
        width: 100%;
        justify-content: center;
    }

    .job-quick-links {
        width: 100%;
        justify-content: center;
    }

    .quick-link {
        flex: 1;
        justify-content: center;
        text-align: center;
    }

    .advanced-filters {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .filter-group {
        width: 100%;
    }

    .filter-select {
        width: 100%;
        min-width: unset;
        padding: 0.625rem 0.75rem;
        font-size: 0.875rem;
    }

    .filter-tabs-small {
        width: 100%;
    }

    .filter-tabs-small .filter-tab {
        flex: 1;
        padding: 0.625rem 0.5rem;
        font-size: 0.8125rem;
    }

    .filter-budget-inputs {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .filter-input {
        flex: 1;
        width: 0;
        min-width: 0;
        padding: 0.625rem 0.75rem;
        font-size: 0.875rem;
        box-sizing: border-box;
    }

    .btn-clear-filters {
        width: 100%;
        justify-content: center;
        margin-left: 0;
        padding: 0.625rem 1rem;
        font-size: 0.8125rem;
    }

    /* Job Card Mobile */
    .job-card {
        padding: 1rem;
    }

    .job-owner-avatar {
        width: 40px;
        height: 40px;
    }

    .job-card-content .job-title {
        font-size: 1rem;
    }

    .job-budget {
        padding: 0.625rem;
    }

    .job-budget .budget-amount {
        font-size: 1.125rem;
    }

    .job-card-footer {
        flex-direction: column;
        gap: 0.75rem;
        align-items: stretch;
    }

    .job-status-row {
        justify-content: flex-start;
    }

    .job-actions {
        width: 100%;
    }

    .job-btn {
        width: 100%;
        justify-content: center;
        padding: 0.625rem 1rem;
    }

    .jobs-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    /* Job Detail Mobile */
    .job-detail-header {
        flex-wrap: wrap;
        gap: 0.75rem;
        padding: 1rem;
    }

    .job-owner-section {
        flex: 1;
        min-width: 0;
        gap: 0.75rem;
    }

    .job-owner-avatar {
        width: 48px;
        height: 48px;
        flex-shrink: 0;
    }

    .job-owner-avatar .avatar-placeholder {
        font-size: 1rem;
    }

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

    .job-owner-info .job-owner-name {
        font-size: 0.95rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .job-owner-meta {
        gap: 0.375rem;
    }

    .job-owner-gender {
        font-size: 0.7rem;
        padding: 0.125rem 0.375rem;
    }

    .job-owner-age {
        font-size: 0.7rem;
    }

    .job-detail-header > .job-status-badge {
        flex-shrink: 0;
        align-self: center;
    }

    .job-info-grid {
        grid-template-columns: 1fr;
    }

    .job-detail-content .job-title {
        font-size: 1.25rem;
    }

    .application-details,
    .application-actions {
        padding-left: 0;
    }

    .job-detail-actions {
        flex-direction: column;
    }

    .job-detail-actions .btn {
        width: 100%;
    }

    .applicant-card {
        flex-direction: column;
        align-items: stretch;
    }

    .applicant-card .applicant-avatar,
    .applicant-card .applicant-avatar-placeholder {
        align-self: flex-start;
    }

    .applicant-actions {
        margin-top: 0.75rem;
    }

    /* My Applications Mobile */
    .my-applications-page .page-header {
        padding: 1rem;
        margin-bottom: 1rem;
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }

    .my-applications-page .page-header h1 {
        font-size: 1.375rem;
        justify-content: center;
    }

    .my-applications-page .page-header h1::before {
        font-size: 1.25rem;
    }

    .application-card {
        padding: 1rem;
    }

    .app-job-info {
        padding: 0.75rem;
        margin: -0.75rem -0.75rem 0.75rem -0.75rem;
        margin-left: 0.25rem;
    }

    .app-job-info .job-title {
        font-size: 1rem;
    }

    .app-job-info .job-meta {
        gap: 0.5rem;
        font-size: 0.8rem;
    }

    .app-details {
        padding: 0.75rem;
        margin-left: 0.25rem;
        flex-direction: column;
        align-items: flex-start;
    }

    .app-status-badge {
        padding: 0.375rem 0.75rem;
        font-size: 0.7rem;
    }

    .app-amount,
    .app-counter-offer,
    .final-amount {
        width: 100%;
        justify-content: space-between;
    }

    .counter-message {
        margin-left: 0.25rem;
        padding: 0.75rem 1rem;
    }

    .app-actions {
        margin-left: 0.25rem;
        flex-direction: column;
    }

    .app-actions .btn {
        width: 100%;
        justify-content: center;
    }

    /* My Applications Detail Card Mobile */
    .my-application-detail-card {
        padding: 1rem;
    }

    .app-detail-header-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .app-detail-title {
        font-size: 1.125rem;
    }

    .app-status-pill {
        align-self: flex-start;
    }

    .app-owner-section {
        padding: 0.875rem;
    }

    .app-owner-avatar {
        width: 40px;
        height: 40px;
    }

    .app-owner-name {
        font-size: 0.9rem;
    }

    .app-info-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }

    .app-info-box {
        padding: 0.625rem;
        gap: 0.5rem;
    }

    .app-info-box .info-box-icon {
        font-size: 1rem;
    }

    .app-info-box .info-box-label {
        font-size: 0.6rem;
    }

    .app-info-box .info-box-value {
        font-size: 0.75rem;
    }

    .app-amounts-section {
        grid-template-columns: repeat(2, 1fr);
        padding: 0.625rem;
        gap: 0.5rem;
    }

    .app-amount-box {
        padding: 0.625rem;
    }

    .proposal-value,
    .counter-value {
        font-size: 0.85rem;
    }

    .final-value {
        font-size: 0.95rem;
    }

    .app-counter-message {
        padding: 0.875rem 1rem;
    }

    .app-detail-actions {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .app-detail-actions .btn {
        flex: 1;
        min-width: 0;
        justify-content: center;
        text-align: center;
        padding: 0.625rem 0.75rem;
        font-size: 0.8rem;
    }

    .app-detail-actions .btn-chat {
        flex: 0 0 auto;
        width: 44px;
        height: 44px;
        padding: 0;
        border-radius: 50%;
    }

    .app-detail-actions .btn-chat .chat-btn-text {
        display: none;
    }

    .app-detail-actions .btn-chat svg {
        width: 20px;
        height: 20px;
    }

    /* My Jobs Page Mobile */
    .my-jobs-page .page-header {
        padding: 1rem;
        margin-bottom: 1rem;
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }

    .my-jobs-page .page-header h1 {
        font-size: 1.375rem;
        justify-content: center;
    }

    .my-jobs-page .page-header h1::before {
        font-size: 1.25rem;
    }

    .my-jobs-page .page-header .btn-primary {
        width: 100%;
        justify-content: center;
        padding: 0.875rem 1.5rem;
    }

    .my-job-detail-card {
        padding: 1rem;
    }

    .job-detail-header-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .job-detail-title {
        font-size: 1.125rem;
    }

    .job-status-pill {
        align-self: flex-start;
    }

    .job-detail-description {
        font-size: 0.85rem;
    }

    .job-info-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }

    .job-info-box {
        padding: 0.625rem;
        gap: 0.5rem;
    }

    .info-box-icon {
        font-size: 1rem;
    }

    .info-box-label {
        font-size: 0.6rem;
    }

    .info-box-value {
        font-size: 0.75rem;
    }

    .budget-value {
        font-size: 0.9rem !important;
    }

    .interested-row {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 0.5rem;
    }

    .btn-reopen-small {
        width: 100%;
        text-align: center;
    }

    .job-preferences-section {
        padding: 1rem;
    }

    .preferences-title {
        font-size: 0.8rem;
    }

    .preference-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .preference-tags {
        flex-wrap: wrap;
    }

    .preference-tag {
        font-size: 0.75rem;
        padding: 0.25rem 0.625rem;
    }

    .job-detail-actions {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .job-detail-actions .btn {
        flex: 1;
        min-width: 0;
        justify-content: center;
        text-align: center;
        padding: 0.625rem 0.75rem;
        font-size: 0.8rem;
    }

    .job-detail-actions .btn-chat {
        flex: 0 0 auto;
        width: 44px;
        height: 44px;
        padding: 0;
        border-radius: 50%;
    }

    .job-detail-actions .btn-chat .chat-btn-text {
        display: none;
    }

    .job-detail-actions .btn-chat svg {
        width: 20px;
        height: 20px;
    }

    .app-count-badge {
        margin-left: 0.375rem;
    }
}

/* ============================================
   JOB CARD V2 - Modern Design
   ============================================ */

.job-card-v2 {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border: 1px solid var(--gray-100);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.job-card-v2::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, #ff6b6b 100%);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.job-card-v2:hover {
    border-color: transparent;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    transform: translateY(-6px);
}

.job-card-v2:hover::before {
    opacity: 1;
}

/* Job Type Badge */
.job-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    margin-bottom: 0.75rem;
    width: fit-content;
}

.job-type-badge .job-type-icon {
    font-size: 0.875rem;
}

.job-type-badge .job-type-text {
    letter-spacing: 0.02em;
}

/* Hiring badge - Blue theme */
.job-type-badge.job-type-hiring {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(59, 130, 246, 0.08) 100%);
    color: #2563eb;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

/* Looking for Work badge - Orange/Amber theme */
.job-type-badge.job-type-looking {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(245, 158, 11, 0.08) 100%);
    color: #d97706;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

/* Card styling based on job type */
.job-card-v2.job-type-hiring::before {
    background: linear-gradient(90deg, #3b82f6 0%, #60a5fa 100%);
}

.job-card-v2.job-type-looking::before {
    background: linear-gradient(90deg, #f59e0b 0%, #fbbf24 100%);
}

/* Left border accent for card */
.job-card-v2.job-type-hiring {
    border-left: 3px solid #3b82f6;
}

.job-card-v2.job-type-looking {
    border-left: 3px solid #f59e0b;
}

/* Header Row */
.job-card-v2-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.job-card-v2-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0;
    line-height: 1.4;
    letter-spacing: -0.01em;
    flex: 1;
}

/* Status Pill */
.job-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.375rem 0.875rem;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    flex-shrink: 0;
}

.job-status-pill.status-Open {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.15) 0%, rgba(34, 197, 94, 0.08) 100%);
    color: #16a34a;
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.15);
}

.job-status-pill.status-Filled {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(59, 130, 246, 0.08) 100%);
    color: #2563eb;
}

.job-status-pill.status-Cancelled {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(239, 68, 68, 0.08) 100%);
    color: #dc2626;
}

.job-status-pill.status-Completed {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.15) 0%, rgba(168, 85, 247, 0.08) 100%);
    color: #9333ea;
}

.job-status-pill.status-Expired {
    background: linear-gradient(135deg, rgba(156, 163, 175, 0.15) 0%, rgba(156, 163, 175, 0.08) 100%);
    color: #6b7280;
}

/* Description */
.job-card-v2-description {
    font-size: 0.9rem;
    color: var(--gray-600);
    line-height: 1.5;
    margin: 0 0 1rem 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Job Card Images Gallery */
.job-card-images {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.job-card-images::-webkit-scrollbar {
    display: none;
}

.job-card-image-item {
    position: relative;
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    background: var(--gray-100);
}

.job-card-image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s ease;
}

.job-card-image-item:hover img {
    transform: scale(1.05);
}

.job-card-image-more {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    font-weight: 600;
}

/* Owner Section */
.job-card-v2-owner {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    background: linear-gradient(135deg, var(--gray-50) 0%, rgba(229, 57, 53, 0.02) 100%);
    border-radius: var(--radius-lg);
    margin-bottom: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.job-card-v2-owner:hover {
    background: linear-gradient(135deg, var(--gray-100) 0%, rgba(229, 57, 53, 0.04) 100%);
}

.job-owner-avatar-v2 {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    position: relative;
    flex-shrink: 0;
}

.job-owner-avatar-v2 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.job-owner-avatar-v2 .avatar-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #ff6b6b 0%, var(--primary) 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50%;
    text-transform: uppercase;
}

.job-owner-avatar-v2.online {
    border: 2.5px solid #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
}

.job-owner-avatar-v2 .verified-badge-v2 {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 18px;
    height: 18px;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.3);
}

.job-owner-avatar-v2 .verified-badge-v2 svg {
    width: 10px;
    height: 10px;
}

.job-owner-info-v2 {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.job-owner-info-v2 .owner-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--gray-900);
}

.job-owner-info-v2 .owner-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.job-owner-info-v2 .owner-gender {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--gray-500);
}

.job-owner-info-v2 .owner-age {
    font-size: 0.75rem;
    color: var(--gray-500);
}

.job-card-v2-owner .posted-time {
    font-size: 0.75rem;
    color: var(--gray-400);
    flex-shrink: 0;
}

/* Info Grid */
.job-card-v2-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-bottom: 1rem;
}

/* Compact Grid - single column layout */
.job-card-v2-grid.compact {
    grid-template-columns: 1fr;
    gap: 0.5rem;
}

.job-info-box-v2.full-width {
    grid-column: 1 / -1;
}

/* Meeting point line below location */
.meeting-point-line {
    margin-top: 0.25rem;
    padding-top: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.meeting-point-line .meeting-text {
    font-size: 0.8rem;
    color: var(--gray-600);
    font-weight: 500;
}

.meeting-point-line .info-link-inline {
    flex-shrink: 0;
}

/* Combined value styles */
.job-info-box-v2 .combined-value {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.375rem;
}

.job-info-box-v2 .location-text {
    font-weight: 600;
    color: var(--gray-800);
}

.job-info-box-v2 .meeting-text {
    color: var(--gray-600);
    font-weight: 500;
}

.job-info-box-v2 .value-separator {
    color: var(--gray-400);
    font-weight: 500;
}

.job-info-box-v2 .budget-inline {
    font-weight: 700;
    color: var(--primary);
}

.job-info-box-v2 .interested-inline {
    font-weight: 600;
    color: var(--gray-600);
}

.job-info-box-v2 {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.875rem;
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    transition: all 0.2s ease;
}

.job-info-box-v2:hover {
    background: var(--gray-100);
}

.job-info-box-v2 .info-box-icon {
    font-size: 1.25rem;
    line-height: 1;
    flex-shrink: 0;
}

.job-info-box-v2 .info-box-content {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    min-width: 0;
}

.job-info-box-v2 .info-box-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.job-info-box-v2 .info-box-value {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-800);
    line-height: 1.3;
}

.job-info-box-v2 .duration-tag {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--gray-500);
    margin-left: 0.25rem;
}

/* Budget Box - Highlighted */
.job-info-box-v2.budget-box {
    background: linear-gradient(135deg, rgba(229, 57, 53, 0.08) 0%, rgba(229, 57, 53, 0.03) 100%);
    border: 1px solid rgba(229, 57, 53, 0.15);
}

.job-info-box-v2.budget-box:hover {
    background: linear-gradient(135deg, rgba(229, 57, 53, 0.12) 0%, rgba(229, 57, 53, 0.05) 100%);
}

.job-info-box-v2 .budget-value {
    font-size: 1.125rem !important;
    font-weight: 800 !important;
    color: var(--primary) !important;
}

.job-info-box-v2 .hourly-rate {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--gray-500);
}

/* Preferences Section */
.job-card-v2-preferences {
    padding: 0.875rem 1rem;
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    margin-bottom: 1rem;
    border: 1px dashed var(--gray-200);
}

.job-card-v2-preferences .preference-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.job-card-v2-preferences .preference-item + .preference-item {
    margin-top: 0.5rem;
}

.job-card-v2-preferences .preference-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gray-500);
}

.job-card-v2-preferences .preference-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
}

.job-card-v2-preferences .preference-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.625rem;
    font-size: 0.7rem;
    font-weight: 600;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-full);
    color: var(--gray-600);
}

/* Footer */
.job-card-v2-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-100);
    gap: 1rem;
}

.job-card-v2-footer .footer-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.job-card-v2-footer .applicants-info {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.job-card-v2-footer .applicants-icon {
    font-size: 0.9rem;
}

.job-card-v2-footer .applicants-count {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--gray-800);
}

.job-card-v2-footer .applicants-label {
    font-size: 0.8rem;
    color: var(--gray-500);
}

/* Application Status Badge */
.job-card-app-status {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.3rem 0.75rem;
    font-size: 0.7rem;
    font-weight: 600;
    border-radius: var(--radius-full);
}

.job-card-app-status.status-Pending {
    background: rgba(251, 191, 36, 0.15);
    color: #d97706;
}

.job-card-app-status.status-Accepted {
    background: rgba(34, 197, 94, 0.15);
    color: #16a34a;
}

.job-card-app-status.status-Rejected {
    background: rgba(239, 68, 68, 0.15);
    color: #dc2626;
}

.job-card-app-status.status-Countered {
    background: rgba(59, 130, 246, 0.15);
    color: #2563eb;
}

.job-card-app-status.status-Withdrawn {
    background: rgba(156, 163, 175, 0.15);
    color: #6b7280;
}

/* Footer Actions */
.job-card-v2-footer .footer-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.job-btn-v2 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    padding: 0.625rem 1.25rem;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.job-btn-v2.apply {
    background: linear-gradient(135deg, var(--gray-100) 0%, var(--gray-50) 100%);
    color: var(--gray-700);
    border: 1px solid var(--gray-200);
}

.job-btn-v2.apply:hover {
    background: linear-gradient(135deg, var(--primary) 0%, #c62828 100%);
    border-color: transparent;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(229, 57, 53, 0.3);
}

.job-btn-v2.interested {
    background: linear-gradient(135deg, var(--primary) 0%, #c62828 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(229, 57, 53, 0.25);
}

.job-btn-v2.interested:hover {
    box-shadow: 0 4px 14px rgba(229, 57, 53, 0.35);
    transform: translateY(-1px);
}

.job-btn-v2.view-only {
    background: var(--gray-100);
    color: var(--gray-600);
    border: 1px solid var(--gray-200);
}

.job-btn-v2.view-only:hover {
    background: var(--gray-200);
}

.job-btn-v2.chat-btn {
    background: linear-gradient(135deg, #4CAF50 0%, #388E3C 100%);
    color: white;
    gap: 0.375rem;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.25);
}

.job-btn-v2.chat-btn:hover {
    box-shadow: 0 4px 14px rgba(76, 175, 80, 0.35);
    transform: translateY(-1px);
}

.job-btn-v2.chat-btn svg {
    width: 16px;
    height: 16px;
}

.job-btn-v2.edit-btn {
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
    color: white;
    text-decoration: none;
    gap: 0.375rem;
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.25);
}

.job-btn-v2.edit-btn:hover {
    box-shadow: 0 4px 14px rgba(33, 150, 243, 0.35);
    transform: translateY(-1px);
}

.job-btn-v2.cancel-btn {
    background: linear-gradient(135deg, #FF9800 0%, #F57C00 100%);
    color: white;
    gap: 0.375rem;
    box-shadow: 0 2px 8px rgba(255, 152, 0, 0.25);
}

.job-btn-v2.cancel-btn:hover {
    background: linear-gradient(135deg, #f44336 0%, #c62828 100%);
    box-shadow: 0 4px 14px rgba(244, 67, 54, 0.35);
    transform: translateY(-1px);
}

/* Job Card V2 Mobile Responsive */
@media (max-width: 768px) {
    .job-card-v2 {
        padding: 1rem;
    }

    .job-card-v2-header {
        flex-direction: row;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .job-card-v2-title {
        font-size: 1.125rem;
        flex: 1;
    }

    .job-status-pill {
        flex-shrink: 0;
        font-size: 0.65rem;
        padding: 0.2rem 0.5rem;
    }

    .job-card-v2-owner {
        padding: 0.75rem;
    }

    .job-owner-avatar-v2 {
        width: 38px;
        height: 38px;
    }

    .job-card-v2-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }

    .job-info-box-v2 {
        padding: 0.5rem;
        gap: 0.375rem;
    }

    .job-info-box-v2 .info-box-icon {
        font-size: 0.9rem;
    }

    .job-info-box-v2 .info-box-label {
        font-size: 0.55rem;
    }

    .job-info-box-v2 .info-box-value {
        font-size: 0.7rem;
    }

    .job-info-box-v2 .budget-value {
        font-size: 0.85rem !important;
    }

    .job-card-v2-preferences {
        padding: 0.75rem;
    }

    .job-card-v2-preferences .preference-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.375rem;
    }

    .job-card-v2-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }

    .job-card-v2-footer .footer-left {
        justify-content: center;
    }

    .job-card-v2-footer .footer-actions {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        width: 100%;
        flex-wrap: nowrap;
    }

    .job-btn-v2 {
        flex: 1;
        justify-content: center;
        padding: 0.625rem 0.75rem;
        font-size: 0.8rem;
        min-width: 0;
    }

    .job-btn-v2.chat-btn {
        flex: 0 0 auto;
        width: 44px;
        height: 44px;
        padding: 0;
        border-radius: 50%;
    }

    .job-btn-v2.chat-btn span,
    .job-btn-v2.chat-btn .chat-btn-text {
        display: none;
    }

    .job-btn-v2.chat-btn svg {
        width: 20px;
        height: 20px;
    }
}

/* ============================================
   Chat Page Styles
   ============================================ */

.chat-page {
    position: fixed;
    top: 70px; /* Below navbar (70px) */
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    background: var(--gray-100);
    overflow: hidden;
}

.chat-page .breadcrumb {
    display: none; /* Hide breadcrumb in fullscreen chat */
}

.chat-page.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
}

.chat-container {
    display: flex;
    flex: 1;
    background: var(--white);
    overflow: hidden;
    position: relative;
}

/* Chat Sidebar */
.chat-sidebar {
    width: 320px;
    border-right: 1px solid var(--gray-200);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.chat-sidebar-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--gray-200);
}

.chat-sidebar-header h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-900);
}

/* Chat Filter Tabs */
.chat-filter-tabs {
    display: flex;
    border-bottom: 1px solid var(--gray-200);
    padding: 0.5rem 0.75rem;
    gap: 0.5rem;
    background: var(--white);
}

.chat-filter-tab {
    flex: 1;
    padding: 0.5rem 0.75rem;
    border: none;
    background: var(--gray-100);
    color: var(--gray-600);
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.chat-filter-tab:hover {
    background: var(--gray-200);
    color: var(--gray-700);
}

.chat-filter-tab.active {
    background: var(--primary);
    color: white;
}

.chat-room-list {
    flex: 1;
    overflow-y: auto;
}

.chat-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 2rem;
    color: var(--gray-500);
}

.chat-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
    color: var(--gray-500);
}

.chat-empty .empty-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Chat Room Item */
.chat-room-item {
    display: flex;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    cursor: pointer;
    transition: background var(--transition-fast);
    border-bottom: 1px solid var(--gray-100);
}

.chat-room-item:hover {
    background: var(--gray-50);
}

.chat-room-item.active {
    background: var(--gray-100);
}

.chat-room-item.closed {
    opacity: 0.7;
}

.room-avatar {
    position: relative;
    width: 48px;
    height: 48px;
    flex-shrink: 0;
}

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

.room-avatar .avatar-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.unread-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--primary);
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

.room-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.room-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}

.room-title {
    font-weight: 600;
    color: var(--gray-900);
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.room-time {
    font-size: 0.75rem;
    color: var(--gray-500);
    flex-shrink: 0;
}

.room-preview {
    font-size: 0.8rem;
    color: var(--gray-600);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.room-preview .sender {
    font-weight: 500;
}

.room-preview .closed-label {
    color: var(--error);
    font-weight: 500;
}

.room-preview .no-messages {
    font-style: italic;
    color: var(--gray-400);
}

.room-participants {
    font-size: 0.7rem;
    color: var(--gray-400);
}

/* Chat Window */
.chat-window {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.chat-window-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--gray-200);
    background: var(--white);
}

.chat-window-header .back-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.25rem;
    color: var(--gray-700);
}

.chat-header-info {
    flex: 1;
}

.chat-header-info h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-900);
}

.chat-header-info .participant-count {
    font-size: 0.8rem;
    color: var(--gray-500);
}

.room-status {
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 500;
}

.room-status.closed {
    background: var(--gray-200);
    color: var(--gray-600);
}

/* Chat Messages */
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Load More Button */
.load-more-container {
    display: flex;
    justify-content: center;
    padding: 0.5rem 0 1rem;
}

.load-more-btn {
    background: var(--gray-100);
    color: var(--gray-600);
    border: 1px solid var(--gray-200);
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.load-more-btn:hover {
    background: var(--gray-200);
    color: var(--gray-700);
}

.chat-loading-small {
    padding: 0.5rem;
}

.chat-loading-more {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.spinner-small {
    width: 20px;
    height: 20px;
    border: 2px solid var(--gray-200);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* Message animation */
@keyframes messageSlideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message {
    display: flex;
    gap: 0.5rem;
    max-width: 80%;
    animation: messageSlideIn 0.2s ease-out;
}

.message.own {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.message.system {
    align-self: center;
    max-width: 100%;
}

.message-avatar {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

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

.avatar-placeholder-sm {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
}

.message-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.message-sender {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--gray-600);
}

.message-bubble {
    background: var(--gray-100);
    padding: 0.5rem 0.875rem;
    border-radius: var(--radius-lg);
    border-top-left-radius: var(--radius-sm);
    position: relative;
}

.message.own .message-bubble {
    background: var(--primary);
    color: white;
    border-top-left-radius: var(--radius-lg);
    border-top-right-radius: var(--radius-sm);
}

.message.system .message-bubble {
    background: var(--gray-200);
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius-full);
}

.message.system .system-text {
    font-size: 0.8rem;
    color: var(--gray-600);
    font-style: italic;
}

.message-bubble p {
    margin: 0;
    word-break: break-word;
    font-size: 0.9rem;
    line-height: 1.4;
}

.message-time {
    display: block;
    font-size: 0.65rem;
    color: var(--gray-500);
    text-align: right;
    margin-top: 0.25rem;
}

.message.own .message-time {
    color: rgba(255, 255, 255, 0.7);
}

/* Message attachments */
.message-image {
    max-width: 280px;
    border-radius: var(--radius-md);
    cursor: pointer;
}

.message-file {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    background: var(--white);
    border-radius: var(--radius-md);
    color: var(--gray-700);
    text-decoration: none;
}

.message-file:hover {
    background: var(--gray-50);
}

.message-file .file-icon {
    font-size: 1.25rem;
}

.message-file .file-name {
    font-size: 0.85rem;
    word-break: break-all;
}

.image-uploading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    color: var(--gray-500);
}

/* Typing indicator */
.typing-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    color: var(--gray-500);
    font-size: 0.8rem;
}

.typing-dots {
    display: flex;
    gap: 3px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    background: var(--gray-400);
    border-radius: 50%;
    animation: typing-bounce 1.4s infinite ease-in-out both;
}

.typing-dots span:nth-child(1) { animation-delay: -0.32s; }
.typing-dots span:nth-child(2) { animation-delay: -0.16s; }

@keyframes typing-bounce {
    0%, 80%, 100% { transform: scale(0.8); }
    40% { transform: scale(1.2); }
}

/* Chat Input Form */
.chat-input-form {
    display: flex;
    align-items: flex-end;
    gap: 0.5rem;
    padding: 1rem;
    border-top: 1px solid var(--gray-200);
    background: var(--white);
}

.attach-btn,
.send-btn {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    flex-shrink: 0;
}

.attach-btn {
    background: var(--gray-100);
    color: var(--gray-600);
    font-size: 1.25rem;
}

.attach-btn:hover:not(:disabled) {
    background: var(--gray-200);
}

.send-btn {
    background: var(--primary);
    color: white;
    font-size: 1.25rem;
}

.send-btn:hover:not(:disabled) {
    background: var(--primary-hover);
}

.send-btn:disabled,
.attach-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.chat-input {
    flex: 1;
    padding: 0.625rem 1rem;
    border: 1px solid var(--gray-300);
    border-radius: 20px;
    font-size: 0.9rem;
    resize: none;
    font-family: inherit;
    max-height: 100px;
    line-height: 1.4;
}

.chat-input:focus {
    outline: none;
    border-color: var(--primary);
}

/* Chat closed notice */
.chat-closed-notice {
    padding: 1rem;
    text-align: center;
    color: var(--gray-500);
    background: var(--gray-100);
    font-size: 0.9rem;
}

/* ========================================
   MODERN CHAT UI STYLES
   ======================================== */

/* Modern Chat Room Card */
.chat-room-list {
    padding-top: 0.5rem;
}

.chat-room-card {
    display: flex;
    gap: 0.875rem;
    padding: 1rem 1.25rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid var(--gray-100);
    position: relative;
}

.chat-room-card:first-child {
    margin-top: 0.25rem;
}

.chat-room-card:hover {
    background: linear-gradient(135deg, var(--gray-50) 0%, rgba(229, 57, 53, 0.03) 100%);
}

.chat-room-card.active {
    background: linear-gradient(135deg, rgba(229, 57, 53, 0.08) 0%, rgba(229, 57, 53, 0.04) 100%);
    border-left: 3px solid var(--primary);
}

.chat-room-card.closed {
    opacity: 0.7;
}

.chat-room-card.has-unread {
    background: linear-gradient(135deg, rgba(229, 57, 53, 0.05) 0%, var(--white) 100%);
}

.room-card-left {
    flex-shrink: 0;
}

.room-avatar-modern {
    position: relative;
    width: 52px;
    height: 52px;
}

.room-avatar-modern img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--white);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.room-avatar-modern .avatar-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gray-200) 0%, var(--gray-300) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    border: 2px solid var(--white);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.room-avatar-modern .online-dot {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 12px;
    height: 12px;
    background: #22c55e;
    border-radius: 50%;
    border: 2px solid var(--white);
}

.room-card-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.room-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.5rem;
}

.room-job-title {
    font-weight: 600;
    color: var(--gray-900);
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

.room-card-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.room-time-badge {
    font-size: 0.7rem;
    color: var(--gray-500);
    background: var(--gray-100);
    padding: 0.125rem 0.5rem;
    border-radius: var(--radius-full);
}

.unread-count-badge {
    background: var(--primary);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    animation: pulse-subtle 2s infinite;
}

@keyframes pulse-subtle {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.room-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.7rem;
    padding: 0.125rem 0.5rem;
    border-radius: var(--radius-full);
    font-weight: 500;
}

.room-status-badge.closed {
    background: var(--gray-200);
    color: var(--gray-600);
}

.room-status-badge .status-icon {
    font-size: 0.6rem;
}

.room-preview-modern {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.8rem;
    color: var(--gray-600);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.preview-sender {
    font-weight: 600;
    color: var(--gray-700);
    flex-shrink: 0;
}

.preview-text {
    overflow: hidden;
    text-overflow: ellipsis;
}

.preview-empty {
    font-style: italic;
    color: var(--gray-400);
}

.room-participants-row {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.7rem;
    color: var(--gray-400);
}

.participants-icon {
    font-size: 0.65rem;
}

/* Modern Chat Window Header */
.chat-window-header-modern {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, var(--white) 0%, var(--gray-50) 100%);
    border-bottom: 1px solid var(--gray-200);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    min-height: 64px;
}

.back-btn-modern {
    display: none;
    align-items: center;
    justify-content: center;
    background: var(--gray-100);
    border: none;
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 50%;
    cursor: pointer;
    color: var(--gray-700);
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.back-btn-modern:hover {
    background: var(--gray-200);
    color: var(--gray-900);
}

.back-btn-modern svg {
    width: 20px;
    height: 20px;
}

.chat-header-main {
    flex: 1;
    min-width: 0;
}

.chat-header-title-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.chat-job-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-900);
    margin: 0;
    font-family: 'Courier New', monospace;
    letter-spacing: 0.02em;
}

/* Job header icon (category emoji) */
.job-header-icon {
    font-size: 1.25rem;
    margin-right: 0.25rem;
}

/* Job date badge in chat header */
.job-date-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.5rem;
    background: var(--gray-100);
    color: var(--gray-600);
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    margin-left: 0.5rem;
}

.header-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.7rem;
    padding: 0.25rem 0.625rem;
    border-radius: var(--radius-full);
    font-weight: 500;
}

.header-status-badge.closed {
    background: var(--gray-200);
    color: var(--gray-600);
}

.chat-header-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.25rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.8rem;
    color: var(--gray-500);
}

.meta-icon {
    font-size: 0.75rem;
}

.meta-item.countdown {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    color: white;
    padding: 0.25rem 0.625rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.75rem;
}

.meta-item.countdown .meta-icon {
    font-size: 0.7rem;
}

.view-job-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 0.875rem;
    background: var(--primary);
    color: white;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    flex-shrink: 0;
    min-width: 40px;
    height: 40px;
}

.view-job-btn:hover {
    background: var(--primary-hover);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(229, 57, 53, 0.3);
}

a.view-job-btn:hover {
    color: white;
}

.view-job-btn svg {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    stroke: white;
}

.view-job-btn .btn-text {
    color: white;
}

/* Modern Message Styles */
.message-modern {
    display: flex;
    gap: 0.625rem;
    max-width: 75%;
    animation: messageSlideIn 0.25s ease-out;
}

.message-modern.own {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.message-modern.system {
    align-self: center;
    max-width: 85%;
    margin: 0.5rem auto;
}

.msg-avatar {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
}

.msg-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--white);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.msg-avatar-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gray-200) 0%, var(--gray-300) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.msg-content-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.msg-sender-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: 0.5rem;
}

.msg-sender-name {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gray-600);
}

.msg-owner-badge {
    font-size: 0.625rem;
    font-weight: 600;
    padding: 0.125rem 0.5rem;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border-radius: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.025rem;
}

.msg-bubble {
    background: var(--white);
    border: 1px solid var(--gray-200);
    padding: 0.625rem 1rem;
    border-radius: 1.25rem;
    border-top-left-radius: 0.375rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.message-modern.own .msg-bubble {
    background: linear-gradient(135deg, var(--primary) 0%, #c62828 100%);
    color: white;
    border: none;
    border-top-left-radius: 1.25rem;
    border-top-right-radius: 0.375rem;
    box-shadow: 0 2px 8px rgba(229, 57, 53, 0.3);
}

.message-modern.system .msg-bubble {
    background: linear-gradient(135deg, #fff8e1 0%, #fffde7 100%);
    border: 1px solid #ffc107;
    padding: 1rem 1.25rem;
    border-radius: var(--radius-lg);
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.15);
}

.msg-text {
    margin: 0;
    word-break: break-word;
    font-size: 0.9rem;
    line-height: 1.5;
}

.msg-system-text {
    margin: 0;
    font-size: 0.9rem;
    color: var(--gray-700);
    font-style: normal;
    line-height: 1.6;
}

.msg-time {
    font-size: 0.65rem;
    color: var(--gray-400);
    margin-left: 0.5rem;
}

.message-modern.own .msg-time {
    color: var(--gray-400);
    text-align: right;
    margin-right: 0.5rem;
    margin-left: 0;
}

.msg-image {
    max-width: 280px;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.msg-image:hover {
    transform: scale(1.02);
}

.msg-image.clickable {
    cursor: zoom-in;
}

.msg-image.clickable:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.msg-image-uploading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.5rem 2rem;
    color: var(--gray-500);
}

.msg-image-uploading .upload-progress-text {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--primary);
}

/* Multi-image grid layout */
.msg-image-grid {
    display: grid;
    gap: 3px;
    border-radius: 0.875rem;
    overflow: hidden;
    max-width: 280px;
    background: var(--gray-200);
    padding: 3px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.message-modern.own .msg-image-grid {
    background: rgba(255, 255, 255, 0.15);
}

.msg-image-grid.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.msg-image-grid.grid-3 {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
}

.msg-image-grid.grid-3 .msg-image-grid-item:first-child {
    grid-row: span 2;
}

.msg-image-grid.grid-4 {
    grid-template-columns: repeat(2, 1fr);
}

.msg-image-grid-item {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    cursor: zoom-in;
    background: var(--gray-100);
}

.msg-image-grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s ease;
}

.msg-image-grid-item:hover img {
    transform: scale(1.05);
}

.msg-image-grid-item.uploading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    background: var(--gray-200);
}

.msg-image-grid-item .spinner-small {
    width: 20px;
    height: 20px;
    border-width: 2px;
}

.msg-image-grid-item .upload-progress-text-small {
    font-size: 0.625rem;
    font-weight: 500;
    color: var(--primary);
}

/* Grid items for 5+ images - show "+X more" overlay on last item */
.msg-image-grid.grid-4 .msg-image-grid-item:nth-child(n+5) {
    display: none;
}

.msg-file-link {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.625rem 0.875rem;
    background: var(--gray-50);
    border-radius: 0.75rem;
    color: var(--gray-700);
    text-decoration: none;
    transition: all 0.2s ease;
}

.msg-file-link:hover {
    background: var(--gray-100);
}

.message-modern.own .msg-file-link {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.message-modern.own .msg-file-link:hover {
    background: rgba(255, 255, 255, 0.3);
}

.file-icon-modern {
    font-size: 1.25rem;
}

.file-name-modern {
    font-size: 0.85rem;
    word-break: break-all;
}

/* Modern Typing Indicator */
.typing-indicator-modern {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.5rem 0.75rem;
    background: var(--gray-50);
    border-radius: var(--radius-full);
    margin-left: 0.5rem;
    width: fit-content;
}

.typing-dots-modern {
    display: flex;
    gap: 4px;
}

.typing-dots-modern span {
    width: 8px;
    height: 8px;
    background: var(--gray-400);
    border-radius: 50%;
    animation: typing-bounce 1.4s infinite ease-in-out both;
}

.typing-dots-modern span:nth-child(1) { animation-delay: -0.32s; }
.typing-dots-modern span:nth-child(2) { animation-delay: -0.16s; }

.typing-text-modern {
    font-size: 0.8rem;
    color: var(--gray-500);
}

/* Modern Input Form */
.chat-input-form-modern {
    display: flex;
    align-items: flex-end;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: var(--white);
    border-top: 1px solid var(--gray-200);
}

.attach-btn-modern,
.send-btn-modern {
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.attach-btn-modern {
    background: var(--gray-100);
    color: var(--gray-600);
}

.attach-btn-modern:hover:not(:disabled) {
    background: var(--gray-200);
    color: var(--gray-700);
}

.send-btn-modern {
    background: linear-gradient(135deg, var(--primary) 0%, #c62828 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(229, 57, 53, 0.3);
}

.send-btn-modern:hover:not(:disabled) {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(229, 57, 53, 0.4);
}

.send-btn-modern:disabled,
.attach-btn-modern:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.input-wrapper-modern {
    flex: 1;
    position: relative;
}

.chat-input-modern {
    width: 100%;
    padding: 0.75rem 1.25rem;
    border: 2px solid var(--gray-200);
    border-radius: 1.5rem;
    font-size: 0.9rem;
    resize: none;
    font-family: inherit;
    max-height: 120px;
    line-height: 1.5;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input-modern:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.1);
}

/* Modern Closed Notice */
.chat-closed-notice-modern {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, var(--gray-100) 0%, var(--gray-50) 100%);
    color: var(--gray-600);
    font-size: 0.9rem;
    border-top: 1px solid var(--gray-200);
}

.chat-closed-notice-modern .closed-icon {
    font-size: 1rem;
}

/* Empty state */
.chat-empty-state {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
}

.chat-empty-state .empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.chat-empty-state h3 {
    font-size: 1.25rem;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
}

.chat-empty-state p {
    color: var(--gray-500);
    font-size: 0.9rem;
}

/* Navbar Icon Links (Jobs, Chat, etc.) */
.navbar-icon-link,
.navbar-chat-link {
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--gray-100);
    color: var(--gray-700);
    transition: all var(--transition-fast);
}

.navbar-icon-link:hover,
.navbar-chat-link:hover {
    background: var(--gray-200);
    color: var(--gray-900);
}

.chat-unread-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--primary);
    color: white;
    font-size: 0.65rem;
    font-weight: 600;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

/* Dropdown badge */
.dropdown-badge {
    margin-left: auto;
    background: var(--primary);
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
}

/* Spinner small */
.spinner-small {
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .chat-page {
        top: 70px; /* Navbar height is 70px */
    }

    .chat-sidebar {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        background: var(--white);
        z-index: 10;
    }

    .chat-container.show-chat .chat-sidebar {
        display: none;
    }

    .chat-window {
        display: none;
        width: 100%;
    }

    .chat-container.show-chat .chat-window {
        display: flex;
    }

    .chat-window-header .back-btn {
        display: flex;
    }

    .mobile-only {
        display: flex;
    }

    .message {
        max-width: 90%;
    }

    .message-image {
        max-width: 200px;
    }

    /* Modern Chat Mobile Styles */
    .back-btn-modern {
        display: flex;
    }

    .message-modern {
        max-width: 85%;
    }

    .msg-image {
        max-width: 200px;
    }

    .view-job-btn .btn-text {
        display: none;
    }

    .view-job-btn {
        padding: 0;
        width: 40px;
        height: 40px;
        min-width: 40px;
    }

    .chat-job-title {
        font-size: 0.9rem;
    }

    .room-avatar-modern {
        width: 46px;
        height: 46px;
    }

    .chat-room-card {
        padding: 0.875rem 1rem;
    }

    .room-job-title {
        font-size: 0.875rem;
    }
}

@media (min-width: 769px) {
    .mobile-only {
        display: none;
    }
}

/* ==================== Notification Settings Modal ==================== */
.notification-settings-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3000;
    padding: 1rem;
    animation: fadeIn 0.2s ease-out;
}

.notification-settings-content {
    background: var(--white);
    border-radius: var(--radius-xl);
    max-width: 480px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
    animation: slideUp 0.3s ease-out;
}

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

.notification-settings-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--gray-200);
}

.notification-settings-header h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-900);
    margin: 0;
}

.notification-settings-header .close-btn {
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    color: var(--gray-500);
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
}

.notification-settings-header .close-btn:hover {
    background: var(--gray-100);
    color: var(--gray-700);
}

.notification-settings-body {
    padding: 1.5rem;
}

.settings-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    gap: 1rem;
    color: var(--gray-500);
}

.settings-loading .spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--gray-200);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.settings-not-supported {
    text-align: center;
    padding: 2rem;
}

.settings-not-supported .not-supported-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.settings-not-supported h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 0.5rem;
}

.settings-not-supported p {
    color: var(--gray-500);
    font-size: 0.875rem;
}

.settings-section {
    margin-bottom: 1.5rem;
}

.settings-section:last-child {
    margin-bottom: 0;
}

.settings-section-header {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.settings-section-header .section-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.settings-section-header .section-info h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-800);
    margin: 0 0 0.25rem 0;
}

.settings-section-header .section-info p {
    font-size: 0.8125rem;
    color: var(--gray-500);
    margin: 0;
}

.permission-denied {
    background: #FEF2F2;
    border: 1px solid #FECACA;
    border-radius: var(--radius-md);
    padding: 1rem;
    color: #B91C1C;
    font-size: 0.875rem;
}

.btn-permission {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.875rem 1.5rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    border: none;
    border-radius: var(--radius-lg);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
    box-shadow: 0 4px 12px rgba(229, 57, 53, 0.3);
}

.btn-permission:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(229, 57, 53, 0.4);
}

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

.subscription-toggle {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: var(--gray-50);
    border-radius: var(--radius-lg);
}

.toggle-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-700);
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 28px;
}

.toggle-switch.small {
    width: 44px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--gray-300);
    transition: all var(--transition-fast);
    border-radius: var(--radius-full);
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 3px;
    bottom: 3px;
    background-color: var(--white);
    transition: all var(--transition-fast);
    border-radius: 50%;
    box-shadow: var(--shadow-sm);
}

.toggle-switch.small .toggle-slider:before {
    height: 18px;
    width: 18px;
}

.toggle-switch input:checked + .toggle-slider {
    background-color: var(--success);
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(24px);
}

.toggle-switch.small input:checked + .toggle-slider:before {
    transform: translateX(20px);
}

.toggle-switch input:disabled + .toggle-slider {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Notification Type Items */
.notification-types {
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    padding: 0.5rem;
}

.notification-type-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.875rem;
    gap: 0.75rem;
    border-radius: var(--radius-md);
    transition: background var(--transition-fast);
    min-height: 56px; /* Prevent layout shift when toggling */
}

/* Fix toggle switch width in notification settings */
.notification-type-item .toggle-switch {
    flex-shrink: 0;
    width: 44px;
    min-width: 44px;
}

.notification-type-item:hover {
    background: var(--gray-100);
}

.notification-type-item .type-info {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    flex: 1;
}

.notification-type-item .type-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.notification-type-item .type-text {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.notification-type-item .type-name {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-800);
}

.notification-type-item .type-desc {
    font-size: 0.75rem;
    color: var(--gray-500);
}

/* Quiet Hours Section */
.quiet-hours {
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    padding: 1rem;
}

.quiet-hours-inputs {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1rem;
}

.time-input-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.time-input-group label {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.time-input-group input[type="time"] {
    padding: 0.625rem 0.75rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    font-size: 0.9375rem;
    color: var(--gray-800);
    background: var(--white);
    transition: all var(--transition-fast);
}

.time-input-group input[type="time"]:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.1);
}

.time-input-group input[type="time"]:disabled {
    background: var(--gray-100);
    cursor: not-allowed;
}

.time-separator {
    font-size: 1.25rem;
    color: var(--gray-400);
    margin-top: 1.25rem;
}

/* Mobile responsiveness */
@media (max-width: 480px) {
    .notification-settings-modal {
        padding: 0;
        align-items: flex-end;
    }

    .notification-settings-content {
        border-radius: var(--radius-xl) var(--radius-xl) 0 0;
        max-height: 85vh;
    }

    .notification-settings-header {
        padding: 1rem;
    }

    .notification-settings-body {
        padding: 1rem;
    }

    .quiet-hours-inputs {
        flex-direction: column;
        align-items: stretch;
    }

    .time-separator {
        text-align: center;
        margin: 0.5rem 0;
    }
}

/* ============================================
   Custom 24-Hour Time Picker
   ============================================ */

.time-picker-container {
    position: relative;
    display: inline-block;
    width: 100%;
}

.time-picker-display {
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 0.625rem 0.875rem;
    background: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.time-picker-display:hover:not(.disabled) {
    border-color: var(--gray-400);
}

.time-picker-display:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.1);
}

.time-picker-display.disabled {
    background: var(--gray-100);
    cursor: not-allowed;
    opacity: 0.6;
}

/* Time display value */
.time-display-value {
    display: flex;
    align-items: center;
    gap: 2px;
    flex: 1;
    cursor: pointer;
}

.time-display-hour,
.time-display-minute {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gray-800);
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    transition: all 0.15s ease;
}

.time-picker-display:hover .time-display-hour,
.time-picker-display:hover .time-display-minute {
    background: var(--gray-100);
}

.time-display-separator {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-500);
}

/* Chevron icon */
.time-picker-chevron {
    margin-left: auto;
    color: var(--gray-400);
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.time-picker-display:hover .time-picker-chevron {
    color: var(--gray-600);
}

/* Backdrop */
.time-picker-backdrop {
    position: fixed;
    inset: 0;
    z-index: 999;
}

/* Dropdown */
.time-picker-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    z-index: 10000;
    animation: timePickerFadeIn 0.15s ease-out;
}

@keyframes timePickerFadeIn {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.time-picker-columns {
    display: flex;
    gap: 0;
}

.time-picker-column {
    width: 80px;
    border-right: 1px solid var(--gray-200);
}

.time-picker-column:last-child {
    border-right: none;
}

.time-picker-column-header {
    padding: 0.625rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
    text-align: center;
}

.time-picker-options {
    max-height: 200px;
    overflow-y: auto;
    padding: 0.375rem;
}

.time-option {
    display: block;
    width: 100%;
    padding: 0.5rem 0.75rem;
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--gray-700);
    cursor: pointer;
    transition: all var(--transition-fast);
    text-align: center;
}

.time-option:hover {
    background: var(--gray-100);
    color: var(--gray-900);
}

.time-option.selected {
    background: var(--primary);
    color: var(--white);
}

.time-option.selected:hover {
    background: var(--primary-dark);
}

/* Scrollbar styling for time picker */
.time-picker-options::-webkit-scrollbar {
    width: 6px;
}

.time-picker-options::-webkit-scrollbar-track {
    background: var(--gray-50);
}

.time-picker-options::-webkit-scrollbar-thumb {
    background: var(--gray-300);
    border-radius: 3px;
}

.time-picker-options::-webkit-scrollbar-thumb:hover {
    background: var(--gray-400);
}

/* Mobile responsiveness */
@media (max-width: 480px) {
    .time-picker-dropdown {
        left: 50%;
        transform: translateX(-50%);
    }

    .time-picker-column {
        width: 70px;
    }

    .time-picker-options {
        max-height: 180px;
    }
}

/* =====================================================
   MAP PAGE STYLES
   ===================================================== */

.map-page {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 60px);
    background: var(--gray-50);
}

.map-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    background: white;
    border-bottom: 1px solid var(--gray-200);
    position: relative;
    z-index: 5;
}

.map-header h1 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-900);
    margin: 0;
}

.map-header h1 svg {
    color: var(--primary-color);
}

.map-stats {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.map-stats .member-count {
    color: var(--gray-600);
    font-size: 0.875rem;
}

.map-stats .loading-indicator {
    display: flex;
    align-items: center;
}

.map-stats .spinner-small {
    width: 16px;
    height: 16px;
    border: 2px solid var(--gray-200);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.map-filters {
    display: flex;
    flex-direction: column;
    background: white;
    border-bottom: 1px solid var(--gray-200);
    position: relative;
    z-index: 1001;
}

.map-filters-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
}

.map-filters .filter-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: white;
    border: 1px solid var(--gray-300);
    border-radius: 2rem;
    font-size: 0.875rem;
    color: var(--gray-700);
    cursor: pointer;
    transition: all 0.2s ease;
}

.map-filters .filter-btn:hover {
    background: var(--gray-50);
    border-color: var(--gray-400);
}

.map-filters .filter-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.map-filters .filter-btn.active .online-indicator {
    background: white;
    box-shadow: 0 0 0 2px var(--primary);
}

.map-filters .filter-btn .online-indicator {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
}

.map-filters .filter-btn svg {
    width: 14px;
    height: 14px;
}

.map-filters .province-filter {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.map-filters .province-select {
    padding: 0.5rem 2rem 0.5rem 1rem;
    background: white;
    border: 1px solid var(--gray-300);
    border-radius: 2rem;
    font-size: 0.875rem;
    color: var(--gray-700);
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    min-width: 140px;
    transition: all 0.2s ease;
}

.map-filters .province-select:hover {
    background-color: var(--gray-50);
    border-color: var(--gray-400);
}

.map-filters .province-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.1);
}

/* Advanced toggle button */
.map-filters .filter-btn.advanced-toggle {
    background: var(--gray-50);
}

.map-filters .filter-btn.advanced-toggle.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* Clear filters button */
.map-filters .filter-btn.clear-filters {
    background: transparent;
    border-color: var(--gray-400);
    color: var(--gray-600);
}

.map-filters .filter-btn.clear-filters:hover {
    background: var(--gray-100);
    border-color: var(--gray-500);
}

/* Advanced filters panel */
.map-advanced-filters {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: var(--gray-50);
    border-top: 1px solid var(--gray-200);
    position: relative;
    z-index: 10;
}

.map-advanced-filters-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.25rem;
}

.map-advanced-filters-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-800);
}

.map-advanced-filters-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: white;
    border: 1px solid var(--gray-300);
    border-radius: 50%;
    cursor: pointer;
    color: var(--gray-600);
    transition: all 0.2s ease;
}

.map-advanced-filters-close:hover {
    background: var(--gray-100);
    border-color: var(--gray-400);
    color: var(--gray-800);
}

.map-filter-section {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.map-filter-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--gray-700);
}

.map-filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* Filter chip buttons */
.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    background: white;
    border: 1px solid var(--gray-300);
    border-radius: 2rem;
    font-size: 0.8125rem;
    color: var(--gray-700);
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-chip:hover {
    background: var(--gray-50);
    border-color: var(--gray-400);
}

.filter-chip.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.filter-chip .chip-icon {
    font-size: 0.875rem;
}

.filter-chip .chip-flag {
    width: 16px;
    height: 12px;
    border-radius: 2px;
}

.filter-chip .chip-label {
    white-space: nowrap;
}

/* Quick filters row in search modal */
.quick-filters-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
}

.quick-filters-row .filter-chip {
    padding: 0.375rem 0.625rem;
    font-size: 0.75rem;
}

.quick-filters-row .filter-chip .online-dot {
    width: 6px;
    height: 6px;
}

.quick-filters-row .filter-chip svg {
    width: 12px;
    height: 12px;
}

/* Age inputs in map */
.map-age-inputs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.map-age-inputs .age-input {
    width: 70px;
    padding: 0.375rem 0.5rem;
    border: 1px solid var(--gray-300);
    border-radius: 0.375rem;
    font-size: 0.875rem;
    text-align: center;
}

.map-age-inputs .age-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(229, 57, 53, 0.1);
}

.map-age-inputs .age-separator {
    color: var(--gray-500);
    font-size: 0.875rem;
}

.map-age-inputs .age-unit {
    color: var(--gray-500);
    font-size: 0.8125rem;
}

.map-container {
    flex: 1;
    position: relative;
    min-height: 0;
}

.leaflet-map-fullscreen {
    width: 100%;
    height: 100%;
}

.map-error {
    position: absolute;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    z-index: 10000;
}

.map-no-members {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    text-align: center;
    z-index: 10000;
}

.map-no-members p {
    color: var(--gray-600);
    margin: 0;
}

.map-privacy-note {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: white;
    border-top: 1px solid var(--gray-200);
    color: var(--gray-500);
    font-size: 0.75rem;
}

.map-privacy-note svg {
    flex-shrink: 0;
    color: var(--gray-400);
}

/* Map Marker Styles */
.map-marker-container {
    position: relative;
}

.map-marker-wrapper {
    position: relative;
    width: 46px;
    height: 46px;
}

.map-marker-avatar {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gray-200);
    border: 2px solid white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease;
    overflow: hidden;
}

.map-marker-avatar:hover {
    transform: scale(1.1);
}

.map-marker-avatar.online {
    border-color: #22c55e;
    box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.4), 0 2px 8px rgba(0, 0, 0, 0.3);
}

.map-marker-avatar .marker-image {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 50%;
    display: block;
}

.map-marker-avatar .marker-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    background: var(--gray-100);
}

.map-marker-wrapper .marker-verified-badge {
    position: absolute;
    bottom: 3px;
    right: 3px;
    width: 14px;
    height: 14px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid white;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    z-index: 10;
}

.map-marker-wrapper .marker-verified-badge svg {
    width: 8px;
    height: 8px;
}

/* Map Popup Styles */
.map-popup {
    min-width: 180px;
    max-width: 220px;
}

.map-popup .popup-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.map-popup .popup-header.online .popup-avatar {
    border-color: #22c55e;
    box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.3);
}

.map-popup .popup-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--gray-300);
}

.map-popup .popup-avatar-placeholder {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    border: 2px solid var(--gray-300);
}

.map-popup .popup-verified {
    position: absolute;
    top: 0;
    right: 0;
    width: 18px;
    height: 18px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: bold;
}

.map-popup .popup-info {
    flex: 1;
}

.map-popup .popup-name {
    font-weight: 600;
    color: var(--gray-900);
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.map-popup .popup-meta {
    color: var(--gray-500);
    font-size: 0.8rem;
}

.map-popup .popup-link {
    display: block;
    text-align: center;
    padding: 0.5rem 1rem;
    background: var(--primary-color);
    color: white;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s ease;
}

.map-popup .popup-link:hover {
    background: var(--primary-dark);
}

/* Leaflet overrides for markers */
.leaflet-marker-icon.map-marker-container {
    background: none;
    border: none;
}

/* =====================================================
   LOCATION PICKER MODAL STYLES
   ===================================================== */

.location-picker-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 1rem;
}

.location-picker-modal {
    background: white;
    border-radius: 1rem;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.location-picker-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--gray-200);
}

.location-picker-header h2 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gray-900);
    margin: 0;
}

.location-picker-header h2 svg {
    color: var(--primary-color);
}

.location-picker-header .close-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    color: var(--gray-500);
    cursor: pointer;
    transition: all 0.2s ease;
}

.location-picker-header .close-btn:hover {
    background: var(--gray-100);
    color: var(--gray-700);
}

.location-picker-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.location-picker-map {
    width: 100%;
    height: 350px;
    border-radius: 0;
}

.location-picker-hint {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: #f0f9ff;
    color: #0369a1;
    font-size: 0.8rem;
}

.location-picker-hint svg {
    flex-shrink: 0;
}

.location-picker-privacy {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: #fef3c7;
    color: #92400e;
    font-size: 0.8rem;
}

.location-picker-privacy svg {
    flex-shrink: 0;
}

.location-picker-coords {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 0.75rem;
    background: var(--gray-50);
    font-size: 0.8rem;
    font-family: monospace;
}

.location-picker-coords .coord-label {
    color: var(--gray-500);
}

.location-picker-coords .coord-value {
    color: var(--gray-900);
    font-weight: 500;
}

.location-picker-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--gray-200);
    background: var(--gray-50);
}

.location-picker-footer .btn-detect {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    background: white;
    border: 1px solid var(--gray-300);
    border-radius: 0.5rem;
    font-size: 0.875rem;
    color: var(--gray-700);
    cursor: pointer;
    transition: all 0.2s ease;
}

.location-picker-footer .btn-detect:hover {
    background: var(--gray-50);
    border-color: var(--gray-400);
}

.location-picker-footer .btn-detect svg {
    width: 16px;
    height: 16px;
}

.location-picker-footer .footer-actions {
    display: flex;
    gap: 0.75rem;
}

.location-picker-footer .btn-cancel {
    padding: 0.625rem 1.25rem;
    background: white;
    border: 1px solid var(--gray-300);
    border-radius: 0.5rem;
    font-size: 0.875rem;
    color: var(--gray-700);
    cursor: pointer;
    transition: all 0.2s ease;
}

.location-picker-footer .btn-cancel:hover {
    background: var(--gray-50);
}

.location-picker-footer .btn-save {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: var(--primary);
    border: none;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    color: white;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.location-picker-footer .btn-save:hover {
    background: var(--primary-dark);
}

.location-picker-footer .btn-save:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Mobile responsiveness for map */
@media (max-width: 768px) {
    .map-page {
        height: calc(100vh - 56px);
    }

    .map-header {
        flex-direction: column;
        gap: 0.5rem;
        padding: 0.75rem 1rem;
    }

    .map-header h1 {
        font-size: 1.125rem;
    }

    .map-filters .filter-btn {
        flex-shrink: 0;
        padding: 0.4rem 0.875rem;
        font-size: 0.8rem;
    }

    .map-filters .province-select {
        flex-shrink: 0;
        min-width: 120px;
        padding: 0.4rem 1.75rem 0.4rem 0.75rem;
        font-size: 0.8rem;
    }

    .map-filters-row {
        padding: 0.5rem 1rem;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .map-filters-row::-webkit-scrollbar {
        display: none;
    }

    .map-advanced-filters {
        padding: 0.75rem 1rem;
        gap: 0.75rem;
    }

    .map-filter-chips {
        gap: 0.375rem;
    }

    .filter-chip {
        padding: 0.3rem 0.5rem;
        font-size: 0.75rem;
    }

    .filter-chip .chip-icon {
        font-size: 0.75rem;
    }

    .filter-chip .chip-flag {
        width: 14px;
        height: 10px;
    }

    .map-age-inputs .age-input {
        width: 55px;
        padding: 0.3rem 0.4rem;
        font-size: 0.8rem;
    }

    .location-picker-modal {
        max-height: 85vh;
    }

    .location-picker-map {
        height: 280px;
    }

    .location-picker-footer {
        flex-direction: column;
        gap: 0.75rem;
    }

    .location-picker-footer .btn-detect {
        width: 100%;
        justify-content: center;
    }

    .location-picker-footer .footer-actions {
        width: 100%;
    }

    .location-picker-footer .btn-cancel,
    .location-picker-footer .btn-save {
        flex: 1;
    }
}

/* Marker cluster styles */
.marker-cluster-small {
    background-color: rgba(229, 57, 53, 0.6);
}
.marker-cluster-small div {
    background-color: rgba(229, 57, 53, 0.9);
}

.marker-cluster-medium {
    background-color: rgba(229, 57, 53, 0.7);
}
.marker-cluster-medium div {
    background-color: rgba(229, 57, 53, 0.95);
}

.marker-cluster-large {
    background-color: rgba(229, 57, 53, 0.8);
}
.marker-cluster-large div {
    background-color: rgba(229, 57, 53, 1);
}

.marker-cluster {
    background-clip: padding-box;
    border-radius: 20px;
}
.marker-cluster div {
    width: 30px;
    height: 30px;
    margin-left: 5px;
    margin-top: 5px;
    text-align: center;
    border-radius: 15px;
    font: 12px "Helvetica Neue", Arial, Helvetica, sans-serif;
    font-weight: bold;
    color: white;
    line-height: 30px;
}

/* =====================================================
   JOBS MAP PAGE STYLES
   ===================================================== */

.jobs-map-page {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 60px);
    background: var(--gray-50);
}

.jobs-map-header {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: white;
    border-bottom: 1px solid var(--gray-200);
    position: relative;
    z-index: 5;
}

.jobs-map-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.jobs-map-title-row h1 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-900);
    margin: 0;
}

.jobs-map-title-row h1 svg {
    color: var(--primary);
}

.jobs-map-filters {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.map-filter-select {
    padding: 0.5rem 1rem;
    border: 1px solid var(--gray-300);
    border-radius: 0.5rem;
    font-size: 0.875rem;
    background: white;
    min-width: 160px;
    cursor: pointer;
}

.map-filter-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(229, 57, 53, 0.1);
}

.jobs-map-stats {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.jobs-map-stats .loading-indicator {
    color: var(--gray-500);
    font-size: 0.875rem;
}

.jobs-map-stats .job-count {
    font-size: 0.875rem;
    color: var(--gray-600);
    font-weight: 500;
}

.jobs-map-container {
    flex: 1;
    width: 100%;
    position: relative;
    z-index: 1;
}

.map-error {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    background: #fef2f2;
    color: #dc2626;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    border: 1px solid #fecaca;
    z-index: 10000;
}

/* Job Map Marker Styles */
.job-map-marker-container {
    /* Override Leaflet default icon styles */
}

.job-map-marker-wrapper {
    position: relative;
    width: 50px;
    height: 50px;
}

.job-map-marker {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    background: white;
    position: relative;
}

.job-map-marker.online {
    border-color: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.3), 0 2px 8px rgba(0, 0, 0, 0.2);
}

.job-marker-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.job-marker-badge {
    position: absolute;
    bottom: -4px;
    right: -4px;
    font-size: 14px;
    background: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* Job Map Popup Styles */
.job-map-popup {
    min-width: 200px;
    padding: 0.25rem;
}

.job-popup-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.job-popup-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-bottom: 0.75rem;
}

.job-popup-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: var(--gray-600);
}

.job-popup-row .popup-icon {
    font-size: 0.875rem;
    width: 20px;
    text-align: center;
}

.job-popup-row.budget {
    color: var(--primary);
    font-weight: 600;
}

.job-popup-link {
    display: block;
    text-align: center;
    padding: 0.5rem 1rem;
    background: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 0.375rem;
    font-size: 0.8125rem;
    font-weight: 500;
    transition: background 0.2s ease;
}

.job-popup-link:hover {
    background: var(--primary-dark);
    color: white;
}

/* Job Board Header Actions */
.job-board-header-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.job-board-header-actions .btn-map {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Mobile responsiveness for jobs map */
@media (max-width: 768px) {
    .jobs-map-page {
        height: calc(100vh - 56px);
    }

    .jobs-map-header {
        padding: 0.75rem 1rem;
    }

    .jobs-map-title-row h1 {
        font-size: 1.125rem;
    }

    .jobs-map-filters {
        flex-direction: column;
        gap: 0.5rem;
    }

    .map-filter-select {
        width: 100%;
        min-width: unset;
    }

    .job-board-header-actions {
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
    }

    .job-board-header-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .job-board-header-actions .btn-map .btn-text {
        display: inline;
    }
}

/* =====================================================
   PLACE AUTOCOMPLETE COMPONENT
   ===================================================== */

.place-autocomplete {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
}

.place-input-container {
    position: relative;
    display: flex;
    align-items: center;
}

.place-input-icon {
    position: absolute;
    left: 0.875rem;
    width: 18px;
    height: 18px;
    color: var(--gray-400);
    pointer-events: none;
    z-index: 1;
}

.place-input {
    width: 100%;
    padding: 0.75rem 2.5rem 0.75rem 2.75rem;
    font-size: 0.9375rem;
    border: 1px solid var(--gray-300);
    border-radius: 0.5rem;
    background: white;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.place-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.1);
}

.place-input::placeholder {
    color: var(--gray-400);
}

.place-clear-btn {
    position: absolute;
    right: 0.5rem;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-100);
    border: none;
    border-radius: 50%;
    font-size: 1.125rem;
    color: var(--gray-500);
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.place-clear-btn:hover {
    background: var(--gray-200);
    color: var(--gray-700);
}

.place-map-container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

.place-map {
    width: 100%;
    height: 280px;
    border-radius: 0.75rem;
    border: 1px solid var(--gray-200);
    overflow: hidden;
    z-index: 0;
}

.place-map-hint {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8125rem;
    color: var(--gray-500);
    margin: 0;
}

.place-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    color: var(--gray-500);
    font-size: 0.875rem;
}

/* Google Places Autocomplete Dropdown Override */
.pac-container {
    font-family: inherit;
    border-radius: 0.5rem;
    border: 1px solid var(--gray-200);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    margin-top: 4px;
    z-index: 1100 !important;
}

.pac-item {
    padding: 0.625rem 0.875rem;
    font-size: 0.875rem;
    border-top: 1px solid var(--gray-100);
    cursor: pointer;
    transition: background 0.15s ease;
}

.pac-item:first-child {
    border-top: none;
}

.pac-item:hover {
    background: var(--gray-50);
}

.pac-item-selected,
.pac-item-selected:hover {
    background: rgba(229, 57, 53, 0.05);
}

.pac-icon {
    margin-right: 0.75rem;
}

.pac-item-query {
    font-size: 0.9375rem;
    color: var(--gray-900);
    font-weight: 500;
}

.pac-matched {
    font-weight: 600;
    color: var(--primary);
}

/* Hide Google logo in autocomplete */
.pac-logo::after {
    display: none;
}

/* Google Places Web Component (gmp-place-autocomplete) styling */
gmp-place-autocomplete,
.place-autocomplete-input {
    display: block;
    width: 100%;
    font-size: 16px !important; /* Prevent iOS zoom on focus */
    touch-action: manipulation; /* Disable double-tap zoom */
}

/* Prevent input zoom on mobile - apply to all inputs in the form */
.job-form input,
.job-form textarea,
.job-form select {
    font-size: 16px; /* Minimum 16px prevents iOS zoom */
    touch-action: manipulation;
}

/* Style the shadow DOM input via CSS custom properties */
gmp-place-autocomplete::part(input) {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 16px !important; /* Must be 16px+ to prevent iOS zoom */
    font-family: inherit;
    border: 1px solid var(--gray-300);
    border-radius: 0.5rem;
    background: white;
    color: var(--gray-900);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    -webkit-appearance: none; /* Remove iOS default styling */
    appearance: none;
}

gmp-place-autocomplete::part(input):focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.1);
}

/* Place input wrapper for showing selected location */
.place-input-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.place-selected-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, rgba(229, 57, 53, 0.05), rgba(229, 57, 53, 0.1));
    border: 1px solid rgba(229, 57, 53, 0.2);
    border-radius: 0.5rem;
}

.place-selected-name {
    flex: 1;
    font-size: 0.9375rem;
    color: var(--gray-900);
    font-weight: 500;
    word-break: break-word;
}

/* Mobile responsiveness for place autocomplete */
@media (max-width: 768px) {
    .place-input {
        padding: 0.625rem 2.25rem 0.625rem 2.5rem;
        font-size: 1rem; /* Prevent iOS zoom */
    }

    .place-map {
        height: 220px;
    }

    .pac-container {
        width: calc(100vw - 2rem) !important;
        left: 1rem !important;
    }

    /* Ensure Google Places component input doesn't cause zoom */
    gmp-place-autocomplete {
        font-size: 16px !important;
    }

    gmp-place-autocomplete::part(input) {
        font-size: 16px !important;
        padding: 0.875rem 1rem;
    }
}

/* Place Autocomplete Trigger Button */
.place-trigger-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.875rem 1rem;
    background: white;
    border: 1px solid var(--gray-300);
    border-radius: 0.5rem;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    text-align: left;
    font-size: 16px;
}

.place-trigger-btn:hover {
    border-color: var(--primary);
}

.place-trigger-btn:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.1);
}

.place-trigger-icon {
    color: var(--primary);
    flex-shrink: 0;
}

.place-trigger-placeholder {
    color: var(--gray-400);
    flex: 1;
}

.place-trigger-value {
    color: var(--gray-900);
    flex: 1;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.place-trigger-clear {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-100);
    border: none;
    border-radius: 50%;
    font-size: 1rem;
    color: var(--gray-500);
    cursor: pointer;
    flex-shrink: 0;
}

.place-trigger-clear:hover {
    background: var(--gray-200);
    color: var(--gray-700);
}

/* Place Autocomplete Modal */
.place-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10001;
    animation: fadeIn 0.2s ease;
}

.place-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: white;
    display: flex;
    flex-direction: column;
    animation: slideUp 0.3s ease;
    z-index: 10002;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.place-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    border-bottom: 1px solid var(--gray-200);
    background: white;
}

.place-modal-close {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-100);
    border: none;
    border-radius: 50%;
    color: var(--gray-700);
    cursor: pointer;
    flex-shrink: 0;
    order: 2;
}

.place-modal-close:hover {
    background: var(--gray-200);
    color: var(--gray-900);
}

.place-modal-close:active {
    background: var(--gray-300);
}

.place-modal-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gray-900);
    margin: 0;
    order: 1;
}

.place-modal-body {
    flex: 1;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    overflow: auto;
}

.place-modal-search {
    padding: 0.5rem;
    background: var(--gray-50);
    border-radius: 0.75rem;
}

.place-modal-search gmp-place-autocomplete {
    font-size: 18px !important;
}

.place-modal-search gmp-place-autocomplete::part(input) {
    font-size: 18px !important;
    padding: 1rem;
    border-radius: 0.5rem;
}

.place-modal-hint {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: rgba(33, 150, 243, 0.1);
    border-radius: 0.5rem;
    font-size: 0.875rem;
    color: var(--info);
}

/* Desktop modal styles */
@media (min-width: 769px) {
    .place-modal {
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 500px;
        max-height: 80vh;
        border-radius: 1rem;
        box-shadow: var(--shadow-xl);
        animation: scaleIn 0.3s ease;
    }

    @keyframes scaleIn {
        from {
            transform: translate(-50%, -50%) scale(0.9);
            opacity: 0;
        }
        to {
            transform: translate(-50%, -50%) scale(1);
            opacity: 1;
        }
    }
}

/* Province display (read-only from Google Places) */
.province-display {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1rem;
    background: var(--gray-100);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    color: var(--gray-700);
    font-size: 0.9375rem;
}

.province-display .province-icon {
    font-size: 1.125rem;
}

.province-display .province-name {
    font-weight: 500;
}

/* Job detail map section */
.job-map-section {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-200);
}

.job-map-section h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.job-detail-map {
    width: 100%;
    height: 250px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--gray-200);
}

@media (max-width: 768px) {
    .job-detail-map {
        height: 200px;
    }
}

/* ============================================
   Admin Settings Page Styles
   ============================================ */

.settings-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.settings-category {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
}

.category-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--gray-200);
}

.category-header svg {
    width: 1.5rem;
    height: 1.5rem;
    color: var(--primary);
}

.category-header h2 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gray-800);
    margin: 0;
}

.settings-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.setting-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: var(--gray-50);
    border-radius: var(--radius-md);
    transition: background-color var(--transition-fast);
}

.setting-item:hover {
    background: var(--gray-100);
}

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

.setting-name {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-800);
    margin-bottom: 0.25rem;
}

.setting-desc {
    font-size: 0.75rem;
    color: var(--gray-500);
    line-height: 1.4;
}

.setting-control {
    flex-shrink: 0;
    margin-left: 1rem;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    width: 48px;
    height: 26px;
    background: var(--gray-300);
    border: none;
    border-radius: 13px;
    cursor: pointer;
    transition: background-color var(--transition-fast);
    padding: 0;
}

.toggle-switch.active {
    background: var(--success);
}

.toggle-slider {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    background: var(--white);
    border-radius: 50%;
    transition: transform var(--transition-fast);
    box-shadow: var(--shadow-sm);
}

.toggle-switch.active .toggle-slider {
    transform: translateX(22px);
}

/* Number Input */
.setting-input-number {
    width: 80px;
    padding: 0.5rem;
    font-size: 0.875rem;
    text-align: center;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    transition: border-color var(--transition-fast);
}

.setting-input-number:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(229, 57, 53, 0.1);
}

/* Text Input */
.setting-input-text {
    width: 200px;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    transition: border-color var(--transition-fast);
}

.setting-input-text:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(229, 57, 53, 0.1);
}

.setting-input-text::placeholder {
    color: var(--gray-400);
}

/* Header Actions */
.header-actions {
    display: flex;
    gap: 0.75rem;
}

.btn-save-all {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--white);
    background: var(--primary);
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-save-all:hover:not(:disabled) {
    background: var(--primary-hover);
}

.btn-save-all:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Mobile responsive for settings page */
@media (max-width: 768px) {
    .setting-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .setting-control {
        margin-left: 0;
        width: 100%;
    }

    .setting-input-text {
        width: 100%;
    }

    .header-actions {
        flex-direction: column;
        width: 100%;
    }

    .btn-save-all,
    .btn-refresh {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================
   Calendar Page Styles
   ============================================ */

.calendar-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
}

.calendar-container {
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

/* Calendar Header */
.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, var(--primary) 0%, #c62828 100%);
    color: var(--white);
}

.calendar-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.calendar-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
    min-width: 160px;
    text-align: center;
}

.nav-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.today-btn {
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    border: 2px solid rgba(255, 255, 255, 0.5);
    background: transparent;
    color: var(--white);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.today-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--white);
}

/* Calendar Legend */
.calendar-legend {
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding: 0.75rem 1rem;
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: var(--gray-600);
}

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: var(--radius-sm);
}

.legend-dot.my-job {
    background: linear-gradient(135deg, var(--primary) 0%, #c62828 100%);
}

.legend-dot.accepted-job {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
}

/* Calendar Grid */
.calendar-grid {
    padding: 1rem;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    margin-bottom: 0.5rem;
}

.weekday {
    text-align: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gray-500);
    padding: 0.5rem;
    text-transform: uppercase;
}

/* Calendar Body */
.calendar-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* Calendar Week */
.calendar-week {
    position: relative;
    min-height: 80px;
}

.week-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}

/* Calendar Day Cell */
.calendar-day {
    position: relative;
    min-height: 70px;
    padding: 0.5rem;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
}

.calendar-day:hover {
    background: var(--gray-50);
    border-color: var(--primary);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.calendar-day.other-month {
    background: var(--gray-50);
    opacity: 0.5;
}

.calendar-day.other-month:hover {
    opacity: 0.8;
}

.calendar-day.today {
    border: 2px solid var(--primary);
    background: rgba(229, 57, 53, 0.05);
}

.calendar-day.today .day-number {
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.calendar-day.has-items {
    background: var(--white);
}

.day-number {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: 0.25rem;
}

/* Day Dots */
.day-dots {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
    margin-top: auto;
}

.dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.dot.my-job {
    background: var(--primary);
}

.dot.accepted-job {
    background: #22c55e;
}

.dot-more {
    font-size: 0.625rem;
    color: var(--gray-500);
    font-weight: 500;
}

/* Week Bars (Multi-day job bars) */
.week-bars {
    position: absolute;
    top: 40px;
    left: 0;
    right: 0;
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    padding: 0 4px;
    pointer-events: none;
}

.job-bar {
    height: 20px;
    border-radius: var(--radius-sm);
    padding: 0 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.6875rem;
    font-weight: 500;
    color: var(--white);
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    pointer-events: auto;
    cursor: pointer;
    transition: all 0.2s ease;
}

.job-bar:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.job-bar.my-job {
    background: linear-gradient(135deg, var(--primary) 0%, #c62828 100%);
}

.job-bar.accepted-job {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
}

.bar-arrow {
    font-size: 0.75rem;
    opacity: 0.8;
}

.bar-arrow.left {
    margin-right: 0.125rem;
}

.bar-arrow.right {
    margin-left: auto;
}

.bar-title {
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

/* Calendar Modal */
.calendar-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease;
}

.calendar-modal {
    background: var(--white);
    border-radius: var(--radius-xl);
    width: 90%;
    max-width: 480px;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    animation: slideUp 0.3s ease;
}

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

.calendar-modal .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, var(--primary) 0%, #c62828 100%);
    color: var(--white);
}

.calendar-modal .modal-header h3 {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
}

.calendar-modal .modal-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.calendar-modal .modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.calendar-modal .modal-body {
    padding: 1rem;
    overflow-y: auto;
    max-height: calc(80vh - 60px);
}

.no-jobs-message {
    text-align: center;
    color: var(--gray-500);
    padding: 2rem;
    font-size: 0.9375rem;
}

/* Job List in Modal */
.calendar-modal .job-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.calendar-modal .job-item {
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    padding: 1rem;
    border-left: 4px solid;
    transition: all 0.2s ease;
}

.calendar-modal .job-item:hover {
    background: var(--gray-100);
    transform: translateX(4px);
}

.calendar-modal .job-item.my-job {
    border-left-color: var(--primary);
}

.calendar-modal .job-item.accepted-job {
    border-left-color: #22c55e;
}

.job-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.job-type-badge {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-full);
    background: var(--gray-200);
    color: var(--gray-600);
}

.job-item.my-job .job-type-badge {
    background: rgba(229, 57, 53, 0.1);
    color: var(--primary);
}

.job-item.accepted-job .job-type-badge {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
}

.job-time {
    font-size: 0.8125rem;
    color: var(--gray-500);
}

.calendar-modal .job-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-800);
    margin: 0 0 0.5rem 0;
}

.job-duration {
    font-size: 0.8125rem;
    color: var(--gray-500);
    margin-bottom: 0.75rem;
}

.job-actions {
    display: flex;
    gap: 0.5rem;
}

.job-actions .btn-view,
.job-actions .btn-chat {
    flex: 1;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-md);
    border: none;
    font-size: 0.8125rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.job-actions .btn-view {
    background: var(--gray-200);
    color: var(--gray-700);
}

.job-actions .btn-view:hover {
    background: var(--gray-300);
}

.job-actions .btn-chat {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: var(--white);
}

.job-actions .btn-chat:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* Calendar Mobile Responsive */
@media (max-width: 768px) {
    .calendar-page {
        padding: 0.5rem;
    }

    .calendar-header {
        flex-direction: column;
        gap: 0.75rem;
        padding: 1rem;
    }

    .calendar-title {
        font-size: 1.125rem;
        min-width: auto;
    }

    .calendar-legend {
        gap: 1rem;
        padding: 0.5rem;
    }

    .legend-item {
        font-size: 0.75rem;
    }

    .calendar-grid {
        padding: 0.5rem;
    }

    .weekday {
        font-size: 0.625rem;
        padding: 0.25rem;
    }

    .calendar-day {
        min-height: 50px;
        padding: 0.25rem;
    }

    .day-number {
        font-size: 0.75rem;
    }

    .calendar-day.today .day-number {
        width: 20px;
        height: 20px;
        font-size: 0.6875rem;
    }

    .dot {
        width: 4px;
        height: 4px;
    }

    .week-bars {
        top: 28px;
    }

    .job-bar {
        height: 16px;
        font-size: 0.5625rem;
        padding: 0 0.25rem;
    }

    .calendar-modal {
        width: 95%;
        max-height: 85vh;
    }

    .calendar-modal .modal-body {
        max-height: calc(85vh - 60px);
    }
}

/* ========================================
   SYSTEM CHAT STYLES
   ======================================== */

/* System Room Card in Chat List */
.chat-room-card.system-room {
    background: linear-gradient(135deg, #fff8e1 0%, #fffde7 100%);
    border-left: 3px solid #ffc107;
}

.chat-room-card.system-room:hover {
    background: linear-gradient(135deg, #fff3c4 0%, #fff8e1 100%);
}

.chat-room-card.system-room.active {
    background: linear-gradient(135deg, #fff3c4 0%, #fffde7 100%);
    border-left: 3px solid #ff9800;
}

.chat-room-card.system-room.has-unread {
    background: linear-gradient(135deg, #ffecb3 0%, #fff8e1 100%);
}

/* System Avatar */
.room-avatar-modern.system {
    background: linear-gradient(135deg, #ff9800 0%, #ffc107 100%);
    border-radius: 50%;
}

.room-avatar-modern.system .avatar-system {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    background: linear-gradient(135deg, #ff9800 0%, #ffc107 100%);
    border-radius: 50%;
    border: 2px solid var(--white);
    box-shadow: 0 2px 8px rgba(255, 152, 0, 0.3);
}

.avatar-system {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    background: linear-gradient(135deg, #ff9800 0%, #ffc107 100%);
    border-radius: 50%;
    border: 2px solid var(--white);
    box-shadow: 0 2px 8px rgba(255, 152, 0, 0.3);
}

/* System Room Title */
.room-job-title.system {
    color: #e65100;
}

/* System Header Icon */
.system-header-icon {
    font-size: 1.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #ff9800 0%, #ffc107 100%);
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(255, 152, 0, 0.3);
}

/* System Header Title */
.chat-job-title.system {
    color: #e65100;
}

/* System Header Meta */
.chat-header-meta.system {
    color: var(--gray-500);
    font-style: italic;
}

/* System Message Content */
.msg-system-content {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: flex-start;
}

/* System Action Button - Improved visibility */
.system-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    background: linear-gradient(135deg, #ff9800 0%, #ffc107 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    width: fit-content;
    box-shadow: 0 2px 6px rgba(255, 152, 0, 0.25);
    margin-top: 0.25rem;
}

.system-action-btn:hover {
    background: linear-gradient(135deg, #fb8c00 0%, #ffb300 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.35);
    color: white;
    text-decoration: none;
}

.system-action-btn:active {
    transform: translateY(0);
}

/* Mobile adjustments for system room */
@media (max-width: 768px) {
    .system-header-icon {
        width: 28px;
        height: 28px;
        font-size: 1rem;
    }

    .system-action-btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
}

/* ========================================
   ADMIN SYSTEM MESSAGES PAGE
   ======================================== */

.admin-system-messages {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.admin-system-messages .admin-header {
    margin-bottom: 0.5rem;
}

.admin-system-messages .admin-header h1 {
    margin-bottom: 0;
    font-size: 1.5rem;
}

/* Broadcast Section - Compact */
.broadcast-section {
    padding: 0.875rem 1rem;
}

.broadcast-section h3 {
    margin: 0 0 0.5rem 0;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-700);
}

.broadcast-form {
    display: flex;
    gap: 0.75rem;
    align-items: flex-end;
}

.broadcast-input {
    flex: 1;
    min-height: 40px;
    max-height: 80px;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    font-size: 0.8rem;
    resize: none;
}

.broadcast-input:focus {
    outline: none;
    border-color: var(--primary);
}

.broadcast-form .btn {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
}

/* System Messages Container */
.system-messages-container {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 1rem;
    min-height: 450px;
}

/* System Chat List - Compact */
.system-chat-list {
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.system-chat-list h3 {
    padding: 0.625rem 0.875rem;
    margin: 0;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gray-700);
    border-bottom: 1px solid var(--gray-200);
    background: var(--gray-50);
}

.system-chat-list .chat-list {
    flex: 1;
    overflow-y: auto;
    max-height: 380px;
}

.system-chat-list .empty-state {
    padding: 1.5rem;
    text-align: center;
    color: var(--gray-500);
    font-size: 0.8rem;
}

/* Load More Button */
.system-chat-list .load-more-btn {
    width: 100%;
    padding: 0.5rem;
    font-size: 0.75rem;
    color: var(--gray-600);
    background: var(--gray-50);
    border: none;
    border-top: 1px solid var(--gray-200);
    cursor: pointer;
    transition: background 0.2s;
}

.system-chat-list .load-more-btn:hover {
    background: var(--gray-100);
    color: var(--primary);
}

.system-chat-list .load-more-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.system-chat-item {
    display: flex;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    transition: background 0.15s;
    border-bottom: 1px solid var(--gray-100);
}

.system-chat-item:hover {
    background: var(--gray-50);
}

.system-chat-item.selected {
    background: rgba(229, 57, 53, 0.06);
    border-left: 2px solid var(--primary);
    padding-left: calc(0.75rem - 2px);
}

.system-chat-item.has-unread {
    background: rgba(229, 57, 53, 0.03);
}

.system-chat-item .chat-avatar {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
}

.system-chat-item .chat-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.system-chat-item .chat-avatar .avatar-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.system-chat-item .chat-info {
    flex: 1;
    min-width: 0;
}

.system-chat-item .chat-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.375rem;
}

.system-chat-item .chat-name {
    font-weight: 600;
    font-size: 0.8rem;
    color: var(--gray-900);
}

.system-chat-item .unread-badge {
    background: var(--primary);
    color: white;
    font-size: 0.6rem;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

.system-chat-item .chat-preview {
    margin: 0.125rem 0 0;
    font-size: 0.7rem;
    color: var(--gray-500);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
}

.system-chat-item .chat-time {
    font-size: 0.65rem;
    color: var(--gray-400);
}

/* System Messages View - Compact */
.system-messages-view {
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.system-messages-view .messages-header {
    padding: 0.625rem 0.875rem;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    background: var(--gray-50);
}

.system-messages-view .user-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.system-messages-view .user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}

.system-messages-view .user-name {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--gray-800);
}

.system-messages-view .messages-container {
    flex: 1;
    overflow-y: auto;
    padding: 0.75rem;
    background: var(--gray-50);
    max-height: 340px;
}

.system-messages-view .messages-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.system-messages-view .message-item {
    display: flex;
}

.system-messages-view .message-item.admin {
    justify-content: space-between;
    align-items: center;
}

.system-messages-view .message-item.system {
    justify-content: flex-start;
}

.system-messages-view .message-bubble {
    max-width: 80%;
    padding: 0.5rem 0.75rem;
    border-radius: 0.75rem;
    background: var(--white);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.system-messages-view .message-item.admin .message-bubble {
    background: var(--primary);
    color: white;
    border-bottom-right-radius: 4px;
}

.system-messages-view .message-item.system .message-bubble {
    background: #fffde7;
    border: 1px solid #ffe082;
}

.system-messages-view .system-type-badge {
    display: inline-block;
    font-size: 0.6rem;
    font-weight: 600;
    color: #b45309;
    background: #fef3c7;
    padding: 0.1rem 0.375rem;
    border-radius: var(--radius-full);
    margin-bottom: 0.2rem;
}

.system-messages-view .message-content {
    margin: 0;
    font-size: 0.8rem;
    line-height: 1.4;
    word-break: break-word;
    color: var(--gray-800);
}

.system-messages-view .action-link {
    display: inline-block;
    margin-top: 0.375rem;
    font-size: 0.7rem;
    color: var(--primary);
    text-decoration: none;
}

.system-messages-view .action-link:hover {
    text-decoration: underline;
}

.system-messages-view .message-time {
    display: block;
    font-size: 0.6rem;
    color: var(--gray-400);
    margin-top: 0.2rem;
    text-align: right;
}

.system-messages-view .message-item.admin .message-time {
    color: rgba(255, 255, 255, 0.7);
}

.system-messages-view .empty-messages {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    color: var(--gray-500);
    font-size: 0.85rem;
    min-height: 150px;
}

/* Reply Form - Compact */
.system-messages-view .reply-form {
    display: flex;
    gap: 0.5rem;
    padding: 0.625rem 0.75rem;
    border-top: 1px solid var(--gray-200);
    background: var(--white);
}

.system-messages-view .reply-input {
    flex: 1;
    min-height: 36px;
    max-height: 80px;
    padding: 0.5rem 0.625rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    font-size: 0.8rem;
    resize: none;
}

.system-messages-view .reply-input:focus {
    outline: none;
    border-color: var(--primary);
}

.system-messages-view .send-btn {
    flex-shrink: 0;
    padding: 0.5rem 0.875rem;
    font-size: 0.8rem;
}

/* Mobile responsive */
@media (max-width: 900px) {
    .system-messages-container {
        grid-template-columns: 1fr;
    }

    .system-chat-list {
        max-height: 300px;
    }

    .system-messages-view {
        min-height: 400px;
    }
}

@media (max-width: 600px) {
    .broadcast-form {
        flex-direction: column;
    }

    .broadcast-form .btn {
        width: 100%;
    }
}

/* ========================================
   Job Image Upload Component
   ======================================== */

.job-image-upload {
    width: 100%;
}

.image-upload-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.image-count {
    font-size: 0.875rem;
    color: var(--gray-500);
    font-weight: 500;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 0.75rem;
}

.image-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--gray-100);
    transition: opacity var(--transition-fast);
}

.image-item.deleting {
    opacity: 0.5;
}

.image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-item .delete-btn {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-fast), background var(--transition-fast);
}

.image-item:hover .delete-btn {
    opacity: 1;
}

.image-item .delete-btn:hover {
    background: var(--error);
}

.image-item .delete-btn:disabled {
    cursor: not-allowed;
}

.image-upload-btn {
    aspect-ratio: 1;
    border: 2px dashed var(--gray-300);
    border-radius: var(--radius-md);
    background: var(--gray-50);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    color: var(--gray-500);
}

.image-upload-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--gray-100);
}

.image-upload-btn input[type="file"] {
    display: none;
}

.image-upload-btn span {
    font-size: 0.75rem;
    font-weight: 500;
}

.image-upload-btn.uploading {
    pointer-events: none;
    opacity: 0.7;
}

.image-upload-btn .spinner {
    width: 24px;
    height: 24px;
    border: 2px solid var(--gray-300);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.spinner-small {
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* Mobile adjustments for job image upload */
@media (max-width: 600px) {
    .image-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }

    .image-item .delete-btn {
        opacity: 1;
        width: 24px;
        height: 24px;
    }
}

/* Upload progress bar */
.job-image-upload .upload-progress-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    max-width: 200px;
}

.job-image-upload .upload-progress-bar {
    flex: 1;
    height: 6px;
    background: #e0e0e0;
    border-radius: 3px;
    overflow: hidden;
}

.job-image-upload .upload-progress-fill {
    height: 100%;
    background: var(--primary);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.job-image-upload .upload-progress-text {
    font-size: 0.75rem;
    color: var(--primary);
    font-weight: 500;
    white-space: nowrap;
}

/* Make job images clickable for lightbox */
.job-image-upload .image-item img {
    cursor: pointer;
}
