*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0
}

:root {
    --brand: #3B82F6;
    --brand-light: #1F2D3D;
    --brand-mid: #2563EB;
    --brand-3: #334b65;
    --brand-4: #6b89a9;
    --accent: #3B82F6;
    --accent-light: #1A2640;
    --surface: #161B22;
    --surface-2: #0D1117;
    --surface-3: #1C2128;
    --text-1: #F0F6FC;
    --text-2: #8B949E;
    --text-3: #484F58;
    --green: #00D492;
    --border: #30363D;
    --border-2: #6683A3;
    --danger: #F85149;
    --success: #3FB950;
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, .4);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, .5);
    --nav-h: 60px;
    --loader-h: 2px;
    --success-toast: #1a2640;
}

html {
    scroll-behavior: smooth
}

body {
    font-family: 'Onest', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-1);
    background: var(--surface-2);
    min-height: 100vh
}
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
            radial-gradient(circle at 20% 20%, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
            radial-gradient(circle at 80% 80%, rgba(16, 185, 129, 0.1) 0%, transparent 50%),
            radial-gradient(circle at 40% 60%, rgba(239, 68, 68, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}
/* ── Progress Loader ── */
#progress-bar {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    height: var(--loader-h);
    background: var(--surface-3);
    z-index: 9999;
    overflow: visible;
}

#progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #1F6FEB, #58A6FF);
    border-radius: 0 2px 2px 0;
    transition: width 0.25s ease, opacity 0.3s ease;
    position: relative;
    overflow: visible;
}

#progress-fill::after {
    content: '';
    position: absolute;
    right: -2px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 0px;
    border-radius: 50%;
    background: #58A6FF;
    box-shadow: 0 0 4px 2px #58A6FF,
    0 0 8px 2px #1F6FEB;
}

#progress-bar.done #progress-fill {
    width: 100%;
    opacity: 0
}

#progress-bar.idle {
    display: none
}

/* ── Navigation ── */
#nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-h);
    background: rgba(22, 27, 34, .98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    z-index: 10000;
    display: flex;
    align-items: center;
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.nav-logo {
    font-family: 'Unbounded', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--brand);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.nav-logo span {
    color: var(--accent)
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px
}

.nav-link {
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-2);
    text-decoration: none;
    transition: all .15s;
    position: relative;
}

.nav-link:hover {
    color: var(--accent);
    background: var(--accent-light)
}

.nav-link.active {
    color: var(--accent);
    background: var(--accent-light)
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 12px;
    right: 12px;
    height: 2px;
    background: var(--accent);
    border-radius: 2px 2px 0 0;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 8px
}

.nav-icon-items {
    border-radius: 5px;
    padding: 5px 12px;
    color: var(--text-2);
    border: 1px solid var(--accent-light);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 18px;
    border-radius: var(--radius-sm);
    font-family: 'Onest', sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: all .15s;
    white-space: nowrap;
}

.btn-ghost {
    background: transparent;
    color: var(--text-2);
    border: 1px solid var(--border)
}

.btn-ghost:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-light)
}

.btn-primary {
    background: var(--accent);
    color: #fff
}

.btn-primary:hover {
    background: #2563EB;
    box-shadow: var(--shadow-sm)
}

.btn-accent {
    background: #238636;
    color: #fff
}

.btn-accent:hover {
    background: #2EA043;
    box-shadow: var(--shadow-sm)
}

.btn-exit {
    background-color: #a32d2d30;
    color: #a32d2d;
    border: 1px solid #a32d2d;
}

.btn-sm {
    padding: 7px 14px;
    font-size: 13px
}

.btn-lg {
    padding: 13px 28px;
    font-size: 16px
}

/* input froms */

.login-form-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-form-cont {
    background: var(--surface);
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}

.login-group {
    padding: 10px;
}

.input {
    padding: 10px;
    border-radius: 5px;
    border: 1px solid var(--border);
    outline: none;
    background: var(--surface-3);
    color: var(--text-1);
    width: 100%;
}

