
:root {
  
  --color-primary: #e8380d;
  --color-primary-bright: #ff5a1f;
  --color-secondary: #1cab55;
  --color-secondary-deep: #0d8a42;
  --acc: var(--color-primary);
  --acc2: var(--color-primary-bright);
  --acc-grad: linear-gradient(135deg, #ff5a1f 0%, #e8380d 100%);
  --acc-soft: rgba(232, 56, 13, .12);
  --green: var(--color-secondary);
  --green-deep: var(--color-secondary-deep);
  --green-grad: linear-gradient(135deg, #24c161 0%, #0d8a42 100%);
  --ease: cubic-bezier(.32, .72, 0, 1);
  --spring: cubic-bezier(.2, .9, .3, 1.12);
  --r-lg: 20px;
  --r-md: 14px;
}
[data-theme="dark"] {
  --bg: #0b0b0d;
  --chrome: #141417;
  --chrome2: #1d1d22;
  --ink: #f4f4f6;
  --muted: #b3b3bd;
  --faint: #82828c;
  --line: #2a2a31;
  --line-soft: #1e1e24;
  --input: #1d1d22;
  --input-ink: #f4f4f6;
  --card: #ffffff;
  --card-ink: #15151a;
  --card-mut: #6d6d78;
  --overlay: rgba(0, 0, 0, .62);
  --shadow: 0 12px 32px rgba(0, 0, 0, .5);
  --shadow-card: 0 8px 24px rgba(0, 0, 0, .35);
  --nav-bg: rgba(16, 16, 19, .96);
  --sheet-line: #ececf0;
}
[data-theme="light"] {
  --bg: #f2f2f5;
  --chrome: #ffffff;
  --chrome2: #f6f6f9;
  --ink: #141419;
  --muted: #66666f;
  --faint: #6b6b74;
  --line: #e6e6eb;
  --line-soft: #efeff3;
  --input: #f0f0f4;
  --input-ink: #141419;
  --card: #ffffff;
  --card-ink: #15151a;
  --card-mut: #6d6d78;
  --overlay: rgba(12, 12, 16, .5);
  --shadow: 0 12px 32px rgba(20, 20, 28, .14);
  --shadow-card: 0 8px 24px rgba(20, 20, 28, .1);
  --nav-bg: rgba(255, 255, 255, .97);
  --sheet-line: #ececf0;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
  -webkit-tap-highlight-color: transparent;
  -webkit-font-smoothing: antialiased;
}
body.sz-lock { overflow: hidden; }
::selection { background: var(--acc); color: #fff; }
img { -webkit-user-drag: none; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 16px; }

#app { max-width: 480px; margin: 0 auto; background: var(--bg); min-height: 100vh; position: relative; overflow-x: clip; }
.screen { display: none; padding-bottom: 104px; min-height: 100vh; }
#screen-detail, #screen-seller { padding-bottom: 20px; }
.screen.active { display: block; animation: screenIn .38s var(--ease); }
@keyframes screenIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }


#splash {
  position: fixed; inset: 0; z-index: 200; background: #0d0d0f;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px;
  transition: opacity .4s, visibility .4s;
}
#splash.hide { opacity: 0; visibility: hidden; pointer-events: none; }
.splash-logo-img { width: 120px; height: 120px; object-fit: cover; border-radius: 32px; box-shadow: 0 20px 60px rgba(232, 56, 13, .35); }
.splash-bar { width: 120px; height: 4px; border-radius: 99px; background: #26262c; overflow: hidden; }
.splash-bar i { display: block; height: 100%; width: 40%; border-radius: 99px; background: var(--acc-grad); animation: splashSlide 1s infinite var(--ease); }
@keyframes splashSlide { 0% { transform: translateX(-120%); } 100% { transform: translateX(320%); } }


.toast {
  position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%) translateY(12px);
  background: #17171b; color: #fff; padding: 12px 18px; border-radius: 999px;
  font-size: 13.5px; font-weight: 600; z-index: 300; opacity: 0; pointer-events: none;
  transition: opacity .22s var(--ease), transform .22s var(--ease); max-width: 88vw; text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .4); border: 1px solid #2a2a31;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }


.btn-primary {
  display: block; width: 100%; border: 0; border-radius: 999px;
  background: var(--acc-grad); color: #fff;
  font-size: 16px; font-weight: 800; letter-spacing: .2px;
  padding: 15px 20px; box-shadow: 0 10px 26px rgba(232, 56, 13, .38);
  transition: transform .15s var(--ease), box-shadow .15s;
}
.btn-primary:active { transform: scale(.97); }
.btn-secondary {
  display: block; width: 100%; border: 1.5px solid var(--line); border-radius: 999px;
  background: var(--chrome); color: var(--ink);
  font-size: 15px; font-weight: 700; padding: 13px 20px;
}
.btn-ghost {
  border: 0; background: transparent; color: var(--muted);
  font-size: 14px; font-weight: 700; padding: 13px 14px; border-radius: 12px;
}
.btn-danger { color: #ff6b5e; }
.link-btn {
  border: 0; background: none; color: var(--acc2);
  font-size: 14px; font-weight: 700; padding: 6px 4px;
}
[data-theme="light"] .link-btn { color: var(--acc); }
.icon-btn {
  border: 0; background: transparent; color: var(--ink);
  width: 40px; height: 40px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center; font-size: 22px;
}
.icon-btn svg { width: 22px; height: 22px; }
.icon-btn:active { background: var(--line-soft); }
.mini-btn {
  border: 1px solid var(--line); background: var(--chrome); color: var(--ink);
  border-radius: 999px; padding: 13px 16px; font-size: 13px; font-weight: 700;
}
.mini-btn-danger {
  border-color: #e5484d; color: #e5484d; background: transparent;
}
.mini-btn-danger:disabled { opacity: .5; }
[hidden] { display: none !important; }

.offline-bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  background: #b3261e; color: #fff; text-align: center;
  font-size: 13px; font-weight: 700; padding: 10px 16px;
}
.offline-bar[hidden] { display: none; }


#screen-detail, #screen-thread, #screen-seller, #screen-settings, #screen-recover {
  padding-bottom: 24px; min-height: 0;
}
#screen-inbox { min-height: 0; }
#screen-inbox #inbox-list { padding-bottom: 0; }


