/* ==========================================================================
   HRWapp — Dizayn Sistemi
   Prinsip: ciddi, korporativ, oxunaqlı. Qradiyent YOXDUR.
   Yalnız düz rənglər, 1px konstruktiv sərhədlər, ölçülü boşluqlar.
   ========================================================================== */

/* ── Tokenlər ──────────────────────────────────────────────────────────── */
:root {
	/* Səthlər */
	--c-bg: #f4f6f8;
	--c-surface: #ffffff;
	--c-surface-2: #fafbfc;
	--c-surface-3: #f0f2f5;
	--c-overlay: rgba(16, 22, 31, 0.55);

	/* Sərhədlər */
	--c-border: #e0e4e9;
	--c-border-strong: #c7cdd6;
	--c-border-focus: #0f3d5c;

	/* Mətn */
	--c-ink: #10161f;
	--c-text: #303a47;
	--c-muted: #66717f;
	--c-faint: #8d97a4;

	/* Brend — dərin dəniz-göy, ciddi ton */
	--c-brand: #0f3d5c;
	--c-brand-hover: #0b2e46;
	--c-brand-active: #082334;
	--c-brand-soft: #eaf0f5;
	--c-brand-line: #c3d3df;

	/* Status rəngləri — hamısı düz, doymuş deyil */
	--c-success: #1b6e46;
	--c-success-soft: #e8f2ec;
	--c-success-line: #bcd9c9;

	--c-warning: #8a6212;
	--c-warning-soft: #f8f1e2;
	--c-warning-line: #e2d0aa;

	--c-danger: #9c2b2b;
	--c-danger-soft: #f8ecec;
	--c-danger-line: #e3c4c4;

	--c-info: #1d5c85;
	--c-info-soft: #e9f1f6;
	--c-info-line: #c2d8e5;

	--c-neutral: #4a5563;
	--c-neutral-soft: #eef0f3;
	--c-neutral-line: #d5dae1;

	/* Tipoqrafiya */
	--font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
		"Helvetica Neue", Arial, "Noto Sans", sans-serif;
	--font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

	--fs-xs: 0.75rem;
	--fs-sm: 0.8125rem;
	--fs-base: 0.875rem;
	--fs-md: 0.9375rem;
	--fs-lg: 1.0625rem;
	--fs-xl: 1.25rem;
	--fs-2xl: 1.5rem;
	--fs-3xl: 1.875rem;
	--fs-4xl: 2.375rem;

	/* Ölçü */
	--sp-1: 4px;
	--sp-2: 8px;
	--sp-3: 12px;
	--sp-4: 16px;
	--sp-5: 20px;
	--sp-6: 24px;
	--sp-8: 32px;
	--sp-10: 40px;
	--sp-12: 48px;
	--sp-16: 64px;
	--sp-20: 80px;

	--radius-sm: 3px;
	--radius: 5px;
	--radius-lg: 7px;

	/* Kölgə — çox məhdud, düz interfeys üçün */
	--shadow-sm: 0 1px 2px rgba(16, 22, 31, 0.05);
	--shadow: 0 2px 6px rgba(16, 22, 31, 0.07);
	--shadow-lg: 0 8px 28px rgba(16, 22, 31, 0.12);

	--header-h: 60px;
	--sidebar-w: 244px;
	--container: 1240px;
}

[data-theme="dark"] {
	--c-bg: #0e1319;
	--c-surface: #151b23;
	--c-surface-2: #1a212a;
	--c-surface-3: #202832;
	--c-overlay: rgba(0, 0, 0, 0.7);

	--c-border: #262f3a;
	--c-border-strong: #38434f;
	--c-border-focus: #6ea3c7;

	--c-ink: #f0f3f6;
	--c-text: #ccd4dd;
	--c-muted: #8b96a3;
	--c-faint: #6d7783;

	--c-brand: #86b4d6;
	--c-brand-hover: #a3c8e3;
	--c-brand-active: #bcd8ed;
	--c-brand-soft: #1a2733;
	--c-brand-line: #2c4256;

	--c-success: #63b98c;
	--c-success-soft: #16251d;
	--c-success-line: #26402f;

	--c-warning: #d0a44e;
	--c-warning-soft: #261f12;
	--c-warning-line: #40331c;

	--c-danger: #d97b7b;
	--c-danger-soft: #271818;
	--c-danger-line: #422626;

	--c-info: #7bb2d6;
	--c-info-soft: #16222b;
	--c-info-line: #253846;

	--c-neutral: #9aa5b1;
	--c-neutral-soft: #1c232b;
	--c-neutral-line: #2e3843;

	--shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
	--shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
	--shadow-lg: 0 10px 32px rgba(0, 0, 0, 0.5);
}

/* ── Baza ──────────────────────────────────────────────────────────────── */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: var(--font-sans);
	font-size: var(--fs-base);
	line-height: 1.6;
	color: var(--c-text);
	background: var(--c-bg);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	font-feature-settings: "tnum" 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 0 0 var(--sp-3);
	color: var(--c-ink);
	font-weight: 650;
	line-height: 1.25;
	letter-spacing: -0.011em;
}

h1 {
	font-size: var(--fs-3xl);
	letter-spacing: -0.021em;
}
h2 {
	font-size: var(--fs-2xl);
	letter-spacing: -0.017em;
}
h3 {
	font-size: var(--fs-xl);
}
h4 {
	font-size: var(--fs-lg);
}
h5 {
	font-size: var(--fs-md);
}

p {
	margin: 0 0 var(--sp-4);
}

a {
	color: var(--c-brand);
	text-decoration: none;
	transition: color 0.12s ease;
}

a:hover {
	color: var(--c-brand-hover);
	text-decoration: underline;
	text-underline-offset: 2px;
}

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

hr {
	border: 0;
	border-top: 1px solid var(--c-border);
	margin: var(--sp-6) 0;
}

small {
	font-size: var(--fs-xs);
}

code,
kbd {
	font-family: var(--font-mono);
	font-size: 0.9em;
	background: var(--c-surface-3);
	padding: 1px 5px;
	border-radius: var(--radius-sm);
	border: 1px solid var(--c-border);
}

::selection {
	background: var(--c-brand);
	color: #fff;
}

:focus-visible {
	outline: 2px solid var(--c-border-focus);
	outline-offset: 2px;
}

/* ── Layout ────────────────────────────────────────────────────────────── */
.container {
	width: 100%;
	max-width: var(--container);
	margin-inline: auto;
	padding-inline: var(--sp-6);
}

.container-narrow {
	max-width: 820px;
}

.container-wide {
	max-width: 1440px;
}

.stack > * + * {
	margin-top: var(--sp-4);
}
.stack-sm > * + * {
	margin-top: var(--sp-2);
}
.stack-lg > * + * {
	margin-top: var(--sp-6);
}

.row {
	display: flex;
	gap: var(--sp-4);
	flex-wrap: wrap;
}
.row-tight {
	gap: var(--sp-2);
}
.row-nowrap {
	flex-wrap: nowrap;
}
.between {
	justify-content: space-between;
}
.center {
	justify-content: center;
}
.end {
	justify-content: flex-end;
}
.items-center {
	align-items: center;
}
.items-start {
	align-items: flex-start;
}
.items-end {
	align-items: flex-end;
}
.grow {
	flex: 1 1 auto;
	min-width: 0;
}

.grid {
	display: grid;
	gap: var(--sp-4);
}
.grid-2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}
.grid-3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}
.grid-4 {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}
.grid-sidebar {
	grid-template-columns: 280px minmax(0, 1fr);
	gap: var(--sp-6);
	align-items: start;
}
.grid-main-aside {
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: var(--sp-6);
	align-items: start;
}

/* ── Yardımçılar ───────────────────────────────────────────────────────── */
.muted {
	color: var(--c-muted);
}
.faint {
	color: var(--c-faint);
}
.ink {
	color: var(--c-ink);
}
.brand {
	color: var(--c-brand);
}
.text-success {
	color: var(--c-success);
}
.text-danger {
	color: var(--c-danger);
}
.text-warning {
	color: var(--c-warning);
}

