:root {
    --blue: #1959d1;
    --blue-dark: #0b2f77;
    --red: #e1262f;
    --cyan: #10d9ff;
    --green: #22c55e;
    --yellow: #facc15;
    --ink: #071225;
    --panel: #101d34;
    --panel-2: #152541;
    --line: rgba(255,255,255,.1);
    --muted: #a9b6cc;
    --white: #f8fbff;
    --shadow: 0 18px 50px rgba(0,0,0,.28);
}

* { box-sizing: border-box; }
html { max-width: 100%; overflow-x: hidden; scroll-behavior: smooth; }
body {
    margin: 0;
    min-height: 100vh;
    color: var(--white);
    background:
        radial-gradient(circle at 14% -10%, rgba(16,217,255,.18), transparent 30rem),
        radial-gradient(circle at 88% 2%, rgba(225,38,47,.15), transparent 28rem),
        linear-gradient(160deg, #06101f 0%, #0a1930 55%, #071225 100%);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.5;
    max-width: 100%;
    overflow-x: hidden;
}

a { color: inherit; }
button, input, select { font: inherit; }

.jobs-shell { width: min(1180px, calc(100% - 30px)); margin: 0 auto; }
.jobs-topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    border-bottom: 1px solid var(--line);
    background: rgba(6,16,31,.9);
    backdrop-filter: blur(16px);
}
.jobs-nav {
    min-height: 66px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}
