/* =====================================================
   İŞ TAP AI — WEB APP STYLESHEET
   Qaf Studio © 2026
   Font: Syne (display) + DM Sans (body)
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=DM+Sans:wght@300;400;500;600;700&display=swap');

/* ── ROOT TOKENS ── */
:root {
    --primary: #FF8C00;
    --primary-hover: #e07a00;
    --secondary: #FFA500;
    --accent: #FFD700;
    --dark: #080c1e;
    --darker: #040610;
    --surface: #0a0f23;
    --surface-2: #111633;
    --surface-3: #181d3a;
    --light: #ffffff;
    --gray: #8892b0;
    --gray-light: #a8b2d1;
    --gray-dark: #495670;
    --card-bg: rgba(10, 15, 35, 0.75);
    --card-hover: rgba(16, 22, 48, 0.85);
    --glow: rgba(255, 140, 0, 0.35);
    --success: #22c55e;
    --error: #ef4444;
    --warning: #f59e0b;
    --info: #3b82f6;
    --border: rgba(255, 140, 0, 0.12);
    --border-hover: rgba(255, 140, 0, 0.3);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 16px 64px rgba(0, 0, 0, 0.6);
    --radius: 16px;
    --radius-sm: 10px;
    --radius-lg: 24px;
    --radius-full: 100px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --nav-height: 64px;
    --sidebar-width: 280px;
}

/* ── RESET ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--darker);
    color: var(--light);
    overflow-x: hidden;
    line-height: 1.6;
    min-height: 100vh;
}

/* ── BACKGROUND ── */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at 15% 40%, rgba(255,140,0,0.08) 0%, transparent 50%),
        radial-gradient(circle at 85% 75%, rgba(255,165,0,0.06) 0%, transparent 50%),
        radial-gradient(circle at 50% 10%, rgba(255,215,0,0.04) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* ══════════════════════════════
   NAVBAR
══════════════════════════════ */
.app-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--nav-height);
    background: rgba(4, 6, 16, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    display: flex;
    align-items: center;
    padding: 0 24px;
}

.nav-inner {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    flex-shrink: 0;
}

.nav-brand img {
    width: 36px; height: 36px;
    border-radius: 10px;
}

.nav-brand span {
    font-family: 'Syne', sans-serif;
    font-size: 20px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--light), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: var(--radius-full);
    color: var(--gray);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    white-space: nowrap;
}

.nav-link:hover {
    color: var(--light);
    background: rgba(255, 255, 255, 0.06);
}

.nav-link.active {
    color: var(--primary);
    background: rgba(255, 140, 0, 0.1);
}

.nav-link .nav-icon {
    font-size: 18px;
}

.nav-link .badge {
    background: var(--primary);
    color: #000;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
    line-height: 1.2;
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-avatar {
    width: 34px; height: 34px;
    border-radius: 50%;
    border: 2px solid var(--border);
    object-fit: cover;
    cursor: pointer;
    transition: var(--transition);
}

.nav-avatar:hover { border-color: var(--primary); }

.nav-auth-btn {
    padding: 8px 20px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    color: #000;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.nav-auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px var(--glow);
}

.nav-auth-btn.secondary {
    background: rgba(255, 255, 255, 0.06);
    color: var(--light);
    border: 1px solid var(--border);
}

/* Mobile nav toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--light);
    font-size: 24px;
    cursor: pointer;
    padding: 4px;
}

/* ══════════════════════════════
   MAIN LAYOUT
══════════════════════════════ */
.app-main {
    padding-top: var(--nav-height);
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

.app-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px;
}

.app-container.narrow {
    max-width: 600px;
}

.app-container.wide {
    max-width: 1400px;
}

/* ══════════════════════════════
   PAGE HEADER
══════════════════════════════ */
.page-header {
    margin-bottom: 32px;
}

.page-title {
    font-family: 'Syne', sans-serif;
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--light), var(--gray-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.page-subtitle {
    color: var(--gray);
    font-size: 15px;
}

/* ══════════════════════════════
   CARDS
══════════════════════════════ */
.card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(16px);
    overflow: hidden;
    transition: var(--transition);
}

.card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow);
}

.card-body { padding: 24px; }
.card-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-title {
    font-family: 'Syne', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--light);
}

/* ══════════════════════════════
   JOB CARDS
══════════════════════════════ */
.job-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 20px;
}