.input:focus {
    border: 1px solid var(--brand);
    background-color: var(--brand-light);
}
.login-select:focus {
    border: 1px solid var(--brand);
    background-color: var(--brand-light);
}
.pass-show {
    background: transparent;
    border: none;
    outline: none;
    position: absolute;
    right: 20px;
    top: 23px;
    cursor: pointer;
    color: var(--text-2);
}

.button.submit {
    padding: 10px;
    width: 100%;
    margin: 5px;
    background: var(--brand);
    color: var(--text-1);
    border: none;
    outline: none;
    cursor: pointer;
    border-radius: 5px;
}

.login-title {
    color: var(--brand);
    text-align: center;
    padding: 15px 0 10px;
    font-size: 18px;
}
.login-select {
    background-color: var(--surface-3);
    padding: 10px;
    color: var(--text-1);
    width: 100%;
    border-radius: 5px;
    border: 1px solid var(--border);
    outline: none;
}

.login-label {
    color: var(--text-2);
    font-size: 14px;
}

/* ── Search Box ── */
.index-search-box {
    padding: 16px 24px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.index-search-box form {
    display: flex;
    gap: 8px;
    width: 100%;
    max-width: 600px;
}

.index-search {
    flex: 1;
    border: 1px solid var(--border);
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    outline: none;
    color: var(--text-1);
    background: var(--surface-3);
    font-size: 14px;
    transition: border-color 0.2s;
}

.index-search::placeholder {
    color: var(--text-3);
}

.index-search:focus {
    border-color: var(--brand);
    background: var(--accent-light);
}

.index-search-button {
    background: var(--brand);
    padding: 10px 18px;
    border: none;
    outline: none;
    border-radius: var(--radius-sm);
    color: #fff;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.index-search-button:hover {
    background: var(--brand-mid);
}

/* ── Job List Container ── */
.joblist-container {
    display: flex;
    flex-direction: column;
    gap: 8px;

    max-width: 860px;
    margin: 0 auto;
    width: 100%;
}

.joblist-container a {
    text-decoration: none;
    display: block;
}

a {
    text-decoration: none;
}

/* ── Job Card ── */
.joblist {
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: var(--surface);
    padding: 16px;
    gap: 14px;
    display: flex;
    align-items: flex-start;
    transition: border-color 0.2s, background 0.2s;
    cursor: pointer;
}

.joblist:hover {
    border-color: var(--border-2);
    background: var(--surface-3);
}

/* ── Icon ── */
.joblist-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: var(--radius-sm);
    background: var(--brand-3);
    color: var(--brand);
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 1px;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

/* ── Content ── */
.joblist-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.joblist-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.joblist-soxa {
    color: var(--text-1);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
}

.joblist-summa {
    color: var(--green);
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
}

.joblist-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.joblist-meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--text-2);
    font-size: 13px;
}

.joblist-batafsil {
    color: var(--text-2);
    font-size: 13px;
    line-height: 1.5;
    word-break: break-word;
    overflow-wrap: break-word;
    overflow: hidden;
}

.joblist-tajriba {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--brand);
    font-size: 12px;
    font-weight: 500;
    padding: 2px 0;
    width: fit-content;
}

/* ── Empty State ── */
.empty-state {
    text-align: center;
    padding: 20px 20px;
    color: var(--text-2);
}

.empty-state-icon {
    font-size: 48px;
    margin-bottom: 12px;
    opacity: 0.4;
}

.empty-state p {
    font-size: 15px;
    margin-bottom: 16px;
}


/*====== WORK PAGE ========*/

.work-info {
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    padding: 20px;
    background-color: var(--surface);
}

.work-title {
    color: var(--text-1);
    font-size: 14px;
    padding-bottom: 10px;
}

.work-salary-box {
    background: rgba(59, 130, 246, .08);
    border: 1px solid rgba(59, 130, 246, .2);
    border-radius: var(--radius-sm);
    padding: 14px;
    text-align: center;
    margin-bottom: 14px;
}

