:root {
  --wb-purple: #2293d8;
  --wb-purple-2: #1b7fc4;
  --wb-pink: #58b7ef;
  --wb-dark: #1b2a3a;
  --bg: #f2f5f9;
  --card: #ffffff;
  --line: #e3eaf1;
  --text: #0f1722;
  --text2: #7b8794;
  --ok: #11a15a;
  --risk: #f55141;
  --warn: #f39c12;
  --shadow: 0 1px 3px rgba(20, 60, 100, 0.08), 0 2px 10px rgba(20, 60, 100, 0.05);
  --grad: linear-gradient(160deg, #2aabee 0%, #2293d8 55%, #1b7fc4 100%);
  --radius: 16px;
  --pad: 14px;
  --tabbar-h: 58px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  height: 100%;
}

body {
  font-family: "Segoe UI", Roboto, system-ui, -apple-system, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.35;
  overscroll-behavior-y: none;
}

button {
  font: inherit;
  border: 0;
  background: none;
  cursor: pointer;
  color: inherit;
}

input,
select,
textarea {
  font: inherit;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  background: #fff;
  color: var(--text);
  outline: none;
}
input:focus,
select:focus,
textarea:focus {
  border-color: var(--wb-pink);
}

/* ── Шапка ── */
.top {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--grad);
  color: #fff;
  padding: calc(10px + env(safe-area-inset-top)) 14px 10px;
  box-shadow: 0 2px 10px rgba(34, 147, 216, 0.3);
}
.top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
}
.brand img {
  height: 28px;
  width: auto;
  border-radius: 6px;
}
.brand-name {
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0.4px;
}
.top-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.14);
}
.top-badge[hidden] {
  display: none;
}
.top-badge span {
  position: absolute;
  top: -4px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  background: var(--wb-pink);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

/* ── Контент ── */
.app {
  padding: 0 0 calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 14px);
}
.boot {
  text-align: center;
  color: var(--text2);
  padding: 40px 0;
}
.screen {
  display: none;
}
.screen.active {
  display: block;
}
.screen-hide-tabbar .tabbar {
  display: none;
}
.app-pad {
  padding: var(--pad);
}

.page-h {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px var(--pad) 0;
}
.page-h .btn-back {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--wb-purple);
  font-weight: 700;
  font-size: 18px;
}
.page-h h2 {
  font-size: 17px;
  font-weight: 800;
}

/* ── Нижняя навигация ── */
.tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: flex;
  background: #fff;
  border-top: 1px solid var(--line);
  padding: 6px 6px calc(4px + env(safe-area-inset-bottom));
}
.tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: var(--text2);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 0;
}
.tab.active {
  color: var(--wb-purple);
}
.tab.active svg {
  filter: drop-shadow(0 1px 2px rgba(34, 147, 216, 0.35));
}
.tab svg {
  display: block;
}

/* ── Поиск ── */
.search {
  margin: 12px var(--pad);
  position: relative;
}
.search input {
  padding-left: 42px;
  border-radius: 14px;
  box-shadow: var(--shadow);
}
.search .ico {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text2);
  display: flex;
}

/* ── Чипы категорий ── */
.chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px var(--pad) 2px;
  scrollbar-width: none;
}
.chips::-webkit-scrollbar {
  display: none;
}
.chip {
  flex: 0 0 auto;
  padding: 8px 14px;
  border-radius: 20px;
  background: #fff;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  box-shadow: var(--shadow);
  border: 1.5px solid transparent;
  white-space: nowrap;
}
.chip.active {
  background: var(--wb-purple);
  color: #fff;
  border-color: var(--wb-purple);
}
.chip .cnt {
  color: var(--text2);
  font-weight: 500;
  margin-left: 4px;
}
.chip.active .cnt {
  color: rgba(255, 255, 255, 0.8);
}

/* ── Секции ── */
.sec-h {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px var(--pad) 6px;
}
.sec-h h3 {
  font-size: 16px;
  font-weight: 800;
}
.sec-h a {
  font-size: 13px;
  color: var(--wb-pink);
  font-weight: 700;
  text-decoration: none;
}