.job-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(16px);
    padding: 24px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.job-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 0% 0%, rgba(255,140,0,0.06) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.4s;
}

.job-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-hover);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255,140,0,0.15);
}

.job-card:hover::before { opacity: 1; }

.job-card.urgent {
    border-color: rgba(255, 140, 0, 0.3);
    background: linear-gradient(135deg, rgba(255, 140, 0, 0.08), var(--card-bg));
}

.job-card-header {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.job-logo {
    width: 48px; height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(255,140,0,0.2), rgba(255,165,0,0.08));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
    border: 1px solid rgba(255, 140, 0, 0.15);
}

.job-logo img {
    width: 100%; height: 100%;
    border-radius: 14px;
    object-fit: cover;
}

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

.job-card-title {
    font-family: 'Syne', sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: var(--light);
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.job-company {
    font-size: 13px;
    color: var(--gray);
    font-weight: 500;
}

.job-card-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 14px;
    position: relative;
    z-index: 1;
}

.job-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.05);
    color: var(--gray-light);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.job-badge.urgent-badge {
    background: rgba(255, 140, 0, 0.15);
    color: var(--accent);
    border-color: rgba(255, 140, 0, 0.25);
    animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 0 0 transparent; }
    50% { box-shadow: 0 0 8px rgba(255, 140, 0, 0.2); }
}

.job-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}

.job-salary {
    font-family: 'Syne', sans-serif;
    font-size: 18px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.job-time {
    font-size: 12px;
    color: var(--gray-dark);
}

.job-location {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--gray);
    margin-top: 8px;
    position: relative;
    z-index: 1;
}

/* ══════════════════════════════
   JOB DETAIL
══════════════════════════════ */
.job-detail {
    max-width: 800px;
    margin: 0 auto;
}

.job-detail-hero {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px;
    margin-bottom: 24px;
    backdrop-filter: blur(16px);
}

.job-detail-header {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 24px;
}

.job-detail-logo {
    width: 64px; height: 64px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(255,140,0,0.2), rgba(255,165,0,0.08));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    flex-shrink: 0;
    border: 1px solid rgba(255, 140, 0, 0.2);
}

.job-detail-title {
    font-family: 'Syne', sans-serif;
    font-size: 28px;
    font-weight: 800;
    color: var(--light);
    letter-spacing: -0.02em;
    margin-bottom: 6px;
}

.job-detail-company {
    font-size: 16px;
    color: var(--gray);
    font-weight: 500;
}

.job-detail-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}

.job-stat {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius);
    padding: 16px;
    text-align: center;
}

.job-stat-value {
    font-family: 'Syne', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--light);
    margin-bottom: 4px;
}

.job-stat-label {
    font-size: 12px;
    color: var(--gray);
}

.job-detail-section {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    margin-bottom: 16px;
    backdrop-filter: blur(16px);
}

.job-detail-section h3 {
    font-family: 'Syne', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--light);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.job-detail-section p {
    color: var(--gray);
    line-height: 1.8;
    white-space: pre-line;
}

.job-detail-section ul {
    list-style: none;
    padding: 0;
}

.job-detail-section li {
    color: var(--gray);
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.job-detail-section li:last-child { border-bottom: none; }

.job-detail-section li::before {
    content: '✓';
    color: var(--success);
    font-weight: 700;
    flex-shrink: 0;
}

.job-detail-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

/* ══════════════════════════════
   BUTTONS
══════════════════════════════ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius);
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    line-height: 1.4;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    color: #000;
    box-shadow: 0 4px 16px rgba(255, 140, 0, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(255, 140, 0, 0.45);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.06);
    color: var(--light);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.btn-danger {
    background: rgba(239, 68, 68, 0.15);
    color: var(--error);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.btn-danger:hover {
    background: rgba(239, 68, 68, 0.25);
}

.btn-success {
    background: rgba(34, 197, 94, 0.15);
    color: var(--success);
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.btn-success:hover {
    background: rgba(34, 197, 94, 0.25);
}

.btn-icon {
    padding: 10px;
    border-radius: 12px;
}

.btn-lg {
    padding: 14px 32px;
    font-size: 16px;
    border-radius: var(--radius);
}

.btn-sm {
    padding: 6px 14px;
    font-size: 12px;
    border-radius: var(--radius-sm);
}

.btn-full { width: 100%; }

/* ══════════════════════════════
   FORMS
══════════════════════════════ */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-light);
    margin-bottom: 8px;
    letter-spacing: 0.02em;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    color: var(--light);
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    transition: var(--transition);
    outline: none;
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--gray-dark);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 140, 0, 0.1);
    background: rgba(255, 255, 255, 0.06);
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238892b0' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
    cursor: pointer;
}

