:root {
  --bg: #0f1c33;
  --card: #1a2e52;
  --nav: #1f3864;
  --green: #62d477;
  --red: #ff6b6b;
  --amber: #f0c961;
  --blue: #4da6ff;
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.62);
  --border: rgba(255, 255, 255, 0.12);
}

* { box-sizing: border-box; }

button, a, input, .tab, .emoji-btn, .launcher-btn, .cal-day, .pkg-value-btn, .icon-btn {
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
}

/* Press feedback via JS .pressed class (more reliable than :active on mobile) */
button, .tab, .emoji-btn, .launcher-btn, .cal-day, .pkg-value-btn, .icon-btn, #topbar-logo {
  transition: transform 0.2s ease, opacity 0.2s ease;
  will-change: transform;
}
button.pressed, .tab.pressed, .emoji-btn.pressed, .launcher-btn.pressed,
.cal-day.pressed, .pkg-value-btn.pressed, .icon-btn.pressed, #topbar-logo.pressed {
  transform: scale(0.91);
  opacity: 0.62;
  transition: none;
}

button:disabled, .launcher-btn:disabled {
  opacity: 0.5;
  pointer-events: none;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  -webkit-tap-highlight-color: transparent;
}

body {
  padding-top: env(safe-area-inset-top);
  padding-bottom: env(safe-area-inset-bottom);
  min-height: 100vh;
}

/* ---------- login ---------- */
.login-body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

.login-card {
  width: 100%;
  max-width: 340px;
  padding: 32px 28px 40px;
  text-align: center;
}

.login-logo { width: 72px; height: 72px; border-radius: 18px; margin-bottom: 10px; }
.login-card h1 { margin: 0; font-size: 22px; }
.login-sub { color: var(--muted); margin-bottom: 28px; font-size: 14px; }

.login-form { display: flex; flex-direction: column; gap: 12px; }

.login-form input {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  font-size: 22px;
  letter-spacing: 6px;
  text-align: center;
  padding: 14px;
}

.login-form button {
  background: var(--green);
  color: #06210f;
  border: none;
  border-radius: 12px;
  padding: 14px;
  font-size: 16px;
  font-weight: 700;
  touch-action: manipulation;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.login-form button:active {
  transform: scale(0.91);
  opacity: 0.62;
  transition: none;
}

.login-error { color: var(--red); font-size: 14px; }

/* ---------- app shell ---------- */
#topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg);
  padding: calc(env(safe-area-inset-top) + 10px) 12px 10px;
}

.header-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  gap: 10px;
  background: #f4f6fa;
  border-radius: 18px;
  padding: 12px 14px;
  box-shadow: 0 4px 16px rgba(0,0,0,.28);
}

#topbar-title {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-weight: 700;
  font-size: 21px;
  color: #0f1c33;
  text-align: center;
  max-width: 62%;
}
#topbar-title-text { text-align: center; }
#topbar-logo { width: 38px; height: 38px; border-radius: 9px; flex: none; cursor: pointer; touch-action: manipulation; user-select: none; }

.icon-btn {
  background: transparent;
  border: none;
  color: #0f1c33;
  font-size: 27px;
  font-weight: 700;
  width: 42px;
  height: 42px;
  border-radius: 9px;
  flex: none;
}
.icon-btn:active { background: rgba(15,28,51,.1); }
.icon-btn.is-invisible { visibility: hidden; }

#app { padding: 14px 14px 32px; max-width: 640px; margin: 0 auto; overflow-x: hidden; }

h2.section-title { font-size: 16px; color: var(--muted); margin: 18px 0 8px; font-weight: 600; }

/* ---------- buttons / grid ---------- */
.btn-grid { display: grid; gap: 10px; }
.btn-grid.cols-2 { grid-template-columns: 1fr 1fr; }