.work-salary-label {
    font-size: 11px;
    color: var(--text-2);
    margin-bottom: 4px;
}

.work-salary-val {
    font-family: 'Unbounded', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--brand);
}

/* ── Details grid ── */
.jd-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.jd-detail-item {
    background: var(--brand-light);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    border: 1px solid var(--brand);
}

.jd-detail-label {
    font-size: 11px;
    color: var(--brand);
    font-weight: 500;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.jd-detail-val {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-1);
    display: flex;
    align-items: center;
    gap: 6px;
}

.jd-detail-val i {
    font-size: 14px;
    color: var(--brand);
}

/* ── Sidebar ── */
.jd-owner {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.jd-owner-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--brand-3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Unbounded', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: var(--brand);
    border: 1px solid rgba(59, 130, 246, .2);
    flex-shrink: 0;
}

.jd-owner-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-1);
}

.jd-owner-email {
    font-size: 12px;
    color: var(--text-3);
    margin-top: 2px;
}

.jd-salary-box {
    background: rgba(59, 130, 246, .08);
    border: 1px solid rgba(59, 130, 246, .2);
    border-radius: var(--radius-sm);
    padding: 14px;
    text-align: center;
    margin-bottom: 14px;
}

.jd-salary-label {
    font-size: 11px;
    color: var(--text-2);
    margin-bottom: 4px;
}

.jd-salary-val {
    font-family: 'Unbounded', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--brand);
}

.jd-divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 14px 0;
}

.jd-posted {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-3);
}


/* ── Page wrapper ── */
#page-content {
    margin-top: var(--nav-h);
    min-height: calc(100vh - var(--nav-h));
    opacity: 1;
    transition: opacity .2s ease;
}

#page-content.loading {
    opacity: .8;
    pointer-events: none
}
#toast {
    position: fixed;
    top: 66px;
    left: 50%;
    transform: translateX(-50%) translateY(-120px);
    background: var(--brand-light);
    color: var(--text-2);
    padding: 10px 28px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    font-size: 15px;
    font-weight: 500;
    opacity: 0;
    white-space: nowrap;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
    opacity   0.4s ease;
    z-index: 1000;
    max-width: 90vw;
    white-space: normal;
    text-align: center;
    box-shadow: 0 8px 24px rgba(0,0,0,0.18);
    pointer-events: none;
}

/* Ko'rinish holati — tepadan pastga tushadi, markazda qoladi */
#toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}
/* ── Utilities ── */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px
}

.section {
    padding: 48px 0
}

.tag {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.tag-blue {
    background: var(--brand-light);
    color: var(--brand)
}

.tag-amber {
    background: var(--accent-light);
    color: #854F0B
}

.tag-green {
    background: #EAF3DE;
    color: #276749
}

.tag-gray {
    background: var(--surface-3);
    color: var(--text-2)
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.badge-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 0 2px #1B3A2D;
    margin-right: 4px;
}

.content-container {
    max-width: 800px;
    margin: auto;
    padding: 10px;
}


/* ── Pagination ── */
.jobs-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-2);
    text-decoration: none;
    transition: all .15s;
}

.page-btn:hover {
    border-color: var(--brand);
    color: var(--brand);
}

.page-btn.active {
    background: var(--brand);
    color: #fff;
    border-color: var(--brand);
}


/* ── Hero profile page── */
.hero {
    background: linear-gradient(135deg, #1a2d4a 0%, #0f1923 60%, #0d1117 100%);
    padding: 28px 16px 0;
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md);
}

.hero::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 260px;
    height: 260px;
    background: radial-gradient(circle, rgba(59, 130, 246, .15) 0%, transparent 70%);
    pointer-events: none;
}

.hero-inner {
    max-width: 860px;
    margin: 0 auto;
}

.hero-top {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
}

