/* ============ DESIGN TOKENS ============ */
:root {
  --yellow: #FFD400;
  --yellow-600: #F2C200;
  --yellow-soft: #FFF6CC;
  --black: #111111;
  --ink: #1A1A1A;
  --ink-2: #2B2B2B;
  --muted: #6B6E76;
  --faint: #A0A3AB;
  --line: #ECEDEF;
  --line-2: #E2E4E8;
  --bg: #F6F7F9;
  --surface: #FFFFFF;
  --surface-2: #FAFBFC;
  --blue: #1A6FE0;
  --blue-soft: #E7F0FE;
  --purple: #7A39BB;
  --purple-soft: #F1E7FB;
  --amber: #B25A00;
  --amber-soft: #FFF1DA;
  --success: #117A3A;
  --shadow-sm: 0 1px 2px rgba(15,17,21,.04), 0 1px 1px rgba(15,17,21,.03);
  --shadow-md: 0 4px 18px rgba(15,17,21,.06), 0 1px 2px rgba(15,17,21,.04);
  --shadow-lg: 0 12px 32px rgba(15,17,21,.08), 0 2px 6px rgba(15,17,21,.05);
  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 18px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
.delniki-app-body {
  font-family: var(--font);
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; }
a { color: inherit; text-decoration: none; }
a:hover,
a:focus,
a:focus-visible {
  text-decoration: none;
}
ul { list-style: none; padding: 0; margin: 0; }
h1,h2,h3,h4 { margin: 0; line-height: 1.25; font-weight: 700; letter-spacing: -0.01em; }

/* ============ TOP NAV ============ */
.topnav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 12px 24px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; letter-spacing: -0.02em;
}
.brand-name { font-size: 19px; }
.brand-mark { display: inline-flex; align-items: center; flex: none; }
.brand-mark.logo-mark--image { width: auto; height: auto; max-height: 36px; }

