:root{
  --max: 1100px;
  --gap: 16px;
  --radius: 16px;
  --border: 1px solid rgba(255,255,255,0.10);
  --shadow: 0 10px 30px rgba(0,0,0,0.25);
  --bg: #0b0f14;
  --card: #121821;
  --ink: #e9eef5;
  --muted: #b7c2d0;
  --accent: #6ee7ff;
}

*{ box-sizing:border-box; }
html,body{ margin:0; padding:0; background:var(--bg); color:var(--ink); min-height:100%; }
a{ color:inherit; text-decoration:none; }
a:hover{ text-decoration:underline; }

.msb-wrap{ min-height:100%; }
.msb-container{ max-width:var(--max); margin:0 auto; padding:24px; }

.msb-header{
  display:flex; align-items:center; justify-content:space-between;
  gap:var(--gap);
  padding:12px 16px;
  background:#0e141c;
  border-bottom:var(--border);
  position:sticky; top:0; z-index:20;
}
.msb-brand{ font-weight:800; letter-spacing:0.2px; }
.msb-nav{ display:flex; gap:10px; align-items:center; }

.msb-btn{
  background: linear-gradient(180deg, #1f2b3a, #101621);
  color: var(--ink);
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  cursor:pointer;
  box-shadow: var(--shadow);
  white-space:nowrap;
}
.msb-btn:hover{ filter:brightness(1.12); }
.msb-btn:disabled{ opacity:0.55; cursor:not-allowed; }

.msb-btn-ghost{
  background:#121821;
  border:1px solid rgba(255,255,255,0.12);
  box-shadow:none;
}

.msb-panel{
  background:var(--card);
  border:var(--border);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:16px;
  margin-bottom:16px;
}

.msb-note{ color:var(--muted); }
.msb-mono{ font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace; }

.msb-grid{
  display:grid;
  gap:var(--gap);
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.msb-card{
  background: linear-gradient(180deg, #111824, #0e1420);
  border:var(--border);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  overflow:hidden;
}
.msb-card-pad{ padding:14px; display:flex; flex-direction:column; gap:10px; }
.msb-badge{
  display:inline-block;
  font-size:12px;
  padding:6px 10px;
  border-radius:999px;
  background:#11222a;
  color:#a9e9ff;
  width:fit-content;
}
.msb-title{ font-size:18px; font-weight:800; }
.msb-price{ font-size:18px; font-weight:800; }
.msb-actions{ margin-top:auto; display:flex; gap:10px; }

.msb-footer-space{ height:40px; }

/* Cart */
.msb-h2{ margin:0 0 12px 0; }

.msb-cart-scroller{
  overflow-x:auto;
  -webkit-overflow-scrolling:touch;
  border-radius:12px;
  border:1px solid rgba(255,255,255,0.10);
}

.msb-table{
  width:100%;
  min-width:720px;
  border-collapse:collapse;
  background:#0b0d12;
}
.msb-table th, .msb-table td{
  padding:12px 12px;
  border-bottom:1px solid rgba(255,255,255,0.08);
  vertical-align:top;
}
.msb-table th{ color:var(--muted); text-align:left; font-weight:700; }
.msb-right{ text-align:right; }

.msb-qty{
  width:80px;
  padding:8px 10px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,0.12);
  background:#0a1018;
  color:var(--ink);
}

.msb-total-row td{
  font-weight:900;
  border-bottom:0;
}

.msb-line-title{ font-weight:800; }
.msb-line-sub{ color:var(--muted); margin-top:4px; }
.msb-line-sku{ color:#9fb0c6; margin-top:6px; }

.msb-cart-actions{
  display:flex;
  gap:10px;
  align-items:center;
  margin-top:14px;
  flex-wrap:wrap;
}
.msb-helper{ color:var(--muted); display:block; margin-top:10px; }
.msb-dim{ border:0; border-top:1px solid rgba(255,255,255,0.10); margin:16px 0; }

/* Modal */
body.msb-lock{ overflow:hidden; }

.msb-modal[aria-hidden="true"]{ display:none; }
.msb-modal{ position:fixed; inset:0; z-index:50; display:block; }
.msb-modal-backdrop{ position:absolute; inset:0; background:rgba(0,0,0,0.65); }

.msb-modal-card{
  position:relative;
  width:min(720px, calc(100% - 24px));
  margin:70px auto;
  background:var(--card);
  border:var(--border);
  border-radius:18px;
  box-shadow:var(--shadow);
  overflow:hidden;
}
.msb-modal-head{
  display:flex; justify-content:space-between; align-items:flex-start;
  padding:14px 16px;
  border-bottom:1px solid rgba(255,255,255,0.10);
  background:#0f1621;
}
.msb-modal-title{ font-size:18px; font-weight:900; }
.msb-modal-sub{ color:var(--muted); margin-top:4px; }

.msb-icon-btn{
  border:1px solid rgba(255,255,255,0.12);
  background:#121821;
  color:var(--ink);
  border-radius:12px;
  padding:8px 10px;
  cursor:pointer;
}

.msb-modal-body{ padding:16px; }

.msb-form{
  display:grid;
  gap:12px;
}
.msb-form label span{
  display:block;
  font-weight:700;
  margin-bottom:6px;
}
.msb-form select{
  width:100%;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,0.12);
  background:#0a1018;
  color:var(--ink);
}

.msb-built{
  padding:12px;
  border:1px solid rgba(255,255,255,0.10);
  border-radius:14px;
  background:#0a1018;
}
.msb-built-row{
  display:flex;
  justify-content:space-between;
  gap:12px;
  margin:6px 0;
}
.msb-built-label{ color:var(--muted); }
.msb-built-sku{ font-weight:900; }
.msb-built-price{ font-weight:900; }

.msb-actions{
  display:flex;
  gap:10px;
  justify-content:flex-start;
  flex-wrap:wrap;
}
