:root{
  --navy:#001f3f;
  --navy2:#002D62;
  --navy-light:#eef2ff;
  --light:#f4f6f9;
  --accent:#ff6a00;
  --green:#00b14f;
}
*{margin:0;padding:0;box-sizing:border-box;font-family:'Segoe UI', Roboto, sans-serif}
body{background:var(--light);color:#222}

/* TOP BAR */
.topbar{
  background:var(--navy);
  color:#fff;
  padding:14px 18px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  position:sticky;
  top:0;
  z-index:100;
}
.topbar a{color:#fff;text-decoration:none;font-weight:700}

/* SEARCH - NAVY */
.search-section{
  background:var(--navy);
  padding:22px 15px;
  text-align:center;
  color:#fff;
}
.search-section h2{font-size:20px;font-weight:700}
.search-box{
  display:flex;
  gap:8px;
  justify-content:center;
  flex-wrap:wrap;
  max-width:700px;
  margin:0 auto;
}
.search-box select,.search-box input{
  padding:13px 16px;
  border-radius:14px;
  border:none;
  min-width:150px;
  font-size:15px;
  outline:none;
  flex:1;
}
.search-box input{min-width:220px}
.search-box button{
  background:var(--accent);
  border:none;
  padding:13px 22px;
  border-radius:14px;
  color:#fff;
  font-weight:bold;
  cursor:pointer;
}

/* PILLS LIKE SCREENSHOT */
.top-pills{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  justify-content:center;
  padding:15px;
  max-width:1000px;
  margin:auto;
}
.pill{
  padding:9px 15px;
  border-radius:25px;
  font-size:12px;
  font-weight:700;
  border:1px solid #e5e7eb;
  background:#fff;
  cursor:pointer;
}
.pill.niche{background:#ede9fe;color:var(--navy2)}
.pill.sell{background:#dcfce7;color:#14532d}
.pill.job{background:#fef9c3;color:#713f12}
.pill.game{background:#dbeafe;color:#1e3a8a}
.pill.buy{background:#f3e8ff;color:#581c87}

/* CATEGORIES GRID - 4 columns like screenshot */
.cat-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:12px;
  padding:15px;
  max-width:1000px;
  margin:auto;
}
.cat-card{
  background:#fff;
  border-radius:18px;
  padding:14px 8px;
  text-align:center;
  box-shadow:0 2px 10px rgba(0,0,0,0.05);
  cursor:pointer;
  transition:0.2s;
}
.cat-card:hover{transform:translateY(-3px);box-shadow:0 6px 18px rgba(0,0,0,0.1)}
.cat-card .icon{font-size:28px;margin-bottom:6px}

/* ITEMS GRID */
.items-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(160px,1fr));
  gap:13px;
  padding:15px;
  max-width:1000px;
  margin:auto;
}
.item-card{
  background:#fff;
  border-radius:16px;
  overflow:hidden;
  box-shadow:0 2px 8px rgba(0,0,0,0.06);
  transition:0.2s;
}
.item-card:hover{transform:translateY(-2px)}
.item-card img{width:100%;height:135px;object-fit:cover;background:#ddd}
.item-card .info{padding:10px}
.price{color:var(--navy);font-weight:800;font-size:14px;margin-top:4px}

/* FORMS - Login/Register/Add */
.form-box{
  max-width:430px;
  margin:25px auto;
  background:#fff;
  padding:26px;
  border-radius:22px;
  box-shadow:0 8px 25px rgba(0,0,0,0.08);
}
.form-box h2{color:var(--navy);margin-bottom:15px;text-align:center}
.form-box input,.form-box select,.form-box textarea{
  width:100%;
  padding:13px;
  margin:7px 0;
  border-radius:12px;
  border:1px solid #d1d5db;
  font-size:14px;
  outline:none;
}
.form-box input:focus,.form-box select:focus,.form-box textarea:focus{
  border-color:var(--navy);
  box-shadow:0 0 0 3px var(--navy-light);
}
.btn{
  background:var(--navy);
  color:#fff;
  padding:13px 16px;
  border:none;
  border-radius:12px;
  width:100%;
  cursor:pointer;
  font-weight:700;
  font-size:15px;
  margin-top:8px;
  transition:0.2s;
}
.btn:hover{background:var(--navy2)}

/* BOTTOM NAV - Like App */
.bottom-nav{
  position:fixed;
  bottom:0;left:0;right:0;
  background:#fff;
  display:flex;
  justify-content:space-around;
  padding:10px 0 12px;
  border-top:1px solid #e5e7eb;
  z-index:99;
}
.bottom-nav a{
  color:#6b7280;
  text-decoration:none;
  font-size:11px;
  text-align:center;
  font-weight:600;
}
.bottom-nav a.active{color:var(--navy)}

/* MOBILE */
@media(max-width:600px){
  .cat-grid{grid-template-columns:repeat(3,1fr);gap:10px}
  .items-grid{grid-template-columns:repeat(2,1fr)}
  .search-box select,.search-box input{min-width:100%}
}