.t-xs {
	font-size: var(--fs-xs);
}
.t-sm {
	font-size: var(--fs-sm);
}
.t-md {
	font-size: var(--fs-md);
}
.t-lg {
	font-size: var(--fs-lg);
}
.t-xl {
	font-size: var(--fs-xl);
}
.t-2xl {
	font-size: var(--fs-2xl);
}

.fw-500 {
	font-weight: 500;
}
.fw-600 {
	font-weight: 600;
}
.fw-700 {
	font-weight: 700;
}

.upper {
	text-transform: uppercase;
	letter-spacing: 0.06em;
	font-size: var(--fs-xs);
	font-weight: 650;
}

.mono {
	font-family: var(--font-mono);
	font-variant-numeric: tabular-nums;
}
.tnum {
	font-variant-numeric: tabular-nums;
}

.tc {
	text-align: center;
}
.tr {
	text-align: right;
}

.mt-0 {
	margin-top: 0;
}
.mb-0 {
	margin-bottom: 0;
}
.mb-2 {
	margin-bottom: var(--sp-2);
}
.mb-3 {
	margin-bottom: var(--sp-3);
}
.mb-4 {
	margin-bottom: var(--sp-4);
}
.mb-6 {
	margin-bottom: var(--sp-6);
}
.mt-2 {
	margin-top: var(--sp-2);
}
.mt-4 {
	margin-top: var(--sp-4);
}
.mt-6 {
	margin-top: var(--sp-6);
}

.truncate {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.clamp-2 {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.clamp-3 {
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.hide {
	display: none !important;
}

.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;
}

/* ── Düymələr ──────────────────────────────────────────────────────────── */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--sp-2);
	padding: 8px 16px;
	font-family: inherit;
	font-size: var(--fs-base);
	font-weight: 550;
	line-height: 1.4;
	color: var(--c-text);
	background: var(--c-surface);
	border: 1px solid var(--c-border-strong);
	border-radius: var(--radius);
	cursor: pointer;
	white-space: nowrap;
	transition:
		background-color 0.12s ease,
		border-color 0.12s ease,
		color 0.12s ease;
	text-decoration: none;
}

.btn:hover {
	background: var(--c-surface-3);
	border-color: var(--c-muted);
	text-decoration: none;
	color: var(--c-ink);
}

.btn:active {
	background: var(--c-surface-3);
}

.btn:disabled,
.btn.is-disabled {
	opacity: 0.5;
	cursor: not-allowed;
	pointer-events: none;
}

.btn-primary {
	background: var(--c-brand);
	border-color: var(--c-brand);
	color: #fff;
}
.btn-primary:hover {
	background: var(--c-brand-hover);
	border-color: var(--c-brand-hover);
	color: #fff;
}
[data-theme="dark"] .btn-primary {
	color: #0e1319;
}
[data-theme="dark"] .btn-primary:hover {
	color: #0e1319;
}

.btn-success {
	background: var(--c-success);
	border-color: var(--c-success);
	color: #fff;
}
.btn-success:hover {
	background: var(--c-success);
	filter: brightness(0.92);
	color: #fff;
}

.btn-danger {
	background: var(--c-surface);
	border-color: var(--c-danger-line);
	color: var(--c-danger);
}
.btn-danger:hover {
	background: var(--c-danger-soft);
	border-color: var(--c-danger);
	color: var(--c-danger);
}

.btn-solid-danger {
	background: var(--c-danger);
	border-color: var(--c-danger);
	color: #fff;
}
.btn-solid-danger:hover {
	filter: brightness(0.92);
	color: #fff;
}

.btn-ghost {
	background: transparent;
	border-color: transparent;
	color: var(--c-muted);
}
.btn-ghost:hover {
	background: var(--c-surface-3);
	border-color: transparent;
	color: var(--c-ink);
}

.btn-link {
	background: none;
	border: none;
	color: var(--c-brand);
	padding: 0;
}
.btn-link:hover {
	background: none;
	text-decoration: underline;
}

.btn-sm {
	padding: 5px 11px;
	font-size: var(--fs-sm);
}

.btn-lg {
	padding: 11px 22px;
	font-size: var(--fs-md);
}

.btn-block {
	width: 100%;
}

.btn-icon {
	padding: 7px;
	width: 34px;
	height: 34px;
}
.btn-icon.btn-sm {
	padding: 5px;
	width: 28px;
	height: 28px;
}

.btn-group {
	display: inline-flex;
}
.btn-group .btn {
	border-radius: 0;
	margin-left: -1px;
}
.btn-group .btn:first-child {
	border-radius: var(--radius) 0 0 var(--radius);
	margin-left: 0;
}
.btn-group .btn:last-child {
	border-radius: 0 var(--radius) var(--radius) 0;
}
.btn-group .btn.is-active {
	background: var(--c-brand-soft);
	border-color: var(--c-brand-line);
	color: var(--c-brand);
	z-index: 1;
}

/* ── Kart ──────────────────────────────────────────────────────────────── */
.card {
	background: var(--c-surface);
	border: 1px solid var(--c-border);
	border-radius: var(--radius-lg);
}

.card-pad {
	padding: var(--sp-5);
}

.card-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--sp-3);
	padding: var(--sp-4) var(--sp-5);
	border-bottom: 1px solid var(--c-border);
	background: var(--c-surface-2);
	border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.card-head h2,
.card-head h3,
.card-head h4 {
	margin: 0;
	font-size: var(--fs-md);
	font-weight: 650;
}

.card-body {
	padding: var(--sp-5);
}

.card-body-tight {
	padding: var(--sp-4);
}

.card-foot {
	padding: var(--sp-4) var(--sp-5);
	border-top: 1px solid var(--c-border);
	background: var(--c-surface-2);
	border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.card-hover {
	transition:
		border-color 0.12s ease,
		box-shadow 0.12s ease;
}
.card-hover:hover {
	border-color: var(--c-border-strong);
	box-shadow: var(--shadow-sm);
}

.card-divided > * + * {
	border-top: 1px solid var(--c-border);
}

/* ── Section başlıqları ────────────────────────────────────────────────── */
.section-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: var(--sp-4);
	margin-bottom: var(--sp-5);
	flex-wrap: wrap;
}

.section-head h1,
.section-head h2 {
	margin: 0;
}

.section-head .lead {
	margin: var(--sp-1) 0 0;
	color: var(--c-muted);
	font-size: var(--fs-md);
}

.eyebrow {
	display: block;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	font-size: var(--fs-xs);
	font-weight: 650;
	color: var(--c-muted);
	margin-bottom: var(--sp-2);
}

/* ── Formalar ──────────────────────────────────────────────────────────── */
.field {
	margin-bottom: var(--sp-4);
}

.label {
	display: block;
	margin-bottom: var(--sp-2);
	font-size: var(--fs-sm);
	font-weight: 600;
	color: var(--c-ink);
}

.label .req {
	color: var(--c-danger);
	margin-left: 2px;
}

.input,
.select,
.textarea {
	display: block;
	width: 100%;
	padding: 8px 11px;
	font-family: inherit;
	font-size: var(--fs-base);
	line-height: 1.5;
	color: var(--c-ink);
	background: var(--c-surface);
	border: 1px solid var(--c-border-strong);
	border-radius: var(--radius);
	transition:
		border-color 0.12s ease,
		box-shadow 0.12s ease;
	appearance: none;
}

.input::placeholder,
.textarea::placeholder {
	color: var(--c-faint);
}

.input:focus,
.select:focus,
.textarea:focus {
	outline: none;
	border-color: var(--c-brand);
	box-shadow: 0 0 0 3px var(--c-brand-soft);
}

.input:disabled,
.select:disabled,
.textarea:disabled {
	background: var(--c-surface-3);
	color: var(--c-muted);
	cursor: not-allowed;
}

.input.is-invalid,
.select.is-invalid,
.textarea.is-invalid {
	border-color: var(--c-danger);
}

.textarea {
	min-height: 110px;
	resize: vertical;
}

.select {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='none' stroke='%2366717f' stroke-width='1.5' d='M3 4.5 6 7.5 9 4.5'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 10px center;
	padding-right: 30px;
}

[data-theme="dark"] .select {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='none' stroke='%238b96a3' stroke-width='1.5' d='M3 4.5 6 7.5 9 4.5'/%3E%3C/svg%3E");
}