.form-select option {
    background: var(--surface);
    color: var(--light);
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
    line-height: 1.6;
}

.form-hint {
    font-size: 12px;
    color: var(--gray-dark);
    margin-top: 6px;
}

.form-error {
    font-size: 12px;
    color: var(--error);
    margin-top: 6px;
}

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

/* Auth forms */
.auth-container {
    max-width: 440px;
    margin: 60px auto;
    padding: 0 24px;
}

.auth-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(20px);
    padding: 40px 36px;
    box-shadow: var(--shadow-lg);
}

.auth-logo {
    text-align: center;
    margin-bottom: 32px;
}

.auth-logo img {
    width: 64px; height: 64px;
    border-radius: 18px;
    box-shadow: 0 0 40px var(--glow);
}

.auth-title {
    font-family: 'Syne', sans-serif;
    font-size: 28px;
    font-weight: 800;
    color: var(--light);
    text-align: center;
    margin-bottom: 8px;
}

.auth-subtitle {
    font-size: 14px;
    color: var(--gray);
    text-align: center;
    margin-bottom: 32px;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 24px 0;
    color: var(--gray-dark);
    font-size: 12px;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
}

.auth-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 14px;
    color: var(--gray);
}

.auth-footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.auth-footer a:hover { color: var(--accent); }

.google-btn {
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    color: var(--light);
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: var(--transition);
}

.google-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

/* ══════════════════════════════
   FILTERS BAR
══════════════════════════════ */
.filters-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-bottom: 24px;
    padding: 16px 20px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(16px);
}

.search-input-wrap {
    flex: 1;
    min-width: 200px;
    position: relative;
}

.search-input-wrap .search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-dark);
    font-size: 16px;
    pointer-events: none;
}

.search-input-wrap input {
    width: 100%;
    padding: 10px 14px 10px 40px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-sm);
    color: var(--light);
    font-size: 14px;
    outline: none;
    transition: var(--transition);
    font-family: 'DM Sans', sans-serif;
}

.search-input-wrap input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(255, 140, 0, 0.1);
}

.filter-select {
    padding: 10px 32px 10px 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-sm);
    color: var(--gray-light);
    font-size: 13px;
    outline: none;
    font-family: 'DM Sans', sans-serif;
    appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238892b0' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    transition: var(--transition);
}

.filter-select option {
    background: var(--surface);
    color: var(--light);
}

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

/* ══════════════════════════════
   CHAT
══════════════════════════════ */
.chat-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    height: calc(100vh - var(--nav-height));
    overflow: hidden;
}

.chat-sidebar {
    background: var(--card-bg);
    border-right: 1px solid var(--border);
    overflow-y: auto;
    backdrop-filter: blur(16px);
}

.chat-sidebar-header {
    padding: 20px;
    border-bottom: 1px solid var(--border);
}

.chat-sidebar-title {
    font-family: 'Syne', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--light);
}

.chat-list { list-style: none; }

.chat-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    cursor: pointer;
    transition: var(--transition);
}

.chat-item:hover { background: rgba(255, 255, 255, 0.03); }
.chat-item.active { background: rgba(255, 140, 0, 0.08); border-left: 3px solid var(--primary); }

.chat-avatar {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255,140,0,0.2), rgba(255,165,0,0.08));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
    font-weight: 600;
    color: var(--primary);
    border: 1px solid rgba(255, 140, 0, 0.15);
}

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

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

.chat-item-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--light);
    margin-bottom: 2px;
}

