/* ============================================================
   BOSSDROP — тёмный техномагазин. Один жёлтый луч, скошенные углы.
   Дисплей: Tektur · Текст: Rubik · Скос: --ch (chamfer)
   ============================================================ */
:root {
  --bg: #0B0E14;
  --bg2: #0F131C;
  --card: #151A25;
  --card2: #1B2130;
  --line: #232B3B;
  --line2: #33405A;
  --text: #EDF1F7;
  --mut: #8B96AB;
  --acc: #F5C400;
  --acc-hot: #FFD829;
  --acc-ink: #161000;
  --ok: #4ADE80;
  --ok-soft: rgba(74, 222, 128, .12);
  --warn: #FBBF24;
  --warn-soft: rgba(251, 191, 36, .12);
  --bad: #F87171;
  --bad-soft: rgba(248, 113, 113, .12);
  --photo: #F3F5F9;              /* светлая подложка под пресс-фото */
  --ch: 10px;                    /* фирменный скос углов */
  --font-disp: 'Tektur', 'Rubik', system-ui, sans-serif;
  --font-body: 'Rubik', -apple-system, 'Segoe UI', sans-serif;
  --shadow: 0 10px 34px rgba(0, 0, 0, .45);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  background: var(--bg) radial-gradient(1200px 500px at 80% -100px, rgba(245, 196, 0, .06), transparent 60%);
  color: var(--text); font-family: var(--font-body);
  font-size: 15.5px; line-height: 1.55;
}
.wrap { width: min(1280px, 100% - 32px); margin-inline: auto; }
a { color: var(--text); text-decoration: none; }
a:hover { color: var(--acc); }
img { max-width: 100%; }
h1, h2, h3 { font-family: var(--font-disp); font-weight: 700; line-height: 1.15; letter-spacing: .01em; }
h1 { font-size: 30px; } h2 { font-size: 22px; }
.mut { color: var(--mut); }
.ic { vertical-align: -3px; }
::selection { background: var(--acc); color: var(--acc-ink); }
/* скос двух углов — фирменный приём */
.chamf, .btn, .pcard, .cat-card, .buy-panel, .pay-card, .flash, .auth-card {
  clip-path: polygon(var(--ch) 0, 100% 0, 100% calc(100% - var(--ch)), calc(100% - var(--ch)) 100%, 0 100%, 0 var(--ch));
}

#pageload {
  position: fixed; top: 0; left: 0; height: 2px; width: 0; z-index: 90;
  background: var(--acc); box-shadow: 0 0 12px var(--acc);
  opacity: 0; transition: width .3s ease, opacity .3s;
}
#pageload.go { opacity: 1; }

/* ---------------------------------------------------- каркас: сайдбар + палуба */
.nav-toggle { position: absolute; left: -9999px; }
.shell { display: grid; grid-template-columns: 250px minmax(0, 1fr); min-height: 100vh; }
.side {
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
  display: flex; flex-direction: column; gap: 20px;
  padding: 22px 16px; background: #090C12; border-right: 1px solid var(--line);
  scrollbar-width: thin;
}
.logo { display: grid; gap: 4px; padding: 2px 8px; }
.logo:hover { color: var(--text); }
.logo-word {
  font-family: var(--font-disp); font-weight: 800; font-size: 27px; letter-spacing: .05em;
  color: var(--text); line-height: 1;
}
.logo-word-sm { font-size: 19px; }
.logo-o { color: var(--acc); }
.logo-tag { font-size: 9.5px; letter-spacing: .3em; text-transform: uppercase; color: var(--mut); }
.side-nav { display: grid; gap: 2px; }
.side-link {
  display: flex; gap: 11px; align-items: center; padding: 9px 12px;
  font-size: 14px; font-weight: 500; color: var(--mut);
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}
.side-link .ic { flex: none; opacity: .8; }
.side-link:hover { color: var(--text); background: var(--card); }
.side-link.on { color: var(--acc-ink); background: var(--acc); font-weight: 600; }
.side-link.on .ic { opacity: 1; }
.side-foot { margin-top: auto; display: grid; gap: 12px; padding: 14px 8px 4px; border-top: 1px solid var(--line); }
.side-note { display: flex; gap: 8px; align-items: center; color: var(--mut); font-size: 12px; }
.side-note .ic { color: var(--acc); }
.side-links { display: grid; gap: 6px; }
.side-links a { color: var(--mut); font-size: 12.5px; }
.side-links a:hover { color: var(--acc); }
.side-pay { display: flex; gap: 6px; flex-wrap: wrap; }

.deck { min-width: 0; display: flex; flex-direction: column; }
.content { flex: 1; width: 100%; max-width: 1160px; margin-inline: auto; padding: 0 28px 40px; }
.bar {
  position: sticky; top: 0; z-index: 50;
  display: flex; gap: 14px; align-items: center;
  padding: 15px 28px;
  background: rgba(11, 14, 20, .93);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.burger { display: none; cursor: pointer; padding: 6px; }
.burger span { display: block; width: 20px; height: 2px; background: var(--text); margin: 4px 0; }
.bar-logo { display: none; font-family: var(--font-disp); font-weight: 800; font-size: 19px; letter-spacing: .05em; }
.bar-search { position: relative; flex: 1; max-width: 640px; margin-right: auto; display: flex; align-items: center; }
.bar-search .ic { position: absolute; left: 13px; color: var(--mut); }
.bar-search input {
  width: 100%; padding: 10px 14px 10px 38px; font: inherit; font-size: 14px;
  background: var(--card); color: var(--text); border: 1px solid var(--line);
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}
.bar-search input:focus { outline: none; border-color: var(--acc); }
.bar-search input::placeholder { color: var(--mut); }
.bar-link { color: var(--mut); font-size: 14px; font-weight: 500; margin-left: auto; }
.bar-link + .bar-cart { margin-left: 0; }
.bar-cart { margin-left: auto; }
.bar-link ~ .bar-cart, .bar-cart:only-of-type { }
.cart-n {
  background: var(--acc-ink); color: var(--acc); border-radius: 99px;
  font-size: 12px; font-weight: 700; padding: 1px 7px; margin-left: 2px;
}
.scrim { display: none; }

/* компактный футер палубы */
.deck-foot { border-top: 1px solid var(--line); background: #07090E; padding: 26px max(28px, calc((100% - 1104px) / 2)) 20px; }
.df-row { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 26px; }
.df-brand { display: grid; gap: 8px; justify-items: start; font-size: 13px; }
.df-col { display: grid; gap: 7px; align-content: start; font-size: 13.5px; }
.df-col a { color: var(--mut); }
.df-col a:hover { color: var(--acc); }
.df-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--mut); font-size: 12px; }
.foot-note { font-size: 11.5px; opacity: .75; }
.psbadge { border: 1px solid var(--line2); color: var(--mut); font-size: 10.5px; font-weight: 700; padding: 3px 7px; letter-spacing: .04em; }
.ps-mir { color: #6EE7B7; } .ps-sbp { color: #A5B4FC; }

/* ---------------------------------------------------- командная строка */
.cmd { padding: 30px 0 6px; display: grid; gap: 10px; }
.cmd-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-disp); font-size: 11.5px; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase; color: var(--acc);
}
.cmd-h { font-size: clamp(34px, 4.4vw, 54px); line-height: 1.03; text-transform: uppercase; }
.cmd-h em { font-style: normal; color: var(--acc); text-shadow: 0 0 30px rgba(245, 196, 0, .4); }
.cmd-sub { color: var(--mut); font-size: 15.5px; max-width: 64ch; }

.sec-head { display: flex; align-items: baseline; gap: 14px; margin: 26px 0 14px; }
.sec-head h2 { font-size: 20px; text-transform: uppercase; letter-spacing: .04em; display: flex; gap: 10px; align-items: center; }
.sec-head h2::before { content: "▐"; color: var(--acc); font-size: 17px; }
.sec-link { margin-left: auto; color: var(--mut); font-size: 14px; }
.sec-link:hover { color: var(--acc); }
.sec-hint { margin-left: auto; font-size: 12.5px; }