.avatar {
    width: 64px;
    height: 64px;
    min-width: 64px;
    border-radius: 16px;
    background: linear-gradient(135deg, #1e4d8c, #3B82F6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Unbounded', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    border: 2px solid rgba(59, 130, 246, .4);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, .08);
    flex-shrink: 0;
}

.hero-info {
    flex: 1;
    min-width: 0;
}

.hero-name {
    font-family: 'Unbounded', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hero-job {
    font-size: 13px;
    color: rgba(255, 255, 255, .6);
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 2px;
}

.hero-email {
    font-size: 12px;
    color: rgba(255, 255, 255, .38);
    display: flex;
    align-items: center;
    gap: 5px;
}

.hero-job i, .hero-email i {
    font-size: 14px;
}

.hero-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.stats-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    margin-top: 20px;
}

.stat-box {
    padding: 14px 16px;
    text-align: center;
}

.stat-num {
    font-family: 'Unbounded', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--brand);
    line-height: 1;
}

.stat-label {
    font-size: 11px;
    color: var(--text-3);
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: .04em;
}

/* ── Profile Main ── */
.profile-main {
    max-width: 860px;
    margin: 0 auto;
    padding: 20px 16px;
}

/* ── Info Card ── */
.info-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    margin: 16px 0;
    overflow: hidden;
}

.info-card-header {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.info-card-title {
    font-size: 11px;
    font-weight: 600;
    color: var(--brand);
    text-transform: uppercase;
    letter-spacing: .06em;
}

.info-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 16px;
    border-bottom: 1px solid rgba(48, 54, 61, .5);
}

.info-row:last-child {
    border-bottom: none;
}

.info-row-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--surface-3);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--text-2);
    font-size: 16px;
}

.info-row-content {
    flex: 1;
    min-width: 0;
}

.info-row-label {
    font-size: 11px;
    color: var(--text-3);
    margin-bottom: 1px;
}

.info-row-val {
    font-size: 13px;
    color: var(--text-1);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── Section header ── */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.section-title {
    font-family: 'Unbounded', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--brand);
}

/* ── Profile Job Card ── */
.job-card-wrap {
    margin-bottom: 8px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}

.job-card {
    background: var(--surface);
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    padding: 14px 16px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    transition: border-color .2s, transform .15s;
    text-decoration: none;
}

.job-card:hover {
    border-color: var(--brand);
}

.job-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 10px;
    background: var(--brand-3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Unbounded', sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: var(--brand);
    border: 1px solid rgba(59, 130, 246, .2);
    flex-shrink: 0;
}

.job-body {
    flex: 1;
    min-width: 0;
}

.job-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 4px;
}

.job-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-1);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.job-salary {
    font-size: 14px;
    font-weight: 700;
    color: var(--green);
    white-space: nowrap;
    flex-shrink: 0;
}

.job-desc {
    font-size: 13px;
    color: var(--text-2);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 6px;
}

.job-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.job-meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--text-2);
}

.job-meta-item i {
    font-size: 14px;
    opacity: .7;
}

.job-card-footer {
    background: var(--surface);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    padding: 10px 16px;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

/* ── Danger btn ── */
.btn-danger {
    background: transparent;
    color: var(--danger);
    border: 1px solid rgba(248, 81, 73, .3);
}

.btn-danger:hover {
    background: rgba(248, 81, 73, .08);
}

/* ── Empty (profile) ── */
.profile-empty {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 48px 24px;
    text-align: center;
}

.profile-empty i {
    font-size: 44px;
    color: var(--text-3);
    margin-bottom: 12px;
    display: block;
}

.profile-empty-title {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-2);
    margin-bottom: 6px;
}

.profile-empty-sub {
    font-size: 13px;
    color: var(--text-3);
    margin-bottom: 20px;
}

/* ── Edit Modal ── */
#edit-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .6);
    z-index: 200;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

#edit-modal.open {
    display: flex;
}

.modal {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 420px;
    padding: 24px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 22px;
    color: var(--text-3);
    line-height: 1;
    padding: 4px;
}

.modal-close:hover {
    color: var(--text-1);
}

.modal-title {
    font-family: 'Unbounded', sans-serif;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 14px;
}

.form-label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-2);
    margin-bottom: 6px;
}