.chat-item-last {
    font-size: 12px;
    color: var(--gray);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-item-time {
    font-size: 11px;
    color: var(--gray-dark);
    white-space: nowrap;
}

.chat-item-unread {
    background: var(--primary);
    color: #000;
    font-size: 10px;
    font-weight: 700;
    width: 20px; height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Chat main area */
.chat-main {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.chat-main-header {
    padding: 16px 24px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(4, 6, 16, 0.6);
    backdrop-filter: blur(16px);
}

.chat-main-name {
    font-family: 'Syne', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--light);
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chat-msg {
    max-width: 70%;
    padding: 12px 18px;
    border-radius: 18px;
    font-size: 14px;
    line-height: 1.5;
    position: relative;
    animation: msgIn 0.3s ease;
}

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

.chat-msg.sent {
    align-self: flex-end;
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    color: #000;
    border-bottom-right-radius: 4px;
}

.chat-msg.received {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.06);
    color: var(--light);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom-left-radius: 4px;
}

.chat-msg-time {
    font-size: 10px;
    opacity: 0.6;
    margin-top: 4px;
}

.chat-input-bar {
    padding: 16px 24px;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 12px;
    align-items: flex-end;
    background: rgba(4, 6, 16, 0.6);
    backdrop-filter: blur(16px);
}

.chat-input {
    flex: 1;
    padding: 12px 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    color: var(--light);
    font-size: 14px;
    font-family: 'DM Sans', sans-serif;
    outline: none;
    resize: none;
    max-height: 120px;
    transition: var(--transition);
}

.chat-input:focus {
    border-color: var(--primary);
}

.chat-send-btn {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    color: #000;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
    transition: var(--transition);
}

.chat-send-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 16px var(--glow);
}

.chat-empty {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 16px;
    color: var(--gray);
}

.chat-empty-icon {
    font-size: 48px;
    opacity: 0.3;
}

/* ══════════════════════════════
   PROFILE
══════════════════════════════ */
.profile-header-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px;
    backdrop-filter: blur(16px);
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 24px;
}

.profile-avatar {
    width: 80px; height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255,140,0,0.2), rgba(255,165,0,0.08));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    flex-shrink: 0;
    border: 3px solid rgba(255, 140, 0, 0.2);
    position: relative;
    overflow: hidden;
}

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

.profile-name {
    font-family: 'Syne', sans-serif;
    font-size: 24px;
    font-weight: 800;
    color: var(--light);
    margin-bottom: 4px;
}

.profile-type {
    font-size: 13px;
    color: var(--gray);
    display: flex;
    align-items: center;
    gap: 6px;
}

.profile-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(255, 140, 0, 0.1);
    color: var(--secondary);
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 600;
}

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

.profile-stat {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
    backdrop-filter: blur(16px);
}

.profile-stat-value {
    font-family: 'Syne', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--light);
}

.profile-stat-label {
    font-size: 12px;
    color: var(--gray);
    margin-top: 4px;
}

/* ══════════════════════════════
   MAP
══════════════════════════════ */
.map-container {
    width: 100%;
    height: calc(100vh - var(--nav-height) - 80px);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
}

.map-container .leaflet-container {
    height: 100%;
    background: var(--darker);
}

/* ══════════════════════════════
   AI ASSISTANT
══════════════════════════════ */
.ai-fab {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px; height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    color: #000;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    z-index: 900;
    box-shadow: 0 4px 24px var(--glow);
    transition: var(--transition);
}

.ai-fab:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 40px var(--glow);
}

.ai-overlay {
    position: fixed;
    bottom: 90px;
    right: 24px;
    width: 380px;
    max-height: 560px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(24px);
    box-shadow: var(--shadow-lg);
    z-index: 901;
    display: none;
    flex-direction: column;
    overflow: hidden;
    animation: slideUp 0.3s ease;
}

.ai-overlay.open { display: flex; }

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