/* ── Карточки товара ── */
.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 4px var(--pad) 10px;
}
.card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.12s ease;
}
.card:active {
  transform: scale(0.98);
}
.card .ph {
  position: relative;
  aspect-ratio: 1;
  background: #eef0f6;
}
.card .ph img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.card .ph .stk {
  position: absolute;
  left: 6px;
  top: 6px;
  font-size: 10.5px;
  padding: 3px 7px;
  border-radius: 8px;
  font-weight: 700;
}
.card .ph .stk.no {
  background: var(--line);
  color: var(--text2);
}
.card .ph .stk.low {
  background: #ffecec;
  color: var(--risk);
}
.card .bd {
  padding: 8px 10px 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
}
.card .nm {
  font-size: 13px;
  font-weight: 600;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 34px;
}
.card .pr {
  color: var(--wb-purple);
  font-weight: 800;
  font-size: 16px;
  margin-top: auto;
}
.card .pr small {
  font-size: 12px;
  font-weight: 600;
  color: var(--text2);
}
.card .act {
  margin-top: 4px;
}
.btn-add {
  width: 100%;
  padding: 9px 0;
  border-radius: 12px;
  background: var(--wb-purple);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
}
.btn-add.pink {
  background: var(--wb-purple);
}
.btn-add:disabled {
  opacity: 0.5;
}

.stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  background: #f2f3f8;
  border-radius: 12px;
  padding: 4px;
}
.stepper button {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--wb-purple);
  font-weight: 800;
  font-size: 16px;
  color: #fff;
  box-shadow: 0 2px 4px rgba(34, 147, 216, 0.25);
  flex: 0 0 auto;
}
.stepper b {
  flex: 1;
  text-align: center;
  font-size: 14px;
}

/* ── Горизонтальные роллеры (связки) ── */
.roll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 4px var(--pad) 8px;
  scrollbar-width: none;
}
.roll::-webkit-scrollbar {
  display: none;
}
.roll-card {
  flex: 0 0 210px;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.roll-card .ph {
  aspect-ratio: 16/9;
  background: #eef0f6;
}
.roll-card .ph img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.roll-card .bd {
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.roll-card .nm {
  font-weight: 700;
  font-size: 13.5px;
}
.roll-card .pr {
  color: var(--wb-purple);
  font-weight: 800;
  margin-top: auto;
}

/* ── Оверлей товара ── */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: #f2f3f8;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.overlay .o-ph {
  position: relative;
  background: #fff;
}
.overlay .o-ph img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}
.overlay .o-close {
  position: fixed;
  top: calc(8px + env(safe-area-inset-top));
  right: 12px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(31, 34, 64, 0.45);
  color: #fff;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 51;
}
.overlay .o-bd {
  padding: 16px var(--pad) calc(20px + env(safe-area-inset-bottom));
}
.overlay .o-cat {
  font-size: 12px;
  color: var(--text2);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.overlay .o-nm {
  font-size: 18px;
  font-weight: 800;
  margin: 6px 0 8px;
}
.overlay .o-pr {
  font-size: 24px;
  font-weight: 800;
  color: var(--wb-purple);
}
.overlay .o-desc {
  margin-top: 12px;
  color: #4b4b58;
  font-size: 14px;
  white-space: pre-line;
}
.overlay .o-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
}
.overlay .o-main {
  flex: 1;
}

