/*!
 * ADNSU / ASOIU Career v2 — styles.css
 * Dizayn sistemi: ADNSU Karyera brend paleti — dərin lacivərd (#001C80),
 * tünd rejimdə açıq mavi (#7B93FF). Ölçmə/siqnal aksenti: kəhrəba (#8A5200).
 */

/* ============================================================== *
 * 1. Tokenlər — açıq tema (bazis)
 * ============================================================== */
:root {
  color-scheme: light;

  --ground:      #F5F7FC;
  --surface:     #FFFFFF;
  --surface-2:   #EDF0F8;
  --surface-3:   #DDE3F8;

  --ink:         #0F1524;
  --ink-2:       #4A5568;
  --muted:       #7C879B;

  --line:        #E4E8F3;
  --line-2:      #C5CDE4;

  --brand:       #001C80;
  --brand-2:     #2A47D8;
  --brand-soft:  #EEF1FC;
  --brand-ring:  #C6D0F4;
  --on-brand:    #FFFFFF;

  --accent:      #8A5A00;
  --accent-soft: #FBF0DA;

  --good:        #0E7A46;
  --good-soft:   #E2F4EB;
  --warn:        #8A5A00;
  --warn-soft:   #FBF0DA;
  --bad:         #B03027;
  --bad-soft:    #FBE7E5;

  --seg-faculty: #001C80;
  --seg-major:   #5B74E8;
  --seg-skill:   #8A5A00;
  --seg-empty:   #DDE3F8;

  --font-display: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body:    'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono:    'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* Yumşaq, yuvarlaq həndəsə — dizayn faylındakı 16/24/32 şkalası */
  --r-sm: 10px;
  --r:    16px;
  --r-lg: 24px;
  --pill: 999px;

  --shadow-1: 0 1px 2px rgba(15, 21, 36, .04);
  --shadow-2: 0 4px 10px rgba(15, 21, 36, .05), 0 20px 40px -24px rgba(0, 28, 128, .30);
  --shadow-3: 0 8px 20px rgba(15, 21, 36, .07), 0 40px 70px -30px rgba(0, 28, 128, .40);

  --rail: 252px;
  --topbar: 66px;
}

/* ============================================================== *
 * 2. Baza
 * ============================================================== */
*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  min-width: 320px;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -.018em;
  text-wrap: balance;
  margin: 0;
}

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

::selection { background: var(--brand-soft); color: var(--ink); }

.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.num  { font-family: var(--font-mono); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* ============================================================== *
 * 2b. Maskot — ADNSU Karyera köməkçisi
 * Hər poza öz kontekstində işlənir; dekorativdir, ona görə
 * ekran oxuyucudan gizlədilir və heç vaxt məzmunu sıxışdırmır.
 * ============================================================== */
.mascot {
  display: block; max-width: 100%; height: auto; user-select: none;
  aspect-ratio: 560 / 700;   /* atributlarla eyni — yüklənənə qədər yer tutur */
}

/* Xoş gəldin zolağı — ana səhifənin başında */
.welcome {
  display: flex; align-items: center; gap: 22px;
  background: linear-gradient(120deg, var(--brand) 0%, #16309C 55%, #2A47D8 100%);
  color: #fff; border-radius: var(--r-lg);
  padding: 22px 26px; margin-bottom: 22px;
  position: relative; overflow: hidden;
}
.welcome::after {
  content: ""; position: absolute; right: -80px; top: -90px;
  width: 300px; height: 300px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.14) 0%, transparent 70%);
  pointer-events: none;
}
.welcome-text { flex: 1; min-width: 0; position: relative; }
.welcome-text h2 {
  font-size: clamp(1.15rem, 1rem + .7vw, 1.55rem); color: #fff; margin-bottom: 6px;
}
.welcome-text p { margin: 0; color: #C9D3F7; font-size: 13.5px; max-width: 56ch; }
.welcome .mascot { width: 118px; flex: none; position: relative; filter: drop-shadow(0 10px 22px rgba(0,0,0,.28)); }
.welcome-stats { display: flex; gap: 22px; margin-top: 14px; flex-wrap: wrap; }
.welcome-stats div { display: grid; }
.welcome-stats b {
  font-family: var(--font-display); font-size: 21px; font-weight: 800;
  color: #fff; line-height: 1.1; font-variant-numeric: tabular-nums;
}
.welcome-stats span {
  font-family: var(--font-mono); font-size: 9px; letter-spacing: .14em;
  text-transform: uppercase; color: #A7B6EE; margin-top: 2px;
}

/* Bölmə başlığında kiçik maskot */
.mascot-inline { display: flex; align-items: center; gap: 16px; }
.mascot-inline .mascot { width: 86px; flex: none; }

/* Boş vəziyyətlərdə düşünən maskot */
.empty .mascot { width: 104px; margin-bottom: 4px; opacity: .92; }

@media (max-width: 720px) {
  .welcome { flex-direction: column-reverse; align-items: flex-start; gap: 14px; padding: 20px; }
  .welcome .mascot { width: 92px; align-self: flex-end; margin-top: -8px; }
  .mascot-inline .mascot { width: 64px; }
}

/* ============================================================== *
 * 3. Loqo
 * ============================================================== */
.logo { display: flex; align-items: center; gap: 11px; min-width: 0; }
.logo-mark { width: 34px; height: 34px; flex: none; color: var(--brand); }
.logo-mark svg { display: block; width: 100%; height: 100%; }
.logo-rule { width: 1px; align-self: stretch; background: var(--line-2); margin: 4px 1px; }
.logo-text { display: grid; line-height: 1.05; min-width: 0; }
.logo-text b {
  font-family: var(--font-display);
  font-size: 16px; font-weight: 700; letter-spacing: .06em; color: var(--brand);
}
.logo-text span {
  font-size: 10.5px; font-weight: 600; color: var(--ink-2); letter-spacing: .01em;
}
.logo-text small {
  font-family: var(--font-mono);
  font-size: 8.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted);
}

/* ============================================================== *
 * 4. Üst panel
 * ============================================================== */
.topbar {
  position: sticky; top: 0; z-index: 30;
  height: var(--topbar);
  display: flex; align-items: center; gap: 18px;
  padding-inline: 18px;
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar-spacer { flex: 1; }
.topbar-home {
  height: 38px; display: inline-flex; align-items: center; gap: 7px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--surface);
  color: var(--ink-2); font: 600 12px/1 var(--font-sans);
}
.topbar-home > span { color: var(--brand); font-size: 20px; line-height: 1; transform: translateY(-1px); }
.topbar-home:hover { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); }

