/* ── HaiPass — Estilos ─────────────────────────────────────── */
#haipass-app, #hp-dashboard {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  max-width: 600px;
  margin: 0 auto;
}

/* Pantallas cliente */
.hp-screen { display: none; }
.hp-screen.hp-active { display: block; }

.hp-header {
  background: #0F6E56;
  padding: 20px 16px 16px;
  text-align: center;
  border-radius: 16px 16px 0 0;
  color: #fff;
}
.hp-header p { margin: 0; }
.hp-biz-label  { font-size: 11px; opacity: .75; margin-bottom: 2px !important; }
.hp-biz-name   { font-size: 18px; font-weight: 600; }
.hp-pts-label  { font-size: 11px; opacity: .75; margin-top: 8px !important; }
.hp-pts-val    { font-size: 34px; font-weight: 700; line-height: 1.1; }

.hp-body {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-top: none;
  border-radius: 0 0 16px 16px;
  padding: 16px;
}

.hp-step-label {
  font-size: 10px;
  font-weight: 600;
  color: #888;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin: 0 0 10px;
}

.hp-field { margin-bottom: 10px; }
.hp-field label { font-size: 11px; color: #555; display: block; margin-bottom: 3px; }
.hp-field input {
  width: 100%;
  font-size: 14px;
  padding: 9px 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-sizing: border-box;
  outline: none;
  transition: border-color .15s;
}
.hp-field input:focus { border-color: #1D9E75; }

.hp-btn-main {
  width: 100%;
  padding: 11px;
  background: #1D9E75;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 4px;
  transition: opacity .15s;
}
.hp-btn-main:hover  { opacity: .9; }
.hp-btn-main:active { opacity: .8; }

.hp-btn-secondary {
  display: block;
  width: 100%;
  padding: 10px;
  background: #f5f5f5;
  color: #333;
  border: 1px solid #ddd;
  border-radius: 10px;
  font-size: 13px;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  margin-top: 8px;
  box-sizing: border-box;
}

.hp-legal {
  font-size: 10px;
  color: #aaa;
  text-align: center;
  margin: 8px 0 0;
  line-height: 1.4;
}

/* Confirmación */
.hp-success-wrap  { text-align: center; padding: 8px 0; }
.hp-success-circle {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #E1F5EE;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 10px;
  font-size: 26px; color: #0F6E56;
}
.hp-success-title { font-size: 16px; font-weight: 600; margin: 0 0 4px; color: #222; }
.hp-success-sub   { font-size: 12px; color: #666; margin: 0 0 12px; line-height: 1.5; }

.hp-pts-earned {
  background: #E1F5EE;
  border-radius: 10px;
  padding: 12px;
  text-align: center;
  margin-bottom: 10px;
}
.hp-pts-earned-num { font-size: 28px; font-weight: 700; color: #0F6E56; margin: 0; line-height: 1; }
.hp-pts-earned-lbl { font-size: 11px; color: #0F6E56; margin: 2px 0 0; }

.hp-sorteo-pill {
  display: inline-block;
  background: #FAEEDA;
  color: #633806;
  font-size: 11px;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 20px;
  margin-bottom: 10px;
}

/* ── Dashboard negocio ─────────────────────────────────────── */
.hp-db-header {
  background: #0F6E56;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 12px 12px 0 0;
  color: #fff;
}
.hp-db-header p { margin: 0; }
.hp-db-biz  { font-size: 17px; font-weight: 600; }
.hp-db-sub  { font-size: 11px; opacity: .75; }
.hp-db-badge {
  background: rgba(255,255,255,.2);
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 20px;
}

.hp-db-body {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-top: none;
  border-radius: 0 0 12px 12px;
  padding: 16px;
}

.hp-rule-box {
  background: #E1F5EE;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 12px;
  color: #085041;
  margin-bottom: 14px;
  line-height: 1.5;
}

.hp-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}
.hp-metric { background: #f7f7f7; border-radius: 8px; padding: 10px 12px; }
.hp-metric-lbl { font-size: 10px; color: #888; margin: 0 0 2px; }
.hp-metric-val { font-size: 22px; font-weight: 700; color: #0F6E56; margin: 0; }

.hp-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 12px;
  border-bottom: 1px solid #eee;
  padding-bottom: 8px;
  flex-wrap: wrap;
}
.hp-tab {
  font-size: 12px;
  padding: 5px 11px;
  border-radius: 20px;
  border: none;
  background: transparent;
  color: #888;
  cursor: pointer;
  font-family: inherit;
  transition: all .15s;
}
.hp-tab.active { background: #f0f0f0; color: #222; font-weight: 600; }

.hpd-panel { display: none; }
.hpd-panel.active { display: block; }

.hp-section-lbl {
  font-size: 10px;
  font-weight: 600;
  color: #999;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin: 0 0 8px;
}

/* Filas cliente / transacción */
.hpd-cliente-row, .hpd-txn-row, .hpd-bono-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
}
.hpd-cliente-row:last-child,
.hpd-txn-row:last-child,
.hpd-bono-row:last-child { border-bottom: none; }

.hpd-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 600;
  flex-shrink: 0;
}
.hpd-name  { font-size: 13px; font-weight: 500; color: #222; margin: 0 0 1px; }
.hpd-meta  { font-size: 10px; color: #999; margin: 0; }
.hpd-pts-r { margin-left: auto; text-align: right; flex-shrink: 0; }
.hpd-pts-n { font-size: 13px; font-weight: 600; color: #0F6E56; margin: 0; }
.hpd-pts-l { font-size: 9px; color: #aaa; margin: 0; }

.hpd-txn-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.hpd-txn-usd { font-size: 13px; font-weight: 500; color: #222; margin: 0; }
.hpd-txn-pts { font-size: 10px; color: #0F6E56; margin: 0; }
.hpd-txn-pts.rechazada { color: #A32D2D; }

.hpd-bono-icon {
  width: 30px; height: 30px;
  border-radius: 8px;
  background: #EEEDFE;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; flex-shrink: 0;
}
.hpd-bono-title { font-size: 12px; font-weight: 500; color: #222; margin: 0 0 1px; }
.hpd-bono-sub   { font-size: 10px; color: #999; margin: 0; }
.hpd-bono-status {
  margin-left: auto;
  font-size: 10px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 10px;
  flex-shrink: 0;
}
.hpd-bono-status.activo   { background: #E1F5EE; color: #085041; }
.hpd-bono-status.pendiente{ background: #FAEEDA; color: #633806; }

.hp-btn-add-bono {
  width: 100%;
  padding: 9px;
  border: 1px dashed #ccc;
  border-radius: 8px;
  background: transparent;
  color: #888;
  font-size: 12px;
  cursor: pointer;
  margin-top: 8px;
  font-family: inherit;
}

/* HaiCoin progress */
.hpd-coin-bar-wrap {
  background: #f0f0f0;
  border-radius: 3px;
  height: 6px;
  margin: 4px 0;
  overflow: hidden;
}
.hpd-coin-fill { height: 100%; border-radius: 3px; background: #BA7517; }

/* Formulario bono */
#hpd-form-bono input,
#hpd-form-bono textarea {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 13px;
  font-family: inherit;
  outline: none;
  box-sizing: border-box;
}
#hpd-form-bono input:focus,
#hpd-form-bono textarea:focus { border-color: #1D9E75; }

@media (max-width: 480px) {
  .hp-tabs { gap: 2px; }
  .hp-tab  { font-size: 11px; padding: 4px 8px; }
}
