/* ==========================================================================
   Qasem Workers — components on top of the shared QasemOS style.css
   ========================================================================== */
:root {
  --ok: #138a3c; --ok-bg: #e5f5ea;
  --info: #1d4ed8; --info-bg: #e8efff;
  --warn: #b45309; --warn-bg: #fdf3e3;
  --bad: #c0262d; --bad-bg: #fdeaea;
  --side-w: 264px;
}

.w-full { width: 100%; }
.block { display: block; }
.muted { color: var(--muted); }
.small { font-size: .86rem; }
.center { text-align: center; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .02em; }
.t-right { text-align: right; }
.narrow { max-width: 720px; }
.narrow-wide { max-width: 980px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.js .no-js-only { display: none; }
.link-sm { font-size: .88rem; font-weight: 700; color: var(--brand-600); display: inline-flex; align-items: center; gap: .35em; }
.link-sm:hover { color: var(--brand-800); text-decoration: underline; }
.link-sm .icon { width: 16px; height: 16px; }

/* ---------- Badges ---------- */
.badge { display: inline-flex; align-items: center; gap: .35em; padding: .28em .7em; border-radius: 999px; font-size: .75rem; font-weight: 750; line-height: 1.2; white-space: nowrap; background: var(--brand-100); color: var(--brand-700); }
.badge .icon { width: 13px; height: 13px; }
.badge-ok { background: var(--ok-bg); color: var(--ok); }
.badge-info { background: var(--info-bg); color: var(--info); }
.badge-warn { background: var(--warn-bg); color: var(--warn); }
.badge-bad { background: var(--bad-bg); color: var(--bad); }
.badge-muted { background: #f0edf4; color: var(--muted); }
.badge-brand { background: var(--brand-100); color: var(--brand-700); }

/* ---------- Compact hero ---------- */
.page-hero.compact { padding: clamp(36px, 5vw, 60px) 0 clamp(40px, 5vw, 64px); }
.page-hero.compact h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); }
.page-hero.compact .breadcrumb { margin-bottom: 18px; }
.page-hero .glance { animation: none; }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.hero-stats > div { padding: 22px 18px; border-radius: 20px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); text-align: center; }
.hero-stats strong { display: flex; justify-content: center; color: #fff; font-size: 2.2rem; font-weight: 800; line-height: 1; letter-spacing: -.03em; }
.hero-stats strong .icon { width: 34px; height: 34px; color: #4fd18b; }
.hero-stats span { display: block; margin-top: 8px; font-size: .85rem; color: #c3b2d4; }

/* ---------- Catalogue ---------- */
.catalogue { padding-top: 40px; }
.catalogue-layout { display: grid; grid-template-columns: 280px 1fr; gap: 32px; align-items: start; }
.filters-panel { position: sticky; top: 96px; display: grid; gap: 16px; }
.filter-form { display: grid; gap: 14px; padding: 22px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); }
.filter-form .field { gap: 5px; }
.filter-form select, .filter-form input[type=search] { padding: .65em .9em; font-size: .92rem; }
.fp-head { display: flex; justify-content: space-between; align-items: center; }
.fp-head strong { display: inline-flex; gap: .5em; align-items: center; color: var(--ink); }
.fp-head .icon { color: var(--brand-500); }
.fp-help { padding: 20px; border-radius: var(--radius-lg); background: linear-gradient(140deg, var(--brand-100), #fff); border: 1px solid var(--brand-100); }
.fp-help strong { color: var(--ink); }
.fp-help p { color: var(--muted); font-size: .9rem; margin: 4px 0 12px; }
.input-icon { position: relative; }
.input-icon > .icon { position: absolute; left: 12px; top: 50%; translate: 0 -50%; width: 18px; height: 18px; color: var(--muted); pointer-events: none; }
.input-icon input { padding-left: 2.4em !important; }
.input-icon.right input { padding-left: 1em !important; padding-right: 3em !important; }
.pw-toggle { position: absolute; right: 6px; top: 50%; translate: 0 -50%; border: 0; background: none; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; color: var(--muted); cursor: pointer; }
.pw-toggle:hover { background: var(--brand-50); color: var(--brand-700); }

.switch { display: inline-flex; align-items: center; gap: 10px; font-weight: 650; font-size: .92rem; color: var(--ink); cursor: pointer; user-select: none; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch .track { position: relative; width: 42px; height: 24px; border-radius: 99px; background: #ddd5e6; transition: background .25s; flex: none; }
.switch .track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .3s var(--ease); }
.switch input:checked + .track { background: var(--brand-600); }
.switch input:checked + .track::after { transform: translateX(18px); }
.switch input:focus-visible + .track { outline: 3px solid var(--brand-300); outline-offset: 2px; }

.results-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.results-bar p { color: var(--muted); }
.results-bar strong { color: var(--ink); }
.sort-form { display: flex; align-items: center; gap: 10px; font-size: .9rem; color: var(--muted); font-weight: 600; }
.sort-form select { padding: .55em .9em; border-radius: 10px; border: 1.5px solid var(--line); background: #fff; font-weight: 650; }

.worker-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 20px; }
.worker-grid.three { grid-template-columns: repeat(3, 1fr); }
.worker-card { display: flex; flex-direction: column; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .3s; }
.worker-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--brand-200); }
.wc-media { position: relative; aspect-ratio: 16 / 10; display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(circle at 30% 20%, #8d55c0 0%, transparent 55%), linear-gradient(135deg, var(--brand-700), var(--brand-900)); }
.wc-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; transition: transform .8s var(--ease); }
.worker-card:hover .wc-media img { transform: scale(1.05); }
.wc-avatar { width: 92px; height: 92px; border-radius: 50%; display: grid; place-items: center; font-size: 2rem; font-weight: 800; letter-spacing: -.02em; color: #fff; background: rgba(255,255,255,.14); border: 2px solid rgba(255,255,255,.3); transition: transform .5s var(--ease); }
.worker-card:hover .wc-avatar { transform: scale(1.08); }
.wc-avatar.lg { width: 140px; height: 140px; font-size: 3rem; }
.wc-ref { position: absolute; top: 12px; left: 12px; padding: .3em .75em; border-radius: 999px; background: rgba(18, 6, 28, .72); color: #fff; font-size: .74rem; font-weight: 800; letter-spacing: .04em; backdrop-filter: blur(6px); }
.wc-ref.static { position: static; display: inline-block; background: var(--brand-100); color: var(--brand-700); }
.wc-media .badge { position: absolute; top: 12px; right: 12px; box-shadow: 0 4px 10px rgba(0,0,0,.12); }
.wc-verified { position: absolute; left: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 5px; padding: .3em .7em .3em .5em; border-radius: 999px; background: #fff; color: var(--ok); font-size: .74rem; font-weight: 800; }
.wc-verified .icon { width: 15px; height: 15px; }
.wc-body { display: flex; flex-direction: column; gap: 14px; padding: 18px 20px 20px; flex: 1; }
.wc-head { display: flex; justify-content: space-between; gap: 8px 10px; align-items: flex-start; flex-wrap: wrap; }
.wc-head > div { min-width: 0; }
.wc-head h3 { font-size: 1.15rem; }
.wc-nat { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: .88rem; font-weight: 600; margin-top: 4px; }
.wc-nat .icon { width: 15px; height: 15px; color: var(--brand-500); }
.wc-role { flex: none; font-size: .74rem; font-weight: 750; padding: .3em .7em; border-radius: 8px; background: var(--brand-50); color: var(--brand-600); border: 1px solid var(--brand-100); }
.wc-facts { display: grid; gap: 7px; margin: 0; }
.wc-facts > div { display: flex; justify-content: space-between; gap: 12px; font-size: .87rem; }
.wc-facts dt { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); }
.wc-facts dt .icon { width: 15px; height: 15px; }
.wc-facts dd { margin: 0; font-weight: 700; color: var(--ink); text-align: right; }
.wc-skills { display: flex; flex-wrap: wrap; gap: 6px; }
.wc-skills span { font-size: .75rem; font-weight: 650; padding: .3em .7em; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); }
.wc-skills .more { background: var(--brand-100); border-color: var(--brand-100); color: var(--brand-700); }
.wc-actions { display: grid; grid-template-columns: 1fr; gap: 8px; margin-top: auto; padding-top: 4px; }

.pager { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 32px; }
.pager a { min-width: 40px; height: 40px; display: grid; place-items: center; padding: 0 10px; border-radius: 12px; border: 1px solid var(--line); background: #fff; font-weight: 700; }
.pager a:hover { border-color: var(--brand-300); }
.pager a[aria-current] { background: var(--brand-700); border-color: var(--brand-700); color: #fff; }

.empty { text-align: center; padding: 56px 24px; border-radius: var(--radius-lg); border: 1.5px dashed var(--brand-200); background: #fff; }
.empty-icon { display: inline-grid; place-items: center; width: 72px; height: 72px; border-radius: 22px; background: var(--brand-100); color: var(--brand-600); margin-bottom: 16px; }
.empty-icon .icon { width: 34px; height: 34px; }
.empty h2 { font-size: 1.35rem; }
.empty p { color: var(--muted); max-width: 460px; margin: 8px auto 20px; }
.empty-sm { display: flex; align-items: center; gap: 8px; color: var(--muted); padding: 10px 0; }
.empty-sm .icon { color: var(--ok); }
.how-strip { background: linear-gradient(180deg, #fff, var(--brand-50)); padding-top: clamp(56px, 7vw, 90px); }

/* ---------- Profile ---------- */
.profile-section { padding-top: 0; margin-top: -36px; position: relative; z-index: 2; }
.profile-layout { display: grid; grid-template-columns: 360px 1fr; gap: 28px; align-items: start; }
.profile-card { position: sticky; top: 96px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); overflow: hidden; box-shadow: var(--shadow); }
.pc-media { position: relative; aspect-ratio: 1 / .95; display: grid; place-items: center; background: radial-gradient(circle at 30% 20%, #8d55c0 0%, transparent 55%), linear-gradient(135deg, var(--brand-700), var(--brand-900)); }
.pc-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.pc-media .badge { position: absolute; top: 14px; right: 14px; font-size: .82rem; }
.pc-body { padding: 22px; display: grid; gap: 12px; }
.pc-body h1 { font-size: 1.7rem; }
.pc-sub { color: var(--muted); font-weight: 600; margin-top: -6px; }
.pc-quick { list-style: none; margin: 4px 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pc-quick li { display: grid; justify-items: center; gap: 4px; padding: 12px 6px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line); text-align: center; }
.pc-quick .icon { color: var(--brand-500); }
.pc-quick span { font-size: .74rem; color: var(--muted); line-height: 1.3; }
.pc-quick strong { display: block; font-size: 1.05rem; color: var(--ink); }
.verified-box { display: flex; gap: 12px; padding: 14px; border-radius: 14px; background: var(--ok-bg); color: #0c5c28; }
.verified-box .icon { width: 24px; height: 24px; flex: none; }
.verified-box strong { display: block; color: #0b4d22; }
.verified-box span { font-size: .85rem; }
.profile-main { display: grid; gap: 24px; min-width: 0; }
.bio-card { padding: clamp(22px, 3vw, 32px); border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.bio-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.bio-head h2 { font-size: 1.5rem; }
.bio-head .muted { font-size: .85rem; }
.bio-group { font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; color: var(--brand-600); margin: 24px 0 12px; display: flex; align-items: center; gap: 10px; }
.bio-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; margin: 0; }
.bio-grid > div { padding: 12px 14px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line); }
.bio-grid dt { display: flex; align-items: center; gap: 7px; font-size: .8rem; color: var(--muted); font-weight: 600; }
.bio-grid dt .icon { width: 15px; height: 15px; color: var(--brand-400); }
.bio-grid dd { margin: 4px 0 0; font-weight: 750; color: var(--ink); }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-list span { display: inline-flex; align-items: center; gap: 6px; padding: .45em .9em; border-radius: 999px; background: var(--ok-bg); color: #0c5c28; font-weight: 700; font-size: .88rem; }
.tag-list span .icon { width: 15px; height: 15px; }
.tag-list.soft span { background: var(--brand-50); color: var(--brand-700); border: 1px solid var(--brand-100); }
.about-text { color: var(--text); line-height: 1.75; max-width: 70ch; }

/* ---------- Forms ---------- */
.form-card-head { display: flex; gap: 16px; align-items: flex-start; }
.form-card-head .service-icon { width: 52px; height: 52px; flex: none; }
.form-card-head p { color: var(--muted); margin-top: 4px; }
.form-sub { margin: 28px 0 0; font-size: 1.05rem; padding-top: 20px; border-top: 1px solid var(--line); }
.form-grid.three { grid-template-columns: repeat(3, 1fr); }
.field .label { font-weight: 700; font-size: .88rem; color: var(--ink); }
.req { color: var(--bad); }
.hint { color: var(--muted); font-size: .8rem; line-height: 1.45; }
.field-error { display: flex; align-items: center; gap: 6px; color: var(--bad); font-size: .84rem; font-weight: 650; margin: 0; }
.field-error .icon { width: 15px; height: 15px; }
.has-error input, .has-error select, .has-error textarea { border-color: var(--bad) !important; background: #fffafa !important; }
.has-error .checks span { border-color: #f1b8bb; }
.checks .tick { width: 0; height: 15px; opacity: 0; transition: width .2s, opacity .2s; }
.checks input:checked + span .tick { width: 15px; opacity: 1; }
.consent { display: flex; gap: 12px; align-items: flex-start; margin-top: 22px; padding: 14px 16px; border-radius: 14px; background: var(--brand-50); border: 1.5px solid var(--brand-100); cursor: pointer; font-size: .92rem; }
.consent input { width: 20px; height: 20px; accent-color: var(--brand-600); margin-top: 2px; flex: none; }
.consent.has-error { border-color: #f1b8bb; background: #fffafa; }
.alert { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; margin: 16px 0; font-size: .93rem; line-height: 1.55; }
.alert > .icon { width: 20px; height: 20px; flex: none; margin-top: 1px; }
.alert-error { background: var(--bad-bg); color: #8f1b20; }
.alert-ok { background: var(--ok-bg); color: #0b4d22; }
.alert-info { background: var(--info-bg); color: #1e3a8a; }
.alert-warn { background: var(--warn-bg); color: #7c3a06; }
.alert a { font-weight: 750; text-decoration: underline; }
.alert code { background: rgba(0,0,0,.06); padding: 2px 6px; border-radius: 6px; }
.dropzone { position: relative; display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 14px; border: 1.5px dashed var(--brand-200); background: var(--brand-50); cursor: pointer; transition: border-color .25s, background .25s; }
.dropzone:hover, .dropzone.drag { border-color: var(--brand-500); background: var(--brand-100); }
.dropzone.filled { border-style: solid; border-color: var(--ok); background: var(--ok-bg); }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dz-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: #fff; color: var(--brand-600); flex: none; overflow: hidden; }
.dz-icon img { width: 100%; height: 100%; object-fit: cover; }
.dz-text { display: grid; min-width: 0; }
.dz-text strong { color: var(--ink); font-size: .92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dz-text small { color: var(--muted); font-size: .8rem; }
.privacy-box { display: flex; gap: 12px; margin-top: 22px; padding: 14px 16px; border-radius: 14px; background: var(--info-bg); color: #1e3a8a; font-size: .9rem; }
.privacy-box .icon { flex: none; margin-top: 2px; }

/* Multi-step application */
.apply-section { padding-top: 40px; }
.apply-form { padding: clamp(22px, 4vw, 40px); }
.stepper { list-style: none; margin: 0 0 14px; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.stepper li { display: flex; align-items: center; gap: 10px; font-size: .84rem; font-weight: 700; color: var(--muted); cursor: default; }
.js .stepper li.reachable { cursor: pointer; }
.stepper .sn { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--bg); border: 1.5px solid var(--line); font-size: .82rem; transition: all .35s var(--ease); }
.stepper li.current { color: var(--ink); }
.stepper li.current .sn { background: var(--brand-700); border-color: var(--brand-700); color: #fff; box-shadow: 0 0 0 5px var(--brand-100); }
.stepper li.done .sn { background: var(--ok); border-color: var(--ok); color: #fff; }
.stepper li.has-error .sn { background: var(--bad); border-color: var(--bad); color: #fff; }
.progress { height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; margin-bottom: 26px; }
.progress span { display: block; height: 100%; width: 20%; background: linear-gradient(90deg, var(--brand-500), var(--ok)); border-radius: 4px; transition: width .5s var(--ease); }
.js .apply-form .step { display: none; }
.js .apply-form .step.active { display: block; animation: panelIn .5s var(--ease) both; }
.step { border: 0; padding: 0; margin: 0 0 24px; min-width: 0; }
.step-title { display: flex; align-items: center; gap: 12px; font-size: 1.35rem; font-weight: 800; color: var(--ink); margin-bottom: 4px; padding: 0; }
.step-title > span { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-100); color: var(--brand-700); }
.step-nav { display: flex; align-items: center; gap: 12px; padding-top: 22px; border-top: 1px solid var(--line); }
.step-count { margin-right: auto; color: var(--muted); font-size: .88rem; font-weight: 650; }
.step-nav [data-prev] { order: -1; }
.no-js-step-nav .step-nav [data-prev], .no-js-step-nav .step-nav [data-next] { display: none; }
.exp-block { margin-top: 26px; padding: 20px; border-radius: 18px; background: var(--bg); border: 1px solid var(--line); }
.exp-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.exp-head h4 { font-size: 1.02rem; }
.exp-head small { color: var(--muted); }
.exp-rows { display: grid; gap: 12px; margin-bottom: 14px; }
.exp-row { display: grid; grid-template-columns: 1.2fr .6fr 1fr 2fr auto; gap: 10px; align-items: end; padding: 14px; border-radius: 14px; background: #fff; border: 1px solid var(--line); animation: panelIn .4s var(--ease) both; }
.exp-row .field input { padding: .65em .85em; }
.icon-btn { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; cursor: pointer; color: var(--muted); transition: all .2s; flex: none; }
.icon-btn:hover { color: var(--brand-700); border-color: var(--brand-200); background: var(--brand-50); }
.icon-btn.danger:hover { color: var(--bad); border-color: #f1b8bb; background: var(--bad-bg); }
.icon-btn .icon { width: 18px; height: 18px; }

/* Done / status */
.done-section { padding: clamp(56px, 8vw, 100px) 0; background: radial-gradient(700px 400px at 50% 0%, var(--brand-100), transparent 70%); }
.done-card { text-align: center; padding: clamp(30px, 5vw, 56px); border-radius: var(--radius-xl); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.done-check { display: inline-grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; background: var(--ok); color: #fff; box-shadow: 0 0 0 10px var(--ok-bg); margin-bottom: 26px; animation: pop .7s var(--ease) both; }
.done-check.muted { background: var(--brand-600); box-shadow: 0 0 0 10px var(--brand-100); }
.done-check .icon { width: 40px; height: 40px; stroke-width: 3; }
@keyframes pop { 0% { transform: scale(.3); opacity: 0; } 60% { transform: scale(1.1); opacity: 1; } 100% { transform: scale(1); } }
.done-card h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.lead-dark { color: var(--muted); font-size: 1.08rem; margin: 12px auto 0; max-width: 520px; }
.ref-box { display: inline-grid; gap: 2px; margin: 26px auto; padding: 16px 32px; border-radius: 18px; background: var(--brand-50); border: 1.5px dashed var(--brand-300); }
.ref-box span { font-size: .8rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.ref-box strong { font-size: 2rem; letter-spacing: .04em; color: var(--brand-700); }
.ref-box small { color: var(--muted); }
.mini-timeline { list-style: none; padding: 0; margin: 0 auto 28px; max-width: 420px; text-align: left; display: grid; gap: 10px; }
.mini-timeline li { display: flex; align-items: center; gap: 12px; color: var(--muted); font-weight: 600; }
.mini-timeline span { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); border: 1.5px solid var(--line); font-size: .82rem; font-weight: 800; flex: none; }
.mini-timeline li.done { color: var(--ink); }
.mini-timeline li.done span { background: var(--ok); border-color: var(--ok); color: #fff; }
.mini-timeline .icon { width: 16px; height: 16px; stroke-width: 3; }
.status-card { margin-top: 24px; padding: 26px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.status-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding-bottom: 18px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.status-head small { display: block; color: var(--muted); font-weight: 700; font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; }
.status-head strong { display: block; font-size: 1.5rem; color: var(--ink); }
.status-head span:not(.badge) { color: var(--muted); }
.track { list-style: none; padding: 0; margin: 0 0 18px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.track li { display: grid; justify-items: center; gap: 8px; text-align: center; font-size: .86rem; font-weight: 700; color: var(--muted); position: relative; }
.track li span { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); border: 2px solid var(--line); position: relative; z-index: 1; }
.track li:not(:last-child)::after { content: ""; position: absolute; top: 17px; left: 60%; width: 80%; height: 2px; background: var(--line); }
.track li.done span { background: var(--ok); border-color: var(--ok); color: #fff; }
.track li.done::after { background: var(--ok); }
.track li.current { color: var(--ink); }
.track li.current span { border-color: var(--brand-600); color: var(--brand-700); box-shadow: 0 0 0 5px var(--brand-100); }
.track .icon { width: 17px; height: 17px; stroke-width: 3; }
.side-info .checklist li { font-weight: 600; }

/* Toasts */
.toasts { position: fixed; top: 16px; left: 50%; translate: -50% 0; z-index: 300; display: grid; gap: 10px; width: min(560px, calc(100% - 32px)); }
.toast { display: flex; align-items: flex-start; gap: 12px; padding: 14px 14px 14px 16px; border-radius: 16px; background: #fff; box-shadow: var(--shadow-lg); border: 1px solid var(--line); font-weight: 600; color: var(--ink); animation: toastIn .5s var(--ease) both; }
.toast > .icon { width: 22px; height: 22px; flex: none; margin-top: 1px; }
.toast-success > .icon { color: var(--ok); }
.toast-error > .icon { color: var(--bad); }
.toast-info > .icon { color: var(--info); }
.toast span { flex: 1; }
.toast-close { border: 0; background: none; color: var(--muted); cursor: pointer; padding: 2px; border-radius: 6px; }
.toast-close .icon { width: 16px; height: 16px; }
.toast.hide { animation: toastOut .4s var(--ease) both; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-16px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateY(-12px); } }

/* ==========================================================================
   Admin
   ========================================================================== */
body.admin { background: #f6f3f9; }
.admin-shell { display: grid; grid-template-columns: var(--side-w) 1fr; min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; gap: 18px; padding: 22px 16px; background: var(--brand-950); color: #cbbcd9;
  background-image: radial-gradient(400px 300px at 0% 0%, rgba(116, 56, 166, .35), transparent 70%); }
.sidebar .brand { padding: 4px 8px 10px; }
.sidebar .brand img { width: 44px; }
.side-nav { display: grid; gap: 3px; }
.side-nav a { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px; font-weight: 650; font-size: .94rem; color: #cbbcd9; transition: background .2s, color .2s; }
.side-nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.side-nav a[aria-current] { background: linear-gradient(90deg, rgba(154, 99, 204, .35), rgba(154, 99, 204, .12)); color: #fff; box-shadow: inset 3px 0 0 var(--brand-300); }
.side-nav .icon { width: 19px; height: 19px; }
.side-nav span { flex: 1; }
.count-pill { min-width: 22px; height: 22px; padding: 0 7px; border-radius: 99px; background: #f59e0b; color: #1c1103; font-size: .74rem; display: grid; place-items: center; }
.side-label { margin: 16px 12px 4px; font-size: .7rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #8a77a0; }
.side-site { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 12px; border: 1px solid rgba(255,255,255,.1); font-weight: 650; font-size: .9rem; }
.side-site:hover { background: rgba(255,255,255,.06); color: #fff; }
.side-site .icon { width: 17px; height: 17px; }
.admin-main { min-width: 0; display: flex; flex-direction: column; }
.admin-top { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 16px; padding: 12px clamp(16px, 3vw, 32px); background: rgba(246, 243, 249, .85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.side-toggle { display: none; }
.admin-search { position: relative; flex: 1; max-width: 520px; }
.admin-search .icon { position: absolute; left: 14px; top: 50%; translate: 0 -50%; width: 18px; height: 18px; color: var(--muted); }
.admin-search input[type=search] { width: 100%; padding: .7em 1em .7em 2.7em; border-radius: 12px; border: 1px solid var(--line); background: #fff; font-size: .92rem; }
.admin-search input:focus { outline: none; border-color: var(--brand-400); box-shadow: 0 0 0 4px var(--brand-100); }
.admin-user { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.admin-user .who { display: grid; line-height: 1.2; }
.admin-user .who strong { color: var(--ink); font-size: .9rem; }
.admin-user .who small { color: var(--muted); font-size: .76rem; }
.avatar { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none; font-weight: 800; font-size: .88rem; color: #fff; background: linear-gradient(135deg, var(--brand-500), var(--brand-800)); }
.avatar.img { object-fit: cover; background: var(--line); }
.avatar.soft { background: var(--brand-100); color: var(--brand-700); }
.avatar.soft .icon { width: 19px; height: 19px; }
.avatar.xl { width: 72px; height: 72px; border-radius: 20px; font-size: 1.5rem; }
.admin-content { padding: clamp(20px, 3vw, 32px); display: grid; gap: 22px; align-content: start; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.page-head h1 { font-size: clamp(1.5rem, 2.6vw, 2rem); display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.page-head h1 .badge { font-size: .8rem; }
.page-head .muted { margin-top: 4px; }
.page-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.person-head { display: flex; align-items: center; gap: 18px; }
.crumbs { font-size: .84rem; color: var(--muted); font-weight: 600; margin-bottom: 4px; }
.crumbs a { color: var(--brand-600); }
.crumbs a:hover { text-decoration: underline; }

.panel { padding: 22px; border-radius: 20px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); min-width: 0; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 16px; }
.panel-head h2 { font-size: 1.08rem; letter-spacing: -.01em; }
.panel > .field + .field, .panel form > .field + .field { margin-top: 14px; }
.panel .field + .btn, .panel .field + .switch, .panel .switch + .hint { margin-top: 14px; }
.panel .hint + .btn { margin-top: 14px; }

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat { position: relative; display: grid; gap: 4px; padding: 20px; border-radius: 20px; background: #fff; border: 1px solid var(--line); overflow: hidden; transition: transform .4s var(--ease), box-shadow .4s; }
.stat:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.stat::after { content: ""; position: absolute; right: -30px; top: -30px; width: 110px; height: 110px; border-radius: 50%; background: var(--cbg); opacity: .7; }
.stat .service-icon { width: 46px; height: 46px; border-radius: 14px; margin-bottom: 10px; position: relative; z-index: 1; }
.stat strong { font-size: 2.1rem; line-height: 1; font-weight: 800; color: var(--ink); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stat span:last-child { color: var(--muted); font-weight: 600; font-size: .9rem; }
.dash-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 22px; }
.dash-grid + .dash-grid { grid-template-columns: 1fr 1fr; }

.bars { display: grid; grid-template-columns: repeat(14, 1fr); gap: 6px; align-items: end; height: 190px; }
.bar { display: grid; grid-template-rows: 1fr auto; height: 100%; gap: 6px; text-align: center; }
.bar > span { align-self: end; height: max(4px, var(--h)); border-radius: 8px 8px 4px 4px; background: linear-gradient(180deg, var(--brand-400), var(--brand-700)); position: relative; transform-origin: bottom; animation: grow .9s var(--ease) both; }
.bar:nth-child(n) > span { animation-delay: calc(.03s * var(--i, 1)); }
.bar b { position: absolute; top: -20px; left: 50%; translate: -50% 0; font-size: .72rem; color: var(--ink); }
.bar small { font-size: .7rem; color: var(--muted); }
@keyframes grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.pipeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.pipeline a { display: flex; align-items: center; gap: 10px; font-weight: 650; font-size: .92rem; margin-bottom: 6px; }
.pipeline a b { margin-left: auto; color: var(--ink); }
.pipeline a:hover { color: var(--brand-700); }
[class^="dot-"] { width: 10px; height: 10px; border-radius: 50%; }
.dot-ok, .tone-ok { background: var(--ok); } .dot-info, .tone-info { background: var(--info); } .dot-warn, .tone-warn { background: #f59e0b; } .dot-bad, .tone-bad { background: var(--bad); } .dot-muted, .tone-muted { background: #b4a9c0; } .dot-brand, .tone-brand { background: var(--brand-500); }
.meter { display: block; height: 7px; border-radius: 7px; background: #f0ebf5; overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--brand-500), var(--ok)); transition: width .8s var(--ease); }
.meter.big { height: 9px; margin-bottom: 14px; }
.mini-meter { display: inline-block; width: 54px; height: 6px; border-radius: 6px; background: #f0ebf5; overflow: hidden; vertical-align: middle; margin-right: 6px; }
.mini-meter i { display: block; height: 100%; background: var(--ok); }

.list { list-style: none; margin: 0; padding: 0; display: grid; }
.list li + li { border-top: 1px solid var(--line); }
.list a { display: flex; align-items: center; gap: 12px; padding: 12px 6px; border-radius: 12px; transition: background .2s; }
.list a:hover { background: var(--brand-50); }
.li-main { display: grid; min-width: 0; flex: 1; }
.li-main strong { color: var(--ink); font-size: .94rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.li-main small, .li-side small { color: var(--muted); font-size: .8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.li-side { display: grid; justify-items: end; gap: 4px; flex: none; }

.activity { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.activity li { display: flex; gap: 12px; padding: 10px 0; position: relative; }
.activity li:not(:last-child)::before { content: ""; position: absolute; left: 17px; top: 46px; bottom: -6px; width: 2px; background: var(--line); }
.act-icon { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand-600); flex: none; }
.act-icon .icon { width: 17px; height: 17px; }
.activity p { font-size: .9rem; }
.activity p strong { color: var(--ink); }
.activity a { color: var(--brand-600); font-weight: 650; }
.activity small { color: var(--muted); font-size: .78rem; }

.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.tabs-line { display: flex; gap: 4px; flex-wrap: wrap; }
.tabs-line a { padding: .5em .9em; border-radius: 10px; font-weight: 700; font-size: .88rem; color: var(--muted); transition: background .2s, color .2s; }
.tabs-line a span { font-size: .75rem; padding: 1px 7px; border-radius: 99px; background: #f0ebf5; margin-left: 4px; }
.tabs-line a:hover { color: var(--brand-700); background: var(--brand-50); }
.tabs-line a[aria-current] { background: var(--brand-800); color: #fff; }
.tabs-line a[aria-current] span { background: rgba(255,255,255,.2); }
.search-inline { position: relative; display: flex; align-items: center; gap: 8px; }
.search-inline.grow { flex: 1; max-width: 520px; }
.search-inline .icon { position: absolute; right: auto; width: 17px; height: 17px; color: var(--muted); pointer-events: none; margin-left: 12px; }
.search-inline select + .icon { position: static; margin-left: 4px; }
.search-inline input[type=search] { padding: .6em .9em .6em 2.4em; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); min-width: 240px; }
.search-inline select + .icon + input[type=search] { padding-left: .9em; }
.search-inline select { padding: .6em .8em; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); font-weight: 650; }

.table-wrap { overflow-x: auto; margin: 0 -22px; padding: 0 22px; }
.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th { text-align: left; font-size: .74rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background .15s; }
.table tbody tr[data-href] { cursor: pointer; }
.table tbody tr:hover { background: var(--brand-50); }
.table.compact td, .table.compact th { padding: 8px 10px; }
.table small { font-size: .8rem; }
.cell-person { display: flex; align-items: center; gap: 12px; min-width: 220px; }
.cell-person > span { display: grid; }
.cell-person strong { color: var(--ink); }
.cell-person small { color: var(--muted); font-size: .8rem; }
.cell-person.big { align-items: center; flex-wrap: wrap; }
.cell-person.big > span { gap: 4px; }

.review-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 22px; align-items: start; }
.review-main { display: grid; gap: 22px; min-width: 0; }
.review-side { position: sticky; top: 84px; display: grid; gap: 18px; }
.kv { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 0 18px; margin: 0; }
.kv > div { padding: 10px 0; border-bottom: 1px dashed var(--line); }
.kv dt { font-size: .78rem; color: var(--muted); font-weight: 650; }
.kv dd { margin: 2px 0 0; font-weight: 700; color: var(--ink); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.panel .bio-group:first-of-type { margin-top: 4px; }
.private { display: inline-flex; align-items: center; gap: 4px; font-size: .68rem; letter-spacing: .06em; padding: 2px 8px; border-radius: 99px; background: var(--warn-bg); color: var(--warn); }
.private .icon { width: 12px; height: 12px; }
.doc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.doc { display: grid; border-radius: 14px; border: 1px solid var(--line); overflow: hidden; background: var(--bg); transition: transform .3s var(--ease), box-shadow .3s, border-color .3s; }
a.doc:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--brand-200); }
.doc-thumb { aspect-ratio: 4 / 3; display: grid; place-items: center; background: #efe9f5; color: var(--brand-500); position: relative; overflow: hidden; }
.doc-thumb img { width: 100%; height: 100%; object-fit: cover; }
.doc-thumb .icon { width: 34px; height: 34px; }
.doc-thumb b { position: absolute; bottom: 10px; font-size: .7rem; letter-spacing: .1em; }
.doc-label { display: flex; align-items: center; gap: 6px; padding: 10px 12px; font-size: .84rem; font-weight: 700; color: var(--ink); background: #fff; }
.doc-label .icon { width: 15px; height: 15px; color: var(--brand-500); }
.doc-label .end { margin-left: auto; color: var(--muted); }
.doc.missing { opacity: .6; }
.doc.missing .doc-thumb { color: var(--muted); }
.edit-panel { padding: 0; }
.edit-panel > summary { list-style: none; display: flex; justify-content: space-between; align-items: center; padding: 18px 22px; cursor: pointer; font-weight: 750; color: var(--ink); }
.edit-panel > summary::-webkit-details-marker { display: none; }
.edit-panel > summary span { display: inline-flex; align-items: center; gap: 10px; }
.edit-panel > summary .icon { color: var(--brand-500); }
.edit-panel .chev { transition: transform .3s var(--ease); }
.edit-panel[open] .chev { transform: rotate(180deg); }
.edit-form { padding: 0 22px 22px; border-top: 1px solid var(--line); }
.edit-form .form-grid { margin-top: 18px; }
.edit-form .form-actions { justify-content: flex-end; align-items: center; gap: 18px; }

.verify-count { font-weight: 800; color: var(--brand-700); background: var(--brand-100); padding: 2px 10px; border-radius: 99px; font-size: .85rem; }
.checklist-admin { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 6px; }
.checklist-admin label { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; cursor: pointer; transition: background .2s; font-size: .9rem; font-weight: 600; color: var(--ink); }
.checklist-admin label:hover { background: var(--brand-50); }
.checklist-admin label { position: relative; }
.checklist-admin input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.checklist-admin .cb { width: 22px; height: 22px; border-radius: 7px; border: 2px solid #cfc4da; display: grid; place-items: center; flex: none; color: transparent; transition: all .25s var(--ease); margin-top: 1px; }
.checklist-admin .cb .icon { width: 14px; height: 14px; stroke-width: 3.2; }
.checklist-admin input:checked + .cb { background: var(--ok); border-color: var(--ok); color: #fff; transform: scale(1.05); }
.checklist-admin input:focus-visible + .cb { outline: 3px solid var(--brand-300); outline-offset: 2px; }
.checklist-admin small { display: block; color: var(--ok); font-size: .76rem; font-weight: 650; margin-top: 2px; }
.req-tag { font-style: normal; font-size: .68rem; font-weight: 800; letter-spacing: .05em; color: var(--warn); text-transform: uppercase; margin-left: 4px; }
.decide { display: grid; gap: 12px; }
.decide .hint { margin-top: 0; }
.decide-more { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 12px; }
.decide-more summary { cursor: pointer; display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: .92rem; color: var(--text); list-style: none; padding: 6px 0; }
.decide-more summary::-webkit-details-marker { display: none; }
.decide-more summary .icon { width: 18px; height: 18px; color: var(--warn); }
.decide-more.danger summary .icon { color: var(--bad); }
.decide-more form { display: grid; gap: 10px; margin-top: 10px; }
.decide-more textarea, .row-menu-pop input { width: 100%; padding: .7em .9em; border-radius: 12px; border: 1.5px solid var(--line); background: var(--bg); font-size: .92rem; resize: vertical; }
.btn-danger { background: var(--bad); }
.btn-danger:hover { box-shadow: 0 12px 24px -10px rgba(192, 38, 45, .55); }
.switch-row { display: flex; flex-wrap: wrap; gap: 14px 28px; margin-top: 20px; padding: 16px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line); }
.tips h2 { display: flex; align-items: center; gap: 8px; font-size: 1rem; margin-bottom: 10px; }
.tips h2 .icon { color: #f59e0b; }
.tips ul { margin: 0; padding-left: 18px; display: grid; gap: 8px; color: var(--muted); font-size: .88rem; }
.tips strong { color: var(--ink); }
.row-menu { position: relative; display: inline-block; }
.row-menu summary { list-style: none; }
.row-menu summary::-webkit-details-marker { display: none; }
.row-menu-pop { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; width: 240px; display: grid; gap: 10px; padding: 12px; border-radius: 14px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.row-menu-pop form { display: grid; gap: 8px; }
.narrow-panel { max-width: 520px; display: grid; gap: 14px; }

/* Auth */
.auth-page { min-height: 100vh; background: var(--brand-950); }
.auth-bg { position: fixed; inset: 0; overflow: hidden; z-index: 0; }
.auth-bg .hero-grid-bg { opacity: .3; }
.auth-wrap { position: relative; z-index: 1; min-height: 100vh; display: grid; place-items: center; padding: 32px 16px; }
.auth-card { width: min(440px, 100%); padding: clamp(28px, 5vw, 40px); border-radius: var(--radius-xl); background: #fff; box-shadow: 0 40px 80px -30px rgba(0,0,0,.6); animation: windowIn .8s var(--ease) both; display: grid; gap: 16px; }
.auth-card h1 { font-size: 1.8rem; margin-top: 10px; }
.auth-card .muted { margin-top: -10px; }
.auth-card form { display: grid; gap: 16px; }
.auth-card .back { justify-self: center; }

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .doc-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1080px) {
  .review-layout, .dash-grid, .dash-grid + .dash-grid { grid-template-columns: 1fr; }
  .review-side { position: static; }
  .form-grid.three { grid-template-columns: repeat(2, 1fr); }
  .worker-grid.three { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
  .catalogue-layout, .profile-layout { grid-template-columns: 1fr; }
  .filters-panel, .profile-card { position: static; }
  .filter-form { grid-template-columns: 1fr 1fr; }
  .filter-form .fp-head, .filter-form .field:first-of-type, .filter-form .switch { grid-column: 1 / -1; }
  .admin-shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: var(--side-w); z-index: 120; transform: translateX(-100%); transition: transform .4s var(--ease); }
  .sidebar.open { transform: none; }
  .side-backdrop { position: fixed; inset: 0; background: rgba(18, 6, 28, .5); z-index: 110; opacity: 0; pointer-events: none; transition: opacity .3s; }
  .sidebar.open ~ .side-backdrop, body.side-open .side-backdrop { opacity: 1; pointer-events: auto; }
  .side-toggle { display: grid; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line); background: #fff; place-items: center; cursor: pointer; }
  .admin-user .who { display: none; }
  .exp-row { grid-template-columns: 1fr 1fr; }
  .exp-row .wide { grid-column: 1 / -1; }
  .exp-row .icon-btn { grid-column: 2; justify-self: end; }
  .stepper .sl { display: none; }
  .stepper li { justify-content: center; }
  .hero-stats { margin-top: 8px; }
}
@media (max-width: 640px) {
  .worker-grid.three, .form-grid.three, .stat-grid { grid-template-columns: 1fr; }
  .filter-form { grid-template-columns: 1fr; }
  .wc-actions { grid-template-columns: 1fr; }
  .pc-quick { grid-template-columns: repeat(3, 1fr); }
  .admin-search { display: none; }
  .bars { gap: 3px; height: 150px; }
  .track li { font-size: .76rem; }
  .step-nav { flex-wrap: wrap; }
  .step-nav .btn { flex: 1; }
  .step-count { width: 100%; order: -2; text-align: center; margin: 0; }
  .search-inline input[type=search] { min-width: 0; width: 100%; }
  .search-inline { width: 100%; }
  .person-head { align-items: flex-start; }
  .avatar.xl { width: 56px; height: 56px; }
  .hero-stats strong { font-size: 1.7rem; }
  .ref-box strong { font-size: 1.6rem; }
}

/* ==========================================================================
   Website editor
   ========================================================================== */
.page-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.page-card { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 16px; border: 1px solid var(--line); background: var(--bg); transition: border-color .2s, background .2s; }
.page-card:hover { border-color: var(--brand-200); background: #fff; }
.page-card .service-icon { width: 46px; height: 46px; flex: none; }
.pc-text { display: grid; min-width: 0; flex: 1; }
.pc-text strong { color: var(--ink); }
.pc-text small { color: var(--muted); font-size: .82rem; }
.pc-text small.edited { color: var(--brand-500); font-weight: 650; margin-top: 2px; }
.pc-actions { display: flex; gap: 6px; align-items: center; flex: none; }
.badge-btn { border: 0; cursor: pointer; font: inherit; font-size: .75rem; font-weight: 750; }
.badge-btn:hover { filter: brightness(.95); }
.order-btns { display: flex; gap: 4px; }
.order-btns .icon-btn { width: 34px; height: 34px; }
.order-btns .icon-btn:disabled { opacity: .35; cursor: default; }
.mega-icon.big { width: 64px; height: 64px; border-radius: 18px; }
.mega-icon.big .icon { width: 30px; height: 30px; }

.editor { display: grid; gap: 22px; }
.editor .panel > .field + .repeater, .editor .panel > .field + .form-grid { margin-top: 16px; }
.editor .panel > .field { max-width: 720px; }
.save-bar { position: sticky; bottom: 0; z-index: 30; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 20px; border-radius: 18px; background: rgba(255,255,255,.92); backdrop-filter: blur(10px); border: 1px solid var(--line); box-shadow: 0 -10px 30px -18px rgba(45,17,68,.35); }
.save-bar.dirty { border-color: var(--brand-300); }
.save-bar.dirty .muted::before { content: "● Unsaved changes · "; color: #d97706; font-weight: 750; }
.suffix-input { display: flex; align-items: stretch; border: 1.5px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--bg); }
.suffix-input input { border: 0 !important; border-radius: 0 !important; flex: 1; min-width: 0; box-shadow: none !important; }
.suffix-input span { display: grid; place-items: center; padding: 0 12px; background: #f0ebf5; color: var(--muted); font-weight: 650; font-size: .88rem; white-space: nowrap; }
.suffix-input:focus-within { border-color: var(--brand-400); box-shadow: 0 0 0 4px var(--brand-100); }
.color-input { height: 46px; padding: 4px !important; cursor: pointer; }
.icon-pick { position: relative; display: flex; align-items: center; }
.icon-pick img { position: absolute; left: 10px; width: 22px; height: 22px; pointer-events: none; }
.icon-pick input { padding-left: 40px !important; width: 100%; }

.repeater { margin-top: 16px; padding: 16px; border-radius: 16px; background: var(--bg); border: 1px solid var(--line); }
.rep-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.rep-head strong { color: var(--ink); font-size: .95rem; }
.rep-head small { color: var(--muted); }
.rep-rows { display: grid; gap: 10px; margin-bottom: 12px; }
.rep-row { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: start; padding: 14px; border-radius: 14px; background: #fff; border: 1px solid var(--line); animation: panelIn .35s var(--ease) both; }
.rep-row.flash { animation: repFlash .6s var(--ease); }
@keyframes repFlash { from { box-shadow: 0 0 0 3px var(--brand-300); } to { box-shadow: 0 0 0 0 transparent; } }
.rep-handle { color: #c9bfd4; padding-top: 26px; }
.rep-handle .icon { width: 18px; height: 18px; }
.rep-fields { display: grid; gap: 10px; min-width: 0; }
.rep-fields.cols-2 { grid-template-columns: 1fr 1.6fr; }
.rep-fields.cols-3 { grid-template-columns: minmax(150px, .7fr) 1fr 1.6fr; }
.rep-field { display: grid; gap: 5px; min-width: 0; }
.rep-field > span:first-child { font-size: .78rem; font-weight: 700; color: var(--muted); }
.rep-field input, .rep-field textarea { width: 100%; padding: .6em .8em; border-radius: 10px; border: 1.5px solid var(--line); background: var(--bg); font-size: .92rem; resize: vertical; }
.rep-field input:focus, .rep-field textarea:focus { outline: none; border-color: var(--brand-400); background: #fff; box-shadow: 0 0 0 3px var(--brand-100); }
.rep-tools { display: flex; flex-direction: column; gap: 4px; padding-top: 22px; }
.rep-tools .icon-btn { width: 32px; height: 32px; }
.rep-tools .icon-btn .icon { width: 15px; height: 15px; }
.sub-panel { margin-top: 14px; border: 1px solid var(--line); border-radius: 16px; padding: 0 16px; }
.sub-panel > summary { list-style: none; display: flex; align-items: center; gap: 8px; padding: 14px 0; cursor: pointer; font-weight: 750; color: var(--ink); }
.sub-panel > summary::-webkit-details-marker { display: none; }
.sub-panel > summary .chev { transition: transform .3s var(--ease); color: var(--brand-500); }
.sub-panel[open] > summary .chev { transform: rotate(180deg); }
.sub-panel[open] { padding-bottom: 16px; }
.danger-zone { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 22px; border-radius: 18px; border: 1.5px dashed #f1b8bb; background: #fffafa; }
.danger-zone strong { color: var(--bad); }
.hist-row { display: flex; align-items: center; gap: 12px; padding: 12px 6px; }
.auth-card.wide { width: min(560px, 100%); }
.req-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.req-list li { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; background: var(--bg); font-size: .9rem; }
.req-list li .icon { flex: none; margin-top: 2px; }
.req-list li.pass .icon { color: var(--ok); }
.req-list li.fail { background: var(--bad-bg); } .req-list li.fail .icon { color: var(--bad); }
.req-list li.warn .icon { color: var(--info); }
.req-list span { display: grid; }
.req-list small { color: var(--muted); }
@media (max-width: 960px) {
  .page-cards { grid-template-columns: 1fr; }
  .rep-fields.cols-2, .rep-fields.cols-3 { grid-template-columns: 1fr; }
  .rep-handle { display: none; }
  .rep-row { grid-template-columns: 1fr auto; }
  .danger-zone { flex-direction: column; align-items: flex-start; }
}
.field { align-content: start; }