/* ── Корзина ── */
.cart-list {
  padding: 6px var(--pad);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cart-item {
  display: flex;
  gap: 10px;
  background: #fff;
  border-radius: var(--radius);
  padding: 10px;
  box-shadow: var(--shadow);
  align-items: center;
}
.cart-item .th {
  width: 72px;
  height: 72px;
  border-radius: 10px;
  overflow: hidden;
  background: #eef0f6;
  flex: 0 0 auto;
}
.cart-item .th img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cart-item .info {
  flex: 1;
  min-width: 0;
}
.cart-item .info .nm {
  font-weight: 600;
  font-size: 13.5px;
  line-clamp: 2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cart-item .info .uprice {
  font-size: 12px;
  color: var(--text2);
}
.cart-item .btm {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
}
.cart-item .sum {
  font-weight: 800;
  color: var(--wb-purple);
}
.cart-item .rm {
  color: var(--text2);
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}
.stepper.sm button {
  width: 26px;
  height: 26px;
  font-size: 14px;
}
.stepper.sm b {
  font-size: 13px;
}

.total-bar {
  position: sticky;
  bottom: calc(var(--tabbar-h) + 0px);
  background: #fff;
  border-top: 1px solid var(--line);
  padding: 10px var(--pad) 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.04);
}
.total-bar .tt {
  font-size: 12px;
  color: var(--text2);
}
.total-bar .sum {
  font-size: 19px;
  font-weight: 800;
  color: var(--wb-purple);
}

.btn-primary {
  padding: 14px 18px;
  border-radius: 14px;
  background: var(--wb-purple);
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  box-shadow: 0 4px 12px rgba(34, 147, 216, 0.28);
}
.btn-primary:disabled {
  opacity: 0.55;
  box-shadow: none;
}
.btn-big {
  width: 100%;
}

/* ── Пусто ── */
.empty {
  text-align: center;
  color: var(--text2);
  padding: 40px 20px;
}
.empty .big {
  font-size: 44px;
  margin-bottom: 8px;
}

/* ── Формы ── */
.field {
  margin-bottom: 10px;
}
.field label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text2);
  margin-bottom: 5px;
}
.field .req {
  color: var(--wb-pink);
}

