:root{
  --hbw-red:#d6111e;
  --hbw-gold:#ddc76d;
  --hbw-black:#000;
  --hbw-white:#fff;
  --hbw-bg: #0b0b0c;
  --hbw-card: #111214;
  --hbw-border: rgba(255,255,255,.12);
  --hbw-muted: rgba(255,255,255,.70);
  --hbw-shadow: 0 14px 30px rgba(0,0,0,.25);
  --hbw-radius: 16px;
}

.hbw-card{
  color: var(--hbw-white);
  background: radial-gradient(1200px 300px at 20% 0%, rgba(214,17,30,.22), transparent 60%),
              radial-gradient(900px 260px at 80% 10%, rgba(221,199,109,.18), transparent 60%),
              var(--hbw-card);
  border: 1px solid var(--hbw-border);
  border-radius: var(--hbw-radius);
  box-shadow: var(--hbw-shadow);
  padding: 16px;
  max-width: 520px;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

.hbw-header{
  display:flex;
  gap:12px;
  align-items:flex-start;
  justify-content:space-between;
  margin-bottom: 12px;
}

.hbw-title{
  margin:0;
  font-size: 18px;
  letter-spacing: .2px;
}

.hbw-subtitle{
  margin: 4px 0 0 0;
  font-size: 13px;
  color: var(--hbw-muted);
}

.hbw-btn{
  background: var(--hbw-red);
  color: var(--hbw-white);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px;
  padding: 10px 12px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .08s ease, filter .15s ease, background .15s ease;
}

.hbw-btn:hover{ filter: brightness(1.05); }
.hbw-btn:active{ transform: translateY(1px); }

.hbw-btn--ghost{
  background: transparent;
  border-color: rgba(255,255,255,.18);
  color: var(--hbw-white);
}

.hbw-form{
  margin: 8px 0 12px 0;
  padding: 10px;
  border: 1px dashed rgba(221,199,109,.35);
  border-radius: 12px;
  background: rgba(0,0,0,.20);
}

.hbw-label{
  display:block;
  font-size: 12px;
  color: var(--hbw-muted);
  margin-bottom: 6px;
}

.hbw-row{
  display:flex;
  gap: 10px;
}

.hbw-input{
  flex:1;
  min-width: 0;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(0,0,0,.35);
  color: var(--hbw-white);
  outline: none;
}

.hbw-input:focus{
  border-color: rgba(221,199,109,.65);
  box-shadow: 0 0 0 4px rgba(221,199,109,.18);
}

.hbw-body{
  padding: 8px 0 4px 0;
}

.hbw-status{
  display:flex;
  align-items:center;
  gap:10px;
  color: var(--hbw-muted);
  font-size: 13px;
}

.hbw-spinner{
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.25);
  border-top-color: var(--hbw-gold);
  animation: hbwspin .8s linear infinite;
}

@keyframes hbwspin { to { transform: rotate(360deg); } }

.hbw-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-items: start;
}

.hbw-big{
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(0,0,0,.24);
  border: 1px solid rgba(255,255,255,.10);
}

.hbw-temp{
  font-size: 44px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -1px;
}

.hbw-unit{
  font-size: 24px;
  opacity: .85;
  margin-left: 4px;
}

.hbw-desc{
  margin-top: 6px;
  color: var(--hbw-muted);
  text-transform: capitalize;
}

.hbw-metrics{
  margin:0;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(0,0,0,.20);
  border: 1px solid rgba(255,255,255,.10);
}

.hbw-metric{
  display:flex;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.hbw-metric:last-child{ border-bottom: none; }

.hbw-metric dt{
  color: var(--hbw-muted);
  font-size: 13px;
}

.hbw-metric dd{
  margin:0;
  font-weight: 800;
}

.hbw-error{
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(214,17,30,.14);
  border: 1px solid rgba(214,17,30,.35);
  color: var(--hbw-white);
  font-weight: 700;
}

.hbw-footer{
  margin-top: 12px;
  display:flex;
  justify-content:flex-end;
}

.hbw-badge{
  font-size: 11px;
  color: rgba(255,255,255,.68);
  border: 1px solid rgba(255,255,255,.12);
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(0,0,0,.18);
}