select[multiple].select {
	background-image: none;
	padding-right: 11px;
	min-height: 140px;
}

.help {
	margin-top: var(--sp-2);
	font-size: var(--fs-xs);
	color: var(--c-muted);
	line-height: 1.5;
}

.error-text {
	margin-top: var(--sp-2);
	font-size: var(--fs-xs);
	color: var(--c-danger);
	font-weight: 500;
}

.input-group {
	display: flex;
}
.input-group .input {
	border-radius: var(--radius) 0 0 var(--radius);
}
.input-group .addon {
	display: inline-flex;
	align-items: center;
	padding: 0 12px;
	background: var(--c-surface-3);
	border: 1px solid var(--c-border-strong);
	border-left: 0;
	border-radius: 0 var(--radius) var(--radius) 0;
	font-size: var(--fs-sm);
	color: var(--c-muted);
	white-space: nowrap;
}

/* Checkbox / radio */
.check {
	display: flex;
	align-items: flex-start;
	gap: var(--sp-2);
	cursor: pointer;
	font-size: var(--fs-base);
	line-height: 1.5;
}

.check input[type="checkbox"],
.check input[type="radio"] {
	flex: none;
	width: 16px;
	height: 16px;
	margin: 3px 0 0;
	accent-color: var(--c-brand);
	cursor: pointer;
}

.check-list {
	display: grid;
	gap: var(--sp-2);
}

.check-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
	gap: var(--sp-2);
}

/* Seçim kartı — rol/plan seçimi üçün */
.choice {
	display: block;
	position: relative;
	padding: var(--sp-4);
	background: var(--c-surface);
	border: 1px solid var(--c-border-strong);
	border-radius: var(--radius);
	cursor: pointer;
	transition:
		border-color 0.12s ease,
		background-color 0.12s ease;
}

.choice:hover {
	border-color: var(--c-brand-line);
	background: var(--c-surface-2);
}

.choice input {
	position: absolute;
	opacity: 0;
}

.choice:has(input:checked) {
	border-color: var(--c-brand);
	background: var(--c-brand-soft);
	box-shadow: inset 0 0 0 1px var(--c-brand);
}

.choice-title {
	font-weight: 600;
	color: var(--c-ink);
	margin-bottom: 2px;
}

.choice-desc {
	font-size: var(--fs-sm);
	color: var(--c-muted);
	line-height: 1.5;
}

/* Switch */
.switch {
	display: inline-flex;
	align-items: center;
	gap: var(--sp-3);
	cursor: pointer;
}

.switch input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.switch-track {
	position: relative;
	flex: none;
	width: 38px;
	height: 21px;
	background: var(--c-border-strong);
	border-radius: 11px;
	transition: background-color 0.15s ease;
}

.switch-track::after {
	content: "";
	position: absolute;
	top: 2px;
	left: 2px;
	width: 17px;
	height: 17px;
	background: #fff;
	border-radius: 50%;
	transition: transform 0.15s ease;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.switch input:checked + .switch-track {
	background: var(--c-brand);
}

.switch input:checked + .switch-track::after {
	transform: translateX(17px);
}

.form-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0 var(--sp-4);
}

.form-grid .full {
	grid-column: 1 / -1;
}

.form-actions {
	display: flex;
	gap: var(--sp-3);
	align-items: center;
	padding-top: var(--sp-4);
	border-top: 1px solid var(--c-border);
	margin-top: var(--sp-2);
}

/* ── Nişanlar (badge / chip) ───────────────────────────────────────────── */
.badge {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 2px 8px;
	font-size: var(--fs-xs);
	font-weight: 600;
	line-height: 1.6;
	border-radius: var(--radius-sm);
	border: 1px solid var(--c-neutral-line);
	background: var(--c-neutral-soft);
	color: var(--c-neutral);
	white-space: nowrap;
}

.badge-success {
	background: var(--c-success-soft);
	border-color: var(--c-success-line);
	color: var(--c-success);
}
.badge-danger {
	background: var(--c-danger-soft);
	border-color: var(--c-danger-line);
	color: var(--c-danger);
}
.badge-warning {
	background: var(--c-warning-soft);
	border-color: var(--c-warning-line);
	color: var(--c-warning);
}
.badge-info {
	background: var(--c-info-soft);
	border-color: var(--c-info-line);
	color: var(--c-info);
}
.badge-accent {
	background: var(--c-brand-soft);
	border-color: var(--c-brand-line);
	color: var(--c-brand);
}
.badge-muted {
	background: transparent;
	border-color: var(--c-border);
	color: var(--c-faint);
}
.badge-solid {
	background: var(--c-brand);
	border-color: var(--c-brand);
	color: #fff;
}

.badge-dot::before {
	content: "";
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: currentColor;
	flex: none;
}

.chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 3px 10px;
	font-size: var(--fs-xs);
	font-weight: 500;
	background: var(--c-surface-3);
	border: 1px solid var(--c-border);
	border-radius: var(--radius-sm);
	color: var(--c-text);
	white-space: nowrap;
}

.chip-strong {
	background: var(--c-brand-soft);
	border-color: var(--c-brand-line);
	color: var(--c-brand);
	font-weight: 600;
}

.chip-list {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

/* ── Avatar ────────────────────────────────────────────────────────────── */
.avatar {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 40px;
	height: 40px;
	border-radius: var(--radius);
	background: var(--c-brand-soft);
	border: 1px solid var(--c-brand-line);
	color: var(--c-brand);
	font-weight: 650;
	font-size: var(--fs-base);
	overflow: hidden;
	text-transform: uppercase;
	letter-spacing: 0.01em;
}

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

.avatar-sm {
	width: 30px;
	height: 30px;
	font-size: var(--fs-xs);
}
.avatar-lg {
	width: 56px;
	height: 56px;
	font-size: var(--fs-lg);
}
.avatar-xl {
	width: 88px;
	height: 88px;
	font-size: var(--fs-2xl);
	border-radius: var(--radius-lg);
}

.avatar-round {
	border-radius: 50%;
}

/* ── Statistika plitəsi ────────────────────────────────────────────────── */
.stat {
	padding: var(--sp-4);
	background: var(--c-surface);
	border: 1px solid var(--c-border);
	border-radius: var(--radius-lg);
}

.stat-label {
	display: block;
	font-size: var(--fs-xs);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--c-muted);
	margin-bottom: var(--sp-2);
}

.stat-value {
	display: block;
	font-size: var(--fs-2xl);
	font-weight: 680;
	color: var(--c-ink);
	line-height: 1.15;
	font-variant-numeric: tabular-nums;
	letter-spacing: -0.02em;
}

.stat-meta {
	display: block;
	margin-top: var(--sp-2);
	font-size: var(--fs-xs);
	color: var(--c-muted);
}

.stat-row {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
	gap: var(--sp-3);
}

/* ── Proqres ───────────────────────────────────────────────────────────── */
.progress {
	height: 6px;
	background: var(--c-surface-3);
	border-radius: 3px;
	overflow: hidden;
	border: 1px solid var(--c-border);
}

.progress-bar {
	height: 100%;
	background: var(--c-brand);
	border-radius: 2px;
	transition: width 0.3s ease;
}

.progress-bar.is-success {
	background: var(--c-success);
}
.progress-bar.is-warning {
	background: var(--c-warning);
}
.progress-bar.is-danger {
	background: var(--c-danger);
}
.progress-bar.is-accent {
	background: var(--c-brand);
}
.progress-bar.is-muted {
	background: var(--c-border-strong);
}

.progress-lg {
	height: 9px;
}

/* Uyğunluq göstəricisi — dairəvi deyil, ciddi sətir formatı */
.meter {
	display: flex;
	align-items: center;
	gap: var(--sp-2);
}

.meter-track {
	flex: 1;
	height: 5px;
	background: var(--c-surface-3);
	border-radius: 3px;
	overflow: hidden;
}

.meter-fill {
	height: 100%;
	background: var(--c-brand);
}
.meter-fill.is-success {
	background: var(--c-success);
}
.meter-fill.is-accent {
	background: var(--c-info);
}
.meter-fill.is-muted {
	background: var(--c-border-strong);
}