.jobs-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 950; letter-spacing: -.04em; font-size: 1.38rem; }
.jobs-brand-mark {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 13px;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    box-shadow: 0 0 24px rgba(16,217,255,.32);
}
.brand-blue { color: #55a2ff; }
.brand-red { color: #ff5660; }
.jobs-nav-links { display: flex; align-items: center; gap: 10px; }
.jobs-nav-link { text-decoration: none; color: #d6e1f4; font-weight: 750; padding: 9px 13px; border-radius: 10px; }
.jobs-nav-link:hover { background: rgba(255,255,255,.07); }
.jobs-nav-primary { background: linear-gradient(135deg, var(--blue), #1b7ee8); box-shadow: 0 8px 22px rgba(25,89,209,.3); }

.jobs-hero { padding: 62px 0 38px; text-align: center; }
.jobs-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border: 1px solid rgba(34,197,94,.45);
    border-radius: 999px;
    color: #9df6b8;
    background: rgba(34,197,94,.09);
    font-size: .8rem;
    font-weight: 850;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.jobs-kicker-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 12px var(--green); }
.jobs-hero h1 { max-width: 900px; margin: 20px auto 14px; font-size: clamp(2.15rem, 6vw, 4.2rem); line-height: 1.02; letter-spacing: -.055em; }
.jobs-hero h1 span { background: linear-gradient(90deg, #5eb1ff, var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.jobs-hero p { max-width: 720px; margin: 0 auto; color: var(--muted); font-size: clamp(1rem, 2vw, 1.13rem); }

.jobs-stats { margin: 30px auto 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; max-width: 740px; }
.jobs-stat { border: 1px solid var(--line); border-radius: 16px; padding: 16px; background: rgba(16,29,52,.68); box-shadow: inset 0 1px rgba(255,255,255,.05); }
.jobs-stat strong { display: block; font-size: 1.55rem; color: #fff; }
.jobs-stat span { color: var(--muted); font-size: .8rem; font-weight: 700; }

.jobs-filter-wrap { position: relative; margin: 10px auto 36px; padding: 5px; border-radius: 20px; background: linear-gradient(120deg, rgba(16,217,255,.35), rgba(25,89,209,.22), rgba(225,38,47,.28)); }
.jobs-filter { display: grid; grid-template-columns: minmax(220px, 1.8fr) 1fr 1fr auto; gap: 10px; padding: 14px; border-radius: 16px; background: #0b172b; }
.jobs-field { position: relative; }
.jobs-field label { display: block; margin: 0 0 6px 3px; color: #9eb0ca; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.jobs-field input, .jobs-field select {
    width: 100%;
    height: 46px;
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 11px;
    background: #13223b;
    color: #fff;
    padding: 0 13px;
    outline: none;
}
.jobs-field input:focus, .jobs-field select:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(16,217,255,.11); }
.jobs-filter button { align-self: end; height: 46px; border: 0; border-radius: 11px; padding: 0 22px; color: #fff; background: linear-gradient(135deg, var(--blue), #2688f0); font-weight: 900; cursor: pointer; }

.jobs-section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.jobs-section-head h2 { margin: 0; font-size: clamp(1.45rem, 3vw, 2.05rem); letter-spacing: -.035em; }
.jobs-section-head p { margin: 4px 0 0; color: var(--muted); }
.jobs-count { color: #aeeaff; font-weight: 850; white-space: nowrap; }

.jobs-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.job-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 360px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 20px;
    background: linear-gradient(155deg, rgba(22,40,70,.96), rgba(10,25,47,.98));
    box-shadow: 0 14px 35px rgba(0,0,0,.18);
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.job-card::before { content: ''; position: absolute; inset: 0 0 auto; height: 3px; background: linear-gradient(90deg, var(--cyan), var(--blue), var(--red)); }
.job-card:hover { transform: translateY(-5px); border-color: rgba(16,217,255,.42); box-shadow: 0 20px 45px rgba(0,0,0,.28), 0 0 25px rgba(16,217,255,.07); }
.job-card-body { padding: 20px 20px 12px; flex: 1; }
.job-badges { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 15px; }
.job-badge { display: inline-flex; align-items: center; gap: 5px; padding: 5px 8px; border-radius: 999px; font-size: .68rem; line-height: 1; font-weight: 900; text-transform: uppercase; letter-spacing: .04em; }
.job-badge-official { color: #a3f7bb; background: rgba(34,197,94,.1); border: 1px solid rgba(34,197,94,.35); }
.job-badge-type { color: #b6eefe; background: rgba(16,217,255,.09); border: 1px solid rgba(16,217,255,.28); }
.job-card h3 { margin: 0 0 11px; font-size: 1.18rem; line-height: 1.23; letter-spacing: -.02em; }
.job-entity { margin: 0 0 16px; color: #c5d1e4; font-size: .88rem; font-weight: 720; }
.job-meta { display: grid; gap: 8px; color: #b2c1d6; font-size: .84rem; }
.job-meta-row { display: flex; gap: 8px; align-items: flex-start; }
.job-meta-icon { width: 18px; flex: 0 0 18px; text-align: center; }
.job-salary { margin-top: 17px; color: #fff; font-weight: 950; font-size: 1.14rem; }
.job-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 20px 18px; border-top: 1px solid var(--line); }
.job-deadline { color: #f9d976; font-size: .78rem; font-weight: 800; }
.job-open { display: inline-flex; align-items: center; gap: 6px; color: #fff; text-decoration: none; border-radius: 10px; padding: 9px 12px; background: var(--blue); font-size: .78rem; font-weight: 900; white-space: nowrap; }
.job-open:hover { background: #2778eb; }

.jobs-empty { grid-column: 1 / -1; text-align: center; padding: 60px 20px; border: 1px dashed rgba(255,255,255,.18); border-radius: 20px; background: rgba(255,255,255,.025); color: var(--muted); }
.jobs-empty strong { display: block; color: #fff; font-size: 1.25rem; margin-bottom: 6px; }

.jobs-pagination { display: flex; justify-content: center; gap: 7px; margin: 34px 0 8px; flex-wrap: wrap; }
.jobs-page { min-width: 40px; height: 40px; display: grid; place-items: center; padding: 0 10px; border: 1px solid var(--line); border-radius: 10px; color: #dce8f8; text-decoration: none; background: rgba(255,255,255,.035); font-weight: 800; }
.jobs-page:hover, .jobs-page-current { border-color: var(--cyan); background: rgba(16,217,255,.12); color: #fff; }

.jobs-trust { margin: 52px 0 22px; padding: 22px; border-radius: 18px; border: 1px solid rgba(34,197,94,.25); background: rgba(34,197,94,.055); display: flex; gap: 16px; align-items: flex-start; }
.jobs-trust-icon { width: 42px; height: 42px; flex: 0 0 42px; display: grid; place-items: center; border-radius: 13px; color: #062812; background: #75ed98; font-size: 1.2rem; }
.jobs-trust h3 { margin: 0 0 5px; }
.jobs-trust p { margin: 0; color: #b9c9dc; font-size: .9rem; }
.jobs-footer { margin-top: 58px; padding: 32px 0; border-top: 1px solid var(--line); color: #8fa0b9; font-size: .82rem; }
.jobs-footer-inner { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; }

.detail-wrap { max-width: 900px; margin: 42px auto 0; }
.detail-breadcrumb { margin-bottom: 16px; color: #9db0cb; font-size: .85rem; }
.detail-breadcrumb a { color: #bcefff; text-decoration: none; }
.detail-card { overflow: hidden; border: 1px solid var(--line); border-radius: 24px; background: linear-gradient(150deg, rgba(20,37,65,.98), rgba(9,23,43,.99)); box-shadow: var(--shadow); }
.detail-header { position: relative; padding: clamp(24px, 5vw, 46px); border-bottom: 1px solid var(--line); }
.detail-header::before { content: ''; position: absolute; inset: 0 0 auto; height: 4px; background: linear-gradient(90deg, var(--green), var(--cyan), var(--blue)); }
.detail-header h1 { margin: 15px 0 10px; font-size: clamp(1.75rem, 5vw, 3rem); line-height: 1.07; letter-spacing: -.045em; }
.detail-entity { color: #ced9ea; font-size: 1.02rem; font-weight: 750; }
.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 26px; }
.detail-fact { padding: 14px; border: 1px solid var(--line); border-radius: 13px; background: rgba(255,255,255,.035); }
.detail-fact span { display: block; color: #90a3bd; font-size: .7rem; font-weight: 850; text-transform: uppercase; letter-spacing: .06em; }
.detail-fact strong { display: block; margin-top: 4px; color: #fff; }
.detail-content { padding: clamp(24px, 5vw, 42px); }
.detail-content h2 { margin: 0 0 10px; }
.detail-content p { color: #b9c6d9; }
.detail-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
.detail-apply { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 20px; border-radius: 12px; text-decoration: none; color: #fff; background: linear-gradient(135deg, #16a34a, #22c55e); font-weight: 950; box-shadow: 0 12px 28px rgba(34,197,94,.22); }
.detail-share { min-height: 50px; padding: 0 17px; border: 1px solid var(--line); border-radius: 12px; color: #fff; background: rgba(255,255,255,.045); cursor: pointer; font-weight: 850; }
.detail-note { margin-top: 26px; padding: 15px; border-radius: 12px; color: #c6d3e4; background: rgba(250,204,21,.06); border: 1px solid rgba(250,204,21,.23); font-size: .86rem; }
.expired-notice { margin-bottom: 18px; padding: 12px 15px; border: 1px solid rgba(239,68,68,.4); border-radius: 12px; background: rgba(239,68,68,.1); color: #fecaca; font-weight: 800; }

.admin-wrap { width: min(1050px, calc(100% - 30px)); max-width: 1050px; margin: 38px auto; }
.admin-card { padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: rgba(16,29,52,.94); box-shadow: var(--shadow); }
.admin-login { max-width: 460px; margin: 80px auto; }
.admin-card h1, .admin-card h2 { margin-top: 0; }
.admin-form { display: grid; gap: 13px; }
.admin-form input, .admin-form select { width: 100%; height: 46px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: #0b172b; color: #fff; }
.admin-button { border: 0; border-radius: 10px; min-height: 45px; padding: 0 16px; background: var(--blue); color: #fff; font-weight: 900; cursor: pointer; }
.admin-button-green { background: #168b42; }
.admin-button-red { background: #b92b35; }
.admin-toolbar { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 18px; }
.admin-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 20px; }
.admin-metric { padding: 16px; border: 1px solid var(--line); border-radius: 13px; background: rgba(255,255,255,.035); }
.admin-metric strong { display: block; font-size: 1.5rem; }
.admin-metric span { color: var(--muted); font-size: .78rem; }
.admin-alert { padding: 12px 14px; border-radius: 10px; margin-bottom: 16px; background: rgba(16,217,255,.08); border: 1px solid rgba(16,217,255,.25); }
.admin-alert-error { color: #fecaca; background: rgba(239,68,68,.08); border-color: rgba(239,68,68,.28); }
.admin-table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; min-width: 760px; }
.admin-table th, .admin-table td { padding: 11px 9px; border-bottom: 1px solid var(--line); text-align: left; font-size: .82rem; }
.admin-table th { color: #9eb0c9; text-transform: uppercase; letter-spacing: .04em; font-size: .68rem; }
.admin-status { display: inline-block; padding: 4px 8px; border-radius: 999px; background: rgba(34,197,94,.12); color: #9bf5b5; font-size: .68rem; font-weight: 900; }
.admin-status-disabled, .admin-status-expired { color: #fecaca; background: rgba(239,68,68,.1); }
.admin-inline { display: inline; }
.admin-small-button { border: 0; padding: 6px 9px; border-radius: 8px; color: #fff; background: #314667; cursor: pointer; font-weight: 800; font-size: .72rem; }

@media (max-width: 900px) {
    .jobs-filter { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .jobs-filter button { width: 100%; }
    .jobs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .admin-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
    .jobs-shell { width: min(100% - 20px, 1180px); }
    .jobs-nav { min-height: 58px; }
    .jobs-brand { font-size: 1.06rem; }
    .jobs-brand-mark { width: 36px; height: 36px; border-radius: 11px; }
    .jobs-nav-link:not(.jobs-nav-primary) { display: none; }
    .jobs-nav-primary { padding: 8px 10px; font-size: .76rem; }
    .jobs-hero { padding-top: 42px; }
    .jobs-stats { gap: 7px; }
    .jobs-stat { padding: 12px 7px; }
    .jobs-stat strong { font-size: 1.2rem; }
    .jobs-stat span { font-size: .68rem; }
    .jobs-filter { grid-template-columns: 1fr; }
    .jobs-grid { grid-template-columns: 1fr; }
    .job-card { min-height: 0; }
    .jobs-section-head { display: block; }
    .jobs-count { display: block; margin-top: 7px; }
    .jobs-trust { padding: 17px; }
    .detail-grid { grid-template-columns: 1fr; }
    .detail-actions { display: grid; }
    .detail-apply, .detail-share { width: 100%; }
    .admin-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .admin-form[style*="grid-template-columns"] { grid-template-columns: minmax(0, 1fr) !important; }
}
