:root{
  --bg:#0B0D10; --surface:#14171C; --elev:#1B2028; --border:#262C36;
  --text:#F2F4F7; --muted:#8C94A3; --dim:#4A5260;
  --yellow:#FFD400; --yellow-hi:#FFE45C; --blue:#3B82F6; --blue-soft:#7FA9FF;
  --ok:#34D399; --danger:#FF5C6C;
  --nav-h:64px; --safe-b:env(safe-area-inset-bottom, 0px);
}
*{box-sizing:border-box; -webkit-tap-highlight-color:transparent}
html,body{margin:0; height:100%}
body{
  background:var(--bg); color:var(--text); overflow-x:hidden;
  font-family:"Segoe UI Variable","Segoe UI",Roboto,Arial,sans-serif;
  font-size:15px; -webkit-font-smoothing:antialiased;
}
#app{min-height:100vh; padding-bottom:calc(var(--nav-h) + var(--safe-b))}
a{color:var(--blue-soft); text-decoration:none}
button{font:inherit; color:inherit; background:none; border:0; padding:0; cursor:pointer}

/* ---------- header ---------- */
.hdr{padding:calc(env(safe-area-inset-top, 0px) + 12px) 16px 0}
.brand{display:flex; align-items:center; justify-content:center; gap:8px; padding:4px 0 12px}
.mark{width:26px; height:26px; border-radius:8px; background:#0057B7; display:grid; place-items:center;
  color:var(--yellow); font-weight:800; font-size:15px}