.switch { position: relative; display: inline-block; width: 48px; height: 28px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .slider {
  position: absolute; inset: 0; border-radius: 999px; background: var(--line);
  transition: background .2s;
}
.switch .slider::before {
  content: ""; position: absolute; width: 22px; height: 22px; border-radius: 50%;
  background: #fff; top: 3px; left: 3px; transition: transform .2s var(--ease);
  box-shadow: 0 2px 6px rgba(0, 0, 0, .3);
}
.switch input:checked + .slider { background: var(--acc-grad); }
.switch input:checked + .slider::before { transform: translateX(20px); }


.auth-error {
  background: #fdecec; color: #b3261e; border: 1px solid #f5c6c2;
  border-radius: var(--r-md); padding: 12px 14px; font-size: 13.5px; font-weight: 600;
  margin-bottom: 16px;
}
#screen-sell .auth-error{background:rgba(179,38,30,.14);color:var(--ink);border-color:rgba(179,38,30,.35)}


#screen-auth, #screen-recover { background: #ffffff; }
.finora-page { max-width: 420px; margin: 0 auto; padding: 30px 24px 48px; }
.finora-brand { text-align: center; margin-bottom: 6px; }
.finora-logo {
  width: 78px; height: 78px; object-fit: cover; border-radius: 26px;
  box-shadow: 0 12px 32px rgba(13, 13, 15, .28);
  border: 1px solid rgba(0, 0, 0, .06);
}
.finora-title {
  font-size: 31px; font-weight: 800; letter-spacing: -.8px; line-height: 1.18;
  color: #101418; text-align: center; margin: 18px 0 0;
}
.finora-title span { color: var(--green); }
.finora-sub { color: #6b7280; text-align: center; font-size: 14.5px; margin: 10px 0 24px; }

.auth-tabs {
  display: flex; background: #f1f3f5; border-radius: 999px; padding: 4px; margin-bottom: 22px;
}
.auth-tab {
  flex: 1; border: 0; background: transparent; padding: 13px; border-radius: 999px;
  font-size: 14.5px; font-weight: 700; color: #6b7280; transition: background-color .2s var(--ease), color .2s var(--ease), box-shadow .2s var(--ease);
}
.auth-tab.active { background: #fff; color: #101418; box-shadow: 0 2px 10px rgba(0, 0, 0, .1); }

.auth-form { display: block; }
.auth-form[hidden] { display: none !important; }
.finora-field { display: block; margin-bottom: 14px; }
.finora-label { display: block; font-size: 12.5px; font-weight: 600; color: #374151; margin-bottom: 7px; }
.finora-input {
  display: flex; align-items: center; background: #fff;
  border: 1.5px solid #e5e7eb; border-radius: 14px; padding: 0 15px;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.finora-input:focus-within { border-color: var(--green); box-shadow: 0 0 0 3.5px rgba(28, 171, 85, .13); }
.finora-input svg { width: 19px; height: 19px; color: #9ca3af; flex: none; margin-right: 11px; }
.finora-input input {
  border: 0; outline: 0; flex: 1; min-width: 0; padding: 15px 0;
  font-size: 15.5px; background: transparent; color: #101418;
}
.finora-input input::placeholder { color: #b6bcc7; }

.btn-primary.finora-btn {
  background: var(--green-grad); margin-top: 8px; padding: 17px 20px;
  font-size: 16.5px; box-shadow: 0 12px 28px rgba(28, 171, 85, .36);
}
.btn-primary.finora-btn span { display: inline-block; margin-left: 4px; }
.auth-switch { text-align: center; margin-top: 14px; }
.auth-switch .link-btn { color: var(--green-deep); font-size: 13.5px; }
.phone-mode { color: #6b7280; font-size: 13.5px; margin-bottom: 14px; }

.finora-or { display: flex; align-items: center; gap: 14px; color: #9ca3af; font-size: 13px; margin: 24px 0 18px; }
.finora-or::before, .finora-or::after { content: ""; flex: 1; height: 1px; background: #eef0f2; }
.finora-device {
  display: flex; gap: 11px; align-items: flex-start;
  background: #f4fbf6; border: 1px solid #d8f0e1; color: #14743d;
  border-radius: var(--r-md); padding: 13px 15px; font-size: 13px; line-height: 1.5;
}
.finora-device svg { width: 20px; height: 20px; flex: none; margin-top: 1px; }
.auth-note { color: #9ca3af; font-size: 12.5px; text-align: center; margin: 20px 0 12px; line-height: 1.55; }
.trust-row { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }
.trust-row span { font-size: 12.5px; color: #6b7280; font-weight: 600; }
.trust-row b { color: var(--green); font-weight: 800; }


.selfie-modal {
  position: fixed; inset: 0; z-index: 120; background: var(--overlay);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.selfie-modal[hidden] { display: none; }
.selfie-card {
  background: #fff; border-radius: 24px; padding: 26px 22px; width: 100%; max-width: 380px;
  text-align: center; box-shadow: var(--shadow); max-height: 92vh; overflow-y: auto;
}
.selfie-card h3 { font-size: 20px; font-weight: 800; color: #101418; letter-spacing: -.3px; }
.selfie-sub { font-size: 13.5px; color: #6b7280; margin: 8px 0 14px; line-height: 1.55; }
.selfie-stages { display: flex; gap: 7px; justify-content: center; margin-bottom: 14px; }
.s-dot { width: 8px; height: 8px; border-radius: 50%; background: #e5e7eb; }
.s-dot.on { background: var(--green); }
.selfie-cam-wrap {
  position: relative; border-radius: 18px; overflow: hidden; background: #101014;
  aspect-ratio: 4 / 3; margin-bottom: 12px;
}
#selfie-video { width: 100%; height: 100%; object-fit: cover; display: block; }
.selfie-guide {
  position: absolute; inset: 12%; border: 2.5px dashed rgba(255, 255, 255, .65);
  border-radius: 50%; pointer-events: none;
}
.selfie-flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; }
.selfie-flash.go { animation: flashGo .35s; }
@keyframes flashGo { 0% { opacity: 0; } 30% { opacity: .9; } 100% { opacity: 0; } }
.selfie-light {
  position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%);
  background: rgba(0, 0, 0, .55); color: #fff; font-size: 12px; font-weight: 600;
  padding: 6px 12px; border-radius: 999px; white-space: nowrap;
}
.selfie-film { display: flex; gap: 8px; justify-content: center; margin-bottom: 10px; min-height: 4px; }
.selfie-film img { width: 52px; height: 52px; object-fit: cover; border-radius: 12px; border: 2px solid var(--green); }
.selfie-instruction { font-size: 13.5px; color: #374151; font-weight: 600; margin-bottom: 10px; min-height: 20px; }
.selfie-progress { height: 6px; border-radius: 99px; background: #eef0f2; overflow: hidden; margin-bottom: 14px; }
#selfie-bar { height: 100%; width: 10%; border-radius: 99px; background: var(--green-grad); transition: width .3s; }
.selfie-capture { margin-bottom: 6px; }
.selfie-capture:disabled { opacity: .45; box-shadow: none; }
.selfie-actions { display: flex; gap: 8px; justify-content: center; }
.selfie-error { color: #b3261e; font-size: 13px; font-weight: 600; margin-top: 10px; }


.topbar {
  display: flex; align-items: center; gap: 8px;
  padding: calc(10px + env(safe-area-inset-top)) 12px 10px;
  background: var(--chrome); position: sticky; top: 0; z-index: 40;
  border-bottom: 1px solid var(--line-soft);
}
[data-theme="dark"] .topbar {
  background: linear-gradient(180deg, #17171b 0%, #131316 100%);
  border-bottom: 1px solid #232329;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .35);
}
[data-theme="dark"] .bottomnav, [data-theme="dark"] #bottomnav {
  background: rgba(20, 20, 24, .97);
  border-top: 1px solid #26262c;
  box-shadow: 0 -6px 20px rgba(0, 0, 0, .4);
}
.sz-burger { color: var(--ink); }
.brand { flex: 1; display: flex; flex-direction: column; align-items: center; line-height: 1; }
.brand-logo { height: 30px; width: auto; display: block; }
[data-theme="dark"] .brand-logo {
  filter: drop-shadow(0 2px 10px rgba(232, 56, 13, .28));
}
[data-theme="light"] .brand-logo {
  filter: drop-shadow(0 1px 4px rgba(20, 20, 30, .12));
}
.sz-tagline {
  font-size: 8.5px; font-weight: 800; letter-spacing: 5px; color: var(--acc2);
  margin-top: 3px; padding-left: 5px;
}
.sz-actions { display: flex; gap: 2px; }
.sz-actions .icon-btn { width: 38px; height: 38px; }
.page-title { font-size: 17px; font-weight: 800; letter-spacing: -.2px; flex: 1; }
.nav-bar .page-title { text-align: left; }
#screen-category .topbar .page-title,
#screen-inbox .topbar .page-title,
#screen-me .topbar .page-title { text-align: center; }


.sz-scrim {
  position: fixed; inset: 0; z-index: 90; background: var(--overlay);
  animation: fadeIn .3s var(--ease);
}
.sz-scrim[hidden] { display: none; }
@keyframes fadeIn { from { opacity: 0; } }
.sz-drawer {
  position: fixed; top: 0; left: 0; bottom: 0; z-index: 95; width: 280px;
  background: var(--chrome); border-right: 1px solid var(--line-soft);
  padding: calc(18px + env(safe-area-inset-top)) 16px 18px;
  animation: drawerIn .42s var(--spring); overflow-y: auto;
  max-width: calc(100vw - 40px);
}
.sz-drawer[hidden] { display: none; }
@keyframes drawerIn { from { transform: translateX(-100%); } }
.sz-drawer-head { display: flex; gap: 12px; align-items: center; padding: 6px 4px 18px; border-bottom: 1px solid var(--line-soft); margin-bottom: 12px; }
.sz-drawer-logo { width: 46px; height: 46px; border-radius: 15px; object-fit: cover; }
.sz-drawer-head div { display: flex; flex-direction: column; }
.sz-drawer-head b { font-size: 15px; }
.sz-drawer-head span { font-size: 12px; color: var(--muted); }
.drawer-link {
  display: flex !important; align-items: center; gap: 14px; width: 100%;
  border: 0; background: transparent; color: var(--ink);
  font-size: 15px; font-weight: 700; padding: 13px 10px; border-radius: 12px; text-align: left;
}
.drawer-link i { font-style: normal; width: 26px; text-align: center; color: var(--acc2); font-size: 18px; display: flex; align-items: center; justify-content: center; }
.drawer-link i svg { display: block; }
.drawer-link:active { background: var(--line-soft); }


.search-row { padding: 10px 14px 4px; }
.search-capsule { display: flex; align-items: center; gap: 8px; }
.sz-search-ico { width: 19px; height: 19px; color: var(--faint); flex: none; margin-left: 14px; position: absolute; }
.home-search-top { position: relative; }
#home-search {
  flex: 1; border: 0; outline: 0; border-radius: 999px;
  background: var(--input); color: var(--input-ink);
  padding: 13px 16px 13px 42px; font-size: 14.5px;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, .08);
}
#home-search::placeholder { color: var(--faint); }
.sz-filter {
  flex: none; width: 46px; height: 46px; border-radius: 50%;
  background: var(--chrome2); border: 1px solid var(--line-soft); color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center;
}
.sz-filter svg { width: 20px; height: 20px; }
.sz-filter:active { transform: scale(.94); }


.sz-catrow {
  display: flex; gap: 4px; overflow-x: auto; padding: 12px 14px 6px;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.sz-catrow::-webkit-scrollbar { display: none; }
.sz-cat {
  border: 0; background: transparent; display: flex; flex-direction: column;
  align-items: center; gap: 7px; min-width: 68px; padding: 4px 2px; color: var(--ink);
}
.sz-cat-ico {
  width: 58px; height: 58px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .04));
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 6px 16px rgba(0, 0, 0, .3);
  transition: transform .18s var(--spring), border-color .18s, box-shadow .18s;
}
.sz-cat:active .sz-cat-ico { transform: scale(.92); }
.sz-cat-ico img { width: 26px; height: 26px; filter: brightness(0) invert(1); opacity: .94; }
.sz-cat-name {
  font-size: 10.5px; font-weight: 700; color: var(--muted); text-align: center;
  line-height: 1.25; max-width: 70px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  transition: color .18s;
}
.sz-cat.on .sz-cat-ico {
  border-color: var(--acc2);
  box-shadow: 0 0 0 2px var(--acc-soft), 0 6px 16px rgba(0, 0, 0, .3);
}
.sz-cat.on .sz-cat-name { color: var(--ink); }
[data-theme="light"] .sz-cat-ico {
  background: linear-gradient(135deg, #ffffff, #f4f4f7);
  border-color: var(--line);
  box-shadow: 0 4px 12px rgba(20, 20, 30, .08);
}
[data-theme="light"] .sz-cat-ico img { filter: brightness(0); opacity: .78; }
[data-theme="light"] .sz-cat.on .sz-cat-ico { border-color: var(--acc2); }


.chips { display: flex; gap: 8px; overflow-x: auto; padding: 8px 14px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; border: 1px solid var(--line); background: var(--chrome);
  color: var(--ink); border-radius: 999px; padding: 13px 16px;
  font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; gap: 7px;
}
.chip.on, .chip.active { background: var(--acc-grad); border-color: transparent; color: #fff; }
.chip-ico { width: 18px; height: 18px; }
.filter-bar { display: flex; gap: 8px; padding: 2px 14px 8px; }
.filter-pill {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--line); background: var(--chrome); color: var(--muted);
  border-radius: 999px; padding: 13px 16px; font-size: 12.5px; font-weight: 700;
}
.filter-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--faint); }
.filter-pill.on { color: var(--ink); border-color: var(--acc2); }
.filter-pill.on .dot { background: var(--acc2); }
.trend-wrap { padding: 2px 14px 8px; }
.trend-title { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; color: var(--faint); margin-bottom: 8px; }
.trend-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.trend-chips::-webkit-scrollbar { display: none; }
.trend-chip {
  flex: none; border: 1px dashed var(--line); background: transparent; color: var(--muted);
  border-radius: 999px; padding: 13px 16px; font-size: 12.5px; font-weight: 600;
  display: inline-flex; align-items: center; gap: 5px;
}
.trend-chip svg { flex: none; }


.hero {
  position: relative; margin: 10px 14px 6px; border-radius: var(--r-lg);
  overflow: hidden; box-shadow: var(--shadow);
  background: #101014;
}
.hero-track { display: flex; transition: transform .55s var(--ease); }
.hero-slide {
  flex: 0 0 100%; position: relative; padding: 30px 22px 34px; min-height: 208px;
  display: flex; flex-direction: column; justify-content: center; gap: 8px; overflow: hidden;
  background: #101014 url("assets/og-cover.jpg") right center / auto 135% no-repeat;
}
.hero-slide::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(10, 10, 13, .97) 30%, rgba(10, 10, 13, .72) 58%, rgba(10, 10, 13, .25) 100%);
}
.hero-slide > * { position: relative; z-index: 1; }
.hero-kicker {
  font-size: 11px; font-weight: 800; letter-spacing: 2.4px; text-transform: uppercase;
  color: var(--acc2); font-style: italic;
}
.hero-title {
  font-size: 37px; font-weight: 900; line-height: 1.02; letter-spacing: -.5px; color: #fff;
  text-transform: uppercase;
}
.hero-title em { font-style: normal; color: transparent; -webkit-text-stroke: 1.6px var(--acc2); }
.hero-sub { font-size: 13.5px; color: rgba(255, 255, 255, .72); max-width: 240px; line-height: 1.5; }
.hero-cta {
  align-self: flex-start; margin-top: 8px; border: 0; border-radius: 999px;
  background: var(--acc-grad); color: #fff; font-size: 14px; font-weight: 800;
  padding: 12px 22px; box-shadow: 0 8px 22px rgba(232, 56, 13, .45);
  transition: transform .15s var(--ease);
}
.hero-cta:active { transform: scale(.95); }
.hero-dots { position: absolute; bottom: 12px; left: 0; right: 0; display: flex; gap: 6px; justify-content: center; z-index: 2; }
.hero-dots span { width: 7px; height: 7px; border-radius: 99px; background: rgba(255, 255, 255, .3); transition: width .3s var(--ease), background-color .3s var(--ease); }
.hero-dots span.on { width: 24px; background: var(--acc2); }


.section-head-premium {
  display: flex; align-items: baseline; gap: 10px;
  padding: 18px 16px 12px;
}
.section-head-premium h2 { font-size: 20px; font-weight: 900; letter-spacing: -.4px; }
.section-head-premium .view-all { margin-left: auto; font-size: 13px; white-space: nowrap; }
.section-head-premium .count { font-size: 12.5px; color: var(--faint); font-weight: 700; }
.section-head { display: flex; align-items: baseline; gap: 10px; padding: 18px 16px 12px; }
.section-head h2, .section-head h3 { font-size: 19px; font-weight: 900; letter-spacing: -.3px; }

.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 0 14px; }
.grid.single, .grid:only-child { grid-template-columns: 1fr 1fr; }


.card {
  position: relative; background: var(--card); border-radius: 18px; overflow: hidden;
  box-shadow: var(--shadow-card); cursor: pointer;
  transition: transform .18s var(--ease);
  animation: cardIn .5s var(--ease) backwards; animation-delay: calc(var(--i, 0) * 45ms);
}
.rise { animation: cardIn .5s var(--ease) backwards; animation-delay: calc(var(--i, 0) * 45ms); }
@keyframes cardIn { from { opacity: 0; transform: translateY(14px); } }
.card:active { transform: scale(.97); }

@media (hover: hover) and (pointer: fine) {
  .card { transition: transform .18s var(--ease), box-shadow .18s var(--ease); }
  .card:hover { transform: translateY(-3px); box-shadow: var(--shadow-card), 0 12px 28px rgba(0, 0, 0, .18); }
  .card:hover .card-photo img.ld { transform: scale(1.04); }
}
.card-photo { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: var(--chrome2); }
.card-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-photo-empty { display: flex; align-items: center; justify-content: center; }
.card-cat-ico { width: 40px; height: 40px; display: block; }
.card-init { position: absolute; font-size: 44px; font-weight: 900; color: rgba(255, 255, 255, .85); }
.card-photos {
  position: absolute; left: 8px; bottom: 8px; background: rgba(0, 0, 0, .62); color: #fff;
  font-size: 10.5px; font-weight: 700; padding: 4px 9px; border-radius: 999px;
  backdrop-filter: blur(4px);
}

.card-cond {
  position: absolute; right: 8px; bottom: 8px; background: rgba(255, 255, 255, .92); color: #15151a;
  font-size: 10px; font-weight: 800; letter-spacing: .4px; text-transform: uppercase;
  padding: 4px 9px; border-radius: 999px; box-shadow: 0 2px 8px rgba(0,0,0,.25);
}

.card-photo img { opacity: 0; transform: scale(1.04); filter: blur(6px); transition: opacity .5s var(--ease), transform .6s var(--ease), filter .5s var(--ease); }
.card-photo img.ld { opacity: 1; transform: scale(1); filter: blur(0); }

.card:active .card-photo img.ld { transform: scale(1.06); }
.card-badges { position: absolute; top: 8px; left: 8px; z-index: 2; display: flex; gap: 6px; flex-wrap: wrap; max-width: 70%; }
.badge {
  font-size: 9.5px; font-weight: 900; letter-spacing: .8px; text-transform: uppercase;
  padding: 5px 10px; border-radius: 7px; color: #fff; background: var(--acc-grad);
  box-shadow: 0 4px 12px rgba(232, 56, 13, .4);
}
.badge.verified { background: linear-gradient(135deg, #1c1c21, #3a3a42); box-shadow: 0 4px 12px rgba(0, 0, 0, .35); }
.badge.drop { background: #fff; color: var(--acc); border: 1.5px solid var(--acc); box-shadow: none; }
.badge.promoted { background: var(--acc-grad); }
.badge.featured { background: linear-gradient(135deg, #f5b301, #f97316); color: #fff; }
.badge.fresh { background: var(--color-secondary); color: #fff; }
.badge.sold { background: #3a3a3f; color: #fff; }

.card-photo.broken { background: var(--line-soft); display: flex; align-items: center; justify-content: center; min-height: 120px; }
.card-photo.broken::after {
  content: ""; width: 36px; height: 36px; opacity: .45;
  background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='2'/%3E%3Ccircle cx='8.5' cy='8.5' r='1.5'/%3E%3Cpath d='M21 15l-5-5L5 21'/%3E%3C/svg%3E");
}

.card.sold .card-photo img.ld { opacity: .5; filter: grayscale(.45); }
.card-fav {
  position: absolute; top: 8px; right: 8px; z-index: 2;
  width: 34px; height: 34px; border-radius: 50%; border: 0;
  background: rgba(255, 255, 255, .94); color: #b9b9c2; font-size: 17px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .22);
  transition: transform .18s var(--spring), color .18s;
}
.card-fav.on { color: var(--acc); }
.card-fav.pop { animation: pop .3s var(--spring); }

.card-fav::before { content: ""; position: absolute; inset: -6px; }
.card-fav svg { display: block; }
@keyframes pop { 50% { transform: scale(1.35); } }
.card-body { padding: 11px 12px 13px; }
.card-price { font-size: 16.5px; font-weight: 900; color: var(--acc); letter-spacing: -.3px; }
.card-price .was { font-size: 12px; color: var(--card-mut); text-decoration: line-through; font-weight: 600; margin-left: 6px; }
.card-title {
  font-size: 13.5px; font-weight: 600; color: var(--card-ink); margin-top: 3px; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-title b { background: rgba(232, 56, 13, .14); border-radius: 3px; }
.card-trust { display: flex; align-items: center; gap: 5px; margin-top: 6px; font-size: 11.5px; color: var(--card-mut); font-weight: 600; }
.stars { color: #f5a623; font-size: 12px; letter-spacing: 1px; }
.vtick {
  display: inline-flex; align-items: center; justify-content: center;
  width: 16px; height: 16px; border-radius: 50%; font-size: 10px; font-weight: 900;
  background: linear-gradient(135deg, #c98a2d, #8a5a12); color: #fff;
}
.vtick.gold { background: linear-gradient(135deg, #ffd166, #c98a2d); color: #5a3c05; }
.card-meta { font-size: 11.5px; color: var(--card-mut); margin-top: 5px; }


.skel-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 0 14px; }
.skel-card { background: var(--chrome); border-radius: 18px; overflow: hidden; }
.skel-photo { aspect-ratio: 1 / 1; }
.skel-line { height: 12px; border-radius: 6px; margin: 10px 12px; }
.shimmer, .skel-photo, .skel-line {
  background: linear-gradient(100deg, var(--line-soft) 40%, var(--line) 50%, var(--line-soft) 60%);
  background-size: 200% 100%; animation: shimmer 1.3s infinite linear;
}
@keyframes shimmer { to { background-position: -200% 0; } }

.detail-skel-body { padding: 2px 18px 0; }
.detail-skel-body .skel-line { margin: 12px 0; }
.detail-skel-body .skel-line.w60 { width: 60%; }
.detail-skel-body .skel-line.w40 { width: 40%; }

@media (prefers-reduced-motion: reduce) {
  .card { animation: none; }
  .rise { animation: none; }
  .card-photo img { opacity: 1; transform: none; filter: none; transition: none; }
  .card-fav.pop { animation: none; }
  .gal-zoom-hint { animation: none; max-height: none; }
  .shimmer, .skel-photo, .skel-line { animation: none; }
}


.empty { text-align: center; padding: 44px 28px; }
.empty-illus { width: 110px; height: 110px; opacity: .9; margin-bottom: 14px; }
.empty h3 { font-size: 17px; font-weight: 800; margin-bottom: 6px; }
.empty p { font-size: 13.5px; color: var(--muted); line-height: 1.55; }
.empty-chips { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 14px; }
.empty-clear { margin: 16px auto 0; max-width: 220px; }


.ad-banner {
  position: relative; margin: 12px 14px 4px; border-radius: var(--r-md); overflow: hidden;
  background: #101014; min-height: 64px; box-shadow: var(--shadow);
}
.ad-fx { position: absolute; inset: 0; opacity: .5; }
.ad-badge {
  position: absolute; top: 10px; right: 10px; z-index: 3;
  font-size: 9px; font-weight: 800; letter-spacing: 1.5px; color: rgba(255, 255, 255, .55);
  border: 1px solid rgba(255, 255, 255, .25); padding: 3px 8px; border-radius: 6px;
}
.ad-scenes { position: relative; z-index: 2; }
.ad-scene { display: none; padding: 12px 16px 16px; animation: adIn .5s var(--ease); }
.ad-scene.active { display: block; }
@keyframes adIn { from { opacity: 0; transform: translateY(10px); } }
.ad-kicker { font-size: 9px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; color: var(--acc2); }
.ad-title { font-size: 16px; font-weight: 900; color: #fff; letter-spacing: -.4px; margin: 4px 0 2px; text-transform: uppercase; }
.ad-title em { font-style: normal; color: transparent; -webkit-text-stroke: 1.3px var(--acc2); }
.ad-sub { font-size: 11.5px; color: rgba(255, 255, 255, .65); }
.ad-cta {
  margin-top: 8px; border: 0; border-radius: 999px; background: var(--acc-grad); color: #fff;
  font-size: 12px; font-weight: 800; padding: 8px 18px;
  box-shadow: 0 8px 22px rgba(232, 56, 13, .45);
}
.ad-progress { position: absolute; bottom: 0; left: 0; right: 0; height: 3px; background: rgba(255, 255, 255, .12); z-index: 3; }
.ad-progress-fill { height: 100%; width: 0; background: var(--acc-grad); }


.ticker { overflow: hidden; margin: 14px 0 4px; padding: 10px 0; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.ticker-track { display: inline-flex; gap: 26px; white-space: nowrap; animation: tick 22s linear infinite; padding-left: 14px; }
@keyframes tick { to { transform: translateX(-50%); } }
.ticker-track span { font-size: 12.5px; font-weight: 700; color: var(--muted); }
.ticker-track b { color: var(--acc2); }


.promo-strip {
  display: flex; align-items: center; gap: 12px; margin: 14px;
  background: linear-gradient(120deg, #160b08 0%, #2b1008 55%, #160b08 100%);
  border: 1px solid rgba(232, 56, 13, .4); border-radius: var(--r-lg);
  padding: 16px; box-shadow: 0 12px 30px rgba(232, 56, 13, .22);
  position: relative; overflow: hidden;
}
.promo-strip::after {
  content: "20%"; position: absolute; right: -8px; top: -14px;
  font-size: 76px; font-weight: 900; color: rgba(232, 56, 13, .14); letter-spacing: -3px;
}
.promo-strip[hidden] { display: none; }
.promo-info { flex: 1; position: relative; z-index: 1; }
.promo-kicker { font-size: 10.5px; font-weight: 900; letter-spacing: 2px; text-transform: uppercase; color: var(--acc2); }
.promo-title { font-size: 16.5px; font-weight: 900; color: #fff; letter-spacing: -.3px; margin-top: 3px; text-transform: uppercase; }
.promo-timer { display: flex; align-items: center; gap: 4px; position: relative; z-index: 1; }
.promo-timer span {
  background: #0d0d0f; border: 1px solid rgba(232, 56, 13, .5); color: #fff;
  font-size: 14px; font-weight: 800; font-variant-numeric: tabular-nums;
  padding: 7px 9px; border-radius: 9px; min-width: 36px; text-align: center;
}
.promo-timer i { color: var(--acc2); font-style: normal; font-weight: 900; }
.promo-go {
  border: 0; border-radius: 999px; background: var(--acc-grad); color: #fff;
  font-size: 13.5px; font-weight: 800; padding: 12px 20px; position: relative; z-index: 1;
  box-shadow: 0 8px 20px rgba(232, 56, 13, .45); text-transform: uppercase; letter-spacing: .4px;
}
.promo-go:active { transform: scale(.95); }


.rv-wrap { padding: 6px 0 0; }
.rv-wrap[hidden] { display: none; }
.rv-title { font-size: 15px; font-weight: 800; padding: 8px 16px; }
.rv-strip { display: flex; gap: 10px; overflow-x: auto; padding: 0 14px 6px; scrollbar-width: none; }
.rv-strip::-webkit-scrollbar { display: none; }
.rv-item { flex: none; width: 92px; background: var(--card); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-card); }
.rv-photo { width: 92px; height: 72px; object-fit: cover; display: block; }
.rv-price { font-size: 12px; font-weight: 800; color: var(--acc); padding: 6px 8px 8px; }
.orn-divider { padding: 14px 0 2px; text-align: center; }
.orn-divider i { display: inline-block; width: 64px; height: 4px; border-radius: 99px; background: var(--acc-grad); opacity: .7; }
.stats-band {
  display: flex; margin: 12px 14px 0; background: var(--chrome);
  border: 1px solid var(--line-soft); border-radius: var(--r-lg); padding: 18px 8px;
}
.stat { flex: 1; text-align: center; }
.stat + .stat { border-left: 1px solid var(--line-soft); }
.stat-num { font-size: 21px; font-weight: 900; color: var(--acc2); letter-spacing: -.4px; }
.stat-label { font-size: 11px; color: var(--muted); font-weight: 600; margin-top: 3px; }


.cat-list { display: flex; flex-direction: column; gap: 0; margin: 12px 14px; padding: 4px 0; background: var(--chrome); border: 1px solid var(--line-soft); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-card); }
.cat-list[hidden] { display: none !important; }
.cat-row, .hcat-row {
  display: flex; align-items: center; gap: 13px; width: 100%;
  background: transparent; border: none; border-bottom: 1px solid var(--line-soft); border-radius: 0; padding: 11px 14px;
  box-shadow: none; text-align: left; cursor: pointer;
  animation: cardIn .4s var(--ease) backwards; animation-delay: calc(var(--i, 0) * 40ms);
  transition: background .15s var(--ease);
}
.cat-row:last-child, .hcat-row:last-child { border-bottom: none; }
.cat-row:active, .hcat-row:active { background: var(--line-soft); }
.cat-ico {
  width: 44px; height: 44px; border-radius: 13px; flex: none;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .04));
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 5px 14px rgba(0, 0, 0, .25);
}
.cat-ico img { width: 24px; height: 24px; filter: brightness(0) invert(1); opacity: .94; }
.cat-name { font-size: 15px; font-weight: 800; color: var(--ink); flex: 1; }
.cat-count { font-size: 12px; color: var(--muted); font-weight: 600; }
.cat-row .cat-chev { color: var(--faint); font-size: 18px; }
.trend-ico { font-size: 22px; }
.hcat-list { margin-top: 2px; }

.more-seller { padding: 2px 16px 10px; }
.mfs-title { font-size: 16px; font-weight: 800; color: var(--ink); margin: 14px 0 10px; }
.mfs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
[data-theme="light"] .cat-ico {
  background: linear-gradient(135deg, #ffffff, #f1f1f5);
  border-color: var(--line);
  box-shadow: 0 3px 10px rgba(20, 20, 30, .07);
}
[data-theme="light"] .cat-ico img { filter: brightness(0); opacity: .75; }

.cat-subcats { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; }
.cat-subcats[hidden] { display: none !important; }
.subcat-head {
  display: flex; align-items: center; gap: 10px;
  padding: 2px 2px 8px;
}
.subcat-head .link-btn { flex: none; }
.subcat-head h3 { font-size: 17px; font-weight: 800; color: var(--ink); margin: 0; flex: 1; }
.subcat-head .subcat-total { font-size: 12px; color: var(--muted); font-weight: 600; }
.subcat-row {
  display: flex; align-items: center; gap: 12px; width: 100%;
  background: var(--chrome); border: 1px solid var(--line-soft); border-radius: 14px;
  padding: 12px 16px; text-align: left; cursor: pointer;
  box-shadow: var(--shadow-card);
  animation: cardIn .35s var(--ease) backwards; animation-delay: calc(var(--i, 0) * 35ms);
  transition: transform .15s var(--ease), border-color .15s;
}
.subcat-row:active { transform: scale(.98); border-color: var(--acc2); }
.subcat-row.all { border-color: var(--color-primary); background: linear-gradient(135deg, rgba(232,56,13,.12), rgba(232,56,13,.04)); }
.subcat-dot {
  width: 10px; height: 10px; border-radius: 50%; flex: none;
  background: var(--color-secondary);
  box-shadow: 0 0 8px rgba(28,171,85,.5);
}
.subcat-row.all .subcat-dot { background: var(--color-primary); box-shadow: 0 0 8px rgba(232,56,13,.5); }
.subcat-name { font-size: 14.5px; font-weight: 700; color: var(--ink); flex: 1; }
.subcat-count { font-size: 12px; color: var(--muted); font-weight: 600; }
.subcat-row .cat-chev { color: var(--faint); font-size: 18px; }
.results-head { padding: 4px 14px 10px; display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.results-head[hidden] { display: none !important; }

.sort-row { display: flex; gap: 8px; margin-top: 10px; }
.results-head .sort-row { flex-basis: 100%; }
.sort-pill {
  font-size: 12.5px; font-weight: 700; color: var(--muted); background: var(--chrome2);
  border: 1px solid var(--line-soft); border-radius: 999px; padding: 13px 16px; cursor: pointer;
  transition: background-color .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease), box-shadow .18s var(--ease); min-height: 36px;
}
.sort-pill.on { background: var(--acc); border-color: var(--acc); color: #fff; box-shadow: 0 4px 12px rgba(232,56,13,.35); }
.results-head h3 { font-size: 17px; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.crt-ico { width: 22px; height: 22px; flex: none; }
#cat-grid { padding-bottom: 8px; }


#detail-body { border-radius: 24px 24px 0 0; margin-top: -14px; position: relative; z-index: 2; }
.gal { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; background: #0d0d0f; }
.gal::-webkit-scrollbar { display: none; }
.gal-slide { flex: 0 0 100%; scroll-snap-align: center; position: relative; aspect-ratio: 1 / 1; }
.gal-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gal-count {
  position: absolute; right: 12px; bottom: 12px; background: rgba(0, 0, 0, .62); color: #fff;
  font-size: 11.5px; font-weight: 700; padding: 5px 11px; border-radius: 999px;
}
.gal-dots { display: flex; gap: 6px; justify-content: center; padding: 12px 0 4px; background: #0d0d0f; }
.gal-dots span { width: 7px; height: 7px; border-radius: 99px; background: rgba(255, 255, 255, .28); }
.gal-dots span.on { width: 22px; background: var(--acc2); }
.gal-thumbs { display: flex; gap: 8px; padding: 10px 14px; overflow-x: auto; background: var(--card); scrollbar-width: none; }
.gal-thumbs::-webkit-scrollbar { display: none; }
.gal-thumb { border: 2px solid transparent; border-radius: 12px; padding: 0; overflow: hidden; flex: none; background: none; }
.gal-thumb img { width: 58px; height: 58px; object-fit: cover; display: block; border-radius: 10px; }
.gal-thumb.on { border-color: var(--acc); }
.gal-zoom-hint { font-size: 11.5px; color: var(--card-mut); text-align: center; padding: 2px 0 6px; background: var(--card); overflow: hidden; max-height: 30px; animation: hintFade .6s var(--ease) 5s forwards; }
@keyframes hintFade { to { opacity: 0; max-height: 0; padding-top: 0; padding-bottom: 0; } }
.detail-photo { aspect-ratio: 1 / .86; display: flex; align-items: center; justify-content: center; font-size: 72px; }
.detail-body { padding: 18px 18px 26px; }
.detail-price { font-size: 27px; font-weight: 900; color: var(--acc); letter-spacing: -.6px; }
.detail-promoted { margin-bottom: 8px; }
.detail-title { font-size: 18px; font-weight: 800; color: var(--card-ink); margin-top: 8px; line-height: 1.4; letter-spacing: -.2px; }
.detail-meta { font-size: 13px; color: var(--card-mut); margin-top: 6px; font-weight: 600; }
.action-row { display: flex; gap: 10px; margin: 16px 0; }
.action-btn {
  flex: 1; border: 1.5px solid var(--line); background: var(--chrome); color: var(--ink);
  border-radius: 999px; padding: 12px; font-size: 14px; font-weight: 800;
}
.action-btn.wa { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.action-btn svg, .resp-badge svg, .safety h4 svg, .cta-trust svg { vertical-align: -2px; }
.detail-desc { font-size: 14.5px; line-height: 1.65; margin: 6px 0 16px; white-space: pre-wrap; overflow-wrap: anywhere; }
.safety {
  background: #fff8f4; border: 1px solid #f3ddd2; border-radius: var(--r-md);
  padding: 15px 16px; margin-bottom: 14px;
}
.safety h4 { font-size: 14px; font-weight: 800; color: #7a2d0e; margin-bottom: 8px; }
.safety ul { padding-left: 18px; font-size: 13px; color: #6d4a38; line-height: 1.7; }
[data-theme="dark"] .safety { background: rgba(232, 56, 13, .08); border-color: rgba(232, 56, 13, .30); }
[data-theme="dark"] .safety h4 { color: #f0b48f; }
[data-theme="dark"] .safety ul { color: #d9a582; }
.report-link { border: 0; background: none; color: var(--faint); font-size: 13px; font-weight: 600; padding: 14px 8px; display: block; margin: 0 auto; }
.chat-cta {
  position: sticky; bottom: 84px; display: flex; flex-direction: column; gap: 8px;
  padding: 10px 16px calc(12px + env(safe-area-inset-bottom));
  background: linear-gradient(transparent, var(--card) 32%); z-index: 5;
}
.chat-cta .cta-row { display: flex; gap: 10px; }
.cta-trust {
  font-size: 11.5px; font-weight: 600; color: var(--muted); text-align: center;
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.chat-cta .btn-primary, .chat-cta .btn-secondary { margin: 0; }
.offer-btn { border-color: var(--acc); color: var(--acc); }
.offer-btns { display: flex; gap: 8px; margin-top: 8px; }
.offer-btns button { padding: 13px 10px; }
.offer-status { font-size: 12.5px; font-weight: 700; padding: 8px 12px; border-radius: 10px; background: var(--acc-soft); color: var(--acc); display: inline-block; margin-top: 8px; }
.offer-status.accepted { background: rgba(28,171,85,.14); color: var(--green); }
.offer-status.declined { background: rgba(255,107,94,.14); color: #ff6b5e; }


.fs-viewer {
  position: fixed; inset: 0; z-index: 150; background: rgba(0, 0, 0, .94);
  display: flex; align-items: center; justify-content: center;
}
.fs-viewer img { max-width: 100%; max-height: 100%; object-fit: contain; }
.fs-close {
  position: absolute; top: calc(14px + env(safe-area-inset-top)); right: 14px; z-index: 2;
  width: 42px; height: 42px; border-radius: 50%; border: 0;
  background: rgba(255, 255, 255, .14); color: #fff; font-size: 20px;
}
.fs-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; }
.fs-prev { left: 10px; } .fs-next { right: 10px; }



.inbox-search { padding: 4px 16px 12px; }
.inbox-search input {
  width: 100%; border: 1px solid var(--line); background: var(--chrome2);
  border-radius: 999px; padding: 10px 16px; font-size: 14px; color: var(--ink);
}
.inbox-search input::placeholder { color: var(--faint); }
#inbox-list { display: flex; flex-direction: column; }
.convo {
  display: flex; gap: 12px; align-items: center; width: 100%; text-align: left;
  background: transparent; border: 0; padding: 10px 16px; color: var(--ink);
  position: relative;
}
.convo::after {
  content: ""; position: absolute; left: 80px; right: 0; bottom: 0;
  height: 1px; background: var(--line-soft);
}
.convo:last-child::after { display: none; }
.convo:active { background: var(--line-soft); }
.convo-ava {
  width: 56px; height: 56px; border-radius: 50%; flex: none; object-fit: cover;
  background: var(--acc-grad); color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 20px; position: relative;
}
.convo-ava .avatar-img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.convo-ava-ico { width: 30px; height: 30px; }
.convo-active-dot {
  position: absolute; right: 1px; bottom: 1px; width: 14px; height: 14px;
  border-radius: 50%; background: var(--color-secondary); border: 2.5px solid var(--bg);
}
.convo-main { flex: 1; min-width: 0; }
.convo-top { display: flex; align-items: baseline; gap: 8px; }
.convo-name { font-size: 15px; font-weight: 700; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.convo-time { font-size: 12px; color: var(--faint); flex: none; }
.convo-sub { display: block; font-size: 13.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.convo-prod-img { width: 22px; height: 22px; border-radius: 6px; object-fit: cover; vertical-align: -6px; margin-right: 6px; }
.convo-prod { display: block; font-size: 11.5px; color: var(--acc2); font-weight: 700; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.convo-unread {
  flex: none; min-width: 22px; height: 22px; border-radius: 999px; padding: 0 6px;
  background: var(--color-secondary); color: #fff; font-size: 12px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.thread-head { flex: 1; min-width: 0; }
.thread-sub { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.thread-msgs { display: flex; flex-direction: column; gap: 6px; padding: 16px 14px; min-height: 40vh; }

.msg.sys { align-self: center; background: var(--line-soft); color: var(--muted); font-size: 12.5px; border-radius: 999px; padding: 7px 14px; box-shadow: none; }

.msg.me .msg-time, .msg.out .msg-time { color: rgba(255,255,255,.75); }
.day-divider { align-self: center; background: var(--chrome); border: 1px solid var(--line-soft); color: var(--muted); font-size: 11.5px; font-weight: 700; border-radius: 999px; padding: 6px 14px; margin: 10px 0 6px; }
.msg + .msg.me, .msg + .msg.out { margin-top: 2px; }
.msg + .msg.them, .msg + .msg.in { margin-top: 2px; }
.quick-replies { display: flex; gap: 8px; overflow-x: auto; padding: 4px 14px 10px; scrollbar-width: none; }
.chat-safety {
  display: flex; align-items: center; gap: 10px; margin: 0 14px 10px; padding: 10px 14px;
  background: rgba(232,56,13,.08); border: 1px solid rgba(232,56,13,.25); border-radius: 12px;
  font-size: 12px; font-weight: 600; color: var(--ink); line-height: 1.5;
}
.chat-safety[hidden] { display: none; }
.chat-safety span { flex: 1; }
.chat-safety span > svg { vertical-align: -2px; margin-right: 2px; }
#chat-safety-x { border: 0; background: none; color: var(--faint); font-size: 18px; padding: 4px; }
.quick-replies::-webkit-scrollbar { display: none; }
.thread-form {
  position: sticky; bottom: 0; display: flex; gap: 8px; align-items: center;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: var(--chrome); border-top: 1px solid var(--line-soft); z-index: 5;
}
#thread-input {
  flex: 1; border: 0; outline: 0; border-radius: 999px; background: var(--input);
  color: var(--input-ink); padding: 13px 18px; font-size: 15px; min-width: 0;
}
.thread-form .btn-primary { width: auto; padding: 13px 24px; border-radius: 999px; }
.thread-attach {
  flex: none; width: 46px; height: 46px; border-radius: 50%; border: 0;
  background: var(--line-soft); color: var(--muted); font-size: 20px;
  display: flex; align-items: center; justify-content: center;
}


.store-hero { background: #101014; padding: 26px 18px 20px; display: flex; gap: 14px; align-items: center; }
.seller-ava, .store-hero .seller-ava {
  width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex: none;
  background: var(--acc-grad); color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 24px; font-weight: 900; border: 3px solid rgba(255, 255, 255, .2);
}
.store-hero .store-name { font-size: 18px; font-weight: 900; color: #fff; }
.store-hero .store-meta { font-size: 13px; color: rgba(255, 255, 255, .65); margin-top: 4px; }
.store-stats { display: flex; gap: 18px; padding: 16px 18px; background: var(--chrome); border-bottom: 1px solid var(--line-soft); }
.store-stat { text-align: center; }
.store-stat b { font-size: 17px; font-weight: 900; color: var(--acc2); display: block; }
.store-stat span { font-size: 11.5px; color: var(--muted); }
.seller-card {
  display: flex; gap: 12px; align-items: center; background: var(--card);
  border-radius: var(--r-md); padding: 14px; margin: 14px 0; box-shadow: var(--shadow-card);
}
.seller-main { flex: 1; min-width: 0; }
.seller-name { font-size: 14.5px; font-weight: 800; color: var(--card-ink); display: flex; align-items: center; gap: 6px; }
.seller-sub { font-size: 12.5px; color: var(--card-mut); margin-top: 2px; }
.seller-stats { font-size: 12px; color: var(--card-mut); margin-top: 4px; font-weight: 600; }


.me-top { background: #101014; padding: 26px 18px 22px; border-radius: 0 0 26px 26px; }
.me-top-main { display: flex; gap: 14px; align-items: center; }
.me-avatar {
  width: 68px; height: 68px; border-radius: 50%; object-fit: cover; flex: none;
  background: var(--acc-grad); color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 26px; font-weight: 900; border: 3px solid rgba(255, 255, 255, .2);
}
.me-avatar-sm { width: 40px; height: 40px; font-size: 16px; border-width: 2px; }
.me-top-info { flex: 1; min-width: 0; }
.me-name { font-size: 19px; font-weight: 900; color: #fff; letter-spacing: -.3px; }
.me-phone, .me-contact { font-size: 13px; color: rgba(255, 255, 255, .65); margin-top: 3px; }
.me-detail { font-size: 12.5px; color: rgba(255, 255, 255, .5); margin-top: 2px; }
.me-quickstats { display: flex; gap: 10px; margin-top: 16px; }
.me-qstat { flex: 1; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .1); border-radius: 14px; padding: 12px 8px; text-align: center; }
.me-qstat b { display: block; font-size: 17px; font-weight: 900; color: #fff; }
.me-qstat span { font-size: 10.5px; color: rgba(255, 255, 255, .6); font-weight: 600; }
.me-card { background: var(--chrome); border: 1px solid var(--line-soft); border-radius: var(--r-lg); margin: 14px; padding: 16px; }
.me-card-sm { padding: 12px 14px; margin: 10px 14px; }
.me-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 4px 14px; }
.me-tile {
  display: flex; align-items: center; gap: 11px; background: var(--chrome);
  border: 1px solid var(--line-soft); border-radius: var(--r-md); padding: 14px;
  color: var(--ink); font-size: 13.5px; font-weight: 700; text-align: left; width: 100%;
}
.me-tile-ico { width: 38px; height: 38px; border-radius: 12px; background: var(--acc-soft); color: var(--acc2); display: flex; align-items: center; justify-content: center; font-size: 18px; flex: none; }
.me-section { background: var(--chrome); border: 1px solid var(--line-soft); border-radius: var(--r-lg); margin: 12px 14px; overflow: hidden; }
.me-sec-head { display: flex; align-items: center; width: 100%; border: 0; background: none; color: var(--ink); padding: 15px 16px; font-size: 14.5px; font-weight: 800; text-align: left; }
.me-sec-chev { margin-left: auto; color: var(--faint); }
.me-sec-body { padding: 0 16px 16px; }
.me-actions { display: flex; gap: 10px; padding: 4px 14px; }
.me-actions .btn-primary, .me-actions .btn-secondary { margin: 0; }
.profile-form label { display: block; font-size: 13px; font-weight: 700; color: var(--muted); margin-bottom: 12px; }
.profile-form input, .profile-form textarea, .profile-form select {
  display: block; width: 100%; margin-top: 6px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--input); color: var(--input-ink); padding: 12px 14px; font-size: 15px; outline: 0;
}
.profile-form input:focus, .profile-form textarea:focus { border-color: var(--acc2); }
.verify-row { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); font-size: 14px; }
.verify-row:last-child { border-bottom: 0; }
.vname { font-weight: 800; } .vsub { font-size: 12.5px; color: var(--muted); }
.vinfo { margin-left: auto; }
.wa-verify { display: flex; gap: 10px; align-items: center; background: var(--chrome2); border-radius: var(--r-md); padding: 14px; margin-top: 10px; }
.trust-header { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px 10px; font-size: 12px; font-weight: 600; color: var(--ink); background: var(--chrome2); border: 1px solid var(--line-soft); border-radius: 999px; padding: 7px 14px; margin: 8px 12px; }
.trust-header svg { flex: none; }
.trust-header .trust-ico { color: var(--acc2); }
.trust-header .trust-bolt { display: inline-flex; align-items: center; gap: 3px; color: var(--acc2); }
.alert-row, .ss-row { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); font-size: 14px; }
.ss-q { flex: 1; font-weight: 600; }
.ss-new { display: flex; gap: 8px; margin-top: 12px; }
.ss-new input { flex: 1; border: 1px solid var(--line); border-radius: 12px; background: var(--input); color: var(--input-ink); padding: 11px 13px; outline: 0; min-width: 0; }
.ss-del { border: 0; background: none; color: #ff6b5e; font-size: 16px; padding: 13px 12px; }
.fav-strip { display: flex; gap: 10px; overflow-x: auto; padding: 4px 0; scrollbar-width: none; }
.fav-strip::-webkit-scrollbar { display: none; }
.fav-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.live-pill { display: inline-block; font-size: 11px; font-weight: 800; background: var(--acc-soft); color: var(--acc2); border-radius: 999px; padding: 4px 10px; }
[data-theme="light"] .live-pill { color: var(--acc); }

.me-mini {
  width: 36px; height: 36px; border-radius: 50%; flex: none; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: var(--acc-grad); color: #fff; font-size: 15px; font-weight: 900;
  border: 2px solid rgba(255, 255, 255, .22); cursor: pointer; padding: 0;
}
.me-mini img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.m-sub { font-size: 12px; color: var(--muted); }
.first-tag { font-size: 10.5px; font-weight: 800; background: var(--acc-grad); color: #fff; border-radius: 6px; padding: 3px 8px; text-transform: uppercase; letter-spacing: .6px; }
.qr-chip { display: inline-flex; align-items: center; gap: 6px; background: var(--chrome2); border-radius: 999px; padding: 7px 13px; font-size: 12.5px; font-weight: 700; }
.resp-badge { font-size: 11.5px; font-weight: 700; color: var(--green-deep); background: rgba(28, 171, 85, .12); border-radius: 999px; padding: 4px 10px; }


.settings-wrap { padding: 12px 14px; display: flex; flex-direction: column; gap: 12px; }
.settings-group { background: var(--chrome); border: 1px solid var(--line-soft); border-radius: var(--r-lg); padding: 6px 16px; }
.settings-title { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 1.2px; color: var(--faint); padding: 12px 0 4px; }
.settings-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line-soft); font-size: 14.5px; font-weight: 600; }
.settings-row:last-child { border-bottom: 0; }
.settings-val { color: var(--muted); font-size: 13.5px; font-weight: 600; }
.settings-btn {
  display: block; width: 100%; text-align: left; border: 0; background: none;
  color: var(--ink); font-size: 14.5px; font-weight: 600; padding: 13px 0;
  border-bottom: 1px solid var(--line-soft);
}
.settings-btn:last-child { border-bottom: 0; }
.settings-logout { margin: 6px 0; border: 1.5px solid rgba(255, 107, 94, .4); }
.theme-row { display: flex; gap: 8px; }


.sell-form { padding: 14px; display: flex; flex-direction: column; gap: 13px; }
.sell-form label { display: block; font-size: 13px; font-weight: 700; color: var(--muted); }
.sell-form input, .sell-form select, .sell-form textarea {
  display: block; width: 100%; margin-top: 7px; border: 1px solid var(--line); border-radius: var(--r-md);
  background: var(--input); color: var(--input-ink); padding: 14px; font-size: 15px; outline: 0;
}
.sell-form input:focus, .sell-form select:focus, .sell-form textarea:focus { border-color: var(--acc2); box-shadow: 0 0 0 3px var(--acc-soft); }
.sell-form textarea { resize: vertical; min-height: 96px; }
.photo-picker { background: var(--chrome); border: 1px dashed var(--line); border-radius: var(--r-lg); padding: 16px; }
.photo-add {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  border: 2px dashed var(--line); border-radius: var(--r-md); padding: 22px;
  font-size: 14px; font-weight: 800; color: var(--acc2); cursor: pointer; background: var(--chrome2);
}
.photo-add span { color: var(--faint); font-weight: 600; }
.photo-thumbs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.photo-thumb { position: relative; width: 72px; height: 72px; border-radius: 12px; overflow: hidden; }
.photo-thumb img { width: 100%; height: 100%; object-fit: cover; }
.photo-thumb .rm{position:absolute;top:2px;right:2px;width:28px;height:28px;border:0;background:rgba(0,0,0,.55);color:#fff;border-radius:50%;font-size:16px;line-height:1;z-index:1}
.photo-thumb .first-tag{position:absolute;left:4px;bottom:4px;z-index:1}
.photo-hint { font-size: 12px; color: var(--faint); margin-top: 10px; }
.complete-meter { background: var(--chrome); border: 1px solid var(--line-soft); border-radius: var(--r-md); padding: 14px 16px; }
.complete-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.complete-label { font-size: 13px; font-weight: 800; }
.complete-pct { font-size: 13px; font-weight: 900; color: var(--acc2); }
.complete-bar { height: 8px; border-radius: 99px; background: var(--line-soft); overflow: hidden; }
.complete-fill { height: 100%; border-radius: 99px; background: var(--acc-grad); transition: width .3s var(--ease); }
.complete-tip { font-size: 12.5px; color: var(--muted); margin-top: 8px; }


.modal-back {
  position: fixed; inset: 0; z-index: 130; background: var(--overlay);
  display: flex; align-items: flex-end; justify-content: center;
  animation: fadeIn .2s var(--ease);
}
.modal {
  background: var(--chrome); border-radius: 24px 24px 0 0; width: 100%; max-width: 480px;
  padding: 22px 20px calc(22px + env(safe-area-inset-bottom));
  animation: modalUp .3s var(--spring); max-height: 88vh; overflow-y: auto;
  border-top: 1px solid var(--line-soft);
}
@keyframes modalUp { from { transform: translateY(60px); opacity: 0; } }
.modal-actions { display: flex; gap: 10px; margin-top: 16px; }
.modal-actions .btn-primary, .modal-actions .btn-secondary, .modal-actions .btn-ghost { margin: 0; flex: 1; }
.modal-cancel { border: 1.5px solid var(--line); border-radius: 999px; background: var(--chrome); color: var(--ink); font-weight: 700; padding: 13px; }
.reason-list { display: flex; flex-direction: column; gap: 8px; margin: 12px 0; }
.reason-btn {
  border: 1.5px solid var(--line); background: var(--chrome2); color: var(--ink);
  border-radius: 12px; padding: 13px; font-size: 14px; font-weight: 600; text-align: left;
}
.reason-btn.on { border-color: var(--acc2); background: var(--acc-soft); }
.m-input { box-sizing: border-box; border: 1.5px solid var(--line); background: var(--chrome2); color: var(--ink); border-radius: 12px; padding: 12px; font-size: 14px; font-family: inherit; resize: vertical; }
.m-input::placeholder { color: var(--muted); }
.ping-actions { display: flex; gap: 8px; margin-top: 10px; }
.chat-cta-row { display: flex; gap: 10px; }
.tag {
  display: inline-block; font-size: 11px; font-weight: 800; padding: 5px 11px;
  border-radius: 999px; background: var(--chrome2); color: var(--muted); text-transform: uppercase; letter-spacing: .6px;
}
.acc { color: var(--acc2); font-weight: 800; }
.rm { color: #ff6b5e; }
.avatar-img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.me-avatar-btn { border: 0; background: none; padding: 12px 8px; color: rgba(255,255,255,.85); }
.mpill{display:inline-block;padding:4px 10px;border-radius:999px;font-size:12px;font-weight:600}
.mpill-pending{background:#fef3c7;color:#92400e}
.mpill-rejected{background:#fee2e2;color:#991b1b}
.mpill-sold{background:#e5e7eb;color:#374151}
.mpill-featured{background:#fef3c7;color:#92400e;font-weight:700;margin-left:8px}
[data-theme="dark"] .mpill-pending,[data-theme="dark"] .mpill-featured{background:rgba(251,191,36,.16);color:#fcd34d}
[data-theme="dark"] .mpill-rejected{background:rgba(255,107,94,.16);color:#ff8a7a}
[data-theme="dark"] .mpill-sold{background:rgba(255,255,255,.12);color:#e5e7eb}



#bottomnav {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 480px; z-index: 80;
  display: flex; align-items: flex-end;
  background: var(--nav-bg); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-top: 1px solid var(--line-soft);
  padding: 8px 6px calc(10px + env(safe-area-inset-bottom));
}
.nav-btn {
  flex: 1; border: 0; background: none; color: var(--faint);
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  font-size: 10.5px; font-weight: 700; padding: 6px 2px; position: relative;
  transition: transform .15s var(--ease);
}
.nav-btn:active { transform: scale(.94); }
.nav-ico { font-size: 22px; line-height: 1; }
.nav-ico svg { display: block; }
#bottomnav .nav-btn.active { color: var(--acc2); }
.nav-badge {
  position: absolute; top: 2px; right: calc(50% - 20px); min-width: 18px; height: 18px;
  border-radius: 999px; background: var(--acc-grad); color: #fff;
  font-size: 10.5px; font-weight: 800; display: flex; align-items: center; justify-content: center;
  padding: 0 5px; font-style: normal;
}
.nav-sell { overflow: visible; }
.nav-sell-plus {
  width: 58px; height: 58px; border-radius: 50%; background: var(--acc-grad); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 30px; font-weight: 300;
  margin-top: -28px; box-shadow: 0 10px 26px rgba(232, 56, 13, .5);
  border: 4px solid var(--bg); transition: transform .18s var(--spring);
}
.nav-sell:active .nav-sell-plus { transform: scale(.9); }
.nav-sell span:last-child { color: var(--acc2); font-size: 10.5px; font-weight: 800; }


[data-theme="light"] .topbar { background: #fff; }
[data-theme="light"] .brand-logo { filter: none; }
[data-theme="light"] .sz-tagline { color: var(--acc); }
[data-theme="light"] #home-search { box-shadow: inset 0 1px 4px rgba(20, 20, 30, .07); }
[data-theme="light"] .hero { box-shadow: 0 14px 34px rgba(20, 20, 30, .22); }
[data-theme="light"] .promo-strip { box-shadow: 0 12px 30px rgba(232, 56, 13, .18); }
[data-theme="light"] .toast { background: #17171b; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
.selfie-light.good { background: rgba(28, 171, 85, .9); }
.selfie-light.bad { background: rgba(200, 40, 30, .9); }


.topbar {
  background: linear-gradient(180deg, var(--chrome2), var(--chrome));
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 12px rgba(0, 0, 0, .18);
}
.screen { background: var(--bg); }
#bottomnav {
  background: var(--nav-bg);
  border-top: 1px solid var(--line);
  box-shadow: 0 -4px 18px rgba(0, 0, 0, .25);
}
.section-head, .section-head-premium, .results-head {
  border-bottom: 1px solid var(--line-soft);
  padding-bottom: 10px; margin-bottom: 12px;
}
.me-section, .settings-group, .cat-row, .thread-form {
  border: 1px solid var(--line-soft);
}
.me-section { background: var(--chrome); border-radius: var(--r-md); }
.settings-group {
  background: var(--chrome); border-radius: var(--r-md);
  padding: 4px 14px; margin-bottom: 14px;
}
.grid { gap: 12px; }
.search-row { background: var(--chrome); border-bottom: 1px solid var(--line-soft); }
.filter-bar { border-bottom: 1px solid var(--line-soft); }
.detail-body, .seller-body, .me-card {
  background: var(--chrome); border: 1px solid var(--line-soft); border-radius: var(--r-md);
}

#tab-veil {
  position: fixed; inset: 0; z-index: 300; background: var(--bg);
  opacity: 0; pointer-events: none; transition: opacity .22s var(--ease);
}
#tab-veil.show { opacity: 1; pointer-events: auto; }
.tab-veil-bar {
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary), var(--color-primary));
  background-size: 200% 100%; animation: veilbar 1s linear infinite;
}
@keyframes veilbar { to { background-position: 200% 0; } }
.tab-veil-skel { padding: 84px 16px 16px; display: grid; gap: 12px; }
.tab-veil-skel i {
  display: block; height: 88px; border-radius: 14px;
  background: linear-gradient(100deg, var(--chrome2) 40%, var(--line) 50%, var(--chrome2) 60%);
  background-size: 200% 100%; animation: shimmer 1.1s infinite;
}
.tab-veil-skel i:nth-child(2) { height: 64px; }
.tab-veil-skel i:nth-child(3) { height: 120px; }
@keyframes shimmer { to { background-position: -200% 0; } }




.msg-day {
  text-align: center; margin: 14px 0 10px;
}
.msg-day::before, .msg-day::after { content: ""; }
.msg-day {
  display: block; font-size: 11px; font-weight: 700; color: var(--muted);
  background: var(--chrome2); border: 1px solid var(--line-soft);
  border-radius: 999px; padding: 5px 14px; width: max-content; margin: 14px auto 10px;
}


:focus-visible {
  outline: 2px solid var(--acc2); outline-offset: 2px; border-radius: 6px;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; scroll-behavior: auto !important;
  }
}




#screen-thread.wa-thread.active {
  display: flex; flex-direction: column; position: fixed; inset: 0;
  width: 100%; height: 100dvh; z-index: 55;
  min-height: 100dvh; max-height: 100dvh;
  padding-bottom: 0 !important; overflow: hidden;
}
#screen-thread.wa-thread {
  background-color: #0b141a;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240' viewBox='0 0 240 240'%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' opacity='0.10'%3E%3Cg transform=%22translate(28 18) scale(1.05)%22%3E%3Cpath d=%22M5 11l1.5-4.5A2 2 0 0 1 8.4 5h7.2a2 2 0 0 1 1.9 1.5L19 11%22/%3E%3Crect x=%223.5%22 y=%2211%22 width=%2217%22 height=%225.5%22 rx=%221.5%22/%3E%3Ccircle cx=%227.5%22 cy=%2216.5%22 r=%221.8%22/%3E%3Ccircle cx=%2216.5%22 cy=%2216.5%22 r=%221.8%22/%3E%3Cpath d=%22M9.3 16.5h5.4%22/%3E%3C/g%3E%3Cg transform=%22translate(148 36) scale(0.95)%22%3E%3Crect x=%227%22 y=%222.5%22 width=%2210%22 height=%2219%22 rx=%222.5%22/%3E%3Cpath d=%22M10.5 5h3%22/%3E%3Ccircle cx=%2212%22 cy=%2218.5%22 r=%221%22 fill=%22%23fff%22 stroke=%22none%22/%3E%3C/g%3E%3Cg transform=%22translate(66 108) scale(1.1)%22%3E%3Cpath d=%22M9 3.5L4 6l2 4 2-1v11.5h8V9l2 1 2-4-5-2.5a3 3 0 0 1-6 0z%22/%3E%3Cpath d=%22M9 12h6%22/%3E%3C/g%3E%3Cg transform=%22translate(176 128) scale(1.0)%22%3E%3Cpath d=%22M4 16.5a8 8 0 0 1 16 0%22/%3E%3Cpath d=%22M2.5 19.5h19%22/%3E%3Cpath d=%22M12 8.5v-1%22/%3E%3Ccircle cx=%2212%22 cy=%225.8%22 r=%221%22/%3E%3C/g%3E%3Cg transform=%22translate(18 182) scale(0.95)%22%3E%3Cpath d=%22M12 21v-7%22/%3E%3Cpath d=%22M12 13c0-3.5-2.8-5.5-7-5.5 0 4 2.3 6.5 7 5.5z%22/%3E%3Cpath d=%22M12 10c0-3.2 2.3-5 6.5-5 0 3.8-2.3 6-6.5 5z%22/%3E%3Cpath d=%22M5 21h14%22/%3E%3C/g%3E%3Cg transform=%22translate(116 192) scale(1.05)%22%3E%3Crect x=%223%22 y=%224.5%22 width=%2218%22 height=%2212%22 rx=%222%22/%3E%3Cpath d=%22M9 20.5h6M12 16.5v4%22/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}


.wa-header {
  display: flex; align-items: center; gap: 4px;
  padding: 8px 8px 8px 4px; flex: none; z-index: 10;
  box-shadow: 0 1px 3px rgba(0,0,0,.25);
}
.wa-header { background: #1f2c34; color: #e9edef; }

.wa-back {
  border: 0; background: none; cursor: pointer;
  font-size: 30px; line-height: 1; padding: 4px 8px;
  color: inherit; opacity: .85;
}
.wa-avatar-wrap {
  position: relative; width: 40px; height: 40px; flex: none;
  border-radius: 50%; overflow: hidden; background: #8696a0;
}
.wa-avatar { width: 100%; height: 100%; object-fit: cover; display: block; }
.wa-avatar[hidden] { display: none; }
.wa-avatar-fallback {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 700; color: #fff; background: #00a884;
}
.wa-avatar-fallback[hidden] { display: none; }
.wa-header .thread-head { flex: 1; min-width: 0; }
.wa-name {
  font-size: 16px; font-weight: 600; margin: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.wa-status {
  font-size: 12.5px; margin: 1px 0 0; opacity: .75;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.wa-header .icon-btn { opacity: .85; }
.wa-call { text-decoration: none; }
.wa-call, .wa-video, .wa-menu { color: inherit; }


.wa-product-strip {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 14px; flex: none; cursor: pointer;
  border-bottom: 1px solid rgba(0,0,0,.12);
}
.wa-product-strip[hidden] { display: none; }
.wa-product-strip { background: rgba(31,44,52,.92); color: #e9edef; }

.wa-product-img {
  width: 42px; height: 42px; border-radius: 8px; object-fit: cover; flex: none;
  background: #8696a0;
}
.wa-product-info { min-width: 0; flex: 1; }
.wa-product-title {
  font-size: 13.5px; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.wa-product-price { font-size: 12.5px; font-weight: 700; color: #00a884; margin-top: 1px; }


.wa-thread .thread-msgs {
  flex: 1; overflow-y: auto; min-height: 0;
  padding: 12px 14px 8px; gap: 3px;
  background: transparent;
}
.wa-thread .trust-header { margin: 10px 14px 0; }


.wa-thread .msg {
  max-width: 80%; padding: 7px 9px 6px 10px;
  font-size: 14.5px; line-height: 1.45;
  box-shadow: 0 1px 1px rgba(0,0,0,.25);
  border-radius: 8px; position: relative;
}
.wa-thread .msg.them,
.wa-thread .msg.in {
  align-self: flex-start; background: #1f2c34; color: #e9edef;
  border-top-left-radius: 0; border: 0;
}
.wa-thread .msg.me,
.wa-thread .msg.out {
  align-self: flex-end; background: #005c4b; color: #e9edef;
  border-top-right-radius: 0; border: 0;
}

.wa-thread .msg.them::before, .wa-thread .msg.in::before {
  content: ""; position: absolute; top: 0; left: -8px;
  border: 4px solid transparent;
}
.wa-thread .msg.them::before { border-top-color: #1f2c34; border-right-color: #1f2c34; }

.wa-thread .msg.me::before, .wa-thread .msg.out::before {
  content: ""; position: absolute; top: 0; right: -8px;
  border: 4px solid transparent;
}
.wa-thread .msg.me::before { border-top-color: #005c4b; border-left-color: #005c4b; }


.wa-thread .msg + .msg.me, .wa-thread .msg + .msg.out,
.wa-thread .msg + .msg.them, .wa-thread .msg + .msg.in { margin-top: 2px; }

.wa-thread .msg-time {
  display: inline; float: right; font-size: 10.5px; font-weight: 400;
  opacity: .7; margin: 8px 0 0 8px; text-align: right;
}
.wa-thread .msg.me .msg-time, .wa-thread .msg.out .msg-time { color: inherit; }


.wa-thread .msg-day {
  background: #1f2c34; color: #ffd279; border: 0;
  font-size: 11.5px; font-weight: 500; text-transform: uppercase; letter-spacing: .4px;
  padding: 6px 14px; box-shadow: 0 1px 1px rgba(0,0,0,.25);
}



.wa-thread .msg.sys {
  background: #1f2c34; color: #ffd279; border: 0; font-size: 12px;
  max-width: 92%;
}



.wa-thread .quick-replies { padding: 6px 12px 8px; background: transparent; }
.wa-thread .quick-replies button {
  border: 1.5px solid #00a884; color: #00a884; background: transparent;
  border-radius: 999px; padding: 8px 16px; font-size: 13px; font-weight: 600;
  white-space: nowrap;
}



.wa-thread .chat-safety { margin: 8px 14px; }


.wa-thread .thread-form.wa-inputbar {
  position: static; flex: none;
  background: transparent; border: 0; padding: 6px 8px calc(8px + env(safe-area-inset-bottom));
  display: flex; align-items: flex-end; gap: 6px;
}
.wa-inputbar .wa-attach {
  width: 44px; height: 44px; flex: none; border-radius: 50%;
  background: transparent; color: #8696a0; font-size: 24px;
  display: flex; align-items: center; justify-content: center; border: 0;
}
.wa-inputbar #thread-input {
  flex: 1; border-radius: 24px; padding: 12px 16px; font-size: 15.5px;
  min-height: 44px;
}
.wa-inputbar #thread-input { background: #1f2c34; color: #e9edef; }
.wa-inputbar #thread-input::placeholder { color: #8696a0; }

.wa-inputbar .wa-camera {
  width: 44px; height: 44px; flex: none; border: 0; background: transparent;
  color: #8696a0; display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
}
.wa-inputbar .wa-send {
  width: 48px; height: 48px; flex: none; border: 0; border-radius: 50%;
  background: #00a884; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,.3);
}
.wa-inputbar .wa-send:active { transform: scale(.94); }


.wa-thread .vtick, .vtick.wa-fixed {
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px; border-radius: 50%;
  font-size: 11px; font-weight: 800; line-height: 1;
  vertical-align: -3px; margin-right: 4px;
}
.vtick.wa-silver { background: linear-gradient(135deg,#dfe5ea,#9fb0bd); color: #1f2c34; }
.vtick.wa-gold { background: linear-gradient(135deg,#ffe08a,#d4a017); color: #3a2c00; }
.vtick.wa-bronze { background: linear-gradient(135deg,#f0b08a,#a05a2c); color: #fff; }
.wa-verified-label {
  font-size: 11px; font-weight: 800; letter-spacing: 1.2px;
  color: #8696a0; text-transform: uppercase;
}





.convo-skel { display: grid; gap: 12px; padding: 14px 16px; }
.convo-skel i {
  display: block; height: 72px; border-radius: 16px;
  background: linear-gradient(100deg, var(--chrome2) 40%, var(--line) 50%, var(--chrome2) 60%);
  background-size: 200% 100%; animation: shimmer 1.1s infinite;
}

#offer-list .convo-skel { padding: 10px 0 4px; gap: 10px; }
#offer-list .convo-skel i { height: 42px; border-radius: 12px; }

#cat-list .convo-skel { padding: 12px 14px; gap: 10px; }
#cat-list .convo-skel i { height: 58px; border-radius: 14px; }

#screen-inbox { min-height: 0; padding-bottom: 84px; }
#screen-inbox #inbox-list { padding-bottom: 0; }
#screen-inbox #inbox-list:empty { display: none; }

#screen-me { min-height: 0; padding-bottom: 84px; }
#screen-me #me-body { padding-bottom: 0; }


.wa-inbox-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px 10px;
  background: linear-gradient(180deg, rgba(0,168,132,.10), transparent 90%);
  border-bottom: 1px solid var(--line-soft);
}
.wa-inbox-head .page-title {
  font-size: 22px; font-weight: 800; letter-spacing: -.3px; margin: 0;
}
.wa-inbox-head .inbox-count {
  font-size: 12px; font-weight: 800; color: #fff;
  background: var(--color-secondary); border-radius: 999px;
  padding: 3px 10px; margin-left: 8px; vertical-align: 3px;
}
.wa-inbox-head .inbox-count[hidden] { display: none; }


#screen-inbox {
  background-image:
    radial-gradient(120% 40% at 50% 0%, rgba(0,168,132,.07), transparent 70%),
    radial-gradient(100% 30% at 50% 100%, rgba(232,56,13,.05), transparent 70%);
}


#inbox-list .convo {
  padding: 12px 16px; gap: 14px; border-radius: 0;
  transition: background .15s var(--ease);
}
#inbox-list .convo:hover { background: rgba(255,255,255,.02); }
.convo-ava {
  width: 60px; height: 60px; font-size: 22px;
  border: 2px solid var(--line-soft);
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
}
.convo.has-unread .convo-ava {
  border-color: var(--color-secondary);
  box-shadow: 0 0 0 2px rgba(28,171,85,.25), 0 2px 8px rgba(0,0,0,.25);
}
.convo-top { align-items: center; }
.convo-name { font-size: 16px; font-weight: 800; letter-spacing: -.2px; }
.convo-time { font-size: 12px; font-weight: 600; }
.convo.has-unread .convo-time { color: var(--color-secondary); font-weight: 800; }
.convo-sub { font-size: 14px; margin-top: 3px; }
.convo.has-unread .convo-sub { color: var(--ink); font-weight: 600; }
.convo-prod {
  display: flex; align-items: center; gap: 0;
  margin-top: 5px; padding: 4px 8px 4px 4px;
  background: rgba(0,168,132,.08); border: 1px solid rgba(0,168,132,.18);
  border-radius: 10px; width: fit-content; max-width: 100%;
  font-size: 12px;
}
.convo-prod-img {
  width: 26px; height: 26px; border-radius: 7px;
  vertical-align: 0; margin-right: 7px; flex: none;
}
.convo-unread {
  background: var(--color-secondary);
  box-shadow: 0 2px 6px rgba(28,171,85,.4);
}

#inbox-list .convo::after { left: 90px; background: var(--line-soft); opacity: .7; }


.inbox-search { padding: 10px 16px 12px; }
.inbox-search input {
  background: var(--chrome2);
  border: 1px solid var(--line-soft);
  box-shadow: inset 0 1px 3px rgba(0,0,0,.15);
  padding: 11px 18px; font-size: 14.5px;
}
.inbox-search input:focus {
  border-color: var(--color-secondary);
  box-shadow: 0 0 0 3px rgba(28,171,85,.15);
  outline: none;
}


#inbox-empty {
  padding: 56px 32px;
  background: radial-gradient(80% 50% at 50% 30%, rgba(0,168,132,.08), transparent 70%);
  border-radius: 20px; margin: 12px 16px;
}
#inbox-empty .empty-illus { width: 120px; height: 120px; }



.wa-header {
  background: linear-gradient(180deg, #24353f, #1f2c34);
  border-bottom: 1px solid rgba(0,168,132,.15);
  color: #e9edef;
}

.wa-name { font-weight: 700; }



.wa-thread .msg {
  box-shadow: 0 1px 2px rgba(0,0,0,.3), 0 2px 8px rgba(0,0,0,.12);
}
.wa-thread .msg.me,
.wa-thread .msg.out {
  background: linear-gradient(135deg, #006653, #005c4b);
}

.wa-thread .msg-day {
  box-shadow: 0 1px 2px rgba(0,0,0,.3);
  border: 1px solid rgba(255,255,255,.06);
}

.wa-thread .wa-inputbar {
  background: rgba(31,44,52,.96);
  border-top: 1px solid rgba(0,168,132,.12);
  box-shadow: 0 -4px 16px rgba(0,0,0,.25);
  padding: 8px 10px calc(10px + env(safe-area-inset-bottom));
}

.wa-thread .wa-send {
  background: linear-gradient(135deg, #00c795, #00a884);
  box-shadow: 0 2px 8px rgba(0,168,132,.45);
  transition: transform .12s var(--ease);
}
.wa-thread .wa-send:active { transform: scale(.92); }
.wa-thread .wa-send:disabled { opacity:.45; cursor:not-allowed; }

.wa-product-strip { border-bottom: 1px solid rgba(0,168,132,.14); }
.wa-product-img { box-shadow: 0 2px 6px rgba(0,0,0,.25); }


.msg .msg-img { display: block; max-width: 230px; width: 100%; border-radius: 12px; cursor: pointer; }
.msg.me .msg-img, .msg.out .msg-img { margin: 2px 0; }
.pend-wrap { position: relative; display: block; }
.pend-spin { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.35); border-radius: 12px; }
.pend-spin::after { content: ""; width: 30px; height: 30px; border-radius: 50%; border: 3px solid rgba(255,255,255,.35); border-top-color: #fff; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.msg-failed { opacity: .75; }
.retry-link { background: none; border: 0; color: #ff8a75; font-weight: 700; cursor: pointer; font-size: 10.5px; }


.img-viewer { position: fixed; inset: 0; z-index: 9999; background: rgba(0,0,0,.94); display: flex; align-items: center; justify-content: center; }
.img-viewer[hidden] { display: none; }
.img-viewer img { max-width: 100%; max-height: 100%; object-fit: contain; }
.img-viewer-x { position: absolute; top: 14px; right: 16px; width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(255,255,255,.14); color: #fff; font-size: 26px; cursor: pointer; }


.wa-menu-pop { position: absolute; top: 56px; right: 10px; z-index: 60; min-width: 210px; background: var(--chrome, #1f2c34); border: 1px solid var(--line-soft, rgba(255,255,255,.12)); border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.45); overflow: hidden; }
.wa-menu-pop[hidden] { display: none; }
.wa-menu-pop button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 13px 16px; border: 0; background: none; color: var(--ink, #e9edef); font-size: 14.5px; cursor: pointer; text-align: left; }
.wa-menu-pop button:active { background: rgba(255,255,255,.07); }
.wa-menu-pop .mi { width: 22px; text-align: center; }
.wa-menu-pop .mi svg { display: block; margin: 0 auto; }


.thread-blocked { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 10px 14px; background: rgba(232,56,13,.12); border-top: 1px solid rgba(232,56,13,.35); color: var(--ink, #e9edef); font-size: 13.5px; flex: none; }
.thread-blocked[hidden] { display: none; }


.sheet-scrim { position: fixed; inset: 0; z-index: 9000; background: rgba(0,0,0,.55); display: flex; align-items: flex-end; justify-content: center; }
.sheet-scrim[hidden] { display: none; }
.sheet { width: 100%; max-width: 520px; max-height: 80vh; overflow-y: auto; background: var(--chrome, #1f2c34); border-radius: 20px 20px 0 0; padding: 8px 18px 26px; animation: sheetUp .25s var(--ease); }
@keyframes sheetUp { from { transform: translateY(40px); opacity: .5; } }
.sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; }
.sheet-head h3 { margin: 0; font-size: 17px; }
.sheet-x { width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(127,127,127,.18); color: inherit; font-size: 20px; cursor: pointer; }
.sheet-sub { color: var(--muted, #8696a0); font-size: 13.5px; margin: 0 0 12px; }
.reason-list button { display: block; width: 100%; text-align: left; padding: 14px 12px; margin-bottom: 8px; border-radius: 12px; border: 1px solid var(--line-soft, rgba(255,255,255,.12)); background: rgba(127,127,127,.08); color: inherit; font-size: 15px; cursor: pointer; }
.reason-list button:active { background: rgba(232,56,13,.15); }


.c-top { display: flex; gap: 14px; align-items: center; margin-bottom: 16px; }
.c-av { width: 64px; height: 64px; border-radius: 50%; overflow: hidden; background: #00a884; display: flex; align-items: center; justify-content: center; flex: none; }
.c-av img { width: 100%; height: 100%; object-fit: cover; }
.c-av-fb { color: #fff; font-size: 26px; font-weight: 800; }
.c-name { font-size: 18px; font-weight: 700; }
.c-sub { color: var(--muted, #8696a0); font-size: 13.5px; margin-top: 2px; }
.c-call { display: block; text-align: center; padding: 13px; border-radius: 12px; background: #00a884; color: #fff; font-weight: 700; text-decoration: none; margin-bottom: 14px; }
.c-call svg { vertical-align: -3px; }
.c-note { font-size: 12.5px; color: var(--muted, #8696a0); line-height: 1.5; }


.theme-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding: 6px 0 10px; }
.theme-sw { position: relative; aspect-ratio: 1; border-radius: 14px; border: 2px solid transparent; cursor: pointer; overflow: hidden; }
.theme-sw span { position: absolute; left: 0; right: 0; bottom: 0; font-size: 9.5px; font-weight: 700; padding: 8px 2px 5px; background: linear-gradient(transparent, rgba(0,0,0,.65)); color: #fff; }
.theme-sw.on { border-color: #1cab55; box-shadow: 0 0 0 2px rgba(28,171,85,.4); }


.msg-tick { display: inline-flex; vertical-align: -2px; margin-left: 4px; }
.msg-tick .tick { display: block; }
.tick-sending { color: rgba(255,255,255,.65); }
.tick-sent { color: #8696a0; }
.tick-deliv { color: #8696a0; }
.tick-seen { color: #53bdeb; }
.tick-failed { color: #ff5a5a; cursor: pointer; }
.msg.them .msg-tick { display: none; }
.msg-time .msg-tick { margin-left: 3px; }


.otp-boxes { display: flex; gap: 10px; justify-content: center; margin: 22px 0; }
.otp-boxes input {
  width: 48px; height: 56px; text-align: center; font-size: 24px; font-weight: 800;
  border: 2px solid #e5e7eb; border-radius: 14px; background: #fff; color: #111;
  outline: none; transition: border-color .15s, box-shadow .15s;
}
.otp-boxes input:focus { border-color: var(--green-deep, #1cab55); box-shadow: 0 0 0 3px rgba(28,171,85,.15); }
[data-theme="dark"] .otp-boxes input { background: #16181d; border-color: #2a2e36; color: #fff; }
[data-theme="dark"] #screen-otp .finora-title { color: var(--ink); }
[data-theme="dark"] #screen-otp .finora-sub { color: var(--muted); }
[data-theme="dark"] #screen-otp .finora-sub b { color: #fff; }
#otp-verify { width: 100%; }
#otp-resend:disabled { opacity: .55; cursor: default; }


.terms-check {
  display: flex; gap: 10px; align-items: flex-start; margin-top: 14px;
  font-size: 13px; color: #6b7280; line-height: 1.5; cursor: pointer;
}
.terms-check label { cursor: pointer; display: flex; }
.terms-check input { width: 18px; height: 18px; flex: none; margin-top: 1px; accent-color: #1cab55; cursor: pointer; }
.terms-check .link-btn { font-size: 13px; padding: 0; color: var(--green-deep, #1cab55); }
.auth-legal { text-align: center; font-size: 12px; color: #9ca3af; margin-top: 18px; }
.auth-legal .link-btn { font-size: 12px; padding: 0; }


.legal-doc { padding: 20px 20px 48px; max-width: 720px; margin: 0 auto; }
.legal-doc h3 { font-size: 16px; font-weight: 800; margin: 26px 0 10px; color: var(--ink); }
.legal-doc h3:first-of-type { margin-top: 14px; }
.legal-doc p { font-size: 14.5px; line-height: 1.7; color: var(--muted); margin: 0 0 12px; }
.legal-doc p b { color: var(--ink); }
.legal-meta { font-size: 12.5px; color: var(--faint); margin-bottom: 6px; }


#detail-body { background: var(--bg); }
.detail-title { color: var(--ink); }
.detail-meta { color: var(--muted); }
.detail-desc { color: var(--ink); }
.detail-sec-title { font-size: 15px; font-weight: 800; color: var(--ink); margin: 20px 0 2px; letter-spacing: -.2px; }
.chat-cta { background: var(--chrome); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(0, 0, 0, .16); bottom: 0; }



.home-search-top {
  position: sticky;
  top: calc(62px + env(safe-area-inset-top));
  z-index: 30;
  background: var(--bg);
}

#sell-subcategory:disabled {
  color: var(--faint);
  background: var(--chrome);
  opacity: .75;
}

.char-count { float: right; font-size: 11.5px; font-weight: 600; color: var(--faint); }
.field-hint { display: block; margin-top: 5px; font-size: 12px; font-weight: 400; color: var(--muted); }

.trend-clear {
  border: 0; background: none; color: var(--faint);
  font-size: 11.5px; font-weight: 700; text-transform: none; letter-spacing: 0;
  padding: 2px 6px; text-decoration: underline; text-underline-offset: 2px;
}
.trend-clear:active { color: var(--acc); }


html { background: var(--bg); overscroll-behavior-y: none; }
body { overscroll-behavior-y: none; }
.screen { box-sizing: border-box; min-height: 100dvh; }
#app { min-height: 100dvh; }


.chat-load { padding: 30px 16px; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.chat-load-bubbles { display: flex; flex-direction: column; gap: 9px; width: 100%; }
.cl-b { display: block; height: 36px; border-radius: 16px; background: linear-gradient(100deg, var(--chrome2) 40%, var(--line) 50%, var(--chrome2) 60%); background-size: 200% 100%; animation: clShimmer 1.15s linear infinite; }
.cl-b.them { align-self: flex-start; border-bottom-left-radius: 4px; }
.cl-b.me { align-self: flex-end; border-bottom-right-radius: 4px; }
.cl-b.w1 { width: 52%; } .cl-b.w2 { width: 68%; } .cl-b.w3 { width: 44%; }
@keyframes clShimmer { to { background-position: -200% 0; } }
.chat-load-dots { display: flex; gap: 5px; }
.chat-load-dots span { width: 7px; height: 7px; border-radius: 50%; background: var(--green); animation: clDot 1s ease-in-out infinite; }
.chat-load-dots span:nth-child(2) { animation-delay: .15s; }
.chat-load-dots span:nth-child(3) { animation-delay: .3s; }
@keyframes clDot { 0%, 60%, 100% { transform: translateY(0); opacity: .35; } 30% { transform: translateY(-5px); opacity: 1; } }
.chat-load-txt { font-size: 12.5px; color: var(--muted); letter-spacing: .02em; }
@media (prefers-reduced-motion: reduce) { .cl-b, .chat-load-dots span { animation: none; } }

.seo-h1{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}

#otp-back { display: block; width: 100%; margin-top: 14px; padding: 13px; border-radius: 14px; border: 2px solid #e5e7eb; background: transparent; color: var(--ink); font-size: 15px; font-weight: 700; cursor: pointer; }
[data-theme="dark"] #otp-back { border-color: #2a2e36; }


.gal-wrap{position:relative}
.gal-arrow{display:none;position:absolute;top:50%;transform:translateY(-50%);width:44px;height:44px;border-radius:50%;background:var(--card);color:var(--ink);border:1px solid var(--line);font-size:24px;line-height:1;z-index:5;cursor:pointer;box-shadow:0 2px 10px rgba(0,0,0,.18)}
.gal-prev{left:10px}
.gal-next{right:10px}
@media (hover:hover){.gal-arrow{display:flex;align-items:center;justify-content:center}}
.subcat-chip{display:inline-flex;align-items:center;gap:6px;margin:0 0 10px;min-height:44px;padding:8px 16px;border-radius:999px;border:1px solid var(--line);background:var(--card);color:var(--ink);font-size:13px;font-weight:600;cursor:pointer}
.subcat-chip:active{transform:scale(.97)}


.presence-dot{display:inline-block;width:8px;height:8px;border-radius:50%;background:var(--faint);margin-right:6px;vertical-align:1px;flex:none}
.presence-dot.on{background:#1cab55;box-shadow:0 0 0 3px rgba(28,171,85,.18)}
.presence-txt{font-weight:600}
#thread-sub .presence-dot{margin-right:5px}
.seller-pres{display:flex;align-items:center;font-size:12.5px;color:var(--muted);margin-top:5px;min-height:0}
.seller-pres[hidden]{display:none}
.store-pres{display:flex;align-items:center;justify-content:center;font-size:13px;color:var(--muted);margin:3px 0 7px}
.store-pres[hidden]{display:none}

#nm-note{position:fixed;top:calc(10px + env(safe-area-inset-top));left:12px;right:12px;max-width:480px;margin:0 auto;z-index:99995;background:var(--card);color:var(--ink);border:1px solid var(--line);border-radius:14px;padding:12px 14px;box-shadow:0 10px 30px rgba(0,0,0,.28);cursor:pointer;display:flex;flex-direction:column;gap:2px}
#nm-note b{font-size:13px}
#nm-note span{font-size:13px;color:var(--muted)}

.nm-offline{position:sticky;top:0;z-index:99990;background:#8a2b2b;color:#fff;font-size:13px;font-weight:600;text-align:center;padding:9px 12px}
.nm-offline.back{background:#1cab55}
.nm-offline[hidden]{display:none}
.upd-sec{font-size:12px;font-weight:800;letter-spacing:.6px;text-transform:uppercase;color:var(--muted);padding:16px 16px 8px}
.upd-rail{display:flex;gap:14px;overflow-x:auto;padding:2px 16px 10px;scrollbar-width:none}
.upd-rail::-webkit-scrollbar{display:none}
.upd-it{display:flex;flex-direction:column;align-items:center;gap:5px;min-width:62px;border:0;background:none;color:var(--ink);font-size:11px;padding:0}
.upd-c{width:58px;height:58px;border-radius:50%;padding:2.5px;background:var(--line-soft);position:relative}
.upd-c.unseen{background:conic-gradient(#00c795,#00a884,#e8380d,#00c795)}
.upd-in{width:100%;height:100%;border-radius:50%;overflow:hidden;background:var(--chrome2);display:flex;align-items:center;justify-content:center;font-weight:800;font-size:19px;color:var(--ink);border:2px solid var(--bg)}
.upd-in img{width:100%;height:100%;object-fit:cover}
.upd-mine-wrap{position:relative;display:inline-block;vertical-align:top}.upd-plus{position:absolute;left:calc(50% + 10px);top:44px;width:24px;height:24px;border-radius:50%;background:#00a884;color:#fff;font-size:17px;line-height:20px;text-align:center;border:2px solid var(--bg);cursor:pointer;padding:0}
.upd-nm{max-width:62px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#upd-listings{padding:0 12px 16px}
.follow-btn{border:1.5px solid #00a884;color:#00a884;background:transparent;border-radius:999px;padding:13px 24px;font-weight:700;font-size:14px}
.follow-btn.on{background:rgba(0,168,132,.14);border-color:transparent}
.block-btn{border:1.5px solid #e5484d;color:#e5484d;background:transparent;border-radius:999px;padding:13px 20px;font-weight:700;font-size:14px}
.block-btn.on{background:rgba(229,72,77,.12);border-color:transparent}
.block-btn.block-compact{padding:14px 14px;font-size:12.5px}
.block-btn.block-right{margin-left:auto}
[data-fbar]{display:flex;align-items:center;gap:12px;padding:10px 16px 2px}
[data-fbar] .fc{font-size:13px;color:var(--muted)}
#store-follow{padding:12px 16px 0}
#status-root{position:fixed;inset:0;z-index:2000;display:none}
#status-root.on{display:block}
.stv{position:absolute;inset:0;background:#000;display:flex;flex-direction:column}
.stv-segs{display:flex;gap:4px;padding:12px 10px 0}
.stv-seg{flex:1;height:3px;border-radius:2px;background:rgba(255,255,255,.32);overflow:hidden}
.stv-seg i{display:block;height:100%;width:0;background:#fff}
.stv-seg.done i{width:100%}
.stv-hd{display:flex;align-items:center;gap:10px;padding:10px 8px 10px 12px;color:#fff;position:relative;z-index:3}
.stv-av{width:38px;height:38px;border-radius:50%;overflow:hidden;background:#333;flex:none;display:flex;align-items:center;justify-content:center;font-weight:800}
.stv-av img{width:100%;height:100%;object-fit:cover}
.stv-nm{font-weight:700;font-size:14px}
.stv-tm{font-size:12px;opacity:.65}
.stv-x{margin-left:auto;background:none;border:0;color:#fff;font-size:26px;line-height:1;padding:8px}
.stv-md{flex:1;position:relative;overflow:hidden;display:flex;align-items:center;justify-content:center}
.stv-md img,.stv-md video{max-width:100%;max-height:100%;object-fit:contain}
.stv-tap{position:absolute;top:0;bottom:0;width:35%;z-index:2}
.stv-tap.l{left:0}.stv-tap.r{right:0}
.stv-cp{padding:10px 18px calc(16px + env(safe-area-inset-bottom));color:#fff;font-size:14px;text-align:center}
.stv-del{align-self:center;background:rgba(255,255,255,.16);border:0;color:#fff;border-radius:999px;padding:13px 20px;font-size:13px;margin-bottom:calc(16px + env(safe-area-inset-bottom));position:relative;z-index:3}.stv-del.arm{background:#b3261e;color:#fff;font-weight:700}.stv-del:disabled{opacity:.65}
.stc{position:absolute;inset:0;background:rgba(0,0,0,.94);display:flex;flex-direction:column;padding:calc(14px + env(safe-area-inset-top)) 16px 16px;color:#fff;overflow-y:auto}
.stc h3{font-size:17px;margin:2px 0 4px}
.stc p{font-size:13px;opacity:.7;margin:0 0 4px}
.stc-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:10px 0}
.stc-cl{position:relative;aspect-ratio:3/4;border-radius:10px;overflow:hidden;background:#1f2c34}
.stc-cl img,.stc-cl video{width:100%;height:100%;object-fit:cover}
.stc-cl button{position:absolute;top:4px;right:4px;background:rgba(0,0,0,.62);color:#fff;border:0;border-radius:50%;width:24px;height:24px;font-size:13px}
.stc-cap{background:#1f2c34;border:0;border-radius:12px;color:#fff;padding:13px 14px;font-size:15px;width:100%;box-sizing:border-box}
.stc-bt{display:flex;gap:10px;margin-top:12px}
.stc-post{flex:1;background:#00a884;border:0;border-radius:12px;color:#fff;font-weight:800;padding:14px;font-size:15px}
.stc-no{background:none;border:0;color:#fff;padding:14px;font-size:15px}
.stc-bar{height:4px;background:#1f2c34;border-radius:2px;overflow:hidden;margin-top:12px;display:none}
.stc-bar.on{display:block}.stc-bar i{display:block;height:100%;width:0;background:#00a884;transition:width .2s}

#nm-loadbar{position:fixed;top:0;left:0;right:0;height:3px;z-index:99999;pointer-events:none;opacity:0;transition:opacity .25s}
#nm-loadbar.on{opacity:1}
#nm-loadbar i{display:block;height:100%;width:30%;background:linear-gradient(90deg,#e8380d,#ff7a3d);animation:nm-lb 1.1s ease-in-out infinite}
#nm-loadbar.done i{animation:none;width:100%}
@keyframes nm-lb{0%{margin-left:-30%}100%{margin-left:100%}}
.avatar-btn{position:relative;overflow:hidden;padding:0}
.avatar-btn .avatar-img{width:30px;height:30px;border-radius:50%;object-fit:cover;display:block}
.avatar-btn .avatar-fb{width:30px;height:30px;border-radius:50%;background:var(--chrome2);color:var(--ink);display:flex;align-items:center;justify-content:center;font-weight:800;font-size:15px}
.avatar-btn .avatar-img[hidden],.avatar-btn .avatar-fb[hidden]{display:none}
.me-sec{margin:12px 16px 0;border-top:1px solid var(--line-soft)}
.me-row{display:flex;justify-content:space-between;width:100%;border:0;background:none;color:var(--ink);padding:14px 2px;font-size:15px;font-weight:600;font-family:inherit;cursor:pointer}
.me-row-sub{color:var(--muted);font-weight:400;font-size:13px}
.me-b-row{display:flex;align-items:center;gap:10px;padding:8px 2px}
.me-b-avw{width:32px;height:32px;border-radius:50%;background:var(--chrome2);flex:none;display:flex;align-items:center;justify-content:center;font-weight:700;overflow:hidden;color:var(--ink)}
.me-b-avw img{width:100%;height:100%;object-fit:cover}
.me-b-nm{flex:1;font-size:14px}
.me-blocked-loading,.me-blocked-empty{padding:8px 2px;color:var(--muted);font-size:13px}
#detail-chat.is-blocked{background:var(--chrome2);color:var(--muted)}
#d-unblock{margin-left:8px}
.follow-btn.busy{opacity:.6;pointer-events:none}
html:has(#screen-thread.active){background:#0b141a}
html:has(#screen-thread.active[data-chat-theme="wa-light"]){background:#e5ddd5}
html:has(#screen-thread.active[data-chat-theme="sand"]){background:#e8dcc8}
#screen-thread{overscroll-behavior-y:none}
