.hua-points-page {
  max-width: 1080px;
}

.hua-points-hero {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 28px;
  border-radius: 24px;
  background: linear-gradient(120deg, #0c4076 0%, #185c9d 58%, #c6363c 140%);
  color: #fff;
}

.hua-points-hero h1 { margin: 5px 0; color: #fff; }
.hua-points-balance { min-width: 170px; padding: 18px; border-radius: 18px; background: rgba(255, 255, 255, .14); text-align: center; }
.hua-points-balance strong, .hua-points-balance small { display: block; }
.hua-points-balance strong { font-size: 42px; }
.hua-points-balance small { margin-top: 3px; color: rgba(255, 255, 255, .78); }
.hua-points-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 18px; margin-top: 18px; }
.hua-points-panel { margin-bottom: 18px; padding: 20px; border: 1px solid #e1e8f0; border-radius: 20px; background: #fff; }
.hua-points-panel h2 { margin-top: 0; }
.hua-points-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.hua-points-stat { padding: 14px; border-radius: 14px; background: #f5f8fc; }
.hua-points-stat strong { display: block; color: #0c4076; font-size: 24px; }
.hua-points-stat small { display: block; margin-top: 3px; color: #64748b; font-size: 11px; }
.hua-points-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.hua-points-actions form { margin: 0; }
.hua-points-actions button { width: 100%; padding: 12px; border: 0; border-radius: 12px; background: #c6363c; color: #fff; font-weight: 800; }
.hua-points-actions form + form button { background: #0c4076; }
.hua-point-ledger, .hua-referral-list { display: grid; gap: 9px; }
.hua-point-ledger article, .hua-referral-list article { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 10px 0; border-bottom: 1px solid #edf0f5; }
.hua-point-ledger article:last-child, .hua-referral-list article:last-child { border-bottom: 0; }
.hua-referral-pagination { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.hua-referral-pagination a { display: grid; min-width: 44px; min-height: 44px; place-items: center; border: 1px solid #dfe3e8; border-radius: 10px; color: #1b2b43; background: #fff; font-weight: 800; }
.hua-referral-pagination a.is-active { border-color: #ed1c24; color: #fff; background: #ed1c24; }
.hua-point-ledger b.is-positive { color: #087443; }
.hua-point-ledger b.is-negative { color: #c6363c; }
.hua-referral-milestone { margin: -2px 0 12px; padding: 14px; border: 1px solid #d7e4f2; border-radius: 14px; background: #f5f9fd; }
.hua-referral-milestone > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.hua-referral-milestone > div strong { color: #173f73; }
.hua-referral-milestone > div b { flex: 0 0 auto; color: #087443; }
.hua-referral-milestone progress { display: block; width: 100%; height: 10px; margin: 11px 0 7px; overflow: hidden; border: 0; border-radius: 999px; background: #dfe8f2; accent-color: #d9232e; }
.hua-referral-milestone progress::-webkit-progress-bar { border-radius: 999px; background: #dfe8f2; }
.hua-referral-milestone progress::-webkit-progress-value { border-radius: 999px; background: linear-gradient(90deg, #123a70, #d9232e); }
.hua-referral-milestone small { color: #5f6f82; }
.hua-referral-milestone-complete { padding: 12px; border-radius: 12px; color: #087443; background: #edf9f3; font-weight: 800; }
.hua-referral-funnel { margin: 0 0 14px; padding: 14px; border: 1px solid #d7e4f2; border-radius: 14px; background: #f8fbff; }
.hua-referral-funnel h3 { margin: 0 0 12px; color: #173f73; font-size: 14px; }
.hua-referral-funnel ol { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin: 0; padding: 0; list-style: none; }
.hua-referral-funnel li { position: relative; min-width: 0; padding: 10px 7px; border-radius: 10px; background: #fff; text-align: center; }
.hua-referral-funnel li:not(:last-child)::after { position: absolute; top: 50%; right: -7px; z-index: 1; width: 8px; height: 8px; border-top: 2px solid #9fb5cf; border-right: 2px solid #9fb5cf; content: ''; transform: translateY(-50%) rotate(45deg); }
.hua-referral-funnel span, .hua-referral-funnel strong, .hua-referral-funnel small { display: block; }
.hua-referral-funnel span { overflow: hidden; color: #64748b; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.hua-referral-funnel strong { margin-top: 3px; color: #0c4076; font-size: 22px; }
.hua-referral-funnel small { color: #087443; font-size: 11px; font-weight: 800; }
.hua-referral-funnel p { margin: 10px 0 0; color: #64748b; font-size: 12px; line-height: 1.45; }
.hua-points-rule-group + .hua-points-rule-group { margin-top: 16px; padding-top: 14px; border-top: 1px solid #edf0f5; }
.hua-points-rule-group h3 { margin: 0 0 8px; color: #0c4076; font-size: 14px; }
.hua-points-rule-group ul { display: grid; gap: 7px; margin: 0; padding-left: 20px; color: #475569; line-height: 1.45; }
.hua-points-policy, .hua-points-support { margin-top: 15px; padding: 13px; border-radius: 12px; }
.hua-points-policy { background: #f2f6fb; }
.hua-points-policy strong { color: #0c4076; }
.hua-points-policy p, .hua-points-support p { margin: 5px 0 0; color: #526174; line-height: 1.5; }
.hua-points-support { border: 1px solid #f0d4d6; background: #fff8f8; }
.hua-points-support a { display: inline-block; margin-top: 8px; color: #b9292f; font-weight: 800; }

@media (max-width: 760px) {
  .hua-points-hero, .hua-points-grid { grid-template-columns: 1fr; }
  .hua-points-page { width: 100%; }
  .hua-points-hero { padding: 20px 16px; border-radius: 18px; }
  .hua-points-balance { min-width: 0; text-align: left; }
  .hua-points-stats, .hua-points-actions { grid-template-columns: 1fr; }
  .hua-points-panel { padding: 16px; border-radius: 16px; }
  .hua-points-actions button { min-height: 48px; }
  .hua-referral-funnel { padding: 12px; }
  .hua-referral-funnel ol { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .hua-referral-funnel li { min-height: 72px; }
  .hua-referral-funnel li::after { display: none; }
}