/* ---------------------------------------------------- тайлы и бенто */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(218px, 1fr)); gap: 12px; }
.tile {
  display: grid; grid-template-rows: auto 1fr; background: var(--card);
  border: 1px solid var(--line); color: var(--text);
  clip-path: polygon(var(--ch) 0, 100% 0, 100% calc(100% - var(--ch)), calc(100% - var(--ch)) 100%, 0 100%, 0 var(--ch));
  transition: transform .15s ease, border-color .15s ease;
}
.tile:hover { transform: translateY(-3px); border-color: var(--acc); color: var(--text); }
.tile-cover { position: relative; aspect-ratio: 1 / .92; overflow: hidden; background: var(--photo); }
.tile-cover img {
  position: absolute; inset: 16px; width: calc(100% - 32px); height: calc(100% - 32px);
  object-fit: contain; mix-blend-mode: multiply;
}
.tile-price {
  position: absolute; left: 0; bottom: 10px;
  font-family: var(--font-disp); font-weight: 700; font-size: 15px;
  color: var(--acc-ink); background: var(--acc); padding: 5px 12px 5px 10px;
  clip-path: polygon(0 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
  font-variant-numeric: tabular-nums;
}
.tile-old {
  position: absolute; right: 10px; bottom: 12px;
  color: var(--mut); font-size: 12px; text-decoration: line-through;
}
.tile-flag {
  position: absolute; top: 10px; left: 0; display: inline-flex; gap: 6px; align-items: center;
  font-family: var(--font-disp); font-size: 10.5px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--text); background: rgba(11, 14, 20, .85);
  padding: 5px 12px 5px 10px; clip-path: polygon(0 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
}
.tile-flag .ic { color: var(--acc); }
.tile-body { display: grid; gap: 4px; padding: 11px 13px 13px; align-content: start; }
.tile-title {
  font-weight: 600; font-size: 13.5px; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.tile-sub { color: var(--mut); font-size: 12px; }
.tile-meta { display: flex; gap: 10px; align-items: center; font-size: 11.5px; }
.stars { color: var(--warn); font-weight: 600; }
.instock { color: var(--ok); font-weight: 500; }
.preorder { color: var(--mut); }

.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.tile-hero { grid-column: span 2; grid-row: span 2; }
.tile-hero .tile-cover { aspect-ratio: auto; height: 100%; min-height: 320px; }
.tile-hero .tile-cover img { inset: 30px; width: calc(100% - 60px); height: calc(100% - 60px); }
.tile-hero .tile-price { font-size: 19px; padding: 8px 16px 8px 13px; }
.tile-hero .tile-title { font-size: 16px; -webkit-line-clamp: 2; }
.tile-hero { grid-template-rows: 1fr auto; }

/* горизонтальная лента */
.rail-wrap { margin: 6px 0 8px; }
.rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: 224px; gap: 12px;
  overflow-x: auto; padding: 2px 2px 12px; scroll-snap-type: x mandatory;
  scrollbar-width: thin; scrollbar-color: var(--line2) transparent;
}
.rail .tile { scroll-snap-align: start; }

/* обещания */
.promise { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 26px 0 10px; }
.promise-item {
  display: flex; gap: 12px; align-items: flex-start; padding: 15px 16px;
  background: var(--card); border: 1px solid var(--line); font-size: 13px;
  clip-path: polygon(var(--ch) 0, 100% 0, 100% calc(100% - var(--ch)), calc(100% - var(--ch)) 100%, 0 100%, 0 var(--ch));
}
.promise-item .ic { color: var(--acc); flex: none; margin-top: 2px; }
.promise-item b { display: block; margin-bottom: 2px; }

/* ---------------------------------------------------- товар: сцена + панель */
.scene {
  position: relative; margin-top: 16px; height: clamp(300px, 44vw, 460px);
  background: var(--photo); overflow: hidden;
  clip-path: polygon(20px 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%, 0 20px);
}
.scene img {
  position: absolute; inset: 30px; width: calc(100% - 60px); height: calc(100% - 60px);
  object-fit: contain; mix-blend-mode: multiply;
}
.scene-brand {
  position: absolute; top: 16px; left: 0;
  font-family: var(--font-disp); font-size: 12px; font-weight: 700; letter-spacing: .2em;
  text-transform: uppercase; color: var(--text); background: rgba(11, 14, 20, .85);
  padding: 7px 16px 7px 14px; clip-path: polygon(0 0, 100% 0, calc(100% - 9px) 100%, 0 100%);
}
.scene-stock {
  position: absolute; right: 0; bottom: 16px;
  font-size: 12.5px; font-weight: 600; color: #4B5563; background: rgba(255, 255, 255, .88);
  padding: 7px 14px 7px 16px; clip-path: polygon(9px 0, 100% 0, 100% 100%, 0 100%);
}
.scene-stock.ok { color: #166534; }
.pd { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; margin-top: 22px; align-items: start; }
.pd-h { font-size: clamp(22px, 2.6vw, 30px); }
.pd-sub { color: var(--mut); font-size: 15px; margin-top: 4px; }
.pd-meta { display: flex; gap: 8px; align-items: center; margin-top: 10px; font-size: 13px; flex-wrap: wrap; }
.pd-buy {
  position: sticky; top: 84px; display: grid; gap: 13px; padding: 18px;
  background: var(--card); border: 1px solid var(--line2);
  clip-path: polygon(var(--ch) 0, 100% 0, 100% calc(100% - var(--ch)), calc(100% - var(--ch)) 100%, 0 100%, 0 var(--ch));
}
.buy-dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: none; gap: 14px; align-items: center; justify-content: space-between;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(11, 14, 20, .96); border-top: 1px solid var(--line2);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.buy-dock-price { font-family: var(--font-disp); font-weight: 800; font-size: 20px; color: var(--acc); }
.sec { margin: 26px 0; }

/* ---------------------------------------------------- кнопки */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border: 1px solid var(--line2); cursor: pointer;
  background: var(--card2); color: var(--text);
  font-family: var(--font-body); font-size: 14.5px; font-weight: 600;
  transition: transform .12s, background .15s, border-color .15s, color .15s;
}
.btn:hover { border-color: var(--acc); color: var(--text); transform: translateY(-1px); }
.btn-acc { background: var(--acc); border-color: var(--acc); color: var(--acc-ink); }
.btn-acc:hover { background: var(--acc-hot); border-color: var(--acc-hot); color: var(--acc-ink); }
.btn-ghost { background: transparent; }
.btn-danger { background: var(--bad-soft); border-color: transparent; color: var(--bad); }
.btn-danger:hover { background: var(--bad); color: #fff; border-color: var(--bad); }
.btn-big { padding: 15px 28px; font-size: 15.5px; }
.btn-sm { padding: 7px 12px; font-size: 13px; }
.btn-wide { width: 100%; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }

/* бегущая строка */
.ticker { overflow: hidden; border-block: 1px solid var(--line); background: var(--bg2); margin: 26px 0 6px; }
.ticker-track {
  display: flex; gap: 0; width: max-content;
  animation: ticker 32s linear infinite;
}
.ticker span {
  display: inline-flex; align-items: center; gap: 10px; padding: 9px 26px;
  font-family: var(--font-disp); font-size: 12.5px; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase; color: var(--mut); white-space: nowrap;
}
.ticker b { color: var(--acc); font-weight: 600; }
@keyframes ticker { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } }

/* ---------------------------------------------------- карточки товара */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 12px; }
.pcard {
  display: grid; grid-template-rows: auto 1fr; background: var(--card);
  border: 1px solid var(--line); color: var(--text);
  transition: transform .15s ease, border-color .15s ease;
}
.pcard:hover { transform: translateY(-3px); border-color: var(--acc); color: var(--text); }
.pcard-cover {
  position: relative; aspect-ratio: 1; overflow: hidden;
  background: var(--photo);
}
.pcard-cover img {
  position: absolute; inset: 14px; width: calc(100% - 28px); height: calc(100% - 28px);
  object-fit: contain; mix-blend-mode: multiply;
}
.pcard-body { display: grid; gap: 5px; padding: 12px 13px 14px; align-content: start; }
.pcard-title {
  font-weight: 600; font-size: 14px; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.pcard-sub { color: var(--mut); font-size: 12.5px; }
.pcard-meta { display: flex; gap: 10px; align-items: center; font-size: 12px; }
.stars { color: var(--warn); font-weight: 600; }
.instock { color: var(--ok); font-weight: 500; }
.preorder { color: var(--mut); }
.pcard-price { display: flex; gap: 8px; align-items: baseline; margin-top: 2px; }
.pcard-price b {
  font-family: var(--font-disp); font-size: 17px; font-weight: 700; color: var(--acc);
  font-variant-numeric: tabular-nums;
}
.pcard-price s { color: var(--mut); font-size: 12.5px; }

/* ---------------------------------------------------- каталог/категория */
.cat-head { display: flex; align-items: baseline; gap: 14px; margin: 26px 0 16px; }
.cat-head h1 { text-transform: uppercase; letter-spacing: .03em; }
.crumbs { color: var(--mut); font-size: 13px; margin-top: 20px; }
.crumbs a { color: var(--mut); }
.crumbs a:hover { color: var(--acc); }
.page-title { margin: 24px 0 16px; text-transform: uppercase; }
.chip {
  display: inline-block; padding: 5px 11px; font-size: 12.5px; font-weight: 600;
  background: var(--card2); border: 1px solid var(--line); color: var(--mut);
}

/* ---------------------------------------------------- страница товара */
.product { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 34px; margin-top: 18px; align-items: start; }
.product-cover {
  position: relative; aspect-ratio: 1 / 0.95; min-height: 420px; overflow: hidden;
  background: var(--photo); position: sticky; top: 92px;
  clip-path: polygon(20px 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%, 0 20px);
}
.product-cover img {
  position: absolute; inset: 30px; width: calc(100% - 60px); height: calc(100% - 60px);
  object-fit: contain; mix-blend-mode: multiply;
}
.product-brand { color: var(--acc); font-family: var(--font-disp); font-size: 12px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; }
.product-info h1 { font-size: clamp(24px, 3vw, 32px); margin: 6px 0 2px; }
.product-sub { color: var(--mut); font-size: 15px; }
.product-meta { display: flex; gap: 14px; align-items: center; margin: 12px 0 2px; flex-wrap: wrap; font-size: 13px; }
.stars.big { font-size: 14px; }
.buy-panel {
  margin-top: 18px; padding: 20px; background: var(--card); border: 1px solid var(--line2);
  display: grid; gap: 14px;
}
.price-row { display: flex; gap: 12px; align-items: baseline; }
.price-big {
  font-family: var(--font-disp); font-weight: 800; font-size: 34px; color: var(--acc);
  font-variant-numeric: tabular-nums; letter-spacing: .01em;
}
.price-old { color: var(--mut); font-size: 16px; }
.buy-notes { display: grid; gap: 7px; color: var(--mut); font-size: 13px; }
.variants { margin-top: 20px; display: grid; gap: 8px; }
.variants-label { font-size: 13px; color: var(--mut); }
.variants-list { display: flex; gap: 8px; flex-wrap: wrap; }
.variants-list a {
  padding: 7px 12px; font-size: 13px; background: var(--card); border: 1px solid var(--line);
}
.variants-list a:hover { border-color: var(--acc); }
.variants-list a.on { background: var(--acc); color: var(--acc-ink); border-color: var(--acc); font-weight: 600; }
.specs { margin-top: 22px; }
.specs h3 { font-size: 15px; margin-bottom: 8px; text-transform: uppercase; letter-spacing: .06em; }
.specs ul { list-style: none; display: grid; gap: 7px; color: #C7CFDC; font-size: 14px; }
.specs li { padding-left: 16px; position: relative; }
.specs li::before { content: "▸"; position: absolute; left: 0; color: var(--acc); }
.product-desc { margin-top: 18px; color: #C7CFDC; font-size: 14.5px; max-width: 62ch; }

/* отзывы */
.reviews { display: grid; gap: 10px; margin-top: 14px; }
.review { background: var(--card); border: 1px solid var(--line); padding: 15px 17px; }
.review-top { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.review-stars { color: var(--warn); letter-spacing: 2px; font-size: 13px; }
.review-stars .mut { color: var(--line2); }
.review-author { font-weight: 600; font-size: 14px; }
.review-date { font-size: 12.5px; }
.verified { color: var(--ok); font-size: 12px; background: var(--ok-soft); padding: 2px 8px; }
.review p { margin-top: 8px; font-size: 14px; color: #C7CFDC; }
.review-form { display: grid; gap: 10px; margin-top: 16px; background: var(--card); border: 1px solid var(--line); padding: 16px; }
.star-radio { display: flex; gap: 4px; }
.star-radio input { position: absolute; opacity: 0; pointer-events: none; }
.star-radio label { font-size: 22px; color: var(--line2); cursor: pointer; }
.star-radio label.on, .star-radio label:hover { color: var(--warn); }

/* ---------------------------------------------------- корзина/чекаут */
.cart-layout { display: grid; grid-template-columns: 1.5fr .9fr; gap: 24px; margin-top: 20px; align-items: start; }
.cart-items { display: grid; gap: 10px; }
.cart-item {
  display: grid; grid-template-columns: 86px 1fr auto; gap: 14px; align-items: center;
  background: var(--card); border: 1px solid var(--line); padding: 12px 14px;
}
.ci-cover { position: relative; width: 86px; height: 86px; background: var(--photo); overflow: hidden; }
.ci-cover img { position: absolute; inset: 6px; width: calc(100% - 12px); height: calc(100% - 12px); object-fit: contain; mix-blend-mode: multiply; }
.ci-title { font-weight: 600; font-size: 14px; }
.ci-sub { color: var(--mut); font-size: 12.5px; }
.ci-price { color: var(--mut); font-size: 13px; margin-top: 3px; }
.ci-controls { display: grid; gap: 8px; justify-items: end; }
.ci-sum { font-family: var(--font-disp); font-weight: 700; color: var(--acc); font-size: 16px; white-space: nowrap; }
.qty-form { display: inline-flex; align-items: center; gap: 2px; background: var(--card2); border: 1px solid var(--line); }
.qty-btn { width: 30px; height: 30px; border: none; background: none; color: var(--text); font-size: 16px; cursor: pointer; }
.qty-btn:hover { color: var(--acc); }
.qty-n { min-width: 26px; text-align: center; font-weight: 600; font-size: 14px; }
.ci-del { background: none; border: none; color: var(--mut); font-size: 12.5px; cursor: pointer; }
.ci-del:hover { color: var(--bad); }
.cart-summary { position: sticky; top: 92px; display: grid; gap: 8px; align-content: start;
  background: var(--card); border: 1px solid var(--line2); padding: 18px;
  clip-path: polygon(var(--ch) 0, 100% 0, 100% calc(100% - var(--ch)), calc(100% - var(--ch)) 100%, 0 100%, 0 var(--ch)); }
.cs-card { background: var(--card); border: 1px solid var(--line2); padding: 18px; }
.cs-head { font-family: var(--font-disp); font-size: 16px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 10px; }
.cs-row { display: flex; justify-content: space-between; font-size: 14px; padding: 4px 0; }
.cs-total { display: flex; justify-content: space-between; font-weight: 700; font-size: 17px; border-top: 1px solid var(--line); padding-top: 10px; margin-top: 6px; }
.cs-total b { color: var(--acc); font-family: var(--font-disp); }
.cs-hint { color: var(--mut); font-size: 12.5px; }
.cs-note { color: var(--mut); font-size: 12.5px; text-align: center; }
.cs-item { display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; padding: 3px 0; color: #C7CFDC; }
.empty-cart { text-align: center; padding: 70px 0; display: grid; gap: 14px; justify-items: center; color: var(--mut); }
.checkout-layout { display: grid; grid-template-columns: 1.5fr .9fr; gap: 24px; margin-top: 18px; align-items: start; }
.checkout-form { display: grid; gap: 12px; }
.checkout-form fieldset { border: 1px solid var(--line); padding: 16px; display: grid; gap: 12px; background: var(--card);
  clip-path: polygon(var(--ch) 0, 100% 0, 100% calc(100% - var(--ch)), calc(100% - var(--ch)) 100%, 0 100%, 0 var(--ch)); }
.checkout-form legend { font-family: var(--font-disp); font-weight: 700; font-size: 13px; text-transform: uppercase;
  letter-spacing: .08em; color: var(--acc); padding: 0 8px; margin-left: -8px; }
.checkout-form label { display: grid; gap: 6px; font-size: 13.5px; font-weight: 500; color: var(--mut); }
.checkout-form label.delivery-opt, .checkout-form label.agree { display: flex; font-weight: 400; }
.checkout-form .delivery-opt { color: var(--text); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.checkout-form input:not([type=radio]):not([type=checkbox]), .checkout-form textarea, .checkout-form select,
.review-form input, .review-form textarea, .admin-form input, .admin-form textarea, .admin-form select,
.auth-card input, .order-search input, .admin-filter input, .admin-filter select {
  width: 100%; padding: 11px 13px; font: inherit; font-size: 14.5px;
  background: var(--bg2); color: var(--text); border: 1px solid var(--line);
}
.checkout-form input:focus, .checkout-form textarea:focus, .review-form input:focus,
.review-form textarea:focus, .auth-card input:focus { outline: none; border-color: var(--acc); }
.field-hint { color: var(--mut); font-size: 12px; margin-top: -6px; }
.delivery-opts { display: grid; gap: 8px; }
.delivery-opt {
  display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; cursor: pointer;
  background: var(--card); border: 1px solid var(--line); font-size: 14px;
}
.delivery-opt:hover { border-color: var(--line2); }
.delivery-opt input { accent-color: var(--acc); margin-top: 3px; }
.agree { display: flex; gap: 9px; align-items: flex-start; color: var(--mut); font-size: 13px; }
.agree input { accent-color: var(--acc); margin-top: 3px; }
.agree a { color: var(--acc); }

/* ---------------------------------------------------- заказ/оплата */
.order-page { margin-top: 22px; }
.order-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.order-grid { display: grid; grid-template-columns: 1.45fr .95fr; gap: 24px; margin-top: 18px; align-items: start; }
.order-main, .order-side { display: grid; gap: 14px; }
.os-card { background: var(--card); border: 1px solid var(--line); padding: 17px; }
.os-head { font-family: var(--font-disp); font-weight: 700; font-size: 14px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 10px; }
.os-item { display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; padding: 3px 0; color: #C7CFDC; }
.os-line { display: flex; justify-content: space-between; font-size: 14px; padding: 3px 0; }
.order-steps { display: grid; gap: 0; margin: 8px 0; }
.ostep { display: flex; gap: 12px; align-items: flex-start; padding: 7px 0; color: var(--mut); font-size: 14px; }
.ostep-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--line2); margin-top: 5px; flex: none; }
.ostep.done { color: var(--text); }
.ostep.done .ostep-dot { background: var(--ok); box-shadow: 0 0 8px rgba(74, 222, 128, .6); }
.ostep.now { color: var(--acc); }
.ostep.now .ostep-dot { background: var(--acc); box-shadow: 0 0 8px rgba(245, 196, 0, .6); }
.status { display: inline-block; padding: 4px 11px; font-size: 12.5px; font-weight: 600; }
.status-new { background: var(--warn-soft); color: var(--warn); }
.status-reported { background: rgba(96, 165, 250, .14); color: #60A5FA; }
.status-paid { background: var(--ok-soft); color: var(--ok); }
.status-shipped { background: rgba(96, 165, 250, .14); color: #60A5FA; }
.status-done { background: var(--ok-soft); color: var(--ok); }
.status-cancelled { background: var(--bad-soft); color: var(--bad); }
.track { background: var(--bg2); border: 1px dashed var(--line2); padding: 10px 12px; font-family: ui-monospace, monospace; font-size: 14px; }
.track-row { display: flex; gap: 10px; align-items: center; }
.pay-card { background: var(--card); border: 1px solid var(--line2); padding: 20px; display: grid; gap: 13px; }
.pay-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.pay-total { display: flex; gap: 12px; align-items: baseline; }
.pay-total span { font-size: 14px; color: var(--mut); font-weight: 500; }
.pay-total b { font-family: var(--font-disp); font-size: 26px; font-weight: 800; color: var(--acc); font-variant-numeric: tabular-nums; }
.pay-methods-title { font-size: 13px; color: var(--mut); }
.pay-method { background: var(--bg2); border: 1px solid var(--line); }
.pay-method summary { display: flex; gap: 11px; align-items: center; padding: 13px 15px; cursor: pointer; list-style: none; font-weight: 600; font-size: 14px; }
.pay-method summary::-webkit-details-marker { display: none; }
.pm-ico { color: var(--acc); display: grid; place-items: center; }
.pm-name { flex: 1; }
.pm-note { color: var(--mut); font-weight: 400; font-size: 12.5px; }
.pm-chevron { color: var(--mut); transition: transform .2s; }
.pay-method[open] .pm-chevron { transform: rotate(180deg); }
.pm-body { padding: 0 15px 15px; display: grid; gap: 10px; font-size: 14px; color: #C7CFDC; }
.pay-qr { display: grid; place-items: center; padding: 14px; background: #fff; justify-self: center; }
.pay-qr img { display: block; }
.pay-req { display: grid; gap: 6px; font-size: 13.5px; }
.req-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.req-table td { padding: 7px 9px; border-bottom: 1px solid var(--line); }
.req-table td:first-child { color: var(--mut); white-space: nowrap; }
.pay-secure { color: var(--mut); font-size: 12px; text-align: center; }
.pay-waiting { display: flex; gap: 10px; align-items: center; color: var(--warn); font-size: 13.5px; }
.pay-after { color: var(--mut); font-size: 13px; }
.pay-steps { display: grid; gap: 6px; font-size: 13.5px; color: var(--text); }
.pay-sbp-now { display: grid; gap: 10px; }
.how-steps { display: grid; gap: 10px; margin: 12px 0; padding-left: 18px; }
.how-steps li { padding-left: 6px; }
.how-steps li::marker { color: var(--acc); font-weight: 700; }

/* ---------------------------------------------------- flash/доки */
.flashes { margin: 14px max(28px, calc((100% - 1104px) / 2)) 0; display: grid; gap: 8px; }
.flash { background: var(--ok-soft); border: 1px solid rgba(74, 222, 128, .35); color: var(--ok); padding: 11px 15px; font-size: 14px; }
.flash-warn { background: var(--warn-soft); border-color: rgba(251, 191, 36, .35); color: var(--warn); }
.doc { max-width: 760px; margin: 26px auto 60px; font-size: 15px; }
.doc h1 { margin-bottom: 16px; text-transform: uppercase; }
.doc h2 { font-size: 17px; margin: 24px 0 8px; }
.doc p, .doc li { color: #C7CFDC; }
.is-shop .doc p, .is-shop .doc li { color: #2A2E33; }
.is-shop .doc .mut { color: var(--mut); }
.is-shop .doc h1, .is-shop .doc h2 { color: var(--text); }
.doc ul, .doc ol { padding-left: 20px; display: grid; gap: 6px; margin: 8px 0; }
.doc a { color: var(--acc); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); background: var(--card); margin: 12px 0; }
.empty { color: var(--mut); padding: 30px 0; }

/* ---------------------------------------------------- касса */
.kassa { max-width: 820px; margin: 20px auto 50px; }
.kassa-head { display: grid; gap: 6px; margin-bottom: 18px; }
.kassa-head h1 { text-transform: uppercase; }
.kassa-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; align-items: start; padding: 16px; border: 1px solid var(--line2); background: var(--card); }
.kassa-field { display: grid; gap: 7px; align-content: start; }
.kf-lbl { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--mut); display: flex; align-items: baseline; gap: 8px; }
.kf-opt { text-transform: none; letter-spacing: 0; font-weight: 500; font-size: 11px; color: var(--mut); opacity: .8; }
.kf-wide { grid-column: 1 / -1; }
.kf-submit { grid-column: 1 / -1; }
.kassa-input { position: relative; display: block; }
.kassa-input input { width: 100%; height: 54px; padding: 0 40px 0 14px; font: inherit; font-size: 24px; border: 1px solid var(--line); background: var(--bg2); color: var(--text); }
.kassa-input input:focus { outline: none; border-color: var(--acc); }
.kassa-cur { position: absolute; right: 14px; top: 50%; translate: 0 -50%; color: var(--mut); font-size: 20px; }
.kassa-note { width: 100%; height: 54px; padding: 0 14px; font: inherit; font-size: 15px; color: var(--text); background: var(--bg2); border: 1px solid var(--line); }
.kassa-note:focus { outline: none; border-color: var(--acc); }
.kassa-form .btn { height: 54px; }
@media (max-width: 640px) { .kassa-form { grid-template-columns: 1fr; } }
.kassa-qr { display: flex; gap: 22px; flex-wrap: wrap; align-items: flex-start; margin: 20px 0; padding: 20px; border: 1px solid rgba(245, 196, 0, .5); background: var(--card); }
.kassa-qr .qr-box { background: #fff; padding: 10px; }
.kassa-side { flex: 1 1 260px; display: grid; gap: 10px; align-content: start; justify-items: start; }
.kassa-sum { font-family: var(--font-disp); font-size: clamp(28px, 5vw, 40px); font-weight: 800; color: var(--acc); }
.kassa-state { font-weight: 700; font-size: 14px; color: var(--warn); padding: 7px 13px; border: 1px solid var(--line2); background: var(--warn-soft); }
.kassa-state.on { color: var(--acc-ink); background: var(--ok); border-color: transparent; }
.kassa-list { margin-top: 28px; }
.kassa-list h2 { font-size: 18px; margin-bottom: 10px; text-transform: uppercase; }
.kassa-tbl { display: grid; gap: 8px; }
.kassa-row { display: flex; gap: 16px; align-items: center; padding: 12px 16px; border: 1px solid var(--line); background: var(--card); color: var(--text); }
.kassa-row:hover { border-color: var(--line2); color: var(--text); }
.kassa-row-sum { font-weight: 700; min-width: 110px; font-variant-numeric: tabular-nums; color: var(--acc); }
.kassa-row-main { display: grid; gap: 2px; flex: 1; min-width: 0; }
.kassa-status { font-size: 12.5px; font-weight: 700; padding: 4px 10px; background: var(--bg2); border: 1px solid var(--line); color: var(--mut); white-space: nowrap; }
.kassa-status.k-paid, .kassa-status.k-done, .kassa-status.k-shipped { color: var(--ok); background: var(--ok-soft); border-color: transparent; }
.kassa-status.k-cancelled { color: var(--bad); background: var(--bad-soft); border-color: transparent; }

/* ---------------------------------------------------- админка */
.admin-nav { display: flex; gap: 8px; flex-wrap: wrap; margin: 22px 0 16px; align-items: center; }
.admin-nav a { padding: 8px 14px; background: var(--card); border: 1px solid var(--line); font-size: 13.5px; font-weight: 600; color: var(--mut); }
.admin-nav a.on, .admin-nav a:hover { color: var(--acc-ink); background: var(--acc); border-color: var(--acc); }
.admin-logout { margin-left: auto; }
.admin-tabs, .admin-toolbar, .admin-filter { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 14px; align-items: center; }
.atab { padding: 7px 12px; background: var(--card); border: 1px solid var(--line); font-size: 13px; color: var(--mut); }
.atab.on { color: var(--acc-ink); background: var(--acc); border-color: var(--acc); font-weight: 600; }
.atable { width: 100%; border-collapse: collapse; font-size: 13.5px; background: var(--card); border: 1px solid var(--line); }
.atable th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .07em; color: var(--mut); padding: 10px 12px; border-bottom: 1px solid var(--line2); }
.atable td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.atable tr:hover td { background: var(--card2); }
.row-off td { opacity: .45; }
.row-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.admin-form { display: grid; gap: 10px; max-width: 640px; }
.auth-card { max-width: 400px; margin: 60px auto; background: var(--card); border: 1px solid var(--line2); padding: 26px; display: grid; gap: 12px; }
.order-search { display: flex; gap: 8px; margin: 0 0 14px; flex-wrap: wrap; }
.order-search input { flex: 1; min-width: 220px; }
.money-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; margin: 14px 0; }
.money-card { background: var(--card); border: 1px solid var(--line); padding: 14px 16px; display: grid; gap: 3px; }
.money-card.money-main { border-color: var(--acc); }
.money-label { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--mut); }
.money-value { font-family: var(--font-disp); font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; }
.money-main .money-value { color: var(--acc); }
.money-note { font-size: 12px; color: var(--mut); }
.money-range { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 0 0 12px; }
.money-range input[type=date] { padding: 8px 10px; background: var(--bg2); border: 1px solid var(--line); color: var(--text); font: inherit; font-size: 13.5px; }
.chart-card { background: var(--card); border: 1px solid var(--line); padding: 18px; margin: 14px 0; }
.chart-head { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.chart-legend { display: flex; gap: 14px; color: var(--mut); font-size: 12.5px; align-items: center; }
.dot-turn, .dot-net, .dot-deliv { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 5px; }
.dot-turn { background: var(--line2); } .dot-net { background: var(--acc); } .dot-deliv { background: #60A5FA; }
.bars { display: flex; gap: 6px; align-items: flex-end; height: 150px; margin-top: 14px; }
.bar-col { flex: 1; display: grid; gap: 5px; justify-items: center; align-content: end; }
.bar-track { width: 100%; max-width: 38px; height: 120px; display: flex; align-items: flex-end; background: var(--bg2); }
.bar-day { font-size: 10.5px; color: var(--mut); }
.split { display: flex; height: 26px; overflow: hidden; margin: 10px 0 8px; }
.split-part { display: grid; place-items: center; font-size: 11.5px; font-weight: 700; min-width: 0; width: calc(var(--w) * 1%); }
.split-goods { background: var(--line2); color: var(--text); }
.split-deliv { background: var(--acc); color: var(--acc-ink); }
.split-legend { display: flex; gap: 16px; color: var(--mut); font-size: 12.5px; }
.ranks { display: grid; gap: 10px; margin-top: 12px; }
.rank-top { display: flex; justify-content: space-between; font-size: 13.5px; }
.rank-name { font-weight: 500; }
.rank-sum { color: var(--acc); font-weight: 600; font-variant-numeric: tabular-nums; }
.rank-track { height: 7px; background: var(--bg2); }
.rank-fill { height: 100%; width: calc(var(--w) * 1%); background: linear-gradient(90deg, rgba(245, 196, 0, .35), var(--acc)); }
.mail-item { background: var(--card); border: 1px solid var(--line); padding: 13px 15px; margin-bottom: 10px; }
.mail-body { white-space: pre-wrap; font-size: 13px; color: #C7CFDC; background: var(--bg2); padding: 12px; margin-top: 8px; }
.pager-line { display: flex; gap: 10px; align-items: center; margin: 18px 0; }
.pager-btns { display: flex; gap: 8px; }

/* ---------------------------------------------------- адаптив */
@media (max-width: 1080px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .pd { grid-template-columns: 1fr; }
  .pd-buy { position: static; }
  .df-row { grid-template-columns: 1fr 1fr; }
  .promise { grid-template-columns: 1fr; }
  .cart-layout, .order-grid, .checkout-layout { grid-template-columns: 1fr; }
  .cart-summary { position: static; }
}
@media (max-width: 900px) {
  /* сайдбар уходит за левый край, бургер выкатывает его поверх */
  .shell { grid-template-columns: 1fr; }
  .side {
    position: fixed; left: 0; top: 0; bottom: 0; z-index: 90; width: 280px;
    transform: translateX(-100%); transition: transform .25s ease;
    box-shadow: 24px 0 60px rgba(0, 0, 0, .5);
  }
  .nav-toggle:checked ~ .shell .side { transform: translateX(0); }
  .scrim {
    display: block; position: fixed; inset: 0; z-index: 80;
    background: rgba(4, 6, 10, .6); opacity: 0; pointer-events: none; transition: opacity .25s;
  }
  .nav-toggle:checked ~ .shell .scrim { opacity: 1; pointer-events: auto; }
  .burger { display: block; }
  .bar-logo { display: inline; }
  .bar { padding: 11px 16px; gap: 10px; }
  .bar-link { display: none; }
  .content { padding: 0 16px 40px; }
  .deck-foot { padding: 22px 16px 18px; }
}
@media (max-width: 640px) {
  body { font-size: 15px; }
  .bar-cart-word { display: none; }
  .bar-cart { padding: 10px 13px; }
  .tiles { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .bento { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .tile-hero { grid-column: span 2; grid-row: auto; }
  .tile-hero .tile-cover { min-height: 240px; }
  .rail { grid-auto-columns: 178px; }
  .form-row { grid-template-columns: 1fr; }
  .cart-item { grid-template-columns: 64px 1fr; }
  .ci-cover { width: 64px; height: 64px; }
  .ci-controls { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; }
  .df-row { grid-template-columns: 1fr; gap: 18px; }
  h1 { font-size: 24px; }
  .cmd-h { font-size: 32px; }
  .scene { height: 300px; }
  .pd-buy { display: none; }          /* покупка уезжает в нижний док */
  .buy-dock { display: flex; }
  .content { padding-bottom: 84px; }  /* место под док */
  .kassa-input, .kassa-note, .kassa-form .btn { flex: 1 1 100%; }
}

/* ===== Деньги BOSSDROP: оборот и прибыль, каналы, график ===== */
.zv-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 18px 0; }
.zv-hero-card {
  position: relative; padding: 22px 24px 20px; background: var(--card);
  border: 1px solid var(--line2); display: grid; gap: 6px;
  clip-path: polygon(var(--ch) 0, 100% 0, 100% calc(100% - var(--ch)), calc(100% - var(--ch)) 100%, 0 100%, 0 var(--ch));
}
.zv-hero-card::after {
  content: ""; position: absolute; inset: 0 0 auto; height: 3px;
  background: linear-gradient(90deg, var(--acc), transparent 70%);
}
.zv-hero-label {
  font-family: var(--font-disp); font-size: 12px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--mut);
}
.zv-hero-value {
  font-family: var(--font-disp); font-size: clamp(26px, 4vw, 40px);
  font-weight: 700; line-height: 1.05; font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.zv-hero-profit { background: linear-gradient(135deg, var(--acc), var(--acc-hot)); border-color: var(--acc); }
.zv-hero-profit::after { display: none; }
.zv-hero-profit .zv-hero-label, .zv-hero-profit .zv-hero-sub { color: rgba(22, 16, 0, .72); }
.zv-hero-profit .zv-hero-value { color: var(--acc-ink); }
.zv-hero-sub { font-size: 13px; font-weight: 600; }

.zv-channels { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; margin: 0 0 18px; }
.zv-chan {
  padding: 16px 18px 14px; background: var(--bg2); border: 1px solid var(--line);
  display: grid; gap: 8px;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}
.zv-chan-head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.zv-chan-dot { width: 10px; height: 10px; flex-shrink: 0; align-self: center;
  clip-path: polygon(3px 0, 100% 0, 100% calc(100% - 3px), calc(100% - 3px) 100%, 0 100%, 0 3px); }
.zv-chan-api .zv-chan-dot { background: var(--acc); }
.zv-chan-kassa .zv-chan-dot { background: var(--text); }
.zv-chan-site .zv-chan-dot { background: var(--mut); }
.zv-chan-name { font-family: var(--font-disp); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.zv-chan-value { font-family: var(--font-disp); font-size: 24px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.zv-chan-meta { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--mut); flex-wrap: wrap; }
.zv-chan-meta b { color: var(--text); font-variant-numeric: tabular-nums; white-space: nowrap; }
.zv-share { height: 7px; background: var(--line); overflow: hidden;
  clip-path: polygon(2px 0, 100% 0, 100% calc(100% - 2px), calc(100% - 2px) 100%, 0 100%, 0 2px); }
.zv-share i { display: block; height: 100%; width: var(--w, 0%); min-width: 2px; transition: width .5s ease; }
.zv-chan-api .zv-share i { background: linear-gradient(90deg, #8a6f00, var(--acc) 60%, var(--acc-hot)); }
.zv-chan-kassa .zv-share i { background: linear-gradient(90deg, #5a6378, #c9d3e4 60%, #ffffff); }
.zv-chan-site .zv-share i { background: var(--mut); }

.zv-chart {
  padding: 20px 22px 16px; background: var(--card); border: 1px solid var(--line);
  margin-bottom: 18px;
  clip-path: polygon(var(--ch) 0, 100% 0, 100% calc(100% - var(--ch)), calc(100% - var(--ch)) 100%, 0 100%, 0 var(--ch));
}
.zv-chart-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.zv-chart-head h2, .zv-table-card h2 { font-family: var(--font-disp); font-size: 17px; margin: 0; }
.zv-legend { display: flex; gap: 14px; font-size: 12.5px; color: var(--mut); }
.zv-leg { display: inline-flex; align-items: center; gap: 6px; }
.zv-leg::before { content: ""; width: 9px; height: 9px;
  clip-path: polygon(3px 0, 100% 0, 100% calc(100% - 3px), calc(100% - 3px) 100%, 0 100%, 0 3px); }
.zv-leg-api::before { background: var(--acc); }
.zv-leg-kassa::before { background: var(--text); }
.zv-leg-site::before { background: var(--mut); }

.zv-bars {
  display: flex; align-items: stretch; gap: 6px; min-height: 190px;
  overflow-x: auto; padding: 26px 2px 2px;
  background:
    linear-gradient(var(--line) 1px, transparent 1px) 0 26px / 100% 41px no-repeat padding-box border-box,
    repeating-linear-gradient(to top, transparent 0 40px, var(--line) 40px 41px);
  background-clip: content-box;
}
.zv-day { flex: 1 1 0; min-width: 44px; display: grid; grid-template-rows: auto 1fr auto; gap: 6px; text-align: center; }
.zv-day-sum { font-size: 11.5px; color: var(--mut); font-variant-numeric: tabular-nums; white-space: nowrap; }
.zv-day:hover .zv-day-sum { color: var(--acc); }
.zv-day-bars { display: flex; align-items: flex-end; justify-content: center; gap: 3px; min-height: 120px; }
.zv-day-bars i {
  display: block; width: 16px; height: calc(var(--h, 0) * 1%); min-height: 3px;
  clip-path: polygon(4px 0, 100% 0, 100% 100%, 0 100%, 0 4px);
  transition: filter .15s ease;
}
.zv-day:hover .zv-day-bars i { filter: brightness(1.25); }
.zv-bar-api { background: linear-gradient(to top, #7a6200, var(--acc) 55%, var(--acc-hot)); }
.zv-bar-kassa { background: linear-gradient(to top, #6b7690, #cdd6e6 60%, #ffffff); }
.zv-bar-site { background: linear-gradient(to top, #3a4358, var(--mut)); }
.zv-day-date { font-size: 11px; color: var(--mut); }

.zv-table-card {
  padding: 20px 22px; background: var(--card); border: 1px solid var(--line);
  margin-bottom: 22px;
  clip-path: polygon(var(--ch) 0, 100% 0, 100% calc(100% - var(--ch)), calc(100% - var(--ch)) 100%, 0 100%, 0 var(--ch));
}
.zv-scroll { overflow-x: auto; }
.zv-table { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: 14px; }
.zv-table th {
  text-align: left; font-family: var(--font-disp); font-size: 11px;
  letter-spacing: .12em; text-transform: uppercase; color: var(--mut);
  padding: 8px 12px 8px 0; border-bottom: 1px solid var(--line2);
}
.zv-table td { padding: 9px 12px 9px 0; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; white-space: nowrap; }
.zv-table tbody tr:hover td { background: rgba(245, 196, 0, .04); }
.zv-td-date { color: var(--mut); }
.zv-td-profit { color: var(--acc); font-weight: 600; }
.zv-table tfoot td { border-bottom: none; border-top: 2px solid var(--line2); padding-top: 11px; font-weight: 600; }

@media (max-width: 700px) {
  .zv-hero { grid-template-columns: 1fr; }
  .zv-day { min-width: 38px; }
}

/* API-ключ в настройках */
.api-card {
  margin: 22px 0; padding: 20px 22px; background: var(--card);
  border: 1px solid var(--line); display: grid; gap: 10px; max-width: 720px;
  clip-path: polygon(var(--ch) 0, 100% 0, 100% calc(100% - var(--ch)), calc(100% - var(--ch)) 100%, 0 100%, 0 var(--ch));
}
.api-card h2 { font-family: var(--font-disp); font-size: 17px; margin: 0; }
.api-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.api-row code {
  padding: 6px 10px; background: var(--bg2); border: 1px solid var(--line2);
  font-size: 13px; overflow-wrap: anywhere;
}
.api-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* канал заказа */
.src-tabs { margin-top: -6px; align-items: center; }
.src-label { margin-right: 2px; }
.atab-sm { font-size: 12.5px; padding: 5px 11px; }
.src-badge {
  display: inline-block; margin-left: 6px; padding: 1.5px 7px 2.5px;
  font-family: var(--font-disp); font-size: 10.5px; letter-spacing: .08em;
  text-transform: uppercase; vertical-align: 2px;
  clip-path: polygon(4px 0, 100% 0, 100% calc(100% - 4px), calc(100% - 4px) 100%, 0 100%, 0 4px);
}
.src-badge-api { background: var(--acc); color: var(--acc-ink); }
.src-badge-kassa { background: var(--text); color: var(--bg); }

/* страница-инструкция API */
.api-docs { max-width: 780px; display: grid; gap: 4px; }
.api-pre {
  padding: 14px 16px; background: var(--bg2); border: 1px solid var(--line2);
  font-size: 13px; line-height: 1.55; overflow-x: auto; white-space: pre;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}
.api-docs code { color: var(--acc); }


/* ============================================================= BOSSDROP
   Витрина: техно-минимализм — белый, тонкие линии, чёрные кнопки.
   Админка и кабинет менеджера (body.is-admin) — те же светлые токены. */
body.is-shop, body.is-admin {
  --bg: #F6F7F8; --bg2: #EFF1F3; --card: #FFFFFF; --card2: #F6F7F8;
  --line: #E7E9EC; --line2: #D5D9DE;
  --text: #0B0D10; --mut: #7A828C;
  --acc: #4F46E5; --acc-hot: #4338CA; --acc-ink: #FFFFFF;
  --acc-soft: rgba(79, 70, 229, .10); --acc-line: rgba(79, 70, 229, .28);
  --ok: #178A4C; --ok-soft: rgba(23, 138, 76, .10);
  --warn: #9A6B00; --warn-soft: rgba(154, 107, 0, .10);
  --bad: #C43D2F; --bad-soft: rgba(196, 61, 47, .10);
  --photo: #FFFFFF; --ch: 0px;
  --font-disp: 'Inter', -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Inter', -apple-system, 'Segoe UI', sans-serif;
  --shadow: 0 1px 2px rgba(11, 13, 16, .04), 0 8px 24px rgba(11, 13, 16, .05);
  background: var(--bg); color: var(--text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

/* ---------- шапка ---------- */
.t-top {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, .92); border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.is-admin .t-top { background: var(--bg); border-bottom: 1px solid var(--line); }
.t-top-in {
  max-width: 1200px; margin: 0 auto; padding: 13px 28px;
  display: flex; align-items: center; gap: 24px;
}
.t-logo { display: inline-flex; align-items: center; gap: 9px; color: var(--text); }
.t-logo-word { font-weight: 800; font-size: 19px; letter-spacing: .06em; }
.t-logo-mark {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2.5px;
  width: 20px; height: 20px; flex: none;
}
.t-logo-mark i { border-radius: 4px; background: var(--text); }
.t-logo-mark i:nth-child(2) { background: var(--acc); }
.t-nav { display: flex; gap: 20px; align-items: center; font-size: 14px; font-weight: 500; }
.t-nav > a { color: var(--text); }
.t-nav > a:hover { color: var(--acc); }
.t-cats { position: relative; }
.t-cats summary {
  list-style: none; cursor: pointer; font-weight: 500; color: var(--text);
  display: inline-flex; align-items: center; gap: 5px;
}
.t-cats summary::after { content: "▾"; font-size: 10px; color: var(--mut); }
.t-cats[open] summary { color: var(--mut); }
.t-cats-menu {
  position: absolute; left: -14px; top: calc(100% + 12px); z-index: 70;
  display: grid; grid-template-columns: 1fr 1fr; gap: 2px 18px;
  min-width: 430px; padding: 14px 16px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 14px; box-shadow: 0 16px 44px rgba(11, 13, 16, .12);
}
.t-cats-menu a { padding: 7px 6px; border-radius: 8px; color: var(--text); font-weight: 400; }
.t-cats-menu a:hover { background: var(--bg); color: var(--text); }
.t-search { margin-left: auto; flex: 0 1 300px; }
.t-search input {
  width: 100%; padding: 9px 15px; font: inherit; font-size: 14px;
  background: var(--bg); color: var(--text);
  border: 1px solid var(--line); border-radius: 10px;
  transition: border-color .15s, background .15s;
}
.t-search input:focus {
  outline: none; border-color: var(--acc); background: #fff;
  box-shadow: 0 0 0 3px var(--acc-soft);
}
.t-search input::placeholder { color: var(--mut); }
.t-cart {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  padding: 9px 17px; border-radius: 10px;
  background: var(--acc); color: #fff; font-size: 14px; font-weight: 600;
}
.t-cart:hover { background: var(--acc-hot); color: #fff; }
.t-cart-n {
  background: #fff; color: var(--acc); border-radius: 999px;
  font-size: 11.5px; font-weight: 700; padding: 1px 7px;
}
.t-burger { display: none; position: relative; }
.t-burger summary { list-style: none; cursor: pointer; font-size: 19px; padding: 5px 10px; }
.t-burger-nav {
  position: absolute; right: 0; top: calc(100% + 10px); z-index: 70;
  display: grid; gap: 1px; width: min(76vw, 320px); max-height: 70vh; overflow: auto;
  padding: 12px; background: var(--card); border: 1px solid var(--line);
  border-radius: 14px; box-shadow: 0 16px 44px rgba(11, 13, 16, .14);
}
.t-burger-nav a { padding: 9px 8px; border-radius: 8px; color: var(--text); font-size: 14.5px; }
.t-burger-nav a:hover { background: var(--bg); }
.t-burger-sep { margin-top: 8px; border-top: 1px solid var(--line); padding-top: 12px !important; }
.t-search-m input {
  width: 100%; margin-bottom: 8px; padding: 9px 13px; font: inherit;
  border: 1px solid var(--line); border-radius: 9px; background: var(--bg);
}

/* ---------- полоса-условия ---------- */
.t-strip {
  display: flex; justify-content: center; gap: 34px; flex-wrap: wrap;
  padding: 9px 20px; font-size: 12.5px; color: var(--mut);
  border-bottom: 1px solid var(--line); background: #fff;
}
.t-strip span { position: relative; }
.t-strip span + span::before {
  content: ""; position: absolute; left: -19px; top: 50%; translate: 0 -50%;
  width: 3px; height: 3px; border-radius: 50%; background: var(--line2);
}

/* ---------- каркас ---------- */
.t-main { max-width: 1200px; margin: 0 auto; padding: 0 28px 64px; }
.is-shop .flashes { max-width: 1200px; margin: 16px auto 0; padding: 0 28px; }
.is-admin .t-main { max-width: 1280px; padding-top: 20px; }
.is-admin .t-foot, .is-admin .t-strip { display: none; }

/* ---------- хиро ---------- */
.t-hero { text-align: center; padding: 66px 0 58px; }
.t-hero-h {
  font-size: clamp(34px, 5vw, 58px); font-weight: 800; letter-spacing: -.025em;
  line-height: 1.06; margin: 0 0 18px;
}
.t-hero-sub { max-width: 560px; margin: 0 auto; color: var(--mut); font-size: 16.5px; line-height: 1.6; }
.t-hero-actions { display: flex; justify-content: center; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.t-btn-quiet { background: var(--card); border: 1px solid var(--line2); color: var(--text); }
.t-btn-quiet:hover { border-color: var(--text); color: var(--text); }

/* ---------- секции ---------- */
.t-sec { margin-top: 54px; }
.t-sec-head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 18px; }
.t-sec-head h2 { font-size: 24px; font-weight: 700; letter-spacing: -.015em; margin: 0; }
.t-sec-link { margin-left: auto; font-size: 14px; color: var(--mut); }
.t-sec-link:hover { color: var(--acc); }

/* ---------- категории плитками ---------- */
.t-cats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.t-cat-tile {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 18px 18px; background: var(--card); border: 1px solid var(--line);
  border-radius: 14px; color: var(--text); font-weight: 600; font-size: 15px;
  transition: border-color .12s ease, transform .12s ease, box-shadow .12s ease;
}
.t-cat-tile:hover {
  border-color: var(--text); transform: translateY(-2px);
  box-shadow: var(--shadow); color: var(--text);
}
.t-cat-count {
  font-size: 12px; font-weight: 600; color: var(--mut);
  background: var(--bg); border-radius: 999px; padding: 3px 9px;
}

/* ---------- карточки товаров ---------- */
.t-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(225px, 1fr)); gap: 14px; }
.t-card {
  display: grid; grid-template-rows: auto 1fr;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  color: var(--text); overflow: hidden;
  transition: border-color .12s ease, transform .12s ease, box-shadow .12s ease;
}
.t-card:hover { border-color: var(--acc-line); transform: translateY(-3px); box-shadow: var(--shadow); color: var(--text); }
.t-card-photo { position: relative; display: grid; place-items: center; background: #fff; aspect-ratio: 1 / .9; padding: 18px; }
.t-card-photo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.t-card-sale {
  position: absolute; top: 10px; left: 10px;
  font-size: 12px; font-weight: 700; color: #fff;
  background: var(--bad); border-radius: 8px; padding: 3px 8px;
}
.t-card-body { display: grid; gap: 3px; padding: 12px 14px 14px; border-top: 1px solid var(--line); align-content: start; }
.t-card-title { font-weight: 600; font-size: 14px; line-height: 1.35; }
.t-card-sub { font-size: 12.5px; color: var(--mut); min-height: 16px; }
.t-card-row { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-top: 6px; flex-wrap: wrap; }
.t-card-price { font-weight: 700; font-size: 15.5px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.t-card-price s { color: var(--mut); font-weight: 400; font-size: 12.5px; margin-left: 5px; }
.t-card-stock { font-size: 11.5px; font-weight: 500; color: var(--warn); }
.t-card-stock.ok { color: var(--ok); }

/* ---------- преимущества ---------- */
.t-benefits {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 60px;
}
.t-benefit {
  display: grid; gap: 6px; padding: 20px 22px;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
}
.t-benefit b { font-size: 15.5px; }
.t-benefit .mut { font-size: 13.5px; line-height: 1.55; }

/* ---------- страницы каталога ---------- */
.t-page-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin: 26px 0 18px; }
.t-page-head h1 { font-size: clamp(26px, 3.6vw, 38px); font-weight: 800; letter-spacing: -.02em; margin: 0; }
.is-shop .crumbs { margin-top: 18px; font-size: 13px; color: var(--mut); }
.is-shop .crumbs a { color: var(--mut); }
.is-shop .crumbs a:hover { color: var(--text); }

/* ---------- товар ---------- */
.t-pd { display: grid; grid-template-columns: 1.05fr 1fr; gap: 30px; margin-top: 20px; align-items: start; }
.t-pd-photo {
  position: sticky; top: 86px; display: grid; place-items: center;
  background: #fff; border: 1px solid var(--line); border-radius: 20px;
  min-height: 420px; padding: 34px;
}
.t-pd-photo img { max-width: 100%; max-height: 520px; object-fit: contain; }
.t-pd-kicker { font-size: 13px; margin-bottom: 8px; }
.t-pd-h { font-size: clamp(24px, 3vw, 34px); font-weight: 800; letter-spacing: -.02em; line-height: 1.15; margin: 0 0 6px; }
.t-pd-sub { font-size: 15px; }
.t-pd-meta { font-size: 13.5px; margin-top: 8px; }
.t-pd-buy {
  margin: 20px 0 8px; padding: 20px;
  background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  display: grid; gap: 14px; box-shadow: var(--shadow);
}
.t-pd-price-row { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.t-pd-price { font-size: 32px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.t-pd-old { color: var(--mut); font-size: 16px; }
.t-pd-stock { font-size: 13px; font-weight: 600; color: var(--warn); margin-left: auto; }
.t-pd-stock.ok { color: var(--ok); }
.t-pd-notes { margin: 0; padding: 0; list-style: none; display: grid; gap: 5px; font-size: 13px; }
.t-pd-notes li { position: relative; padding-left: 16px; }
.t-pd-notes li::before {
  content: ""; position: absolute; left: 0; top: .5em;
  width: 6px; height: 6px; border-radius: 50%; background: var(--ok);
}
.t-pd-block { margin-top: 22px; }
.t-pd-block h3 { font-size: 16px; font-weight: 700; margin: 0 0 10px; }
.t-specs { margin: 0; padding: 0; list-style: none; }
.t-specs li { padding: 8px 2px; border-bottom: 1px solid var(--line); font-size: 14px; }
.t-pd-desc { line-height: 1.65; font-size: 14.5px; white-space: pre-line; color: #2E3237; }

/* ---------- футер ---------- */
.t-foot { background: #fff; border-top: 1px solid var(--line); margin-top: 72px; }
.t-foot-grid {
  max-width: 1200px; margin: 0 auto; padding: 44px 28px 28px;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px;
}
.t-foot-brand { display: grid; gap: 14px; align-content: start; }
.t-foot-brand .mut { font-size: 13.5px; line-height: 1.6; }
.t-foot-col { display: grid; gap: 9px; align-content: start; font-size: 14px; }
.t-foot-col b { font-size: 12.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--mut); margin-bottom: 3px; }
.t-foot-col a { color: var(--text); }
.t-foot-col a:hover { color: var(--mut); }
.t-foot-bottom {
  max-width: 1200px; margin: 0 auto; padding: 16px 28px 26px;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  font-size: 12.5px; color: var(--mut);
}

/* ---------- витринные кнопки ---------- */
.is-shop .btn { border-radius: 12px; clip-path: none; font-weight: 600; }
.is-shop .btn-acc { background: var(--acc); border-color: var(--acc); color: #fff; }
.is-shop .btn-acc:hover { background: var(--acc-hot); border-color: var(--acc-hot); color: #fff; }
.is-shop .buy-dock { background: rgba(255, 255, 255, .95); border-top: 1px solid var(--line); }
.is-shop .chip { border-radius: 999px; }

/* ---------- адаптив ---------- */
@media (max-width: 1020px) {
  .t-pd { grid-template-columns: 1fr; }
  .t-pd-photo { position: static; min-height: 300px; }
}
@media (max-width: 880px) {
  .t-nav, .t-search { display: none; }
  .t-burger { display: block; margin-left: auto; }
  .t-top-in { gap: 12px; padding: 11px 16px; }
  .t-main { padding: 0 16px 46px; }
  .t-hero { padding: 44px 0 40px; }
  .t-benefits { grid-template-columns: 1fr; }
  .t-foot-grid { grid-template-columns: 1fr; gap: 24px; }
  .t-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
  .t-card-photo { padding: 10px; }
  .t-strip { gap: 18px; }
  .t-strip span + span::before { left: -11px; }
  .t-strip .t-strip-x { display: none; }
}

/* ---------- лейаут с сайдбаром ---------- */
.t-shell { max-width: 1240px; margin: 0 auto; padding: 0 28px; }
.t-shell .t-main { max-width: none; padding: 0 0 64px; }
.t-shell.has-side {
  display: grid; grid-template-columns: 248px minmax(0, 1fr);
  gap: 26px; align-items: start;
}
.t-side { position: sticky; top: 84px; display: grid; gap: 14px; padding-bottom: 40px; }
.t-side-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 16px; padding: 8px; overflow: hidden;
}
.t-side-title {
  font-size: 12.5px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .07em; color: var(--mut); padding: 10px 12px 6px;
}
.t-side-nav { display: grid; }
.t-side-nav a {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 8.5px 12px; border-radius: 10px; color: var(--text);
  font-size: 14px; font-weight: 500;
}
.t-side-nav a:hover { background: var(--bg); color: var(--text); }
.t-side-nav a.on { background: var(--acc-soft); color: var(--acc); font-weight: 600; }
.t-side-nav a i {
  font-style: normal; font-size: 11.5px; font-weight: 600; color: var(--mut);
  background: var(--bg); border-radius: 999px; padding: 1px 8px;
}
.t-side-nav a.on i { background: #fff; color: var(--acc); }
.t-side-help { padding: 16px 16px 14px; display: grid; gap: 5px; }
.t-side-help b { font-size: 14.5px; }
.t-side-help .mut { font-size: 12.5px; line-height: 1.5; }
.t-side-link { font-size: 13.5px; font-weight: 600; color: var(--acc); margin-top: 4px; }
.t-side-link:hover { color: var(--acc-hot); }

/* ---------- баннер-хиро ---------- */
.t-banner {
  display: grid; grid-template-columns: 1.25fr .9fr; gap: 20px; align-items: center;
  margin-top: 22px; padding: 34px 38px; border-radius: 22px; overflow: hidden;
  background:
    radial-gradient(640px 340px at 88% -20%, rgba(255, 255, 255, .22), transparent 60%),
    linear-gradient(126deg, #4F46E5, #6D28D9 88%);
  color: #fff; position: relative;
}
.t-banner-body { display: grid; gap: 12px; justify-items: start; }
.t-banner-kicker { font-size: 12.5px; font-weight: 600; letter-spacing: .05em; opacity: .78; text-transform: uppercase; }
.t-banner-h { font-size: clamp(26px, 3.2vw, 40px); font-weight: 800; letter-spacing: -.02em; line-height: 1.1; margin: 0; }
.t-banner-sub { font-size: 14.5px; line-height: 1.6; opacity: .88; max-width: 430px; margin: 0; }
.t-banner-actions { display: flex; align-items: center; gap: 18px; margin-top: 6px; flex-wrap: wrap; }
.t-btn-onacc { background: #fff; border-color: #fff; color: var(--acc); font-weight: 700; }
.t-btn-onacc:hover { background: #EEF0FF; border-color: #EEF0FF; color: var(--acc-hot); }
.t-banner-link { color: #fff; font-size: 14px; font-weight: 600; opacity: .9; }
.t-banner-link:hover { color: #fff; opacity: 1; }
.t-banner-product { position: relative; display: grid; justify-items: center; }
.t-banner-product img {
  max-width: 100%; max-height: 260px; object-fit: contain;
  filter: drop-shadow(0 22px 30px rgba(0, 0, 0, .35));
  transition: transform .18s ease;
}
.t-banner-product:hover img { transform: translateY(-4px) scale(1.02); }
.t-banner-tag {
  position: absolute; right: 2px; bottom: 2px;
  display: grid; gap: 1px; text-align: right;
  background: rgba(255, 255, 255, .96); color: var(--text);
  border-radius: 12px; padding: 8px 13px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .22);
}
.t-banner-tag b { font-size: 12.5px; }
.t-banner-tag span { font-size: 13.5px; font-weight: 700; color: var(--acc); }
@media (max-width: 1020px) {
  .t-shell.has-side { grid-template-columns: 1fr; }
  .t-side { display: none; }
  .t-banner { grid-template-columns: 1fr; padding: 26px 24px; }
  .t-banner-product { display: none; }
}

/* ============================================================= АДМИНКА BOSSDROP
   Светлая полировка поверх общих токенов: радиусы вместо скосов,
   индиго-акценты, карточки денег и покупателей в духе mezzo. */
body.is-admin { background: var(--bg); }
.is-admin h1, .is-admin h2, .is-admin h3 { letter-spacing: -.015em; }
.is-admin .admin-nav { margin: 6px 0 18px; }
.is-admin .admin-nav a { border-radius: 10px; background: var(--card); }
.is-admin .admin-nav a.on, .is-admin .admin-nav a:hover {
  color: #fff; background: var(--acc); border-color: var(--acc);
}
.is-admin .atab { border-radius: 9px; }
.is-admin .atab.on { color: #fff; }
.is-admin .atable { border-radius: 12px; overflow: hidden; }
.is-admin .auth-card { border-radius: 16px; border-color: var(--line); box-shadow: var(--shadow); }
.is-admin .btn { border-radius: 10px; clip-path: none; }
.is-admin .money-range input[type=date] {
  background: var(--card); border-radius: 9px;
}
.is-admin .money-range input[type=date]:focus {
  outline: none; border-color: var(--acc); box-shadow: 0 0 0 3px var(--acc-soft);
}
.is-admin .linklike {
  cursor: pointer; color: var(--mut); font-size: 13.5px; list-style: none;
}
.is-admin .linklike:hover { color: var(--acc); }
.money-range-box { margin: 0 0 12px; }

/* --- карточки цифр --- */
.is-admin .money-grid {
  grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); gap: 12px;
}
.is-admin .money-card {
  border-radius: 16px; padding: 18px 20px 16px; gap: 5px;
  border-color: var(--line); box-shadow: var(--shadow);
}
.is-admin .money-value { font-size: clamp(22px, 2.6vw, 30px); letter-spacing: -.01em; }
.is-admin .money-sub { font-size: 12.5px; }
.is-admin .money-card.money-main {
  background: linear-gradient(126deg, var(--acc), #6D28D9);
  border-color: transparent;
}
.is-admin .money-main .money-label { color: rgba(255, 255, 255, .72); }
.is-admin .money-main .money-value { color: #fff; }
.is-admin .money-main .money-sub { color: rgba(255, 255, 255, .78); }
.money-grid-mgr { max-width: 960px; }

/* --- каналы и графики: скосы → радиусы, индиго вместо жёлтого --- */
.is-admin .zv-chan { clip-path: none; border-radius: 14px; background: var(--card); box-shadow: var(--shadow); }
.is-admin .zv-chan-dot, .is-admin .zv-leg::before, .is-admin .zv-share,
.is-admin .zv-day-bars i, .is-admin .src-badge { clip-path: none; border-radius: 3px; }
.is-admin .zv-chan-dot { border-radius: 4px; }
.is-admin .zv-chart, .is-admin .zv-table-card, .is-admin .api-card {
  clip-path: none; border-radius: 16px; box-shadow: var(--shadow);
}
.is-admin .zv-share { border-radius: 99px; background: var(--bg2); }
.is-admin .zv-chan-api .zv-share i { background: linear-gradient(90deg, rgba(79, 70, 229, .35), var(--acc)); }
.is-admin .zv-chan-kassa .zv-share i { background: linear-gradient(90deg, rgba(11, 13, 16, .3), var(--text)); }
.is-admin .zv-bar-api { background: linear-gradient(to top, rgba(79, 70, 229, .45), var(--acc) 70%); }
.is-admin .zv-bar-kassa { background: linear-gradient(to top, rgba(11, 13, 16, .4), var(--text) 70%); }
.is-admin .zv-bar-site { background: linear-gradient(to top, rgba(122, 130, 140, .4), var(--mut) 70%); }
.is-admin .zv-day:hover .zv-day-bars i { filter: none; opacity: .82; }
.is-admin .zv-table tbody tr:hover td { background: var(--acc-soft); }
.is-admin .zv-td-profit { color: var(--acc); }
.is-admin .mail-body { color: var(--text); border-radius: 10px; }
.is-admin .api-row code { border-radius: 8px; }
.is-admin .api-pre { clip-path: none; border-radius: 12px; }
.is-admin .src-badge-api { color: #fff; }
.is-admin .src-badge-kassa { color: #fff; background: var(--text); }

/* --- покупатели (перенос buyer-card из mezzo) --- */
.buyer-cards {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 12px;
}
.buyer-card {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 15px 16px; background: var(--card); border: 1px solid var(--line);
  border-radius: 14px; box-shadow: var(--shadow);
  transition: border-color .12s ease, transform .12s ease, box-shadow .12s ease;
  text-decoration: none; color: inherit;
}
a.buyer-card { cursor: pointer; }
a.buyer-card:hover { transform: translateY(-2px); border-color: var(--acc); box-shadow: 0 10px 26px rgba(79, 70, 229, .12); }

/* страница покупателя (история заказов + поиск) */
.back-link { display: inline-block; margin: 0 0 14px; color: var(--mut); text-decoration: none; font-size: 14px; font-weight: 600; }
.back-link:hover { color: var(--acc); }
.bp-head { display: flex; align-items: center; gap: 16px; margin: 4px 0 18px; }
.bp-ava { width: 52px; height: 52px; font-size: 22px; flex: none; }
.bp-id h1 { font-size: 25px; margin: 0 0 3px; }
.bp-contacts { display: flex; align-items: center; gap: 8px 16px; flex-wrap: wrap; font-size: 14px; }
.bp-c { color: var(--text); }
.bp-c b { color: var(--mut); font-weight: 600; }
.bp-stats { margin-bottom: 10px; }
.bp-h2 { font-size: 19px; margin: 14px 0 10px; }
.bp-search { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 0 0 16px; }
.bp-q { flex: 1 1 320px; min-width: 220px; height: 44px; padding: 0 15px; font: inherit; font-size: 14px; border: 1px solid var(--line2); border-radius: 11px; background: var(--card); color: var(--text); }
.bp-q:focus { outline: none; border-color: var(--acc); }
.bp-date { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--mut); }
.bp-date input { height: 44px; padding: 0 12px; font: inherit; font-size: 14px; border: 1px solid var(--line2); border-radius: 11px; background: var(--card); color: var(--text); }
.bp-date input:focus { outline: none; border-color: var(--acc); }
.bp-search .btn { height: 44px; }
.bp-code { color: var(--acc); font-weight: 700; text-decoration: none; }
.bp-code:hover { text-decoration: underline; }
.bp-orders tr:first-child th { position: static; top: auto; }
.bp-orders td:nth-child(4) { max-width: 320px; font-size: 13px; }
.bp-orders td:nth-child(3) .fine { display: block; }
.buyer-card:hover { transform: translateY(-2px); border-color: var(--acc-line); }
.buyer-ava {
  position: relative; flex: none; width: 40px; height: 40px;
  display: grid; place-items: center; border-radius: 12px;
  background: var(--acc-soft); color: var(--acc);
  font-weight: 700; font-size: 16px;
}
.ava-top {
  position: absolute; top: -7px; right: -10px; font-style: normal;
  font-size: 8.5px; font-weight: 800; letter-spacing: .06em; color: #fff;
  background: var(--acc); border-radius: 6px; padding: 1.5px 5px;
}
.buyer-ava-nobody { background: var(--bg2); color: var(--mut); }
.buyer-main { display: grid; gap: 2px; min-width: 0; flex: 1; align-content: start; }
.buyer-name {
  font-size: 15px; line-height: 1.3;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.buyer-meta { font-size: 12.5px; }
.buyer-sub {
  font-size: 12px; color: var(--mut);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.buyer-turn { display: grid; justify-items: end; gap: 2px; flex: none; max-width: 47%; }
.buyer-turn-label {
  font-size: 10.5px; letter-spacing: .09em; text-transform: uppercase; color: var(--mut);
}
.buyer-turn > b { font-size: 16.5px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.buyer-fee { font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.buyer-card-nobody { background: var(--bg2); border-style: dashed; box-shadow: none; }

@media (max-width: 640px) {
  .is-admin .money-grid { grid-template-columns: 1fr 1fr; }
  .buyer-turn { max-width: none; }
}

/* --- админ-полировка: типографика и поля --- */
.is-admin .page-title { text-transform: none; letter-spacing: -.015em; }
.is-admin .admin-form input, .is-admin .admin-form textarea, .is-admin .admin-form select,
.is-admin .order-search input, .is-admin .admin-filter input {
  background: var(--card); border: 1px solid var(--line); border-radius: 9px;
  color: var(--text);
}
.is-admin .admin-form input:focus, .is-admin .admin-form textarea:focus,
.is-admin .order-search input:focus {
  outline: none; border-color: var(--acc); box-shadow: 0 0 0 3px var(--acc-soft);
}

/* --- страница входа для команды --- */
.auth-wrap { display: grid; place-items: center; min-height: calc(100vh - 220px); padding: 30px 0; }
.auth-card-v2 {
  width: min(400px, 100%); margin: 0; padding: 34px 32px 26px;
  border-radius: 20px; border-color: var(--line);
  box-shadow: 0 1px 2px rgba(11, 13, 16, .04), 0 24px 60px rgba(11, 13, 16, .10);
  display: grid; gap: 6px;
}
.auth-brand { display: flex; align-items: center; gap: 9px; margin-bottom: 14px; }
.auth-brand .t-logo-mark { width: 26px; height: 26px; gap: 3px; }
.auth-brand-word { font-weight: 800; font-size: 17px; letter-spacing: .06em; }
.auth-h { font-size: 24px; letter-spacing: -.02em; margin: 0; }
.auth-sub { color: var(--mut); font-size: 14px; margin: 0 0 16px; }
.auth-form { display: grid; gap: 14px; }
.auth-field { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: var(--text); }
.auth-field input {
  width: 100%; padding: 12px 14px; font: inherit; font-size: 15px; font-weight: 400;
  background: var(--card); color: var(--text);
  border: 1px solid var(--line2); border-radius: 11px;
  transition: border-color .15s, box-shadow .15s;
}
.auth-field input::placeholder { color: var(--mut); font-weight: 400; }
.auth-field input:focus {
  outline: none; border-color: var(--acc); box-shadow: 0 0 0 3px var(--acc-soft);
}
.auth-btn { margin-top: 4px; padding: 13px 18px; border-radius: 11px; font-size: 15px; }
.auth-note { color: var(--mut); font-size: 12.5px; margin: 14px 0 0; text-align: center; }

/* ============================================================= ШАПКА АДМИНКИ
   С 11.09.2026 (перенос из MEZZO): на /admin/... и /manager/... витрины
   (каталог, поиск, корзина, подвал) нет — одна тонкая липкая полоса:
   BOSSDROP · админка · смотреть магазин ↗, все разделы чипами и «Выйти» справа.
   Меню-троеточие «⋯» убрано. Вход и касса остаются витринными. */
.adm-head {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, .93);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
/* края полосы совпадают с краями контента (.t-shell: 1240px и поля 28px) */
.adm-row {
  max-width: 1240px; margin: 0 auto; padding: 14px 28px;
  display: flex; align-items: center; gap: 10px 18px;
}
/* без витрины страница начинается прямо под шапкой — даём воздух */
.adm-head ~ .t-shell .t-main { padding-top: 24px; }

/* слева: BOSSDROP · админка · смотреть магазин ↗ (витрина — в новой вкладке) */
.adm-brand { display: inline-flex; align-items: center; gap: 9px; flex: none; color: var(--text); }
.adm-brand:hover { color: var(--text); }
.adm-brand-word { font-weight: 800; font-size: 17px; letter-spacing: .06em; }
.adm-tag {
  font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--acc); background: var(--acc-soft); border: 1px solid var(--acc-line);
  border-radius: 999px; padding: 3px 10px; white-space: nowrap;
}
.adm-see { font-size: 13px; color: var(--mut); white-space: nowrap; }
.adm-see-ic { font-size: 12px; color: var(--mut); margin-left: -4px; }
.adm-brand:hover .adm-see, .adm-brand:hover .adm-see-ic { color: var(--acc); }

/* разделы — чипы; не влезли по ширине — катаются вбок */
.adm-menu {
  display: flex; align-items: center; gap: 2px; min-width: 0;
  overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.adm-menu::-webkit-scrollbar { display: none; }
.adm-menu a {
  display: inline-flex; align-items: center; gap: 6px; flex: none;
  padding: 9px 14px; border-radius: 999px; white-space: nowrap;
  color: var(--mut); font-size: 14px; font-weight: 600;
  transition: background .14s ease, color .14s ease;
}
.adm-menu a:hover { color: var(--text); background: rgba(11, 13, 16, .06); }
.adm-menu a.on { color: #fff; background: var(--acc); }
.adm-menu a.on:hover { color: #fff; background: var(--acc-hot); }
.adm-menu a svg { width: 14px; height: 14px; flex: none; }

/* справа — выход */
.adm-exit { margin: 0 0 0 auto; flex: none; }

@media (max-width: 1100px) {
  .adm-see { display: none; }          /* стрелка ↗ остаётся подсказкой */
}
/* телефон: две строки — сверху магазин и «Выйти», ниже чипы от края до края */
@media (max-width: 860px) {
  .adm-row { flex-wrap: wrap; padding: 10px 28px 8px; gap: 8px 12px; }
  .adm-menu {
    order: 3; width: calc(100% + 56px);
    margin-inline: -28px; padding-inline: 28px;
  }
}
@media (max-width: 480px) {
  .adm-brand { gap: 7px; }
  .adm-brand-word { font-size: 15px; }
  .adm-tag { font-size: 9.5px; letter-spacing: .08em; padding: 2px 7px; }
  .adm-menu a { padding: 7px 12px; font-size: 13.5px; }
  .adm-head .adm-exit-btn { height: 34px; padding: 0 11px; font-size: 12.5px; }
}

/* ---------- «Заказы»: период, канал, значок счёта (перенос из MEZZO) ---------- */
.ord-filters { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; margin: 0 0 8px; }
.ord-periods { margin: 0; }
.ord-range { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ord-f { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--mut); }
.ord-found { margin: 0 0 12px; font-size: 13px; color: var(--mut); }
.ord-found b { color: var(--text); font-weight: 600; }
.atable .ord-cell-thumb { width: 1%; padding-right: 0; }
.ord-thumb {
  display: grid; place-items: center; width: 44px; height: 44px;
  border: 1px solid var(--line); border-radius: 10px; background: #fff;
  object-fit: contain; padding: 3px;
}
/* счёт кассы или API — не товар: значок счёта вместо картинки */
.ord-thumb-bill { padding: 0; color: var(--mut); background: var(--bg2); border-style: dashed; }
.ord-thumb-bill svg { width: 24px; height: 24px; }
.tr-item-photo.tr-item-bill {
  display: grid; place-items: center; padding: 0;
  color: var(--mut); background: var(--bg2); border-style: dashed;
}
.tr-item-bill svg { width: 30px; height: 30px; }

/* ---------- «По датам»: «Итого» первой строкой, справа — доля прибыли ---------- */
.dates-table .dt-total td { font-weight: 700; background: var(--bg); border-bottom: 2px solid var(--line2); }
.dates-table .dt-share { color: var(--mut); font-variant-numeric: tabular-nums; white-space: nowrap; }
.dates-table .dt-total .dt-share { color: var(--text); }

/* ---------- покупатель = почта: аватарка-картинка и заголовок-почта ---------- */
.buyer-ava.has-art { background: none; box-shadow: 0 0 0 1px rgba(11, 13, 16, .07); }
.buyer-ava .ava-art { display: block; width: 100%; height: 100%; clip-path: inset(0 round 12px); }
.bp-ava { border-radius: 14px; }
.bp-ava .ava-art { clip-path: inset(0 round 14px); }
.buyer-ava-nobody svg { width: 22px; height: 22px; }
/* длинная почта переносится по «@», а не режется многоточием */
.buyer-name.buyer-email { white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; }
.bp-id { min-width: 0; }
.bp-id h1.bp-email { font-size: 24px; line-height: 1.2; overflow-wrap: anywhere; }
@media (max-width: 640px) { .bp-id h1.bp-email { font-size: 19px; } }
/* оборот покупателя: крупно USDT, строкой ниже рубли */
.buyer-turn > b { font-size: 17px; }
.buyer-rub { font-size: 12.5px; font-weight: 600; color: var(--mut); font-variant-numeric: tabular-nums; white-space: nowrap; }
/* «руб.»/«USDT» у крупной цифры: знак ₽ шрифт рисует как «!» — пишем словом */
.money-unit { font-style: normal; font-size: .62em; font-weight: 700; opacity: .72; letter-spacing: .02em; }

/* ============================================================= ДЕНЬГИ v2
   Красивый экран: шапка с формулой, сегмент-контрол периодов,
   карточки с глифами, живые пустые состояния. */
.mny-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 18px; flex-wrap: wrap; margin: 4px 0 16px;
}
.mny-head-main { display: grid; gap: 3px; }
.mny-head h1 { font-size: 30px; letter-spacing: -.025em; margin: 0; }
.mny-head-sub { color: var(--mut); font-size: 13.5px; }
.mny-head-sub b { color: var(--text); font-weight: 600; }

.mny-formula { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.mny-chip {
  padding: 6px 11px; border-radius: 999px; font-size: 12.5px; color: var(--mut);
  background: var(--card); border: 1px solid var(--line);
}
.mny-chip b { color: var(--text); font-variant-numeric: tabular-nums; }
.mny-chip-acc { background: var(--acc-soft); border-color: transparent; color: var(--acc); }
.mny-chip-acc b { color: var(--acc); }
.mny-formula-op { color: var(--mut); font-size: 13px; }

/* --- панель управления --- */
.mny-bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap; margin: 0 0 16px;
}
.mny-seg {
  display: flex; align-items: center; gap: 3px; padding: 4px;
  background: var(--bg2); border: 1px solid var(--line); border-radius: 12px;
}
.mny-seg-btn {
  display: inline-block; padding: 7px 13px; border-radius: 9px;
  font-size: 13px; font-weight: 500; color: var(--mut);
  white-space: nowrap; cursor: pointer; list-style: none; user-select: none;
  transition: color .12s ease, background .12s ease, box-shadow .12s ease;
}
.mny-seg-btn::-webkit-details-marker { display: none; }
.mny-seg-btn:hover { color: var(--text); }
.mny-seg-btn.on {
  color: var(--text); background: var(--card); font-weight: 600;
  box-shadow: 0 1px 2px rgba(11, 13, 16, .08), 0 3px 10px rgba(11, 13, 16, .06);
}
.mny-custom { position: relative; }
.mny-custom-pop {
  position: absolute; left: 0; top: calc(100% + 10px); z-index: 70;
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; background: var(--card); border: 1px solid var(--line);
  border-radius: 14px; box-shadow: 0 16px 44px rgba(11, 13, 16, .14);
}
.mny-custom-pop label { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--mut); }
.mny-custom-pop input[type=date] {
  padding: 8px 10px; font: inherit; font-size: 13.5px; color: var(--text);
  background: var(--bg); border: 1px solid var(--line); border-radius: 9px;
}
.mny-custom-pop input[type=date]:focus {
  outline: none; border-color: var(--acc); box-shadow: 0 0 0 3px var(--acc-soft);
}

.mny-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.mny-tool {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 14px; border-radius: 10px; cursor: pointer;
  font: inherit; font-size: 13px; font-weight: 500; color: var(--text);
  background: var(--card); border: 1px solid var(--line);
  transition: border-color .12s ease, box-shadow .12s ease, color .12s ease;
}
.mny-tool svg { width: 15px; height: 15px; color: var(--mut); transition: color .12s ease; }
.mny-tool:hover { border-color: var(--acc); color: var(--acc); box-shadow: 0 0 0 3px var(--acc-soft); }
.mny-tool:hover svg { color: var(--acc); }

/* --- карточки цифр --- */
.mny-grid { gap: 14px; margin: 0 0 16px; }
.mny-card { position: relative; overflow: hidden; padding: 20px 22px 18px; min-height: 128px; }
.mny-card .money-label { font-size: 11.5px; letter-spacing: .12em; }
.mny-card .money-value {
  display: flex; align-items: baseline; gap: 6px;
  font-size: clamp(26px, 2.8vw, 34px); font-weight: 800; letter-spacing: -.02em;
  margin: 2px 0 1px;
}
.mny-cur { font-style: normal; font-size: .48em; font-weight: 700; opacity: .6; letter-spacing: .02em; margin-left: 4px; }
/* вторая строка карточки — рубли, тише главной цифры в USDT */
.mny-usdt {
  display: block; font-size: 14px; font-weight: 600; letter-spacing: .01em;
  font-variant-numeric: tabular-nums; color: var(--mut); margin: 1px 0 2px;
}
.mny-card .mny-usdt { color: var(--mut); }
.money-main.mny-card .mny-usdt { color: rgba(255, 255, 255, .78); }
.mny-glyph {
  position: absolute; top: 18px; right: 18px; width: 22px; height: 22px;
  color: var(--mut); opacity: .8;
}
.is-admin .money-main.mny-card {
  background: linear-gradient(126deg, #5B54F0 0%, var(--acc) 34%, #6D28D9 100%);
}
.money-main.mny-card::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(340px 160px at 108% -30%, rgba(255, 255, 255, .22), transparent 70%),
    radial-gradient(240px 140px at -12% 118%, rgba(255, 255, 255, .10), transparent 65%);
  pointer-events: none;
}
.money-main.mny-card > * { position: relative; }
.money-main .mny-glyph { color: rgba(255, 255, 255, .85); opacity: 1; }
.mny-card { transition: transform .14s ease, box-shadow .14s ease; }
.mny-card:hover { transform: translateY(-2px); box-shadow: 0 3px 8px rgba(11, 13, 16, .06), 0 16px 38px rgba(11, 13, 16, .10); }

/* --- панели и пустые состояния --- */
.mny-panel { padding: 22px 24px 20px; }
.mny-empty {
  display: grid; gap: 4px; justify-items: center; text-align: center;
  padding: 38px 20px 34px; color: var(--text);
}
.mny-empty-glyph {
  display: grid; place-items: center; width: 52px; height: 52px;
  margin-bottom: 8px; border-radius: 16px;
  background: var(--acc-soft); color: var(--acc);
}
.mny-empty-glyph svg { width: 26px; height: 26px; }
.mny-empty b { font-size: 15.5px; }
.mny-empty .mut { font-size: 13.5px; max-width: 360px; line-height: 1.55; }

@media (max-width: 900px) {
  .mny-seg { overflow-x: auto; max-width: 100%; }
  .mny-custom { position: static; }
  .mny-custom-pop { left: 16px; right: 16px; flex-wrap: wrap; }
}

/* глиф не наезжает на подпись в узкой карточке */
.mny-card .money-label { padding-right: 34px; }
.mny-card .money-sub { padding-right: 6px; }

/* глиф остаётся в углу и на акцентных карточках:
   правило .money-main.mny-card > * делало его relative */
.money-main.mny-card > .mny-glyph { position: absolute; }

/* --- кнопка «Выйти» рядом с меню-троеточием --- */
.adm-exit-btn {
  display: inline-flex; align-items: center; gap: 7px; height: 38px;
  padding: 0 14px; border-radius: 10px; cursor: pointer;
  font: inherit; font-size: 13px; font-weight: 500; color: var(--text);
  background: var(--card); border: 1px solid var(--line);
  transition: border-color .12s ease, box-shadow .12s ease, color .12s ease;
}
.adm-exit-btn svg { width: 15px; height: 15px; color: var(--mut); transition: color .12s ease; }
.adm-exit-btn:hover { border-color: var(--bad); color: var(--bad); box-shadow: 0 0 0 3px var(--bad-soft); }
.adm-exit-btn:hover svg { color: var(--bad); }

/* ============================================================= КАССА BOSSDROP
   Светлый «чек» в духе mezzo: карточки с мягкой тенью, перфорация
   между QR и суммой, янтарная пульс-пилюля «Ждём оплату…». */
.is-shop .kassa { max-width: 860px; margin: 22px auto 56px; }
.is-shop .kassa-head { margin-bottom: 20px; }
.is-shop .kassa-head h1 { text-transform: none; letter-spacing: -.02em; font-size: 30px; }
.is-shop .kassa-form {
  gap: 16px 18px; padding: 26px 26px 24px; border-radius: 20px;
  border: 1px solid var(--line); background: var(--card);
  box-shadow: var(--shadow); clip-path: none; position: relative; overflow: hidden;
}
.is-shop .kassa-form::before {
  content: ""; position: absolute; inset: auto auto -170px -170px;
  width: 400px; height: 400px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(79, 70, 229, .07), transparent 70%);
  pointer-events: none;
}
.is-shop .kassa-form > * { position: relative; z-index: 1; }
.is-shop .kassa-input input {
  height: 56px; font-size: 24px; font-weight: 700; letter-spacing: -.01em;
  border: 1.5px solid var(--line2); border-radius: 13px; background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.is-shop .kassa-input input::placeholder { font-weight: 400; font-size: 17px; color: var(--mut); }
.is-shop .kassa-input input:focus {
  outline: none; border-color: var(--acc); box-shadow: 0 0 0 4px var(--acc-soft);
}
.is-shop .kassa-cur { font-weight: 600; }
.is-shop .kassa-note {
  height: 56px; border: 1.5px solid var(--line2); border-radius: 13px; background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.is-shop .kassa-note:focus {
  outline: none; border-color: var(--acc); box-shadow: 0 0 0 4px var(--acc-soft);
}
.is-shop .kassa-form .btn {
  height: 56px; border-radius: 13px; padding: 0 28px; font-weight: 700;
  box-shadow: 0 8px 22px rgba(79, 70, 229, .28);
}
.is-shop .kassa-form .btn:hover { box-shadow: 0 10px 26px rgba(79, 70, 229, .36); }

.is-shop .kassa-qr {
  gap: 28px; align-items: stretch; margin: 20px 0; padding: 26px 28px;
  border-radius: 20px; border: 1px solid var(--line); background: var(--card);
  box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.is-shop .kassa-qr::before {
  content: ""; position: absolute; inset: -170px auto auto -170px;
  width: 400px; height: 400px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(79, 70, 229, .07), transparent 70%);
  pointer-events: none;
}
.kassa-qr-pane {
  display: grid; gap: 12px; justify-items: center; align-content: center;
  padding-right: 28px; position: relative; z-index: 1;
}
.kassa-qr-pane::after {
  content: ""; position: absolute; top: -26px; bottom: -26px; right: 0;
  border-right: 2px dashed var(--line2);
}
.is-shop .kassa-qr .qr-box {
  padding: 12px; border-radius: 16px; border: 1px solid var(--line);
  background: #fff; box-shadow: 0 8px 26px rgba(11, 13, 16, .10);
}
.is-shop .kassa-qr .qr-box img { display: block; }
.qr-hint { text-align: center; line-height: 1.45; }
.is-shop .kassa-side { flex: 1 1 300px; gap: 11px; align-content: center; position: relative; z-index: 1; }
.kassa-sum-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.is-shop .kassa-sum {
  font-family: var(--font-body); font-size: clamp(32px, 5vw, 44px);
  font-weight: 800; letter-spacing: -.02em; color: var(--text);
}
.is-shop .kassa-state {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 13.5px; color: #8a6200;
  padding: 8px 15px; border-radius: 999px;
  border: 1px solid #EAD9A8; background: #FBF3DC;
}
.is-shop .kassa-state::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: #D9A400; animation: kassaPulse 1.6s ease-in-out infinite;
}
.is-shop .kassa-state.on { color: #fff; background: var(--ok); border-color: transparent; }
.is-shop .kassa-state.on::before { display: none; }
@keyframes kassaPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .35; transform: scale(.72); }
}
.kassa-code-line b { letter-spacing: .06em; }
.kassa-actions { display: grid; gap: 9px; width: 100%; max-width: 430px; margin-top: 2px; }
.kassa-actions .btn { border-radius: 12px; padding: 12px 18px; clip-path: none; }
.is-shop .kassa-list { margin-top: 30px; }
.is-shop .kassa-list h2 { text-transform: none; font-size: 18px; letter-spacing: -.01em; }
.is-shop .kassa-row {
  border: 1px solid var(--line); border-radius: 14px; background: var(--card);
  padding: 13px 17px; transition: border-color .12s ease, transform .12s ease;
}
.is-shop .kassa-row:hover { border-color: var(--acc-line); transform: translateY(-1px); }
.is-shop .kassa-row-sum { color: var(--text); font-size: 15.5px; }
.is-shop .kassa-status { border-radius: 999px; font-size: 12px; padding: 5px 11px; border: 1px solid var(--line); background: var(--bg2); }
.is-shop .kassa-status.k-paid, .is-shop .kassa-status.k-done, .is-shop .kassa-status.k-shipped {
  color: var(--ok); background: var(--ok-soft); border-color: transparent;
}
.is-shop .kassa-status.k-cancelled { color: var(--bad); background: var(--bad-soft); border-color: transparent; }
@media (max-width: 760px) {
  .is-shop .kassa-qr { justify-content: center; text-align: center; }
  .kassa-qr-pane { padding-right: 0; }
  .kassa-qr-pane::after { display: none; }
  .is-shop .kassa-side { justify-items: center; }
  .kassa-sum-row { justify-content: center; }
  .kassa-actions { max-width: none; }
}

/* ============================================================= ЗАКАЗ BOSSDROP
   Страница заказа и оплаты в духе mezzo: пилюли статусов, шаги заказа,
   карточка оплаты с рамкой-акцентом, QR-блок, сводка справа. */
.is-shop .order-page { max-width: 1000px; margin-top: 22px; }
.is-shop .order-head { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-bottom: 6px; }
.is-shop .order-head h1 { font-size: 28px; letter-spacing: -.02em; }
.is-shop .status {
  font-size: 12px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase;
  padding: 5px 13px; border-radius: 999px; border: 1px solid var(--line2);
  color: var(--mut); background: var(--card); clip-path: none;
}
.is-shop .status-new { color: var(--warn); border-color: #ecd9b0; background: var(--warn-soft); }
.is-shop .status-reported { color: #1d4ed8; border-color: #c3d4f5; background: #ecf2fd; }
.is-shop .status-paid { color: var(--acc); border-color: var(--acc-line); background: var(--acc-soft); }
.is-shop .status-shipped { color: #6d28d9; border-color: #ddd3f5; background: #f3effc; }
.is-shop .status-done { color: var(--ok); border-color: #bfe3cf; background: var(--ok-soft); }
.is-shop .status-cancelled { color: var(--bad); border-color: #ecc5ca; background: var(--bad-soft); }
.is-shop .order-steps { display: flex; gap: 6px; margin: 18px 0 24px; flex-wrap: wrap; }
.is-shop .ostep {
  display: flex; align-items: center; gap: 9px; padding: 8px 15px; border-radius: 999px;
  font-size: 13px; font-weight: 600; color: var(--mut);
  border: 1px solid var(--line); background: var(--card); clip-path: none;
}
.is-shop .ostep-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line2); }
.is-shop .ostep.on { color: var(--text); }
.is-shop .ostep.on .ostep-dot { background: var(--ok); }
.is-shop .ostep.now { border-color: var(--acc); background: var(--acc-soft); color: var(--acc); }
.is-shop .ostep.now .ostep-dot { background: var(--acc); }
.is-shop .order-grid { display: grid; grid-template-columns: 1fr 330px; gap: 24px; align-items: start; }
.is-shop .order-main { display: grid; gap: 16px; align-content: start; }
.is-shop .pay-card {
  padding: 24px; border-radius: 16px; background: var(--card);
  border: 1.5px solid var(--acc-line); display: grid; gap: 15px;
  box-shadow: var(--shadow); clip-path: none;
}
.is-shop .pay-card.ok { border-color: #bfe3cf; }
.is-shop .pay-card.warn-card { border-color: #ecc5ca; }
.is-shop .pay-card h2 { font-size: 20px; letter-spacing: -.015em; }
.is-shop .pay-head { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; }
.is-shop .pay-total {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 14px 18px; border-radius: 12px; background: var(--bg);
  border: 1px solid var(--line2); font-weight: 600;
}
.is-shop .pay-total b { font-size: 26px; font-weight: 900; letter-spacing: -.02em; }
.is-shop .pay-secure { display: flex; gap: 9px; align-items: flex-start; font-size: 13px; color: var(--mut); }
.is-shop .pay-secure .ic { color: var(--ok); flex: none; margin-top: 2px; }
.is-shop .pay-methods-title {
  font-size: 12.5px; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--mut); margin-top: 2px;
}
.is-shop .pay-method { border: 1.5px solid var(--line2); border-radius: 12px; background: #fff; clip-path: none; }
.is-shop .pay-method[open] { border-color: var(--acc); }
.is-shop .pay-method > summary { display: flex; align-items: center; gap: 13px; padding: 13px 16px; cursor: pointer; list-style: none; }
.is-shop .pay-method > summary::-webkit-details-marker { display: none; }
.is-shop .pm-ico {
  width: 40px; height: 40px; border-radius: 10px; flex: none;
  display: grid; place-items: center;
  background: var(--acc-soft); color: var(--acc); border: 1px solid var(--acc-line);
}
.is-shop .pm-name { font-weight: 700; font-size: 14.5px; display: grid; gap: 1px; }
.is-shop .pm-note { font-weight: 500; font-size: 12.5px; color: var(--mut); }
.is-shop .pm-chevron {
  margin-left: auto; width: 9px; height: 9px; flex: none;
  border-right: 2px solid var(--mut); border-bottom: 2px solid var(--mut);
  transform: rotate(45deg); transition: transform .15s; margin-top: -4px;
}
.is-shop .pay-method[open] .pm-chevron { transform: rotate(-135deg); margin-top: 4px; }
.is-shop .pm-body { padding: 14px 16px 16px; display: grid; gap: 14px; border-top: 1px solid var(--line); }
.is-shop .pay-sbp-now { display: flex; gap: 22px; align-items: flex-start; flex-wrap: wrap; margin: 6px 0 10px; }
.is-shop .pay-qr {
  justify-self: center; padding: 12px; background: #fff; border-radius: 14px;
  border: 1px solid var(--line); line-height: 0;
  box-shadow: 0 8px 26px rgba(11, 13, 16, .08);
}
.is-shop .pay-qr img { display: block; width: 240px; height: 240px; }
.is-shop .pay-steps { display: grid; gap: 9px; padding-left: 20px; flex: 1 1 260px; align-content: center; }
.is-shop .pay-steps a { color: var(--acc); font-weight: 600; }
.is-shop .pay-waiting {
  padding: 13px 16px; border-radius: 10px; background: #ecf2fd;
  border: 1px solid #c3d4f5; color: #1d4ed8; font-weight: 600;
  display: flex; gap: 10px; align-items: center;
}
.is-shop .track-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.is-shop .track { font-family: ui-monospace, 'SF Mono', monospace; font-size: 17px; letter-spacing: .05em; }
.is-shop .order-side { display: grid; gap: 14px; align-content: start; }
.is-shop .os-card {
  padding: 19px; border-radius: 14px; background: var(--card);
  border: 1px solid var(--line); display: grid; gap: 10px; clip-path: none;
}
.is-shop .os-head { font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: .07em; }
.is-shop .os-item { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.is-shop .os-line { font-size: 14px; }
.is-shop .req-table {
  border-collapse: collapse; width: 100%; background: var(--card);
  border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
}
.is-shop .req-table td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.is-shop .req-table tr:last-child td { border-bottom: none; }
.is-shop .req-table td:first-child { color: var(--mut); width: 220px; }
.is-shop .foot-pay { display: flex; gap: 7px; align-items: center; flex-wrap: wrap; }
.is-shop .psbadge {
  font-size: 11.5px; font-weight: 600; letter-spacing: .06em; color: var(--text);
  border: 1px solid var(--line2); background: #fff; padding: 4px 10px; border-radius: 6px;
}
.is-shop .psbadge.ps-mir { color: #0f754e; border-color: #bfe3cf; }
.is-shop .psbadge.ps-sbp { color: #6d28d9; border-color: #ddd3f5; }
.is-shop .cancel-box { margin-top: 6px; }
.is-shop .cancel-box summary, .is-shop .cancel-summary { color: var(--mut); font-size: 13.5px; cursor: pointer; }
.is-shop .cancel-form, .is-shop .cancel-form-big { margin-top: 10px; }
@media (max-width: 860px) {
  .is-shop .order-grid { grid-template-columns: 1fr; }
  .is-shop .pay-sbp-now { justify-content: center; }
}

/* --- инструменты оплаты: обновить QR и отмена платежа --- */
.pay-tools { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-start; }
.pay-tool-btn {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  padding: 10px 15px; border-radius: 11px; list-style: none;
  font: inherit; font-size: 13.5px; font-weight: 600; color: var(--text);
  background: var(--card); border: 1px solid var(--line2);
  transition: border-color .12s ease, color .12s ease, box-shadow .12s ease;
}
.pay-tool-btn::-webkit-details-marker { display: none; }
.pay-tool-btn svg { width: 15px; height: 15px; color: var(--mut); transition: color .12s ease; }
.pay-tool-btn:hover { border-color: var(--acc); color: var(--acc); box-shadow: 0 0 0 3px var(--acc-soft); }
.pay-tool-btn:hover svg { color: var(--acc); }
.pay-tool-danger { color: var(--bad); border-color: #E9C7C1; }
.pay-tool-danger svg { color: var(--bad); }
.pay-tool-danger:hover { border-color: var(--bad); color: var(--bad); box-shadow: 0 0 0 3px var(--bad-soft); }
.pay-tool-danger:hover svg { color: var(--bad); }
.pay-cancel { display: contents; }
.pay-cancel-form {
  flex: 1 1 100%; display: grid; gap: 10px; margin-top: 2px;
  padding: 16px; border: 1px solid #E9C7C1; border-radius: 14px;
  background: var(--bad-soft);
}
.pay-cancel-form textarea {
  width: 100%; padding: 11px 13px; font: inherit; font-size: 14px;
  color: var(--text); background: #fff; resize: vertical; min-height: 58px;
  border: 1.5px solid var(--line2); border-radius: 11px;
  transition: border-color .15s, box-shadow .15s;
}
.pay-cancel-form textarea:focus {
  outline: none; border-color: var(--bad); box-shadow: 0 0 0 3px var(--bad-soft);
}
.pay-cancel-row { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.btn-cancel-big {
  background: var(--bad); color: #fff; border: none; border-radius: 11px;
  padding: 12px 22px; font-weight: 700; clip-path: none;
}
.btn-cancel-big:hover { background: #a93325; color: #fff; }

/* отмена платежа в шапке карточки оплаты — видна без прокрутки */
.pay-cancel-top { display: block; margin-left: auto; }
.pay-cancel-top[open] { flex-basis: 100%; margin-left: 0; }
.pay-cancel-top[open] > summary { margin-bottom: 10px; }
.pay-ids { margin-top: -6px; }
.pay-ids b { letter-spacing: .05em; }

/* отмена платежа прямо на кассе */
.kassa-actions form { display: contents; }
.is-shop .kassa-cancel {
  width: 100%; color: var(--bad); background: transparent;
  border: 1px solid #E9C7C1; border-radius: 12px; font-weight: 600; clip-path: none;
}
.is-shop .kassa-cancel:hover { background: var(--bad); border-color: var(--bad); color: #fff; }

/* --- ЛК менеджера: акцент на USDT + график по дням --- */
.money-rub { font-size: 14px; font-weight: 600; color: var(--mut); margin-top: -2px; }
.money-main .money-rub { color: rgba(255, 255, 255, .82); }
.mny-card .money-value .mny-cur { font-size: .44em; letter-spacing: .06em; }
.mgr-chart-unit {
  font-size: 11px; font-weight: 700; letter-spacing: .12em; color: var(--acc);
  background: var(--acc-soft); border-radius: 999px; padding: 5px 12px;
}
.mgr-bars {
  display: flex; align-items: stretch; gap: 8px; margin-top: 16px;
  min-height: 200px; overflow-x: auto; padding: 4px 2px 2px;
}
.mgr-day {
  flex: 1 1 0; min-width: 52px; display: grid;
  grid-template-rows: auto 1fr auto; gap: 7px; text-align: center;
}
.mgr-day-sum {
  font-size: 11.5px; font-weight: 600; color: var(--mut);
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.mgr-day-track {
  display: flex; align-items: flex-end; justify-content: center;
  min-height: 130px; border-radius: 10px;
  background: linear-gradient(var(--bg2), var(--bg2)) bottom / 100% 1px no-repeat;
}
.mgr-day-track i {
  display: block; width: min(34px, 72%);
  height: calc(max(var(--h, 0), 3) * 1%);
  border-radius: 9px 9px 4px 4px;
  background: linear-gradient(to top, rgba(79, 70, 229, .28), var(--acc) 78%);
  box-shadow: 0 6px 16px rgba(79, 70, 229, .25);
  transition: filter .15s ease, transform .15s ease;
}
.mgr-day:hover .mgr-day-sum { color: var(--acc); }
.mgr-day:hover .mgr-day-track i { transform: scaleY(1.02); transform-origin: bottom; filter: saturate(1.15); }
.mgr-day-date { font-size: 11px; color: var(--mut); }

/* кнопка «Кабинет» менеджера — рядом с поиском */
.t-cab {
  display: inline-flex; align-items: center; white-space: nowrap;
  padding: 9px 15px; border-radius: 10px; font-size: 14px; font-weight: 600;
  color: var(--acc); background: var(--acc-soft); border: 1px solid transparent;
  transition: border-color .12s ease, background .12s ease;
}
.t-cab:hover { border-color: var(--acc-line); color: var(--acc); }

/* касса: поля чека для банка */
.kassa-product { flex: 1 1 100%; }
.kassa-half { flex: 1 1 200px; }
.kassa-form-note { margin: 8px 2px 0; }
.kassa-check-line { color: var(--text); }

/* админ: форма дозаполнения чека */
.receipt-card { border-color: var(--acc-line); }
.receipt-form { display: grid; gap: 10px; }
.receipt-form input {
  width: 100%; padding: 11px 13px; font: inherit; font-size: 14px;
  background: #fff; color: var(--text);
  border: 1.5px solid var(--line2); border-radius: 10px;
}
.receipt-form input:focus { outline: none; border-color: var(--acc); box-shadow: 0 0 0 3px var(--acc-soft); }
.receipt-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 640px) { .receipt-row { grid-template-columns: 1fr; } }

/* ============================== чек-документ на оплаченном заказе (BOSSDROP) */
.is-shop .order-grid:has(.receipt-doc) { grid-template-columns: 1fr; max-width: 680px; }
.order-side[hidden] { display: none !important; }
.receipt-doc {
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
  padding: 22px 26px 16px; box-shadow: var(--shadow);
  display: grid; gap: 13px; position: relative; overflow: hidden;
}
.receipt-doc::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 4px;
  background: linear-gradient(90deg, var(--acc), transparent 65%);
}
.rd-head { display: flex; justify-content: space-between; gap: 14px; align-items: flex-start; flex-wrap: wrap; }
.rd-kicker { font-size: 11px; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; color: var(--mut); }
.rd-code { font-size: 21px; letter-spacing: .03em; }
.rd-when { display: grid; gap: 4px; justify-items: end; }
.rd-badge {
  font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ok); background: var(--ok-soft); border: 1px solid #bfe3cf;
  border-radius: 999px; padding: 4px 11px;
}
.rd-items { display: grid; gap: 8px; }
.rd-item { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.rd-item-photo {
  flex: none; width: 46px; height: 46px; object-fit: contain;
  border-radius: 9px; border: 1px solid var(--line); background: #fff; padding: 3px;
}
.rd-item-name { flex: 0 1 auto; }
.rd-dots { flex: 1 1 20px; border-bottom: 2px dotted var(--line2); align-self: center; translate: 0 4px; }
.rd-item-sum { white-space: nowrap; font-variant-numeric: tabular-nums; }
.rd-item-mut .rd-item-name, .rd-item-mut .rd-item-sum { color: var(--mut); font-weight: 500; }
.rd-total {
  display: flex; justify-content: space-between; align-items: baseline;
  border-top: 2px dashed var(--line2); padding-top: 11px;
}
.rd-total b { font-size: 24px; font-weight: 800; letter-spacing: -.01em; white-space: nowrap; }
.rd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.rd-col {
  display: grid; gap: 2px; align-content: start; font-size: 13.5px;
  background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 11px 14px;
}
.rd-col-head { font-size: 10.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--mut); margin-bottom: 2px; }
.rd-seller { font-size: 11.5px; border-top: 1px solid var(--line); padding-top: 10px; }
.order-compact .order-head h1 { font-size: 23px; }
.order-compact .order-steps { margin: 12px 0 14px; }
.order-compact .ostep { padding: 6px 13px; font-size: 12.5px; }
.order-compact .order-grid { gap: 12px; }
.order-compact .pay-card.ok { padding: 13px 18px; gap: 4px; }
.order-compact .pay-card.ok h2 { font-size: 16px; }
.order-compact .pay-card.ok p { font-size: 13.5px; margin: 0; }
@media (max-width: 620px) { .rd-grid { grid-template-columns: 1fr; } }

/* ============================== BOSSDROP-чек: свой формат (не как mezzo) */
.tr-doc {
  padding: 0; gap: 0; border-radius: 16px 16px 0 0; border-bottom: none;
  /* зубчатый низ — как оторванный чек */
  --zz: 10px;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--zz)),
    97.5% 100%, 95% calc(100% - var(--zz)), 92.5% 100%, 90% calc(100% - var(--zz)),
    87.5% 100%, 85% calc(100% - var(--zz)), 82.5% 100%, 80% calc(100% - var(--zz)),
    77.5% 100%, 75% calc(100% - var(--zz)), 72.5% 100%, 70% calc(100% - var(--zz)),
    67.5% 100%, 65% calc(100% - var(--zz)), 62.5% 100%, 60% calc(100% - var(--zz)),
    57.5% 100%, 55% calc(100% - var(--zz)), 52.5% 100%, 50% calc(100% - var(--zz)),
    47.5% 100%, 45% calc(100% - var(--zz)), 42.5% 100%, 40% calc(100% - var(--zz)),
    37.5% 100%, 35% calc(100% - var(--zz)), 32.5% 100%, 30% calc(100% - var(--zz)),
    27.5% 100%, 25% calc(100% - var(--zz)), 22.5% 100%, 20% calc(100% - var(--zz)),
    17.5% 100%, 15% calc(100% - var(--zz)), 12.5% 100%, 10% calc(100% - var(--zz)),
    7.5% 100%, 5% calc(100% - var(--zz)), 2.5% 100%, 0 calc(100% - var(--zz)));
  padding-bottom: var(--zz);
}
.tr-doc::before { display: none; }
.tr-head {
  display: flex; align-items: center; gap: 12px;
  padding: 18px 22px; background: linear-gradient(126deg, #5B54F0, var(--acc) 40%, #6D28D9);
  color: #fff;
}
.tr-head .t-logo-mark { width: 26px; height: 26px; gap: 3px; }
.tr-head .t-logo-mark i { background: #fff; }
.tr-head .t-logo-mark i:nth-child(2) { background: rgba(255, 255, 255, .55); }
.tr-head-main { display: grid; line-height: 1.25; }
.tr-head-main b { font-size: 16px; letter-spacing: .05em; }
.tr-head-main .mut { color: rgba(255, 255, 255, .75); font-size: 12.5px; }
.tr-head-right { margin-left: auto; display: grid; justify-items: end; gap: 2px; }
.tr-code { font-size: 19px; letter-spacing: .04em; }
.tr-paid { font-size: 12px; color: rgba(255, 255, 255, .85); }
.tr-item {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 22px; border-bottom: 1px solid var(--line);
}
.tr-item-photo {
  flex: none; width: 64px; height: 64px; object-fit: contain;
  border-radius: 12px; border: 1px solid var(--line); background: var(--bg); padding: 5px;
}
.tr-item-main { display: grid; gap: 2px; min-width: 0; }
.tr-item-main b { font-size: 16px; line-height: 1.3; }
.tr-item-main .mut { font-size: 12.5px; }
.tr-item-sum { margin-left: auto; font-size: 18px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tr-total-row {
  display: flex; align-items: baseline; justify-content: space-between; gap: 14px;
  padding: 13px 22px; border-bottom: 1px solid var(--line); flex-wrap: wrap;
}
.tr-total-row > .mut { font-size: 13px; }
.tr-total { display: flex; align-items: baseline; gap: 12px; }
.tr-total span { font-size: 13px; font-weight: 600; color: var(--mut); }
.tr-total b { font-size: 25px; font-weight: 800; letter-spacing: -.01em; color: var(--acc); white-space: nowrap; }
.tr-info { display: grid; grid-template-columns: 1fr 1fr 1fr; }
.tr-cell {
  display: grid; gap: 2px; align-content: start; padding: 13px 16px 13px 22px;
  font-size: 13px; border-right: 1px dashed var(--line2);
}
.tr-cell:last-child { border-right: none; }
.tr-cell-head { font-size: 10px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--mut); margin-bottom: 2px; }
.tr-cell b { font-size: 13.5px; }
.tr-cell .mut { font-size: 12px; overflow-wrap: anywhere; }
.tr-seller {
  padding: 11px 22px 14px; border-top: 1px solid var(--line); font-size: 11.5px;
}
@media (max-width: 640px) {
  .tr-info { grid-template-columns: 1fr; }
  .tr-cell { border-right: none; border-bottom: 1px dashed var(--line2); }
  .tr-cell:last-child { border-bottom: none; }
}

/* ---------- админка: тихий переключатель статуса заказа */
.status-switch { display: grid; gap: 8px; margin-bottom: 10px; }
.status-switch .st-opt {
  display: flex; align-items: center; gap: 10px; text-align: left;
  padding: 10px 14px; border-radius: 10px; border: 1.5px solid var(--line2);
  background: var(--card); color: var(--text);
  font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
}
.status-switch .st-opt::before {
  content: ''; width: 9px; height: 9px; border-radius: 50%;
  background: var(--line2); flex: none;
}
.status-switch .st-opt:hover { border-color: var(--acc); }
.status-switch .st-opt.on {
  border-color: var(--acc); background: var(--acc-soft);
  color: var(--acc); cursor: default; opacity: 1;
}
.status-switch .st-opt.on::before { background: var(--acc); }

/* кнопки-иконки в таблицах админки (изменить / скрыть) */
.atable .nowrap { white-space: nowrap; }
.atable td.acts { width: 1%; white-space: nowrap; text-align: right; padding-left: 6px; }
.acts-row { display: inline-flex; gap: 8px; }
.ibtn {
  flex: none; display: inline-grid; place-items: center; width: 36px; height: 36px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--card, var(--surface, transparent));
  color: var(--mut); cursor: pointer; padding: 0;
  transition: color .14s ease, border-color .14s ease, background .14s ease, transform .14s ease;
}
.ibtn svg { width: 19px; height: 19px; }
.ibtn:hover { color: var(--acc); border-color: var(--acc); transform: translateY(-1px); }
.ibtn:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
.ibtn-off { color: var(--acc); border-color: var(--acc); }

/* мягкий акцент для панелей календаря и списков */
:root { --acc-soft: rgba(245, 196, 0, .16); }

/* страница покупателя: выбор периода над карточками */
.bp-period { margin: 14px 0 12px; }