/* Rol seçicisi — platformanın üç kabinet arxitekturası */
.roleswitch {
  display: flex; gap: 2px; padding: 3px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r);
}
.roleswitch button {
  border: 0; background: transparent; color: var(--muted);
  font-size: 12px; font-weight: 600;
  padding: 6px 12px; border-radius: 7px;
  display: flex; align-items: center; gap: 6px;
  transition: background .15s, color .15s;
}
.roleswitch button:hover { color: var(--ink); }
.roleswitch button[aria-pressed="true"] {
  background: var(--brand); color: var(--on-brand); box-shadow: var(--shadow-1);
}
.roleswitch .dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: .55; }
.roleswitch button[aria-pressed="true"] .dot { opacity: 1; }

.icon-btn {
  width: 34px; height: 34px; flex: none;
  display: grid; place-items: center;
  border: 1px solid var(--line); background: var(--surface);
  color: var(--ink-2); border-radius: var(--r-sm);
  transition: border-color .15s, color .15s;
}
.icon-btn:hover { border-color: var(--line-2); color: var(--ink); }
.menu-btn { display: none; }

/* ============================================================== *
 * 5. Karkas
 * ============================================================== */
.shell { display: grid; grid-template-columns: var(--rail) minmax(0, 1fr); }

.rail {
  position: sticky; top: var(--topbar);
  height: calc(100vh - var(--topbar));
  overflow-y: auto;
  border-right: 1px solid var(--line);
  background: var(--surface);
  padding: 18px 12px 28px;
  display: flex; flex-direction: column; gap: 4px;
}
.rail-group { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted); padding: 14px 10px 6px; }
.rail a {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: var(--r-sm);
  color: var(--ink-2); font-size: 13px; font-weight: 500;
  text-decoration: none; transition: background .14s, color .14s;
}
.rail a:hover { background: var(--surface-2); color: var(--ink); text-decoration: none; }
.rail a[aria-current="page"] {
  background: var(--brand-soft); color: var(--brand); font-weight: 600;
  box-shadow: inset 2px 0 0 var(--brand);
}
.rail .ico { width: 16px; text-align: center; flex: none; opacity: .8; font-size: 13px; }
.rail .count {
  margin-left: auto; font-family: var(--font-mono); font-size: 10px;
  background: var(--surface-2); color: var(--muted);
  padding: 1px 6px; border-radius: 20px;
}
.rail a[aria-current="page"] .count { background: var(--surface); color: var(--brand); }

.main { min-width: 0; padding: 26px 26px 72px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 20px; flex-wrap: wrap; }
.page-head h1 { font-size: clamp(1.35rem, 1.1rem + .9vw, 1.75rem); margin-top: 4px; }
.page-head p { margin: 5px 0 0; color: var(--muted); max-width: 62ch; }

.section { margin-top: 30px; }
.section > h2 { font-size: 1.05rem; margin-bottom: 12px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.section-head h2 { font-size: 1.05rem; }
.section-head .hint { color: var(--muted); font-size: 12px; }

/* ============================================================== *
 * 6. Səthlər
 * ============================================================== */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 18px;
}
.card.pad-lg { padding: 22px; }
.card.quiet { background: var(--surface-2); border-color: transparent; }

.grid { display: grid; gap: 14px; }
.grid.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid.side { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; gap: 18px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.row.tight { gap: 6px; }
.stack { display: grid; gap: 12px; }
.stack.tight { gap: 7px; }
.spacer { flex: 1; }

/* Ölçü lövhəsi — yalnız səhifənin əsas rəqəmləri üçün */
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.tile {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); padding: 14px 16px;
  display: grid; gap: 2px;
}
.tile .k { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted); }
.tile .v { font-family: var(--font-display); font-size: 26px; font-weight: 600;
  letter-spacing: -.03em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.tile .s { font-size: 11.5px; color: var(--muted); }
.tile.accent .v { color: var(--brand); }

/* ============================================================== *
 * 7. Uyğunluq göstəricisi — 40 / 40 / 20 bölgüsü
 * ============================================================== */
.match { display: grid; gap: 6px; }
.match-top { display: flex; align-items: baseline; gap: 7px; }
.match-pct {
  font-family: var(--font-display); font-weight: 700;
  font-size: 19px; letter-spacing: -.03em; font-variant-numeric: tabular-nums;
}
.match-band { font-size: 11px; font-weight: 600; }
.match-band.good { color: var(--good); }
.match-band.warn { color: var(--warn); }
.match-band.bad  { color: var(--bad); }

.meter {
  display: flex; height: 7px; border-radius: 4px; overflow: hidden;
  background: var(--seg-empty);
}
.meter i { display: block; height: 100%; }
.meter .s-fac { background: var(--seg-faculty); }
.meter .s-maj { background: var(--seg-major); }
.meter .s-skl { background: var(--seg-skill); }
.meter.lg { height: 11px; border-radius: 6px; }

.meter-key { display: flex; gap: 12px; flex-wrap: wrap; font-size: 11px; color: var(--muted); }
.meter-key span { display: flex; align-items: center; gap: 5px; }
.meter-key i { width: 8px; height: 8px; border-radius: 2px; flex: none; }
.meter-key b { font-family: var(--font-mono); color: var(--ink-2); font-weight: 500; }

/* ============================================================== *
 * 8. Etiketlər
 * ============================================================== */
.chip {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11.5px; padding: 4px 11px; border-radius: var(--pill);
  background: var(--surface-2); color: var(--ink-2); border: 1px solid transparent;
}
.chip.line { background: transparent; border-color: var(--line); }
.chip.brand { background: var(--brand-soft); color: var(--brand); }
.chip.good { background: var(--good-soft); color: var(--good); }
.chip.warn { background: var(--warn-soft); color: var(--warn); }
.chip.bad  { background: var(--bad-soft);  color: var(--bad); }
.chip.accent { background: var(--accent-soft); color: var(--accent); }
.chip.mono { font-family: var(--font-mono); font-size: 10.5px; }

.badge-type {
  font-family: var(--font-mono); font-size: 9.5px; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase;
  padding: 3px 7px; border-radius: 4px;
}
.badge-type.t-is         { background: var(--brand-soft); color: var(--brand); }
.badge-type.t-tecrube    { background: var(--good-soft); color: var(--good); }
.badge-type.t-graduate   { background: var(--accent-soft); color: var(--accent); }
.badge-type.t-konullu    { background: var(--warn-soft); color: var(--warn); }

.status-dot { width: 7px; height: 7px; border-radius: 50%; flex: none; display: inline-block; }
.status-dot.good { background: var(--good); }
.status-dot.warn { background: var(--warn); }
.status-dot.bad  { background: var(--bad); }
.status-dot.idle { background: var(--muted); }

/* ============================================================== *
 * 9. Düymələr
 * ============================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  border: 1px solid var(--line-2); background: var(--surface); color: var(--ink);
  padding: 9px 18px; border-radius: var(--pill);
  font-size: 13px; font-weight: 600;
  transition: background .15s, border-color .15s, color .15s;
  white-space: nowrap;
}
.btn:hover { background: var(--surface-2); text-decoration: none; }
.btn.primary { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.btn.primary:hover { background: var(--brand-2); border-color: var(--brand-2); }
.btn.ghost { border-color: transparent; background: transparent; color: var(--brand); }
.btn.ghost:hover { background: var(--brand-soft); }
.btn.danger { color: var(--bad); border-color: var(--line); }
.btn.danger:hover { background: var(--bad-soft); border-color: var(--bad); }
.btn.sm { padding: 6px 13px; font-size: 12px; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }

.linkbtn {
  border: 0; background: none; padding: 0; color: var(--brand);
  font-size: 12.5px; font-weight: 600; text-decoration: underline;
  text-underline-offset: 3px;
}

/* ============================================================== *
 * 10. Formalar
 * ============================================================== */
.field { display: grid; gap: 5px; min-width: 0; }
.field > label { font-size: 12px; font-weight: 600; color: var(--ink-2); }
.field .help { font-size: 11px; color: var(--muted); }

input[type="text"], input[type="email"], input[type="number"], input[type="tel"],
input[type="url"], input[type="search"], input[type="password"], input:not([type]),
select, textarea {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  padding: 8px 10px;
  font-size: 13px;
  transition: border-color .15s, box-shadow .15s;
}
input:hover, select:hover, textarea:hover { border-color: var(--muted); }
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-ring);
}
textarea { resize: vertical; min-height: 84px; line-height: 1.6; }
select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%),
                    linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 16px) 15px, calc(100% - 11px) 15px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 30px;
}
::placeholder { color: var(--muted); opacity: .8; }