.btn {
  display: block;
  width: 100%;
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 15px 12px;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
}
.btn:active { background: var(--nav); }
.btn.primary { background: var(--green); color: #06210f; border: none; }
.btn.danger-outline { color: var(--red); border-color: rgba(255,107,107,.4); }
.period-btn-title, .period-btn-sub { display: block; text-align: center; }
.period-btn-sub { margin-top: 2px; font-size: 12.5px; font-weight: 500; color: var(--muted); }
.btn.small { padding: 9px 10px; font-size: 14px; }

/* ---------- custom calendar ---------- */
.cal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.cal-title { font-size: 17px; font-weight: 700; }
.cal-nav { color: var(--text); font-weight: 700; }
.cal-nav:active { background: var(--card); }

.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-bottom: 4px; }
.cal-weekday { text-align: center; font-size: 13px; color: var(--muted); padding: 4px 0; }
.cal-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 10px;
  font-size: 15px;
  cursor: pointer;
}
.cal-day.empty { background: transparent; border: none; }
.cal-day.disabled { color: var(--muted); opacity: .35; pointer-events: none; }
.cal-day.in-range { background: rgba(98, 212, 119, .22); border-color: rgba(98, 212, 119, .4); }
.cal-day.selected { background: var(--green); color: #06210f; font-weight: 700; border-color: var(--green); }

/* ---------- report ---------- */
.report-header { font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.period-line { font-size: 14px; color: var(--muted); margin-bottom: 10px; }

.stat-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 16px;
}
.stat-row .label { color: var(--muted); }
.stat-row .value.pos { color: var(--green); font-weight: 700; }
.stat-row .value.neg { color: var(--red); font-weight: 700; }
.stat-row .value.bold { font-weight: 700; }

.emoji-row { display: flex; justify-content: space-between; gap: 6px; margin: 14px 0; }
.emoji-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 4px;
  cursor: pointer;
}
.emoji-btn:active { background: var(--nav); }
.emoji-btn .emoji { font-size: 30px; line-height: 1; }
.emoji-btn .count { font-size: 15px; font-weight: 700; color: var(--blue); }

.card { background: var(--card); border-radius: 14px; padding: 14px 16px; margin-bottom: 12px; }

