/* =========================================================================
   iGram - dark neon gaming marketplace
   Mobile-first. All colours are design tokens, no hardcoded one-offs.
   ========================================================================= */

:root {
  --bg:            #08060f;
  --bg-2:          #0d0a1a;
  --surface:       rgba(255, 255, 255, .045);
  --surface-2:     rgba(255, 255, 255, .075);
  --stroke:        rgba(255, 255, 255, .10);
  --stroke-strong: rgba(255, 255, 255, .18);

  --text:          #f2f0ff;
  --muted:         #a09cc0;
  --dim:           #726e94;

  --neon:          #00e5ff;
  --neon-2:        #7b5cff;
  --hot:           #ff2d78;
  --lime:          #9dff4f;
  --warn:          #ffb84d;
  --danger:        #ff5470;
  --ok:            #2fe08a;

  --grad-brand: linear-gradient(110deg, var(--neon) 0%, var(--neon-2) 100%);
  --grad-soft:  linear-gradient(160deg, rgba(0,229,255,.08), rgba(123,92,255,.06));
  --ambient: rgba(123, 92, 255, .16);

  --r-sm: 8px;
  --r:    12px;
  --r-lg: 14px;
  --r-xl: 18px;

  --shadow:    0 6px 18px rgba(0, 0, 0, .35);
  --glow-neon: 0 0 0 1px rgba(0,229,255,.22);

  --head: 'Sora', system-ui, sans-serif;
  --body: 'Inter', system-ui, -apple-system, sans-serif;

  --nav-h: 66px;
  --wrap:  1120px;
}

/* Admin-selectable gaming palettes. The original neon look remains default. */
body[data-theme="ember"] {
  --bg: #0c0808; --bg-2: #170d0b; --surface: rgba(255,122,44,.055); --surface-2: rgba(255,122,44,.095);
  --stroke: rgba(255,172,92,.14); --stroke-strong: rgba(255,172,92,.25); --text: #fff4e8; --muted: #c6a991; --dim: #846f63;
  --neon: #ff9d35; --neon-2: #ff3d57; --hot: #ff315f; --lime: #d6ff55; --warn: #ffc15c;
  --grad-brand: linear-gradient(110deg, var(--neon), var(--neon-2)); --grad-soft: linear-gradient(160deg, rgba(255,157,53,.10), rgba(255,61,87,.07)); --ambient: rgba(255,61,87,.14);
}
body[data-theme="toxic"] {
  --bg: #050a07; --bg-2: #09150d; --surface: rgba(120,255,76,.05); --surface-2: rgba(120,255,76,.09);
  --stroke: rgba(151,255,114,.14); --stroke-strong: rgba(151,255,114,.26); --text: #f1ffed; --muted: #a6c39f; --dim: #698063;
  --neon: #71ff45; --neon-2: #00d9a6; --hot: #ff3d81; --lime: #caff54; --warn: #ffd05a;
  --grad-brand: linear-gradient(110deg, var(--neon), var(--neon-2)); --grad-soft: linear-gradient(160deg, rgba(113,255,69,.10), rgba(0,217,166,.07)); --ambient: rgba(0,217,166,.13);
}
body[data-theme="crimson"] {
  --bg: #0d0509; --bg-2: #180910; --surface: rgba(255,48,96,.05); --surface-2: rgba(255,48,96,.09);
  --stroke: rgba(255,108,138,.14); --stroke-strong: rgba(255,108,138,.26); --text: #fff0f4; --muted: #c7a0aa; --dim: #856771;
  --neon: #ff315f; --neon-2: #ff8a35; --hot: #ff315f; --lime: #a8ff62; --warn: #ffc15c;
  --grad-brand: linear-gradient(110deg, var(--neon), var(--neon-2)); --grad-soft: linear-gradient(160deg, rgba(255,49,95,.11), rgba(255,138,53,.06)); --ambient: rgba(255,49,95,.14);
}
body[data-theme="arctic"] {
  --bg: #050b0f; --bg-2: #09151c; --surface: rgba(87,221,255,.05); --surface-2: rgba(87,221,255,.09);
  --stroke: rgba(137,228,255,.14); --stroke-strong: rgba(137,228,255,.26); --text: #effbff; --muted: #9dbbc5; --dim: #637d87;
  --neon: #55dcff; --neon-2: #4d8dff; --hot: #ff4f91; --lime: #8dffcb; --warn: #ffd166;
  --grad-brand: linear-gradient(110deg, var(--neon), var(--neon-2)); --grad-soft: linear-gradient(160deg, rgba(85,220,255,.10), rgba(77,141,255,.07)); --ambient: rgba(77,141,255,.14);
}
body[data-theme="royal"] {
  --bg: #090710; --bg-2: #120d1c; --surface: rgba(192,125,255,.05); --surface-2: rgba(192,125,255,.09);
  --stroke: rgba(207,159,255,.14); --stroke-strong: rgba(207,159,255,.26); --text: #fbf3ff; --muted: #b9a4c5; --dim: #796a83;
  --neon: #d479ff; --neon-2: #ff4fa1; --hot: #ff4f91; --lime: #b6ff69; --warn: #ffd166;
  --grad-brand: linear-gradient(110deg, var(--neon), var(--neon-2)); --grad-soft: linear-gradient(160deg, rgba(212,121,255,.10), rgba(255,79,161,.07)); --ambient: rgba(212,121,255,.14);
}
body[data-theme="gold"] {
  --bg: #0b0904; --bg-2: #151106; --surface: rgba(255,209,82,.05); --surface-2: rgba(255,209,82,.09);
  --stroke: rgba(255,221,120,.14); --stroke-strong: rgba(255,221,120,.26); --text: #fff9e9; --muted: #c5b68c; --dim: #82765b;
  --neon: #ffd34f; --neon-2: #ff8c32; --hot: #ff496f; --lime: #c9ff55; --warn: #ffd34f;
  --grad-brand: linear-gradient(110deg, var(--neon), var(--neon-2)); --grad-soft: linear-gradient(160deg, rgba(255,211,79,.10), rgba(255,140,50,.07)); --ambient: rgba(255,211,79,.13);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--body);
  color: var(--text);
  background:
    radial-gradient(900px 520px at 15% -10%, var(--ambient), transparent 60%),
    var(--bg);
  background-repeat: no-repeat;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  padding-bottom: calc(var(--nav-h) + 14px + env(safe-area-inset-bottom));
  line-height: 1.55;
}

