/* ============================================================
   КРУЖОК — Админка для бизнес-партнёров
   Использует токены из ../styles.css (--coral, --ink, шрифты и т.д.)
   ============================================================ */

:root { --a-head-h: 70px; --a-maxw: 1120px; }

body { background: var(--bg); }

/* ---------- утилиты ---------- */
.a-wrap { width: 100%; max-width: var(--a-maxw); margin-inline: auto; padding-inline: clamp(18px, 4vw, 40px); }
.a-mono { font-family: 'JetBrains Mono', monospace; }
.hidden { display: none !important; }

/* ============================================================ ХЕДЕР */
.a-head {
  position: sticky; top: 0; z-index: 80;
  background: rgba(251,246,240,.88);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.a-head-inner { display: flex; align-items: center; gap: 16px; height: var(--a-head-h); }
.a-logo { display: inline-flex; align-items: center; gap: 11px; font-weight: 800; font-size: 21px; letter-spacing: -.03em; flex: none; }
.a-logo-sub { font-family: 'JetBrains Mono', monospace; font-size: 10.5px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); background: var(--coral-tint); padding: 3px 7px; border-radius: 6px; }
.a-logo .logo-mark { width: 32px; height: 32px; }

.a-nav { display: flex; align-items: center; gap: 2px; margin-left: 4px; overflow-x: auto; scrollbar-width: none; }
.a-nav::-webkit-scrollbar { display: none; }
.a-nav a { font-size: 15px; font-weight: 600; color: var(--ink-2); padding: 9px 12px; border-radius: var(--r-pill); white-space: nowrap; transition: background .18s, color .18s; cursor: pointer; }
.a-nav a:hover { background: var(--bg-2); color: var(--ink); }
.a-nav a.active { background: var(--ink); color: #fff; }
.a-nav a { position: relative; }
.nav-dot { position: absolute; top: 5px; right: 6px; width: 8px; height: 8px; border-radius: 50%; background: #EF3B3B; box-shadow: 0 0 0 2px var(--card); }
.a-nav a.active .nav-dot { box-shadow: 0 0 0 2px var(--ink); }
.a-menu button { position: relative; }
.menu-dot { width: 8px; height: 8px; border-radius: 50%; background: #EF3B3B; margin-left: auto; flex: none; }

.a-head-right { margin-left: auto; position: relative; flex: none; }
.a-profile { display: inline-flex; align-items: center; gap: 10px; padding: 6px 10px 6px 6px; border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--card); transition: border-color .18s; cursor: pointer; }
.a-profile:hover { border-color: var(--line-2); }
.a-ava { width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg,#FF8A5C,#F2542C); color:#fff; display: grid; place-items: center; font-weight: 800; font-size: 14px; flex: none; }
.a-profile .a-pname { font-weight: 600; font-size: 14.5px; max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.a-profile .a-caret { width: 15px; height: 15px; color: var(--muted); }
.a-menu { position: absolute; top: calc(100% + 8px); right: 0; min-width: 200px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 7px; opacity: 0; visibility: hidden; transform: translateY(-6px); transition: all .18s; }
.a-menu.open { opacity: 1; visibility: visible; transform: none; }
.a-menu button { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 10px 12px; border-radius: 10px; font-size: 14.5px; font-weight: 500; color: var(--ink-2); transition: background .15s; }
.a-menu button:hover { background: var(--bg-2); color: var(--ink); }
.a-menu button svg { width: 16px; height: 16px; }
.a-menu .sep { height: 1px; background: var(--line); margin: 6px 4px; }
@media (max-width: 1040px) { .a-profile .a-pname { display: none; } .a-logo-sub { display: none; } }

.burger-btn {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  color: var(--ink);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  border-radius: var(--r);
  transition: background 0.18s, color 0.18s;
  flex: none;
}
.burger-btn:hover {
  background: var(--bg-2);
}
.burger-btn svg {
  width: 24px;
  height: 24px;
  stroke-width: 2.5;
}

/* Mobile Drawer Overlay and Content Layout */
.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s var(--ease);
}
.mobile-drawer.open {
  opacity: 1;
  pointer-events: auto;
}
.md-overlay {
  position: absolute;
  inset: 0;
  background: rgba(29, 25, 22, 0.4);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}
.md-content {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 290px;
  max-width: 85vw;
  background: var(--bg);
  box-shadow: 6px 0 30px rgba(0, 0, 0, 0.12);
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1;
}
.mobile-drawer.open .md-content {
  transform: translateX(0);
}
.md-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  height: var(--a-head-h);
  border-bottom: 1px solid var(--line);
  background: var(--card);
}
.md-close {
  background: none;
  border: none;
  padding: 8px;
  color: var(--muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r);
  transition: background 0.18s, color 0.18s;
}
.md-close:hover {
  background: var(--bg-2);
  color: var(--ink);
}
.md-close svg {
  width: 22px;
  height: 22px;
}
.md-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px 16px;
  overflow-y: auto;
}
.md-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 15.5px;
  font-weight: 700;
  color: var(--ink-2);
  padding: 12px 16px;
  border-radius: 12px;
  transition: background 0.15s, color 0.15s;
  cursor: pointer;
  position: relative;
}
.md-nav a:hover {
  background: var(--bg-2);
  color: var(--ink);
}
.md-nav a.active {
  background: var(--ink);
  color: #fff;
}
.md-nav a .nav-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #EF3B3B;
  position: relative;
  top: 0;
  right: 0;
  box-shadow: none;
  margin-left: 8px;
}

/* ============================================================ КОНТЕНТ */
.a-main { padding-block: clamp(28px, 4vw, 48px) 90px; min-height: calc(100vh - var(--a-head-h)); }
.a-page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 30px; }
.a-page-head h1 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 800; letter-spacing: -.03em; line-height: 1.05; }
.a-page-head .sub { color: var(--muted); font-size: 16px; margin-top: 6px; }
.a-crumb { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 600; color: var(--muted); margin-bottom: 14px; cursor: pointer; transition: color .18s; }
.a-crumb:hover { color: var(--ink); }
.a-crumb svg { width: 16px; height: 16px; }