.meter-value {
	flex: none;
	font-size: var(--fs-xs);
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	color: var(--c-ink);
	min-width: 34px;
	text-align: right;
}

/* Böyük bal göstəricisi */
.score-box {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 64px;
	padding: var(--sp-2) 0;
	border: 1px solid var(--c-border);
	border-radius: var(--radius);
	background: var(--c-surface-2);
}

.score-box.is-success {
	border-color: var(--c-success-line);
	background: var(--c-success-soft);
}
.score-box.is-accent {
	border-color: var(--c-brand-line);
	background: var(--c-brand-soft);
}

.score-num {
	font-size: var(--fs-xl);
	font-weight: 700;
	line-height: 1;
	color: var(--c-ink);
	font-variant-numeric: tabular-nums;
}

.score-box.is-success .score-num {
	color: var(--c-success);
}
.score-box.is-accent .score-num {
	color: var(--c-brand);
}

.score-cap {
	font-size: 10px;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--c-muted);
	margin-top: 2px;
	font-weight: 600;
}

/* ── Xəbərdarlıq / alert ───────────────────────────────────────────────── */
.alert {
	display: flex;
	align-items: flex-start;
	gap: var(--sp-3);
	padding: var(--sp-3) var(--sp-4);
	border: 1px solid var(--c-info-line);
	border-left: 3px solid var(--c-info);
	background: var(--c-info-soft);
	border-radius: var(--radius);
	color: var(--c-text);
	font-size: var(--fs-base);
	line-height: 1.55;
}

.alert p:last-child {
	margin-bottom: 0;
}

.alert-success {
	border-color: var(--c-success-line);
	border-left-color: var(--c-success);
	background: var(--c-success-soft);
}
.alert-warning {
	border-color: var(--c-warning-line);
	border-left-color: var(--c-warning);
	background: var(--c-warning-soft);
}
.alert-danger {
	border-color: var(--c-danger-line);
	border-left-color: var(--c-danger);
	background: var(--c-danger-soft);
}
.alert-neutral {
	border-color: var(--c-border);
	border-left-color: var(--c-muted);
	background: var(--c-surface-2);
}

.alert-title {
	font-weight: 650;
	color: var(--c-ink);
	margin-bottom: 2px;
}

.alert .icon {
	flex: none;
	margin-top: 2px;
}

/* ── Cədvəl ────────────────────────────────────────────────────────────── */
.table-wrap {
	overflow-x: auto;
	border: 1px solid var(--c-border);
	border-radius: var(--radius-lg);
	background: var(--c-surface);
}

.table {
	width: 100%;
	border-collapse: collapse;
	font-size: var(--fs-base);
}

.table th {
	padding: 10px var(--sp-4);
	text-align: left;
	font-size: var(--fs-xs);
	font-weight: 650;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--c-muted);
	background: var(--c-surface-2);
	border-bottom: 1px solid var(--c-border);
	white-space: nowrap;
}

.table td {
	padding: 11px var(--sp-4);
	border-bottom: 1px solid var(--c-border);
	vertical-align: middle;
	color: var(--c-text);
}

.table tbody tr:last-child td {
	border-bottom: 0;
}

.table tbody tr:hover td {
	background: var(--c-surface-2);
}

.table-fixed {
	table-layout: fixed;
}

.table td.num,
.table th.num {
	text-align: right;
	font-variant-numeric: tabular-nums;
}

.table-plain th,
.table-plain td {
	padding-inline: 0;
}

/* Xüsusiyyət cədvəli (profil detalları) */
.dl {
	display: grid;
	grid-template-columns: 170px minmax(0, 1fr);
	gap: 0;
	font-size: var(--fs-base);
}

.dl dt {
	padding: 9px 0;
	color: var(--c-muted);
	border-bottom: 1px solid var(--c-border);
	font-size: var(--fs-sm);
}

.dl dd {
	padding: 9px 0;
	margin: 0;
	color: var(--c-ink);
	border-bottom: 1px solid var(--c-border);
	font-weight: 500;
}

.dl > dt:last-of-type,
.dl > dd:last-of-type {
	border-bottom: 0;
}

/* ── Tab ───────────────────────────────────────────────────────────────── */
.tabs {
	display: flex;
	gap: var(--sp-1);
	border-bottom: 1px solid var(--c-border);
	margin-bottom: var(--sp-5);
	overflow-x: auto;
	scrollbar-width: none;
}

.tabs::-webkit-scrollbar {
	display: none;
}

.tab {
	padding: 9px var(--sp-4);
	font-size: var(--fs-base);
	font-weight: 550;
	color: var(--c-muted);
	border-bottom: 2px solid transparent;
	margin-bottom: -1px;
	white-space: nowrap;
	text-decoration: none;
	transition: color 0.12s ease;
}

.tab:hover {
	color: var(--c-ink);
	text-decoration: none;
}

.tab.is-active {
	color: var(--c-brand);
	border-bottom-color: var(--c-brand);
	font-weight: 650;
}

.tab .count {
	display: inline-block;
	margin-left: 6px;
	padding: 0 6px;
	font-size: var(--fs-xs);
	background: var(--c-surface-3);
	border-radius: 9px;
	color: var(--c-muted);
	font-weight: 600;
}

.tab.is-active .count {
	background: var(--c-brand-soft);
	color: var(--c-brand);
}

/* ── Timeline ──────────────────────────────────────────────────────────── */
.timeline {
	position: relative;
	padding-left: 26px;
	margin: 0;
	list-style: none;
}

.timeline::before {
	content: "";
	position: absolute;
	left: 7px;
	top: 6px;
	bottom: 6px;
	width: 1px;
	background: var(--c-border);
}

.timeline li {
	position: relative;
	padding-bottom: var(--sp-4);
}

.timeline li:last-child {
	padding-bottom: 0;
}

.timeline li::before {
	content: "";
	position: absolute;
	left: -23px;
	top: 6px;
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: var(--c-surface);
	border: 2px solid var(--c-border-strong);
}

.timeline li.is-success::before {
	border-color: var(--c-success);
	background: var(--c-success);
}
.timeline li.is-danger::before {
	border-color: var(--c-danger);
	background: var(--c-danger);
}
.timeline li.is-accent::before {
	border-color: var(--c-brand);
	background: var(--c-brand);
}
.timeline li.is-muted::before {
	border-color: var(--c-border-strong);
}

.timeline-title {
	font-weight: 600;
	color: var(--c-ink);
	font-size: var(--fs-base);
}

.timeline-meta {
	font-size: var(--fs-xs);
	color: var(--c-muted);
	margin-top: 1px;
}

/* ── Boş vəziyyət ──────────────────────────────────────────────────────── */
.empty {
	padding: var(--sp-12) var(--sp-6);
	text-align: center;
	color: var(--c-muted);
}

.empty-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	margin-bottom: var(--sp-4);
	border: 1px solid var(--c-border);
	border-radius: var(--radius);
	background: var(--c-surface-2);
	color: var(--c-faint);
}

.empty h3 {
	font-size: var(--fs-md);
	margin-bottom: var(--sp-2);
	color: var(--c-ink);
}

.empty p {
	max-width: 460px;
	margin: 0 auto var(--sp-4);
	font-size: var(--fs-base);
	line-height: 1.6;
}

/* ── Pagination ────────────────────────────────────────────────────────── */
.pagination {
	display: flex;
	gap: var(--sp-1);
	list-style: none;
	padding: 0;
	margin: var(--sp-6) 0 0;
	flex-wrap: wrap;
	align-items: center;
}

.pagination a,
.pagination span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 33px;
	height: 33px;
	padding: 0 9px;
	font-size: var(--fs-sm);
	font-weight: 550;
	color: var(--c-text);
	background: var(--c-surface);
	border: 1px solid var(--c-border);
	border-radius: var(--radius);
	text-decoration: none;
}

.pagination a:hover {
	background: var(--c-surface-3);
	border-color: var(--c-border-strong);
	text-decoration: none;
}

.pagination .active span,
.pagination [aria-current="page"] span {
	background: var(--c-brand);
	border-color: var(--c-brand);
	color: #fff;
}

