:root{
  --bg: #f7f7f7;
  --white: #ffffff;
  --ink: #0b0b0b;
  --muted: #5f5f5f;
  --line: rgba(0,0,0,.10);
  --line2: rgba(0,0,0,.14);
  --soft: rgba(0,0,0,.03);
  --shadow: 0 10px 30px rgba(0,0,0,.06);
  --shadow2: 0 8px 18px rgba(0,0,0,.08);
  --radius: 18px;
  --radius2: 14px;
  --max: 1200px;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  background: var(--bg);
  color: var(--ink);
}

a{ color:inherit; text-decoration:none; }

.hidden{ display:none !important; }

.shell{
  max-width: var(--max);
  margin:0 auto;
  padding: 0 18px;
}

.row{
  display:flex;
  align-items:center;
  gap:12px;
}

.btn{
  border:1px solid var(--ink);
  background: var(--ink);
  color: var(--white);
  font-weight: 900;
  font-size: 12px;
  padding: 10px 14px;
  border-radius: 999px;
  cursor:pointer;
  box-shadow: 0 10px 20px rgba(0,0,0,.08);
}
.btn:hover{ transform: translateY(-1px); box-shadow: 0 14px 26px rgba(0,0,0,.10); }
.btn:active{ transform: translateY(0); }

.btn.outline{
  background: var(--white);
  color: var(--ink);
  box-shadow:none;
}
.btn.outline:hover{ background: rgba(0,0,0,.03); }

.topbar{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.90);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.topbar-row{
  padding: 14px 0;
  justify-content: space-between;
}

.brand{
  display:flex;
  align-items:center;
  gap:10px;
  min-width: 56px;
}
.logo{
  width: 34px;
  height: 34px;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid var(--line2);
  background: #fff;
  box-shadow: 0 8px 18px rgba(0,0,0,.06);
}

.search{
  flex: 1;
  max-width: 720px;
  height: 44px;
  border: 1px solid var(--line2);
  border-radius: 999px;
  padding: 0 16px;
  font-size: 14px;
  outline: none;
  background: var(--white);
  box-shadow: 0 8px 20px rgba(0,0,0,.04);
}
.search:focus{
  border-color: rgba(0,0,0,.35);
  box-shadow: 0 10px 26px rgba(0,0,0,.08);
}

.userbox{ display:flex; align-items:center; gap:10px; }
.top-actions{ display:flex; align-items:center; gap:10px; }

.avatar-btn{
  border: 1px solid var(--line2);
  background: var(--white);
  width: 40px;
  height: 40px;
  border-radius: 999px;
  padding: 0;
  cursor: pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  box-shadow: 0 8px 18px rgba(0,0,0,.06);
}
.avatar-img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 999px;
}

/* nav */
.subbar{
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.subbar-row{
  padding: 10px 0;
  gap: 22px;
}
.navlink{
  border: none;
  background: transparent;
  font-weight: 1000;
  font-size: 13px;
  padding: 10px 4px;
  cursor:pointer;
  border-bottom: 2px solid transparent;
  color: rgba(0,0,0,.85);
}
.navlink:hover{ color: var(--ink); }
.navlink.active{
  border-bottom-color: var(--ink);
}

/* filter pills */
.filtersbar{
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.filters{
  display:flex;
  gap:10px;
  padding: 12px 0 14px;
  overflow:auto;
  scrollbar-width: none;
}
.filters::-webkit-scrollbar{ display:none; }

.pill{
  border: 1px solid var(--line2);
  background: var(--white);
  color: var(--ink);
  font-weight: 900;
  font-size: 12px;
  padding: 9px 12px;
  border-radius: 999px;
  cursor:pointer;
  white-space: nowrap;
}
.pill:hover{ background: rgba(0,0,0,.03); }
.pill.active{
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}

/* page layout */
.page{
  padding: 18px 0 40px;
}

/* section framing */
.section{
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
  margin: 16px 0;
}

.section-head{
  display:flex;
  align-items:flex-end;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 14px;
}
.section-title{
  margin:0;
  font-size: 20px;
  letter-spacing:.2px;
}
.section-sub{
  margin:6px 0 0;
  color: var(--muted);
  font-size: 13px;
}

/* carousel base */
.carousel-wrap{
  position: relative;
  padding: 6px 40px;
}

.carousel{
  display:flex;
  gap: 14px;
  overflow:auto;
  scroll-behavior: smooth;
  padding: 6px 2px 14px;
  scrollbar-width: thin;
}
.carousel::-webkit-scrollbar{ height: 10px; }
.carousel::-webkit-scrollbar-thumb{
  background: rgba(0,0,0,.18);
  border-radius: 999px;
}
.carousel::-webkit-scrollbar-track{
  background: rgba(0,0,0,.05);
  border-radius: 999px;
}

.car-arrow{
  position:absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid var(--line2);
  background: rgba(255,255,255,.95);
  box-shadow: var(--shadow2);
  cursor:pointer;
  font-weight: 1000;
  font-size: 18px;
  display:flex;
  align-items:center;
  justify-content:center;
}
.car-arrow.left{ left: 8px; }
.car-arrow.right{ right: 8px; }
.car-arrow:hover{ background: #fff; }

@media (max-width: 900px){
  .topbar-row{ gap: 10px; }
  .search{ max-width: none; height: 42px; }
  .carousel-wrap{ padding: 6px 10px; }
  .car-arrow{ display:none; }
}