.searchbar { position: relative; flex: 1; min-width: 180px; }
.searchbar input { padding-left: 32px; }
.searchbar .ico { position: absolute; left: 11px; top: 50%; transform: translateY(-50%);
  color: var(--muted); font-size: 13px; pointer-events: none; }

.pills { display: flex; gap: 6px; flex-wrap: wrap; }
.pills button {
  border: 1px solid var(--line); background: var(--surface); color: var(--ink-2);
  font-size: 12px; font-weight: 600; padding: 7px 14px; border-radius: var(--pill);
  transition: background .14s, border-color .14s, color .14s;
}
.pills button:hover { border-color: var(--line-2); }
.pills button[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }

/* Seçilə bilən bacarıq etiketləri */
.skillpick { display: flex; flex-wrap: wrap; gap: 6px; }
.skillpick button {
  border: 1px dashed var(--line-2); background: transparent; color: var(--muted);
  font-size: 11.5px; padding: 4px 9px; border-radius: 20px;
}
.skillpick button:hover { color: var(--brand); border-color: var(--brand); }
.taglist { display: flex; flex-wrap: wrap; gap: 6px; }
.taglist .tag {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--brand-soft); color: var(--brand);
  font-size: 12px; padding: 4px 6px 4px 10px; border-radius: 20px;
}
.taglist .tag button { border: 0; background: none; color: inherit; opacity: .6; font-size: 14px; line-height: 1; padding: 0 2px; }
.taglist .tag button:hover { opacity: 1; }

/* ============================================================== *
 * 11. Elan kartı
 * ============================================================== */
.joblist { display: grid; gap: 12px; }
.job {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 16px 18px; display: grid; gap: 12px;
  transition: border-color .15s, box-shadow .15s;
}
.job:hover { border-color: var(--line-2); box-shadow: var(--shadow-1); }
.job.top { border-color: var(--brand-ring); box-shadow: inset 3px 0 0 var(--brand); }

.job-head { display: flex; gap: 12px; align-items: flex-start; }
.brandbox {
  width: 42px; height: 42px; flex: none; border-radius: var(--r-sm);
  background: var(--surface-2); border: 1px solid var(--line);
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 13px; color: var(--brand);
}
.company-logo-img {
  width: 100%; height: 100%; max-width: 100%; max-height: 100%;
  object-fit: contain; object-position: center; display: block;
}
.brandbox.has-company-logo {
  width: 48px; height: 48px; box-sizing: border-box;
  background: #fff; padding: 6px; overflow: hidden;
}
.job-title { min-width: 0; flex: 1; }
.job-title h3 { font-size: 15px; letter-spacing: -.012em; }
.job-title .org { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.job-match { width: 156px; flex: none; }

.job-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; color: var(--muted); }
.job-meta span { display: inline-flex; align-items: center; gap: 5px; }
.job-foot { display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  border-top: 1px solid var(--line); padding-top: 12px; }

.skillrow { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; }
.skillrow .sk { font-size: 11px; padding: 2px 7px; border-radius: 4px; border: 1px solid var(--line); color: var(--muted); }
.skillrow .sk.hit { background: var(--good-soft); border-color: transparent; color: var(--good); font-weight: 600; }
.skillrow .sk.gap { background: transparent; border-style: dashed; border-color: var(--line-2); }

/* ============================================================== *
 * 12. Cədvəl
 * ============================================================== */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
thead th {
  text-align: left; font-family: var(--font-mono); font-weight: 500;
  font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
  padding: 10px 14px; border-bottom: 1px solid var(--line); white-space: nowrap;
}
tbody td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: var(--surface-2); }
td.num, th.num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; text-align: right; }
td .who { display: grid; }
td .who b { font-weight: 600; }
td .who small { color: var(--muted); font-size: 11.5px; }

/* ============================================================== *
 * 13. Xüsusi bloklar
 * ============================================================== */
.empty {
  border: 1px dashed var(--line-2); border-radius: var(--r);
  padding: 34px 20px; text-align: center; color: var(--muted);
  display: grid; gap: 8px; justify-items: center;
}
.empty b { color: var(--ink); font-family: var(--font-display); font-size: 14px; }