.pagination .disabled span {
	color: var(--c-faint);
	background: var(--c-surface-2);
	cursor: not-allowed;
}

/* ── İkon ──────────────────────────────────────────────────────────────── */
.icon {
	display: inline-block;
	width: 1em;
	height: 1em;
	stroke-width: 1.6;
	stroke: currentColor;
	fill: none;
	vertical-align: -0.125em;
	flex: none;
}

.icon-lg {
	width: 1.25em;
	height: 1.25em;
}

/* ── Dropdown ──────────────────────────────────────────────────────────── */
.dropdown {
	position: relative;
}

.dropdown-menu {
	position: absolute;
	top: calc(100% + 6px);
	right: 0;
	min-width: 210px;
	padding: var(--sp-1);
	background: var(--c-surface);
	border: 1px solid var(--c-border-strong);
	border-radius: var(--radius);
	box-shadow: var(--shadow-lg);
	z-index: 60;
	display: none;
}

.dropdown-menu.is-open {
	display: block;
}

.dropdown-menu.to-left {
	right: auto;
	left: 0;
}

.dropdown-item {
	display: flex;
	align-items: center;
	gap: var(--sp-2);
	width: 100%;
	padding: 7px 10px;
	font-size: var(--fs-base);
	color: var(--c-text);
	background: none;
	border: 0;
	border-radius: var(--radius-sm);
	text-align: left;
	cursor: pointer;
	text-decoration: none;
	font-family: inherit;
}

.dropdown-item:hover {
	background: var(--c-surface-3);
	color: var(--c-ink);
	text-decoration: none;
}

.dropdown-item.is-danger {
	color: var(--c-danger);
}

.dropdown-divider {
	height: 1px;
	background: var(--c-border);
	margin: var(--sp-1) 0;
}

.dropdown-head {
	padding: var(--sp-2) 10px;
	border-bottom: 1px solid var(--c-border);
	margin-bottom: var(--sp-1);
}

/* ── Modal ─────────────────────────────────────────────────────────────── */
.modal-backdrop {
	position: fixed;
	inset: 0;
	background: var(--c-overlay);
	z-index: 100;
	display: none;
	align-items: flex-start;
	justify-content: center;
	padding: var(--sp-8) var(--sp-4);
	overflow-y: auto;
}

.modal-backdrop.is-open {
	display: flex;
}

.modal {
	width: 100%;
	max-width: 560px;
	background: var(--c-surface);
	border: 1px solid var(--c-border-strong);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-lg);
	margin: auto;
}

.modal-lg {
	max-width: 760px;
}

.modal-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--sp-3);
	padding: var(--sp-4) var(--sp-5);
	border-bottom: 1px solid var(--c-border);
}

.modal-head h3 {
	margin: 0;
	font-size: var(--fs-md);
}

.modal-body {
	padding: var(--sp-5);
}

.modal-foot {
	display: flex;
	justify-content: flex-end;
	gap: var(--sp-3);
	padding: var(--sp-4) var(--sp-5);
	border-top: 1px solid var(--c-border);
	background: var(--c-surface-2);
	border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

/* ── Public üst menyu ──────────────────────────────────────────────────── */
.topbar {
	position: sticky;
	top: 0;
	z-index: 50;
	height: var(--header-h);
	background: var(--c-surface);
	border-bottom: 1px solid var(--c-border);
}

.topbar-inner {
	display: flex;
	align-items: center;
	gap: var(--sp-6);
	height: 100%;
}

.logo {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	font-size: var(--fs-lg);
	font-weight: 700;
	color: var(--c-ink);
	letter-spacing: -0.02em;
	text-decoration: none;
	white-space: nowrap;
}

.logo:hover {
	text-decoration: none;
	color: var(--c-ink);
}

.logo-mark {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	background: var(--c-brand);
	color: #fff;
	border-radius: var(--radius);
	font-size: var(--fs-sm);
	font-weight: 700;
	letter-spacing: 0;
}

[data-theme="dark"] .logo-mark {
	color: #0e1319;
}

.nav {
	display: flex;
	align-items: center;
	gap: var(--sp-1);
}

.nav-link {
	padding: 7px var(--sp-3);
	font-size: var(--fs-base);
	font-weight: 500;
	color: var(--c-muted);
	border-radius: var(--radius);
	text-decoration: none;
}

.nav-link:hover {
	color: var(--c-ink);
	background: var(--c-surface-3);
	text-decoration: none;
}

.nav-link.is-active {
	color: var(--c-brand);
	font-weight: 600;
}

.nav-toggle {
	display: none;
}

/* ── Panel qabığı (app shell) ──────────────────────────────────────────── */
.shell {
	display: grid;
	grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
	min-height: 100vh;
}

.sidebar {
	background: var(--c-surface);
	border-right: 1px solid var(--c-border);
	display: flex;
	flex-direction: column;
	position: sticky;
	top: 0;
	height: 100vh;
	overflow-y: auto;
}

.sidebar-head {
	padding: var(--sp-4) var(--sp-5);
	border-bottom: 1px solid var(--c-border);
	flex: none;
}

.sidebar-nav {
	padding: var(--sp-4) var(--sp-3);
	flex: 1;
}

.sidebar-group {
	margin-bottom: var(--sp-5);
}

.sidebar-group:last-child {
	margin-bottom: 0;
}

.sidebar-label {
	padding: 0 10px;
	margin-bottom: var(--sp-2);
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--c-faint);
}

.side-link {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 7px 10px;
	margin-bottom: 1px;
	font-size: var(--fs-base);
	font-weight: 500;
	color: var(--c-text);
	border-radius: var(--radius);
	text-decoration: none;
	transition: background-color 0.1s ease;
}

.side-link:hover {
	background: var(--c-surface-3);
	color: var(--c-ink);
	text-decoration: none;
}

.side-link.is-active {
	background: var(--c-brand-soft);
	color: var(--c-brand);
	font-weight: 600;
}

.side-link .icon {
	color: var(--c-faint);
	width: 16px;
	height: 16px;
}

.side-link.is-active .icon {
	color: var(--c-brand);
}

.side-link .pill {
	margin-left: auto;
	padding: 0 6px;
	font-size: 10px;
	font-weight: 700;
	background: var(--c-brand);
	color: #fff;
	border-radius: 9px;
	min-width: 18px;
	text-align: center;
	line-height: 17px;
}

[data-theme="dark"] .side-link .pill {
	color: #0e1319;
}

.side-link .pill.is-quiet {
	background: var(--c-surface-3);
	color: var(--c-muted);
}

.sidebar-foot {
	padding: var(--sp-3);
	border-top: 1px solid var(--c-border);
	flex: none;
}

.main {
	display: flex;
	flex-direction: column;
	min-width: 0;
	background: var(--c-bg);
}

.main-head {
	position: sticky;
	top: 0;
	z-index: 40;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--sp-4);
	height: var(--header-h);
	padding: 0 var(--sp-6);
	background: var(--c-surface);
	border-bottom: 1px solid var(--c-border);
}

.main-body {
	padding: var(--sp-6);
	flex: 1;
}

.main-body-narrow {
	max-width: 900px;
}

/* Kredit göstəricisi başlıqda */
.credit-pill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 5px 11px;
	background: var(--c-surface-2);
	border: 1px solid var(--c-border);
	border-radius: var(--radius);
	font-size: var(--fs-sm);
	font-weight: 600;
	color: var(--c-ink);
	text-decoration: none;
	font-variant-numeric: tabular-nums;
}

.credit-pill:hover {
	border-color: var(--c-border-strong);
	text-decoration: none;
	color: var(--c-ink);
}

.credit-pill.is-low {
	border-color: var(--c-warning-line);
	background: var(--c-warning-soft);
	color: var(--c-warning);
}

/* Bildiriş sayğacı */
.notif-btn {
	position: relative;
}

.notif-dot {
	position: absolute;
	top: 4px;
	right: 4px;
	min-width: 15px;
	height: 15px;
	padding: 0 3px;
	background: var(--c-danger);
	color: #fff;
	border-radius: 8px;
	font-size: 9px;
	font-weight: 700;
	line-height: 15px;
	text-align: center;
	border: 1.5px solid var(--c-surface);
}