.pay-card {
  background: linear-gradient(160deg, #1b7fc4 0%, #2aabee 100%);
  color: #fff;
  border-radius: var(--radius);
  padding: 16px;
  margin: 0 var(--pad) 14px;
}
.pay-card .lbl {
  font-size: 12px;
  opacity: 0.85;
}
.pay-card .amt {
  font-size: 30px;
  font-weight: 800;
  margin: 4px 0 10px;
}
.pay-card .reqs {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
  line-height: 1.5;
}
.pay-card .reqs b {
  color: #e8ebee;
}

.cheque-box {
  margin: 0 var(--pad) 12px;
  background: #fff;
  border-radius: var(--radius);
  border: 1.5px dashed var(--wb-pink);
  padding: 14px;
  text-align: center;
  color: var(--wb-pink);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
}
.cheque-box img {
  max-height: 160px;
  border-radius: 10px;
  margin-top: 8px;
}

/* ── ИИ ── */
.ai-chat {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 120px - var(--tabbar-h) - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  padding: 10px var(--pad);
}
.ai-msgs {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-bottom: 10px;
  scrollbar-width: none;
}
.ai-msgs::-webkit-scrollbar {
  display: none;
}
.bubble {
  max-width: 84%;
  padding: 10px 12px;
  border-radius: 16px;
  font-size: 14px;
  white-space: pre-wrap;
  word-break: break-word;
}
.bubble.user {
  align-self: flex-end;
  background: var(--wb-purple);
  color: #fff;
  border-bottom-right-radius: 5px;
}
.bubble.ai {
  align-self: flex-start;
  background: #fff;
  box-shadow: var(--shadow);
  border-bottom-left-radius: 5px;
}
.bubble.ai b {
  color: var(--wb-purple);
}
.bubble.typing {
  color: var(--text2);
}
.ai-input {
  display: flex;
  gap: 8px;
  align-items: center;
}
.ai-input input {
  border-radius: 22px;
  padding: 12px 18px;
}
.ai-input button {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--wb-purple);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

/* ── Профиль ── */
.prof-card {
  margin: 14px var(--pad);
  background: linear-gradient(160deg, #1b7fc4 0%, #2aabee 100%);
  color: #fff;
  border-radius: var(--radius);
  padding: 18px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 800;
  flex: 0 0 auto;
}
.prof-card .nm {
  font-size: 17px;
  font-weight: 800;
}
.prof-card .id {
  font-size: 12.5px;
  opacity: 0.85;
}

.menu {
  margin: 0 var(--pad);
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 14px;
  width: 100%;
  text-align: left;
  border-bottom: 1px solid var(--line);
  font-weight: 600;
}
.menu-item:last-child {
  border-bottom: 0;
}
.menu-item .arrow {
  margin-left: auto;
  color: var(--text2);
}
.menu-item .ico {
  font-size: 18px;
}
.menu-item.admin {
  color: var(--wb-pink);
}

.switch {
  position: relative;
  width: 44px;
  height: 26px;
  flex: 0 0 auto;
}
.switch input {
  opacity: 0;
  position: absolute;
}
.switch .tr {
  position: absolute;
  inset: 0;
  border-radius: 13px;
  background: var(--line);
  transition: 0.2s;
}
.switch .tr::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  transition: 0.2s;
}
.switch input:checked + .tr {
  background: var(--wb-purple);
}
.switch input:checked + .tr::after {
  transform: translateX(18px);
}

/* ── Заказы ── */
.order-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin: 0 var(--pad) 10px;
  padding: 12px 14px;
}
.order-card .o-top {
  display: flex;
  justify-content: space-between;
  font-weight: 800;
}
.order-card .o-date {
  color: var(--text2);
  font-size: 12.5px;
  margin-top: 2px;
}
.order-card .o-status {
  font-size: 12.5px;
  font-weight: 700;
  margin-top: 8px;
  display: inline-block;
  padding: 4px 10px;
  border-radius: 8px;
}
.st-pending_payment, .st-pending_verification { background: #eef0f6; color: #5a5a66; }
.st-paid, .st-completed { background: #e6f7ef; color: var(--ok); }
.st-processing { background: #e9f1ff; color: #2f6fe0; }
.st-shipped { background: #f3e9ff; color: var(--wb-purple-2); }
.st-cancelled { background: #ffecec; color: var(--risk); }

/* Таймлайн трекинга */
.track-box {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin: 12px var(--pad);
  padding: 14px;
}
.track-box .t-title {
  font-weight: 800;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.track-num {
  font-weight: 700;
  color: var(--wb-purple);
  word-break: break-all;
}
.tl {
  position: relative;
  padding-left: 18px;
}
.tl .ev {
  position: relative;
  padding-bottom: 14px;
}
.tl .ev::before {
  content: "";
  position: absolute;
  left: -18px;
  top: 4px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--wb-pink);
}
.tl .ev.first::before {
  width: 12px;
  height: 12px;
  background: var(--ok);
  box-shadow: 0 0 0 4px rgba(17, 161, 90, 0.15);
}
.tl .ev .t {
  font-size: 12px;
  color: var(--text2);
}
.tl .ev .d {
  font-size: 13.5px;
}
.link-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 8px;
  padding: 11px;
  border-radius: 12px;
  background: var(--wb-purple);
  color: #fff;
  font-weight: 700;
  font-size: 13.5px;
  text-decoration: none;
}

/* ── Админка ── */
.admin-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 10px var(--pad) 4px;
  scrollbar-width: none;
}
.admin-tabs::-webkit-scrollbar {
  display: none;
}
.admin-tabs .chip {
  font-size: 12.5px;
}
.row {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin: 0 var(--pad) 10px;
  padding: 10px;
  display: flex;
  gap: 10px;
  align-items: center;
}
.row .th {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  overflow: hidden;
  background: #eef0f6;
  flex: 0 0 auto;
}
.row .th img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.row .inf {
  flex: 1;
  min-width: 0;
}
.row .inf .nm {
  font-weight: 700;
  font-size: 13.5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.row .inf .sub {
  font-size: 12px;
  color: var(--text2);
  margin-top: 2px;
}
.row .acts {
  display: flex;
  gap: 6px;
  flex: 0 0 auto;
}
.icon-btn {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: #f2f3f8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}
.icon-btn.off {
  opacity: 0.4;
}

.filter-chips {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 8px var(--pad);
  scrollbar-width: none;
}
.filter-chips::-webkit-scrollbar {
  display: none;
}
.filter-chips .chip {
  font-size: 12px;
  padding: 6px 12px;
}

.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 6px var(--pad);
}
.stat-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 12px;
}
.stat-card .v {
  font-size: 20px;
  font-weight: 800;
  color: var(--wb-purple);
}
.stat-card .l {
  font-size: 11.5px;
  color: var(--text2);
  margin-top: 2px;
}
.stat-list {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin: 10px var(--pad);
  padding: 8px 14px;
}
.stat-list .it {
  display: flex;
  justify-content: space-between;
  padding: 7px 0;
  font-size: 13.5px;
  border-bottom: 1px solid var(--line);
}
.stat-list .it:last-child {
  border-bottom: 0;
}
.stat-list .it b {
  color: var(--wb-purple);
}

/* ── Модалы ── */
.modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(20, 20, 35, 0.55);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.modal .m-card {
  width: 100%;
  max-width: 520px;
  background: #fff;
  border-radius: 20px 20px 0 0;
  padding: 18px 18px calc(18px + env(safe-area-inset-bottom));
  max-height: 88vh;
  overflow-y: auto;
}
.modal .m-h {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.modal .m-h h4 {
  font-size: 16px;
  font-weight: 800;
}
.m-actions {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}
.m-actions .btn-primary {
  flex: 1;
}
.btn-ghost {
  flex: 1;
  padding: 14px;
  border-radius: 14px;
  background: #f2f3f8;
  color: var(--text);
  font-weight: 700;
}

.img-upload {
  border: 1.5px dashed var(--line);
  border-radius: 12px;
  padding: 10px;
  text-align: center;
  cursor: pointer;
  background: #fafafe;
}
.img-upload img {
  max-height: 90px;
  border-radius: 8px;
}

/* ── Toast ── */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--tabbar-h) + 16px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  background: rgba(31, 34, 64, 0.94);
  color: #fff;
  padding: 11px 18px;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 600;
  z-index: 100;
  max-width: 88vw;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.hint {
  font-size: 12.5px;
  color: var(--text2);
  padding: 4px var(--pad);
}
.section-gap {
  height: 4px;
}

.result-ok {
  text-align: center;
  padding: 30px 20px;
}
.result-ok .big {
  font-size: 60px;
}
.result-ok h3 {
  font-size: 18px;
  margin: 10px 0 6px;
}

/* ────────── Отзывы ────────── */
.o-sec {
  margin-top: 16px;
}
.o-sec + .o-sec {
  border-top: 1px solid var(--line);
  padding-top: 14px;
}
.o-sec-t {
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
}
.o-sec-h {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.o-sec-h + .o-sec-h {
  margin-top: 12px;
}
.o-sec-v {
  font-size: 13px;
  color: var(--text2);
  display: flex;
  align-items: center;
  gap: 4px;
}
.o-sec-v b {
  color: var(--text);
}
.o-desc {
  color: var(--text);
  line-height: 1.55;
  font-size: 14px;
  white-space: pre-line;
}
.stars-o {
  color: #ffb400;
  letter-spacing: 2px;
  font-size: 14px;
}
.stars {
  display: inline-flex;
  gap: 2px;
}
.stars.pick {
  cursor: pointer;
}
.r-star {
  color: #d8dce3;
  font-size: 22px;
  line-height: 1;
  transition: color 0.12s ease, transform 0.12s ease;
}
.r-star.on {
  color: #ffb400;
}
.stars.pick .r-star {
  cursor: pointer;
}
.stars.pick .r-star:hover {
  transform: scale(1.2);
}
.rev-txt {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 14px;
  resize: none;
  background: var(--card);
  color: var(--text);
  outline: none;
}
.rev-txt:focus {
  border-color: var(--wb-purple);
}
.rev-item .btn-add {
  margin-top: 10px;
}
.rev-empty {
  color: var(--text2);
  font-size: 13.5px;
  padding: 6px 0;
}
.rev-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 10px;
  background: var(--card);
}
.rev-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.rev-who {
  font-weight: 700;
  font-size: 14px;
  color: var(--text);
}
.rev-stars {
  color: #ffb400;
  letter-spacing: 2px;
  font-size: 12px;
}
.rev-body {
  margin-top: 6px;
  font-size: 13.5px;
  color: var(--text);
  line-height: 1.5;
  white-space: pre-line;
}
.rev-date {
  margin-top: 6px;
  font-size: 12px;
  color: var(--text2);
}