:root{
  --bg:#f6f8fb;
  --card:#ffffff;
  --muted:#7b7f87;
  --accent:#0aa70a;
  --danger:#d32f2f;
  --shadow: 0 6px 24px rgba(9,23,48,0.07);
  --radius:12px;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}
*{box-sizing:border-box}
body{
  margin:0;
  min-height:100vh;
  display:grid;
  place-items:center;
  background:var(--bg);
  padding:20px;
}

.card{
  width:380px;
  background:var(--card);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:18px;
}

h1{
  font-size:18px;
  margin:0 0 12px 0;
}

.label{
  display:block;
  font-size:12px;
  color:var(--muted);
  margin-top:10px;
  margin-bottom:6px;
}

.search-wrap{position:relative}
#stockInput{
  width:100%;
  padding:10px 12px;
  border-radius:10px;
  border:1px solid #e2e6ef;
  outline:none;
  font-size:14px;
}

.suggestions{
  position:absolute;
  left:0;
  right:0;
  top:46px;
  background:#fff;
  border:1px solid #e6e8f0;
  border-radius:8px;
  max-height:200px;
  overflow:auto;
  z-index:20;
  display:none;
  padding:6px 0;
  box-shadow: 0 6px 18px rgba(16,24,40,0.06);
}

.suggestions li{
  list-style:none;
  padding:8px 12px;
  cursor:pointer;
  font-size:13px;
}
.suggestions li:hover{background:#f5f7fb;}

.stock-info{
  margin-top:12px;
  padding:10px;
  border-radius:8px;
  background:#fbfcfe;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  font-weight:600;
}

.muted{font-size:12px;color:var(--muted); font-weight:500;}

.row{display:flex; gap:12px; margin-top:10px}
.col{flex:1}

input[type="number"], select{
  width:100%;
  padding:9px 10px;
  border-radius:8px;
  border:1px solid #e2e6ef;
  font-size:14px;
}

.actions{
  display:flex;
  gap:10px;
  margin-top:14px;
}

.btn{
  flex:1;
  padding:10px;
  border-radius:8px;
  border: none;
  font-weight:700;
  cursor:pointer;
}

.buy{background:var(--accent); color:#fff}
.sell{background:var(--danger); color:#fff}

.status{
  margin-top:10px;
  font-size:13px;
  min-height:20px;
  color:#111;
}