.ai-header {
    padding: 18px 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ai-header-title {
    font-family: 'Syne', sans-serif;
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ai-close {
    background: none;
    border: none;
    color: var(--gray);
    font-size: 20px;
    cursor: pointer;
    transition: var(--transition);
}

.ai-close:hover { color: var(--light); }

.ai-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ai-msg {
    padding: 12px 16px;
    border-radius: 14px;
    font-size: 13px;
    line-height: 1.6;
    max-width: 90%;
}

.ai-msg.user {
    align-self: flex-end;
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    color: #000;
}

.ai-msg.assistant {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.06);
    color: var(--light);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.ai-input-bar {
    padding: 12px 16px;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 8px;
}

.ai-input {
    flex: 1;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    color: var(--light);
    font-size: 13px;
    outline: none;
    font-family: 'DM Sans', sans-serif;
}

.ai-input:focus { border-color: var(--primary); }

/* ══════════════════════════════
   TOAST NOTIFICATIONS
══════════════════════════════ */
.toast-container {
    position: fixed;
    top: 80px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    padding: 14px 20px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    backdrop-filter: blur(20px);
    animation: toastIn 0.3s ease, toastOut 0.3s ease 3.5s forwards;
    max-width: 360px;
    box-shadow: var(--shadow);
}

.toast.success {
    background: rgba(34, 197, 94, 0.15);
    color: var(--success);
    border: 1px solid rgba(34, 197, 94, 0.25);
}

.toast.error {
    background: rgba(239, 68, 68, 0.15);
    color: var(--error);
    border: 1px solid rgba(239, 68, 68, 0.25);
}

.toast.info {
    background: rgba(59, 130, 246, 0.15);
    color: var(--info);
    border: 1px solid rgba(59, 130, 246, 0.25);
}

.toast.warning {
    background: rgba(245, 158, 11, 0.15);
    color: var(--warning);
    border: 1px solid rgba(245, 158, 11, 0.25);
}

@keyframes toastIn {
    from { opacity: 0; transform: translateX(40px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes toastOut {
    to { opacity: 0; transform: translateX(40px); }
}

/* ══════════════════════════════
   LOADING / SKELETON
══════════════════════════════ */
.loading-spinner {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
}

.spinner {
    width: 40px; height: 40px;
    border: 3px solid rgba(255, 140, 0, 0.15);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

.skeleton {
    background: linear-gradient(90deg, rgba(255,255,255,0.04) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.04) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-sm);
}

@keyframes shimmer { to { background-position: -200% 0; } }

.skeleton-card {
    height: 180px;
    border-radius: var(--radius-lg);
}

.skeleton-line { height: 16px; margin-bottom: 10px; }
.skeleton-line.short { width: 60%; }

/* ══════════════════════════════
   EMPTY STATES
══════════════════════════════ */
.empty-state {
    text-align: center;
    padding: 60px 24px;
}

.empty-icon {
    font-size: 56px;
    margin-bottom: 16px;
    opacity: 0.4;
}

.empty-title {
    font-family: 'Syne', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--light);
    margin-bottom: 8px;
}

.empty-desc {
    font-size: 14px;
    color: var(--gray);
    margin-bottom: 24px;
}

/* ══════════════════════════════
   MODAL
══════════════════════════════ */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    max-width: 520px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    animation: modalIn 0.3s ease;
    box-shadow: var(--shadow-lg);
}

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

.modal-header {
    padding: 24px 28px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-title {
    font-family: 'Syne', sans-serif;
    font-size: 20px;
    font-weight: 700;
}

.modal-close {
    background: none;
    border: none;
    color: var(--gray);
    font-size: 22px;
    cursor: pointer;
    padding: 4px;
    transition: var(--transition);
}

.modal-close:hover { color: var(--light); }

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

.modal-footer {
    padding: 16px 28px;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

/* ══════════════════════════════
   TABS
══════════════════════════════ */
.tab-group {
    display: flex;
    gap: 4px;
    padding: 4px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius);
    margin-bottom: 24px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.tab-btn {
    flex: 1;
    padding: 10px 16px;
    border-radius: 12px;
    background: none;
    border: none;
    color: var(--gray);
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.tab-btn:hover { color: var(--light); }

.tab-btn.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    color: #000;
    box-shadow: 0 2px 12px rgba(255, 140, 0, 0.3);
}

/* ══════════════════════════════
   BACK BUTTON
══════════════════════════════ */
.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--gray);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 20px;
    padding: 6px 0;
    transition: var(--transition);
    cursor: pointer;
    background: none;
    border: none;
    font-family: 'DM Sans', sans-serif;
}

.back-btn:hover { color: var(--primary); }

/* ══════════════════════════════
   ANIMATIONS
══════════════════════════════ */
.fade-in {
    animation: fadeIn 0.5s ease;
}

.slide-up {
    animation: slideUpIn 0.5s ease;
}

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

/* Stagger children */
.stagger > * {
    animation: slideUpIn 0.4s ease backwards;
}
.stagger > *:nth-child(1) { animation-delay: 0.05s; }
.stagger > *:nth-child(2) { animation-delay: 0.1s; }
.stagger > *:nth-child(3) { animation-delay: 0.15s; }
.stagger > *:nth-child(4) { animation-delay: 0.2s; }
.stagger > *:nth-child(5) { animation-delay: 0.25s; }
.stagger > *:nth-child(6) { animation-delay: 0.3s; }
.stagger > *:nth-child(7) { animation-delay: 0.35s; }
.stagger > *:nth-child(8) { animation-delay: 0.4s; }
.stagger > *:nth-child(9) { animation-delay: 0.45s; }
.stagger > *:nth-child(10) { animation-delay: 0.5s; }

/* ══════════════════════════════
   UTILITY
══════════════════════════════ */
.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.text-gray { color: var(--gray); }
.text-success { color: var(--success); }
.text-error { color: var(--error); }
.text-sm { font-size: 13px; }
.text-xs { font-size: 11px; }
.fw-bold { font-weight: 700; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.d-flex { display: flex; }
.d-grid { display: grid; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.hidden { display: none !important; }

/* ══════════════════════════════
   SCROLLBAR
══════════════════════════════ */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
    background: rgba(255, 140, 0, 0.2);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover { background: rgba(255, 140, 0, 0.4); }

/* ══════════════════════════════
   RESPONSIVE
══════════════════════════════ */
@media (max-width: 1024px) {
    .chat-layout {
        grid-template-columns: 260px 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-toggle { display: block; }
    
    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: var(--nav-height);
        left: 0; right: 0;
        background: rgba(4, 6, 16, 0.95);
        backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--border);
        padding: 16px;
        gap: 4px;
    }

    .app-container { padding: 16px; }

    .page-title { font-size: 24px; }

    .job-grid {
        grid-template-columns: 1fr;
    }

    .chat-layout {
        grid-template-columns: 1fr;
    }

    .chat-sidebar {
        display: none;
    }

    .chat-sidebar.mobile-open {
        display: block;
        position: fixed;
        inset: 0;
        top: var(--nav-height);
        z-index: 100;
        width: 100%;
    }

    .profile-header-card {
        flex-direction: column;
        text-align: center;
    }

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

    .form-row {
        grid-template-columns: 1fr;
    }

    .job-detail-actions {
        flex-direction: column;
    }

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

    .ai-overlay {
        right: 12px;
        left: 12px;
        width: auto;
        bottom: 80px;
        max-height: 70vh;
    }

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

    .search-input-wrap {
        width: 100%;
    }

    .filter-select {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .job-detail-hero { padding: 24px 20px; }
    .auth-card { padding: 28px 20px; }
    .job-detail-stats { grid-template-columns: 1fr; }
}

/* Discoverable jobs landing page and expanded filters */
.nav-profile-link {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--light);
    min-width: 0;
}

.nav-profile-link span {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.jobs-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    margin: 12px 0 16px;
    padding: 30px;
    background: linear-gradient(120deg, rgba(255, 140, 0, 0.16), rgba(17, 22, 51, 0.88) 54%, rgba(255, 215, 0, 0.08));
    border: 1px solid var(--border-hover);
    border-radius: var(--radius-lg);
}

.jobs-hero .page-title { margin-bottom: 8px; }
.jobs-hero .page-subtitle { max-width: 760px; }
.eyebrow { color: var(--accent); font-size: 11px; font-weight: 800; letter-spacing: .12em; margin-bottom: 8px; }

.quick-filter-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 18px;
    color: var(--gray-light);
    font-size: 13px;
}

.quick-filter-links button {
    appearance: none;
    color: var(--light);
    background: rgba(255, 255, 255, .055);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: var(--radius-full);
    cursor: pointer;
    padding: 6px 11px;
    font: inherit;
}

.quick-filter-links button:hover { border-color: var(--primary); color: var(--primary); }

.filters-panel {
    margin-bottom: 24px;
    padding: 18px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(16px);
}

.filters-panel .search-input-wrap { margin-bottom: 14px; }

.filter-row {
    display: grid;
    grid-template-columns: 1.25fr 1fr 1fr 1.15fr 1fr auto;
    align-items: end;
    gap: 12px;
}

.filter-row label {
    display: grid;
    gap: 6px;
    color: var(--gray-light);
    font-size: 12px;
    font-weight: 600;
}

.salary-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.salary-inputs input {
    width: 100%;
    min-width: 0;
    padding: 10px;
    color: var(--light);
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: var(--radius-sm);
    outline: none;
    font: inherit;
}
.salary-inputs input:focus { border-color: var(--primary); }
.clear-filters { white-space: nowrap; min-height: 40px; }

.results-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 4px 0 14px;
}
.results-heading h2, .seo-content h2 { font-family: 'Syne', sans-serif; font-size: 20px; }
.results-heading span { color: var(--gray); font-size: 13px; }

.seo-content {
    margin: 42px 0 20px;
    padding: 28px;
    color: var(--gray-light);
    background: rgba(10, 15, 35, .48);
    border: 1px solid rgba(255, 255, 255, .07);
    border-radius: var(--radius-lg);
}
.seo-content h2, .seo-content h3 { color: var(--light); }
.seo-content > p { margin-top: 10px; max-width: 980px; }
.seo-faq-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 20px; }
.seo-faq-grid article { padding: 18px; background: rgba(255,255,255,.035); border-radius: var(--radius); }
.seo-faq-grid p { margin-top: 6px; font-size: 14px; }

.application-card { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.application-card h2 { color: var(--light); font-family: 'Syne', sans-serif; font-size: 18px; }
.application-actions { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 9px; }
.application-status { border-radius: var(--radius-full); padding: 5px 10px; font-size: 12px; font-weight: 700; background: rgba(255, 140, 0, .15); color: var(--primary); }
.application-status.accepted { background: rgba(34, 197, 94, .15); color: var(--success); }
.application-status.rejected { background: rgba(239, 68, 68, .15); color: var(--error); }

/* ══════════════════════════════
   BOSS.AZ STYLE CATEGORY CARDS GRID
══════════════════════════════ */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(135px, 1fr));
    gap: 12px;
    margin: 0 0 24px;
}