.form-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: 'Onest', sans-serif;
    outline: none;
    background: var(--surface-3);
    color: var(--text-1);
    transition: .15s;
}

.form-input:focus {
    border-color: var(--brand);
}

.form-row {
    display: flex;
    gap: 8px;
    margin-top: 4px;
}


/* ── Filter bar ── */
.filter-bar {
    padding: 12px 14px;
    margin-bottom: 14px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.filter-input {
    flex: 1;
    min-width: 140px;
    padding: 9px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-family: 'Onest', sans-serif;
    outline: none;
    background: var(--surface-3);
    color: var(--text-1);
    transition: .15s;
}

.filter-input:focus {
    border-color: var(--brand);
}

.filter-input::placeholder {
    color: var(--text-3);
}

.filter-input-sm {
    flex: 0.5;
    min-width: 110px;
}

.filter-select {
    padding: 9px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-family: 'Onest', sans-serif;
    outline: none;
    background: var(--surface-3);
    color: var(--text-1);
    cursor: pointer;
    min-width: 130px;
}

/* ── Jobs Hero ── */
.jobs-hero {
    background: linear-gradient(135deg, #1a2d4a 0%, #0f1923 60%, #0d1117 100%);
    padding: 28px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    position: relative;
    overflow: hidden;
    margin-bottom: 10px;
}

.jobs-hero::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -40px;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(59, 130, 246, .15) 0%, transparent 70%);
    pointer-events: none;
}

.jobs-hero-inner {
    max-width: 860px;
    margin: 0 auto;
}

.jobs-hero-title {
    font-family: 'Unbounded', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
}

.jobs-hero-sub {
    color: rgba(255, 255, 255, .6);
    font-size: 13px;
}


/*======= work info page ==========*/

.job-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 8px;
    margin-top: 10px;
}

.gallery-item {
    aspect-ratio: 1/1;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid var(--border);
    transition: transform .2s, opacity .2s;
}

.gallery-item:hover {
    transform: scale(1.03);
    opacity: .9;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
/* ── Til tanlash ─────────────────────────────────────────── */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 2px;
    background: var(--surface-2, #f3f4f6);
    border-radius: 20px;
    padding: 3px;
}
.lang-btn {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 16px;
    color: var(--text-2);
    text-decoration: none;
    transition: background .15s, color .15s;
    white-space: nowrap;
}
.lang-btn:hover {
    background: var(--surface-3, #e5e7eb);
    color: var(--text-1);
}
.lang-btn-active {
    background: var(--brand);
    color: #fff !important;
}

/* ══════════════════════════════════════════════════════════════
   HOME PAGE — PRO REDESIGN
══════════════════════════════════════════════════════════════ */

/* ── HERO ── */
.home-hero {
    position: relative;
    overflow: hidden;
    padding: 44px 20px 40px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}

/* Bosh sahifada content-container padding olib tashlash */
.page-home .content-container {
    padding: 0 !important;
    max-width: 100% !important;
}

/* Animated mesh background */
.home-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
            radial-gradient(ellipse 80% 60% at 10% -10%, rgba(59,130,246,0.18) 0%, transparent 60%),
            radial-gradient(ellipse 60% 50% at 90% 110%, rgba(124,58,237,0.14) 0%, transparent 55%),
            radial-gradient(ellipse 40% 40% at 50% 50%, rgba(16,185,129,0.06) 0%, transparent 70%);
    pointer-events: none;
    animation: heroPulse 8s ease-in-out infinite alternate;
}
@keyframes heroPulse {
    from { opacity: .7; }
    to   { opacity: 1; }
}

/* Grid texture */
.home-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
            linear-gradient(rgba(59,130,246,0.04) 1px, transparent 1px),
            linear-gradient(90deg, rgba(59,130,246,0.04) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}

.home-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 600px;
    margin: 0 auto;
}

