/* HayHomes Tools UI v2 (brand: #FFD500 + black) */
:root{
  --hh-yellow:#FFD500;
  --hh-yellow-hover:#e6c200;
  --hh-black:#111111;
  --hh-text:#111111;
  --hh-muted:#666666;
  --hh-bg:#f4f4f4;
  --hh-card:#ffffff;
  --hh-border:#e6e6e6;
  --hh-soft:#fffef7;
  --hh-danger:#d32f2f;
  --hh-success:#2a7100;
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:'Inter',system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Arial,sans-serif;
  background:var(--hh-bg);
  color:var(--hh-text);
}
a{color:inherit}
.hh-shell{min-height:100%; display:flex; flex-direction:column}
.hh-container{
  max-width: 920px;
  width: calc(100% - 32px);
  margin: 28px auto;
  background: var(--hh-card);
  border-radius: 20px;
  box-shadow: 0 12px 40px rgba(0,0,0,.08);
  padding: 26px;
}
.hh-title{
  margin: 0 0 6px 0;
  text-align:center;
  font-size: 26px;
  letter-spacing:-0.2px;
  color:var(--hh-black);
}
.hh-subtitle{
  margin: 0 0 22px 0;
  text-align:center;
  color: var(--hh-muted);
  font-size: 14px;
}
.hh-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 26px;
}
@media (max-width: 860px){
  .hh-grid{grid-template-columns: 1fr}
  .hh-container{width: calc(100% - 24px); margin: 18px auto; padding: 18px}
  .hh-title{font-size:22px}
}
label{
  display:block;
  margin: 0 0 6px 0;
  font-weight: 800;
  font-size: 14px;
  color: var(--hh-black);
}
.hh-help{
  font-weight:700;
  font-size: 12px;
  color: var(--hh-muted);
  margin-left: 8px;
  cursor: help;
}
input, select{
  width:100%;
  padding: 12px 12px;
  border: 1px solid var(--hh-border);
  border-radius: 12px;
  font-size: 15px;
  background: #fff;
  margin: 0 0 14px 0;
  transition: box-shadow .15s ease, border-color .15s ease;
}
input:focus, select:focus{
  outline:none;
  border-color: var(--hh-yellow);
  box-shadow: 0 0 0 3px rgba(255,213,0,.25);
}
.hh-error{
  display:none;
  color: var(--hh-danger);
  font-size: 12px;
  margin: -10px 0 10px 0;
}
.hh-note{
  background: #fff8dc;
  border-left: 6px solid var(--hh-yellow);
  padding: 14px 16px;
  border-radius: 14px;
  margin: 14px 0 18px 0;
  font-size: 14px;
  color:#333;
}
.hh-result{
  background: var(--hh-soft);
  border: 1px solid #f1e6a8;
  border-radius: 14px;
  padding: 18px;
  margin-top: 18px;
}
.hh-result h3{margin:0 0 8px 0; font-size:16px}
.hh-value{
  font-weight: 900;
  color: var(--hh-black);
}
.hh-value.pos{color: var(--hh-success)}
.hh-value.neg{color: var(--hh-danger)}
.hh-btn{
  width:100%;
  padding: 14px 16px;
  border: 0;
  border-radius: 14px;
  cursor:pointer;
  background: var(--hh-yellow);
  color: var(--hh-black);
  font-weight: 900;
  font-size: 15px;
  letter-spacing: .2px;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.hh-btn:hover{
  background: var(--hh-yellow-hover);
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(0,0,0,.14);
}
.hh-btn:active{transform: translateY(0)}
.hh-btn.secondary{
  background: #111;
  color: #fff;
}
.hh-btn.secondary:hover{
  background: #000;
}
.hh-actions{
  display:flex;
  gap: 12px;
  flex-wrap:wrap;
  margin-top: 10px;
}
.hh-actions .hh-btn{flex:1; width:auto}
.hh-tablewrap{overflow:auto; margin-top: 10px}
table{
  width:100%;
  border-collapse: collapse;
  border-radius: 14px;
  overflow:hidden;
}
th,td{
  border:1px solid var(--hh-border);
  padding: 10px;
  font-size: 13px;
  text-align: right;
  white-space: nowrap;
}
th{
  background: var(--hh-yellow);
  color: var(--hh-black);
  font-weight: 900;
}
th:first-child, td:first-child{text-align:center}
.hh-smallbtn{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding: 6px 10px;
  border-radius: 12px;
  border:1px solid var(--hh-border);
  background:#fff;
  cursor:pointer;
  font-weight: 900;
  font-size: 12px;
}
.hh-smallbtn:hover{border-color: var(--hh-yellow)}
/* Popup */
.hh-overlay{
  display:none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.38);
  z-index: 999;
}
.hh-popup{
  display:none;
  position: fixed;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  width: min(420px, 92vw);
  background:#fff;
  border: 1px solid var(--hh-border);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 20px 70px rgba(0,0,0,.22);
}
.hh-popup h3{
  margin: 0 0 12px 0;
  font-size: 16px;
}
.hh-popup .hh-valuebox{
  margin: 10px 0;
  padding: 12px;
  border-radius: 12px;
  background: var(--hh-soft);
  border: 1px solid #f1e6a8;
  text-align:center;
  font-weight: 900;
}
.hh-footer{
  text-align:center;
  color:#777;
  font-size: 13px;
  padding: 18px 10px 26px 10px;
}