.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px 10px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--light);
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.category-card:hover, .category-card.active {
    background: rgba(255, 140, 0, 0.14);
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(255, 140, 0, 0.2);
}

.category-card-icon {
    font-size: 28px;
    margin-bottom: 8px;
}

.category-card-name {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
}

.category-card-count {
    font-size: 11px;
    color: var(--gray);
    margin-top: 4px;
}

/* ══════════════════════════════
   CHAT SYSTEM STYLES
══════════════════════════════ */
.chat-layout {
    display: flex;
    height: calc(100vh - var(--nav-height) - 48px);
    max-height: 800px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin: 16px 0;
}

.chat-sidebar {
    width: 320px;
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    background: var(--surface-2);
    flex-shrink: 0;
}

.chat-sidebar-header {
    padding: 18px;
    border-bottom: 1px solid var(--border);
}

.chat-sidebar-title {
    font-family: 'Syne', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--light);
}

.chat-list {
    list-style: none;
    overflow-y: auto;
    flex: 1;
}

.chat-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    cursor: pointer;
    transition: var(--transition);
}

.chat-item:hover, .chat-item.active {
    background: rgba(255, 140, 0, 0.1);
}

.chat-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    color: #fff;
    flex-shrink: 0;
}

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

.chat-item-name {
    font-weight: 600;
    font-size: 14px;
    color: var(--light);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-item-last {
    font-size: 12px;
    color: var(--gray);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 2px;
}

.chat-item-time {
    font-size: 11px;
    color: var(--gray);
    flex-shrink: 0;
}

.chat-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: var(--darker);
}

