:root {
  --orange: #f68b1e;
  --orange-dark: #de6f00;
  --green: #10a667;
  --green-dark: #08784a;
  --ink: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --bg: #f5f6f8;
  --card: #ffffff;
  --danger: #e53935;
  --blue: #2563eb;
  --shadow: 0 14px 38px rgba(17, 24, 39, 0.08);
  --soft-shadow: 0 8px 22px rgba(17, 24, 39, 0.07);
  --radius: 14px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
}

button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }

.top-promo {
  min-height: 34px;
  background: #111827;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 7px 16px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .01em;
}
.top-promo span { color: #fed7aa; }

.mini-strip {
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.mini-strip-inner {
  max-width: 1220px;
  margin: 0 auto;
  min-height: 34px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 13px;
  color: #374151;
}
.sell-link { color: var(--orange-dark); font-weight: 800; }
.mini-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.mini-pill {
  border: 1px solid #fed7aa;
  background: #fff7ed;
  color: #9a3412;
  border-radius: 999px;
  padding: 6px 10px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.mini-pill.green { border-color: #bbf7d0; background: #f0fdf4; color: #047857; }
.mini-pill.blue { border-color: #bfdbfe; background: #eff6ff; color: #1d4ed8; }

.site-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 4px 20px rgba(0,0,0,.04);
}
.header-inner {
  max-width: 1220px;
  margin: 0 auto;
  min-height: 78px;
  padding: 10px 16px;
  display: grid;
  grid-template-columns: auto minmax(220px, 1fr) auto;
  align-items: center;
  gap: 16px;
}
.logo-wrap {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 186px;
}
.logo-mark {
  width: 52px;
  height: 52px;
  position: relative;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--orange) 0%, #ffb703 42%, var(--green) 100%);
  box-shadow: 0 12px 26px rgba(246,139,30,.28);
  overflow: hidden;
}
.logo-mark::before {
  content: "";
  position: absolute;
  inset: 8px 8px 12px 8px;
  border: 3px solid rgba(255,255,255,.92);
  border-top: 0;
  border-radius: 8px 8px 14px 14px;
}
.logo-mark::after {
  content: "";
  position: absolute;
  top: 9px;
  width: 22px;
  height: 14px;
  border: 3px solid rgba(255,255,255,.92);
  border-bottom: 0;
  border-radius: 20px 20px 0 0;
}
.logo-letters {
  position: relative;
  z-index: 1;
  font-weight: 1000;
  color: #fff;
  letter-spacing: -0.12em;
  font-size: 21px;
  transform: translateY(3px);
  text-shadow: 0 2px 10px rgba(0,0,0,.2);
}
.logo-text {
  line-height: .98;
  letter-spacing: -0.055em;
  font-weight: 1000;
  font-size: 28px;
}
.logo-text .soko { color: var(--ink); }
.logo-text .yetu { color: var(--orange); }
.logo-sub { font-size: 11px; color: #6b7280; letter-spacing: .06em; text-transform: uppercase; font-weight: 800; margin-top: 3px; }

.search-box {
  display: flex;
  align-items: center;
  background: #f9fafb;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  height: 46px;
}
.search-box input {
  border: 0;
  outline: 0;
  background: transparent;
  padding: 0 14px;
  width: 100%;
  color: var(--ink);
}
.search-box button {
  border: 0;
  background: var(--orange);
  color: #fff;
  height: 100%;
  padding: 0 24px;
  font-weight: 900;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: flex-end;
}
.header-btn {
  position: relative;
  border: 0;
  background: transparent;
  min-height: 44px;
  padding: 8px 10px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 850;
  color: #1f2937;
  white-space: nowrap;
}
.header-btn:hover { background: #f3f4f6; }
.header-btn.cart {
  background: #111827;
  color: #fff;
  padding-right: 14px;
}
.cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--orange);
  color: #fff;
  font-size: 11px;
  font-weight: 1000;
  border: 2px solid #fff;
}

.category-strip {
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.category-strip-inner {
  max-width: 1220px;
  margin: 0 auto;
  padding: 8px 16px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}
.category-strip-inner::-webkit-scrollbar { display: none; }
.category-chip {
  flex: 0 0 auto;
  border: 1px solid #e5e7eb;
  background: #fff;
  padding: 9px 12px;
  border-radius: 999px;
  font-weight: 800;
  color: #374151;
  font-size: 13px;
}
.category-chip.active { background: var(--orange); color: #fff; border-color: var(--orange); }

.page {
  max-width: 1220px;
  margin: 0 auto;
  padding: 14px 16px 40px;
}

.market-grid {
  display: grid;
  grid-template-columns: 214px minmax(0, 1fr) 230px;
  gap: 14px;
  align-items: start;
}
.card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--soft-shadow);
  border: 1px solid #eef0f3;
}
.side-categories { padding: 8px 0; overflow: hidden; }
.side-title {
  padding: 10px 14px 8px;
  font-size: 13px;
  font-weight: 1000;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .05em;
}
.side-cat {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  font-size: 14px;
  font-weight: 750;
  color: #374151;
  border-left: 4px solid transparent;
}
.side-cat:hover, .side-cat.selected { background: #fff7ed; color: #9a3412; border-left-color: var(--orange); }
.center-stage { display: grid; gap: 12px; }
.ad-burner {
  position: relative;
  min-height: 188px;
  overflow: hidden;
  border-radius: 14px;
  background: linear-gradient(135deg, #111827, #263243 45%, #0f766e);
  color: #fff;
  box-shadow: var(--shadow);
}
.ad-slide {
  position: absolute;
  inset: 0;
  padding: 22px 24px;
  display: grid;
  grid-template-columns: 1fr 230px;
  gap: 18px;
  align-items: center;
  opacity: 0;
  transform: translateX(28px);
  transition: .6s ease;
}
.ad-slide.active { opacity: 1; transform: translateX(0); }
.ad-kicker { font-size: 13px; font-weight: 1000; text-transform: uppercase; letter-spacing: .08em; color: #fed7aa; }
.ad-slide h1 { margin: 8px 0 8px; font-size: clamp(24px, 3.3vw, 42px); line-height: 1; letter-spacing: -0.04em; }
.ad-slide p { margin: 0; color: rgba(255,255,255,.86); line-height: 1.55; max-width: 550px; }
.ad-slide .ad-cta { margin-top: 16px; display: flex; gap: 10px; flex-wrap: wrap; }
.btn {
  border: 0;
  border-radius: 10px;
  padding: 11px 14px;
  font-weight: 950;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.btn.orange { background: var(--orange); color: #fff; }
.btn.dark { background: var(--ink); color: #fff; }
.btn.white { background: #fff; color: var(--ink); }
.btn.green { background: var(--green); color: #fff; }
.btn.ghost { background: #f3f4f6; color: var(--ink); border: 1px solid #e5e7eb; }
.btn.small { padding: 8px 11px; font-size: 13px; border-radius: 9px; }
.ad-visual {
  height: 142px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(246,139,30,.95), rgba(16,166,103,.88));
  display: grid;
  place-items: center;
  font-size: 64px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.18);
}
.ad-dots {
  position: absolute;
  left: 24px;
  bottom: 14px;
  display: flex;
  gap: 6px;
}
.ad-dot { width: 22px; height: 5px; border-radius: 99px; background: rgba(255,255,255,.35); }
.ad-dot.active { background: #fff; }

.quick-panel { display: grid; gap: 10px; }
.quick-card {
  padding: 14px;
  min-height: 88px;
  display: grid;
  gap: 5px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #eef0f3;
  box-shadow: var(--soft-shadow);
}
.quick-card strong { font-size: 15px; }
.quick-card span { color: var(--muted); font-size: 13px; line-height: 1.35; }
.quick-card.orange { background: linear-gradient(135deg, #fff7ed, #fff); border-color: #fed7aa; }
.quick-card.green { background: linear-gradient(135deg, #ecfdf5, #fff); border-color: #bbf7d0; }
.quick-card.blue { background: linear-gradient(135deg, #eff6ff, #fff); border-color: #bfdbfe; }
.quick-icon { font-size: 26px; }

.flash-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #fee2e2;
  box-shadow: var(--shadow);
}
.flash-head {
  background: #e61616;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
}
.flash-title { font-weight: 1000; display: flex; align-items: center; gap: 7px; }
.countdown { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 850; white-space: nowrap; }
.time-pill { background: rgba(255,255,255,.22); padding: 4px 7px; border-radius: 6px; }
.flash-body {
  display: grid;
  grid-template-columns: 295px minmax(0,1fr);
  gap: 12px;
  padding: 12px;
}
.live-product {
  position: relative;
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 12px;
  min-height: 152px;
  padding: 10px;
  border-radius: 14px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  overflow: hidden;
}
.live-product.streaming-in { animation: streamIn .55s ease; }
@keyframes streamIn {
  from { transform: translateX(28px); opacity: .15; }
  to { transform: translateX(0); opacity: 1; }
}
.live-badge {
  position: absolute;
  left: 10px;
  top: 10px;
  background: #e61616;
  color: #fff;
  padding: 4px 7px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 1000;
  z-index: 2;
}
.product-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 12px;
  background: #f3f4f6;
}
.live-info { min-width: 0; }
.live-info h3 { margin: 2px 0 4px; font-size: 17px; line-height: 1.15; }
.seller { font-size: 12px; color: var(--muted); font-weight: 800; }
.price-line { display: flex; align-items: baseline; gap: 8px; margin-top: 6px; flex-wrap: wrap; }
.price { font-weight: 1000; font-size: 19px; color: #111827; }
.old { text-decoration: line-through; color: #9ca3af; font-weight: 800; font-size: 13px; }
.discount { background: #fee2e2; color: #b91c1c; padding: 3px 6px; border-radius: 6px; font-size: 12px; font-weight: 1000; }
.stock-wrap { margin: 8px 0 9px; }
.stock-text { font-size: 12px; font-weight: 850; color: #b91c1c; }
.stock-track { height: 8px; background: #fee2e2; border-radius: 999px; overflow: hidden; margin-top: 4px; }
.stock-bar { height: 100%; background: linear-gradient(90deg, #e61616, #f97316); border-radius: 999px; }
.flash-mini-row {
  display: flex;
  gap: 10px;
  overflow: hidden;
  align-items: stretch;
}
.flash-mini-track {
  display: flex;
  gap: 10px;
  min-width: max-content;
  animation: ticker 30s linear infinite;
}
@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.mini-product {
  width: 132px;
  border: 1px solid #eef0f3;
  border-radius: 12px;
  padding: 8px;
  background: #fff;
  transition: .2s;
}
.mini-product:hover { transform: translateY(-2px); box-shadow: var(--soft-shadow); }
.mini-product img { width: 100%; height: 72px; object-fit: cover; border-radius: 9px; }
.mini-product .name { font-size: 12px; line-height: 1.2; height: 30px; overflow: hidden; margin-top: 6px; font-weight: 850; }
.mini-product .mini-price { margin-top: 4px; font-size: 13px; font-weight: 1000; }
.mini-product .mini-discount { font-size: 11px; color: #b91c1c; font-weight: 900; }

.section {
  margin-top: 16px;
  background: #fff;
  border-radius: 14px;
  border: 1px solid #eef0f3;
  box-shadow: var(--soft-shadow);
  overflow: hidden;
}
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 16px;
  border-bottom: 1px solid #eef0f3;
}
.section-head h2 { margin: 0; font-size: 18px; letter-spacing: -0.02em; }
.see-all { color: var(--orange-dark); font-weight: 950; border: 0; background: transparent; }
.product-row {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0;
}
.product-card {
  border-right: 1px solid #eef0f3;
  padding: 12px;
  min-width: 0;
  background: #fff;
  position: relative;
  transition: .18s ease;
}
.product-card:hover { box-shadow: inset 0 0 0 2px #fed7aa; transform: translateY(-1px); z-index: 1; }
.product-card img { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: 12px; background: #f3f4f6; }
.product-card h3 { margin: 8px 0 5px; font-size: 13px; line-height: 1.22; min-height: 32px; overflow: hidden; }
.product-card .card-seller { font-size: 11px; color: #6b7280; font-weight: 700; height: 16px; overflow: hidden; }
.product-card .card-price { margin-top: 6px; font-size: 16px; font-weight: 1000; }
.product-card .card-old { font-size: 12px; color: #9ca3af; text-decoration: line-through; font-weight: 800; }
.product-card .card-discount { position: absolute; top: 10px; right: 10px; background: #fff7ed; color: #c2410c; border: 1px solid #fed7aa; border-radius: 8px; padding: 4px 6px; font-size: 11px; font-weight: 1000; }
.card-actions { display: flex; gap: 6px; margin-top: 8px; }
.card-actions button { flex: 1; }

.live-sellers-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 14px;
}
.live-room {
  border-radius: 14px;
  border: 1px solid #eef0f3;
  overflow: hidden;
  background: #fff;
}
.live-screen {
  min-height: 140px;
  background: linear-gradient(135deg, #111827, #334155);
  color: #fff;
  position: relative;
  display: grid;
  place-items: center;
  font-size: 44px;
}
.live-label { position: absolute; left: 10px; top: 10px; background: #e61616; color: #fff; padding: 5px 8px; border-radius: 999px; font-size: 11px; font-weight: 1000; }
.viewer-label { position: absolute; right: 10px; top: 10px; background: rgba(0,0,0,.42); padding: 5px 8px; border-radius: 999px; font-size: 11px; font-weight: 900; }
.live-room-body { padding: 11px; }
.live-room-body h3 { margin: 0 0 4px; font-size: 15px; }
.live-room-body p { margin: 0 0 9px; color: var(--muted); font-size: 13px; }

.info-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 12px;
  margin-top: 16px;
}
.info-card { padding: 16px; border-radius: 14px; background: #fff; border: 1px solid #eef0f3; box-shadow: var(--soft-shadow); }
.info-card .info-icon { font-size: 28px; }
.info-card h3 { margin: 8px 0 4px; font-size: 15px; }
.info-card p { margin: 0; color: var(--muted); line-height: 1.4; font-size: 13px; }

.footer {
  background: #111827;
  color: #e5e7eb;
  margin-top: 30px;
}
.footer-inner {
  max-width: 1220px;
  margin: 0 auto;
  padding: 34px 16px 20px;
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 26px;
}
.footer h3 { margin: 0 0 10px; color: #fff; }
.footer p, .footer a { color: #cbd5e1; font-size: 14px; line-height: 1.6; }
.footer a { display: block; margin: 6px 0; }
.footer-bottom { border-top: 1px solid #283449; max-width: 1220px; margin: 0 auto; padding: 14px 16px 24px; color: #94a3b8; font-size: 13px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(17,24,39,.62);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 16px;
}
.modal-backdrop.open { display: flex; }
.modal {
  width: min(940px, 100%);
  max-height: min(760px, calc(100vh - 32px));
  overflow-y: auto;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 30px 80px rgba(0,0,0,.32);
}
.modal.small { width: min(520px, 100%); }
.modal-head { position: sticky; top: 0; background: #fff; z-index: 2; display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid #eef0f3; }
.modal-head h2 { margin: 0; font-size: 20px; }
.close-btn { width: 38px; height: 38px; border-radius: 10px; border: 1px solid #e5e7eb; background: #f9fafb; font-weight: 1000; }
.modal-body { padding: 18px; }
.role-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.role-card { border: 1px solid #e5e7eb; background: #fff; border-radius: 14px; padding: 16px; text-align: left; }
.role-card.active, .role-card:hover { border-color: var(--orange); box-shadow: 0 0 0 3px #ffedd5; }
.role-card b { display: block; margin-bottom: 5px; }
.form-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; margin-top: 14px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 13px; font-weight: 900; color: #374151; }
.field input, .field select, .field textarea {
  border: 1px solid #d1d5db;
  border-radius: 10px;
  padding: 11px 12px;
  outline: 0;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--orange); box-shadow: 0 0 0 3px #ffedd5; }

.tool-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.tool-card { border: 1px solid #e5e7eb; border-radius: 14px; padding: 14px; background: #fff; }
.tool-card h3 { margin: 0 0 6px; font-size: 16px; }
.tool-card p { margin: 0 0 10px; color: var(--muted); font-size: 13px; line-height: 1.45; }

.cart-item { display: grid; grid-template-columns: 70px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid #eef0f3; }
.cart-item img { width: 70px; height: 70px; object-fit: cover; border-radius: 10px; }
.cart-summary { margin-top: 14px; background: #f9fafb; border-radius: 14px; padding: 14px; }
.summary-line { display: flex; justify-content: space-between; margin: 8px 0; font-weight: 800; }
.summary-line.total { font-size: 18px; color: var(--orange-dark); }

.admin-layout { display: grid; grid-template-columns: 240px 1fr; gap: 14px; }
.admin-menu { display: grid; gap: 8px; align-content: start; }
.admin-menu button { border: 1px solid #e5e7eb; background: #fff; border-radius: 12px; padding: 11px; font-weight: 900; text-align: left; }
.admin-menu button.active { background: #111827; color: #fff; }
.wholesaler-list { display: grid; gap: 10px; }
.wholesaler-card { border: 1px solid #e5e7eb; border-radius: 14px; padding: 12px; display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; }
.catalogue-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 12px; }
.catalogue-card { border: 1px solid #e5e7eb; border-radius: 14px; padding: 12px; display: grid; grid-template-columns: 84px 1fr; gap: 10px; }
.catalogue-card img { width: 84px; height: 84px; object-fit: cover; border-radius: 10px; }
.badge { display: inline-flex; padding: 4px 7px; border-radius: 999px; font-size: 11px; font-weight: 1000; background: #f3f4f6; color: #374151; }
.badge.green { background: #dcfce7; color: #166534; }
.badge.orange { background: #ffedd5; color: #9a3412; }
.badge.red { background: #fee2e2; color: #991b1b; }

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  background: #111827;
  color: #fff;
  padding: 12px 14px;
  border-radius: 12px;
  box-shadow: 0 18px 44px rgba(0,0,0,.28);
  display: none;
  z-index: 200;
  font-weight: 850;
}
.toast.show { display: block; animation: toast .28s ease; }
@keyframes toast { from { transform: translateY(14px); opacity: 0;} to { transform: translateY(0); opacity: 1;} }

.mobile-only { display: none; }
.hidden { display: none !important; }

@media (max-width: 1050px) {
  .market-grid { grid-template-columns: 190px minmax(0,1fr); }
  .quick-panel { grid-column: 1 / -1; grid-template-columns: repeat(4,1fr); }
  .product-row { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .live-sellers-grid { grid-template-columns: repeat(2,1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .header-inner { grid-template-columns: 1fr; gap: 10px; }
  .logo-wrap { min-width: 0; }
  .header-actions { justify-content: stretch; overflow-x: auto; padding-bottom: 4px; }
  .header-btn { flex: 0 0 auto; }
  .market-grid { grid-template-columns: 1fr; }
  .side-categories { display: none; }
  .ad-slide { grid-template-columns: 1fr; }
  .ad-visual { display: none; }
  .quick-panel { grid-template-columns: repeat(2,1fr); }
  .flash-body { grid-template-columns: 1fr; }
  .product-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .info-grid { grid-template-columns: repeat(2,1fr); }
  .role-grid, .tool-grid, .form-grid, .admin-layout, .catalogue-grid { grid-template-columns: 1fr; }
}
@media (max-width: 540px) {
  .mini-strip-inner { align-items: flex-start; flex-direction: column; padding-top: 8px; padding-bottom: 8px; }
  .logo-text { font-size: 23px; }
  .search-box button { padding: 0 14px; }
  .quick-panel { grid-template-columns: 1fr; }
  .live-product { grid-template-columns: 94px 1fr; }
  .product-row { grid-template-columns: 1fr 1fr; }
  .live-sellers-grid { grid-template-columns: 1fr; }
  .info-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .flash-head { align-items: flex-start; flex-direction: column; }
}

.empty-state{padding:22px;background:#fff;border-radius:14px;border:1px solid #eef0f3;color:#6b7280}.filtered-results{border:2px solid #f7b267}


/* ================================
   SokoYetu Stage 18 Final Interface Polish
   Non-destructive design polish.
   ================================ */

:root {
  --stage18-radius: 18px;
  --stage18-shadow: 0 14px 34px rgba(15, 23, 42, 0.10);
}

button,
input,
select,
textarea {
  font-family: inherit;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(249, 115, 22, 0.45);
  outline-offset: 3px;
}

.card,
.product-card,
.admin-card,
.seller-card {
  border-radius: var(--stage18-radius);
}

.product-card:hover,
.card:hover {
  transform: translateY(-1px);
}

.badge,
.status-badge {
  border-radius: 999px;
}

/* Avoid broken image placeholders from products without image URLs. */
img[src=""],
img:not([src]) {
  display: none !important;
}

/* Keep floating launchers readable and separated. */
#adminAISuiteV2Launcher,
#syLiveStudioLauncher,
#syLiveWatchLauncher {
  white-space: nowrap;
}

/* Better modal scrolling on small screens. */
.ai2-panel,
.sy-live-panel {
  scrollbar-width: thin;
}

@media (max-width: 720px) {
  body {
    overflow-x: hidden;
  }

  .ai2-panel,
  .sy-live-panel {
    width: 96vw !important;
    max-height: 90vh !important;
  }
}