.word{font-size:19px; font-weight:600; letter-spacing:-.01em}
.flagline{height:2px; background:linear-gradient(90deg,#0057B7 0 50%, var(--yellow) 50% 100%)}
.searchrow{display:flex; gap:8px}
.search{flex:1; height:44px; border-radius:12px; background:var(--surface); border:1px solid var(--border);
  display:flex; align-items:center; gap:10px; padding:0 14px}
.search input{flex:1; background:none; border:0; outline:none; color:var(--text); font-size:14px}
.search input::placeholder{color:var(--dim)}
.iconbtn{width:44px; height:44px; border-radius:12px; background:var(--surface); border:1px solid var(--border);
  display:grid; place-items:center; font-size:16px; position:relative}
.iconbtn.on{border-color:var(--blue); color:var(--blue-soft)}
.iconbtn .dot{position:absolute; top:6px; right:6px; width:7px; height:7px; border-radius:50%; background:var(--yellow)}

/* ---------- chips ---------- */
.chips{display:flex; gap:8px; overflow-x:auto; padding:12px 16px 4px; scrollbar-width:none}
.chips::-webkit-scrollbar{display:none}
.chip{height:34px; padding:0 14px; border-radius:999px; border:1px solid var(--border); background:var(--surface);
  display:inline-flex; align-items:center; gap:6px; font-size:13px; white-space:nowrap; flex:0 0 auto}
.chip.on{background:var(--yellow); border-color:var(--yellow); color:#0B0D10; font-weight:600}

/* ---------- feed ---------- */
.grid{display:grid; grid-template-columns:1fr 1fr; gap:10px; padding:12px 16px}
.card{background:var(--surface); border:1px solid var(--border); border-radius:16px; overflow:hidden;
  display:flex; flex-direction:column}
.ph{aspect-ratio:1/1; position:relative; display:grid; place-items:center; font-size:44px;
  background:linear-gradient(150deg,#20262E,#2C343F)}
.ph img{position:absolute; inset:0; width:100%; height:100%; object-fit:cover}
.badge-top{position:absolute; top:8px; left:8px; background:var(--yellow); color:#0B0D10; font-size:10px;
  font-weight:700; letter-spacing:.04em; padding:4px 7px; border-radius:6px; z-index:2}
.heart{position:absolute; top:8px; right:8px; width:30px; height:30px; border-radius:999px; z-index:2;
  background:rgba(11,13,16,.62); border:1px solid rgba(255,255,255,.14); display:grid; place-items:center; font-size:14px}
.heart.on{color:var(--yellow); border-color:var(--yellow)}
.body{padding:10px 10px 12px; min-height:88px; display:flex; flex-direction:column; gap:6px}
.price{color:var(--yellow); font-size:17px; font-weight:700; font-variant-numeric:tabular-nums; white-space:nowrap}
.price.free{font-size:14px}
.row{display:flex; align-items:center; justify-content:space-between; gap:8px}
.cond{font-size:11px; padding:3px 7px; border-radius:6px; border:1px solid var(--blue); color:var(--blue-soft); flex:0 0 auto}
.cond.gray{border-color:var(--border); color:var(--muted)}
.ttl{font-size:13px; line-height:17px; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden}
.meta{font-size:11px; color:var(--muted); margin-top:auto}

/* ---------- nav ---------- */
.nav{position:fixed; left:0; right:0; bottom:0; height:calc(var(--nav-h) + var(--safe-b));
  padding-bottom:var(--safe-b); background:rgba(27,32,40,.97); border-top:1px solid var(--border);
  display:flex; align-items:center; justify-content:space-around; z-index:30}
.navi{display:flex; flex-direction:column; align-items:center; gap:3px; font-size:10px; color:var(--muted); min-width:56px}
.navi.on{color:var(--yellow)}
.navi .g{font-size:17px}
.plus{width:46px; height:46px; border-radius:999px; background:var(--yellow); color:#0B0D10;
  display:grid; place-items:center; font-size:24px; font-weight:600; margin-top:-16px}

/* ---------- screens ---------- */
.topbar{display:flex; align-items:center; gap:10px; padding:calc(env(safe-area-inset-top,0px) + 12px) 16px 8px}
.round{width:36px; height:36px; border-radius:999px; background:var(--elev); border:1px solid var(--border);
  display:grid; place-items:center; font-size:16px; flex:0 0 auto}
.hero{position:relative; height:52vh; min-height:320px; background:linear-gradient(150deg,#20262E,#2C343F);
  display:grid; place-items:center; font-size:84px; overflow:hidden}
.hero:before{content:""; position:absolute; top:0; left:0; right:0; height:120px; z-index:1;
  background:linear-gradient(180deg,rgba(11,13,16,.72),rgba(11,13,16,0))}
.hero img{position:absolute; inset:0; width:100%; height:100%; object-fit:contain; z-index:0}
.hero .dots{position:absolute; bottom:12px; left:0; right:0; display:flex; gap:5px; justify-content:center}
.dot-n{width:6px; height:6px; border-radius:999px; background:rgba(255,255,255,.35)}
.dot-n.on{background:var(--yellow); width:16px}
.pad{padding:16px 16px 110px}
.big-price{font-size:26px; font-weight:700; color:var(--yellow); font-variant-numeric:tabular-nums}
.h1{font-size:19px; font-weight:600; line-height:25px; margin:8px 0}
.sub{font-size:12px; color:var(--muted)}
.hr{height:1px; background:var(--border); margin:16px 0}
.h5{font-size:12px; color:var(--muted); letter-spacing:.06em; text-transform:uppercase; margin-bottom:10px}
.desc{font-size:14px; line-height:21px; color:#DDE1E7; white-space:pre-wrap}
.attr{display:flex; justify-content:space-between; font-size:14px; padding:9px 0; border-bottom:1px solid var(--border)}
.attr:last-child{border:0}
.attr span:first-child{color:var(--muted)}
.seller{display:flex; align-items:center; gap:12px; background:var(--surface); border:1px solid var(--border);
  border-radius:14px; padding:12px; margin-top:14px}
.ava{width:42px; height:42px; border-radius:999px; background:#232A33; display:grid; place-items:center;
  font-weight:600; color:var(--blue-soft)}
.sticky{position:fixed; left:12px; right:12px; bottom:calc(12px + var(--safe-b)); display:flex; gap:8px; z-index:25}
.btn{height:48px; border-radius:14px; display:grid; place-items:center; font-size:15px; font-weight:600;
  border:1px solid transparent}
.btn.p{background:var(--yellow); color:#0B0D10; flex:1}
.btn.s{background:var(--surface); border-color:var(--border); color:var(--text); flex:1}
.btn.icon{flex:0 0 56px}
.btn:disabled{opacity:.45}

/* ---------- sheet ---------- */
.overlay{position:fixed; inset:0; background:rgba(4,5,7,.62); z-index:40; display:flex; align-items:flex-end}
.sheet{width:100%; max-height:88vh; background:var(--elev); border-radius:20px 20px 0 0;
  border-top:1px solid #2C333E; display:flex; flex-direction:column; animation:up .18s ease-out}
@keyframes up{from{transform:translateY(24px); opacity:.6} to{transform:none; opacity:1}}
.handle{width:36px; height:4px; border-radius:99px; background:#3A424E; margin:10px auto 4px}
.sh-h{display:flex; align-items:center; justify-content:space-between; padding:4px 18px 10px}
.sh-h b{font-size:20px}
.sh-b{overflow-y:auto; padding:0 18px 12px; flex:1}
.foot{border-top:1px solid var(--border); padding:12px 18px calc(18px + var(--safe-b)); display:flex; gap:10px}
.lbl{font-size:13px; color:var(--muted); margin:16px 0 8px}
.field{height:46px; border-radius:12px; background:var(--surface); border:1px solid var(--border);
  display:flex; align-items:center; justify-content:space-between; padding:0 14px; font-size:14px; width:100%}
.field .v{color:var(--muted)}
.field input{background:none; border:0; outline:none; color:var(--text); width:100%; font-size:14px}
.two{display:flex; gap:10px; margin-top:10px}
.check{display:flex; align-items:center; gap:10px; font-size:14px; margin-top:16px; color:var(--text)}
.box{width:18px; height:18px; border-radius:5px; border:1px solid var(--border); display:grid; place-items:center;
  color:#0B0D10; font-size:12px; background:var(--surface)}
.box.on{background:var(--yellow); border-color:var(--yellow)}
.opt{display:flex; align-items:center; justify-content:space-between; padding:14px 4px; border-bottom:1px solid var(--border); font-size:15px}
.opt:last-child{border:0}
.opt .right{color:var(--muted); font-size:13px}
.opt.on{color:var(--yellow)}

/* ---------- misc ---------- */
.empty{text-align:center; padding:56px 24px; color:var(--muted)}
.empty .ico{font-size:44px; margin-bottom:14px; opacity:.7}
.empty b{display:block; color:var(--text); font-size:17px; margin-bottom:8px}
.empty p{font-size:14px; line-height:20px; margin:0}
.skeleton{background:linear-gradient(90deg,#1A1F26,#232A33,#1A1F26); background-size:200% 100%;
  animation:sh 1.2s infinite; border-radius:16px; height:220px}
@keyframes sh{from{background-position:200% 0} to{background-position:-200% 0}}
.toast{position:fixed; left:50%; transform:translateX(-50%); bottom:calc(84px + var(--safe-b));
  background:#E9EDF2; color:#12151A; padding:12px 16px; border-radius:12px; font-size:13px; z-index:60;
  display:flex; align-items:center; gap:10px; box-shadow:0 8px 24px rgba(0,0,0,.4)}
.toast[hidden]{display:none}
.spinner{width:22px; height:22px; border-radius:50%; border:2px solid #2C333E; border-top-color:var(--yellow);
  animation:sp .8s linear infinite; margin:40px auto}
@keyframes sp{to{transform:rotate(360deg)}}
.status{font-size:11px; padding:3px 7px; border-radius:6px; border:1px solid var(--border); color:var(--muted)}
.status.active{border-color:var(--ok); color:var(--ok)}
.status.pending{border-color:var(--yellow); color:var(--yellow)}
.status.rejected{border-color:var(--danger); color:var(--danger)}
.list-item{display:flex; gap:12px; padding:12px 0; border-bottom:1px solid var(--border)}
.list-item .thumb{width:64px; height:64px; border-radius:12px; background:#232A33; flex:0 0 auto;
  display:grid; place-items:center; overflow:hidden; font-size:22px}
.list-item .thumb img{width:100%; height:100%; object-fit:cover}
.list-item .t{flex:1; min-width:0}
.list-item .t b{display:block; font-size:14px; font-weight:500; margin-bottom:6px; overflow:hidden;
  text-overflow:ellipsis; white-space:nowrap}
.muted{color:var(--muted); font-size:12px}
