:root{
  --bg:#0e1326;
  --bg2:#0b1020;

  --surface:#141a34;
  --surface-soft:#171f3d;

  --text:#eef2ff;
  --muted:#a8b3d9;

  --accent:#5aa7ff;
  --accent-soft:#7fc2ff;

  --border:rgba(255,255,255,.08);

  --shadow-card:0 12px 40px rgba(0,0,0,.45);
}

/* HARD STOP: prevent page overflow */
*{box-sizing:border-box}
html,body{
  margin:0;
  padding:0;
  width:100%;
  max-width:100%;
  overflow-x:hidden;
}
img,video,svg,canvas{
  max-width:100%;
  height:auto;
  display:block;
}

/* BASE */
body{
  font-family: system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  background: linear-gradient(180deg,var(--bg),var(--bg2));
  color:var(--text);
  line-height:1.55;
}

a{color:inherit;text-decoration:none}
.container{
  max-width:1120px;
  margin:0 auto;
  padding:0 18px;
  overflow-x:clip;
}

/* NAV */
.nav{
  position:sticky;
  top:0;
  z-index:20;
  background:rgba(14,19,38,.82);
  backdrop-filter: blur(14px);
  border-bottom:1px solid var(--border);
}
.nav-inner{
  display:flex;
  flex-direction:column;
  gap:12px;
  padding:14px 0;
}
@media(min-width:900px){
  .nav-inner{
    flex-direction:row;
    justify-content:space-between;
    align-items:center;
  }
}
.brand{
  display:flex;
  align-items:center;
  gap:12px;
  font-weight:900;
}
.logo{
  width:36px;
  height:36px;
  border-radius:12px;
  background:linear-gradient(135deg,var(--accent),var(--accent-soft));
  box-shadow:0 6px 22px rgba(90,167,255,.35);
  overflow:hidden;
}
.logo img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.nav-links{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}
.pill{
  padding:8px 14px;
  border-radius:999px;
  border:1px solid var(--border);
  background:rgba(255,255,255,.04);
  font-weight:650;
}
.pill:hover{background:rgba(255,255,255,.08)}

/* LAYOUT */
.hero{padding:28px 0 10px}
.section{padding:20px 0}
h1{font-size:34px;margin:0 0 10px}
@media(min-width:700px){h1{font-size:40px}}
h2{font-size:21px;margin:0 0 10px}
p{margin:0 0 10px}
ul{margin:10px 0 0 18px}

.lead{color:var(--muted);font-size:16px}
.muted{color:var(--muted)}
.strong{font-weight:900}

.hr{height:1px;background:var(--border);margin:20px 0}

/* CARDS */
.card{
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:18px;
  box-shadow:var(--shadow-card);
}
.pad{padding:18px}

/* BADGES */
.badge{
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-size:12px;
  font-weight:650;
  color:var(--muted);
  padding:6px 12px;
  border-radius:999px;
  border:1px solid var(--border);
  background:rgba(255,255,255,.03);
}

/* LISTINGS GRID */
#cards{
  display:grid;
  gap:16px;
}
.listing-meta{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  justify-content:space-between;
  align-items:center;
}

/* CHIP ROW */
.chips{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:10px;
}

/* STATUS BADGES (this is what you expected to see) */
.status{
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-size:12px;
  font-weight:800;
  padding:6px 12px;
  border-radius:999px;
  border:1px solid var(--border);
  background:rgba(255,255,255,.03);
  color:var(--muted);
}
.status.available{
  background: rgba(76,175,80,.14);
  border-color: rgba(76,175,80,.35);
  color:#a8ffbe;
}
.status.pending{
  background: rgba(255,193,7,.14);
  border-color: rgba(255,193,7,.35);
  color:#ffe49a;
}
.status.filled{
  background: rgba(160,160,160,.12);
  border-color: rgba(160,160,160,.25);
  color:#d7d7d7;
}
.status.demo{
  background: rgba(144,164,255,.14);
  border-color: rgba(144,164,255,.35);
  color:#c3d0ff;
}

/* VERIFIED LINE */
.verified-line{
  margin-top:8px;
  color:var(--muted);
  font-weight:700;
  font-size:12px;
}

/* PHOTO PREVIEW */
.photo-preview{
  margin-top:12px;
  border-radius:16px;
  overflow:hidden;
  border:1px solid var(--border);
  background:#0b1020;
}
.photo-preview button{
  all:unset;
  display:block;
  width:100%;
  cursor:pointer;
}
.photo-preview img{
  width:100%;
  height:180px;
  object-fit:cover;
}
@media(min-width:650px){
  .photo-preview img{height:220px}
}

/* FILTER BAR */
.filters{
  display:grid;
  gap:12px;
  margin-top:14px;
}
@media(min-width:800px){
  .filters{
    grid-template-columns: 1.3fr .7fr .7fr .7fr;
    align-items:end;
  }
}
.field label{
  display:block;
  color:var(--muted);
  font-weight:700;
  font-size:12px;
  margin-bottom:6px;
}
.field input, .field select{
  width:100%;
  height:44px;
  border-radius:14px;
  border:1px solid var(--border);
  background:rgba(255,255,255,.04);
  color:var(--text);
  padding:0 12px;
  outline:none;
}
.actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:12px;
}
.btn{
  height:44px;
  border-radius:14px;
  border:1px solid var(--border);
  background:rgba(255,255,255,.06);
  color:var(--text);
  font-weight:900;
  padding:0 14px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}

/* MODAL */
.modal{
  position:fixed;
  inset:0;
  background:rgba(6,9,22,.90);
  z-index:9999;
  display:none;
}
.modal.open{display:block}

.modal-inner{
  position:absolute;
  inset:0;
  display:flex;
  flex-direction:column;
  gap:12px;
  padding:16px;
}
.modal-top{
  display:flex;
  justify-content:space-between;
  align-items:center;
}
.modal-close{
  width:42px;height:42px;
  border-radius:12px;
  border:1px solid var(--border);
  background:rgba(255,255,255,.08);
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
}
.modal-stage{
  flex:1;
  border-radius:18px;
  overflow:hidden;
  border:1px solid var(--border);
  background:#000;
}
.modal-stage img{
  width:100%;
  height:100%;
  object-fit:contain;
}
.modal-nav{
  display:flex;
  gap:10px;
}
.modal-btn{
  flex:1;
  height:44px;
  border-radius:14px;
  border:1px solid var(--border);
  background:rgba(255,255,255,.06);
  color:var(--text);
  font-weight:800;
}
.modal-counter{
  min-width:110px;
  display:flex;
  align-items:center;
  justify-content:center;
  color:var(--muted);
  font-weight:800;
  font-size:13px;
}

/* FOOTER */
.footer{
  padding:32px 0 46px;
  color:var(--muted);
}