.chat-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--gray);
    text-align: center;
    padding: 24px;
}

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

.chat-main-header {
    padding: 16px 20px;
    background: var(--surface-2);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-back-btn {
    display: none;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--light);
    padding: 6px 12px;
    border-radius: var(--radius-full);
    font-size: 13px;
    cursor: pointer;
}

.chat-main-name {
    font-family: 'Syne', sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: var(--light);
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chat-msg {
    max-width: 70%;
    padding: 12px 16px;
    border-radius: 18px;
    font-size: 14px;
    line-height: 1.5;
    word-wrap: break-word;
}

.chat-msg.sent {
    align-self: flex-end;
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    color: #fff;
    border-bottom-right-radius: 4px;
}

.chat-msg.received {
    align-self: flex-start;
    background: var(--surface-3);
    color: var(--light);
    border: 1px solid var(--border);
    border-bottom-left-radius: 4px;
}

.chat-msg-time {
    font-size: 10px;
    opacity: 0.75;
    margin-top: 4px;
    text-align: right;
}

.chat-input-bar {
    padding: 16px 20px;
    background: var(--surface-2);
    border-top: 1px solid var(--border);
    display: flex;
    gap: 12px;
    align-items: center;
}

.chat-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    padding: 10px 18px;
    color: var(--light);
    font: inherit;
    font-size: 14px;
    outline: none;
    resize: none;
}