@media (min-width: 860px) { body { padding-bottom: 0; } .site-footer { padding-bottom: 24px; } }

img, svg, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { font-family: var(--head); line-height: 1.2; margin: 0 0 .5rem; letter-spacing: -.015em; }
h1 { font-size: clamp(1.7rem, 5.2vw, 2.6rem); }
h2 { font-size: clamp(1.25rem, 3.6vw, 1.7rem); }
h3 { font-size: 1.06rem; }
p  { margin: 0 0 .8rem; }

.muted { color: var(--muted); }
.dim   { color: var(--dim); }
.small { font-size: .82rem; }
.center { text-align: center; }
.mt   { margin-top: 1rem; }
.mt-2 { margin-top: 1.75rem; }
.hide { display: none !important; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 16px; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--neon); color: #04121a; padding: 10px 16px; border-radius: 0 0 var(--r-sm) 0;
}
.skip:focus { left: 0; }

:focus-visible { outline: 2px solid var(--neon); outline-offset: 2px; border-radius: 6px; }

.ico { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7;
       stroke-linecap: round; stroke-linejoin: round; }
.ico-sm { width: 17px; height: 17px; }
.ico-lg { width: 30px; height: 30px; }

/* ---------------------------------------------------------------- header */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(8, 6, 15, .72);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--stroke);
}
.header-row { display: flex; align-items: center; justify-content: space-between; height: 62px; gap: 12px; }

.brand { display: flex; align-items: center; gap: 10px; font-family: var(--head); font-weight: 700; font-size: 1.2rem; }
.brand span {
  background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent;
}

.top-nav { display: none; gap: 4px; }
@media (min-width: 860px) { .top-nav { display: flex; } }
.top-nav a {
  position: relative; display: flex; align-items: center; gap: 8px;
  padding: 9px 15px; border-radius: 999px; color: var(--muted);
  font-weight: 500; font-size: .93rem; transition: color .18s, background .18s;
}
.top-nav a:hover { color: var(--text); background: var(--surface); }
.top-nav a.is-active { color: var(--text); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--stroke-strong); }

/* -------------------------------------------------------- bottom nav (mobile) */
.bottom-nav {
  position: fixed; inset: auto 0 0 0; z-index: 45;
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
  align-items: stretch; text-align: center;
  height: calc(var(--nav-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: rgba(10, 8, 20, .96);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--stroke);
}
@media (min-width: 860px) { .bottom-nav { display: none; } }
.bottom-nav a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  color: var(--dim); font-size: .7rem; font-weight: 600; letter-spacing: .02em;
}
.bottom-nav a.is-active { color: var(--neon); }
.nav-ico { position: relative; display: inline-flex; }