.bar {
  display: block;
  width: 100%;
  height: 6px;
  min-height: 6px;
  border-radius: 3px;
  background: var(--surface-3);
  overflow: hidden;
  contain: layout paint;
}
.bar i { display: block; width: 0; height: 6px; max-width: 100%; background: var(--brand); }
.bar i.good { background: var(--good); }
.bar i.warn { background: var(--warn); }
.bar i.bad  { background: var(--bad); }

.kv { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 4px 14px; font-size: 13px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }

.note {
  display: flex; gap: 9px; align-items: flex-start;
  font-size: 12.5px; padding: 10px 12px; border-radius: var(--r-sm);
  background: var(--surface-2); color: var(--ink-2);
}
.note.good { background: var(--good-soft); color: var(--good); }
.note.warn { background: var(--warn-soft); color: var(--warn); }
.note.bad  { background: var(--bad-soft);  color: var(--bad); }
.note .m { flex: none; font-weight: 700; }

/* Yol xəritəsi */
.roadmap { display: grid; gap: 0; }
.rm-stage {
  display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 18px;
  padding: 18px 0; border-top: 1px solid var(--line);
}
.rm-stage:first-child { border-top: 0; padding-top: 4px; }
.rm-when { position: relative; padding-left: 18px; }
.rm-when::before {
  content: ""; position: absolute; left: 0; top: 6px;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--surface); border: 2px solid var(--line-2);
}
.rm-stage.now .rm-when::before { background: var(--brand); border-color: var(--brand); }
.rm-stage.done .rm-when::before { background: var(--good); border-color: var(--good); }
.rm-when b { font-family: var(--font-display); font-size: 13.5px; display: block; }
.rm-when small { color: var(--muted); font-size: 11.5px; }
.rm-body { display: grid; gap: 10px; }
.rm-body h4 { font-size: 13px; }
.rm-line { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 10px; align-items: start; font-size: 12.5px; }
.rm-line > span:first-child { color: var(--muted); font-size: 11.5px; padding-top: 2px; }
.rm-body ul { margin: 0; padding-left: 17px; display: grid; gap: 3px; }

/* Müsahibə */
.q-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; display: grid; gap: 10px; }
.q-head { display: flex; align-items: baseline; gap: 10px; }
.q-num { font-family: var(--font-mono); font-size: 11px; color: var(--muted); flex: none; }
.q-head h3 { font-size: 14.5px; font-weight: 600; flex: 1; letter-spacing: -.01em; }
.q-hint { font-size: 12px; color: var(--muted); border-left: 2px solid var(--line-2); padding-left: 10px; }

.scorelist { display: grid; gap: 10px; }
.scoreline { display: grid; grid-template-columns: 124px minmax(0, 1fr) 46px; gap: 12px; align-items: center; font-size: 12.5px; }
.scoreline .v { font-family: var(--font-mono); text-align: right; font-variant-numeric: tabular-nums; }

.bigscore { display: flex; align-items: baseline; gap: 10px; }
.bigscore b { font-family: var(--font-display); font-size: 44px; font-weight: 700;
  letter-spacing: -.045em; line-height: 1; font-variant-numeric: tabular-nums; }
.bigscore span { color: var(--muted); font-size: 13px; }