/* ── Namizəd kartı (axtarış nəticəsi) ──────────────────────────────────── */
.cand-card {
	display: flex;
	gap: var(--sp-4);
	padding: var(--sp-4);
	background: var(--c-surface);
	border: 1px solid var(--c-border);
	border-radius: var(--radius-lg);
	transition:
		border-color 0.12s ease,
		box-shadow 0.12s ease;
}

.cand-card:hover {
	border-color: var(--c-border-strong);
	box-shadow: var(--shadow-sm);
}

.cand-main {
	flex: 1;
	min-width: 0;
}

.cand-name {
	font-size: var(--fs-md);
	font-weight: 650;
	color: var(--c-ink);
	margin: 0 0 2px;
}

.cand-name a {
	color: inherit;
}

.cand-headline {
	color: var(--c-muted);
	font-size: var(--fs-sm);
	margin: 0 0 var(--sp-3);
}

.cand-meta {
	display: flex;
	flex-wrap: wrap;
	gap: var(--sp-1) var(--sp-4);
	font-size: var(--fs-sm);
	color: var(--c-muted);
	margin-bottom: var(--sp-3);
}

.cand-meta-item {
	display: inline-flex;
	align-items: center;
	gap: 5px;
}

.cand-side {
	flex: none;
	width: 150px;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: var(--sp-2);
	border-left: 1px solid var(--c-border);
	padding-left: var(--sp-4);
}

/* ── Təklif kartı ──────────────────────────────────────────────────────── */
.offer-card {
	background: var(--c-surface);
	border: 1px solid var(--c-border);
	border-radius: var(--radius-lg);
	overflow: hidden;
}

.offer-card.is-new {
	border-left: 3px solid var(--c-brand);
}

.offer-card.is-urgent {
	border-left: 3px solid var(--c-warning);
}

.offer-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: var(--sp-4);
	padding: var(--sp-4);
	border-bottom: 1px solid var(--c-border);
}

.offer-title {
	font-size: var(--fs-md);
	font-weight: 650;
	color: var(--c-ink);
	margin: 0 0 3px;
}

.offer-company {
	font-size: var(--fs-sm);
	color: var(--c-muted);
	display: flex;
	align-items: center;
	gap: 6px;
}

.offer-body {
	padding: var(--sp-4);
}

.offer-facts {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
	gap: var(--sp-3);
	padding: var(--sp-3) var(--sp-4);
	background: var(--c-surface-2);
	border-top: 1px solid var(--c-border);
	border-bottom: 1px solid var(--c-border);
}

.fact-label {
	display: block;
	font-size: 10px;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--c-faint);
	font-weight: 650;
	margin-bottom: 2px;
}

.fact-value {
	display: block;
	font-size: var(--fs-base);
	font-weight: 600;
	color: var(--c-ink);
}

.offer-actions {
	display: flex;
	gap: var(--sp-2);
	padding: var(--sp-4);
	flex-wrap: wrap;
}

/* ── Söhbət ────────────────────────────────────────────────────────────── */
.chat {
	display: flex;
	flex-direction: column;
	height: 560px;
	border: 1px solid var(--c-border);
	border-radius: var(--radius-lg);
	background: var(--c-surface);
	overflow: hidden;
}

.chat-body {
	flex: 1;
	overflow-y: auto;
	padding: var(--sp-4);
	background: var(--c-surface-2);
}

.msg {
	display: flex;
	margin-bottom: var(--sp-3);
}

.msg-bubble {
	max-width: 76%;
	padding: 9px 13px;
	background: var(--c-surface);
	border: 1px solid var(--c-border);
	border-radius: var(--radius);
	font-size: var(--fs-base);
	line-height: 1.55;
	color: var(--c-text);
	white-space: pre-wrap;
	word-break: break-word;
}

.msg.is-mine {
	justify-content: flex-end;
}

.msg.is-mine .msg-bubble {
	background: var(--c-brand-soft);
	border-color: var(--c-brand-line);
	color: var(--c-ink);
}

.msg-meta {
	margin-top: 4px;
	font-size: 11px;
	color: var(--c-faint);
}

.chat-foot {
	padding: var(--sp-3);
	border-top: 1px solid var(--c-border);
	background: var(--c-surface);
}

/* ── Filtr paneli ──────────────────────────────────────────────────────── */
.filters {
	position: sticky;
	top: calc(var(--header-h) + var(--sp-6));
}

.filter-block {
	padding: var(--sp-4);
	border-bottom: 1px solid var(--c-border);
}

.filter-block:last-child {
	border-bottom: 0;
}

.filter-title {
	font-size: var(--fs-sm);
	font-weight: 650;
	color: var(--c-ink);
	margin-bottom: var(--sp-3);
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.filter-scroll {
	max-height: 190px;
	overflow-y: auto;
	padding-right: var(--sp-1);
}

/* ── Public səhifə blokları ────────────────────────────────────────────── */
.hero {
	padding: var(--sp-20) 0 var(--sp-16);
	background: var(--c-surface);
	border-bottom: 1px solid var(--c-border);
}

.hero h1 {
	font-size: clamp(2rem, 4.4vw, 3.1rem);
	line-height: 1.12;
	letter-spacing: -0.028em;
	margin-bottom: var(--sp-4);
	max-width: 17ch;
}

.hero-lead {
	font-size: var(--fs-lg);
	color: var(--c-muted);
	max-width: 56ch;
	line-height: 1.62;
	margin-bottom: var(--sp-8);
}

.hero-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
	gap: var(--sp-12);
	align-items: center;
}

/* Alt səhifə hero-su ana səhifədəkindən bir qədər yığcamdır. */
.hero-sub {
	padding: var(--sp-16) 0 var(--sp-12);
}

.hero-sub h1 {
	font-size: clamp(1.85rem, 3.6vw, 2.7rem);
	max-width: 15ch;
}

.hero-sub .hero-lead {
	margin-bottom: var(--sp-6);
}

/* Mərkəzləşdirilmiş hero (qiymətlər səhifəsi kimi) */
.hero-center {
	text-align: center;
}

.hero-center h1,
.hero-center .hero-lead {
	margin-inline: auto;
	max-width: 24ch;
}

.hero-center .hero-lead {
	max-width: 62ch;
}

/* ── Müqayisə cədvəli ─────────────────────────────────────────────────── */
.compare {
	display: grid;
}

.compare-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	border-bottom: 1px solid var(--c-border);
}

.compare-row:last-child {
	border-bottom: 0;
}

.compare-label {
	padding: var(--sp-2) var(--sp-4);
	font-size: var(--fs-xs);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--c-muted);
	background: var(--c-surface-2);
}

.compare-label + .compare-label {
	color: var(--c-brand);
	border-left: 1px solid var(--c-border);
}

.compare-cell {
	padding: var(--sp-3) var(--sp-4);
	font-size: var(--fs-sm);
	line-height: 1.5;
	display: flex;
	align-items: flex-start;
	gap: 7px;
}

.compare-cell.is-old {
	color: var(--c-muted);
}

.compare-cell.is-new {
	color: var(--c-ink);
	font-weight: 550;
	border-left: 1px solid var(--c-border);
	background: var(--c-surface-2);
}

.compare-cell.is-old::before {
	content: "×";
	flex: none;
	font-weight: 700;
	color: var(--c-faint);
	line-height: 1.4;
}

.compare-cell.is-new::before {
	content: "✓";
	flex: none;
	font-weight: 700;
	color: var(--c-success);
	line-height: 1.4;
}

.section {
	padding: var(--sp-16) 0;
}

.section-alt {
	background: var(--c-surface);
	border-block: 1px solid var(--c-border);
}

.feature {
	padding: var(--sp-5);
	background: var(--c-surface);
	border: 1px solid var(--c-border);
	border-radius: var(--radius-lg);
	height: 100%;
}

.feature-num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	margin-bottom: var(--sp-4);
	background: var(--c-brand);
	color: #fff;
	border-radius: var(--radius);
	font-weight: 700;
	font-size: var(--fs-sm);
	font-variant-numeric: tabular-nums;
}

[data-theme="dark"] .feature-num {
	color: #0e1319;
}

.feature h3 {
	font-size: var(--fs-md);
	margin-bottom: var(--sp-2);
}