.dot {
  position: absolute; top: -3px; right: -5px;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--hot); box-shadow: 0 0 0 2px rgba(8, 6, 15, .9);
}
.top-nav .dot { position: static; margin-left: 2px; }

/* ------------------------------------------------------------------ cards */
.card {
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
}
.card-pad { padding: 18px; }
@media (min-width: 640px) { .card-pad { padding: 24px; } }

.panel { composes: card; }

.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: 1fr; }
@media (min-width: 700px)  { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
.grid-listings { grid-template-columns: 1fr; }
@media (min-width: 620px)  { .grid-listings { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid-listings { grid-template-columns: repeat(3, 1fr); } }
.grid-stats { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 860px)  { .grid-stats { grid-template-columns: repeat(4, 1fr); } }

/* ------------------------------------------------------------------- hero */
.hero { padding-block: 34px 12px; }
.hero .eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 13px; border-radius: 999px;
  background: var(--grad-soft); border: 1px solid var(--stroke-strong);
  color: var(--neon); font-size: .76rem; font-weight: 600; letter-spacing: .09em; text-transform: uppercase;
}
.hero h1 { margin-top: 14px; }
.hero .hero-title {
  max-width: 760px; margin: 22px auto 0; text-align: center;
  font-family: var(--head); font-size: clamp(2rem, 8vw, 4.25rem); line-height: 1.08; font-weight: 700;
  background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero h1 .grad { background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { color: var(--muted); max-width: 56ch; }
.trust-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.trust {
  display: flex; align-items: center; gap: 8px; font-size: .82rem; color: var(--muted);
  padding: 8px 13px; border-radius: 999px; background: var(--surface); border: 1px solid var(--stroke);
}
.trust .ico { color: var(--lime); }

.benefit-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 22px;
}
.benefit-card {
  min-height: 150px; padding: 18px; display: flex; flex-direction: column; justify-content: space-between; gap: 20px;
  background: var(--surface); border: 1px solid var(--stroke-strong); border-radius: var(--r-lg); box-shadow: var(--shadow);
}
.benefit-card__icon {
  width: 42px; height: 42px; color: var(--neon); fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}
.benefit-card strong { font-family: var(--head); font-size: .96rem; line-height: 1.35; }
.home-search { position: relative; margin-top: 16px; }
.home-search .input { min-height: 56px; padding-right: 62px; }
.home-search__button {
  position: absolute; top: 5px; right: 5px; display: grid; place-items: center; width: 46px; height: 46px;
  padding: 0; border: 0; border-radius: var(--r-sm); background: var(--grad-brand); color: var(--bg); cursor: pointer;
}
.home-search__button .ico { width: 23px; height: 23px; }
.home-search__button:hover { filter: brightness(1.05); }
@media (min-width: 700px) {
  .benefit-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .benefit-card { min-height: 170px; }
}

/* --------------------------------------------------------- listing cards */
.listing-card {
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.listing-card:hover { transform: translateY(-2px); border-color: var(--stroke-strong); box-shadow: 0 8px 22px rgba(0,0,0,.4); }

.seller-row { display: flex; align-items: center; gap: 10px; padding: 13px 15px; }
.avatar {
  width: 38px; height: 38px; border-radius: 50%; object-fit: cover; flex: none;
  border: 1px solid var(--stroke-strong); background: var(--bg-2);
}
.avatar-lg { width: 62px; height: 62px; }
.seller-row .name { font-weight: 600; font-size: .93rem; line-height: 1.15; }
.seller-row .handle { font-size: .78rem; color: var(--dim); }

.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px; font-size: .72rem; font-weight: 600;
  border: 1px solid var(--stroke-strong); background: var(--surface-2); color: var(--muted);
}
.badge--ok      { color: var(--ok);     border-color: rgba(47,224,138,.4);  background: rgba(47,224,138,.10); }
.badge--warn    { color: var(--warn);   border-color: rgba(255,184,77,.4);  background: rgba(255,184,77,.10); }
.badge--danger  { color: var(--danger); border-color: rgba(255,84,112,.4);  background: rgba(255,84,112,.10); }
.badge--neon    { color: var(--neon);   border-color: rgba(0,229,255,.42);  background: rgba(0,229,255,.10); }

.listing-body { padding: 14px 15px 17px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.listing-title { font-family: var(--head); font-size: 1.02rem; font-weight: 600; }
.price-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; }
.price { font-family: var(--head); font-size: 1.32rem; font-weight: 700;
         background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }

.meta-list { display: grid; gap: 1px; background: var(--stroke); border-radius: var(--r); overflow: hidden; }
.meta-list div { display: flex; justify-content: space-between; gap: 14px; padding: 11px 14px; background: var(--bg-2); font-size: .88rem; }
.meta-list span:first-child { color: var(--muted); }
.meta-list span:last-child  { font-weight: 600; text-align: right; }

/* ----------------------------------------------------------------- slider */
.slider { position: relative; background: var(--bg-2); }
.slider-track {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; -ms-overflow-style: none; scroll-behavior: smooth;
}
.slider-track::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; scroll-snap-align: center; aspect-ratio: 16 / 9; }
.slide img { width: 100%; height: 100%; object-fit: cover; }

.slider-dots { position: absolute; left: 0; right: 0; bottom: 9px; display: flex; justify-content: center; gap: 6px; }
.slider-dots button {
  width: 7px; height: 7px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(255,255,255,.4); transition: width .2s, background .2s;
}
.slider-dots button.is-on { width: 20px; border-radius: 999px; background: var(--neon); }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 46px; padding: 12px 20px;
  font-family: var(--head); font-size: .94rem; font-weight: 600;
  border: 1px solid var(--stroke-strong); border-radius: 999px;
  background: var(--surface-2); color: var(--text);
  cursor: pointer; transition: background .18s ease, opacity .18s ease, border-color .18s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { background: var(--surface); }
.btn:active { opacity: .9; }
.btn[disabled], .btn.is-busy { opacity: .6; pointer-events: none; }

.btn--primary { background: var(--grad-brand); color: #06070f; border-color: transparent; }
.btn--primary:hover { box-shadow: 0 6px 16px rgba(0,229,255,.18); background: var(--grad-brand); filter: brightness(1.04); }
.btn--ghost   { background: transparent; }
.btn--danger  { background: rgba(255,84,112,.14); border-color: rgba(255,84,112,.45); color: #ffb8c5; }
.btn--google  { background: #fff; color: #1f1f1f; border-color: transparent; }
.btn--google:hover { background: #f1f1f4; }
.btn--block   { width: 100%; }
.btn--sm      { min-height: 38px; padding: 8px 15px; font-size: .85rem; }

.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }

/* ------------------------------------------------------------------ forms */
.field { margin-bottom: 15px; }
.field label { display: block; font-size: .85rem; font-weight: 600; color: var(--muted); margin-bottom: 7px; }
.input, .select, .textarea {
  width: 100%; padding: 13px 15px; font: inherit; font-size: 1rem; color: var(--text);
  background: rgba(0, 0, 0, .32); border: 1px solid var(--stroke); border-radius: var(--r);
  transition: border-color .18s, box-shadow .18s;
}
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: rgba(0,229,255,.6); box-shadow: 0 0 0 3px rgba(0,229,255,.14);
}
.textarea { min-height: 132px; resize: vertical; }
.input::placeholder, .textarea::placeholder { color: var(--dim); }
.hint { font-size: .78rem; color: var(--dim); margin-top: 6px; }

.file {
  display: flex; align-items: center; gap: 12px; padding: 15px;
  border: 1px dashed var(--stroke-strong); border-radius: var(--r);
  background: rgba(0, 0, 0, .22); color: var(--muted); font-size: .87rem; cursor: pointer;
}
.file:hover { border-color: rgba(0,229,255,.5); color: var(--text); }
.file input { display: none; }
.file .ico { color: var(--neon); }

.otp-inputs { display: flex; gap: 8px; justify-content: center; }
.otp-inputs input {
  width: 46px; height: 56px; text-align: center; font-family: var(--head); font-size: 1.4rem; font-weight: 700;
  color: var(--text); background: rgba(0,0,0,.34); border: 1px solid var(--stroke); border-radius: var(--r-sm);
}
.otp-inputs input:focus { outline: none; border-color: var(--neon); box-shadow: 0 0 0 3px rgba(0,229,255,.16); }

.auth-shell { max-width: 440px; margin: 30px auto; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--dim); font-size: .78rem; margin: 18px 0; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--stroke); }

/* ------------------------------------------------------------ flash/toast */
.flash-stack { margin-top: 14px; display: grid; gap: 8px; }
.flash {
  padding: 12px 16px; border-radius: var(--r); font-size: .9rem;
  border: 1px solid var(--stroke-strong); background: var(--surface-2);
}
.flash--success { color: var(--ok);     border-color: rgba(47,224,138,.42);  background: rgba(47,224,138,.10); }
.flash--error   { color: #ffb8c5;       border-color: rgba(255,84,112,.42);  background: rgba(255,84,112,.10); }
.flash--info    { color: var(--neon);   border-color: rgba(0,229,255,.38);   background: rgba(0,229,255,.09); }
.flash--warning { color: var(--warn);   border-color: rgba(255,184,77,.42);  background: rgba(255,184,77,.10); }

.toast-host { position: fixed; left: 50%; bottom: calc(var(--nav-h) + 16px); transform: translateX(-50%);
              z-index: 90; display: grid; gap: 8px; width: min(92vw, 420px); }
@media (min-width: 860px) { .toast-host { bottom: 20px; } }
.toast {
  padding: 12px 16px; border-radius: var(--r); font-size: .9rem; color: var(--text);
  background: rgba(16, 12, 30, .96); border: 1px solid var(--stroke-strong); box-shadow: var(--shadow);
  animation: rise .25s ease both;
}
.toast--error { border-color: rgba(255,84,112,.5); }
.toast--success { border-color: rgba(47,224,138,.5); }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }

/* ------------------------------------------------------------------ modal */
.modal[hidden] { display: none; }
.modal {
  position: fixed; inset: 0; z-index: 95; display: grid; place-items: center; padding: 18px;
  background: rgba(4, 3, 10, .78); animation: fade .18s ease both;
}
@keyframes fade { from { opacity: 0; } }
.modal-box {
  width: min(460px, 100%); padding: 24px; border-radius: var(--r-xl);
  background: #100c1e; border: 1px solid var(--stroke-strong); box-shadow: var(--shadow);
  animation: rise .22s ease both;
}

/* -------------------------------------------------------------- utilities */
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin: 26px 0 14px; }
.empty { padding: 46px 20px; text-align: center; color: var(--muted); }
.empty .ico { width: 42px; height: 42px; color: var(--dim); margin: 0 auto 12px; }