/* CV vərəqi */
.cvsheet {
  background: #fff; color: #17233d;
  border: 1px solid var(--line); border-radius: var(--r);
  padding: 30px 32px; font-size: 12.5px; line-height: 1.55;
  max-width: 760px;
}
.cvsheet h2 { font-family: var(--font-display); font-size: 22px; color: #0A0E1A; letter-spacing: -.025em; }
.cvsheet .cv-role { color: #414B63; font-size: 13px; margin-top: 2px; }
.cvsheet .cv-contact { font-family: var(--font-mono); font-size: 10.5px; color: #6B7489; margin-top: 8px;
  display: flex; flex-wrap: wrap; gap: 4px 14px; }
.cvsheet h3 {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase;
  color: #001C80; border-bottom: 1px solid #DCE0EB; padding-bottom: 5px; margin: 20px 0 9px;
}
.cvsheet .cv-item { margin-bottom: 11px; }
.cvsheet .cv-item b { font-size: 13px; color: #0A0E1A; }
.cvsheet .cv-item .meta { color: #6B7489; font-size: 11.5px; }
.cvsheet .cv-item p { margin: 3px 0 0; }
.cvsheet .cv-skills { display: flex; flex-wrap: wrap; gap: 5px; }
.cvsheet .cv-skills span { background: #F2F4F9; color: #001C80; font-size: 11px; padding: 2px 8px; border-radius: 4px; }

.cv-designer-head {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  margin-bottom: 14px; padding: 18px 20px;
}
.cv-designer-head h2 { font-size: 17px; margin: 6px 0; }
.cv-designer-head p { margin: 0; color: var(--ink-2); font-size: 12.5px; max-width: 72ch; }
.cv-builder-wrap {
  overflow: hidden; border: 1px solid var(--line); border-radius: var(--r-lg);
  background: #f5edd8; box-shadow: var(--shadow-1);
}
.cv-builder-frame { display: block; width: 100%; height: min(1120px, calc(100vh - 190px)); min-height: 760px; border: 0; }

/* Modal */
.modal-back {
  position: fixed; inset: 0; z-index: 60;
  background: color-mix(in srgb, #050a19 62%, transparent);
  backdrop-filter: blur(4px);
  display: grid; place-items: center; padding: 18px;
}
.modal-back[hidden] { display: none; }
.modal {
  width: min(560px, 100%); max-height: 88vh; overflow-y: auto;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 24px; box-shadow: var(--shadow-3);
}
.modal-head { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 16px; }
.modal-head h2 { font-size: 18px; flex: 1; }

/* Bildiriş */
.toast {
  position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%);
  z-index: 80; display: flex; align-items: center; gap: 9px;
  background: var(--ink); color: var(--ground);
  padding: 10px 16px; border-radius: 22px; font-size: 13px; font-weight: 500;
  box-shadow: var(--shadow-2); max-width: calc(100% - 32px);
}
.toast[hidden] { display: none; }

footer.foot {
  border-top: 1px solid var(--line); margin-top: 44px; padding-top: 18px;
  display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center;
  font-size: 11.5px; color: var(--muted);
}
footer.foot a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }

/* ============================================================== *
 * 13b. Giriş / qeydiyyat ekranı
 * ============================================================== */
.auth {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: 100vh;
}

/* Sol panel — brend.
   Yapışqan və ekran hündürlüyündə: qeydiyyat forması uzun olanda panel
   onunla birlikdə dartılmır, boş mavi sahə yaranmır. Forma yanında sürüşür. */
.auth-brand {
  background: linear-gradient(160deg, #0d1f6b 0%, var(--brand) 46%, #0a1745 100%);
  color: #eef1fc;
  padding: 34px 40px 30px;
  display: flex; flex-direction: column; gap: 28px;
  position: sticky; top: 0;
  height: 100vh;
  overflow: hidden;
}
.auth-brand::after {
  content: ""; position: absolute; inset: auto -120px -160px auto;
  width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.14) 0%, transparent 68%);
  pointer-events: none;
}
/* Başlıq sətri: loqo solda, «Ana səhifə» sağda.
   Əvvəl qayıtma düyməsi position:fixed idi və loqonun üstünə düşürdü. */
.auth-brand-top {
  position: relative;
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; flex-wrap: wrap;
}

/* Giriş ekranında loqo iri ölçüdə — brend panelin əsas tanınma elementi */
.auth-brand .logo { gap: 15px; }
.auth-brand .logo-mark { width: 56px; height: 56px; color: #fff; }
.auth-brand .logo-rule { background: rgba(255, 255, 255, .34); margin: 6px 2px; }
.auth-brand .logo-text { line-height: 1.12; }
.auth-brand .logo-text b { color: #fff; font-size: 24px; letter-spacing: .07em; }
.auth-brand .logo-text span { color: #cfd8f7; font-size: 13.5px; }
.auth-brand .logo-text small { color: #92a4dd; font-size: 9.5px; }

.auth-back {
  flex: none;
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .26);
  color: #e6ebfc;
  border-radius: var(--pill); padding: 9px 17px;
  font-family: var(--font-body); font-size: 13px; font-weight: 700;
  cursor: pointer; transition: background .18s, border-color .18s, color .18s;
}
.auth-back:hover { background: rgba(255, 255, 255, .19); border-color: rgba(255, 255, 255, .5); color: #fff; }
.auth-back:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

.auth-brand-mid { margin-block: auto; position: relative; }
.auth-brand-mid h1 {
  font-size: clamp(1.5rem, 1.1rem + 1.5vw, 2.15rem);
  line-height: 1.16; color: #fff; max-width: 15ch;
}
.auth-brand-mid p {
  color: #c2cdf0; margin: 14px 0 0; max-width: 46ch; font-size: 13.5px; line-height: 1.65;
}
.auth-facts {
  display: flex; flex-wrap: wrap; gap: 26px; margin: 28px 0 0;
  padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .16);
}
.auth-facts div { display: grid; gap: 2px; }
.auth-facts dt {
  font-family: var(--font-display); font-size: 22px; font-weight: 700;
  color: #fff; letter-spacing: -.03em; font-variant-numeric: tabular-nums;
}
.auth-facts dd {
  margin: 0; font-family: var(--font-mono); font-size: 9.5px;
  letter-spacing: .12em; text-transform: uppercase; color: #93a5de;
}
.auth-brand-foot {
  position: relative; font-size: 11px; color: #8b9cd6;
  padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .12);
}

@media (max-height: 720px) {
  .auth-brand-foot { display: none; }
  .auth-brand { padding-block: 24px; }
}

/* Sağ panel — forma */
.auth-panel {
  background: var(--ground);
  display: flex; flex-direction: column; justify-content: center;
  gap: 16px; padding: 40px;
  min-height: 100vh;
}
.auth-card {
  width: min(430px, 100%); margin: 0 auto;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 26px;
  box-shadow: var(--shadow-1);
}
.auth-card-wide { width: min(760px, 100%); }
.auth-h { font-size: 19px; margin-bottom: 4px; }
.auth-sub { color: var(--muted); font-size: 12.5px; margin: 0 0 4px; }

.registration-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.registration-head .linkbtn { flex: none; margin-top: 3px; }
.account-choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.account-choice-grid > button {
  min-height: 190px; padding: 22px; text-align: left; border: 1px solid var(--line);
  border-radius: var(--r-lg); background: var(--surface); color: var(--ink);
  display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
  transition: border-color .16s, transform .16s, box-shadow .16s;
}
.account-choice-grid > button:hover { border-color: var(--brand); transform: translateY(-2px); box-shadow: var(--shadow-2); }
.account-choice-grid b { font-size: 15px; }
.account-choice-grid small { color: var(--muted); line-height: 1.5; }
.account-choice-grid em { color: var(--brand); font-size: 12px; font-weight: 800; font-style: normal; margin-top: auto; }
.account-choice-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: var(--brand-soft); color: var(--brand); font-size: 21px; }
.registration-section { border: 1px solid var(--line); border-radius: var(--r); padding: 16px; display: grid; gap: 14px; background: var(--surface-2); }
.registration-section > div:first-child { display: grid; gap: 3px; }
.registration-section > div:first-child span { color: var(--muted); font-size: 11.5px; }
.registration-plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.registration-plans button { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); color: var(--ink); padding: 14px; text-align: left; display: grid; gap: 7px; }
.registration-plans button:hover { border-color: var(--brand); }
.registration-plans button[aria-pressed="true"] { border-color: var(--brand); background: var(--brand-soft); box-shadow: 0 0 0 2px color-mix(in srgb, var(--brand) 18%, transparent); }
.registration-plans button > span { font: 700 11px var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--brand); }
.registration-plans button > b { font-size: 18px; }
.registration-plans button > b small { font-size: 10px; color: var(--muted); margin-left: 3px; }
.registration-plans button > em { color: var(--muted); font-size: 10.5px; font-style: normal; line-height: 1.45; }

.auth-tabs {
  display: flex; gap: 2px; padding: 3px; margin-bottom: 20px;
  background: var(--surface-2); border-radius: var(--r);
}
.auth-tabs button {
  flex: 1; border: 0; background: transparent; color: var(--muted);
  font-size: 13px; font-weight: 600; padding: 8px; border-radius: 7px;
  transition: background .15s, color .15s;
}
.auth-tabs button:hover { color: var(--ink); }
.auth-tabs button[aria-selected="true"] {
  background: var(--surface); color: var(--brand); box-shadow: var(--shadow-1);
}

.auth-alt {
  display: flex; flex-wrap: wrap; gap: 8px 14px;
  justify-content: space-between; align-items: center;
  font-size: 12px; color: var(--muted);
  border-top: 1px solid var(--line); padding-top: 14px; margin-top: 2px;
}

/* Google ilə giriş */
.btn-google {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 12px 16px;
  border: 1px solid var(--line-2); background: var(--surface); color: var(--ink);
  border-radius: var(--pill); font-size: 13.5px; font-weight: 600;
  transition: background .15s, border-color .15s;
}
.btn-google:hover { background: var(--surface-2); border-color: var(--muted); }
.btn-google svg { width: 17px; height: 17px; flex: none; }
.btn-google[disabled] { opacity: .55; pointer-events: none; }

.auth-or {
  display: flex; align-items: center; gap: 12px;
  color: var(--muted); font-size: 11px; margin: 2px 0;
}
.auth-or::before, .auth-or::after {
  content: ""; flex: 1; height: 1px; background: var(--line);
}

/* Şifrə sahəsi */
.pw-wrap { position: relative; display: flex; }
.pw-wrap input { padding-right: 46px; }
.pw-toggle {
  position: absolute; right: 5px; top: 50%; transform: translateY(-50%);
  width: 32px; height: 32px; border: 0; background: transparent;
  color: var(--muted); border-radius: var(--r-sm);
  display: grid; place-items: center;
  transition: color .15s, background .15s;
}
.pw-toggle svg { width: 17px; height: 17px; display: block; }
.pw-toggle .eye-off { opacity: 0; transition: opacity .15s; }
.pw-toggle[aria-pressed="true"] { color: var(--brand); }
.pw-toggle[aria-pressed="true"] .eye-off { opacity: 1; }
.pw-toggle:hover { color: var(--brand); background: var(--surface-2); }

/* Güc göstəricisi — zolaq və etiket bir sırada, sahə ilə eyni enində */
.pw-foot {
  display: flex; align-items: center; gap: 10px; margin-top: 7px;
}
.pw-meter { display: flex; gap: 4px; flex: 1; }
.pw-meter i {
  flex: 1; height: 4px; border-radius: 2px;
  background: var(--surface-3); transition: background .2s;
}
.pw-meter i.on.l1 { background: var(--bad); }
.pw-meter i.on.l2 { background: var(--warn); }
.pw-meter i.on.l3 { background: var(--good); }
.pw-meter i.on.l4 { background: var(--good); }
.pw-label {
  font-size: 11px; color: var(--muted); white-space: nowrap;
  flex: none; min-width: 84px; text-align: right;
}

/* Təkrar sahəsinin canlı uyğunluq göstəricisi */
.pw-match { font-size: 11px; min-height: 15px; display: block; margin-top: 5px; }
.pw-match.ok  { color: var(--good); }
.pw-match.bad { color: var(--bad); }

.check {
  display: flex; gap: 9px; align-items: flex-start;
  font-size: 12px; color: var(--ink-2); line-height: 1.5; cursor: pointer;
}
.check input { margin: 2px 0 0; accent-color: var(--brand); flex: none; }

/* Demo hesabları */
.auth-demo {
  width: min(430px, 100%); margin: 0 auto;
  border: 1px dashed var(--line-2); border-radius: var(--r);
  padding: 16px;
}
.auth-demo p { color: var(--muted); font-size: 11.5px; margin: 6px 0 12px; }
.auth-demo-list { display: grid; gap: 6px; }
.auth-demo-list button {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: left;
  border: 1px solid var(--line); background: var(--surface);
  border-radius: var(--r-sm); padding: 8px 10px;
  transition: border-color .15s, background .15s;
}
.auth-demo-list button:hover { border-color: var(--brand); background: var(--brand-soft); }
.auth-demo-list .who { display: grid; flex: 1; min-width: 0; }
.auth-demo-list .who b { font-size: 12.5px; }
.auth-demo-list .who small { font-size: 10.5px; color: var(--muted); }
.auth-demo-list .mono {
  font-family: var(--font-mono); font-size: 10.5px; color: var(--muted);
  background: var(--surface-2); padding: 2px 6px; border-radius: 4px; flex: none;
}

.education-list { display: grid; gap: 10px; margin-top: 16px; }
.education-item {
  display: flex; justify-content: space-between; gap: 14px; align-items: flex-start;
  border: 1px solid var(--line); border-radius: var(--r-sm); padding: 14px;
  background: var(--surface-2);
}
.education-item h3 { font-size: 14px; margin: 8px 0 3px; }
.education-item p { color: var(--ink-2); font-size: 12.5px; margin: 0 0 4px; }
.education-item small { color: var(--muted); font-size: 11.5px; }

.ai-panel { border-color: color-mix(in srgb, var(--brand) 30%, var(--line)); background: linear-gradient(145deg, var(--surface), var(--brand-soft)); }
.ai-result { margin-top: 12px; display: grid; gap: 9px; }
.ai-result pre { white-space: pre-wrap; font: inherit; margin: 0; color: var(--ink-2); }
.plan-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.plan-card { position: relative; display: flex; flex-direction: column; min-height: 360px; }
.plan-card.featured { border-color: var(--brand); box-shadow: 0 16px 45px color-mix(in srgb, var(--brand) 17%, transparent); }
.plan-price { font: 700 29px/1 var(--font-mono); margin: 16px 0 12px; }
.plan-price small { color: var(--muted); font: 500 11px/1 var(--font-body); }
.plan-list { display: grid; gap: 8px; margin: 0 0 18px; padding: 0; list-style: none; color: var(--ink-2); font-size: 12.5px; }
.plan-list li::before { content: '✓'; color: var(--good); font-weight: 700; margin-right: 8px; }
.plan-card .btn { margin-top: auto; }
.network-filters { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 12px; }
.network-filters button { border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); border-radius: 999px; padding: 7px 11px; }
.network-filters button[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: white; }
.post-kind { text-transform: uppercase; letter-spacing: .08em; font: 600 9.5px/1 var(--font-mono); color: var(--brand); }
.post-link { display: block; margin-top: 10px; color: var(--brand); font-size: 12.5px; overflow-wrap: anywhere; }

/* ============================================================== *
 * Şəbəkə — paylaşımlar
 * ============================================================== */
.post {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); padding: 16px 18px; display: grid; gap: 11px;
}
.post-head { display: flex; align-items: center; gap: 11px; }
.post-head .who { display: grid; flex: 1; min-width: 0; }
.post-head .who b { font-size: 13.5px; }
.post-head .who small { font-size: 11.5px; color: var(--muted); }
.post-body { margin: 0; font-size: 13.5px; line-height: 1.65; color: var(--ink-2); word-break: break-word; }
.post-foot { display: flex; gap: 8px; border-top: 1px solid var(--line); padding-top: 10px; }
.post-act {
  border: 0; background: transparent; color: var(--muted);
  font-size: 12.5px; font-weight: 600; padding: 5px 10px; border-radius: var(--r-sm);
  transition: background .14s, color .14s;
}
.post-act:hover { background: var(--surface-2); color: var(--ink); }
.post-act.on { color: var(--bad); }