/* ---------- order list ---------- */
.tabs { display: flex; justify-content: space-between; gap: 6px; margin-bottom: 12px; }
.tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 10px 4px;
  border-radius: 14px;
  background: var(--card);
  border: 1px solid var(--border);
}
.tab .tab-emoji { font-size: 24px; line-height: 1; }
.tab .tab-count { font-size: 13px; font-weight: 700; color: var(--blue); }
.tab.active { background: var(--green); }
.tab.active .tab-count { color: #06210f; }

.search-box {
  width: 100%;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 10px;
  padding: 12px 12px;
  font-size: 15px;
  margin-bottom: 12px;
}

.order-card { background: var(--card); border-radius: 14px; padding: 12px 14px; margin-bottom: 10px; }
.order-card.bg-black { background: #111111; }
.order-card.bg-burgundy { background: #4a0011; }
.order-card.bg-new { background: rgba(255, 225, 0, 0.11); border: 1px solid rgba(255, 215, 0, 0.32); }
.order-card.unread-card { box-shadow: inset 3px 0 0 0 var(--green); }

.order-card-top { margin-top: 6px; }
.order-card img.thumb { width: 73px; height: 97px; border-radius: 10px; object-fit: cover; background: #0f1c33; flex: none; }
.order-card .thumb.placeholder { width: 73px; height: 97px; border-radius: 10px; background: #0f1c33; flex: none; }

/* Свайп-карусель: фото+SKU+название одной карточки меняются вместе при
   свайпе влево-вправо; номер заказа/магазин/статус вынесены наружу и не
   свайпаются — см. orderCard() в app.js. */
.swipe-carousel-wrap { display: flex; flex-direction: column; }
.swipe-row {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
  scrollbar-width: none;
}
.swipe-row::-webkit-scrollbar { display: none; }
.swipe-slide { display: flex; gap: 10px; align-items: flex-start; min-width: 0; flex: 0 0 100%; scroll-snap-align: start; }
.swipe-dots-row { display: flex; justify-content: center; gap: 4px; margin-top: 6px; }
.swipe-dot { width: 5px; height: 5px; border-radius: 50%; background: rgba(255, 255, 255, .25); flex: none; }
.swipe-dot.active { background: var(--green); }
/* В модалке заказа (showOrderDetailModal) свайп идёт по фото+SKU+название
   крупной карточкой (как было раньше для одного товара), а не строкой — те же
   .swipe-row/.swipe-dot, но раскладка слайда вертикальная и по центру. */
.modal-swipe-slide { display: block; text-align: center; }
.order-card-text { flex: 1; min-width: 0; }
.order-id-row { display: flex; align-items: baseline; gap: 6px; white-space: nowrap; overflow: hidden; }
.order-id {
  font-weight: 700;
  font-size: 18px;
  color: var(--text);
  background: transparent;
  border: none;
  padding: 0;
  text-decoration: underline;
  text-decoration-style: dotted;
  cursor: pointer;
  flex: none;
}
.order-id-emoji { font-size: 16px; flex: none; }
.order-date-inline { color: var(--muted); font-size: 16px; overflow: hidden; text-overflow: ellipsis; }
.order-shop { color: var(--text); font-weight: 700; font-size: 14px; margin-top: 4px; }
.order-region { color: var(--muted); font-size: 14px; margin-top: 2px; }
.order-sku { font-size: 14px; color: var(--muted); margin-top: 4px; word-break: break-word; }
.order-name { font-size: 14px; color: var(--text); margin-top: 2px; word-break: break-word; }

/* ---------- order detail modal ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 20px;
}
.modal-card {
  position: relative;
  background: var(--card);
  border-radius: 16px;
  padding: 24px 20px 20px;
  max-width: 360px;
  width: 100%;
  text-align: center;
  box-shadow: 0 12px 30px rgba(0,0,0,.4);
}
.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255,255,255,.08);
  border: none;
  color: var(--text);
  width: 30px;
  height: 30px;
  border-radius: 8px;
  font-size: 15px;
}
.modal-img { width: 140px; height: 187px; object-fit: cover; border-radius: 12px; margin: 0 auto 12px; display: block; }
.modal-title { font-size: 18px; font-weight: 700; }
.modal-date { color: var(--muted); font-size: 14px; margin-top: 2px; }
.modal-sku { font-size: 14px; color: var(--muted); margin-top: 10px; }
.modal-name { font-size: 15px; margin-top: 4px; }
.modal-duration { font-size: 14px; color: var(--muted); margin-top: 10px; }
.modal-textinput, .modal-textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 10px;
  padding: 11px 12px;
  font-size: 15px;
  font-family: inherit;
  resize: vertical;
}
.order-badge-wrap { margin-top: 10px; display: flex; flex-wrap: nowrap; align-items: center; gap: 6px; overflow: hidden; }
.order-badge-wrap.order-badge-wrap-2 { margin-top: 6px; }

.freshness-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 28, 51, .22);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 20px;
}
.freshness-card {
  position: relative;
  background: rgba(255, 255, 255, .74);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 18px;
  padding: 24px 22px 20px;
  max-width: 320px;
  width: 100%;
  text-align: center;
  color: #16233d;
  box-shadow: 0 14px 34px rgba(0,0,0,.32);
}
.freshness-icon { font-size: 28px; margin-bottom: 8px; }
.freshness-title { font-size: 16px; font-weight: 700; color: #0f1c33; }
.freshness-line { font-size: 14px; color: rgba(22,35,61,.72); margin-top: 8px; line-height: 1.45; }
.freshness-close {
  margin-top: 20px;
  width: 100%;
  background: #0f1c33;
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 12px;
  font-size: 15px;
  font-weight: 600;
  touch-action: manipulation;
  user-select: none;
  transition: .2s ease;
}
.freshness-close.pressed { transform: scale(0.94); opacity: .75; transition: none; }
.today-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(240, 201, 97, 0.16);
  border: 1px solid rgba(240, 201, 97, 0.45);
  color: var(--amber);
  font-size: 15px;
  font-weight: 700;
  margin-left: 6px;
  vertical-align: middle;
}
.order-status-badge { font-size: 14px; font-weight: 700; padding: 2px 7px; border-radius: 999px; background: rgba(255,255,255,.08); color: var(--muted); white-space: nowrap; display: inline-block; }
.order-status-badge.order-status-main { color: var(--amber); background: rgba(240, 201, 97, 0.12); border: 1px solid rgba(240, 201, 97, 0.25); }
.order-status-badge.payment-badge { background: rgba(77, 166, 255, 0.12); border: 1px solid rgba(77, 166, 255, 0.35); }
.order-status-badge.payment-badge.pos { color: var(--green); }
.order-status-badge.payment-badge.neg { color: var(--red); background: rgba(255, 107, 107, 0.16); border-color: rgba(255, 107, 107, 0.4); }
.payment-badge-icon { width: 13px; height: 13px; object-fit: contain; vertical-align: -2px; margin-right: 3px; }

.fin-table { margin-top: 10px; font-size: 14px; }
.fin-table .row { display: flex; justify-content: space-between; padding: 4px 0; align-items: center; }
.bonus-row-icon { width: 15px; height: 15px; object-fit: contain; vertical-align: -3px; margin-left: 4px; }
.fin-table .row .v.neg { color: var(--red); }
.fin-table .row.total { border-top: 1px solid var(--border); margin-top: 4px; padding-top: 7px; font-weight: 700; font-size: 16px; }
.fin-table .row.total .v.pos { color: var(--green); }
.fin-table .row.total .v.neg { color: var(--red); }

.pkg-value-btn {
  background: rgba(240, 201, 97, 0.16);
  border: 1px solid rgba(240, 201, 97, 0.45);
  border-radius: 8px;
  color: var(--amber);
  font-size: 14px;
  font-weight: 700;
  padding: 3px 8px;
  text-decoration: none;
  cursor: pointer;
}

.order-link { display: block; width: fit-content; margin-top: 8px; font-size: 16px; color: var(--green); text-decoration: none; }

.empty-state { text-align: center; color: var(--muted); padding: 40px 10px; font-size: 15px; }

.toast {
  position: fixed;
  bottom: calc(env(safe-area-inset-bottom) + 16px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 14px;
  z-index: 50;
  box-shadow: 0 6px 20px rgba(0,0,0,.4);
}

.spinner-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  padding: 80px 24px;
  color: var(--text);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.4;
}
.spinner-wrap span.spinner-emoji { font-size: 38px; }

.summary-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

/* ---------- лончер ---------- */
.launcher-btn {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 32px 16px;
}
.launcher-emoji { font-size: 44px; line-height: 1; }
.launcher-badge {
  position: absolute;
  top: 10px;
  right: 14px;
  background: var(--red);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  min-width: 30px;
  height: 30px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 7px;
}
.launcher-badge[hidden] { display: none; }

/* ---------- отзывы ---------- */
.review-text { font-size: 14px; color: var(--text); margin-top: 8px; line-height: 1.4; white-space: pre-wrap; }
.chip-new {
  background: var(--green);
  color: #06210f;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
}
.review-reply { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border); }
.review-reply-text { font-size: 14px; color: var(--green); margin-bottom: 8px; line-height: 1.4; white-space: pre-wrap; }
.review-followup-text { font-size: 14px; color: var(--text); margin: 0 0 8px 14px; line-height: 1.4; padding-left: 8px; border-left: 2px solid var(--border); white-space: pre-wrap; }

.photo-strip { display: flex; gap: 8px; overflow-x: auto; margin-top: 10px; }
.photo-strip img { width: 84px; height: 84px; border-radius: 10px; object-fit: cover; flex: none; }

/* ---------- чаты ---------- */
.chat-card { cursor: pointer; touch-action: pan-y; }
.chat-card:active { background: var(--nav); }
.chat-card.selected-card { box-shadow: inset 0 0 0 2px var(--green); }
.select-checkbox { font-size: 16px; flex: none; }

.chats-toolbar { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.chats-toolbar .btn { width: auto; flex: none; }

#chat-list.has-floating-bar, #hidden-chat-list.has-floating-bar { padding-bottom: 72px; }

.chat-select-bar {
  position: fixed;
  left: 50%;
  bottom: calc(env(safe-area-inset-bottom) + 14px);
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 612px;
  display: flex;
  gap: 8px;
  background: var(--nav);
  padding: 10px;
  border-radius: 14px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .4);
  z-index: 50;
}
.chat-select-bar .btn { flex: 1; width: auto; }

.chat-messages { display: flex; flex-direction: column; gap: 8px; padding-bottom: 8px; }
.chat-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  background: var(--bg);
  box-shadow: 0 -8px 20px rgba(0,0,0,.35);
  padding: 8px 14px calc(env(safe-area-inset-bottom) + 10px);
  max-width: 640px;
  margin: 0 auto;
  box-sizing: border-box;
}
.chat-bubble {
  max-width: 78%;
  min-width: 0;
  border-radius: 14px;
  padding: 9px 12px;
  font-size: 14px;
  line-height: 1.4;
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: pre-wrap;
}
.chat-bubble.theirs { align-self: flex-start; background: var(--card); color: var(--text); }
.chat-bubble.mine { align-self: flex-end; background: var(--green); color: #06210f; }
.chat-bubble.system { align-self: center; background: transparent; color: var(--muted); font-size: 12px; }
.chat-bubble-time { font-size: 11px; opacity: .65; margin-top: 3px; text-align: right; }

.chat-send-row {
  display: flex;
  gap: 8px;
}
.chat-send-row .search-box { margin-bottom: 0; flex: 1; }
.chat-send-row .btn { flex: none; width: auto; padding: 11px 16px; }
.chat-send-row .btn.attach { padding: 11px 13px; font-size: 17px; }
.chat-input-trigger { display: flex; align-items: center; cursor: pointer; overflow: hidden; }
.chat-input-trigger span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-input-preview-placeholder { color: var(--muted); }
.chat-staged-row { display: none; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.chat-staged-thumb { position: relative; width: 56px; height: 56px; border-radius: 10px; overflow: hidden; flex: none; }
.chat-staged-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.chat-staged-remove { position: absolute; top: 2px; right: 2px; width: 18px; height: 18px; border-radius: 50%; background: rgba(0,0,0,.65); color: #fff; border: none; font-size: 11px; line-height: 18px; padding: 0; }

.modal-overlay-blur { background: rgba(15,28,51,.35); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); }
.push-hist-swipe {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  border-radius: 14px;
  margin-bottom: 10px;
}
.push-hist-swipe::-webkit-scrollbar { display: none; }
.push-history-card { flex: 1 0 100%; scroll-snap-align: start; min-width: 0; margin-bottom: 0; }
.push-history-card[data-push-url] { cursor: pointer; touch-action: manipulation; }
.stock-row { display: flex; align-items: center; gap: 12px; background: var(--card); border-radius: 14px; padding: 10px 12px; margin-bottom: 8px; }
.stock-row-img { width: 46px; height: 62px; object-fit: contain; border-radius: 8px; flex: none; background: #fff; }
.stock-row-img.placeholder { background: #0f1c33; }
.stock-row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.stock-row-sku { font-size: 14px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stock-row-cost { font-size: 12px; color: var(--muted); }
.stocks-total-cost-card { text-align: center; margin-bottom: 12px; }
.stocks-total-cost-label { font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.stocks-total-cost-value { font-size: 24px; font-weight: 700; color: var(--text); }
.stocks-total-cost-note { font-size: 12px; color: var(--amber); margin-top: 4px; }
.stock-row-count { flex: none; font-size: 13px; font-weight: 700; padding: 5px 12px; border-radius: 999px; background: rgba(255,255,255,.08); color: var(--amber); }
.stock-row-count.zero { color: var(--red); }
.stock-row-reserve { flex: none; font-size: 13px; font-weight: 700; padding: 5px 12px; border-radius: 999px; background: var(--red); color: #fff; }
.stock-row-reserve + .stock-row-count { margin-left: -8px; }
.push-hist-delete-btn {
  flex: 0 0 92px;
  scroll-snap-align: end;
  background: var(--red);
  color: #fff;
  border: none;
  font-weight: 700;
  font-size: 14px;
  touch-action: manipulation;
}

.inline-coin-icon { width: 24px; height: 24px; object-fit: contain; vertical-align: -6px; margin-right: 3px; }
.topbar-bell-icon { width: 28.5px; height: 28.5px; vertical-align: middle; transform: translateY(-1.5px); }

.push-highlight { box-shadow: 0 0 0 3px var(--blue); transition: box-shadow .3s ease; }

.chat-bubble-images { display: flex; flex-wrap: wrap; gap: 6px; }
.chat-bubble-text + .chat-bubble-images { margin-top: 6px; }
.chat-bubble-img { width: 120px; height: 120px; object-fit: cover; border-radius: 10px; cursor: pointer; display: block; }
.lightbox-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.85); display: flex; align-items: center; justify-content: center; z-index: 200; padding: 16px; }
.lightbox-img { max-width: 100%; max-height: 100%; border-radius: 8px; object-fit: contain; }
.lightbox-close { position: absolute; top: 16px; right: 16px; background: rgba(255,255,255,.15); border: none; color: #fff; width: 36px; height: 36px; border-radius: 10px; font-size: 18px; }

/* Shop filter chips */
.shop-filter-row { display: flex; gap: 6px; flex-wrap: wrap; padding: 2px 0 8px; margin-bottom: 2px; }
.shop-chip { display: inline-flex; align-items: center; gap: 4px; border: 1.5px solid rgba(255,255,255,.18); border-radius: 999px; padding: 6px 13px; font-size: 13px; font-weight: 600; color: rgba(255,255,255,.45); background: rgba(255,255,255,.04); cursor: pointer; white-space: nowrap; touch-action: manipulation; transition: background .15s ease, color .15s ease, border-color .15s ease; }
.shop-chip.active { border-color: var(--green); color: var(--green); background: rgba(98,212,119,.12); }
.shop-chip-cnt {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  font-size: 11px;
  opacity: .85;
}
.shop-chip.active .shop-chip-cnt { background: rgba(98,212,119,.18); opacity: 1; }
.shop-chip .shop-chip-reserve { margin-left: 0; }
.shop-chip-reserve {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  margin-left: 4px;
  border-radius: 999px;
  background: var(--red);
  opacity: .8;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}