.stat { padding: 16px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--stroke); }
.stat .k { font-family: var(--head); font-size: 1.75rem; font-weight: 700; }
.stat .l { font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .07em; }
.stat--theme .k { min-height: 42px; display: flex; align-items: center; color: var(--neon); }

.thread { display: grid; gap: 10px; }
.bubble { padding: 13px 16px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--stroke); font-size: .92rem; }
.bubble--admin { background: var(--grad-soft); border-color: rgba(0,229,255,.32); }
.bubble .who { font-size: .74rem; color: var(--dim); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 5px; }

.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.data { width: 100%; border-collapse: collapse; font-size: .88rem; min-width: 620px; }
table.data th, table.data td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--stroke); vertical-align: middle; }
table.data th { color: var(--muted); font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
table.data tr:hover td { background: rgba(255,255,255,.03); }
table.data img.thumb { width: 58px; height: 58px; object-fit: cover; border-radius: var(--r-sm); border: 1px solid var(--stroke); }

.qr-box { display: grid; place-items: center; gap: 12px; padding: 20px; border-radius: var(--r-lg);
          background: #fff; }
.qr-box img { width: 210px; height: 210px; }
.upi-chip {
  display: inline-flex; align-items: center; gap: 10px; padding: 11px 16px; border-radius: var(--r);
  background: rgba(0,0,0,.35); border: 1px dashed var(--stroke-strong); font-family: var(--head); font-weight: 600;
  word-break: break-all; text-align: left;
}

.notice {
  display: flex; gap: 12px; padding: 14px 16px; border-radius: var(--r);
  background: rgba(255,184,77,.09); border: 1px solid rgba(255,184,77,.35); color: #ffddab; font-size: .87rem;
}
.notice .ico { color: var(--warn); flex: none; }

.profile-card {
  position: relative; overflow: hidden; padding: 22px;
  border-radius: var(--r-xl); border: 1px solid var(--stroke-strong);
  background: var(--grad-soft), rgba(255,255,255,.035);
  box-shadow: var(--shadow);
}
.profile-card .rows { display: grid; gap: 6px; margin-top: 14px; font-size: .9rem; }
.profile-card .rows div { display: flex; gap: 10px; }
.profile-card .rows span:first-child { color: var(--muted); min-width: 92px; }

.list-links { display: grid; gap: 10px; }
.list-link {
  display: flex; align-items: center; gap: 13px; padding: 15px 16px; width: 100%; text-align: left;
  border-radius: var(--r); border: 1px solid var(--stroke); background: var(--surface);
  color: var(--text); font: inherit; font-size: .95rem; font-weight: 500; cursor: pointer;
  transition: border-color .18s ease, background .18s ease;
}
.list-link:hover { border-color: var(--stroke-strong); background: var(--surface-2); }
.list-link .ico { color: var(--neon); flex: none; }
.list-link .chev { margin-left: auto; color: var(--dim); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important;
                           scroll-behavior: auto !important; }
}

/* ------------------------------------------------------------------ footer */
.site-footer { margin-top: 34px; padding: 26px 0 0; border-top: 1px solid var(--stroke); background: rgba(0,0,0,.24); }
.site-footer .footer-title { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
.site-footer .footer-links { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.site-footer .footer-links a { color: var(--muted); font-size: .9rem; text-decoration: none; }
.site-footer .footer-links a:hover { color: var(--text); }
.site-footer .footer-copy { margin: 18px 0 0; padding-top: 14px; border-top: 1px solid var(--stroke); color: var(--dim); font-size: .82rem; }

/* --------------------------------------------- hero heading (mobile safe) */
.hero h1 { font-size: clamp(1.5rem, 6.4vw, 2.35rem); line-height: 1.22; text-wrap: balance; }
@media (max-width: 420px) { .hero { padding-top: 26px; } }

/* ------------------------------------------------- profile picture (DP) */
.avatar { aspect-ratio: 1 / 1; object-fit: cover; object-position: center; }
.dp-preview { width: 62px; height: 62px; border-radius: 50%; object-fit: cover; object-position: center; aspect-ratio: 1/1; border: 1px solid var(--stroke-strong); background: var(--bg-2); }
.dp-preview-row { display: flex; align-items: center; gap: 12px; margin-top: 10px; }

/* --------------------------------------------------------- legal / prose */
.prose { max-width: 72ch; }
.prose h2 { margin-top: 24px; font-size: 1.08rem; }
.prose p, .prose li { color: var(--muted); font-size: .94rem; line-height: 1.65; }
.prose ul { padding-left: 18px; }
.admin-footer { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
main.admin-bare { padding-top: 8px; }

/* ------------------------------------------- professional polish + perf */
html { scroll-behavior: smooth; }
.listing-card, .card { contain: layout style; }
.grid-listings > * { content-visibility: auto; contain-intrinsic-size: 420px; }
.hero { padding: 30px 0 8px; }
.hero p { font-size: .96rem; }
.trust { background: rgba(255,255,255,.03); }
.section-head { margin: 30px 0 14px; }
.section-head h2 { margin: 0; }
.card-pad { padding: 18px; }
@media (min-width: 640px) { .card-pad { padding: 22px; } }
.site-footer { margin-top: 40px; padding-top: 30px; background: rgba(0,0,0,.30); }
.site-footer .footer-links { gap: 10px 26px; }
.bottom-nav a { padding: 6px 2px; min-width: 0; }
.bottom-nav a span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bottom-nav a .ico { width: 21px; height: 21px; }
body { padding-bottom: calc(var(--nav-h) + 14px + env(safe-area-inset-bottom)); }
@media (min-width: 860px) { body { padding-bottom: 0; } }

/* ------------------------------------------------- seller verification UI */
.check { display: flex; gap: 10px; align-items: flex-start; margin-top: 12px; font-size: .9rem; color: var(--muted); }
.check input { margin-top: 3px; }

.seller-grid { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .seller-grid { grid-template-columns: 1fr 1fr; } }
.seller-box { display: block; aspect-ratio: 21/9; border: 1px solid var(--stroke); border-radius: 14px;
  background: var(--bg-2); padding: 14px; text-decoration: none; color: inherit; transition: border-color .15s ease; }
.seller-box:hover { border-color: var(--stroke-strong); }
.seller-box__in { display: flex; height: 100%; align-items: center; justify-content: space-between; gap: 12px; }
.seller-box__id { display: flex; align-items: center; gap: 12px; min-width: 0; }
.seller-box__txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.seller-box__txt strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dp-preview--empty { display: inline-flex; align-items: center; justify-content: center; color: var(--dim); }

.kv { display: grid; gap: 8px; margin: 0; }
.kv > div { display: flex; justify-content: space-between; gap: 14px; border-bottom: 1px solid var(--stroke); padding-bottom: 8px; }
.kv dt { color: var(--dim); font-size: .86rem; margin: 0; }
.kv dd { margin: 0; font-size: .9rem; text-align: right; word-break: break-word; }

.doc-shot { margin: 0; }
.doc-shot img { width: 100%; border-radius: 12px; border: 1px solid var(--stroke); display: block; }
.doc-empty { aspect-ratio: 16/10; display: flex; align-items: center; justify-content: center;
  border: 1px dashed var(--stroke); border-radius: 12px; color: var(--dim); }

.stat--link { text-decoration: none; color: inherit; display: block; }
.dot--alert { position: static; display: inline-block; margin-left: 6px; vertical-align: middle; }

.seller-item { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.seller-item__img { width: 112px; aspect-ratio: 16/9; object-fit: cover; border-radius: 10px; border: 1px solid var(--stroke); }
.seller-item__body { flex: 1 1 180px; min-width: 0; }
.seller-item__body p { margin: 4px 0 6px; }
.seller-item__act { margin-left: auto; flex-wrap: nowrap; }
.list-link.is-disabled { opacity: .55; cursor: not-allowed; }

/* --------------------------------------------------- profile picture crop */
.dp-edit { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.dp-edit__ctl { display: flex; flex-direction: column; gap: 8px; min-width: 200px; }
.dp-crop { width: 96px; height: 96px; border-radius: 50%; overflow: hidden; display: block; flex: 0 0 auto;
  border: 1px solid var(--stroke-strong); background: var(--bg-2); touch-action: none; cursor: grab; position: relative; }
.dp-crop img { width: 100%; height: 100%; object-fit: cover; display: block; transform-origin: center center; user-select: none; }
.dp-crop.is-dragging { cursor: grabbing; }
.dp-zoom { display: flex; align-items: center; gap: 10px; font-size: .85rem; color: var(--muted); }
.dp-zoom input { flex: 1; }
.dp-preview--lg { width: 96px; height: 96px; }

/* --------------------------------------- admin settings boxes (21:9 tiles) */
.set-grid { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .set-grid { grid-template-columns: 1fr 1fr; } }

.box21 { display: block; aspect-ratio: 21 / 9; border: 1px solid var(--stroke); border-radius: 14px;
  background: var(--surface); padding: 16px; text-decoration: none; color: inherit;
  transition: border-color .15s ease, transform .15s ease; }
.box21:hover { border-color: var(--stroke-strong); transform: translateY(-1px); }
.box21__in { display: flex; height: 100%; align-items: center; justify-content: space-between; gap: 12px; }
.box21__go { display: inline-flex; align-items: center; gap: 8px; flex: none; color: var(--muted); }

.fold { border: 1px solid var(--stroke); border-radius: 14px; background: var(--surface); overflow: hidden; }
.fold > summary { aspect-ratio: 21 / 9; display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 16px; cursor: pointer; list-style: none; }
.fold > summary::-webkit-details-marker { display: none; }
.fold[open] > summary { aspect-ratio: auto; min-height: 64px; border-bottom: 1px solid var(--stroke); }
.fold__body { padding: 16px 16px 20px; }
.fold__id { display: flex; align-items: center; gap: 12px; min-width: 0; }
.fold__txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.fold__txt strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
hr.sep { border: 0; border-top: 1px solid var(--stroke); margin: 20px 0; }

.pay-choice { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .pay-choice { grid-template-columns: 1fr 1fr; } }

/* ------------------------------------------------------- theme selector */
.theme-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 720px) { .theme-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.theme-option { position: relative; min-width: 0; }
.theme-option input { position: absolute; opacity: 0; pointer-events: none; }
.theme-card { display: block; height: 100%; padding: 14px; border: 1px solid var(--stroke); border-radius: var(--r);
  background: var(--surface); cursor: pointer; transition: border-color .18s ease, transform .18s ease; }
.theme-card:hover { transform: translateY(-2px); border-color: var(--stroke-strong); }
.theme-option input:checked + .theme-card { border-color: var(--neon); box-shadow: var(--glow-neon); }
.theme-swatch { display: grid; grid-template-columns: 1fr 1fr; height: 54px; overflow: hidden; border-radius: var(--r-sm); margin-bottom: 11px; background: var(--theme-bg); }
.theme-swatch span:first-child { margin: 10px 4px 10px 10px; border-radius: 6px; background: var(--theme-a); }
.theme-swatch span:last-child { margin: 10px 10px 10px 4px; border-radius: 6px; background: var(--theme-b); }
.theme-card strong { display: block; font-family: var(--head); font-size: .9rem; }
.theme-card small { color: var(--muted); font-size: .7rem; }

/* ---------------------------------------------------------------- chat (WhatsApp style) */
.chat-page { padding: 12px 0 26px; }
.chat-shell { width: min(820px, 100% - 24px); margin: 0 auto; }
.chat-top { display: flex; align-items: center; gap: 11px; padding: 10px 12px; background: var(--surface); border: 1px solid var(--stroke); border-radius: var(--r-lg) var(--r-lg) 0 0; }
.chat-back { display: inline-flex; color: var(--muted); }
.chat-dp { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; background: var(--bg-2); flex: none; }
.chat-who { display: grid; min-width: 0; }
.chat-who strong { font-family: var(--head); font-size: .98rem; }
.chat-who span { color: var(--muted); font-size: .72rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-body { height: 60vh; min-height: 340px; overflow-y: auto; padding: 14px 12px; display: flex; flex-direction: column; gap: 10px;
  background: var(--bg-2); border: 1px solid var(--stroke); border-top: 0; }
.chat-row { display: flex; }
.chat-row.is-mine { justify-content: flex-end; }
.chat-bubble { max-width: 78%; padding: 8px 10px; border-radius: 14px 14px 14px 4px; background: var(--surface); border: 1px solid var(--stroke); }
.chat-row.is-mine .chat-bubble { border-radius: 14px 14px 4px 14px; background: linear-gradient(180deg, rgba(123,92,255,.28), rgba(123,92,255,.16)); border-color: var(--stroke-strong, var(--stroke)); }
.chat-text { white-space: pre-line; word-break: break-word; font-size: .92rem; }
.chat-media { display: block; max-width: 100%; width: 240px; border-radius: 10px; margin-bottom: 6px; }
.chat-deleted { color: var(--muted); font-size: .85rem; display: inline-flex; align-items: center; gap: 5px; }
.chat-meta { display: flex; align-items: center; gap: 6px; margin-top: 4px; color: var(--muted); font-size: .66rem; }
.chat-act { background: none; border: 0; padding: 0; color: var(--muted); cursor: pointer; display: inline-flex; }
.chat-act:hover { color: var(--neon); }
.chat-act-form { display: inline-flex; }
.chat-empty { margin: auto; text-align: center; color: var(--muted); display: grid; gap: 8px; justify-items: center; }
.chat-composer { display: flex; align-items: flex-end; gap: 8px; padding: 10px 12px; background: var(--surface); border: 1px solid var(--stroke); border-top: 0; border-radius: 0 0 var(--r-lg) var(--r-lg); flex-wrap: wrap; }
.chat-attach { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%; background: var(--bg-2); color: var(--muted); cursor: pointer; flex: none; }
.chat-attach input { display: none; }
.chat-input { flex: 1 1 160px; min-height: 42px; max-height: 140px; padding: 11px 14px; border-radius: 21px; resize: vertical;
  background: var(--bg-2); border: 1px solid var(--stroke); color: var(--text); font: inherit; font-size: .92rem; }
.chat-send { width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--grad-brand); color: #fff; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.chat-editing { flex: 1 0 100%; font-size: .75rem; color: var(--muted); }
.chat-editing a { color: var(--neon); }
.chat-note { margin: 8px 2px 0; color: var(--muted); font-size: .72rem; }

.chat-list { display: grid; gap: 2px; background: var(--surface); border: 1px solid var(--stroke); border-radius: var(--r-lg); overflow: hidden; }
.chat-list-row { display: flex; align-items: center; gap: 6px; padding-right: 10px; border-bottom: 1px solid var(--stroke); }
.chat-list-row:last-child { border-bottom: 0; }
.chat-list-link { flex: 1; display: flex; align-items: center; gap: 11px; padding: 11px 12px; min-width: 0; color: inherit; }
.chat-list-main { display: grid; gap: 2px; min-width: 0; flex: 1; }
.chat-list-top { display: flex; justify-content: space-between; gap: 10px; }
.chat-list-top strong { font-family: var(--head); font-size: .93rem; }
.chat-list-prev { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.chat-list-prev .small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-badge { font-style: normal; font-size: .66rem; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--grad-brand); color: #fff; display: inline-flex; align-items: center; justify-content: center; }