.post-comments { border-top: 1px solid var(--line); padding-top: 11px; display: grid; gap: 10px; }
.comment { display: flex; gap: 9px; align-items: flex-start; font-size: 12.5px; }
.comment b { font-size: 12.5px; }
.comment small { color: var(--muted); font-size: 11px; margin-left: 5px; }
.comment p { margin: 2px 0 0; color: var(--ink-2); }
.avatar.sm { width: 26px; height: 26px; font-size: 10px; flex: none; }

/* ============================================================== *
 * Tələbə güzəştləri və QR
 * ============================================================== */
.benefit { display: grid; gap: 0; }
.benefit-mark {
  width: 40px; height: 40px; flex: none; border-radius: var(--r-sm);
  background: var(--brand-soft); color: var(--brand);
  display: grid; place-items: center; font-size: 18px;
}
.benefit-off {
  font-family: var(--font-display); font-size: 19px; font-weight: 700;
  color: var(--accent); letter-spacing: -.02em; margin: 12px 0 8px;
}
.qr-box {
  display: grid; place-items: center; padding: 20px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  min-height: 210px; color: #55637e; font-size: 12.5px; text-align: center;
}
.qr-box img, .qr-box canvas { display: block; }
.qr-code {
  text-align: center; font-size: 17px; letter-spacing: .1em;
  color: var(--ink); background: var(--surface-2);
  padding: 11px; border-radius: var(--r-sm); margin-top: 12px; word-break: break-all;
}

