/* =========================================================
   go7.uz — Мини-сайт: редактор, заявки, статистика (кабинет). Общие элементы — avia.css (av-*)
   ========================================================= */
.bo-badge { font-style: normal; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--accent); color: #fff; font: 800 11px/20px var(--font); text-align: center; }
.bo-url { display: inline-flex; align-items: center; gap: 2px; padding: 4px 4px 4px 12px; border-radius: 999px; background: var(--surface); box-shadow: var(--shadow); max-width: 100%; }
.bo-url a { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; font-size: 14px; color: var(--ink); text-decoration: none; min-width: 0; }
.bo-url a span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bo-url a .ico { color: var(--accent); flex: none; }
.bo-url .av-ib { width: 32px; height: 32px; border-radius: 50%; }
.bo-first { margin-bottom: 14px; }
.bo-restore { align-items: center; }
.bo-restore .btn { flex: none; }

/* Редактор: слева настройки, справа телефон */
.bo-ed { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 22px; align-items: start; padding-bottom: 14px; }
.bo-col { display: grid; gap: 14px; min-width: 0; }
.bo-card { padding: 20px 22px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; min-width: 0; }
.bo-blocks, #boList { grid-template-columns: minmax(0, 1fr); }
.bo-card .av-h3 { margin: 0; }
.bo-slug { display: flex; align-items: center; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--field); overflow: hidden; }
.bo-slug:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(255,90,54,.12); }
.bo-slug em { font-style: normal; padding: 0 0 0 14px; color: var(--muted); font-weight: 700; white-space: nowrap; }
.bo-slug .input { border: 0; box-shadow: none !important; padding-left: 2px; font-weight: 800; }
#boSlugSt.ok { color: var(--teal-ink); font-weight: 700; } #boSlugSt.bad { color: var(--danger); font-weight: 700; }
#boSlugSt .ico { display: inline; vertical-align: -2px; }
.bo-notif { display: grid; gap: 8px; }
.bo-prof { display: flex; gap: 18px; align-items: flex-start; }
.bo-profF { display: grid; gap: 12px; min-width: 0; }
.bo-avw { flex: none; width: 130px; display: grid; gap: 8px; justify-items: center; }
.bo-avimg { width: 96px; height: 96px; border-radius: 50%; overflow: hidden; background: var(--accent-soft); display: grid; place-items: center; box-shadow: 0 0 0 3px var(--surface), 0 0 0 4.5px var(--line); }
.bo-avimg img { width: 100%; height: 100%; object-fit: cover; background: #fff; }
.bo-avimg span { font: 700 30px var(--display); color: var(--accent); }
.bo-avb { display: grid; gap: 6px; width: 100%; }
.bo-avb .btn { justify-content: center; }
.bo-avsel { padding: 7px 8px; font-size: 12.5px; }
.bo-avn { font-size: 11.5px; color: var(--muted); text-align: center; line-height: 1.35; }
.bo-cover { display: grid; gap: 8px; }
.bo-covimg { height: 120px; border-radius: 14px; background: var(--bg-2) center / cover no-repeat; }
.bo-covimg.r-square { height: 200px; width: 200px; } .bo-covimg.r-tall { height: 220px; width: 176px; }
.bo-addimg { width: 100%; display: grid; justify-items: center; gap: 4px; padding: 18px 14px; border: 1.5px dashed var(--line-2); border-radius: 14px; background: transparent; cursor: pointer; color: var(--ink-2); font: 700 14px var(--font); }
.bo-addimg .ico { color: var(--accent); }
.bo-addimg small { font-weight: 500; font-size: 12px; color: var(--muted); }
.bo-addimg:hover { border-color: var(--accent); background: var(--sel-bg); }

/* Темы */
.bo-themes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.bo-themes button { border: 0; background: transparent; cursor: pointer; padding: 0; display: grid; gap: 6px; text-align: center; font: 700 12.5px var(--font); color: var(--ink-2); }
.bo-th { position: relative; display: grid; align-content: end; gap: 5px; height: 84px; padding: 10px 12px; border-radius: 14px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); transition: transform .15s, box-shadow .15s; }
.bo-th i { display: block; height: 11px; border-radius: 999px; }
.bo-th i + i { width: 70%; justify-self: center; }
.bo-themes button:hover .bo-th { transform: translateY(-2px); }
.bo-themes button.on .bo-th { box-shadow: 0 0 0 2.5px var(--surface), 0 0 0 4.5px var(--accent); }
.bo-themes button.on b { color: var(--ink); }
.bo-thopt { gap: 14px; }
.seg.bo-seg { display: flex; width: 100%; flex-wrap: wrap; }
.seg.bo-seg button { flex: 1 1 auto; padding: 8px 10px; }
.bo-acc { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.bo-acc input[type=color] { width: 44px; height: 36px; border: 0; padding: 0; background: none; cursor: pointer; border-radius: 10px; }
.bo-acc input[type=color]:disabled { opacity: .3; cursor: not-allowed; }
.bo-acc .bo-lang { width: auto; margin-left: auto; }

/* Блоки */
.bo-blocks { display: grid; gap: 10px; }
.bo-bhd { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 2px 0; }
.bo-bhd h3 { font-size: 18px; }
#boList { display: grid; gap: 8px; }
.bo-b { background: var(--surface); border-radius: 16px; box-shadow: var(--shadow); transition: box-shadow .15s, opacity .15s; }
.bo-b.open { box-shadow: 0 0 0 2px var(--accent-soft-2), var(--shadow); }
.bo-b.off { opacity: .62; }
.bo-b.drag { opacity: .35; }
.bo-b.over { box-shadow: 0 -3px 0 var(--accent), var(--shadow); }
.bo-bh { display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 10px; }
.bo-drag { color: var(--ink-4); cursor: grab; display: grid; place-items: center; width: 20px; }
.bo-bic { flex: none; width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.bo-bt { min-width: 0; text-align: left; border: 0; background: transparent; cursor: pointer; padding: 4px 4px; color: var(--ink); font: inherit; }
.bo-bt b { display: block; font-size: 14.5px; }
.bo-bt b em { font-style: normal; font-size: 11px; font-weight: 800; padding: 1px 7px; border-radius: 999px; background: var(--bg-2); color: var(--ink-3); margin-left: 4px; vertical-align: 1px; }
.bo-bt small { display: block; color: var(--muted); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bo-bact { display: flex; gap: 0; flex: none; }
.bo-bact .av-ib { width: 32px; height: 32px; }
.bo-bact [data-a="up"] .ico { transform: rotate(90deg); }
.bo-bact [data-a="down"] .ico { transform: rotate(90deg); }
.bo-bb { padding: 4px 16px 18px; display: grid; gap: 12px; border-top: 1px solid var(--line); padding-top: 14px; }
.bo-icons { display: flex; flex-wrap: wrap; gap: 6px; }
.bo-icons button { width: 38px; height: 38px; border-radius: 11px; border: 0; cursor: pointer; display: grid; place-items: center; background: var(--bg); color: var(--ink-2); }
.bo-icons button.on { background: var(--accent); color: #fff; }
.bo-icons button span { font-weight: 800; }
.bo-rows { display: grid; gap: 8px; }
.bo-row { display: grid; grid-template-columns: 150px minmax(0, 1fr) auto; gap: 6px; align-items: center; }
.bo-qa { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px; padding: 10px; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line); }
.bo-qa textarea { grid-column: 1; min-height: 60px; }
.bo-qa .av-ib { grid-column: 2; grid-row: 1; }
.bo-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.bo-tpick { display: grid; gap: 6px; max-height: 300px; overflow-y: auto; padding: 2px; }
.bo-tpick label { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; }
.bo-tpick label.on { box-shadow: inset 0 0 0 2px var(--accent); background: var(--sel-bg); }
.bo-tpick input { width: 18px; height: 18px; accent-color: var(--accent); flex: none; }
.bo-tpick b { display: block; font-size: 14px; }
.bo-tpick small { color: var(--muted); font-size: 12px; }
.bo-empty { display: grid; justify-items: center; gap: 4px; padding: 28px; border-radius: 16px; background: var(--surface); color: var(--ink-3); text-align: center; }
.bo-empty .ico { color: var(--accent); }
.bo-addbig { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 16px; border-radius: 16px; border: 2px dashed var(--line-2); background: transparent; cursor: pointer; color: var(--ink-2); font: 800 15px var(--font); }
.bo-addbig:hover { border-color: var(--accent); color: var(--accent); background: var(--sel-bg); }
.modal.bo-addm { max-width: 560px; }
.bo-types { display: grid; gap: 6px; }
.bo-types button { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; border: 0; cursor: pointer; text-align: left; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); font: inherit; }
.bo-types button:hover { box-shadow: inset 0 0 0 2px var(--accent); background: var(--sel-bg); }
.bo-types b { display: block; font-size: 14.5px; }
.bo-types small { display: block; font-size: 12.5px; color: var(--muted); }
.bo-types > button > .ico:last-child { color: var(--ink-4); }
.bo-tic { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }

/* Предпросмотр-телефон */
.bo-pv { position: sticky; top: 16px; }
.bo-phone { --k: 1; position: relative; width: 100%; }
.bo-scr { position: absolute; left: 50%; top: 0; width: 390px; height: 800px; transform: translateX(-50%) scale(var(--k)); transform-origin: top center; border-radius: 46px; padding: 12px; background: #0B1220; box-shadow: 0 30px 60px rgba(11,31,58,.25), inset 0 0 0 2px #2A3550; }
.bo-scr::before { content: ""; position: absolute; top: 22px; left: 50%; width: 92px; height: 26px; transform: translateX(-50%); border-radius: 999px; background: #0B1220; z-index: 2; }
.bo-scr iframe { width: 100%; height: 100%; border: 0; border-radius: 36px; background: #fff; display: block; }
.bo-pvn { text-align: center; margin-top: 10px; }

/* Нижняя панель сохранения */
.bo-bar { position: sticky; bottom: 16px; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 4px;
  padding: 10px 10px 10px 18px; border-radius: 18px; background: var(--surface); box-shadow: var(--shadow-lg); font-size: 14px; font-weight: 700; color: var(--ink-3); transition: box-shadow .2s, color .2s; }
.bo-bar.on { color: var(--ink); box-shadow: 0 0 0 2px var(--accent-soft-2), var(--shadow-lg); }
.bo-bar:not(.on) .btn { background: var(--bg-2); color: var(--ink-3); box-shadow: none; }
.bo-bar span { display: inline-flex; align-items: center; gap: 8px; }
.bo-bar .ico { color: var(--accent); }

/* QR */
.modal.bo-qrm { max-width: 720px; }
.bo-qr { display: flex; gap: 22px; align-items: flex-start; }
.bo-qrc { flex: none; width: 210px; padding: 10px; border-radius: 18px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.bo-qrc canvas { width: 100%; height: auto; display: block; }
.bo-qru { margin: 0 0 10px; font: 800 17px var(--font); word-break: break-all; }
.bo-qru a { color: var(--ink); }
.bo-srcs { display: grid; gap: 6px; }
.bo-srcs button { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 12px; border: 0; cursor: pointer; background: var(--bg); color: var(--ink); font: 700 13.5px var(--font); text-align: left; }
.bo-srcs button span { flex: 1; }
.bo-srcs button code { font-size: 12px; color: var(--muted); }
.bo-srcs button:hover { background: var(--accent-soft); }

/* Заявки */
.bo-lseg { flex: none; }
.bo-lseg button em { font-style: normal; font-size: 11px; font-weight: 800; padding: 0 6px; border-radius: 999px; background: var(--bg-2); color: var(--ink-3); margin-left: 2px; }
.bo-lseg button.on em { background: var(--accent); color: #fff; }
.bo-leads { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; }
.bo-lead { background: var(--surface); border-radius: 18px; box-shadow: var(--shadow); padding: 14px 16px; display: grid; gap: 10px; align-content: start; }
.bo-lead.st-new { box-shadow: inset 4px 0 0 var(--accent), var(--shadow); }
.bo-lead.st-done { opacity: .82; }
.bo-lh { display: flex; align-items: center; gap: 10px; }
.bo-lh .grow { min-width: 0; }
.bo-lh b { display: block; font-size: 15.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bo-lh small { display: block; color: var(--muted); font-size: 12.5px; }
.bo-lav { flex: none; width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font: 700 16px var(--display); }
select.input.bo-lst { width: auto; flex: none; padding: 7px 28px 7px 10px; font-size: 13px; font-weight: 700; }
.bo-lph { display: flex; align-items: center; gap: 4px; }
.bo-tel { flex: 1; display: inline-flex; align-items: center; gap: 8px; font: 800 16px var(--font); color: var(--ink); text-decoration: none; letter-spacing: .01em; }
.bo-tel .ico { color: var(--accent); }
.bo-wa { color: #1FAF55; } .bo-tg { color: #229ED9; }
.bo-lf { display: flex; flex-wrap: wrap; gap: 6px; }
.bo-lf span { padding: 4px 10px; border-radius: 999px; background: var(--bg); font-size: 12.5px; color: var(--ink-2); max-width: 100%; }
.bo-lf em { font-style: normal; color: var(--muted); font-weight: 700; }
textarea.input.bo-note { min-height: 40px; padding: 9px 12px; font-size: 13.5px; resize: none; overflow: hidden; }
.bo-lfoot { display: flex; align-items: center; gap: 6px; }
.bo-lfoot .av-ib { margin-left: auto; }

/* Статистика */
.bo-sh { margin-bottom: 14px; }
.bo-chart { padding: 18px 20px; margin-bottom: 14px; }
.bo-chh { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.bo-chh h3 { font-size: 17px; }
.bo-lg { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); font-weight: 700; }
.bo-lg i { display: inline-block; width: 12px; height: 12px; border-radius: 4px; background: var(--accent-soft-2); margin-left: 8px; }
.bo-lg i.l { background: var(--accent); border-radius: 50%; }
.bo-bars { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 3px; align-items: end; height: 200px; padding-top: 22px; }
.bo-bar1 { position: relative; height: 100%; display: flex; align-items: flex-end; }
.bo-bar1 i { display: block; width: 100%; min-height: 2px; border-radius: 5px 5px 2px 2px; background: var(--accent-soft-2); transition: background .15s; }
.bo-bar1:hover i { background: var(--accent); }
.bo-bar1 b { position: absolute; left: 50%; transform: translate(-50%, -4px); min-width: 18px; height: 18px; padding: 0 4px; border-radius: 999px; background: var(--accent); color: #fff; font: 800 10.5px/18px var(--font); text-align: center; }
.bo-bx { display: flex; justify-content: space-between; margin-top: 6px; font-size: 11.5px; color: var(--muted); font-weight: 700; }
.bo-srcl { display: grid; gap: 4px; padding: 0 18px 8px; }
.bo-srcl > div { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) 80px; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); }
.bo-srcl > div:first-child { border-top: 0; }
.bo-srcl b { display: block; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bo-srcl small { color: var(--muted); font-size: 12px; }
.bo-srcl em { font-style: normal; text-align: right; font-weight: 800; font-size: 13px; }
.bo-srcb { height: 8px; border-radius: 8px; background: var(--bg-2); overflow: hidden; }
.bo-srcb i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent-2), var(--accent)); border-radius: 8px; }
.bo-pad { padding: 0 18px 16px; margin: 0; }

@media (max-width: 1180px) {
  .bo-ed { grid-template-columns: minmax(0, 1fr) 320px; }
  .bo-themes { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  .bo-ed { grid-template-columns: minmax(0, 1fr); }
  .bo-pv { position: static; order: -1; max-width: 360px; margin: 0 auto; width: 100%; }
  .bo-bar { bottom: 84px; }
}
@media (max-width: 860px) {
  .bo-head .row { width: 100%; }
  .bo-prof { flex-direction: column; align-items: stretch; }
  .bo-avw { width: 100%; display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; }
  .bo-avb { width: 170px; }
  .bo-avn { text-align: left; flex: 1 1 100%; }
  .bo-lseg { flex: 1 1 100%; }
  .bo-themes { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
  .bo-th { height: 64px; }
  .bo-row { grid-template-columns: 1fr auto; }
  .bo-row select { grid-column: 1 / -1; }
  .bo-fields { grid-template-columns: 1fr; }
  .bo-bact [data-a="up"], .bo-bact [data-a="down"] { display: none; }
  .bo-qr { flex-direction: column; align-items: center; }
  .bo-leads { grid-template-columns: 1fr; }
  .bo-srcl > div { grid-template-columns: minmax(0, 1fr) 70px; }
  .bo-srcb { display: none; }
  .bo-card { padding: 16px; }
}