.search {
  position: relative;
  flex: 0 1 360px;
  display: flex;
  align-items: center;
}
.search-icon { position: absolute; left: 12px; color: var(--muted); }
.search input {
  width: 100%;
  padding: 10px 14px 10px 38px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  font-size: 14px;
  outline: none;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.search input:focus {
  border-color: var(--yellow);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(255,212,0,.18);
}

.nav-items {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.nav-item {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 3px;
  min-width: 52px;
  padding: 7px 8px 9px;
  font-size: 11px;
  color: var(--muted);
  border-radius: 8px;
  position: relative;
  font-weight: 500;
  transition: color .15s, background .15s;
  text-align: center;
}
.nav-item:hover { color: var(--ink); background: var(--surface-2); }
.ni-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  font-size: 17px;
  line-height: 1;
  flex-shrink: 0;
}
.ni-ico i {
  font-size: 17px;
  line-height: 1;
  display: block;
}
.ni-ico-avatar {
  width: 24px;
  height: 24px;
}
.ni-ico-avatar .avatar.avatar-xs {
  width: 24px;
  height: 24px;
  min-width: 24px;
  font-size: 9px;
  line-height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.ni-label {
  display: block;
  line-height: 1.15;
  max-width: 76px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nav-item.active { color: var(--ink); }
.nav-item.active::after {
  content: "";
  position: absolute;
  left: 10px; right: 10px; bottom: -13px;
  height: 2px; background: var(--ink);
  border-radius: 2px;
}
.badge-dot {
  position: absolute;
  top: 2px;
  right: 4px;
  min-width: 7px;
  height: 7px;
  padding: 0;
  background: #E03A2B;
  border-radius: 50%;
  box-shadow: 0 0 0 2px #fff;
  font-size: 0;
  line-height: 0;
}
.badge-dot:not(.d-none) {
  min-width: 16px;
  height: 16px;
  font-size: 9px;
  line-height: 16px;
  color: #fff;
  font-weight: 700;
}

.mode-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 12px 7px 8px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  transition: all .2s ease;
  margin-left: 8px;
}
.mode-toggle:hover { border-color: var(--ink); }
.mode-toggle .mt-track {
  position: relative;
  display: inline-block;
  width: 34px; height: 20px;
  border-radius: 999px;
  background: #DDE0E5;
  transition: background .2s;
}
.mode-toggle .mt-thumb {
  position: absolute;
  top: 2px; left: 2px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
  transition: transform .25s cubic-bezier(.5,.1,.3,1.2);
}
.mode-toggle.on .mt-track { background: var(--yellow); }
.mode-toggle.on .mt-thumb { transform: translateX(14px); }
.mode-toggle.on { border-color: var(--yellow); background: #FFFCEC; }

.hamburger {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px;
  color: var(--ink);
}

/* ============ LAYOUT ============ */
.layout {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px;
  display: grid;
  grid-template-columns: 260px 1fr 320px;
  gap: 24px;
  align-items: start;
}
.col-left, .col-right { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 16px; }
.col-center { display: flex; flex-direction: column; gap: 16px; min-width: 0; }

/* ============ CARD ============ */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 6px;
}
.card-title { font-size: 14px; font-weight: 700; letter-spacing: -0.01em; }
.link-muted { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.link-muted:hover { color: var(--ink); }

/* ============ PROFILE CARD (боковая карточка в ленте) ============ */
.profile-card .profile-cover {
  height: 60px;
  background: linear-gradient(135deg, var(--yellow) 0%, #FFB200 60%, #FF8E0F 100%);
}

/* Шапка страницы профиля */
.profile-header-card:has(.profile-cover--empty) {
  background: linear-gradient(135deg, var(--yellow) 0%, #FFB200 60%, #FF8E0F 100%);
}
.profile-header-card:not(:has(.profile-cover--empty)) .profile-cover {
  height: 180px;
  background-size: cover;
  background-position: center;
}
.profile-header-card .profile-cover--empty {
  display: none;
}
.profile-header-card .profile-header-body {
  margin-top: 0;
  padding-top: 1rem;
  background: transparent;
}
.profile-header-card:not(:has(.profile-cover--empty)) .profile-header-body {
  margin-top: -48px;
}
.profile-body {
  padding: 0 16px 16px;
  text-align: center;
  margin-top: -28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.profile-name { font-size: 16px; margin-top: 8px; }
.profile-status { font-size: 13px; color: var(--muted); margin: 0 0 12px; }
.profile-meta { width: 100%; border-top: 1px solid var(--line); padding-top: 10px; margin-bottom: 12px; }
.pm-row {
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  padding: 4px 0;
}
.pm-row span { color: var(--muted); }
.pm-row b { color: var(--ink); }
.pm-row .level { color: var(--ink); font-weight: 600; }

/* Карточка профиля в кабинете БИЗдельника */
.biz-profile-card .profile-meta.biz-profile-stats {
  padding-top: 12px;
}
.biz-profile-card .biz-profile-stats .pm-row {
  padding-left: 4px;
  padding-right: 12px;
}
.biz-profile-card .biz-profile-stats .pm-row b {
  min-width: 1.75em;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.biz-col-left .biz-profile-card {
  margin-bottom: 0;
}

/* ============ AVATAR ============ */
.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #E7EAEF;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: 0.02em;
  flex: none;
}
.avatar-xs { width: 22px; height: 22px; font-size: 10px; }
.avatar-md { width: 40px; height: 40px; font-size: 13px; }
.avatar-lg { width: 72px; height: 72px; font-size: 22px; border: 3px solid #fff; box-shadow: var(--shadow-sm); }

.avatar-ring {
  display: inline-flex;
  border-radius: 50%;
  padding: 2px;
  line-height: 0;
}
.avatar-ring-delnik {
  background: linear-gradient(135deg, #1a6fe0, #4d9fff);
  box-shadow: 0 0 0 1px rgba(26, 111, 224, 0.35);
}
.avatar-ring-biz {
  background: linear-gradient(135deg, #ffd400, #ff9f0a);
  box-shadow: 0 0 0 1px rgba(255, 159, 10, 0.45);
}
.avatar-ring > .avatar,
.avatar-ring > img {
  border: 2px solid #fff;
}
.brand-logo-img {
  display: block;
  height: 36px;
  width: auto;
  max-width: min(240px, 42vw);
  border-radius: 8px;
  object-fit: contain;
}
.brand-name--logo { font-weight: 700; }
.a-blue { background: var(--blue-soft); color: var(--blue); }
.a-purple { background: var(--purple-soft); color: var(--purple); }
.a-amber { background: var(--amber-soft); color: var(--amber); }
.a-yellow { background: var(--yellow-soft); color: #806600; }

/* ============ CHIPS ============ */
.chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px 16px 16px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  color: var(--ink);
  font-weight: 500;
}
.chip-ghost { background: transparent; border-style: dashed; color: var(--muted); cursor: pointer; }
.chip-ghost:hover { color: var(--ink); border-color: var(--ink); }
.chip-tag { background: #F4F5F7; border-color: transparent; font-weight: 500; }
.chip-remove {
  margin-left: 4px;
  padding: 0 4px;
  border: none;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
}
.chip-remove:hover { color: var(--ink); }
.interests-card .chips { padding: 0; }

/* ============ INTERESTS / MINI ============ */
.interests-card .card-title { padding: 14px 16px 0; }
.mini-links { padding: 6px; }
.mini-link {
  display: block;
  padding: 10px 12px;
  font-size: 13px;
  color: var(--ink);
  border-radius: 8px;
  font-weight: 500;
}
.mini-link:hover { background: var(--surface-2); }

/* ============ COMPOSER ============ */
.composer { padding: 16px; }
.composer-row { display: flex; align-items: center; gap: 12px; }
.composer-input {
  flex: 1;
  text-align: left;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 11px 18px;
  color: var(--muted);
  font-size: 13.5px;
  transition: background .15s, border-color .15s;
}
.composer-input:hover { background: #fff; border-color: var(--ink); color: var(--ink); }

.composer-actions {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
  margin-top: 12px;
}
.qa {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 8px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink);
  transition: background .15s, border-color .15s, transform .15s;
  position: relative;
}
.qa:hover { background: var(--surface-2); border-color: var(--line-2); }
.qa span { font-weight: 600; }
.qa-primary {
  background: var(--yellow);
  border-color: var(--yellow);
  color: var(--black);
  box-shadow: 0 4px 12px rgba(255,212,0,.4);
  font-weight: 700;
}
.qa-primary:hover { background: var(--yellow-600); border-color: var(--yellow-600); transform: translateY(-1px); }
.qa-pulse {
  position: absolute;
  inset: -3px;
  border-radius: 12px;
  border: 2px solid var(--yellow);
  opacity: 0;
  pointer-events: none;
}
.qa-primary.attn .qa-pulse {
  animation: pulse 1.4s ease-out 2;
}
@keyframes pulse {
  0% { opacity: .9; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.18); }
}

.request-entry { overflow: hidden; }
.request-entry-main {
  display: flex;
  align-items: center;
  gap: 14px;
}
.request-entry-copy { flex: 1; min-width: 0; }
.request-entry-title {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.request-entry-sub {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 2px;
}
.request-tools {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 14px;
}
.request-tools-secondary {
  margin-top: 10px;
}
.request-killer-row {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.killer-cta {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1.5px solid rgba(255, 212, 0, 0.75);
  background: linear-gradient(135deg, #fffef8 0%, #fff4b8 52%, #ffe566 100%);
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  font: inherit;
  box-shadow: 0 6px 20px rgba(255, 196, 0, 0.18);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  animation: killer-glow 4s ease-in-out infinite;
}
.killer-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(255, 196, 0, 0.28);
}
.killer-cta-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.65);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}
.killer-cta-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.killer-cta-copy strong {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.25;
}
.killer-cta-sub {
  font-size: 12px;
  font-weight: 500;
  color: rgba(17, 17, 17, 0.62);
  line-height: 1.35;
}
.killer-cta-compact {
  border-color: rgba(255, 212, 0, 0.65) !important;
  background: #fffce8 !important;
  font-weight: 700 !important;
}
@keyframes killer-glow {
  0%, 100% { box-shadow: 0 6px 20px rgba(255, 196, 0, 0.16); }
  50% { box-shadow: 0 8px 26px rgba(255, 180, 0, 0.28); }
}
.tool-action-killer {
  display: none;
}
.interests-card {
  padding: 16px 18px;
}
.interests-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}
.interests-card-head .card-title {
  margin: 0;
}
.interests-card-chips {
  padding: 0;
  gap: 8px;
}
.ni-ico-avatar .avatar-img {
  width: 24px;
  height: 24px;
  min-width: 24px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}
.nav-item-btn {
  appearance: none;
  border: none;
  background: transparent;
  font: inherit;
  cursor: pointer;
  text-decoration: none;
}
.notifications-popover {
  position: fixed;
  z-index: 1200;
  width: min(360px, calc(100vw - 24px));
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.notifications-popover-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.notifications-popover-body {
  max-height: 320px;
  overflow-y: auto;
}
.notifications-popover-item {
  display: block;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  font-size: 13px;
  line-height: 1.35;
}
.notifications-popover-item:hover { background: var(--surface-2); }
.notifications-popover-item.unread { background: #fffce8; font-weight: 600; }
.notifications-popover-empty {
  padding: 16px 14px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}
.notifications-popover-foot {
  padding: 10px 14px 12px;
  border-top: 1px solid var(--line);
}
.delniki-main .app-page {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px;
  box-sizing: border-box;
}
.delniki-main .app-page--events,
.delniki-main .app-page--narrow {
  max-width: 720px;
}

.admin-fab {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 850;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  color: var(--ink, #111);
  border: 1px solid var(--line, #e8e8e8);
  text-decoration: none;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s, border-color 0.15s;
}
.admin-fab:hover {
  background: #fffce8;
  border-color: var(--yellow, #ffd400);
  color: var(--ink, #111);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(255, 212, 0, 0.2);
}
.admin-fab i {
  font-size: 17px;
  line-height: 1;
  color: inherit;
}
.tool-action {
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--ink);
  border-radius: 10px;
  padding: 9px 10px;
  font-size: 12.5px;
  font-weight: 650;
  transition: background .15s, border-color .15s, transform .15s;
}
.tool-action:hover {
  background: #fff;
  border-color: var(--ink);
  transform: translateY(-1px);
}
.tool-action-hot {
  background: linear-gradient(180deg, #FFF6B8 0%, var(--yellow) 100%);
  border-color: var(--yellow);
  color: var(--black);
  box-shadow: 0 8px 22px rgba(255, 212, 0, .28);
  position: relative;
}
.tool-action-hot span {
  display: inline-flex;
  margin-left: 4px;
  padding: 2px 6px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--yellow);
  font-size: 9px;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.tool-action-hot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border: 2px solid rgba(255, 212, 0, .45);
  border-radius: 14px;
  opacity: .75;
  pointer-events: none;
}
#newRequestBtn { position: relative; }
#newRequestBtn.attn .qa-pulse {
  animation: pulse 1.4s ease-out 2;
}

/* ============ SIMPLE DELNIK HOME ============ */
.simple-panel { padding: 18px; }
.simple-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 14px;
}
.simple-head h3 {
  font-size: 17px;
  margin: 0 0 4px;
  letter-spacing: -0.02em;
}
.simple-head p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  max-width: 620px;
}
.performer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.performer-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.performer-meta { flex: 1; min-width: 0; }
.performer-meta h4 {
  margin: 0 0 3px;
  font-size: 14px;
}
.performer-meta p {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 12.5px;
}
.chips.compact { padding: 0; gap: 5px; }
.steps-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.step-card {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 94px;
}
.step-card b {
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--black);
}
.step-card span {
  font-size: 13px;
  font-weight: 650;
}

/* ============ TABS ============ */
.tabs {
  display: flex;
  gap: 4px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  border: none;
  background: transparent;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  border-radius: 8px;
  white-space: nowrap;
  transition: all .15s;
}
.tab:hover { color: var(--ink); }
.tab.active { background: var(--ink); color: #fff; }

/* ============ FEED CARDS ============ */
.feed { display: flex; flex-direction: column; gap: 16px; }
.feed-card { padding: 18px; position: relative; }
.fc-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.fc-meta { flex: 1; min-width: 0; }
.fc-name { font-weight: 700; font-size: 14px; }
.fc-sub { font-size: 12px; color: var(--muted); }
.fc-body { font-size: 14px; line-height: 1.55; color: var(--ink-2); }
.fc-body p { margin: 0; }
.fc-title { font-size: 17px; margin: 4px 0 6px; }
.fc-excerpt { font-size: 13.5px; color: var(--muted); margin: 0 0 8px; }
.fc-readtime { font-size: 12px; color: var(--muted); font-weight: 500; margin-bottom: 6px; }

.fc-foot {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 4px;
}
.fc-act {
  background: transparent;
  border: none;
  font-size: 12.5px;
  color: var(--muted);
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 8px;
}
.fc-act:hover { color: var(--ink); background: var(--surface-2); }

.icon-btn {
  background: transparent;
  border: none;
  border-radius: 8px;
  width: 32px; height: 32px;
  color: var(--muted);
  font-size: 17px;
}
.icon-btn:hover { background: var(--surface-2); color: var(--ink); }

/* ============ ROLE TAGS ============ */
.role-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 2px 7px;
  border-radius: 4px;
  margin-left: 6px;
  vertical-align: middle;
  text-transform: uppercase;
}
.role-delnik { background: var(--blue-soft); color: var(--blue); }
.role-biz { background: var(--yellow); color: var(--black); }

/* ============ REQUEST-RELATED ELEMENTS ============ */
.request-card {
  border-left: 3px solid var(--yellow);
}
.rc-ribbon {
  display: inline-block;
  background: var(--yellow);
  color: var(--black);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.status-pill {
  font-size: 11px;
  font-weight: 700;
  color: var(--success);
  background: #E5F4EB;
  padding: 3px 8px;
  border-radius: 999px;
}
.rc-title { font-size: 17px; font-weight: 700; margin: 4px 0 10px; }
.rc-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.rc-desc { font-size: 13.5px; color: var(--ink-2); margin: 0 0 14px; }
.rc-actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: all .15s ease;
  white-space: nowrap;
}
.btn-sm { padding: 6px 12px; font-size: 12.5px; border-radius: 8px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
  background: #000;
  border-color: #000;
  color: #fff;
  transform: translateY(-1px);
}
.btn-outline { background: #fff; border-color: var(--line-2); color: var(--ink); }
.btn-outline:hover { border-color: var(--ink); }
.btn-yellow { background: var(--yellow); color: var(--black); border-color: var(--yellow); font-weight: 700; box-shadow: 0 2px 8px rgba(255,212,0,.35); }
.btn-yellow:hover { background: var(--yellow-600); border-color: var(--yellow-600); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--muted); }
.btn-ghost:hover { background: var(--surface-2); color: var(--ink); }
.btn-dark { background: var(--ink); color: var(--yellow); border-color: var(--ink); }
.btn-dark:hover { background: #000; }
.btn-outline-dark { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-outline-dark:hover { background: var(--ink); color: #fff; }

/* ============ MATCH BLOCK ============ */
.match-block {
  margin-top: 16px;
  padding: 14px;
  background: linear-gradient(180deg, #FFFAE6 0%, #FFFDF2 100%);
  border: 1px dashed #F0E07A;
  border-radius: 12px;
}
.match-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.match-spark {
  width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--yellow);
  border-radius: 8px;
  font-size: 16px;
}
.match-title { font-size: 13.5px; font-weight: 700; }
.match-sub { font-size: 11.5px; color: var(--muted); }
.match-list { display: flex; flex-direction: column; gap: 8px; }
.match-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  background: #fff;
  border-radius: 10px;
  border: 1px solid #F5E9A8;
}
.mi-meta { flex: 1; min-width: 0; }
.mi-name { font-size: 13px; font-weight: 700; }
.mi-sub { font-size: 11.5px; color: var(--muted); }

/* ============ BIZ CASE ============ */
.biz-case { border-top: 3px solid var(--yellow); }
.bc-ribbon {
  display: inline-block;
  background: var(--ink);
  color: var(--yellow);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.bc-stats {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 10px;
  margin-top: 14px;
}
.bc-stats > div {
  background: var(--surface-2);
  border-radius: 10px;
  padding: 10px;
  text-align: center;
}
.bc-stats b { display: block; font-size: 18px; font-weight: 800; }
.bc-stats span { font-size: 11px; color: var(--muted); }

/* ============ REC CARD ============ */
.rec-card { padding: 0; }
.rec-head {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 18px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
}
.rec-ico { font-size: 18px; }
.rec-title { font-size: 13px; font-weight: 700; }
.rec-sub { font-size: 11.5px; color: var(--muted); }
.rec-body { display: flex; align-items: center; gap: 12px; padding: 14px 18px; }
.rec-info { flex: 1; min-width: 0; }
.rec-name { font-size: 14px; font-weight: 700; }
.rec-svc { font-size: 13px; color: var(--ink-2); margin: 2px 0; }
.rec-stats { font-size: 12px; color: var(--muted); }

/* ============ RIGHT SIDE ============ */
.side-list { padding: 4px 16px 14px; display: flex; flex-direction: column; gap: 10px; }
.sl-item { display: flex; gap: 10px; align-items: flex-start; padding: 6px 0; }
.sl-ico {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: var(--surface-2);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  flex: none;
}
.sl-title { font-size: 13px; font-weight: 600; line-height: 1.3; }
.sl-sub { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.sl-item:hover { cursor: pointer; }
.sl-item:hover .sl-title { color: var(--blue); }

.people-list { gap: 12px; }
.pl-item { display: flex; align-items: center; gap: 10px; }
.pl-meta { flex: 1; min-width: 0; }
.pl-name { font-size: 13px; font-weight: 700; }
.pl-sub { font-size: 11.5px; color: var(--muted); }
.friends-card .card-head,
.biz-network-card .card-head {
  align-items: flex-start;
}
.friends-summary,
.network-summary {
  margin: 0 16px 10px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.friends-summary > div,
.network-summary > div {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 9px 8px;
  min-width: 0;
}
.friends-summary b,
.network-summary b {
  display: block;
  font-size: 15px;
  line-height: 1;
  letter-spacing: -0.02em;
}
.friends-summary span,
.network-summary span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 10.5px;
  white-space: nowrap;
}
.network-list {
  padding-top: 0;
}
.friend-row {
  padding: 7px 0;
}
.friend-row .btn {
  flex: none;
}
.friend-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 5px;
  color: var(--success);
  font-size: 10.5px;
  font-weight: 700;
  vertical-align: middle;
}
.friend-status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--success);
  box-shadow: 0 0 0 3px rgba(17,122,58,.1);
}

/* ============ BIZ WIDGET ============ */
.biz-widget {
  background: linear-gradient(180deg, #FFF9D9 0%, #FFEFA0 100%);
  border-color: #F0E07A;
  padding: 18px;
  position: relative;
}
.bw-badge {
  display: inline-block;
  background: var(--ink);
  color: var(--yellow);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.bw-title { font-size: 17px; margin-bottom: 4px; }
.bw-desc { font-size: 13px; color: var(--ink-2); margin: 0 0 12px; }
.bw-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; font-size: 12.5px; }

.side-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 11.5px;
  color: var(--muted);
  padding: 0 4px;
}
.side-footer a:hover { color: var(--ink); }

/* ============ TOAST ============ */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translate(-50%, 30px);
  background: var(--ink);
  color: #fff;
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition: all .25s cubic-bezier(.4,0,.2,1);
  z-index: 100;
  max-width: 90vw;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast.yellow { background: var(--yellow); color: var(--black); }

/* ============ MODAL (dl- prefix: не конфликтовать с Bootstrap .modal) ============ */
.dl-modal {
  position: fixed; inset: 0;
  z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.dl-modal[hidden] { display: none !important; pointer-events: none !important; }
.dl-modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(17,17,17,.5);
  backdrop-filter: blur(2px);
  animation: fade .2s ease;
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.dl-modal-panel {
  position: relative;
  background: #fff;
  border-radius: 16px;
  width: 100%;
  max-width: 520px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: pop .25s cubic-bezier(.2,.8,.3,1.1);
  pointer-events: auto;
}
.dl-modal-panel.wide { max-width: 740px; }
@keyframes pop { from { transform: translateY(10px) scale(.98); opacity: 0;} to { transform: translateY(0) scale(1); opacity: 1; } }
.dl-modal-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}
.dl-modal-head h3 { font-size: 17px; }
.dl-modal-subtitle { margin: 4px 0 0; max-width: 560px; color: var(--muted); font-size: 12.5px; }
.dl-modal-body { padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; }
.dl-modal-foot {
  display: flex; justify-content: flex-end; gap: 8px;
  padding: 14px 20px;
  border-top: 1px solid var(--line);
  background: var(--surface-2);
}

/* Bootstrap modals внутри app shell — не перекрывать страницу, пока закрыты */
.delniki-app-body .modal.fade:not(.show) {
  display: none !important;
  pointer-events: none !important;
}
.delniki-app-body .modal-backdrop:not(.show) {
  display: none !important;
  pointer-events: none !important;
}

.field { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--ink); }
.field input, .field textarea, .field select {
  font-weight: 400;
  font-size: 13.5px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--yellow);
  box-shadow: 0 0 0 3px rgba(255,212,0,.2);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hint { font-size: 12px; color: var(--muted); }

.request-window {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--surface-2);
}
.my-request-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  box-shadow: var(--shadow-sm);
}
.my-request-card.active { border-left: 3px solid var(--yellow); }
.my-request-top {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  justify-content: space-between;
}
.my-request-top h4 {
  margin: 8px 0 4px;
  font-size: 15px;
}
.my-request-top p {
  margin: 0;
  font-size: 12.5px;
  color: var(--muted);
}
.status-pill.muted {
  color: var(--muted);
  background: var(--surface-2);
}

.publish-type-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.publish-type {
  border: 1px solid var(--line);
  background: var(--surface-2);
  border-radius: 12px;
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
  font-size: 20px;
}
.publish-type span {
  font-size: 12px;
  font-weight: 700;
}
.publish-type.active,
.publish-type:hover {
  background: var(--yellow-soft);
  border-color: var(--yellow);
}

.match-panel { max-width: 560px; }
.profile-match-area {
  padding: 18px 20px 20px;
  background: var(--surface-2);
}
.profile-card-large {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.profile-match-cover {
  height: 92px;
  background: linear-gradient(135deg, var(--yellow) 0%, #FFEFA0 45%, var(--blue-soft) 100%);
}
.profile-match-body {
  padding: 0 20px 20px;
  margin-top: -38px;
  text-align: center;
}
.profile-match-body h3 {
  margin: 10px 0 4px;
  font-size: 18px;
}
.profile-match-body p {
  margin: 0 0 14px;
  font-size: 13px;
  color: var(--muted);
}
.match-score {
  display: flex;
  gap: 10px;
  align-items: center;
  text-align: left;
  background: var(--yellow-soft);
  border: 1px solid #F0E07A;
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 12px;
}
.match-score b {
  font-size: 24px;
  color: var(--black);
}
.match-score span {
  font-size: 12.5px;
  color: var(--ink-2);
}
.profile-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}
.swipe-btn {
  border-radius: 999px;
  border: 1px solid var(--line-2);
  padding: 12px 14px;
  font-weight: 800;
}
.swipe-btn.skip { background: #fff; color: var(--muted); }
.swipe-btn.connect { background: var(--yellow); border-color: var(--yellow); color: var(--black); }
.profile-queue {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.match-widget { padding-bottom: 12px; }
.match-preview { padding: 0 16px 14px; }
.match-stack {
  position: relative;
  height: 116px;
}
.stack-card {
  position: absolute;
  inset: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.stack-card.back { transform: translateY(12px) scale(.92); opacity: .45; }
.stack-card.mid { transform: translateY(6px) scale(.96); opacity: .7; }
.stack-card.front {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px;
  background: linear-gradient(180deg, #fff 0%, #FFFCED 100%);
}
.match-mini-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 10px;
}
.round-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  font-size: 20px;
  font-weight: 900;
}
.round-btn.muted { background: #fff; color: var(--muted); }
.round-btn.hot { background: var(--yellow); color: var(--black); border-color: var(--yellow); }

/* ====================== BIZ MODE ====================== */
.biz-mode { background: #FAFAF6; min-height: 100vh; }
.biz-topnav { background: var(--ink); border-bottom-color: #2a2a2a; }
.biz-topnav .brand-name { color: #fff; }
.biz-topnav .brand-accent { color: var(--yellow); }
.biz-topnav .hamburger { border-color: rgba(255,255,255,.25); color: #fff; }
.biz-topnav .mode-toggle {
  border-color: rgba(255,255,255,.22);
  background: rgba(255,255,255,.08);
  color: #fff;
}
.biz-topnav .mode-toggle .mt-track { background: rgba(255,255,255,.28); }
.biz-topnav .mode-toggle.on {
  border-color: var(--yellow);
  background: rgba(255, 212, 0, .15);
  color: #fff;
}
.biz-topnav .mode-toggle.on .mt-track { background: var(--yellow); }
.biz-topnav .mode-toggle.on .mt-thumb { background: var(--black); }

/* БИЗ-шапка: лого слева, меню по центру, переключатель справа */
.topnav-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.topnav-admin-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 44px;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid var(--border, #ecedef);
  background: var(--surface, #fff);
  color: var(--text, #111);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  flex-shrink: 0;
  transition: background 0.15s, border-color 0.15s;
}

.topnav-admin-link:hover {
  background: #fff8d6;
  border-color: var(--yellow, #ffd400);
  color: #111;
}

.biz-topnav .topnav-admin-link {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.biz-topnav .topnav-admin-link:hover {
  background: rgba(255, 212, 0, 0.22);
  border-color: var(--yellow, #ffd400);
  color: #fff;
}
.nav-inner--biz {
  gap: 14px;
}
.nav-inner--biz .brand {
  flex: 0 0 auto;
  margin-right: 4px;
}
.nav-inner--biz .biz-items {
  flex: 1 1 auto;
  margin-left: 0;
  margin-right: 0;
  justify-content: center;
  align-items: stretch;
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  flex-wrap: nowrap;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 0 4px 2px;
}
.nav-inner--biz .biz-items::-webkit-scrollbar {
  display: none;
}
.nav-inner--biz .topnav-actions {
  margin-left: auto;
}
.biz-topnav .nav-item {
  flex-shrink: 0;
  min-width: auto;
  padding: 8px 11px 12px;
  gap: 4px;
}
.biz-topnav .ni-ico {
  width: 22px;
  height: 22px;
  font-size: 18px;
  line-height: 22px;
}
.biz-topnav .ni-label {
  max-width: none;
  overflow: visible;
  text-overflow: clip;
  white-space: nowrap;
  font-size: 11.5px;
  color: inherit;
}
/* Тёмная шапка БИЗ: светлые подписи (перебивает style.css для ссылок) */
.biz-topnav a.nav-item,
.biz-topnav a.nav-item .ni-label {
  color: rgba(255, 255, 255, 0.72);
}
.biz-topnav a.nav-item:hover,
.biz-topnav a.nav-item:hover .ni-label {
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
}
.biz-topnav a.nav-item.active,
.biz-topnav a.nav-item.active .ni-label {
  color: var(--yellow);
}
.biz-topnav a.nav-item.active::after {
  background: var(--yellow);
  bottom: -12px;
  left: 8px;
  right: 8px;
}
/* Не применять светлые hover-правила обычной шапки */
.biz-topnav .nav-item:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
}
.biz-topnav .nav-item.active {
  color: var(--yellow);
}

.biz-layout {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.biz-hero {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  padding: 24px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 16px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: visible;
}
.biz-hero::before {
  content: "";
  position: absolute;
  top: -50px; right: -50px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, var(--yellow) 0%, transparent 70%);
  opacity: .25;
  pointer-events: none;
}
.bh-eyebrow { font-size: 12px; font-weight: 700; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 4px; }
.bh-title { font-size: 26px; letter-spacing: -0.02em; }
.bh-sub { font-size: 14px; color: var(--ink-2); margin: 6px 0 0; }
.bh-right { display: flex; gap: 8px; flex-wrap: wrap; }

.kpi-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.kpi-card {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  padding: 16px;
  box-shadow: var(--shadow-sm);
}
.kpi-label { font-size: 12px; color: var(--muted); font-weight: 600; }
.kpi-value { font-size: 26px; font-weight: 800; margin: 6px 0 4px; letter-spacing: -0.02em; }
.kpi-delta { font-size: 12px; font-weight: 700; padding: 2px 6px; border-radius: 4px; vertical-align: middle; }
.kpi-delta.up { background: #E5F4EB; color: var(--success); }
.kpi-meta { font-size: 13px; font-weight: 500; color: var(--muted); }
.kpi-spark {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
  line-height: 1.35;
}
.kpi-spark--accent {
  color: #8a6f00;
  font-weight: 600;
}

.biz-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 16px;
  align-items: start;
}
.biz-mode .biz-grid {
  grid-template-columns: minmax(280px, 30%) 1fr;
}
.biz-col-left,
.biz-col-right {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}
.biz-feed-card {
  grid-column: 1 / -1;
  padding-bottom: 16px;
  width: 100%;
  max-width: 604px;
  margin: 0 auto;
}
.biz-mode .biz-feed-card {
  grid-column: auto;
  max-width: none;
  margin: 0;
  width: 100%;
}
.biz-mode .biz-publish-panel {
  grid-column: auto;
  max-width: none;
  margin: 0;
  width: 100%;
}
.biz-feed-card > .card-head {
  min-height: 85px;
  align-items: flex-start;
}
.card-sub {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12.5px;
  max-width: 680px;
}
.publish-actions {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.biz-publish-panel {
  grid-column: 1 / -1;
  width: 100%;
  max-width: 604px;
  margin: 0 auto;
  padding: 16px 18px;
}
.biz-inbox-card,
.biz-services-card,
.biz-network-card,
.biz-rating-card {
  min-height: 100%;
}
.biz-mode .biz-publish-panel {
  order: 1;
  max-width: none;
  margin: 0;
}
.biz-mode .biz-inbox-card {
  order: 2;
  grid-column: 1 / 2;
}
.biz-mode .biz-services-card {
  order: 3;
  grid-column: 2 / 3;
}
.biz-mode .biz-rating-card {
  order: 5;
  grid-column: 2 / 3;
}
.biz-mode .biz-network-card {
  order: 4;
  grid-column: 1 / 2;
}
.biz-mode .biz-feed-card {
  order: 6;
  max-width: none;
  margin: 0;
}
.biz-mode .biz-feed {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}
.biz-publish-menu { position: relative; display: inline-block; }
.biz-publish-menu summary { list-style: none; cursor: pointer; }
.biz-publish-menu summary::-webkit-details-marker { display: none; }
.biz-publish-panel.card {
  overflow: visible;
}
.biz-composer-input.biz-publish {
  flex: 1;
  min-width: 0;
  width: 100%;
  text-align: left;
  cursor: pointer;
  font: inherit;
}
.biz-publish-dropdown--hero {
  left: 0;
  right: auto;
}
.biz-publish-modal-panel { max-width: 480px; }
.biz-publish-modal-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 4px 0 12px;
}
.biz-publish-modal-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.biz-publish-modal-item:hover {
  background: #fffce8;
  border-color: var(--yellow);
  box-shadow: var(--shadow-sm);
  color: var(--ink);
}
.biz-publish-modal-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  background: var(--surface-2);
  border-radius: 10px;
}
.biz-publish-modal-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.biz-publish-modal-label {
  font-weight: 700;
  font-size: 14px;
  line-height: 1.3;
}
.biz-publish-modal-desc {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  line-height: 1.35;
}
.biz-publish-modal-arrow {
  flex-shrink: 0;
  color: var(--muted);
  font-size: 1.1rem;
  font-weight: 600;
}
.biz-publish-modal-item:hover .biz-publish-modal-arrow {
  color: var(--ink);
}
.biz-publish-dropdown {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 40;
  min-width: 180px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  padding: 6px;
}
.biz-publish-menu[open] .biz-publish-dropdown { display: flex; flex-direction: column; }
.biz-publish-dropdown a {
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
}
.biz-publish-dropdown a:hover { background: var(--surface-2); }
.my-jobs-list {
  list-style: none;
  margin: 0;
  padding: 0 18px 16px;
  max-height: 280px;
  overflow-y: auto;
}
.my-jobs-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.my-jobs-list li:last-child { border-bottom: none; }
.biz-mode .scroll-feed {
  height: min(620px, calc(100vh - 280px));
  max-height: min(620px, calc(100vh - 280px));
}
.publish-actions-panel {
  justify-content: flex-start;
  padding-left: 52px;
  margin-top: 10px;
}
.biz-composer {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0;
}
.biz-composer-input {
  flex: 1;
  border: 1px solid var(--line);
  background: var(--surface-2);
  border-radius: 999px;
  padding: 12px 18px;
  text-align: left;
  color: var(--muted);
  font-weight: 600;
  appearance: none;
}
button.biz-composer-input {
  display: block;
  width: 100%;
  cursor: pointer;
  font: inherit;
  font-size: inherit;
}
.biz-composer-input:hover {
  background: #fff;
  color: var(--ink);
  border-color: var(--ink);
}
.biz-feed {
  padding: 0 18px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}
.scroll-feed {
  height: 430px;
  max-height: 430px;
  overflow-y: auto;
  padding-right: 10px;
  scroll-behavior: smooth;
}
.scroll-feed::-webkit-scrollbar { width: 8px; }
.scroll-feed::-webkit-scrollbar-track { background: var(--surface-2); border-radius: 999px; }
.scroll-feed::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 999px; }
.scroll-feed::-webkit-scrollbar-thumb:hover { background: var(--muted); }
.delnik-feed-card {
  padding-bottom: 16px;
}
.biz-feed-item {
  grid-column: 1 / -1;
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  box-shadow: none;
}
.event-item {
  background: linear-gradient(180deg, #FFF9D9 0%, #fff 58%);
}
.biz-card { padding: 6px 0; }
.biz-card .card-head { padding: 16px 18px 10px; }

/* Inbox */
.seg { display: inline-flex; background: var(--surface-2); border-radius: 8px; padding: 3px; }
.seg-btn {
  border: none; background: transparent;
  font-size: 12px; font-weight: 600; color: var(--muted);
  padding: 5px 10px; border-radius: 6px;
}
.seg-btn.active { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }

.inbox-list {
  padding: 0 6px 8px;
  display: flex;
  flex-direction: column;
  max-height: 420px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.inbox-list--cards {
  padding: 0 12px 14px;
  gap: 10px;
  list-style: none;
  margin: 0;
}
.inbox-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.inbox-card:hover {
  border-color: rgba(255, 212, 0, 0.65);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}
.inbox-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
  min-width: 0;
}
.inbox-card-title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 6px;
}
.inbox-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 8px;
}
.inbox-card-dot { opacity: 0.5; }
.inbox-card-tag { margin-top: 2px; }
.inbox-card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.inbox-card-actions .btn {
  justify-content: center;
  width: 100%;
}
.biz-inbox-card .card-head {
  flex-wrap: wrap;
  gap: 10px;
}
.biz-inbox-card .seg {
  flex-shrink: 0;
}
.people-list .avatar-img {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 50%;
  object-fit: cover;
}
.biz-composer .avatar-img {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 50%;
  object-fit: cover;
}
.my-jobs-list {
  max-height: 320px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.inbox-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 10px;
  transition: background .15s;
}
.inbox-item:hover { background: var(--surface-2); }
.inbox-item + .inbox-item { border-top: 1px solid var(--line); }
.ii-ico {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  flex: none;
}
.ii-amber { background: var(--amber-soft); color: var(--amber); }
.ii-blue { background: var(--blue-soft); color: var(--blue); }
.ii-purple { background: var(--purple-soft); color: var(--purple); }
.ii-meta { flex: 1; min-width: 0; }
.ii-title { font-size: 14px; font-weight: 700; }
.ii-sub { font-size: 12px; color: var(--muted); margin: 2px 0 6px; }
.ii-tags { display: flex; gap: 4px; flex-wrap: wrap; }
.ii-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding: 0 16px 16px;
}
.svc-card {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
}
.svc-img {
  width: 100%;
  height: 70px;
  background: var(--yellow-soft);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
  margin-bottom: 10px;
}
.svc-img-2 { background: var(--blue-soft); }
.svc-title { font-size: 13.5px; font-weight: 700; }
.svc-meta { font-size: 12px; color: var(--muted); margin: 2px 0 8px; }
.svc-foot { display: flex; justify-content: space-between; align-items: center; }
.svc-empty {
  background: transparent;
  border: 1.5px dashed var(--line-2);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  min-height: 170px;
  cursor: pointer;
}
.svc-empty:hover { border-color: var(--ink); background: var(--surface-2); }
.svc-plus {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--yellow);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  margin-bottom: 8px;
  color: var(--black);
  font-weight: 700;
}

/* Ratings */
.rating-block {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 16px;
  padding: 6px 18px 14px;
  align-items: center;
}
.rb-num { font-size: 38px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.rb-stars { color: var(--yellow); font-size: 15px; letter-spacing: 0.05em; margin-top: 2px; }
.rb-count { font-size: 11px; color: var(--muted); margin-top: 4px; }
.rb-bars { display: flex; flex-direction: column; gap: 4px; }
.rb-row { display: grid; grid-template-columns: 22px 1fr 22px; gap: 8px; align-items: center; font-size: 11px; color: var(--muted); }
.bar { height: 6px; background: var(--surface-2); border-radius: 999px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--yellow); border-radius: 999px; }

.review {
  display: flex; gap: 12px;
  padding: 14px 18px 18px;
  border-top: 1px solid var(--line);
}
.review-body { flex: 1; }
.review-head { display: flex; align-items: center; gap: 8px; font-size: 13px; margin-bottom: 4px; }
.rv-stars { color: var(--yellow); font-size: 12px; }
.rv-date { font-size: 11px; color: var(--muted); margin-left: auto; }
.review p { margin: 0; font-size: 13px; color: var(--ink-2); }

/* App overrides */
.delniki-main { min-height: 0; }
.delniki-main > .container,
.delniki-main > .container-fluid,
.delniki-main > .row,
.delniki-main > .linkedin-chat-container {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}
.delniki-main > .container,
.delniki-main > .container-fluid,
.delniki-main > .row {
  padding-left: 24px;
  padding-right: 24px;
}
.delniki-main > .row,
.delniki-main > .linkedin-chat-container {
  padding-top: 16px;
  padding-bottom: 24px;
}
.delniki-app-body .delniki-main .card {
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.delniki-page-wrap,
.delniki-main > .profile-page {
  max-width: 1280px;
  margin: 0 auto;
  padding: 20px 24px 32px;
}
.delniki-main > #msg-flash {
  max-width: 1280px;
  margin: 12px auto 0;
  padding: 10px 16px;
  border-radius: 10px;
}
.biz-mode .delniki-main > #msg-flash {
  margin-left: auto;
  margin-right: auto;
}
.mode-toggle-form { display: inline-flex; margin: 0; padding: 0; border: 0; background: transparent; }
.chip.chip-active { background: var(--yellow-soft); border-color: var(--yellow); font-weight: 700; }
.delnik-post-body img { max-width: 100%; height: auto; border-radius: 8px; }
.nav-items.open {
  display: flex !important;
  flex-direction: column;
  position: absolute;
  top: 100%;
  right: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px;
  box-shadow: var(--shadow-lg);
  z-index: 100;
  min-width: 200px;
}
.topnav { position: relative; }

/* ====================== RESPONSIVE ====================== */
@media (max-width: 1100px) {
  .layout { grid-template-columns: 240px 1fr; }
  .col-right { display: none; }
  .biz-grid { grid-template-columns: 1fr; }
  .biz-mode .biz-inbox-card,
  .biz-mode .biz-services-card,
  .biz-mode .biz-network-card,
  .biz-mode .biz-rating-card,
  .biz-mode .biz-feed-card {
    grid-column: 1 / -1;
  }
  .kpi-row { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 900px) {
  .topnav:not(.biz-topnav) .nav-items { display: none; }
  .topnav:not(.biz-topnav) .hamburger { display: inline-flex; }
  .biz-topnav .biz-items {
    display: flex;
    justify-content: flex-start;
    flex: 1 1 auto;
  }
  .biz-topnav .hamburger { display: none; }
  .search { flex: 1; }
  .topnav:not(.biz-topnav) .mode-toggle .mt-label { display: none; }
  .topnav:not(.biz-topnav) .mode-toggle { padding: 7px; }
  .biz-topnav .mode-toggle .mt-label { font-size: 11px; }
  .layout { grid-template-columns: 1fr; padding: 16px; }
  .col-left, .col-right { position: static; }
  .col-left { order: 2; }
  .col-center { order: 1; }
  .col-right { display: flex; order: 3; }
  .composer-actions { grid-template-columns: repeat(3, 1fr); }
  .request-entry-main { align-items: flex-start; flex-wrap: wrap; }
  .request-tools { grid-template-columns: repeat(2, 1fr); }
  .simple-head { flex-direction: column; }
  .steps-row { grid-template-columns: repeat(2, 1fr); }
  .biz-layout { padding: 16px; }
  .biz-hero { flex-direction: column; align-items: flex-start; }
  .kpi-row { grid-template-columns: repeat(2,1fr); gap: 10px; }
  .biz-feed,
  .biz-mode .biz-feed { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .rating-block { grid-template-columns: 1fr; }
  .rb-score { text-align: center; }
  .inbox-item { flex-wrap: wrap; }
  .ii-actions { width: 100%; justify-content: flex-start; padding-left: 52px; }
  .nav-inner { padding: 10px 16px; gap: 10px; }
  .brand-name { font-size: 17px; }
}
@media (max-width: 520px) {
  .composer-actions { grid-template-columns: repeat(2, 1fr); }
  .request-tools { grid-template-columns: 1fr; }
  #newRequestBtn { width: 100%; }
  .performer-card { align-items: flex-start; flex-wrap: wrap; }
  .performer-card .btn { width: 100%; }
  .steps-row { grid-template-columns: 1fr; }
  .publish-type-grid { grid-template-columns: repeat(2, 1fr); }
  .field-row { grid-template-columns: 1fr; }
  .my-request-top { flex-direction: column; }
  .kpi-row { grid-template-columns: 1fr; }
  .rc-actions { flex-direction: column; }
  .rc-actions .btn { width: 100%; }
}
