/* Live auctions (scripts/live-auction.js). The live page is a dark full screen over the camera, like the design tried
   on assets/preview/auction.html; the lists (lives, purchases, sales, admin) follow the app's light/dark colours. */
body.live-open .topbar,
body.live-open .bottom-nav {
  display: none !important;
}
body.live-open {
  overflow: hidden;
}

/* ---- lives on now ---- */
.lv-list-page {
  padding-bottom: 110px;
}
.lv-list-head h1 {
  margin: 2px 0;
}
.lv-go {
  width: 100%;
  margin: 12px 0 10px;
  padding: 14px;
  font-size: 17px;
}
.lv-list-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}
.lv-list-links button {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px 6px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.lv-link-icon {
  font-size: 20px;
  line-height: 1;
  color: var(--primary);
}
.lv-link-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.lv-dot {
  position: absolute;
  top: 6px;
  inset-inline-end: 8px;
  min-width: 20px;
  height: 20px;
  border-radius: 10px;
  background: var(--danger);
  color: #fff;
  font-size: 12px;
  display: grid;
  place-items: center;
  padding: 0 5px;
}
.lv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
}
.lv-card {
  border-radius: 18px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  cursor: pointer;
}
.lv-card-media {
  position: relative;
  aspect-ratio: 3/4;
  background: radial-gradient(circle at 50% 35%, #475569, #0f172a 75%);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 28px;
  font-weight: 800;
}
.lv-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.lv-badge {
  position: absolute;
  top: 8px;
  inset-inline-start: 8px;
  background: #dc2626;
  color: #fff;
  border-radius: 6px;
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 700;
}
.lv-card-viewers {
  position: absolute;
  top: 8px;
  inset-inline-end: 8px;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  border-radius: 6px;
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 600;
}
.lv-card-place {
  font-size: 12.5px;
}
.lv-currency {
  font-size: 12px;
  font-weight: 800;
  opacity: 0.75;
  direction: ltr;
}
/* the buyer's bill before confirming, and under each purchase */
.lv-bill {
  margin: 6px 0 2px;
  font-size: 13.5px;
}
.lv-billrow {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 2px 0;
  color: var(--muted, #667085);
}
.lv-order-bill {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px dashed var(--border);
  font-size: 12.5px;
}
.lv-card-follow {
  position: absolute;
  bottom: 8px;
  inset-inline-start: 8px;
  background: rgba(10, 18, 35, 0.62);
  color: #fde68a;
  border-radius: 6px;
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 700;
}
.lv-follow-summary {
  margin: 0 0 14px;
}
/* following merchants: "+ متابعة" on the live page, the row on a merchant's page */
.lv-follow {
  flex: none;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: var(--primary, #2563eb);
  padding: 6px 12px;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}
.lv-pf-follow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}
.lv-pf-follow small {
  color: var(--muted);
  margin-inline-start: auto;
}
.live-follow-row .chat-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.lv-card-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 10px 10px;
  line-height: 1.35;
}
.lv-card-copy span {
  color: var(--muted);
  font-size: 13px;
}
.lv-card-price {
  color: var(--primary) !important;
  font-weight: 700;
}
.lv-empty {
  text-align: center;
  padding: 30px 10px;
}
.lv-test-note {
  background: #fef3c7;
  color: #92400e;
  border-radius: 12px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 600;
  margin: 8px 0;
}
.lv-rules-list {
  margin: 8px 0;
  padding-inline-start: 20px;
  line-height: 1.7;
  color: var(--text);
}
.lv-check {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 8px 0;
  font-weight: 600;
}
.lv-check input {
  width: 20px;
  height: 20px;
  accent-color: var(--primary);
  flex: none;
}

/* ---- the live page ---- */
.lv-page {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: #000;
  color: #fff;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding-top: env(safe-area-inset-top);
  direction: rtl;
}
html[dir="ltr"] .lv-page {
  direction: ltr;
}
.lv-video {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 50% 35%, #475569, #0f172a 72%);
}
.lv-cam,
.lv-remote {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.lv-cam.lv-mirror {
  transform: scaleX(-1);
}
.lv-remote.lv-fit {
  object-fit: contain;
}
/* over the viewer's video until it shows (live-video.js), and the sound button */
.lv-vstate {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.lv-vstate:empty {
  display: none;
}
.lv-vstate .lv-spin {
  width: 46px;
  height: 46px;
  border-width: 5px;
}
.lv-unmute {
  pointer-events: auto;
  position: absolute;
  top: calc(env(safe-area-inset-top) + 136px); /* (under the clock at the top) */
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 0, 0, 0.62);
  color: #fff;
  border: 0;
  border-radius: 22px;
  padding: 9px 16px;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}
/* "إنترنت ضعيف": a small note under the clock, only on the phone whose own internet is weak (lower when the sound button
   is there too). It never takes taps. */
.lv-weakbox {
  position: absolute;
  top: calc(env(safe-area-inset-top) + 136px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  pointer-events: none;
}
.lv-weakbox:empty {
  display: none;
}
.lv-page:has(.lv-unmute) .lv-weakbox {
  top: calc(env(safe-area-inset-top) + 184px);
}
.lv-weak {
  display: block;
  background: rgba(200, 40, 40, 0.85);
  color: #fff;
  border-radius: 16px;
  padding: 5px 12px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  text-align: center;
}
.lv-weak small {
  display: block;
  font-size: 12px;
  font-weight: 500;
  white-space: normal;
  width: max-content;
  max-width: min(78vw, 300px);
}
.lv-novideo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: 0.85;
  text-align: center;
  padding: 20px;
}
.lv-novideo-ava {
  font-size: 42px;
  color: #dc2626;
}
.lv-shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.5), transparent 20%, transparent 50%, rgba(0, 0, 0, 0.55));
}
.lv-head {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 10px 6px;
}
.lv-round {
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 50%;
  border: 0;
  background: rgba(0, 0, 0, 0.42);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 18px;
  cursor: pointer;
  position: relative;
}
.lv-round svg {
  width: 22px;
  height: 22px;
}
.lv-round .back-chevron {
  stroke: #fff;
}
.lv-bag svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.lv-count {
  position: absolute;
  top: -3px;
  inset-inline-end: -3px;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  background: #dc2626;
  font-size: 11px;
  font-weight: 800;
  display: grid;
  place-items: center;
  padding: 0 4px;
}
.lv-ava {
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 50%;
  background: #f59e0b;
  display: grid;
  place-items: center;
  font-weight: 800;
  overflow: hidden;
  cursor: pointer;
}
.lv-ava img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.lv-whobox {
  flex: 1;
  min-width: 0;
  line-height: 1.25;
  cursor: pointer;
}
.lv-whobox b {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lv-whobox small {
  opacity: 0.85;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}
.lv-live {
  background: #dc2626;
  border-radius: 6px;
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 700;
  flex: none;
}
.lv-live.lv-off {
  background: rgba(0, 0, 0, 0.5);
}
.lv-viewers {
  background: rgba(0, 0, 0, 0.42);
  border-radius: 6px;
  padding: 2px 8px;
  font-size: 12px;
  flex: none;
}
.lv-end {
  background: #dc2626;
  color: #fff;
  border: 0;
  border-radius: 10px;
  padding: 8px 10px;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  flex: none;
}
.lv-spacer {
  flex: 1;
}
.lv-feed {
  position: relative;
  z-index: 2;
  padding: 0 10px 8px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  max-height: 40%;
  overflow: hidden;
  justify-content: flex-end;
  -webkit-mask-image: linear-gradient(transparent, #000 22%);
  mask-image: linear-gradient(transparent, #000 22%);
}
.lv-feed > div {
  background: rgba(0, 0, 0, 0.45);
  border-radius: 12px;
  padding: 4px 10px;
  font-size: 13.5px;
  line-height: 1.45;
  max-width: 90%;
  overflow-wrap: anywhere;
}
.lv-who {
  color: #fde68a;
  cursor: pointer;
}
.lv-feed .lv-bidline {
  background: rgba(37, 99, 235, 0.6);
}
.lv-feed .lv-bidline .lv-who {
  color: #fff;
}
.lv-feed .lv-badbid {
  background: rgba(220, 38, 38, 0.62);
}
.lv-feed .lv-struck {
  background: rgba(71, 85, 105, 0.62);
  text-decoration: line-through;
  opacity: 0.82;
}
.lv-feed .lv-sys {
  background: rgba(217, 119, 6, 0.78);
  font-weight: 600;
}
.lv-feed .lv-sys .lv-who {
  color: #fff;
}
.lv-money {
  font-variant-numeric: tabular-nums;
  unicode-bidi: isolate;
}
.lv-bottom {
  position: relative;
  z-index: 3;
  padding: 0 8px max(8px, env(safe-area-inset-bottom));
}
.lv-compose {
  display: flex;
  gap: 6px;
  margin-top: 6px;
}
.lv-compose input {
  flex: 1;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(0, 0, 0, 0.42);
  color: #fff;
  border-radius: 22px;
  padding: 9px 14px;
  font: inherit;
  font-size: 15px;
}
.lv-compose input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}
.lv-compose button {
  width: 42px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 17px;
  cursor: pointer;
}

/* the auction panel: a small glass card that can be lowered to one line */
.lv-panel {
  background: rgba(10, 15, 28, 0.66);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  padding: 6px 12px 12px;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.lv-handle {
  display: flex;
  justify-content: center;
  width: 100%;
  background: none;
  border: 0;
  padding: 2px 0 6px;
  cursor: pointer;
  touch-action: none;
}
.lv-handle i {
  display: block;
  width: 38px;
  height: 5px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.55);
}
.lv-row1 {
  display: flex;
  align-items: center;
  gap: 8px;
}
.lv-title {
  font-size: 15px;
  font-weight: 800;
  flex: 1;
}
.lv-now {
  font-size: 24px;
  font-weight: 800;
}
.lv-by {
  font-size: 12.5px;
  opacity: 0.85;
  flex: 1;
  min-width: 0;
}
.lv-link {
  text-decoration: underline;
}
.lv-wait {
  opacity: 0.9;
  text-align: center;
  padding: 8px 0;
  font-size: 14px;
}
.lv-notice {
  font-size: 12.5px;
  color: #fcd34d;
  margin-top: 4px;
  line-height: 1.5;
}
.lv-notice .lv-who {
  color: #fde68a;
}
.lv-quick {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: 8px;
}
.lv-quick button {
  background: var(--primary, #2563eb);
  color: #fff;
  border: 0;
  border-radius: 10px;
  padding: 10px 2px;
  font: inherit;
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
}
.lv-quick button:disabled,
.lv-bidbar button:disabled,
.lv-bidbar .lv-num:disabled {
  opacity: 0.4;
}
.lv-bidbar {
  display: flex;
  gap: 6px;
  margin-top: 6px;
}
.lv-num {
  padding: 8px 10px;
  border-radius: 10px;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  direction: ltr;
  min-width: 0;
}
.lv-num::placeholder {
  color: rgba(255, 255, 255, 0.55);
  font-weight: 400;
}
.lv-num:focus {
  outline: none;
  border-color: #93c5fd;
}
.lv-bidbar .lv-num {
  flex: 1;
}
.lv-bidbar button {
  background: #16a34a;
  color: #fff;
  border: 0;
  border-radius: 10px;
  padding: 0 18px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
/* "زايد" bigger, the typed amount narrower (owner's request 2026-10-19) */
.lv-bidbar button {
  flex: 0 0 40%;
  font-size: 18px;
  padding: 11px 8px;
}
@keyframes lv-beat-green {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  }
  50% {
    transform: scale(1.06);
    box-shadow: 0 0 0 7px rgba(34, 197, 94, 0);
  }
}
.lv-err {
  color: #fca5a5;
  font-size: 12.5px;
  margin-top: 4px;
}
.lv-err:empty {
  display: none;
}
.lv-small {
  font-size: 12px;
  opacity: 0.85;
  margin-top: 6px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.lv-mine {
  font-size: 12.5px;
  margin-top: 4px;
  font-weight: 700;
}
.lv-mine.lead {
  color: #86efac;
}
.lv-mine.out {
  color: #fca5a5;
}
.lv-rules-link {
  width: 100%;
  margin-top: 8px;
  background: #fef3c7;
  color: #92400e;
  border: 0;
  border-radius: 10px;
  padding: 8px;
  font: inherit;
  font-weight: 700;
  font-size: 13.5px;
  cursor: pointer;
}
.lv-field {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  font-weight: 600;
  font-size: 14px;
}
.lv-field small {
  display: block;
  opacity: 0.75;
  font-weight: 400;
  font-size: 11.5px;
}
.lv-field .lv-num {
  width: 110px;
  text-align: center;
}
.lv-start {
  width: 100%;
  margin-top: 10px;
  background: var(--primary, #2563eb);
  color: #fff;
  border: 0;
  border-radius: 12px;
  padding: 12px;
  font: inherit;
  font-weight: 800;
  font-size: 16px;
  cursor: pointer;
}
.lv-start:disabled {
  opacity: 0.6;
}
/* "End without selling", red beside the green "sell now" (alone, full width, before the first bid). */
.lv-nosell {
  flex: 0.8;
  background: #dc2626;
  color: #fff;
  border: 0;
  border-radius: 12px;
  font: inherit;
  font-weight: 800;
  font-size: 14px;
  line-height: 1.25;
  padding: 8px 6px;
  cursor: pointer;
}
.lv-nosell:only-child {
  flex: 1;
  padding: 10px 8px;
}
.lv-closeask {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 6px 8px;
  font-size: 13.5px;
}
.lv-closeask > span {
  flex: 1;
}
.lv-closeask button {
  border: 0;
  border-radius: 9px;
  padding: 7px 12px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  color: #fff;
}
.lv-cl-yes {
  background: #dc2626;
}
.lv-cl-no {
  background: rgba(255, 255, 255, 0.18);
}
.lv-badwarn {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  background: rgba(220, 38, 38, 0.25);
  border: 1px solid rgba(252, 165, 165, 0.5);
  border-radius: 12px;
  padding: 7px 9px;
  font-size: 13px;
  line-height: 1.45;
}
.lv-badwarn > span {
  flex: 1;
}
.lv-badwarn .lv-who {
  color: #fff;
}
.lv-badwarn button {
  background: #dc2626;
  color: #fff;
  border: 0;
  border-radius: 10px;
  padding: 8px 10px;
  font: inherit;
  font-weight: 800;
  font-size: 13.5px;
  white-space: nowrap;
  cursor: pointer;
}
.lv-sellrow {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}
.lv-net {
  flex: 1;
  background: rgba(22, 163, 74, 0.22);
  border: 1px solid rgba(134, 239, 172, 0.35);
  border-radius: 12px;
  padding: 4px 10px;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  font: inherit;
  cursor: pointer;
}
.lv-net small {
  font-size: 11.5px;
  opacity: 0.85;
}
.lv-net strong {
  color: #86efac;
  font-size: 22px;
}
.lv-sell {
  flex: 1;
  background: #16a34a;
  color: #fff;
  border: 0;
  border-radius: 12px;
  font: inherit;
  font-weight: 800;
  font-size: 16px;
  padding: 8px;
  cursor: pointer;
}
.lv-calc {
  margin-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-top: 4px;
  font-size: 13px;
}
.lv-calcrow {
  display: flex;
  justify-content: space-between;
  padding: 2px 0;
}
.lv-calcrow > span:last-child {
  color: #fca5a5;
}
.lv-rate {
  opacity: 0.7;
  font-size: 11.5px;
  direction: ltr;
  unicode-bidi: isolate;
}
.lv-mini {
  padding: 6px 10px;
}
.lv-mini .lv-now {
  font-size: 18px;
}
.lv-mini-net {
  color: #86efac;
  font-weight: 800;
  font-size: 14px;
}
.lv-mini-bad {
  color: #fca5a5;
  font-weight: 800;
  font-size: 18px;
}
.lv-mini-btn {
  background: var(--primary, #2563eb);
  color: #fff;
  border: 0;
  border-radius: 9px;
  padding: 6px 10px;
  font: inherit;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
}
.lv-mini-btn.lv-green {
  background: #16a34a;
}
.lv-up {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  border: 0;
  border-radius: 9px;
  width: 34px;
  height: 32px;
  font-size: 16px;
  cursor: pointer;
  touch-action: none;
}

/* the 20-second confirm cards */
.lv-confirm {
  background: var(--surface, #fff);
  color: var(--text, #172033);
  border-radius: 18px;
  padding: 14px;
  box-shadow: 0 -6px 30px rgba(0, 0, 0, 0.35);
  animation: lv-rise 0.2s ease-out;
}
@keyframes lv-rise {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
}
.lv-confirm h3 {
  margin: 0;
  font-size: 17px;
}
.lv-confirm p {
  margin: 6px 0;
  color: var(--muted, #667085);
  font-size: 14px;
  line-height: 1.5;
}
.lv-confirm .lv-who {
  color: var(--text, #172033);
}
.lv-amount {
  font-size: 26px;
  font-weight: 800;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.lv-amount small {
  font-size: 13px;
  color: var(--muted, #667085);
  font-weight: 400;
}
.lv-cd {
  height: 6px;
  border-radius: 9px;
  background: var(--bg, #eef1f7);
  overflow: hidden;
  margin: 10px 0 4px;
}
.lv-cd i {
  display: block;
  height: 100%;
  background: #f59e0b;
  transform-origin: right;
  transition: transform 0.25s linear;
}
html[dir="ltr"] .lv-cd i {
  transform-origin: left;
}
.lv-cdtext {
  font-size: 12.5px;
  color: var(--muted, #667085);
}
.lv-btns {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}
.lv-btns button {
  flex: 1;
  padding: 12px;
  border-radius: 12px;
  font: inherit;
  font-weight: 800;
  font-size: 16px;
  cursor: pointer;
  border: 0;
}
.lv-yes {
  background: #16a34a;
  color: #fff;
}
.lv-no {
  background: transparent;
  color: #dc2626;
  border: 1.5px solid #dc2626 !important;
}
.lv-badnote {
  color: #dc2626 !important;
  font-weight: 600;
}
.lv-confirm .lv-test-note {
  margin: 8px 0 0;
}
.lv-test-btn {
  width: 100%;
  margin-top: 8px;
  background: #fef3c7;
  color: #92400e;
  border: 1px dashed #d97706;
  border-radius: 10px;
  padding: 9px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

/* results over the whole live */
.lv-over {
  position: absolute;
  inset: 0;
  z-index: 10;
  background: rgba(15, 23, 42, 0.76);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}
.lv-over h2 {
  margin: 22px 0 6px;
  font-size: 22px;
}
.lv-over p {
  margin: 4px 0;
  opacity: 0.92;
  line-height: 1.6;
  max-width: 360px;
}
.lv-over .lv-who {
  color: #fde68a;
}
.lv-big {
  font-size: 28px;
  font-weight: 800;
  color: #86efac;
}
.lv-over button {
  margin-top: 16px;
  background: #fff;
  color: #172033;
  border: 0;
  border-radius: 12px;
  padding: 10px 22px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.lv-over .lv-ghost {
  background: transparent;
  color: #fff;
  margin-top: 6px;
}
.lv-over .lv-test-note {
  max-width: 360px;
}
.lv-spin {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 6px solid rgba(255, 255, 255, 0.25);
  border-top-color: #fff;
  animation: lv-spin 0.8s linear infinite;
}
@keyframes lv-spin {
  to {
    transform: rotate(360deg);
  }
}
.lv-circle {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: #16a34a;
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 12px rgba(22, 163, 74, 0.25);
  animation: lv-pop 0.35s ease-out;
  flex: none;
}
.lv-circle.bad {
  background: #dc2626;
  box-shadow: 0 0 0 12px rgba(220, 38, 38, 0.25);
}
.lv-circle svg {
  width: 84px;
  height: 84px;
  stroke: #fff;
  stroke-width: 7;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.lv-circle path {
  stroke-dasharray: 60;
  stroke-dashoffset: 60;
  animation: lv-draw 0.45s 0.25s ease-out forwards;
}
@keyframes lv-pop {
  from {
    transform: scale(0.4);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}
@keyframes lv-draw {
  to {
    stroke-dashoffset: 0;
  }
}

/* the rules a buyer accepts */
.lv-sheet {
  position: absolute;
  inset: 0;
  z-index: 12;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: flex-end;
}
.lv-sheet > div {
  background: var(--surface, #fff);
  color: var(--text, #172033);
  width: 100%;
  max-height: 88%;
  overflow: auto;
  border-radius: 18px 18px 0 0;
  padding: 18px 16px max(18px, env(safe-area-inset-bottom));
}
.lv-sheet h3 {
  margin: 0 0 8px;
}
.lv-sheet ul {
  margin: 6px 0;
  padding-inline-start: 20px;
  line-height: 1.7;
}
.lv-sheet .lv-btns .lv-later {
  background: var(--bg, #eef1f7);
  color: var(--text, #172033);
}
.lv-sheet .lv-btns .lv-ok {
  background: var(--primary, #2563eb);
  color: #fff;
}

/* people's pages */
.lv-pf-top {
  display: flex;
  gap: 12px;
  align-items: center;
}
.lv-pf-top h3 {
  margin: 0;
}
.lv-pf-top small {
  color: var(--muted);
}
.lv-pf-ava {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 20px;
  font-weight: 800;
  overflow: hidden;
  flex: none;
}
.lv-pf-ava img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.lv-pf-ava.lv-amber {
  background: #f59e0b;
}
.lv-tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 14px;
}
.lv-tile {
  background: var(--bg);
  border-radius: 14px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.lv-tile strong {
  font-size: 26px;
}
.lv-tile span {
  color: var(--muted);
  font-size: 13px;
}
.lv-tile.ok strong {
  color: #16a34a;
}
.lv-tile.wait strong {
  color: #d97706;
}
.lv-tile.bad strong {
  color: #dc2626;
}
.lv-pf-note {
  text-align: center;
  color: var(--muted);
  margin: 12px 0 0;
}

/* purchases and sales */
.lv-orders {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}
.lv-order {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 10px;
  background: var(--surface);
}
.lv-order-row {
  display: flex;
  gap: 10px;
  align-items: center;
}
.lv-order-ic {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--primary-soft);
  color: var(--primary);
  display: grid;
  place-items: center;
  overflow: hidden;
  flex: none;
  font-size: 20px;
  cursor: pointer;
}
.lv-order-ic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.lv-order-ic svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.lv-order-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  line-height: 1.4;
}
.lv-order-main small {
  color: var(--muted);
}
.lv-order-main .lv-who {
  color: var(--text);
}
.lv-order-price {
  font-weight: 800;
  text-align: end;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.lv-order-price small {
  font-weight: 600;
  color: #16a34a;
  font-size: 12px;
}
.lv-state {
  font-size: 12.5px;
  color: #b45309;
  font-weight: 600;
}
.lv-state.ok {
  color: #16a34a;
}
.lv-state.bad {
  color: #dc2626;
}
.lv-state.wait {
  color: #6366f1;
}
.lv-until {
  font-size: 12px;
  color: var(--muted);
}
.lv-qr-btn {
  width: 100%;
  margin-top: 8px;
  background: var(--primary);
  color: #fff;
  border: 0;
  border-radius: 10px;
  padding: 10px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.lv-accept-btn {
  width: 100%;
  margin-top: 10px;
  background: #1fa855;
  color: #fff;
  border: 0;
  border-radius: 10px;
  padding: 10px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.lv-refuse-btn {
  width: 100%;
  margin-top: 8px;
  background: transparent;
  color: #d93a3a;
  border: 1.5px solid #d93a3a;
  border-radius: 10px;
  padding: 9px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.lv-unbox-view {
  display: block;
  width: 100%;
  max-height: 52vh;
  background: #000;
  border-radius: 12px;
  object-fit: cover;
}
.lv-unbox-ctrl {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.lv-unbox-ctrl .lv-qr-btn {
  flex: 1;
}
.lv-unbox-ctrl .lv-refuse-btn,
.lv-unbox-ctrl .lv-err,
.lv-unbox-ctrl .muted {
  flex-basis: 100%;
}
.lv-unbox-flip {
  margin-top: 8px;
  width: 46px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--line, #ccc);
  background: transparent;
  font-size: 20px;
  cursor: pointer;
}
.lv-unbox-time {
  margin: 8px 0 0;
  flex-basis: 100%;
  text-align: center;
  font-weight: 800;
  color: #d93a3a;
}
.lv-qr {
  display: block;
  margin: 10px auto 0;
  width: 200px;
  height: 200px;
  image-rendering: pixelated;
  background: #fff;
  border-radius: 12px;
  padding: 6px;
}
.lv-warn {
  color: #dc2626;
  font-size: 13px;
  text-align: center;
  margin: 8px 0 0;
}
.lv-order-more {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
}
.lv-order-more button {
  background: transparent;
  color: var(--muted);
  border: 1px dashed var(--border);
  border-radius: 10px;
  padding: 8px;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.lv-scan-btn {
  margin: 10px 0;
}
.lv-scan-sheet .camera-preview {
  border-radius: 16px;
  overflow: hidden;
}
.lv-scan-ok {
  text-align: center;
}
.lv-scan-ok .lv-circle {
  width: 90px;
  height: 90px;
  margin: 8px auto 0;
}
.lv-scan-ok .lv-circle svg {
  width: 50px;
  height: 50px;
}
.lv-scan-ok h3 {
  margin: 10px 0 4px;
}
.lv-scan-bad {
  color: #dc2626;
  font-weight: 700;
  text-align: center;
}
.lv-scan-manual {
  margin-top: 12px;
}

/* admins */
.lv-admin-form {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px;
}
.lv-admin-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.lv-admin-row input {
  width: 96px;
  padding: 8px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font: inherit;
  text-align: center;
}
.lv-admin-title {
  font-size: 17px;
  margin: 18px 4px 6px;
}
.lv-penalty-note {
  font-size: 12.5px;
  color: #b45309 !important;
  margin: 6px 0 0;
}

/* ---- a purchase's chat (migration 064): the merchant and the buyer, like a market chat ---- */
.lv-chat-dot {
  position: absolute;
  top: 6px;
  inset-inline-start: 8px;
  min-width: 20px;
  height: 20px;
  border-radius: 10px;
  background: #16a34a;
  color: #fff;
  font-size: 11px;
  display: grid;
  place-items: center;
  padding: 0 6px;
}
.lv-chat-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  margin-top: 8px;
  padding: 9px;
  border: 1px solid var(--primary);
  border-radius: 12px;
  background: var(--primary-soft);
  color: var(--primary);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.lv-chat-count {
  min-width: 20px;
  height: 20px;
  border-radius: 10px;
  background: var(--danger);
  color: #fff;
  font-size: 12px;
  display: inline-grid;
  place-items: center;
  padding: 0 5px;
}
.lv-chat-order {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: inherit;
  border-radius: 15px;
  padding: 9px 11px;
  margin-bottom: 12px;
  text-align: start;
  font: inherit;
  cursor: pointer;
}
.lv-chat-order-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.lv-chat-order-main strong {
  font-size: 0.92rem;
}
.lv-chat-order > .lv-money {
  flex: none;
  font-weight: 700;
}
.lv-chat-initials {
  display: grid;
  place-items: center;
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 700;
  font-size: 15px;
}
.lv-chat-from {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 2px;
}
.lv-call-line em {
  font-style: normal;
}
.lv-chat-note {
  justify-content: center;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}
.lv-chat .bubble[data-lv-chat-retry] {
  cursor: pointer;
}

/* Product cards (migration 068): a short line on purchases, sales and the live (pinned over the auction panel). */
.lv-prod {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin-bottom: 8px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface-2, var(--surface));
  color: var(--text);
  font: inherit;
  text-align: start;
  cursor: pointer;
}
.lv-prod-ph {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  overflow: hidden;
  flex: none;
  display: grid;
  place-items: center;
  background: var(--primary-soft);
  font-size: 22px;
}
.lv-prod-ph img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.lv-prod-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  line-height: 1.35;
}
.lv-prod-main b {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lv-prod-main small {
  color: var(--muted);
  font-size: 12px;
}
.lv-prod-no {
  color: var(--primary) !important;
  font-weight: 800;
  font-size: 12px;
}
.lv-prod-more {
  color: var(--muted);
  font-size: 18px;
  flex: none;
}
.lv-prod.lv-pin {
  margin: 0 0 6px;
  background: rgba(10, 15, 28, 0.66);
  border-color: rgba(255, 255, 255, 0.18);
  color: #fff;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.lv-prod.lv-pin .lv-prod-main small,
.lv-prod.lv-pin .lv-prod-more {
  color: rgba(255, 255, 255, 0.75);
}
.lv-prod.lv-pin .lv-prod-no {
  color: #fbbf24 !important;
}
.lv-panel .lv-prod {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
  color: #fff;
  margin: 6px 0;
}
.lv-panel .lv-prod .lv-prod-main small,
.lv-panel .lv-prod .lv-prod-more {
  color: rgba(255, 255, 255, 0.75);
}
.lv-prod-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-inline-start: auto;
  color: rgba(255, 255, 255, 0.8);
}
.lv-prod-nav button {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: transparent;
  color: #fff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}
.lv-card-sheet .lv-card-photos {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  margin: 8px 0;
}
.lv-card-sheet .lv-card-photos img {
  width: min(78vw, 320px);
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 14px;
  flex: none;
  scroll-snap-align: center;
}
.lv-card-details {
  white-space: pre-wrap;
  margin: 8px 0;
}
.lv-card-rows {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}
.lv-card-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 12px;
  border-top: 1px solid var(--border);
}
.lv-card-row:first-child {
  border-top: 0;
}
.lv-card-row span {
  color: var(--muted);
}
.lv-frozen {
  font-size: 12.5px;
  margin-top: 10px;
}
/* The list prepared before the live, and its form. */
.lv-note {
  margin: 4px 0 12px;
}
.lv-prod-item .lv-order-ic {
  width: 56px;
  height: 56px;
}
.lv-prod-tools {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.lv-prod-tools button {
  width: 34px;
  height: 30px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}
.lv-prod-tools button:disabled {
  opacity: 0.3;
}
.lv-product-form textarea {
  width: 100%;
  font: inherit;
  resize: vertical;
}
.lv-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.lv-prod-photos {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.lv-prod-photos figure {
  position: relative;
  margin: 0;
  width: 76px;
  height: 76px;
  border-radius: 12px;
  overflow: hidden;
}
.lv-prod-photos img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.lv-prod-photos figure button {
  position: absolute;
  top: 3px;
  inset-inline-end: 3px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 0;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  cursor: pointer;
}
.lv-prod-add {
  width: 76px;
  height: 76px;
  border: 2px dashed var(--border);
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 28px;
  color: var(--muted);
  cursor: pointer;
}
.lv-radio {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 8px 0;
  font-weight: 600;
}
.lv-radio input {
  width: 20px;
  height: 20px;
  flex: none;
  margin: 0;
}
/* Handing over: shipping (migration 069) and the sale's clip. */
.lv-deliver p {
  margin: 8px 0 6px;
  font-weight: 700;
}
.lv-deliver .lv-btns {
  display: flex;
  gap: 8px;
}
.lv-deliver .lv-btns button {
  flex: 1;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid var(--primary);
  background: var(--primary-soft);
  color: var(--primary);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.lv-deliver .primary-button,
.lv-order > .primary-button {
  margin-top: 8px;
}
.lv-address {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--primary-soft);
  font-size: 13.5px;
}
.lv-address small {
  color: var(--muted);
}
.lv-track {
  margin-top: 8px;
  font-size: 13.5px;
}
.lv-tip {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--muted);
}
.lv-clip-btn {
  width: 100%;
  margin-top: 8px;
  padding: 9px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.lv-clip {
  width: 100%;
  max-height: 70vh;
  border-radius: 12px;
  background: #000;
  margin-top: 8px;
}
@media (max-width: 360px) {
  .lv-two {
    grid-template-columns: 1fr;
  }
}
/* Four photos, one per side (migration 071), and the pickup place. */
.lv-prod-slots {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.lv-prod-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.lv-prod-slot small {
  font-size: 11.5px;
  color: var(--muted);
  text-align: center;
}
.lv-prod-slot figure,
.lv-prod-slot .lv-prod-add {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
}
.lv-prod-slot figure {
  position: relative;
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
}
.lv-prod-slot figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.lv-prod-slot figure button {
  position: absolute;
  top: 3px;
  inset-inline-end: 3px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 0;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  cursor: pointer;
}
.lv-place {
  margin-top: 6px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 14px;
}
.lv-place-title {
  display: block;
  font-weight: 800;
  margin-bottom: 6px;
}
.lv-product-form .field small.muted {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.5;
}
/* Pickup or shipping, chosen while bidding. */
.lv-deliver-pick {
  margin: 6px 0 2px;
}
.lv-deliver-chips {
  display: flex;
  gap: 6px;
}
.lv-deliver-chips button {
  flex: 1;
  padding: 7px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
}
.lv-deliver-chips button.on {
  background: #fff;
  color: #0f172a;
  border-color: #fff;
}
.lv-deliver-one {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
}
.lv-deliver-warn {
  margin: 6px 0 0;
  padding: 6px 9px;
  border-radius: 10px;
  background: rgba(245, 158, 11, 0.18);
  border: 1px solid rgba(245, 158, 11, 0.45);
  color: #fde68a;
  font-size: 12px;
  line-height: 1.45;
}
.lv-deliver-to {
  margin-top: 4px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.8);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lv-deliver-to b {
  color: #fff;
  font-weight: 600;
}
.lv-deliver-to button {
  background: transparent;
  border: 0;
  color: #93c5fd;
  font: inherit;
  font-size: 12.5px;
  cursor: pointer;
  padding: 0 4px;
}
/* The waybill photo (migration 072). */
.lv-waybill {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 96px;
  padding: 10px;
  border: 2px dashed var(--border);
  border-radius: 14px;
  color: var(--primary);
  font-weight: 700;
  cursor: pointer;
  text-align: center;
}
.lv-waybill img {
  max-width: 100%;
  max-height: 220px;
  border-radius: 10px;
}
.lv-waybill-img {
  width: 100%;
  border-radius: 12px;
  margin-top: 8px;
}
/* Shipping plan (migration 073): the choice after winning, the carriers' offers, the parcel on the card. */
.lv-choose {
  margin-top: 8px;
  padding: 10px;
  border: 1px solid var(--primary);
  border-radius: 14px;
  background: var(--primary-soft);
}
.lv-choose-title {
  margin: 0 0 4px;
  font-weight: 800;
}
.lv-choose .lv-btns {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}
.lv-choose .lv-btns button {
  flex: 1;
  padding: 11px;
  border-radius: 12px;
  border: 0;
  background: var(--primary);
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.lv-countdown {
  margin: 6px 0 0;
  font-weight: 700;
  color: #b45309;
}
.lv-rates {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 10px 0;
}
.lv-rate {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
}
.lv-rate.on {
  border-color: var(--primary);
  background: var(--primary-soft);
}
.lv-rate input {
  width: 18px;
  height: 18px;
  flex: none;
  margin: 0;
}
.lv-rate-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  line-height: 1.35;
}
.lv-rate-main small {
  color: var(--muted);
  font-size: 12px;
}
.lv-deliver-link {
  display: block;
  width: 100%;
  background: transparent;
  border: 0;
  color: #93c5fd;
  font: inherit;
  font-size: 13px;
  text-align: start;
  padding: 4px 0;
  cursor: pointer;
}
.lv-shipchoice-sheet .lv-deliver-link {
  color: var(--primary);
  text-align: center;
}
.lv-test-tag {
  font-size: 11px;
  padding: 1px 6px;
  border-radius: 999px;
  background: #fef3c7;
  color: #92400e;
}
.lv-packs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 4px 0 8px;
}
.lv-pack {
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
  font-size: 13.5px;
  font-weight: 700;
}
.lv-pack.on {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.lv-three {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

/* Inspection code → receipt code / refusal with photos (migration 077). */
.lv-step-box {
  margin-top: 10px;
  padding: 10px;
  border: 1px solid var(--line, rgba(127, 127, 127, 0.25));
  border-radius: 12px;
}
.lv-step-title {
  margin: 0 0 4px;
  font-weight: 800;
}
.lv-ev-done {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  background: #16a34a;
  color: #fff;
  font-size: 26px;
  font-weight: 800;
}
.lv-ev-photo {
  display: block;
  width: 100%;
  border-radius: 12px;
  margin: 0 0 10px;
}
/* The bidding clock (migration 090) inside the dark panel, and its short form on the lowered panel. */
.lv-panel .lv-cd {
  height: 4px;
  background: rgba(255, 255, 255, 0.22);
  margin: 6px 0 2px;
}
.lv-panel .lv-cdtext {
  color: inherit;
  opacity: 0.85;
  font-variant-numeric: tabular-nums;
}
/* The big clock at the top centre, under the header (yellow in the last 30 s, red in the last 10). */
.lv-clockbar {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  padding-top: 2px;
  pointer-events: none;
}
.lv-clockbar:empty {
  display: none;
}
.lv-topclock {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 112px;
  padding: 4px 18px 6px;
  border-radius: 18px;
  background: rgba(10, 15, 28, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.3);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  text-align: center;
}
.lv-topclock small {
  font-size: 12.5px;
  font-weight: 700;
  opacity: 0.9;
}
.lv-topclock b {
  font-size: 34px;
  font-weight: 800;
  line-height: 1.1;
  direction: ltr;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.5px;
}
.lv-topclock.lv-warn b {
  color: #fcd34d;
}
.lv-topclock.lv-hot {
  border-color: rgba(248, 113, 113, 0.7);
}
.lv-topclock.lv-hot b {
  color: #f87171;
}

/* The bidding panel in three lines (owner's request 2026-10-18): photo + price + state, the bids, the comment box. */
.lv-panel {
  padding: 4px 10px 8px;
}
.lv-handle {
  padding: 0 0 4px;
}
.lv-thumb {
  position: relative;
  width: 44px;
  height: 44px;
  flex: none;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.12);
  display: grid;
  place-items: center;
  font-size: 20px;
  cursor: pointer;
}
.lv-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.lv-thumb i {
  position: absolute;
  inset-inline-end: 1px;
  bottom: 0;
  font-style: normal;
  font-size: 12px;
  line-height: 1;
  color: #fff;
  text-shadow: 0 0 3px #000;
}
.lv-head1 {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.lv-head1 .lv-now {
  font-size: 21px;
}
.lv-head1 .lv-by {
  display: flex;
  gap: 6px;
  align-items: baseline;
  white-space: nowrap;
  overflow: hidden;
}
.lv-ptitle {
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  max-width: 55%;
}
.lv-head1 .lv-mine {
  margin: 0;
}
.lv-row1 .lv-nosell {
  flex: none;
  padding: 8px 10px;
  font-size: 13px;
}
.lv-row1 .lv-quick {
  display: flex;
  flex: none;
  gap: 6px;
  margin: 0;
}
.lv-row1 .lv-quick button {
  padding: 10px 10px;
  min-width: 72px;
  font-size: 14.5px;
}
.lv-sellrow {
  margin-top: 6px;
}
/* the viewer's extras in the product card (light sheet) */
.lv-card-live {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--surface-2, rgba(0, 0, 0, 0.05));
}
.lv-card-live .lv-deliver-to,
.lv-card-live .lv-deliver-to b {
  color: var(--text);
  white-space: normal;
}
.lv-card-live .lv-small {
  opacity: 1;
  font-size: 13px;
  font-weight: 600;
}
.lv-admin-row select {
  max-width: 55%;
  padding: 8px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font: inherit;
}

/* Live shelf: "buy now" and "notify me" (migration 095) */
.lv-shelf-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 6px;
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(10, 15, 28, 0.66);
  color: #fff;
  font: inherit;
  font-size: 13.5px;
  font-weight: 700;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  cursor: pointer;
}
.lv-shelf-btn b {
  min-width: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: #fff;
  color: #0f172a;
  font-size: 12px;
  text-align: center;
}
.lv-shelf-buy {
  padding: 1px 8px;
  border-radius: 999px;
  background: #16a34a;
  font-size: 12px;
}
.lv-shelf-h {
  margin: 14px 0 8px;
  font-size: 15px;
}
.lv-shelf-tip {
  margin: -4px 0 8px;
  font-size: 12.5px;
}
.lv-shelf-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.lv-shelf-row .lv-prod {
  flex: 1;
  min-width: 0;
  margin: 0;
}
.lv-shelf-side {
  flex: none;
  width: 92px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 3px;
  text-align: center;
}
.lv-shelf-side small {
  color: var(--muted);
  font-size: 11.5px;
}
.lv-shelf-buybtn,
.lv-alert-btn {
  border: 0;
  border-radius: 10px;
  padding: 7px 4px;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.lv-shelf-buybtn {
  background: #16a34a;
  color: #fff;
}
.lv-shelf-buybtn:disabled {
  opacity: 0.45;
}
.lv-alert-btn {
  background: var(--primary-soft);
  color: var(--primary);
}
.lv-alert-btn.on {
  background: #16a34a;
  color: #fff;
}
.lv-shelf-confirm h3 {
  margin: 10px 0 6px;
}
.lv-shelf-confirm .lv-btns,
.lv-scan-ok .secondary-button {
  margin-top: 10px;
}
.lv-fixed-lines {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 8px;
  font-size: 13px;
}
.lv-fixed-lines div {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.lv-fixed-note {
  margin: 4px 0 6px;
  font-size: 12.5px;
}

/* Live reports (migration 095) */
.lv-reports-btn {
  margin: 6px 0 0;
}
.lv-report-item {
  width: 100%;
  font: inherit;
  color: var(--text);
  text-align: start;
  cursor: pointer;
}
.lv-rep-title {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 8px 0;
}
.lv-rep-title small {
  color: var(--muted);
}
.lv-rep-boxes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.lv-rep-box {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 8px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  text-align: center;
}
.lv-rep-box small {
  color: var(--muted);
  font-size: 12px;
}
.lv-rep-box b {
  font-size: 15px;
}
.lv-rep-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
}
.lv-rep-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.lv-rep-kind {
  align-self: flex-start;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 11.5px;
  font-weight: 700;
}
.lv-rep-kind.buy {
  background: #dcfce7;
  color: #15803d;
}
.lv-rep-unsold {
  color: var(--muted);
}

/* Excitement (owner's request 2026-10-19): the bid buttons beat, faster in the auction's last 10 seconds; a new price
   pops and floats up; "outbid" shakes; paper bits fall over a sale. Only transform/opacity move (smooth on phones). */
.lv-quick button:not(:disabled),
.lv-bidbar button:not(:disabled) {
  animation: lv-beat 1.3s ease-in-out infinite;
  will-change: transform;
}
.lv-quick button:not(:disabled):active,
.lv-bidbar button:not(:disabled):active {
  animation: none;
  transform: scale(0.9);
}
.lv-final .lv-quick button:not(:disabled),
.lv-final .lv-bidbar button:not(:disabled) {
  animation-duration: 0.6s;
}
@keyframes lv-beat {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7);
  }
  50% {
    transform: scale(1.08);
    box-shadow: 0 0 0 7px rgba(59, 130, 246, 0);
  }
}
.lv-now.lv-bump {
  display: inline-block;
  animation: lv-bump 0.45s ease-out;
}
@keyframes lv-bump {
  0% {
    transform: scale(1);
  }
  35% {
    transform: scale(1.35);
    color: #86efac;
  }
  100% {
    transform: scale(1);
  }
}
.lv-mine.lv-shake {
  display: inline-block;
  animation: lv-shake 0.5s ease-in-out;
}
@keyframes lv-shake {
  0%,
  100% {
    transform: translateX(0);
  }
  20%,
  60% {
    transform: translateX(-5px);
  }
  40%,
  80% {
    transform: translateX(5px);
  }
}
.lv-fly {
  position: fixed;
  inset-inline-start: 12px;
  z-index: 6;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(234, 88, 12, 0.92);
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  animation: lv-fly 1.6s ease-out forwards;
}
.lv-fly.me {
  background: rgba(22, 163, 74, 0.92);
}
@keyframes lv-fly {
  0% {
    opacity: 0;
    transform: translateY(20px) scale(0.7);
  }
  15% {
    opacity: 1;
    transform: translateY(0) scale(1.05);
  }
  80% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(-90px) scale(1);
  }
}
.lv-topclock.lv-hot b {
  animation: lv-heart 1s ease-in-out infinite;
}
@keyframes lv-heart {
  0%,
  100% {
    transform: scale(1);
  }
  15% {
    transform: scale(1.18);
  }
  30% {
    transform: scale(1);
  }
}
.lv-confetti {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.lv-confetti i {
  position: absolute;
  top: -12px;
  left: var(--x);
  width: 8px;
  height: 14px;
  border-radius: 2px;
  background: var(--c);
  opacity: 0;
  animation: lv-fall 2.4s var(--d) ease-in forwards;
}
@keyframes lv-fall {
  0% {
    opacity: 1;
    transform: translateY(0) rotate(0);
  }
  100% {
    opacity: 0.2;
    transform: translateY(105vh) rotate(var(--r));
  }
}
@media (prefers-reduced-motion: reduce) {
  .lv-quick button,
  .lv-bidbar button,
  .lv-topclock b,
  .lv-confetti i {
    animation: none !important;
  }
  .lv-fly {
    display: none;
  }
  .lv-gift-pill,
  .lv-gift-burst {
    animation: none !important;
  }
}
/* (after the beat above, so "زايد" glows green like itself) */
.lv-bidbar button:not(:disabled) {
  animation-name: lv-beat-green;
}
/* searching the sales by product number (098) */
.lv-sales-search {
  width: 100%;
  box-sizing: border-box;
  margin: 8px 0 2px;
  padding: 11px 14px;
  border-radius: 12px;
  border: 1.5px solid var(--border, rgba(127, 127, 127, 0.3));
  background: var(--surface, transparent);
  color: var(--text);
  font: inherit;
  font-size: 16px;
}
.lv-order[hidden],
.lv-empty[hidden] {
  display: none;
}
.lv-scan-for {
  margin: 0 0 6px;
}
/* "do you accept the goods?" after the inspection scan */
.lv-accept-btns {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}
.lv-accept-btns button {
  flex: 1;
  border: 0;
  border-radius: 12px;
  padding: 12px 8px;
  font: inherit;
  font-weight: 800;
  font-size: 16px;
  color: #fff;
  cursor: pointer;
}
.lv-accept-btns .lv-yes {
  background: #16a34a;
}
.lv-accept-btns .lv-no {
  background: #dc2626;
}
.lv-accept-sheet .lv-qr {
  display: block;
  margin: 8px auto;
  width: min(260px, 80%);
  height: auto;
}
/* Sales cards outlined by their state (owner's requests 2026-10-19): a clear coloured contour, no halo or wash (they
   mixed the colours). Plain rgb so older Samsung/iPhone browsers draw it too. */
.lv-order[class*="lv-tone-"] {
  border: 2px solid var(--tone-line);
}
.lv-order.lv-tone-ok {
  --tone-line: #16a34a;
}
.lv-order.lv-tone-bad {
  --tone-line: #dc2626;
}
.lv-order.lv-tone-wait {
  --tone-line: #eab308;
}
body.dark .lv-order.lv-tone-ok {
  --tone-line: #22c55e;
}
body.dark .lv-order.lv-tone-bad {
  --tone-line: #ef4444;
}
body.dark .lv-order.lv-tone-wait {
  --tone-line: #facc15;
}

/* ---- the bell (migration 101) ---- */
.lv-list-head {
  position: relative;
}
.lv-list-head .lv-nbell {
  position: absolute;
  top: 2px;
  inset-inline-end: 0;
}
.lv-nbell-plain {
  background: var(--surface);
  color: var(--primary);
  border: 1px solid var(--border);
}
.lv-nbell .ui-icon {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.lv-notice-list {
  display: grid;
  gap: 2px;
  max-height: 70vh;
  overflow-y: auto;
}
.lv-notice-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  width: 100%;
  padding: 11px 10px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: inherit;
  text-align: start;
  font: inherit;
  cursor: pointer;
}
.lv-notice-row.unread {
  background: color-mix(in srgb, var(--primary) 10%, transparent);
}
.lv-notice-ic {
  font-size: 20px;
  line-height: 1.2;
  flex: none;
}
.lv-notice-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}
.lv-notice-copy small {
  color: var(--muted);
  font-size: 12px;
}

/* ---- seller type (migration 101) ---- */
.lv-store-badge {
  margin-inline-start: 4px;
  font-size: 0.9em;
}
.lv-seller-page {
  padding-bottom: 110px;
}
.lv-seller-form {
  display: grid;
  gap: 10px;
  padding: 0 16px;
}
.lv-seller-choice {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  cursor: pointer;
}
.lv-seller-choice.on {
  border-color: var(--primary);
}
.lv-seller-choice input {
  margin-top: 3px;
  accent-color: var(--primary);
}
.lv-seller-choice span {
  display: grid;
  gap: 3px;
}
.lv-seller-choice small {
  color: var(--muted);
}
/* how buyers see my name (migration 126) */
.lv-name-wrap {
  display: grid;
  gap: 10px;
  padding: 0 16px 14px;
}
.lv-seller-choice .lv-name-preview {
  display: block;
  color: var(--text);
  font-weight: 600;
}
.lv-seller-choice .lv-name-preview span {
  display: inline-flex;
}
.lv-name-cuts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.lv-name-cuts small {
  width: 100%;
  color: var(--muted);
}
.lv-name-cut {
  padding: 6px 12px;
  border: 1.5px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  cursor: pointer;
}
.lv-name-cut.on {
  border-color: var(--primary);
  color: var(--primary);
  font-weight: 700;
}
.lv-seller-photo {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
}
.lv-seller-photo > span:nth-child(2) {
  display: grid;
  gap: 2px;
  flex: 1;
  min-width: 0;
}
.lv-seller-photo small {
  color: var(--muted);
}
.lv-seller-photo-img {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  overflow: hidden;
  border-radius: 50%;
  background: var(--border);
  color: var(--muted);
  font-size: 22px;
}
.lv-seller-photo-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.lv-seller-photo .secondary-button {
  flex: none;
}
.lv-seller-state {
  margin: 8px 16px;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 14px;
}
.lv-seller-state.ok {
  background: color-mix(in srgb, #22c55e 14%, transparent);
}
.lv-seller-state.wait {
  background: color-mix(in srgb, #facc15 18%, transparent);
}
.lv-seller-state.bad {
  background: color-mix(in srgb, #ef4444 14%, transparent);
}
/* identity check at Didit (migration 112) */
.lv-ident-wrap {
  padding: 0 16px 6px;
}
.lv-ident-wrap .lv-seller-state {
  margin: 8px 0;
}
.lv-ident {
  display: grid;
  gap: 8px;
}
.lv-ident .muted {
  margin: 0;
}
.lv-ident-steps {
  margin: 4px 0 10px;
  padding-inline-start: 22px;
  display: grid;
  gap: 6px;
}
.lv-ident-sheet .primary-button {
  margin-top: 12px;
}
.lv-ident-link {
  margin: 0 0 8px;
}
/* Didit's check inside the app (live-seller.js identityFrame): the whole screen on a phone, a tall window on a computer */
.lv-didit {
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--surface);
  color: var(--text);
  flex-direction: column;
}
.lv-didit[open] {
  display: flex;
}
.lv-didit::backdrop {
  background: rgba(0, 0, 0, 0.5);
}
.lv-didit-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: max(8px, env(safe-area-inset-top)) 12px 8px;
  border-bottom: 1px solid var(--border);
}
.lv-didit-head h2 {
  margin: 0;
  font-size: 17px;
}
.lv-didit iframe {
  flex: 1;
  width: 100%;
  border: 0;
  background: #fff;
}
.lv-didit-fail {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px max(10px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--border);
}
.lv-didit-fail[hidden] {
  display: none;
}
@media (min-width: 640px) {
  .lv-didit {
    width: 480px;
    height: min(760px, 92vh);
    margin: auto;
    border-radius: var(--radius);
    overflow: hidden;
  }
}
.lv-doc-slots {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.lv-doc-slot {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 4px;
  min-height: 120px;
  padding: 8px;
  border: 1.5px dashed var(--border);
  border-radius: 14px;
  background: var(--surface);
  text-align: center;
  font-size: 13px;
  cursor: pointer;
  overflow: hidden;
}
.lv-doc-slot.busy {
  opacity: 0.5;
  pointer-events: none;
}
.lv-doc-slot img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 10px;
}
.lv-doc-plus {
  font-size: 26px;
  color: var(--primary);
}
.lv-doc-sheet img {
  width: 100%;
  max-height: 75vh;
  object-fit: contain;
  border-radius: 10px;
}
.lv-seller-line {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
  font-size: 14px;
}
.lv-link-btn {
  border: 0;
  background: none;
  color: var(--primary);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  padding: 0 4px;
}
.lv-seller-no {
  display: flex;
  gap: 8px;
  margin-top: 6px;
}
.lv-seller-no input {
  flex: 1;
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: inherit;
  font: inherit;
}
.lv-seller-ok {
  color: #16a34a;
  font-weight: 700;
}
/* On the live page the bell sits under the top-right buttons, so the merchant's name keeps the header's room. */
.lv-head .lv-nbell {
  position: absolute;
  top: 58px;
  inset-inline-end: 10px;
}
/* The owner's ID and selfie side by side for the admin (migration 102). */
.lv-seller-faces {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 8px;
}
.lv-seller-faces button {
  display: grid;
  gap: 4px;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}
.lv-seller-faces img {
  width: 100%;
  height: 130px;
  object-fit: cover;
  border-radius: 10px;
  background: var(--border);
}
.lv-seller-tip {
  font-size: 12px;
  margin: 6px 0 0;
}
/* The bell's count stays white on red on the light list page too (owner's request 2026-10-19). */
.lv-nbell .lv-count {
  color: #fff;
}
.lv-doc-slot.locked {
  cursor: default;
  border-style: solid;
}
.lv-seller-form input:disabled {
  opacity: 0.75;
}
/* The admin's «قبول» for a store is a full green button (owner's request 2026-10-19). */
.lv-order-more .lv-seller-ok {
  background: #16a34a;
  color: #fff;
  border: 0;
  padding: 11px;
  font-size: 15px;
  font-weight: 800;
}
.lv-order-more .lv-seller-ok:active {
  background: #15803d;
}
/* The admin page's sections (each opens on its own). */
.lv-admin-section .lv-admin-ic {
  font-size: 22px;
  width: 30px;
  flex: none;
  text-align: center;
}

/* ---- coins, gifts and the boost (migration 105) ---- */
/* The live page's side column under the top-right buttons: bell, (boost), top supporters. */
.lv-head .lv-side {
  position: absolute;
  top: 58px;
  inset-inline-end: 10px;
  display: grid;
  gap: 8px;
}
.lv-head .lv-side .lv-nbell {
  position: relative;
  top: auto;
  inset-inline-end: auto;
}
.lv-gift-btn {
  flex: none;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, #f43f5e, #f59e0b);
  font-size: 20px;
  cursor: pointer;
}
.lv-boosted {
  position: absolute;
  top: 8px;
  inset-inline-end: 8px;
  background: #7c3aed;
  color: #fff;
  border-radius: 6px;
  padding: 2px 7px;
  font-size: 11px;
  font-weight: 800;
}
.lv-wallet-page {
  padding: 0 16px 110px;
}
.lv-w-balance {
  display: grid;
  justify-items: center;
  gap: 2px;
  margin: 10px 0;
  padding: 16px;
  border-radius: 18px;
  background: linear-gradient(135deg, #f59e0b, #f97316);
  color: #fff;
}
.lv-w-balance b {
  font-size: 28px;
}
.lv-packs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
  margin: 8px 0;
}
.lv-pack {
  display: grid;
  gap: 4px;
  padding: 14px 10px;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.lv-pack b {
  font-size: 17px;
}
.lv-pack small {
  color: var(--muted);
}
.lv-pack:disabled {
  opacity: 0.4;
  cursor: default;
}
/* how much may still be bought in 30 days (migration 111) */
.lv-buy-limit {
  margin: 4px 0 8px;
  font-size: 13px;
  color: var(--muted);
}
.lv-adult {
  margin: 8px 0;
}
.lv-w-earn {
  margin: 12px 0;
  padding: 12px;
  border-radius: 14px;
  background: color-mix(in srgb, #22c55e 12%, transparent);
}
.lv-w-earn p {
  margin: 4px 0;
}
/* my balance and withdrawals (migration 114) */
.lv-balance-page {
  padding: 0 16px 110px;
}
.lv-bal-card {
  background: linear-gradient(135deg, #16a34a, #0d9488);
}
.lv-bal-card.owed {
  background: linear-gradient(135deg, #dc2626, #b91c1c);
}
.lv-bal-card small {
  opacity: 0.9;
}
.lv-bal-rules {
  font-size: 13px;
}
.lv-bal-withdraw .lv-seller-state {
  margin: 8px 0;
}
.lv-pay-form {
  display: grid;
  gap: 10px;
  margin: 8px 0;
}
.lv-pay-form .muted {
  margin: 0;
  font-size: 13px;
}
.lv-pay-acc {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin: 8px 0;
  padding: 12px;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
}
.lv-pay-acc > span {
  display: grid;
  gap: 2px;
  min-width: 0;
  overflow-wrap: anywhere;
}
.lv-pay-acc small {
  color: var(--muted);
}
.lv-payout .field {
  margin-top: 6px;
}
.lv-w-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
}
.lv-w-row > span {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.lv-w-row small {
  color: var(--muted);
  font-size: 12px;
}
.lv-w-plus {
  color: #16a34a;
  white-space: nowrap;
}
.lv-w-minus {
  color: #dc2626;
  white-space: nowrap;
}
.lv-w-totals {
  padding: 8px 14px;
}
.lv-w-totals p {
  margin: 6px 0;
}
.lv-gift-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 4px 0 10px;
  font-size: 17px;
}
.lv-gifts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.lv-gift {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 2px;
  padding: 10px 4px;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  color: inherit;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}
.lv-gift[data-poor] {
  opacity: 0.45;
}
.lv-gift.sending {
  transform: scale(0.9);
  border-color: #f59e0b;
}
.lv-gift-emoji {
  font-size: 30px;
}
.lv-gift small {
  color: var(--muted);
}
.lv-gift-note {
  font-size: 12px;
  margin-top: 10px;
}
.lv-gift-lane {
  position: absolute;
  z-index: 6;
  inset-inline-start: 10px;
  top: 38%;
  display: grid;
  justify-items: start;
  gap: 10px;
  pointer-events: none;
}
/* TikTok-style pill: the sender's initials, name and gift, the gift moving at its end and ×N beside it, counting up
   while the same gift keeps coming (live-auction.js showGift). */
.lv-gift-pill {
  position: relative;
  display: flex;
  align-items: center;
  gap: 7px;
  height: 40px;
  max-width: 60vw;
  box-sizing: border-box;
  padding-inline: 3px 52px;
  border-radius: 22px;
  background: linear-gradient(90deg, rgba(244, 63, 94, 0.92), rgba(245, 158, 11, 0.55));
  color: #fff;
  font-size: 13px;
  animation: lv-gift-in 0.35s ease-out;
  transition: opacity 0.4s;
}
[dir="rtl"] .lv-gift-pill {
  background: linear-gradient(270deg, rgba(244, 63, 94, 0.92), rgba(245, 158, 11, 0.55));
}
.lv-gift-pill.lv-gp-out {
  opacity: 0;
}
.lv-gp-ava {
  flex: none;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  box-sizing: border-box;
  border: 2px solid rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  background: hsl(var(--h, 210) 60% 42%);
  font-size: 13px;
  font-weight: 700;
}
.lv-gp-text {
  display: grid;
  min-width: 0;
  line-height: 1.2;
}
.lv-gp-text b,
.lv-gp-text small {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.lv-gp-text small {
  font-size: 11px;
  opacity: 0.92;
}
.lv-gift-pill .lv-gp-gift {
  position: absolute;
  top: -8px;
  inset-inline-end: -6px;
  width: 56px;
  height: 56px;
}
.lv-gp-count {
  position: absolute;
  top: 0;
  bottom: 0;
  inset-inline-start: calc(100% + 8px);
  display: flex;
  align-items: center;
  color: #fff;
  font-size: 18px;
  font-style: italic;
  font-weight: 900;
  white-space: nowrap;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.6),
    0 0 10px rgba(245, 158, 11, 0.85);
}
.lv-gp-count b {
  font-size: 28px;
}
/* A gift's picture (gift-emoji.js): the emoji until its animation is ready, then the animation in the same box. */
.ge {
  position: relative;
  display: inline-grid;
  place-items: center;
}
.ge > svg {
  position: absolute;
  inset: 0;
}
.ge-char {
  font-size: 32px;
  line-height: 1;
}
.ge.ge-on .ge-char {
  visibility: hidden;
}
.lv-gb {
  width: 200px;
  height: 200px;
}
.lv-gb .ge-char {
  font-size: 120px;
}
.lv-gift-burst {
  position: absolute;
  z-index: 7;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
  animation: lv-gift-burst 2.2s ease-out forwards;
}
/* A gift with its own video (scripts/gift-video.js): the video over the live, the sender's golden banner above it,
   a shake when it bursts. Taps go through to the live. */
.lv-gv {
  position: absolute;
  inset: 0;
  z-index: 7;
  pointer-events: none;
  opacity: 0;
}
.lv-gv.on {
  animation: lv-gv-in 0.35s ease-out forwards;
}
.lv-gv.off {
  animation: lv-gv-out 0.5s ease-in forwards;
}
.lv-gv-canvas {
  position: absolute;
  left: 0;
  width: 100%;
}
.lv-gv-banner {
  position: absolute;
  top: calc(env(safe-area-inset-top, 0px) + 64px);
  inset-inline: 0;
  margin: auto;
  width: fit-content;
  max-width: 92%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 18px 6px 6px;
  border-radius: 30px;
  background: linear-gradient(90deg, rgba(120, 53, 15, 0.85), rgba(190, 24, 93, 0.85));
  border: 1px solid rgba(253, 224, 71, 0.7);
  box-shadow: 0 0 22px rgba(253, 224, 71, 0.45);
  color: #fff;
  animation: lv-gv-banner 0.5s cubic-bezier(0.2, 1.4, 0.4, 1) both;
}
[dir="rtl"] .lv-gv-banner {
  padding: 6px 6px 6px 18px;
}
.lv-gv-face {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  overflow: hidden;
  border-radius: 50%;
  border: 2px solid #fde047;
  background: linear-gradient(135deg, #f472b6, #f59e0b);
  font-weight: 800;
}
.lv-gv-face img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.lv-gv-banner b {
  display: block;
  max-width: 50vw;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 16px;
  background: linear-gradient(90deg, #fef08a, #f59e0b, #fef9c3, #f59e0b);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: lv-gv-shine 1.6s linear infinite;
}
.lv-gv-banner small {
  font-size: 13px;
}
.lv-gv-shake {
  animation: lv-gv-shake 0.45s;
}
@keyframes lv-gv-in {
  from {
    opacity: 0;
    transform: scale(0.7);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes lv-gv-out {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
    transform: scale(1.08);
  }
}
@keyframes lv-gv-banner {
  from {
    opacity: 0;
    transform: translateY(-30px) scale(0.8);
  }
}
@keyframes lv-gv-shine {
  to {
    background-position: -200% 0;
  }
}
@keyframes lv-gv-shake {
  20% {
    translate: -7px 3px;
  }
  40% {
    translate: 6px -4px;
  }
  60% {
    translate: -4px 2px;
  }
  80% {
    translate: 3px -1px;
  }
}
.lv-gift-emoji img {
  display: block;
  width: 56px;
  height: 40px;
  object-fit: contain;
}
.lv-gift-emoji img.lv-gift-img {
  width: 36px;
  height: 36px;
  margin-block: 2px;
}
/* the ×N on the gift just sent, counting up while it is sent again */
.lv-gift-combo {
  position: absolute;
  top: -8px;
  inset-inline-end: -4px;
  padding: 2px 7px;
  border-radius: 12px;
  background: linear-gradient(135deg, #f43f5e, #f59e0b);
  color: #fff;
  font-size: 13px;
  font-style: italic;
  font-weight: 900;
}
@keyframes lv-gift-in {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
}
[dir="rtl"] .lv-gift-pill {
  animation-name: lv-gift-in-rtl;
}
@keyframes lv-gift-in-rtl {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
}
@keyframes lv-gift-burst {
  0% {
    opacity: 0;
    transform: scale(0.3);
  }
  20% {
    opacity: 1;
    transform: scale(1.15);
  }
  70% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(1.4) translateY(-60px);
  }
}
.lv-coins {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  unicode-bidi: isolate;
}
.lv-coin {
  display: inline-block;
  width: 0.95em;
  height: 0.95em;
  flex: none;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fde68a, #f59e0b 60%, #b45309);
  box-shadow: inset 0 0 0 0.09em rgba(146, 64, 14, 0.55);
  vertical-align: -0.12em;
}
/* «مُروَّج» on a card: bottom corner, clear of the viewers count. */
.lv-card-media .lv-boosted {
  top: auto;
  bottom: 8px;
  inset-inline-start: auto;
  inset-inline-end: 8px;
}
/* The date of birth before the first coin purchase (migration 108): day, month, year in one row. */
.lv-birth {
  display: grid;
  gap: 6px;
  margin: 6px 0 12px;
}
.lv-birth > span {
  font-weight: 600;
}
.lv-birth-row {
  display: grid;
  grid-template-columns: 1fr 1.6fr 1.2fr;
  gap: 8px;
}
.lv-birth-row select {
  min-width: 0;
  min-height: 44px;
  padding: 0 8px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  background: var(--surface, transparent);
  color: inherit;
  font: inherit;
}

/* The map of Syria (map-picker.js): full screen over the open sheet, pin fixed in the middle, the map moves under it. */
.map-dialog {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--surface);
  color: inherit;
  display: flex;
  flex-direction: column;
}
.map-dialog::backdrop {
  background: rgb(0 0 0 / 40%);
}
.map-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: max(10px, env(safe-area-inset-top)) 12px 10px;
}
.map-head h2 {
  margin: 0;
  font-size: 1.05rem;
}
.map-close {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  font-size: 1.1rem;
  cursor: pointer;
}
.map-body {
  position: relative;
  flex: 1;
  min-height: 0;
}
/* Two classes: the map library's own .maplibregl-map (position: relative) must not shrink it to 300 px. */
.map-dialog .map-canvas {
  position: absolute;
  inset: 0;
  direction: ltr;
}
.map-pin {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 34px;
  height: 50px;
  margin: -50px 0 0 -17px;
  pointer-events: none;
  filter: drop-shadow(0 2px 3px rgb(0 0 0 / 35%));
}
.map-pin svg {
  width: 100%;
  height: 100%;
  fill: #e53935;
}
.map-pin circle {
  fill: #fff;
}
.map-me {
  position: absolute;
  inset-inline-end: 12px;
  bottom: 16px;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: var(--surface);
  color: var(--primary);
  font-size: 1.5rem;
  box-shadow: 0 2px 8px rgb(0 0 0 / 25%);
  cursor: pointer;
}
.map-wait {
  position: absolute;
  inset: auto 12px 72px;
  margin: 0;
  padding: 8px 12px;
  border-radius: 10px;
  background: var(--surface);
  text-align: center;
  box-shadow: 0 2px 8px rgb(0 0 0 / 20%);
}
.map-wait[hidden] {
  display: none;
}
.map-foot {
  padding: 10px 12px max(12px, env(safe-area-inset-bottom));
}
.map-tip {
  margin: 0 0 8px;
  text-align: center;
  font-size: 0.9rem;
  opacity: 0.75;
}
.map-foot a.primary-button {
  display: block;
  text-align: center;
  text-decoration: none;
}
/* The address form's map line: the button, then "spot chosen · change". */
.lv-spot {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 4px 0 10px;
}
.lv-spot[hidden] {
  display: none;
}
.lv-spot-btn {
  padding: 10px 14px;
  border: 1px dashed var(--primary);
  border-radius: 10px;
  background: var(--primary-soft);
  color: var(--primary);
  font: inherit;
  cursor: pointer;
}
.lv-spot-done {
  color: #16a34a;
  font-weight: 600;
}
.lv-syria-note {
  margin: 6px 0;
  padding: 8px 10px;
  border-radius: 10px;
  background: #fff7e6;
  color: #8a5300;
  font-size: 0.9rem;
}
body.dark .lv-syria-note {
  background: #3a2a0c;
  color: #ffd27a;
}

/* «إرسال الموقع» (location-send.js), like WhatsApp on Android (owner's screenshot 2026-10-25). */
.loc-dialog {
  background: var(--surface);
}
.loc-head {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: max(8px, env(safe-area-inset-top)) 6px 8px;
  background: var(--surface);
}
.loc-head h2 {
  flex: 1;
  margin: 0 6px;
  font-size: 1.2rem;
  font-weight: 600;
}
.loc-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  cursor: pointer;
}
.loc-icon .ui-icon {
  width: 24px;
  height: 24px;
}
.loc-searchbar {
  padding: 0 12px 8px;
}
.loc-searchbar[hidden] {
  display: none;
}
.loc-searchbar input {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 14px;
  border: 0;
  border-radius: 22px;
  background: var(--bg);
  color: inherit;
  font: inherit;
}
.loc-map {
  position: relative;
  flex: 0 0 auto;
  height: 42vh;
  border-bottom: 1px solid var(--border);
}
.loc-fullmap .loc-map {
  flex: 1;
  height: auto;
}
.loc-fullmap .loc-list {
  display: none;
}
.loc-dialog .loc-map .map-canvas {
  position: absolute;
  inset: 0;
  direction: ltr;
}
.loc-float {
  position: absolute;
  top: 12px;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #111;
  box-shadow: 0 1px 6px rgb(0 0 0 / 25%);
  cursor: pointer;
}
.loc-float svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}
.loc-float .dot {
  fill: currentColor;
  stroke: none;
}
.loc-me {
  left: 12px;
}
.loc-full {
  right: 12px;
}
.loc-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding-bottom: env(safe-area-inset-bottom);
}
.loc-row {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 12px 16px;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: start;
  cursor: pointer;
}
.loc-row:disabled {
  cursor: default;
  opacity: 0.6;
}
.loc-row.loc-flash {
  background: color-mix(in srgb, #1daa61 14%, transparent);
}
.loc-badge {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--bg);
}
.loc-badge svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}
.loc-green {
  background: transparent;
  border: 2px solid #1daa61;
  box-sizing: border-box;
}
.loc-green i {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #1daa61;
}
.loc-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 2px;
}
.loc-text b {
  font-size: 1.05rem;
  font-weight: 500;
}
.loc-text small {
  color: var(--muted);
  font-size: 0.9rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.loc-first {
  border-bottom: 1px solid var(--border);
}
.loc-section {
  margin: 14px 16px 2px;
  color: var(--muted);
  font-size: 0.9rem;
}
.loc-empty {
  margin: 16px;
  color: var(--muted);
}
.loc-sending .loc-list {
  opacity: 0.5;
  pointer-events: none;
}
/* The read-only map: the place's name and address, then the actions (like Google Maps' card). */
.map-place {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 10px;
}
.map-place b {
  font-size: 1.25rem;
}
.map-place small {
  color: var(--muted);
}
.map-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.map-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 0;
  border-radius: 22px;
  background: color-mix(in srgb, var(--primary) 12%, var(--surface));
  color: var(--primary);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.map-action svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}