.feature p {
	font-size: var(--fs-base);
	color: var(--c-muted);
	margin: 0;
	line-height: 1.6;
}

/* Prinsip sətri */
.principle {
	display: flex;
	gap: var(--sp-4);
	padding: var(--sp-4) 0;
	border-bottom: 1px solid var(--c-border);
}

.principle:last-child {
	border-bottom: 0;
}

.principle-mark {
	flex: none;
	width: 26px;
	height: 26px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--c-brand-line);
	background: var(--c-brand-soft);
	color: var(--c-brand);
	border-radius: var(--radius-sm);
}

/* Qiymət kartı */
.plan {
	display: flex;
	flex-direction: column;
	padding: var(--sp-6);
	background: var(--c-surface);
	border: 1px solid var(--c-border);
	border-radius: var(--radius-lg);
	height: 100%;
}

.plan.is-popular {
	border-color: var(--c-brand);
	box-shadow: inset 0 0 0 1px var(--c-brand);
}

.plan-name {
	font-size: var(--fs-md);
	font-weight: 650;
	color: var(--c-ink);
	margin-bottom: var(--sp-1);
}

.plan-price {
	font-size: var(--fs-3xl);
	font-weight: 700;
	color: var(--c-ink);
	letter-spacing: -0.025em;
	font-variant-numeric: tabular-nums;
	margin: var(--sp-3) 0 var(--sp-1);
}

.plan-price small {
	font-size: var(--fs-base);
	font-weight: 500;
	color: var(--c-muted);
	letter-spacing: 0;
}

.plan-features {
	list-style: none;
	padding: 0;
	margin: var(--sp-5) 0;
	flex: 1;
	font-size: var(--fs-base);
}

.plan-features li {
	display: flex;
	align-items: flex-start;
	gap: var(--sp-2);
	padding: 6px 0;
	color: var(--c-text);
	border-bottom: 1px solid var(--c-border);
}

.plan-features li:last-child {
	border-bottom: 0;
}

.plan-features .icon {
	color: var(--c-success);
	margin-top: 4px;
}

/* Footer */
.footer {
	background: var(--c-surface);
	border-top: 1px solid var(--c-border);
	padding: var(--sp-12) 0 var(--sp-6);
	margin-top: auto;
}

.footer-grid {
	display: grid;
	grid-template-columns: 1.6fr repeat(3, 1fr);
	gap: var(--sp-8);
	margin-bottom: var(--sp-8);
}

.footer h4 {
	font-size: var(--fs-sm);
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--c-muted);
	margin-bottom: var(--sp-3);
	font-weight: 650;
}

.footer-links {
	list-style: none;
	padding: 0;
	margin: 0;
}

.footer-links li {
	margin-bottom: 7px;
}

.footer-links a {
	color: var(--c-text);
	font-size: var(--fs-base);
}

.footer-bot {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: var(--sp-4);
	padding-top: var(--sp-5);
	border-top: 1px solid var(--c-border);
	font-size: var(--fs-sm);
	color: var(--c-muted);
	flex-wrap: wrap;
}

/* ── Auth səhifələri (mərkəzləşdirilmiş kart) ──────────────────────────── */
.auth-page {
	min-height: 100vh; /* köhnə brauzerlər üçün fallback — dvh-dən ƏVVƏL */
	min-height: 100dvh;
	display: flex;
	flex-direction: column;
	background: var(--c-bg);
}

.auth-topbar {
	flex: none;
	height: var(--header-h);
	background: var(--c-surface);
	border-bottom: 1px solid var(--c-border);
}

.auth-topbar-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--sp-4);
	height: 100%;
	max-width: var(--container);
	margin-inline: auto;
	padding-inline: var(--sp-6);
}

.auth-topbar-actions {
	display: flex;
	align-items: center;
	gap: var(--sp-2);
}

.auth-stage {
	flex: 1;
	display: flex;
	padding: var(--sp-10) var(--sp-6) var(--sp-8);
}

/* margin:auto — align-items:center DEYİL.
   Auto margin mənfi boş sahədə 0-a düşür, ona görə kart viewport-dan
   hündür olanda yuxarı hissəsi kəsilmir. */
.auth-stage > .auth-col {
	margin: auto;
	width: 100%;
}

.auth-col {
	max-width: 420px;
}
.auth-col-md {
	max-width: 620px;
}
.auth-col-lg {
	max-width: 760px;
}

/* ── Auth kartı ────────────────────────────────────────────────────────── */
.auth-card {
	background: var(--c-surface);
	border: 1px solid var(--c-border);
	border-top: 3px solid var(--c-brand);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-sm);
}

.auth-card-head {
	padding: var(--sp-8) var(--sp-8) var(--sp-5);
}

.auth-card-head h1 {
	margin: 0 0 var(--sp-2);
	font-size: var(--fs-2xl);
	letter-spacing: -0.02em;
}

.auth-card-head p {
	margin: 0;
	font-size: var(--fs-sm);
	color: var(--c-muted);
	line-height: 1.55;
}

.auth-card-body {
	padding: 0 var(--sp-8) var(--sp-8);
}

.auth-card-foot {
	padding: var(--sp-4) var(--sp-8);
	background: var(--c-surface-2);
	border-top: 1px solid var(--c-border);
	border-radius: 0 0 var(--radius-lg) var(--radius-lg);
	text-align: center;
	font-size: var(--fs-sm);
	color: var(--c-muted);
}

/* Login formasındakı köməkçi sətir */
.auth-inline {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--sp-3);
	margin-bottom: var(--sp-5);
}

/* ── Nömrələnmiş forma bölmələri ───────────────────────────────────────── */
.auth-section + .auth-section {
	margin-top: var(--sp-6);
	padding-top: var(--sp-6);
	border-top: 1px solid var(--c-border);
}

.auth-section-head {
	display: grid;
	grid-template-columns: 26px minmax(0, 1fr);
	gap: var(--sp-3);
	align-items: start;
	margin-bottom: var(--sp-4);
}

.auth-step {
	flex: none;
	width: 26px;
	height: 26px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--c-brand-line);
	background: var(--c-brand-soft);
	color: var(--c-brand);
	border-radius: var(--radius-sm);
	font-size: var(--fs-xs);
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

.auth-section-title {
	display: block;
	margin: 0;
	font-size: var(--fs-md);
	font-weight: 650;
	color: var(--c-ink);
	line-height: 26px;
}

.auth-section-hint {
	display: block;
	margin: 2px 0 0;
	font-size: var(--fs-xs);
	color: var(--c-muted);
	line-height: 1.5;
}

/* ── İstəyə bağlı sahələr (native <details>, JS yoxdur) ────────────────── */
.auth-optional {
	margin-top: var(--sp-6);
	padding-top: var(--sp-6);
	border-top: 1px solid var(--c-border);
}

.auth-optional > summary {
	display: grid;
	grid-template-columns: 26px minmax(0, 1fr) 16px;
	gap: var(--sp-3);
	align-items: start;
	cursor: pointer;
	list-style: none;
	border-radius: var(--radius-sm);
}

.auth-optional > summary::-webkit-details-marker {
	display: none;
}

.auth-optional > summary::marker {
	content: "";
}

.auth-optional > summary:focus-visible {
	outline: 2px solid var(--c-border-focus);
	outline-offset: 2px;
}

.auth-optional > summary:hover .auth-section-title {
	color: var(--c-brand);
}

.auth-optional-ico {
	margin-top: 6px;
	color: var(--c-muted);
	transition: transform 0.12s ease;
}

.auth-optional[open] .auth-optional-ico {
	transform: rotate(45deg);
}

.auth-optional-body {
	padding-top: var(--sp-4);
}

/* Yekun blok — şərtlər və göndər düyməsi */
.auth-submit {
	margin-top: var(--sp-6);
	padding-top: var(--sp-5);
	border-top: 1px solid var(--c-border);
}

/* ── Rol seçimi kartları ───────────────────────────────────────────────── */
.role-list {
	display: grid;
	gap: var(--sp-3);
}

/* Grid düzümü: ox üçün ayrıca trek var, ona görə flex-wrap ilə
   sətir sonuna sarılma mexanizmi ümumiyyətlə mövcud deyil. */