.a-section-title { font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-family: 'JetBrains Mono', monospace; margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.a-section-title .count { background: var(--coral-tint); color: var(--coral-700); border-radius: var(--r-pill); padding: 1px 9px; font-size: 11px; letter-spacing: .02em; }

.a-block { margin-bottom: 44px; }

/* ============================================================ ГОРЯЩЕЕ ПРЕДЛОЖЕНИЕ блок */
.king-board {
  background: var(--ink-bg); color: #F4ECE3; border-radius: var(--r-lg);
  padding: clamp(16px, 2vw, 22px); position: relative; overflow: hidden; margin-bottom: 32px;
}
.king-board::before { content:""; position:absolute; inset:0; background: radial-gradient(50% 70% at 88% 0%, rgba(255,178,62,.22), transparent 60%); pointer-events: none; }
.kb-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; position: relative; }
.kb-crown { width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg, #FFC65C, #FF7A2C); color: #2A1E0E; display: grid; place-items: center; flex: none; box-shadow: 0 5px 14px rgba(255,158,44,.35); }
.kb-crown svg { width: 19px; height: 19px; }
.kb-head h2 { font-size: 18px; font-weight: 800; color: #fff; letter-spacing: -.02em; }
.kb-head .kb-tag { font-family:'JetBrains Mono',monospace; font-size: 10.5px; font-weight: 600; letter-spacing: .06em; color: var(--amber); background: rgba(255,178,62,.14); padding: 4px 10px; border-radius: var(--r-pill); margin-left: auto; }

.kb-body { position: relative; }
/* пред-запуск */
.kb-prelaunch { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.kb-prelaunch p { color: #D8CCBF; font-size: 14.5px; line-height: 1.45; max-width: 640px; flex: 1; min-width: 240px; }
.kb-prelaunch p b { color: #fff; }
.kb-demo-toggle { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--amber); background: rgba(255,255,255,.06); border: 1px solid rgba(255,178,62,.3); padding: 9px 14px; border-radius: var(--r-pill); cursor: pointer; transition: background .18s; white-space: nowrap; }
.kb-demo-toggle:hover { background: rgba(255,255,255,.12); }
.kb-demo-toggle svg { width: 15px; height: 15px; }

/* демо-режим: занято / свободно */
.kb-demo-note { display:inline-flex; align-items:center; gap:7px; font-size: 12px; color: #9C8F82; margin-top: 14px; cursor: pointer; }
.kb-demo-note:hover { color: #C9BCAE; }
.kb-demo-note svg { width: 13px; height: 13px; }

.kb-empty { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.kb-empty p { color: #D8CCBF; font-size: 14.5px; max-width: 520px; }
.kb-empty p b { color: #fff; }

.kb-occupied { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.kb-occ-ava { width: 46px; height: 46px; border-radius: 13px; background: linear-gradient(135deg,#FF8A5C,#F2542C); color:#fff; display:grid; place-items:center; font-weight: 800; font-size: 18px; flex: none; }
.kb-occ-info { flex: 1; min-width: 180px; }
.kb-occ-name { font-size: 16.5px; font-weight: 800; color: #fff; display: flex; align-items: center; gap: 9px; }
.kb-occ-name .mine { font-family:'JetBrains Mono',monospace; font-size: 10px; font-weight: 600; letter-spacing:.05em; background: var(--coral); color:#fff; padding: 3px 9px; border-radius: var(--r-pill); }
.kb-occ-sub { color: #9C8F82; font-size: 13px; margin-top: 3px; }
.kb-timer-wrap { text-align: right; }
.kb-timer-lab { font-size: 11px; color: #9C8F82; font-family:'JetBrains Mono',monospace; letter-spacing: .08em; text-transform: uppercase; }
.kb-timer { font-family:'JetBrains Mono',monospace; font-weight: 600; font-size: clamp(24px, 3vw, 30px); color: var(--amber); letter-spacing: .02em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.kb-price-btn { white-space: nowrap; }
@media (max-width: 620px) { .kb-timer-wrap { text-align: left; width: 100%; } }

/* ============================================================ МЕТРИКИ */
.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 880px) { .kpi-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .kpi-grid { grid-template-columns: 1fr; } }
.kpi-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; box-shadow: var(--shadow-sm); }
.kpi-card .kc-ico { width: 44px; height: 44px; border-radius: 12px; background: var(--coral-tint); color: var(--coral-700); display: grid; place-items: center; margin-bottom: 16px; }
.kpi-card .kc-ico svg { width: 21px; height: 21px; }
.kpi-card .kc-num { font-size: 40px; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.kpi-card .kc-lab { font-size: 15px; font-weight: 600; color: var(--ink-2); margin-top: 10px; }
.kpi-card .kc-note { font-size: 12.5px; color: var(--muted); margin-top: 6px; line-height: 1.4; }

/* ============================================================ СПИСОК ТОЧЕК */
.points-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
@media (max-width: 760px) { .points-grid { grid-template-columns: 1fr; } }
.point-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; box-shadow: var(--shadow-sm); transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .2s; display: flex; flex-direction: column; }
.point-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-2); }
.point-card .pc-top { display: flex; gap: 14px; align-items: flex-start; }
.point-card .pc-thumb { width: 60px; height: 60px; border-radius: 13px; flex: none; object-fit: cover; background: var(--coral-tint); display: grid; place-items: center; color: var(--coral-700); }
.point-card .pc-thumb svg { width: 24px; height: 24px; }
.point-card .pc-addr { font-weight: 700; font-size: 17px; letter-spacing: -.01em; }
.point-card .pc-meta { font-size: 14px; color: var(--muted); margin-top: 5px; display: flex; flex-direction: column; gap: 3px; }
.point-card .pc-meta span { display: inline-flex; align-items: center; gap: 7px; }
.point-card .pc-meta svg { width: 14px; height: 14px; color: var(--ink-2); flex: none; }
.point-card .pc-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.point-card-link { cursor: pointer; }
.point-card .pc-services { font-size: 13.5px; color: var(--ink-2); font-weight: 600; }
.point-card .pc-services b { color: var(--coral-700); }
.btn-sm { padding: 9px 16px; font-size: 14px; }
.btn .danger-text, .danger-text { color: #D03318; }
.btn-ghost.danger-text:hover { border-color: #E0432A; color: #D03318; background: #FFF4F1; }

/* добавить точку — карточка-кнопка */
.add-card { border: 1.5px dashed var(--line-2); background: transparent; border-radius: var(--r-lg); padding: 22px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: var(--coral-700); font-weight: 600; font-size: 16px; cursor: pointer; min-height: 160px; transition: border-color .2s, background .2s; }
.add-card:hover { border-color: var(--coral); background: var(--coral-tint-2); }
.add-card .ac-plus { width: 48px; height: 48px; border-radius: 50%; background: var(--coral-tint); color: var(--coral-700); display: grid; place-items: center; }
.add-card .ac-plus svg { width: 24px; height: 24px; }

/* ============================================================ ФОРМЫ (доп. к styles.css .field) */
.a-form-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(24px, 3vw, 38px); box-shadow: var(--shadow-sm); max-width: 760px; }
.a-form-card.wide { max-width: 100%; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 22px; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field.col-2 { grid-column: 1 / -1; }
.field textarea { width: 100%; padding: 14px 16px; border: 1.5px solid var(--line-2); border-radius: 13px; background: var(--bg); font-size: 16px; resize: vertical; min-height: 110px; transition: border-color .2s, box-shadow .2s, background .2s; font-family: inherit; }
.field textarea:focus { outline: none; border-color: var(--coral); background: #fff; box-shadow: 0 0 0 4px var(--coral-tint); }
.field .hint { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.field .opt { font-weight: 400; color: var(--muted); font-size: 12px; }
.form-actions { display: flex; gap: 12px; align-items: center; margin-top: 26px; flex-wrap: wrap; }

/* загрузка логотипа (один) */
.upload-logo { display: flex; align-items: center; gap: 16px; }
.upload-logo .ul-preview { width: 76px; height: 76px; border-radius: 16px; border: 1.5px solid var(--line-2); background: var(--bg-2); object-fit: cover; display: grid; place-items: center; color: var(--muted); flex: none; overflow: hidden; }
.upload-logo .ul-preview svg { width: 26px; height: 26px; }
.upload-logo .ul-preview img { width: 100%; height: 100%; object-fit: cover; }

/* загрузка нескольких фото */
.photo-grid { display: flex; flex-wrap: wrap; gap: 12px; }
.photo-thumb { width: 96px; height: 96px; border-radius: 13px; overflow: hidden; position: relative; border: 1px solid var(--line); }
.photo-thumb img { width: 100%; height: 100%; object-fit: cover; }
.photo-thumb .ph-del { position: absolute; top: 5px; right: 5px; width: 24px; height: 24px; border-radius: 50%; background: rgba(33,27,22,.7); color: #fff; display: grid; place-items: center; cursor: pointer; backdrop-filter: blur(4px); }
.photo-thumb .ph-del svg { width: 13px; height: 13px; }
.photo-add { width: 96px; height: 96px; border-radius: 13px; border: 1.5px dashed var(--line-2); display: grid; place-items: center; cursor: pointer; color: var(--coral-700); transition: border-color .2s, background .2s; }
.photo-add:hover { border-color: var(--coral); background: var(--coral-tint-2); }
.photo-add svg { width: 24px; height: 24px; }
.upload-input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

/* основное фото (шапка профиля) */
.uc-preview { width: 100%; aspect-ratio: 16 / 5; border-radius: 16px; border: 1.5px solid var(--line-2); background: var(--bg-2); overflow: hidden; display: grid; place-items: center; }
.uc-preview.has { border-style: solid; }
.uc-preview img { width: 100%; height: 100%; object-fit: cover; }
.uc-preview .uc-ph { display: flex; flex-direction: column; align-items: center; gap: 9px; color: var(--muted); font-size: 13.5px; text-align: center; padding: 0 24px; }
.uc-preview .uc-ph svg { width: 30px; height: 30px; }
.uc-actions { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }

/* ============================================================ УСЛУГИ */
.service-list { display: flex; flex-direction: column; gap: 12px; }
.service-row { display: flex; align-items: center; gap: 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; box-shadow: var(--shadow-sm); }
.service-row .sr-img { width: 52px; height: 52px; border-radius: 11px; object-fit: cover; flex: none; background: var(--coral-tint); display: grid; place-items: center; color: var(--coral-700); overflow: hidden; }
.service-row .sr-img svg { width: 22px; height: 22px; }
.service-row .sr-img img { width: 100%; height: 100%; object-fit: cover; }
.service-row .sr-name { font-weight: 700; font-size: 16.5px; }
.service-row .sr-price { color: var(--coral-700); font-weight: 700; font-size: 16px; margin-left: auto; white-space: nowrap; }
.service-row .sr-actions { display: flex; gap: 6px; }
.service-add-tile { display: flex; align-items: center; gap: 14px; width: 100%; margin-top: 12px; padding: 14px 18px; border: 1.5px dashed var(--coral); border-radius: var(--r); background: var(--coral-tint); color: var(--coral-700); cursor: pointer; text-align: left; transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.2s ease; box-shadow: 0 4px 12px rgba(255, 107, 107, 0.15); }
.service-add-tile:hover { background: #FFE9E1; transform: translateY(-3px); box-shadow: 0 8px 20px rgba(255, 107, 107, 0.25); }
.service-add-tile .sat-ico { width: 44px; height: 44px; border-radius: 12px; flex: none; display: grid; place-items: center; background: var(--coral); color: #fff; }
.service-add-tile .sat-ico svg { width: 22px; height: 22px; }
.service-add-tile .sat-txt { display: flex; flex-direction: column; gap: 2px; }
.service-add-tile .sat-txt b { font-size: 16px; font-weight: 800; color: var(--ink); }
.service-add-tile .sat-txt i { font-style: normal; font-size: 13.5px; color: var(--ink-2); }
.service-empty { text-align: center; padding: 32px 20px; border: 1.5px dashed var(--line-2); border-radius: var(--r-lg); background: var(--bg-2); }
.service-empty .se-ico { width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 16px; display: grid; place-items: center; background: var(--coral-tint); color: var(--coral-700); }
.service-empty .se-ico svg { width: 26px; height: 26px; }
.service-empty p { color: var(--ink-2); font-size: 15px; max-width: 420px; margin: 0 auto 18px; line-height: 1.5; }
/* пикер часов работы */
.hours-picker { display: flex; flex-direction: column; gap: 12px; }
.hours-presets { display: flex; flex-wrap: wrap; gap: 8px; }
.hours-presets .chip { font-size: 13px; font-weight: 600; padding: 7px 13px; border-radius: var(--r-pill); border: 1.5px solid var(--line-2); background: var(--card); color: var(--ink-2); cursor: pointer; transition: all .15s; }
.hours-presets .chip:hover { border-color: var(--coral); color: var(--coral-700); background: var(--coral-tint); }
.hours-rows { display: flex; flex-direction: column; gap: 8px; }
.hours-row { display: flex; align-items: center; gap: 14px; padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); }
.hours-row.off { background: var(--bg-2); }
.hours-row .hr-day { display: flex; align-items: center; gap: 9px; width: 78px; flex: none; font-weight: 700; font-size: 15px; cursor: pointer; user-select: none; }
.hours-row .hr-day input { width: 18px; height: 18px; accent-color: var(--coral); cursor: pointer; }
.hours-row .hr-times { display: flex; align-items: center; gap: 8px; }
.hours-row .hr-times input[type=time] { font: inherit; font-size: 15px; padding: 7px 10px; border: 1px solid var(--line-2); border-radius: 9px; background: var(--card); color: var(--ink); }
.hours-row .hr-times input[type=time]:disabled { opacity: .4; }
.hours-row .hr-dash { color: var(--muted); }
.hours-row .hr-closed { display: none; font-size: 14px; font-weight: 600; color: var(--muted); }
.hours-row.off .hr-times input, .hours-row.off .hr-dash { display: none; }
.hours-row.off .hr-closed { display: inline; }
.hours-summary-wrap { font-size: 13.5px; color: var(--muted); padding-top: 2px; }
.hours-summary-wrap b { color: var(--ink-2); font-weight: 700; }
@media (max-width: 560px) { .hours-row { flex-wrap: wrap; gap: 8px; } .hours-row .hr-day { width: auto; } }
.icon-btn { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); display: grid; place-items: center; color: var(--ink-2); transition: all .15s; cursor: pointer; }
.icon-btn:hover { border-color: var(--line-2); color: var(--ink); background: var(--bg-2); }
.icon-btn.danger:hover { border-color: #E0432A; color: #D03318; background: #FFF4F1; }
.icon-btn svg { width: 17px; height: 17px; }

/* ============================================================ ЗАГЛУШКИ / EMPTY */
.a-empty { text-align: center; max-width: 540px; margin: clamp(30px, 6vw, 80px) auto; }
.a-empty .ae-ico { width: 84px; height: 84px; border-radius: 24px; background: var(--coral-tint); color: var(--coral-700); display: grid; place-items: center; margin: 0 auto 24px; }
.a-empty .ae-ico svg { width: 38px; height: 38px; }
.a-empty h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 800; letter-spacing: -.025em; margin-bottom: 12px; }
.a-empty p { color: var(--ink-2); font-size: 17px; line-height: 1.55; }
.a-empty .ae-soon { display: inline-flex; align-items: center; gap: 8px; font-family:'JetBrains Mono',monospace; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--coral-700); background: var(--coral-tint); padding: 7px 14px; border-radius: var(--r-pill); margin-bottom: 22px; }

/* пустой список точек */
.empty-points { text-align: center; padding: 50px 24px; border: 1.5px dashed var(--line-2); border-radius: var(--r-lg); }
.empty-points .ep-ico { width: 64px; height: 64px; border-radius: 18px; background: var(--coral-tint); color: var(--coral-700); display: grid; place-items: center; margin: 0 auto 18px; }
.empty-points .ep-ico svg { width: 30px; height: 30px; }
.empty-points h3 { font-size: 21px; font-weight: 700; margin-bottom: 8px; }
.empty-points p { color: var(--muted); font-size: 15.5px; margin-bottom: 20px; }

/* ============================================================ МОДАЛКА */
.modal-overlay { position: fixed; inset: 0; z-index: 200; background: rgba(33,27,22,.5); backdrop-filter: blur(3px); display: grid; place-items: center; padding: 20px; opacity: 0; visibility: hidden; transition: opacity .2s; }
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal { background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); width: 100%; max-width: 480px; max-height: 90vh; overflow-y: auto; transform: translateY(14px) scale(.98); transition: transform .25s var(--ease-out); }
.modal-overlay.open .modal { transform: none; }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 22px 24px 0; }
.modal-head h3 { font-size: 21px; font-weight: 800; letter-spacing: -.02em; }
.modal-body { padding: 20px 24px 24px; }
.modal-close { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: var(--muted); transition: background .15s; }
.modal-close:hover { background: var(--bg-2); color: var(--ink); }
.modal-close svg { width: 18px; height: 18px; }

/* ============================================================ ТОСТ */
.toast-host { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 300; display: flex; flex-direction: column; gap: 10px; align-items: center; pointer-events: none; }
.toast { background: var(--ink); color: #fff; padding: 13px 20px; border-radius: var(--r-pill); font-size: 14.5px; font-weight: 600; box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 10px; opacity: 0; transform: translateY(12px); transition: opacity .25s, transform .25s; }
.toast.show { opacity: 1; transform: none; }
.toast svg { width: 17px; height: 17px; color: var(--amber); }

/* ============================================================ АВТОРИЗАЦИЯ */
.auth-screen { min-height: 100vh; display: grid; grid-template-columns: 1.05fr .95fr; }
@media (max-width: 880px) { .auth-screen { grid-template-columns: 1fr; } .auth-aside { display: none; } }
.auth-aside { background: var(--ink-bg); color: #F4ECE3; padding: clamp(40px, 5vw, 72px); display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.auth-aside::before { content:""; position:absolute; inset:0; background: radial-gradient(50% 50% at 80% 15%, rgba(255,178,62,.2), transparent 60%), radial-gradient(50% 50% at 10% 90%, rgba(255,106,61,.22), transparent 60%); }
.auth-aside .aa-top { position: relative; }
.auth-aside .logo { color: #fff; font-size: 24px; }
.auth-aside .aa-head { position: relative; }
.auth-aside .aa-head h2 { font-size: clamp(28px, 3.4vw, 42px); font-weight: 800; color: #fff; letter-spacing: -.03em; line-height: 1.05; margin-bottom: 18px; }
.auth-aside .aa-head p { color: #C9BCAE; font-size: 17px; line-height: 1.55; max-width: 420px; }
.auth-aside .aa-list { position: relative; display: flex; flex-direction: column; gap: 14px; margin-top: 30px; }
.auth-aside .aa-item { display: flex; gap: 12px; align-items: center; color: #D8CCBF; font-size: 15.5px; }
.auth-aside .aa-item .aa-ck { width: 26px; height: 26px; border-radius: 8px; background: rgba(255,178,62,.16); color: var(--amber); display: grid; place-items: center; flex: none; }
.auth-aside .aa-item svg { width: 15px; height: 15px; }

/* админ-вход — холодный акцент, чтобы визуально отличался от кабинета бизнеса */
.auth-aside.admin-aside::before { background: radial-gradient(50% 50% at 80% 15%, rgba(99,132,255,.22), transparent 60%), radial-gradient(50% 50% at 10% 90%, rgba(120,86,255,.22), transparent 60%); }
.auth-aside.admin-aside .aa-item .aa-ck { background: rgba(120,140,255,.18); color: #9DB0FF; }
.admin-auth .auth-box .a-logo-sub { vertical-align: middle; }
.auth-form-side { display: grid; place-items: center; padding: clamp(28px, 5vw, 56px); }
.auth-box { width: 100%; max-width: 400px; }
.auth-box .ab-back { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 600; color: var(--muted); margin-bottom: 30px; cursor: pointer; transition: color .18s; }
.auth-box .ab-back:hover { color: var(--ink); }
.auth-box .ab-back svg { width: 16px; height: 16px; }
.auth-box h1 { font-size: 30px; font-weight: 800; letter-spacing: -.03em; margin-bottom: 8px; }
.auth-box .ab-sub { color: var(--muted); font-size: 15.5px; margin-bottom: 28px; }
.auth-tabs { display: flex; gap: 6px; background: var(--bg-2); border-radius: var(--r-pill); padding: 5px; margin-bottom: 28px; }
.auth-tabs button { flex: 1; padding: 11px; border-radius: var(--r-pill); font-weight: 600; font-size: 15px; color: var(--ink-2); transition: all .18s; }
.auth-tabs button.active { background: var(--card); color: var(--ink); box-shadow: var(--shadow-sm); }
.auth-foot { text-align: center; font-size: 13px; color: var(--muted); margin-top: 18px; }

/* ============================================================ ПАРТНЁРЫ */
.partners-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 760px) { .partners-grid { grid-template-columns: 1fr; } }
.partner-card { min-width: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; box-shadow: var(--shadow-sm); display: flex; align-items: flex-start; gap: 15px; transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .2s; }
.partner-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-2); }
.partner-card .prt-ava { width: 52px; height: 52px; border-radius: 14px; flex: none; background: linear-gradient(135deg,#FF8A5C,#F2542C); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 19px; }
.partner-card .prt-info { flex: 1; min-width: 0; }
.partner-card .prt-name { font-weight: 700; font-size: 17px; letter-spacing: -.01em; }
.partner-card .prt-cat { font-size: 13.5px; color: var(--coral-700); font-weight: 600; margin-top: 3px; }
.partner-card .prt-area { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); margin-top: 7px; }
.partner-card .prt-area svg { width: 14px; height: 14px; flex: none; }
.partner-card .prt-last { font-size: 13.5px; color: var(--ink-2); margin-top: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.partner-card .prt-chat { flex: none; align-self: center; position: relative; display: inline-flex; align-items: center; gap: 7px; padding: 9px 15px; border-radius: var(--r-pill); background: var(--coral-tint); color: var(--coral-700); font-weight: 600; font-size: 14px; transition: background .18s, color .18s; cursor: pointer; border: none; }
.partner-card .prt-chat:hover { background: var(--coral); color: #fff; }
.partner-card .prt-chat svg { width: 17px; height: 17px; }
.partner-card .prt-dot { position: absolute; top: -3px; right: -3px; width: 13px; height: 13px; border-radius: 50%; background: #EF3B3B; border: 2.5px solid var(--card); box-shadow: 0 0 0 1px rgba(239,59,59,.25); }
.partner-card-link { cursor: pointer; }
.partner-card .prt-ava { cursor: inherit; border: none; transition: transform .15s; }
.partner-card-link:hover .prt-name { color: var(--coral-700); }
.partner-card .prt-name { background: none; border: none; padding: 0; text-align: left; color: var(--ink); transition: color .18s; }
@media (max-width: 460px) { .partner-card .prt-chat span { display: none; } }

/* поиск по партнёрам */
.prt-search { display: flex; align-items: center; gap: 10px; background: var(--card); border: 1.5px solid var(--line-2); border-radius: var(--r-pill); padding: 11px 18px; margin-bottom: 20px; transition: border-color .15s, box-shadow .15s; }
.prt-search:focus-within { border-color: var(--coral); box-shadow: 0 0 0 4px var(--coral-tint); }
.prt-search svg { width: 18px; height: 18px; color: var(--muted); flex: none; }
.prt-search input { flex: 1; border: none; outline: none; background: none; font: inherit; font-size: 15px; color: var(--ink); }
.prt-empty { text-align: center; color: var(--muted); padding: 40px 0; font-size: 15px; }

/* страница партнёра */
.a-back { display: inline-flex; align-items: center; gap: 7px; background: none; border: none; cursor: pointer; color: var(--muted); font: inherit; font-size: 14px; font-weight: 600; padding: 4px 0; margin-bottom: 18px; transition: color .15s; }
.a-back:hover { color: var(--ink); }
.a-back svg { width: 17px; height: 17px; }
.pp-head { display: flex; align-items: center; gap: 18px; padding-bottom: 26px; border-bottom: 1px solid var(--line); margin-bottom: 26px; flex-wrap: wrap; }
.pp-ava { width: 72px; height: 72px; border-radius: 20px; flex: none; background: linear-gradient(135deg,#FF8A5C,#F2542C); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 27px; }
.pp-meta { flex: 1; min-width: 200px; }
.pp-meta h1 { font-size: clamp(24px, 3vw, 32px); font-weight: 800; letter-spacing: -.03em; }
.pp-cat { font-size: 14.5px; color: var(--coral-700); font-weight: 600; margin-top: 5px; }
.pp-addr { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--muted); margin-top: 8px; }
.pp-addr svg { width: 15px; height: 15px; flex: none; }
.pp-head .btn { flex: none; }
.pp-head .btn svg { width: 17px; height: 17px; }
.pp-section { margin-bottom: 30px; }
.pp-section h2 { font-size: 18px; font-weight: 800; letter-spacing: -.02em; margin-bottom: 14px; }
.pp-about { font-size: 16px; line-height: 1.6; color: var(--ink-2); max-width: 720px; }
.pp-points { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (max-width: 760px) { .pp-points { grid-template-columns: 1fr; } }
.pp-point { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; box-shadow: var(--shadow-sm); }
.pp-point-link { display: block; cursor: pointer; transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s; }
.pp-point-link:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--line-2); }
.pp-point-name { font-weight: 700; font-size: 16.5px; letter-spacing: -.01em; }
.pp-point-addr { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); margin-top: 6px; }
.pp-point-addr svg { width: 14px; height: 14px; flex: none; }
.pp-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.pp-chip { font-size: 13px; font-weight: 600; color: var(--ink-2); background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r-pill); padding: 6px 13px; }

/* фото-шапка точки: метка-наследование */
.uc-preview { position: relative; }
.uc-inherit { position: absolute; left: 12px; bottom: 12px; background: rgba(20,18,16,.72); color: #fff; font-size: 12px; font-weight: 600; padding: 5px 11px; border-radius: var(--r-pill); backdrop-filter: blur(4px); }
.pc-foot-btns { display: flex; gap: 8px; flex-wrap: wrap; }

/* ============================================================ КАРТОЧКА ТОЧКИ (публичный вид) */
.pv-hero { margin-bottom: 0; }
.pv-hero .ph-cover { aspect-ratio: 16 / 4.6; }
.pv-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; flex-wrap: wrap; padding: 22px 4px 26px; border-bottom: 1px solid var(--line); margin-bottom: 28px; }
.pv-head-main { flex: 1; min-width: 220px; }
.pv-head h1 { font-size: clamp(24px, 3vw, 34px); font-weight: 800; letter-spacing: -.03em; line-height: 1.08; }
.pv-sub { font-size: 15px; color: var(--muted); margin-top: 6px; font-weight: 600; }
.pv-rating { display: inline-flex; align-items: center; gap: 9px; margin-top: 12px; }
.pv-rating b { font-size: 16px; font-weight: 800; }
.pv-rating span { font-size: 14px; color: var(--muted); }
.pv-head .btn { flex: none; }
.pv-head .btn svg { width: 17px; height: 17px; }

.stars { display: inline-flex; gap: 2px; }
.stars .star { width: 16px; height: 16px; color: var(--line-2); display: inline-flex; }
.stars .star.on { color: #F5A623; }
.stars .star svg { width: 100%; height: 100%; }

.pv-body { display: grid; grid-template-columns: 1fr 320px; gap: 36px; align-items: start; }
@media (max-width: 880px) { .pv-body { grid-template-columns: 1fr; } }
.pv-section { margin-bottom: 34px; }
.pv-section h2 { font-size: 19px; font-weight: 800; letter-spacing: -.02em; margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.pv-count { font-size: 13px; font-weight: 700; color: var(--coral-700); background: var(--coral-tint); border-radius: var(--r-pill); padding: 2px 10px; }
.pv-about { font-size: 16px; line-height: 1.65; color: var(--ink-2); max-width: 640px; }
.pv-muted { color: var(--muted); font-size: 15px; }

.pv-services { display: flex; flex-direction: column; gap: 10px; }
.pv-service { display: flex; align-items: center; gap: 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 16px; }
.pv-srv-img { width: 46px; height: 46px; border-radius: 11px; flex: none; overflow: hidden; background: var(--bg-2); display: grid; place-items: center; color: var(--muted); }
.pv-srv-img svg { width: 20px; height: 20px; }
.pv-srv-img img { width: 100%; height: 100%; object-fit: cover; }
.pv-srv-name { flex: 1; font-weight: 600; font-size: 15.5px; }
.pv-srv-price { font-weight: 800; font-size: 15.5px; letter-spacing: -.01em; white-space: nowrap; }

.pv-rev-summary { display: flex; align-items: center; gap: 16px; padding: 18px 22px; background: var(--bg-2); border-radius: var(--r-lg); margin-bottom: 18px; }
.pv-rev-big { font-size: 40px; font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.pv-rev-count { font-size: 13.5px; color: var(--muted); margin-top: 5px; }
.pv-rev-list { display: flex; flex-direction: column; gap: 14px; }
.pv-rev { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px 20px; }
.pv-rev-head { display: flex; align-items: center; gap: 12px; }
.pv-rev-ava { width: 40px; height: 40px; border-radius: 50%; flex: none; background: linear-gradient(135deg,#FF8A5C,#F2542C); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 15px; }
.pv-rev-id { flex: 1; min-width: 0; }
.pv-rev-author { font-weight: 700; font-size: 15px; }
.pv-rev-date { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.pv-rev-text { font-size: 14.5px; line-height: 1.55; color: var(--ink-2); margin-top: 12px; }

.pv-aside { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 18px; }
.pv-owner { display: flex; align-items: center; gap: 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px 18px; box-shadow: var(--shadow-sm); transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s; cursor: pointer; }
.pv-owner:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--line-2); }
.pv-owner-logo { width: 52px; height: 52px; border-radius: 13px; flex: none; overflow: hidden; background: linear-gradient(135deg,#FF8A5C,#F2542C); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 17px; }
.pv-owner-logo img { width: 100%; height: 100%; object-fit: cover; }
.pv-owner-meta { flex: 1; min-width: 0; }
.pv-owner-label { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.pv-owner-name { font-weight: 800; font-size: 16px; letter-spacing: -.01em; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pv-owner-rating { display: inline-flex; align-items: center; gap: 7px; margin-top: 5px; }
.pv-owner-rating b { font-size: 13.5px; font-weight: 800; }
.pv-owner-rating .stars .star { width: 14px; height: 14px; }
.pv-owner-go { color: var(--muted); flex: none; display: inline-flex; }
.pv-owner-go svg { width: 20px; height: 20px; }
.pv-info-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; box-shadow: var(--shadow-sm); }
.pv-info-card h3 { font-size: 15px; font-weight: 800; letter-spacing: -.01em; margin-bottom: 16px; }
.pv-info-row { display: flex; align-items: flex-start; gap: 11px; font-size: 14.5px; color: var(--ink-2); padding: 9px 0; border-top: 1px solid var(--line); }
.pv-info-row:first-of-type { border-top: none; padding-top: 0; }
.pv-info-row svg { width: 17px; height: 17px; flex: none; color: var(--coral); margin-top: 1px; }

/* ============================================================ ЧАТ */
.chat-head { padding: 18px 22px; border-bottom: 1px solid var(--line); }
.chat-head .ch-peer { display: flex; align-items: center; gap: 12px; min-width: 0; }
.chat-head .ch-peer > div { min-width: 0; }
.chat-head .ch-ava { width: 42px; height: 42px; border-radius: 12px; flex: none; background: linear-gradient(135deg,#FF8A5C,#F2542C); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 16px; }
.chat-head .ch-name { font-size: 16.5px; font-weight: 800; letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-head .ch-status { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.chat-body { padding: 18px 22px; display: flex; flex-direction: column; gap: 12px; height: 360px; max-height: 52vh; overflow-y: auto; background: var(--bg); }
.cmsg { display: flex; flex-direction: column; max-width: 78%; }
.cmsg.me { align-self: flex-end; align-items: flex-end; }
.cmsg.them { align-self: flex-start; align-items: flex-start; }
.cmsg-bubble { padding: 11px 15px; border-radius: 16px; font-size: 14.5px; line-height: 1.4; }
.cmsg.them .cmsg-bubble { background: var(--card); border: 1px solid var(--line); border-bottom-left-radius: 5px; color: var(--ink); }
.cmsg.me .cmsg-bubble { background: var(--coral); color: #fff; border-bottom-right-radius: 5px; }
.cmsg-time { font-size: 10.5px; color: var(--muted); margin-top: 4px; padding: 0 4px; font-variant-numeric: tabular-nums; }
.chat-input { display: flex; gap: 10px; padding: 14px 22px 20px; border-top: 1px solid var(--line); background: var(--card); flex-shrink: 0; }
.chat-input input { flex: 1; padding: 12px 16px; border: 1.5px solid var(--line-2); border-radius: var(--r-pill); background: var(--bg); font-size: 15px; font-family: inherit; transition: border-color .2s, box-shadow .2s, background .2s; }
.chat-input input:focus { outline: none; border-color: var(--coral); background: #fff; box-shadow: 0 0 0 4px var(--coral-tint); }
.chat-send { width: 46px; height: 46px; flex: none; border-radius: 50%; background: var(--coral); color: #fff; display: grid; place-items: center; transition: background .18s, transform .12s; cursor: pointer; }
.chat-send:hover { background: var(--coral-700); }
.chat-send:active { transform: scale(.94); }
.chat-send svg { width: 19px; height: 19px; }
.modal-overlay.open .modal:has(.chat-body) { max-width: 460px; }

/* ============================================================ ШАПКА ПРОФИЛЯ (dashboard) */
.profile-hero { margin-bottom: 32px; }
.ph-cover { width: 100%; aspect-ratio: 16 / 4.2; border-radius: var(--r-lg); overflow: hidden; background: var(--bg-2); }
.ph-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ph-cover-empty { display: grid; place-items: center; background: linear-gradient(120deg, var(--coral-tint-2), var(--amber-tint)); }
.ph-cover-empty span { display: inline-flex; align-items: center; gap: 10px; color: #9A6510; font-size: 14px; font-weight: 600; padding: 0 24px; text-align: center; }
.ph-cover-empty svg { width: 22px; height: 22px; flex: none; }
.ph-bar { display: flex; align-items: flex-end; gap: 16px; margin-top: -32px; position: relative; padding: 0 8px; }
.ph-logo { width: 88px; height: 88px; border-radius: 22px; border: 4px solid var(--card); background: linear-gradient(135deg,#FF8A5C,#F2542C); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 32px; overflow: hidden; flex: none; box-shadow: var(--shadow-sm); }
.ph-logo img { width: 100%; height: 100%; object-fit: cover; }
.ph-info { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 14px; padding: 0 8px; }
.ph-meta { flex: 1; min-width: 180px; }
.ph-name { font-size: clamp(26px, 3vw, 36px); font-weight: 800; letter-spacing: -.03em; line-height: 1.05; }
.ph-sub { color: var(--muted); font-size: 15px; margin-top: 4px; }
.ph-info .btn { flex: none; }
@media (max-width: 560px) { .ph-info .btn { width: 100%; } }

/* ============================================================ ТАРИФ */
.tariff-card { margin-top: 22px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  background: linear-gradient(120deg, #1C1815 0%, #2A211C 60%, #3A2418 100%); color: #fff;
  border-radius: var(--r-lg); padding: 22px 26px; box-shadow: var(--shadow); }
.tc-left { display: flex; align-items: center; gap: 16px; min-width: 0; }
.tc-crown { width: 50px; height: 50px; flex: none; border-radius: 14px; background: linear-gradient(135deg,#FFB35C,#F2542C); color: #fff; display: grid; place-items: center; }
.tc-crown svg { width: 24px; height: 24px; }
.tc-label { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: rgba(255,255,255,.5); }
.tc-plan { font-size: 22px; font-weight: 800; letter-spacing: -.02em; margin-top: 3px; display: flex; align-items: center; gap: 10px; }
.tc-badge { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #FFD9A8; background: rgba(242,84,44,.22); border: 1px solid rgba(255,150,90,.35); border-radius: var(--r-pill); padding: 3px 10px; }
.tc-price { font-size: 14px; color: rgba(255,255,255,.66); margin-top: 5px; }
.tc-right { text-align: right; flex: none; padding-left: 20px; border-left: 1px solid rgba(255,255,255,.12); }
.tc-until-label { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: rgba(255,255,255,.5); }
.tc-until { font-size: 19px; font-weight: 800; letter-spacing: -.01em; margin-top: 4px; }
.tc-until span { color: rgba(255,255,255,.6); font-weight: 600; }
.tc-left-days { font-size: 13px; color: #FFD9A8; margin-top: 5px; font-weight: 600; }
@media (max-width: 560px) { .tariff-card { flex-direction: column; align-items: stretch; }
  .tc-right { text-align: left; padding-left: 0; padding-top: 16px; border-left: none; border-top: 1px solid rgba(255,255,255,.12); } }
.a-block-metrics { margin-top: 40px; }
.onb-note { font-size: 14px; color: var(--muted); background: var(--bg-2); border: 1px dashed var(--line-2); border-radius: var(--r); padding: 14px 16px; line-height: 1.5; }

/* reveal лёгкий для экранов */
.a-fade { animation: aFade .4s var(--ease-out) both; }
@keyframes aFade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .a-fade { animation: none; } }

/* ============================================================ АДМИН-ПАНЕЛЬ */
.full-center { display: grid; place-items: center; color: var(--muted); font-size: 15px; }

.adm-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 22px; }
@media (max-width: 900px) { .adm-grid2 { grid-template-columns: 1fr; } }

.adm-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; box-shadow: var(--shadow-sm); }
.adm-card-h { font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }

.adm-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 18px; }
.adm-card-top { display: flex; align-items: center; gap: 13px; }
.adm-card-top .prt-ava { width: 46px; height: 46px; border-radius: 13px; }
.adm-card-name { font-weight: 700; font-size: 17px; letter-spacing: -.01em; }
.adm-sub { font-size: 12.5px; color: var(--muted); }
.adm-desc { font-size: 14px; color: var(--ink-2); line-height: 1.5; margin: 14px 0 0; }
.adm-kvs { display: grid; gap: 7px; margin: 16px 0; }
.adm-kv { display: flex; gap: 10px; font-size: 14px; }
.adm-kv span { color: var(--muted); min-width: 130px; flex: none; }
.adm-actions { display: flex; gap: 8px; flex-wrap: wrap; padding-top: 16px; border-top: 1px solid var(--line); }

/* статус-бейджи */
.adm-badge { font-size: 12px; font-weight: 700; padding: 5px 12px; border-radius: var(--r-pill); white-space: nowrap; margin-left: auto; }
.adm-b-pending { background: var(--amber-tint); color: #9A6510; }
.adm-b-approved { background: #E3F5EC; color: #157048; }
.adm-b-rejected { background: #FDECEB; color: #B22A23; }

/* фильтры */
.adm-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.adm-pill { border: 1px solid var(--line); background: var(--card); border-radius: var(--r-pill); padding: 9px 16px; font-size: 14px; font-weight: 600; color: var(--muted); cursor: pointer; transition: all .15s; }
.adm-pill:hover { border-color: var(--line-2); color: var(--ink); }
.adm-pill.on { background: var(--ink); color: #fff; border-color: var(--ink); }

/* мини-чарт */
.adm-bar-row { margin-bottom: 14px; }
.adm-bar-lab { display: flex; align-items: center; justify-content: space-between; font-size: 13.5px; color: var(--ink-2); margin-bottom: 6px; }
.adm-bar-lab b { font-weight: 800; }
.adm-bar-track { height: 10px; background: var(--bg-2); border-radius: var(--r-pill); overflow: hidden; }
.adm-bar-track span { display: block; height: 100%; border-radius: var(--r-pill); transition: width .5s var(--ease); }

/* последние регистрации */
.adm-recent { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); }
.adm-recent:first-of-type { border-top: none; }
.adm-mini-ava { width: 38px; height: 38px; border-radius: 11px; flex: none; background: linear-gradient(135deg,#FF8A5C,#F2542C); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 14px; }
.adm-recent-name { font-weight: 700; font-size: 14.5px; }

/* таблица объявлений */
.adm-table { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.adm-tr { display: grid; grid-template-columns: 2.2fr 1.4fr 1fr 1fr auto; gap: 14px; align-items: center; padding: 14px 18px; border-top: 1px solid var(--line); font-size: 14px; }
.adm-tr:first-child { border-top: none; }
.adm-th { background: var(--bg-2); font-weight: 700; font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.adm-tr .adm-badge { margin-left: 0; }
@media (max-width: 760px) {
  .adm-th { display: none; }
  .adm-tr { grid-template-columns: 1fr; gap: 6px; }
}

/* галерея фото в карточке партнёра */
.adm-gallery { margin: 16px 0 4px; }
.adm-gallery .adm-card-h { margin-bottom: 10px; }
.adm-gallery-row { display: flex; flex-wrap: wrap; gap: 10px; }
.adm-thumb { padding: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; width: 96px; height: 96px; background: var(--bg-2); cursor: zoom-in; flex: none; transition: transform .15s, border-color .15s, box-shadow .15s; }
.adm-thumb:hover { transform: translateY(-2px); border-color: var(--coral); box-shadow: var(--shadow-sm); }
.adm-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.adm-thumb-empty { display: grid; place-items: center; color: var(--muted); cursor: default; }
.adm-thumb-empty:hover { transform: none; border-color: var(--line); box-shadow: none; }
.adm-thumb-empty svg { width: 26px; height: 26px; }
.adm-zoom { cursor: zoom-in; }

/* миниатюра в таблице объявлений */
.adm-li-main { display: flex; align-items: center; gap: 12px; min-width: 0; }
.adm-li-main .adm-thumb { width: 56px; height: 56px; border-radius: 10px; }
.adm-li-main .adm-thumb-empty svg { width: 20px; height: 20px; }

/* лайтбокс */
.lightbox { position: fixed; inset: 0; z-index: 1000; display: none; align-items: center; justify-content: center; padding: 5vh 5vw; background: rgba(20, 12, 6, .82); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); opacity: 0; transition: opacity .2s var(--ease); }
.lightbox.open { display: flex; opacity: 1; }
.lightbox img { max-width: 100%; max-height: 90vh; object-fit: contain; border-radius: 14px; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.lightbox-close { position: absolute; top: 20px; right: 24px; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-size: 30px; line-height: 1; color: #fff; background: rgba(255, 255, 255, .14); transition: background .15s; }
.lightbox-close:hover { background: rgba(255, 255, 255, .28); }

/* ============================================================ РЕГИСТРАЦИЯ — МАСТЕР */
.auth-box-wide { max-width: 480px; }
.auth-link { color: var(--coral-700); font-weight: 600; }
.auth-link:hover { text-decoration: underline; }

/* Степпер */
.reg-steps { display: flex; align-items: center; margin-bottom: 26px; }
.reg-step { display: flex; align-items: center; gap: 9px; }
.reg-step .rs-num { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 700; background: var(--bg-2); color: var(--muted); border: 1.5px solid var(--line-2); flex: none; transition: all .2s; }
.reg-step .rs-num svg { width: 15px; height: 15px; }
.reg-step .rs-lab { font-size: 13.5px; font-weight: 600; color: var(--muted); transition: color .2s; }
.reg-step.on .rs-num { background: var(--coral); border-color: var(--coral); color: #fff; box-shadow: 0 0 0 4px var(--coral-tint); }
.reg-step.on .rs-lab { color: var(--ink); }
.reg-step.done .rs-num { background: #157048; border-color: #157048; color: #fff; }
.reg-step.done .rs-lab { color: var(--ink-2); }
.reg-steps .rs-line { flex: 1; height: 2px; background: var(--line); margin: 0 10px; border-radius: 2px; }
@media (max-width: 520px) { .reg-step .rs-lab { display: none; } .reg-steps .rs-line { margin: 0 6px; } }

.reg-h { font-size: 19px; font-weight: 800; letter-spacing: -.02em; margin-bottom: 4px; }
.reg-sub2 { font-size: 14px; color: var(--muted); line-height: 1.5; margin-bottom: 20px; }

/* Карточки типа компании */
.type-cards { display: flex; flex-direction: column; gap: 12px; }
.type-card { display: flex; align-items: center; gap: 14px; text-align: left; width: 100%; padding: 16px 18px; border: 1.5px solid var(--line-2); border-radius: var(--r); background: var(--card); cursor: pointer; transition: border-color .18s, box-shadow .18s, background .18s; }
.type-card:hover { border-color: var(--coral); background: var(--coral-tint-2); }
.type-card.on { border-color: var(--coral); background: var(--coral-tint-2); box-shadow: 0 0 0 4px var(--coral-tint); }
.type-card .tc-ico { width: 44px; height: 44px; border-radius: 12px; background: var(--bg-2); color: var(--coral-700); display: grid; place-items: center; flex: none; }
.type-card.on .tc-ico { background: var(--coral); color: #fff; }
.type-card .tc-ico svg { width: 22px; height: 22px; }
.type-card .tc-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.type-card .tc-tt { font-weight: 700; font-size: 15.5px; color: var(--ink); }
.type-card .tc-ss { font-size: 13px; color: var(--muted); }
.type-card .tc-check { width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--line-2); display: grid; place-items: center; color: transparent; flex: none; transition: all .18s; }
.type-card .tc-check svg { width: 14px; height: 14px; }
.type-card.on .tc-check { background: var(--coral); border-color: var(--coral); color: #fff; }

/* Навигация мастера */
.reg-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 24px; }
.reg-nav .btn { min-width: 120px; }
.reg-nav > span { flex: 1; }

/* Поле ИНН с кнопкой */
.inn-row { display: flex; gap: 10px; }
.inn-row input { flex: 1; min-width: 0; }
.inn-row .btn { flex: none; white-space: nowrap; }
.inn-row .btn svg { width: 16px; height: 16px; }

/* Карточка найденной компании */
.found-card { border: 1.5px solid #BfE6CF; background: #F1FBF5; border-radius: var(--r); padding: 14px 16px; margin-bottom: 18px; }
.found-card .found-top { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: #157048; margin-bottom: 8px; }
.found-card .fc-ic { width: 22px; height: 22px; border-radius: 50%; background: #157048; color: #fff; display: grid; place-items: center; flex: none; }
.found-card .fc-ic svg { width: 13px; height: 13px; }
.found-card .found-name { font-size: 15.5px; font-weight: 700; color: var(--ink); line-height: 1.35; }
.found-card .found-dir { display: flex; align-items: center; gap: 7px; font-size: 13.5px; color: var(--ink-2); margin-top: 6px; }
.found-card .found-dir svg { width: 15px; height: 15px; color: var(--muted); flex: none; }
.found-card .found-kv { display: flex; gap: 10px; font-size: 13px; margin-top: 7px; line-height: 1.4; }
.found-card .found-kv span { color: var(--muted); min-width: 64px; flex: none; }
.found-card.found-err { border-color: #F3C9C4; background: #FDF1F0; }
.found-card.found-err .fc-ic { background: #B22A23; }
.found-card.found-err b { display: block; font-size: 14px; color: #B22A23; }
.found-card.found-err span { font-size: 13px; color: var(--ink-2); }
.found-card.found-err { display: flex; align-items: flex-start; gap: 10px; }

/* Сводка перед созданием */
.reg-summary { background: var(--bg-2); border-radius: var(--r); padding: 14px 16px; margin: 4px 0 4px; }
.reg-summary .rs-item { display: flex; gap: 10px; font-size: 14px; padding: 5px 0; }
.reg-summary .rs-item span { color: var(--muted); min-width: 90px; flex: none; }
.reg-summary .rs-item:not(:last-child) { border-bottom: 1px solid var(--line); }

/* ============================================================ БАННЕР СТАТУСА ПРОВЕРКИ */
.status-banner { display: flex; gap: 16px; align-items: flex-start; border-radius: var(--r-lg); padding: 20px 22px; margin-bottom: 22px; border: 1.5px solid var(--line-2); background: var(--card); box-shadow: var(--shadow-sm); }
.status-banner .sb-ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; flex: none; color: #fff; }
.status-banner .sb-ico svg { width: 22px; height: 22px; }
.status-banner .sb-title { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 17px; font-weight: 800; letter-spacing: -.02em; color: var(--ink); }
.status-banner .sb-pill { font-size: 11.5px; font-weight: 700; padding: 4px 10px; border-radius: var(--r-pill); }
.status-banner .sb-desc { font-size: 14px; color: var(--ink-2); line-height: 1.55; margin-top: 5px; max-width: 720px; }
.status-banner .sb-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.status-banner .sb-meta span { font-size: 12.5px; font-weight: 600; color: var(--ink-2); background: var(--bg-2); padding: 5px 11px; border-radius: var(--r-pill); }
.status-banner .sb-actions { margin-top: 14px; }
.status-banner.sb-approved .sb-actions .btn { border-color: #BfE6CF; color: #157048; background: #fff; }
.status-banner.sb-approved .sb-actions .btn svg { width: 16px; height: 16px; }
.status-banner.sb-pending { border-color: #F2D89A; background: #FFFBF1; }
.status-banner.sb-pending .sb-ico { background: var(--amber); }
.status-banner.sb-pending .sb-pill { background: var(--amber-tint); color: #9A6510; }
.status-banner.sb-approved { border-color: #BfE6CF; background: #F4FBF7; }
.status-banner.sb-approved .sb-ico { background: #157048; }
.status-banner.sb-approved .sb-pill { background: #E3F5EC; color: #157048; }
.status-banner.sb-rejected { border-color: #F3C9C4; background: #FEF6F5; }
.status-banner.sb-rejected .sb-ico { background: #B22A23; }
.status-banner.sb-rejected .sb-pill { background: #FDECEB; color: #B22A23; }
@media (max-width: 560px) { .status-banner { padding: 16px; gap: 12px; } .status-banner .sb-ico { width: 38px; height: 38px; } }

/* Premium Chat Modal Styles */
.chat-modal-body {
  height: 480px;
  background: #f8fafc;
}
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background-color: #f1f5f9;
  min-height: 0;
}
.chat-bubble {
  max-width: 75%;
  padding: 10px 16px;
  font-size: 14px;
  line-height: 1.5;
  word-break: break-word;
  position: relative;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}
.chat-bubble.msg-out {
  align-self: flex-end;
  background: linear-gradient(135deg, #f2542c, #ff7e5f);
  color: #ffffff;
  border-radius: 16px 16px 4px 16px;
}
.chat-bubble.msg-in {
  align-self: flex-start;
  background: #ffffff;
  color: #0f172a;
  border-radius: 16px 16px 16px 4px;
  border: 1px solid #e2e8f0;
}
.chat-bubble-time {
  font-size: 10px;
  text-align: right;
  margin-top: 5px;
  opacity: 0.8;
}
.chat-bubble.msg-out .chat-bubble-time {
  color: rgba(255, 255, 255, 0.9);
}
.chat-bubble.msg-in .chat-bubble-time {
  color: #64748b;
}
.chat-form-container {
  display: flex;
  gap: 10px;
  padding: 16px;
  border-top: 1px solid #e2e8f0;
  background: #ffffff;
}
.chat-input-field {
  flex: 1;
  border: 1px solid #cbd5e1;
  border-radius: 20px;
  padding: 10px 18px;
  font-size: 14px;
  background: #f8fafc;
  color: #0f172a;
  outline: none;
  transition: all 0.2s ease;
}
.chat-input-field:focus {
  border-color: #f2542c;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(242, 84, 44, 0.15);
}
.chat-send-button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #f2542c;
  color: #ffffff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(242, 84, 44, 0.3);
}
.chat-send-button:hover {
  background: #d6431f;
  transform: scale(1.05);
}
.chat-send-button svg {
  width: 18px;
  height: 18px;
}

/* Chats Dashboard Screen Layout */
.chats-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  background: var(--bg-1);
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  overflow: hidden;
  height: 600px;
  box-shadow: var(--shadow-sm);
}
.chats-sidebar {
  border-right: 1px solid var(--line-2);
  display: flex;
  flex-direction: column;
  background: var(--bg-2);
}
.chats-sidebar-header {
  padding: 16px;
  border-bottom: 1px solid var(--line-2);
  font-weight: 700;
  font-size: 16px;
  color: var(--text);
}
.chats-list {
  flex: 1;
  overflow-y: auto;
}
.chat-contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  cursor: pointer;
  border-bottom: 1px solid var(--line-2);
  transition: background 0.15s;
}
.chat-contact-item:hover {
  background: var(--bg-1);
}
.chat-contact-item.active {
  background: var(--bg-1);
  border-left: 4px solid var(--coral);
  padding-left: 12px;
}
.chat-contact-info {
  flex: 1;
  min-width: 0;
}
.chat-contact-name {
  font-weight: 700;
  font-size: 14.5px;
  color: var(--text);
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.chat-contact-lastmsg {
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.chat-contact-badge {
  background: var(--coral);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 10px;
  margin-left: auto;
  flex-shrink: 0;
}

/* Chats tab selection styling */
.chats-tabs {
  display: flex;
  border-bottom: 1px solid var(--line-2);
  background: var(--bg-1);
}
.chats-tab {
  flex: 1;
  padding: 12px;
  font-weight: 600;
  font-size: 14px;
  border: none;
  background: transparent;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}
.chats-tab:hover {
  color: var(--ink);
}
.chats-tab.active {
  color: var(--coral);
  border-bottom-color: var(--coral);
}
.chats-main-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  text-align: center;
  padding: 40px;
}
.chats-main-active {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}
.chats-main-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--line-2);
  background: var(--bg-1);
  display: flex;
  align-items: center;
  gap: 12px;
}
.chats-main-header-name {
  font-weight: 700;
  font-size: 16px;
  color: var(--text);
}

/* Responsive Grid for Partner View Screen */
.partner-view-grid {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 24px;
}
@media (max-width: 880px) {
  .partner-view-grid {
    grid-template-columns: 1fr;
  }
}

/* Mobile responsive fixes for the Chats page */
.chats-back-btn {
  display: none;
}

@media (max-width: 760px) {
  .chats-layout {
    grid-template-columns: 1fr;
    height: 520px;
  }
  
  /* Toggle visibility of list/chat thread based on active state */
  .chats-layout:has(.chats-main-active) .chats-sidebar {
    display: none;
  }
  .chats-layout:has(.chats-main-empty) .chats-main-empty {
    display: none;
  }
  .chats-layout:has(.chats-main-empty) {
    grid-template-columns: 1fr;
  }
  
  .chats-back-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--text);
    padding: 0;
    cursor: pointer;
  }
  .chats-back-btn svg {
    width: 20px;
    height: 20px;
  }
}

/* Hamburger button and responsive navigation drawer (shown on tablets/mobiles where menu overflows) */
@media (max-width: 990px) {
  .burger-btn {
    display: flex !important;
  }
  .burger-btn ~ .a-nav {
    display: none !important;
  }
}

/* General Cabinet & Admin Mobile Optimizations */
@media (max-width: 760px) {
  .a-main {
    padding: 16px 0;
  }
  .a-wrap {
    padding: 0 12px;
  }
  .a-page-head {
    margin-bottom: 20px;
  }
  .a-page-head h1 {
    font-size: 24px;
  }
}


