:root{
  --bg:#070a12;
  --card:rgba(255,255,255,.06);
  --border:rgba(255,255,255,.12);
  --text:#eaf0ff;
  --muted:rgba(234,240,255,.72);
  --accent:#2563eb;
  --r:18px;
}

*{box-sizing:border-box}

body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  background:
    radial-gradient(900px 600px at 20% -10%, rgba(37,99,235,.35), transparent 60%),
    radial-gradient(900px 600px at 100% 10%, rgba(16,185,129,.22), transparent 55%),
    var(--bg);
  color:var(--text);
}

/* ✅ Remove default underline */
a{color:inherit; text-decoration:none}

.wrap{max-width:1100px;margin:0 auto;padding:22px}

/* Top bar */
.top{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.brand{font-weight:900;font-size:22px;letter-spacing:.2px}
.dot{color:var(--accent)}
.nav{display:flex;gap:10px;flex-wrap:wrap}

.pill{
  display:inline-flex;align-items:center;justify-content:center;
  padding:10px 14px;border-radius:999px; /* ✅ rounded */
  border:1px solid var(--border);
  background:rgba(255,255,255,.04);
  font-weight:800;
}

/* Hero */
.hero{padding:18px 0 8px}
.h1{font-size:28px;font-weight:900;line-height:1.1}
.h2{margin-top:8px;color:var(--muted);max-width:760px}

/* Search box */
.searchbox{
  margin:16px auto 0;
  border:1px solid var(--border);
  background:rgba(255,255,255,.04);
  padding:14px;border-radius:24px;
}

/* ✅ Search input + button row */
.searchrow{
  display:flex;
  gap:10px;
  align-items:center;
}

.q{
  flex:1;
  width:100%;
  padding:14px 16px;
  border-radius:999px; /* ✅ rounded */
  border:1px solid var(--border);
  background:rgba(0,0,0,.25);
  color:var(--text);
  outline:none;
}

.btn{
  display:inline-flex;align-items:center;justify-content:center;
  padding:14px 18px;
  border-radius:999px; /* ✅ rounded */
  border:1px solid var(--border);
  background:linear-gradient(135deg, rgba(37,99,235,.92), rgba(16,185,129,.45));
  color:white;font-weight:900;
  cursor:pointer;
  white-space:nowrap;
}

.btn:hover{filter:brightness(1.05)}

/* ✅ Rounded tabs */
.tabs{
  display:flex;
  gap:10px;
  margin-top:12px;
  flex-wrap:wrap;
}

.tab{
  padding:10px 14px;
  border-radius:999px; /* ✅ rounded */
  border:1px solid var(--border);
  background:rgba(255,255,255,.03);
  font-weight:900;
}

.tab.active{
  background:rgba(37,99,235,.22);
  border-color:rgba(37,99,235,.55)
}

/* Advanced section */
.adv{margin-top:10px}
.adv summary{cursor:pointer;color:var(--muted);font-weight:800}
.advgrid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:10px}
@media(max-width:900px){.advgrid{grid-template-columns:1fr}}

.input{
  width:100%;
  padding:12px 14px;
  border-radius:999px; /* ✅ rounded */
  border:1px solid var(--border);
  background:rgba(0,0,0,.25);
  color:var(--text);
  outline:none;
}

.label{display:block;margin-top:12px;margin-bottom:6px;color:var(--muted);font-size:13px}

.notice{
  margin-top:12px;
  padding:12px 12px;border-radius:16px;
  border:1px solid rgba(245,158,11,.4);
  background:rgba(245,158,11,.12);
  color:#ffe9c7;
}

.hint{margin-top:10px;color:var(--muted);font-size:13px}
.meta{margin-top:14px;color:var(--muted);font-size:13px}

.results{margin-top:12px;display:flex;flex-direction:column;gap:10px}
.card{
  padding:14px;border-radius:22px;
  border:1px solid var(--border);
  background:rgba(255,255,255,.04);
}

.rtitle{font-weight:900}
.rurl{color:rgba(234,240,255,.55);font-size:12px;margin-top:6px;word-break:break-all}
.rdesc{color:var(--muted);font-size:13px;margin-top:8px;line-height:1.4}

/* Marketplace grid */
.grid{
  margin-top:14px;
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
}
@media(max-width:900px){.grid{grid-template-columns:1fr}}

.tcard{
  border:1px solid var(--border);
  background:rgba(255,255,255,.04);
  border-radius:22px;
  overflow:hidden;
}

.timg{height:160px;background:rgba(255,255,255,.03)}
.timg img{width:100%;height:100%;object-fit:cover;display:block}
.tmeta{padding:12px}
.tname{font-weight:900}
.tdomain{color:var(--muted);font-size:12px;margin-top:6px}
.tprice{margin-top:8px;font-weight:900;color:#bfe3ff}

.foot{margin-top:20px;color:rgba(234,240,255,.45);font-size:12px}