.role-card {
	display: grid;
	grid-template-columns: 40px minmax(0, 1fr) 18px;
	gap: var(--sp-4);
	align-items: start;
	padding: var(--sp-5);
	background: var(--c-surface);
	border: 1px solid var(--c-border-strong);
	border-radius: var(--radius);
	color: inherit;
	text-decoration: none;
	transition:
		border-color 0.12s ease,
		background-color 0.12s ease;
}

.role-card:hover {
	border-color: var(--c-brand);
	background: var(--c-brand-soft);
	text-decoration: none;
	color: inherit;
}

.role-card:focus-visible {
	outline: 2px solid var(--c-border-focus);
	outline-offset: 2px;
}

.role-mark {
	width: 40px;
	height: 40px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--c-brand-line);
	background: var(--c-brand-soft);
	color: var(--c-brand);
	border-radius: var(--radius-sm);
}

.role-card:hover .role-mark {
	background: var(--c-surface);
}

.role-body {
	display: block;
	min-width: 0;
}

.role-title {
	display: block;
	font-size: var(--fs-md);
	font-weight: 650;
	color: var(--c-ink);
	margin-bottom: 3px;
}

.role-desc {
	display: block;
	margin-bottom: var(--sp-3);
	font-size: var(--fs-sm);
	color: var(--c-muted);
	line-height: 1.55;
}

.role-arrow {
	align-self: center;
	color: var(--c-faint);
	transition:
		transform 0.12s ease,
		color 0.12s ease;
}

.role-card:hover .role-arrow {
	color: var(--c-brand);
	transform: translateX(3px);
}

/* ── Kart altındakı etibar sətri ───────────────────────────────────────── */
.auth-meta {
	margin-top: var(--sp-5);
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: var(--sp-2) var(--sp-4);
	font-size: var(--fs-xs);
	color: var(--c-muted);
}

.auth-meta span {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.auth-meta .icon {
	width: 13px;
	height: 13px;
	color: var(--c-faint);
}

/* Tünd rejimdə --c-brand açıq mavidir; 3px xətt ağır görünür. */
[data-theme="dark"] .auth-card {
	border-top-width: 2px;
}


/* ── Divider mətnli ────────────────────────────────────────────────────── */
.divider {
	display: flex;
	align-items: center;
	gap: var(--sp-3);
	margin: var(--sp-5) 0;
	color: var(--c-faint);
	font-size: var(--fs-xs);
	text-transform: uppercase;
	letter-spacing: 0.06em;
	font-weight: 600;
}

.divider::before,
.divider::after {
	content: "";
	flex: 1;
	height: 1px;
	background: var(--c-border);
}

/* ── Toast ─────────────────────────────────────────────────────────────── */
.toast-stack {
	position: fixed;
	top: var(--sp-4);
	right: var(--sp-4);
	z-index: 200;
	display: flex;
	flex-direction: column;
	gap: var(--sp-2);
	max-width: 380px;
}

.toast {
	display: flex;
	align-items: flex-start;
	gap: var(--sp-3);
	padding: var(--sp-3) var(--sp-4);
	background: var(--c-surface);
	border: 1px solid var(--c-border-strong);
	border-left: 3px solid var(--c-brand);
	border-radius: var(--radius);
	box-shadow: var(--shadow-lg);
	font-size: var(--fs-base);
	animation: toast-in 0.18s ease;
}

.toast.is-success {
	border-left-color: var(--c-success);
}
.toast.is-danger {
	border-left-color: var(--c-danger);
}
.toast.is-warning {
	border-left-color: var(--c-warning);
}

@keyframes toast-in {
	from {
		opacity: 0;
		transform: translateX(12px);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

/* ── Skeleton / yüklənmə ───────────────────────────────────────────────── */
.spinner {
	display: inline-block;
	width: 14px;
	height: 14px;
	border: 2px solid var(--c-border-strong);
	border-top-color: var(--c-brand);
	border-radius: 50%;
	animation: spin 0.65s linear infinite;
}

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

/* ── Çap ───────────────────────────────────────────────────────────────── */
@media print {
	.sidebar,
	.main-head,
	.topbar,
	.footer,
	.btn,
	.offer-actions {
		display: none !important;
	}

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

	body {
		background: #fff;
	}

	.card {
		break-inside: avoid;
	}
}

/* ── Responsiv ─────────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
	.grid-main-aside {
		grid-template-columns: minmax(0, 1fr);
	}

	.footer-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.hero-grid {
		grid-template-columns: minmax(0, 1fr);
		gap: var(--sp-8);
	}

	.auth-stage {
		padding: var(--sp-8) var(--sp-5) var(--sp-6);
	}

	.auth-col-lg {
		max-width: 680px;
	}
}

@media (max-width: 900px) {
	:root {
		--sidebar-w: 0px;
	}

	.shell {
		grid-template-columns: minmax(0, 1fr);
	}

	.sidebar {
		position: fixed;
		left: 0;
		top: 0;
		bottom: 0;
		width: 262px;
		z-index: 120;
		transform: translateX(-100%);
		transition: transform 0.2s ease;
		box-shadow: var(--shadow-lg);
	}

	.sidebar.is-open {
		transform: none;
	}

	.sidebar-scrim {
		position: fixed;
		inset: 0;
		background: var(--c-overlay);
		z-index: 110;
		display: none;
	}

	.sidebar-scrim.is-open {
		display: block;
	}

	.nav-toggle {
		display: inline-flex;
	}

	.grid-sidebar {
		grid-template-columns: minmax(0, 1fr);
	}

	.grid-3,
	.grid-4 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.auth-topbar-inner {
		padding-inline: var(--sp-5);
	}

	.auth-card-head {
		padding: var(--sp-6) var(--sp-6) var(--sp-4);
	}

	.auth-card-body {
		padding: 0 var(--sp-6) var(--sp-6);
	}

	.auth-card-foot {
		padding: var(--sp-4) var(--sp-6);
	}

	.nav {
		display: none;
	}

	.nav.is-open {
		display: flex;
		position: absolute;
		top: var(--header-h);
		left: 0;
		right: 0;
		flex-direction: column;
		align-items: stretch;
		padding: var(--sp-3);
		background: var(--c-surface);
		border-bottom: 1px solid var(--c-border);
		box-shadow: var(--shadow);
	}
}

@media (max-width: 640px) {
	.container {
		padding-inline: var(--sp-4);
	}

	.main-body,
	.main-head {
		padding-inline: var(--sp-4);
	}

	.auth-topbar-inner {
		padding-inline: var(--sp-4);
	}

	.auth-stage {
		padding: var(--sp-6) var(--sp-4);
	}

	.auth-card-head {
		padding: var(--sp-5) var(--sp-5) var(--sp-4);
	}

	.auth-card-head h1 {
		font-size: var(--fs-xl);
	}

	.auth-card-body {
		padding: 0 var(--sp-5) var(--sp-5);
	}

	.auth-card-foot {
		padding: var(--sp-4) var(--sp-5);
	}

	/* Dar ekranda ox gizlənir — bütün kart onsuz da klikləniləndir. */
	.role-card {
		grid-template-columns: 36px minmax(0, 1fr);
		padding: var(--sp-4);
	}

	.role-mark {
		width: 36px;
		height: 36px;
	}

	.role-arrow {
		display: none;
	}

	.auth-inline {
		flex-direction: column;
		align-items: flex-start;
		gap: var(--sp-2);
	}

	.grid-2,
	.grid-3,
	.grid-4,
	.form-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.footer-grid {
		grid-template-columns: minmax(0, 1fr);
		gap: var(--sp-6);
	}

	.cand-card {
		flex-direction: column;
	}

	.cand-side {
		width: 100%;
		border-left: 0;
		border-top: 1px solid var(--c-border);
		padding-left: 0;
		padding-top: var(--sp-3);
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
	}

	.dl {
		grid-template-columns: minmax(0, 1fr);
	}

	.dl dt {
		border-bottom: 0;
		padding-bottom: 0;
	}

	.section {
		padding: var(--sp-10) 0;
	}

	.hero {
		padding: var(--sp-12) 0 var(--sp-10);
	}

	.stat-row {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