/* CV Qurucusu — platformanın içində çərçivədə */
.cv-frame-wrap {
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-1);
}
.cv-frame {
  display: block;
  width: 100%;
  height: min(1100px, 88vh);
  border: 0;
  background: #fff;
}
@media (max-width: 900px) { .cv-frame { height: 80vh; } }

/* Açılış ekranı — rejim təyin olunana qədər */
.boot {
  min-height: 100vh; display: grid; place-content: center; justify-items: center;
  gap: 14px; background: var(--ground);
}
.boot .logo-mark { width: 44px; height: 44px; color: var(--brand); animation: bootPulse 1.4s ease-in-out infinite; }
.boot p { color: var(--muted); font-size: 12.5px; margin: 0; }
@keyframes bootPulse { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }

/* Backend rejimi göstəricisi */
.auth-mode {
  width: min(430px, 100%); margin: 0 auto;
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 11px; color: var(--muted); line-height: 1.5;
}
.auth-mode .status-dot { margin-top: 5px; }

/* ============================================================== *
 * 13c. İstifadəçi menyusu
 * ============================================================== */
.usermenu { position: relative; }
.notification-center { position: relative; }
.notification-bell {
  position: relative; width: 38px; height: 38px; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink-2);
  font-size: 19px;
}
.notification-bell:hover, .notification-bell[aria-expanded="true"] { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }
.notification-bell b {
  position: absolute; right: -5px; top: -6px; min-width: 18px; height: 18px; padding: 0 4px;
  display: grid; place-items: center; border: 2px solid var(--surface); border-radius: 999px;
  background: var(--bad); color: #fff; font: 600 9px/1 var(--font-mono);
}
.notification-pop {
  position: absolute; z-index: 55; right: 0; top: calc(100% + 10px); width: min(390px, calc(100vw - 24px));
  overflow: hidden; border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--surface); box-shadow: var(--shadow-3);
}
.notification-pop > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 16px; border-bottom: 1px solid var(--line); }
.notification-pop > header > div { display: grid; gap: 3px; }
.notification-pop > header strong { font-size: 13px; }
.notification-list { max-height: min(520px, calc(100vh - 110px)); overflow-y: auto; }
.notification-item {
  width: 100%; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 10px;
  padding: 12px 14px; border: 0; border-bottom: 1px solid var(--line); background: var(--surface); text-align: left;
}
.notification-item:hover { background: var(--surface-2); }
.notification-item.unread { background: color-mix(in srgb, var(--brand-soft) 62%, var(--surface)); }
.notification-kind { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 10px; background: var(--brand-soft); color: var(--brand); }
.notification-item > span:last-child { display: grid; min-width: 0; }
.notification-item b { font-size: 12.5px; }
.notification-item em { color: var(--ink-2); font-size: 11.5px; font-style: normal; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notification-item small { color: var(--muted); font-size: 10px; margin-top: 3px; }
.notification-empty { padding: 30px 18px; color: var(--muted); text-align: center; font-size: 12px; }
.userchip {
  display: flex; align-items: center; gap: 9px;
  border: 1px solid var(--line); background: var(--surface);
  border-radius: var(--r); padding: 5px 10px 5px 6px;
  transition: border-color .15s;
}
.userchip:hover { border-color: var(--line-2); }
.userchip .avatar {
  width: 28px; height: 28px; flex: none; border-radius: var(--r-sm);
  background: var(--brand-soft); color: var(--brand);
  display: grid; place-items: center;
  font-family: var(--font-display); font-size: 11px; font-weight: 700;
}
.userchip .who { display: grid; text-align: left; min-width: 0; }
.userchip .who b { font-size: 12px; font-weight: 600; white-space: nowrap; }
.userchip .who small { font-size: 10px; color: var(--muted); white-space: nowrap; }
.userchip .caret { color: var(--muted); font-size: 10px; }

.usermenu-pop {
  position: absolute; right: 0; top: calc(100% + 7px); z-index: 50;
  width: 240px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--shadow-2); padding: 6px;
}
.usermenu-head {
  display: grid; gap: 3px; padding: 10px 10px 12px;
  border-bottom: 1px solid var(--line); margin-bottom: 6px;
}
.usermenu-head b { font-size: 13px; }
.usermenu-head small { font-size: 11px; color: var(--muted); word-break: break-all; }
.usermenu-head .chip { justify-self: start; margin-top: 5px; }
.usermenu-pop button {
  display: flex; align-items: center; gap: 9px; width: 100%; text-align: left;
  border: 0; background: transparent; color: var(--ink-2);
  font-size: 12.5px; font-weight: 500; padding: 8px 10px; border-radius: var(--r-sm);
}
.usermenu-pop button:hover { background: var(--surface-2); color: var(--ink); }
.usermenu-pop button.danger { color: var(--bad); }
.usermenu-pop button.danger:hover { background: var(--bad-soft); }