/* Badge */
.home-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(59,130,246,0.12);
    border: 1px solid rgba(59,130,246,0.3);
    border-radius: 20px;
    padding: 4px 12px 4px 8px;
    font-size: 11px;
    font-weight: 600;
    color: var(--brand);
    letter-spacing: .04em;
    text-transform: uppercase;
    margin-bottom: 16px;
}
.home-hero-badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--brand);
    animation: badgePulse 2s ease-in-out infinite;
}
@keyframes badgePulse {
    0%,100% { opacity:1; transform:scale(1); }
    50%      { opacity:.4; transform:scale(.7); }
}

.home-hero-title {
    font-family: 'Unbounded', sans-serif;
    font-size: clamp(22px, 5vw, 30px);
    font-weight: 700;
    color: var(--text-1);
    line-height: 1.25;
    margin-bottom: 10px;
    letter-spacing: -.02em;
}
.home-hero-title span {
    background: linear-gradient(90deg, var(--brand), #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.home-hero-sub {
    font-size: 14px;
    color: var(--text-2);
    margin-bottom: 24px;
    line-height: 1.6;
    max-width: 420px;
}

/* ── SEARCH ── */
.home-search-form { margin-bottom: 28px; }
.home-search-wrap {
    display: flex;
    align-items: center;
    background: var(--surface-3);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 6px 6px 6px 16px;
    gap: 10px;
    transition: border-color .2s, box-shadow .2s;
}
.home-search-wrap:focus-within {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(59,130,246,0.12);
}
.home-search-icon {
    color: var(--text-3);
    font-size: 18px;
    flex-shrink: 0;
}
.home-search-input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 14px;
    color: var(--text-1);
    min-width: 0;
    font-family: 'Onest', sans-serif;
}
.home-search-input::placeholder { color: var(--text-3); }
.home-search-btn {
    background: var(--brand);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    font-family: 'Onest', sans-serif;
    transition: background .15s, transform .1s;
}
.home-search-btn:hover  { background: var(--brand-mid); }
.home-search-btn:active { transform: scale(.97); }

/* ── STATS ── */
.home-stats {
    display: flex;
    align-items: stretch;
    gap: 0;
    background: var(--surface-3);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
}
.home-stat {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 14px 10px;
    text-align: center;
    position: relative;
}
.home-stat + .home-stat::before {
    content: '';
    position: absolute;
    left: 0;
    top: 20%;
    height: 60%;
    width: 1px;
    background: var(--border);
}
.home-stat-num {
    font-family: 'Unbounded', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--brand);
    line-height: 1;
    margin-bottom: 4px;
}
.home-stat-label {
    font-size: 10px;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: .06em;
    font-weight: 600;
}
.home-stat-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    color: var(--brand);
    padding: 6px 12px;
    border-radius: 10px;
    transition: background .15s;
}
.home-stat-cta:hover { background: rgba(59,130,246,.1); }
.home-stat-cta i { font-size: 20px; }
.home-stat-cta span {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .06em;
    font-weight: 600;
}

/* ── SECTIONS ── */
.home-section {
    padding: 28px 0 0;
    max-width: 600px;
    margin: 0 auto;
}
.home-section-inner {
    padding: 0 16px;
}
.home-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}
.home-section-title {
    font-family: 'Unbounded', sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-1);
    text-transform: uppercase;
    letter-spacing: .08em;
}
.home-section-link {
    display: flex;
    align-items: center;
    gap: 2px;
    font-size: 12px;
    color: var(--brand);
    text-decoration: none;
    font-weight: 500;
    opacity: .9;
    transition: opacity .15s;
}
.home-section-link:hover { opacity: 1; }

.home-section-inner {
    padding: 0 16px;
    max-width: 600px;
    margin: 0 auto;
}

/* ── CATEGORIES ── */
.home-cats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}
.home-cat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 14px 8px 12px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    text-decoration: none;
    cursor: pointer;
    transition: border-color .2s, transform .15s, box-shadow .2s;
    position: relative;
    overflow: hidden;
}
.home-cat::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity .2s;
}
.home-cat:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.home-cat:hover::before { opacity: 1; }
.home-cat:hover .home-cat-icon { transform: scale(1.1); }

