:root{
  --stuart-bg: #020617;
  --stuart-panel: #020617;
  --stuart-card: #020617;
  --stuart-blue: #3b82f6;
  --stuart-blue-soft: #60a5fa;
  --stuart-text: #e5f3ff;
  --stuart-muted: #9ca3af;
  --stuart-border: #1f2937;
}

*{box-sizing:border-box;margin:0;padding:0}

body{
  font-family: system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;
  background:
    radial-gradient(circle at 0 0, rgba(59,130,246,.28), transparent 60%),
    radial-gradient(circle at 100% 120%, rgba(56,189,248,.15), transparent 55%),
    linear-gradient(135deg,#020617,#020617 40%,#020617 100%);
  color: var(--stuart-text);
  min-height: 100vh;
}

/* layout */

.container{
  max-width:1120px;
  margin:0 auto;
  padding:16px 16px 40px;
}

.row{
  display:flex;
  align-items:center;
  gap:8px;
}

.row.end{
  justify-content:flex-end;
}

/* TOPBAR */

.topbar{
  position:sticky;
  top:0;
  z-index:50;
  backdrop-filter:blur(18px);
  background:linear-gradient(120deg,rgba(15,23,42,.96),rgba(2,6,23,.98));
  border-bottom:1px solid rgba(148,163,184,.35);
}

.topbar .container{
  padding-top:10px;
  padding-bottom:10px;
}

.logo{
  height:30px;
}

/* inputs / buttons */

.input{
  background:rgba(15,23,42,1);
  border:1px solid #1f2937;
  border-radius:999px;
  padding:7px 12px;
  color:var(--stuart-text);
  font-size:13px;
}

.input:focus{
  outline:none;
  border-color:var(--stuart-blue);
}

.btn{
  border:none;
  border-radius:999px;
  padding:8px 16px;
  cursor:pointer;
  font-size:13px;
  font-weight:500;
  background:#111827;
  color:#e5f3ff;
}

.btn:hover{
  background:#020617;
}

.btn.primary{
  background:linear-gradient(135deg,#3b82f6,#22c55e);
  color:#020617;
}

.btn.primary:hover{
  filter:brightness(1.06);
}

.btn-back{
  background:transparent;
  border:1px solid #374151;
  color:#e5f3ff;
  margin-left:8px;
}

.btn-back:hover{
  background:rgba(15,23,42,.9);
}

/* HERO */

.stuart-hero{
  margin-top:16px;
  margin-bottom:18px;
  padding:18px 16px 18px;
  border-radius:26px;
  border:1px solid rgba(148,163,184,.4);
  background:
    radial-gradient(circle at 0 0,rgba(59,130,246,.4),transparent 60%),
    radial-gradient(circle at 100% 100%,rgba(22,163,74,.26),transparent 55%),
    linear-gradient(145deg,rgba(15,23,42,.98),rgba(2,6,23,.98));
  box-shadow:0 24px 70px rgba(0,0,0,.9);
}

.stuart-hero-main h1{
  font-size:22px;
  margin-bottom:4px;
}

.stuart-hero-main p{
  font-size:14px;
  color:var(--stuart-muted);
  max-width:620px;
}

.stuart-search{
  margin-top:12px;
  display:flex;
  gap:8px;
}

.stuart-search input{
  flex:1;
  padding:9px 12px;
  border-radius:999px;
  border:1px solid #1f2937;
  background:rgba(15,23,42,1);
  color:var(--stuart-text);
  font-size:13px;
}

.stuart-search input:focus{
  outline:none;
  border-color:var(--stuart-blue-soft);
}

.stuart-tags{
  margin-top:10px;
  display:flex;
  flex-wrap:wrap;
  gap:6px;
}

.tag{
  font-size:11px;
  padding:5px 10px;
  border-radius:999px;
  border:1px solid rgba(59,130,246,.7);
  color:#bfdbfe;
  background:rgba(30,64,175,.7);
}

/* GRID */

.section-title{
  font-size:18px;
  margin-bottom:10px;
}

.grid{
  display:grid;
  gap:16px;
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
}

.card{
  border-radius:20px;
  overflow:hidden;
  background:radial-gradient(circle at 0 0,rgba(148,163,184,.18),transparent 60%),
             rgba(15,23,42,1);
  border:1px solid #1f2937;
  box-shadow:0 22px 60px rgba(0,0,0,.85);
}

.box{
  padding:12px 14px 14px;
}

.box h3{
  font-size:15px;
  margin-bottom:8px;
}

.chips{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  margin-bottom:10px;
}

.chip{
  font-size:11px;
  padding:4px 8px;
  border-radius:999px;
  background:rgba(15,23,42,1);
  color:var(--stuart-muted);
  border:1px solid rgba(55,65,81,.9);
}

.chip strong{
  color:var(--stuart-text);
}

.star{
  color:#fbbf24;
}

/* MODAL */

.modal{
  position:fixed;
  inset:0;
  background:rgba(15,23,42,.75);
  display:flex;
  align-items:center;
  justify-content:center;
  z-index:100;
}

.modal.hidden{
  display:none;
}

.modal-box{
  background:#020617;
  border-radius:18px;
  padding:18px 18px 14px;
  max-width:450px;
  width:100%;
  border:1px solid #1f2937;
  box-shadow:0 24px 80px rgba(0,0,0,.95);
  color:var(--stuart-text);
}

.modal-box h3{
  margin-bottom:8px;
  font-size:16px;
}

.modal-box p{
  font-size:13px;
  color:var(--stuart-muted);
  margin-bottom:14px;
}

.modal-box label{
  display:block;
  font-size:13px;
  margin-bottom:8px;
}

.modal-box input[type="range"]{
  width:100%;
}

.modal-box textarea{
  width:100%;
  min-height:80px;
  resize:vertical;
  margin-top:4px;
  padding:6px 8px;
  border-radius:10px;
  border:1px solid #1f2937;
  background:#020617;
  color:var(--stuart-text);
  font-size:13px;
}

.modal-box-login{
  max-width:460px;
}

/* RESPONSIVE */

@media (max-width:720px){
  .topbar .container{
    flex-wrap:wrap;
  }
  .stuart-search{
    flex-direction:column;
  }
  .grid{
    grid-template-columns:minmax(0,1fr);
  }
}