/* ============================================================== *
 * 14. Uyğunlaşan düzüm
 * ============================================================== */
@media (max-width: 1080px) {
  .grid.side { grid-template-columns: minmax(0, 1fr); }
  .grid.c4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .auth { grid-template-columns: 42% minmax(0, 1fr); }
  .auth-brand { padding: 28px 26px; }
  .auth-panel { padding: 32px 26px; }
  .auth-brand .logo-mark { width: 48px; height: 48px; }
  .auth-brand .logo-text b { font-size: 21px; }
  .auth-brand .logo-text span { font-size: 12.5px; }
  .auth-back { padding: 8px 14px; font-size: 12.5px; }
}

@media (max-width: 860px) {
  .auth { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .auth-brand {
    position: static; height: auto; overflow: visible;
    padding: 22px 18px 24px; gap: 18px;
  }
  .auth-brand-mid { margin-block: 0; }
  .auth-brand .logo-mark { width: 42px; height: 42px; }
  .auth-brand .logo-text b { font-size: 19px; }
  .auth-brand .logo-text span { font-size: 11.5px; }
  .auth-panel { min-height: 0; }
  .auth-brand-mid { margin-top: 0; }
  .auth-brand-mid h1 { font-size: 1.35rem; max-width: none; }
  .auth-brand-mid p { display: none; }
  .auth-facts { gap: 20px; margin-top: 18px; padding-top: 16px; }
  .auth-brand-foot { display: none; }
  .auth-panel { padding: 24px 18px 44px; }
  .registration-plans { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .topbar { background: var(--surface); backdrop-filter: none; }
  .shell { grid-template-columns: minmax(0, 1fr); }
  .rail {
    position: sticky; top: var(--topbar); z-index: 35; height: auto; width: auto;
    border-right: 0; border-bottom: 1px solid var(--line);
    flex-direction: row; overflow-x: auto; gap: 6px;
    padding: 10px 14px; scrollbar-width: none;
  }
  .rail::-webkit-scrollbar { display: none; }
  .rail-group { display: none; }
  .rail a { white-space: nowrap; padding: 7px 12px; border-radius: 20px; background: var(--surface-2); }
  .rail a[aria-current="page"] { box-shadow: none; }
  .rail .count { display: none; }
  .main { padding: 20px 16px 60px; }
  .plan-grid { grid-template-columns: 1fr; }
  .grid.c3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .job-head { flex-wrap: wrap; }
  .job-match { width: 100%; }
  .userchip .who { display: none; }
  .userchip { padding: 5px 8px 5px 6px; }
}

@media (max-width: 620px) {
  .topbar {
    min-height: var(--topbar); height: auto;
    padding: max(8px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) 8px max(12px, env(safe-area-inset-left));
    gap: 8px;
  }
  .rail { top: calc(var(--topbar) + env(safe-area-inset-top)); padding-inline: max(12px, env(safe-area-inset-left)); }
  .topbar-home { width: 38px; padding: 0; justify-content: center; }
  .topbar-home b { display: none; }
  .logo-text small { display: none; }
  .grid.c2, .grid.c3, .grid.c4, .tiles { grid-template-columns: minmax(0, 1fr); }
  .rm-stage { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .rm-line { grid-template-columns: minmax(0, 1fr); gap: 3px; }
  .scoreline { grid-template-columns: 96px minmax(0, 1fr) 40px; }
  .kv { grid-template-columns: minmax(0, 1fr); gap: 1px; }
  .kv dt { margin-top: 8px; }
  .cvsheet { padding: 20px 18px; }
  .cv-designer-head { align-items: flex-start; flex-direction: column; }
  .cv-builder-frame { min-height: 820px; height: calc(100vh - 150px); }
  .bigscore b { font-size: 36px; }
  .account-choice-grid { grid-template-columns: 1fr; }
  .account-choice-grid > button { min-height: 150px; }
  .registration-head { flex-direction: column; }
  .main { padding: 18px max(12px, env(safe-area-inset-right)) calc(64px + env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left)); }
  .card, .job, .post, .q-card { padding: 15px; }
  .card.pad-lg { padding: 17px; }
  .page-head { align-items: flex-start; gap: 12px; }
  .page-head > .btn, .page-head > a.btn { width: 100%; }
  .job-foot .btn { flex: 1 1 auto; }
  .notification-pop { position: fixed; top: calc(var(--topbar) + env(safe-area-inset-top) + 6px); right: 10px; left: 10px; width: auto; }
  .modal-back { align-items: end; padding: 0; }
  .modal {
    width: 100%; max-height: calc(92dvh - env(safe-area-inset-top));
    border-radius: var(--r-lg) var(--r-lg) 0 0;
    padding: 20px 16px calc(20px + env(safe-area-inset-bottom));
  }
  .table-wrap { margin-inline: -1px; -webkit-overflow-scrolling: touch; }
  table { min-width: 680px; }
  .cv-builder-wrap { margin-inline: -12px; border-radius: 0; }
  .cv-builder-frame { min-height: 720px; height: calc(100dvh - 130px); }
  footer.foot {
    position: static;
    clear: both;
    margin-top: 32px;
    padding-bottom: env(safe-area-inset-bottom);
    line-height: 1.55;
  }
}

@media (max-width: 390px) {
  .logo-text { display: none; }
  .topbar .logo-rule { display: none; }
  .notification-bell, .userchip { min-width: 38px; }
  .welcome { padding: 18px; }
  .welcome-stats { gap: 12px; }
  .scoreline { grid-template-columns: 84px minmax(0, 1fr) 36px; gap: 8px; }
}

@media (display-mode: standalone) {
  body { overscroll-behavior-y: none; }
  .topbar { padding-top: max(8px, env(safe-area-inset-top)); }
}

/* ============================================================== *
 * 15. Çap — CV PDF ixracı
 * ============================================================== */
@media print {
  .topbar, .rail, .page-head, .no-print, footer.foot, .toast { display: none !important; }
  body { background: #fff; }
  .main { padding: 0; }
  .shell { display: block; }
  .cvsheet { border: 0; border-radius: 0; padding: 0; max-width: none; }
  @page { margin: 14mm; }
}