.home-cat-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    transition: transform .2s;
    flex-shrink: 0;
}
.home-cat-label {
    font-size: 10px;
    font-weight: 600;
    color: var(--text-2);
    text-align: center;
    line-height: 1.3;
    letter-spacing: .01em;
}

/* ── JOB CARDS ON HOME ── */
.home-section .joblist-container {
    gap: 8px;
    padding-bottom: 28px;
}
.home-section .joblist {
    background: var(--surface);
    border-color: var(--border);
    transition: border-color .2s, background .2s;
}
.home-section .joblist:hover {
    border-color: var(--border-2);
    background: var(--surface-3);
}

/* NEW badge on fresh jobs */
.joblist-new {
    display: inline-flex;
    align-items: center;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--green);
    background: rgba(0,212,146,.1);
    border: 1px solid rgba(0,212,146,.25);
    border-radius: 4px;
    padding: 1px 5px;
    margin-left: 6px;
    vertical-align: middle;
}

/* Views badge */
.joblist-views {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 11px;
    color: var(--text-3);
}

/* ── DIVIDER ── */
.home-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
    margin: 28px 16px 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ── CTA BANNER ── */
.home-cta {
    margin: 28px 16px 28px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    background: linear-gradient(135deg, var(--brand-light) 0%, #1a1040 100%);
    border: 1px solid rgba(59,130,246,0.25);
    border-radius: var(--radius-lg);
    padding: 24px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    position: relative;
    overflow: hidden;
}
.home-cta::before {
    content: '';
    position: absolute;
    right: -20px;
    top: -20px;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(59,130,246,0.15), transparent 70%);
    pointer-events: none;
}
.home-cta-text h3 {
    font-family: 'Unbounded', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-1);
    margin-bottom: 4px;
}
.home-cta-text p {
    font-size: 12px;
    color: var(--text-2);
    line-height: 1.5;
}
.home-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--brand);
    color: #fff;
    border-radius: 10px;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background .15s, transform .1s;
}
.home-cta-btn:hover  { background: var(--brand-mid); }
.home-cta-btn:active { transform: scale(.97); }

/* ══════════════════════════════════════════
   HOME — HORIZONTAL SCROLL CARDS
══════════════════════════════════════════ */
.hcards-scroll {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 4px 16px 16px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.hcards-scroll::-webkit-scrollbar { display: none; }

.hcard-link {
    text-decoration: none;
    flex-shrink: 0;
    width: 220px;
    scroll-snap-align: start;
}

.hcard {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 14px;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: border-color .2s, transform .15s, box-shadow .2s;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}
.hcard::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--brand), #a78bfa);
    opacity: 0;
    transition: opacity .2s;
}
.hcard:hover {
    border-color: var(--brand);
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(0,0,0,0.35);
}
.hcard:hover::before { opacity: 1; }

.hcard-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
}
.hcard-icon {
    width: 38px;
    height: 38px;
    min-width: 38px;
    border-radius: 8px;
    background: var(--brand-3);
    color: var(--brand);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .5px;
    border: 1px solid rgba(59,130,246,0.2);
}
.hcard-salary {
    font-size: 12px;
    font-weight: 700;
    color: var(--green);
    white-space: nowrap;
    margin-top: 2px;
}
.hcard-soxa {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-1);
    line-height: 1.3;
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
}
.hcard-desc {
    font-size: 12px;
    color: var(--text-2);
    line-height: 1.5;
    flex: 1;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.hcard-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.hcard-meta span {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 11px;
    color: var(--text-3);
}
.hcard-meta i { font-size: 12px; }

.hcard-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    border-top: 1px solid var(--border);
    padding-top: 8px;
    margin-top: auto;
}
.hcard-user {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: var(--text-2);
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 110px;
}
.hcard-user i { font-size: 12px; color: var(--text-3); flex-shrink:0; }
.hcard-time {
    font-size: 10px;
    color: var(--text-3);
    white-space: nowrap;
    flex-shrink: 0;
}