:root{
  --bg:#0f2a44;
  --card:#ffffff;
  --text:#0b1726;
  --muted:#5a6a7c;
  --primary:#163a5c;
  --primary-2:#0d2236;
}
*{box-sizing:border-box}
body{
  margin:0;
  background:var(--bg);
  font-family:Arial,Helvetica,sans-serif;
  color:#fff;
}
.app{
  max-width:640px;
  margin:0 auto;
  min-height:100vh;
  padding-bottom:88px;
}
.header{
  padding:18px 16px 10px;
  font-size:22px;
  font-weight:700;
}
.toolbar{
  position:sticky;
  top:0;
  z-index:10;
  background:linear-gradient(180deg,var(--bg),rgba(15,42,68,.95));
  padding:0 12px 12px;
}
.search{
  width:100%;
  border:0;
  border-radius:14px;
  padding:14px 16px;
  font-size:16px;
  outline:none;
}
.chips{
  display:flex;
  gap:8px;
  overflow:auto;
  padding-top:10px;
  -ms-overflow-style:none;
  scrollbar-width:none;
}
.chips::-webkit-scrollbar{display:none}
.chip{
  border:1px solid rgba(255,255,255,.25);
  color:#fff;
  border-radius:999px;
  padding:9px 12px;
  font-size:14px;
  white-space:nowrap;
  background:transparent;
}
.chip.active{
  background:#fff;
  color:var(--primary-2);
  border-color:#fff;
}
.list{
  padding:6px 12px 16px;
}
.card{
  background:var(--card);
  color:var(--text);
  border-radius:18px;
  padding:16px;
  margin:0 0 12px;
  box-shadow:0 10px 26px rgba(0,0,0,.16);
}
.title{
  font-size:18px;
  font-weight:700;
  line-height:1.25;
}
.sub{
  margin-top:4px;
  color:var(--muted);
  font-size:14px;
}
.margin{
  margin-top:12px;
  font-weight:700;
  font-size:15px;
}
.price{
  margin-top:12px;
  font-size:28px;
  font-weight:800;
}
.actions{
  display:flex;
  gap:8px;
  margin-top:14px;
}
.btn{
  flex:1;
  border:0;
  border-radius:14px;
  padding:14px 12px;
  font-size:15px;
  font-weight:700;
}
.btn-primary{
  background:var(--primary);
  color:#fff;
}
.btn-secondary{
  background:#eef3f8;
  color:var(--primary-2);
}
.sheet{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.45);
  display:none;
  align-items:flex-end;
  justify-content:center;
  padding:0;
  z-index:50;
}
.sheet.open{display:flex}
.sheet-card{
  width:100%;
  max-width:640px;
  background:#fff;
  color:var(--text);
  border-radius:20px 20px 0 0;
  padding:16px 16px 26px;
  max-height:86vh;
  overflow:auto;
}
.sheet-handle{
  width:44px;
  height:5px;
  border-radius:99px;
  background:#ced7df;
  margin:0 auto 12px;
}
.detail-title{
  font-size:20px;
  font-weight:800;
}
.detail-row{
  margin-top:10px;
  color:var(--muted);
  font-size:14px;
}
.detail-price{
  margin-top:16px;
  font-size:26px;
  font-weight:800;
}
.detail-box{
  margin-top:14px;
  background:#f5f8fb;
  border-radius:14px;
  padding:14px;
  font-size:14px;
  color:var(--text);
}
.close{
  margin-top:14px;
  width:100%;
}
.bottom-nav{
  position:fixed;
  left:0;
  right:0;
  bottom:0;
  display:flex;
  justify-content:center;
  pointer-events:none;
}
.bottom-nav-inner{
  pointer-events:auto;
  width:100%;
  max-width:640px;
  background:#10263c;
  border-top:1px solid rgba(255,255,255,.08);
  display:flex;
  justify-content:space-around;
  padding:10px 6px calc(10px + env(safe-area-inset-bottom));
}
.nav-item{
  color:#d5deea;
  font-size:13px;
  text-align:center;
}