.chat-input:focus {
    border-color: var(--primary);
}

.chat-send-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: var(--transition);
    flex-shrink: 0;
}

.chat-send-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 16px var(--glow);
}

/* ══════════════════════════════
   MOBILE BOTTOM NAVIGATION BAR
══════════════════════════════ */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: rgba(4, 6, 16, 0.95);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--border-hover);
    z-index: 1200;
    align-items: center;
    justify-content: space-around;
    padding: 4px 0;
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--gray);
    text-decoration: none;
    font-size: 11px;
    font-weight: 600;
    gap: 3px;
    flex: 1;
    padding: 6px 0;
    transition: var(--transition);
}

.mobile-nav-item .mobile-icon {
    font-size: 20px;
    line-height: 1;
}

.mobile-nav-item.active {
    color: var(--primary);
}

.mobile-nav-item:active {
    transform: scale(0.92);
}

/* ══════════════════════════════
   RESPONSIVE MEDIA QUERIES
══════════════════════════════ */
@media (max-width: 1080px) {
    .filter-row { grid-template-columns: repeat(3, 1fr); }
    .clear-filters { justify-self: start; }
}

@media (max-width: 768px) {
    body { padding-bottom: 64px; }
    .mobile-bottom-nav { display: flex; }
    .app-nav { padding: 0 14px; }
    .nav-inner { gap: 9px; }
    .nav-brand span { font-size: 16px; }
    .nav-user { margin-left: auto; gap: 7px; }
    .nav-profile-link span { display: none; }
    .nav-auth-btn { padding: 7px 10px; font-size: 12px; }
    .nav-links { display: none !important; }
    .jobs-hero { align-items: flex-start; flex-direction: column; padding: 20px 16px; gap: 14px; }
    .categories-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
    .category-card { padding: 12px 6px; }
    .category-card-icon { font-size: 24px; margin-bottom: 4px; }
    .category-card-name { font-size: 11px; }
    .filter-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .seo-faq-grid { grid-template-columns: 1fr; }
    .application-card { align-items: flex-start; flex-direction: column; }
    .application-actions { justify-content: flex-start; width: 100%; }

    /* Mobile Chat specific styles */
    .chat-layout { height: calc(100vh - 130px); margin: 8px 0; border-radius: var(--radius); }
    .chat-back-btn { display: flex; }
    
    .chat-layout.has-chat .chat-sidebar { display: none; }
    .chat-layout.has-chat .chat-main { display: flex; }
    
    .chat-layout:not(.has-chat) .chat-sidebar { display: flex; width: 100%; }
    .chat-layout:not(.has-chat) .chat-main { display: none; }
}

/* ══════════════════════════════
   MOBILE APP INSTALL BANNER POPUP
══════════════════════════════ */
.app-install-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2500;
    background: linear-gradient(135deg, rgba(17, 22, 51, 0.98), rgba(8, 12, 30, 0.98));
    border-bottom: 2px solid var(--primary);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(16px);
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    animation: bannerSlideDown 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes bannerSlideDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

.app-banner-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.app-banner-logo {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(255, 140, 0, 0.3);
}

.app-banner-text {
    min-width: 0;
}

.app-banner-title {
    font-family: 'Syne', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: var(--light);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.app-banner-subtitle {
    font-size: 11px;
    color: var(--accent);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.app-banner-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.app-banner-btn {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff !important;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    padding: 7px 14px;
    border-radius: var(--radius-full);
    box-shadow: 0 4px 12px var(--glow);
    white-space: nowrap;
    transition: var(--transition);
}

.app-banner-btn:active {
    transform: scale(0.95);
}

.app-banner-close {
    background: rgba(255, 255, 255, 0.12);
    border: none;
    color: var(--gray-light);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: var(--transition);
}

.app-banner-close:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.25);
}

body.has-app-banner .app-nav {
    top: 58px;
}

body.has-app-banner main.app-main {
    padding-top: 122px;
}

