/* H5 free-energy quota hero final layout fix. */
@media (max-width: 768px) {
  body.free-h5-mode .topbar {
    padding: 10px 0 12px !important;
  }

  body.free-h5-mode .topbar::after {
    display: none !important;
    content: none !important;
  }

  body.free-h5-mode .hero-grid {
    margin-top: 10px !important;
    padding-left: 8px !important;
    padding-right: 8px !important;
  }

  body.free-h5-mode .action-panel {
    width: 100% !important;
    border-radius: 8px !important;
    padding: 18px 12px 22px !important;
    overflow: visible !important;
  }

  body.free-h5-mode .free-energy-widget.free-energy-h5 {
    width: 100% !important;
  }

  body.free-h5-mode .action-head {
    margin-bottom: 14px !important;
  }

  body.free-h5-mode .action-head h2,
  body.free-h5-mode #actionTitle {
    display: flex !important;
    align-items: center !important;
    min-height: 32px !important;
    margin: 0 0 12px !important;
    color: #0f172a !important;
    font-size: 20px !important;
    line-height: 1.25 !important;
    font-weight: 900 !important;
    overflow: visible !important;
  }

  body.free-h5-mode .action-head h2::before {
    height: 22px !important;
  }

  body.free-h5-mode .free-energy-widget.free-energy-h5 .free-energy-quota {
    min-height: 124px !important;
    padding: 14px 16px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    overflow: hidden !important;
    border-radius: 18px !important;
    background: #337fda url("./free-energy-assets/free-energy-quota-bg.png?v=2026070601") center / cover no-repeat !important;
    box-shadow: 0 14px 30px rgba(22, 119, 255, .24) !important;
  }

  body.free-h5-mode .free-energy-widget.free-energy-h5 .free-energy-quota::before {
    display: none !important;
    content: none !important;
  }

  body.free-h5-mode .free-energy-widget.free-energy-h5 .free-quota-copy {
    position: relative !important;
    z-index: 3 !important;
    max-width: 55% !important;
    display: grid !important;
    align-content: center !important;
    min-height: 96px !important;
  }

  body.free-h5-mode .free-energy-widget.free-energy-h5 .free-quota-copy span {
    margin-bottom: 8px !important;
    color: rgba(255, 255, 255, .82) !important;
    font-size: 12px !important;
    line-height: 1 !important;
  }

  body.free-h5-mode .free-energy-widget.free-energy-h5 .free-quota-copy b {
    display: flex !important;
    align-items: flex-end !important;
    gap: 5px !important;
    margin: 0 0 8px !important;
    color: #fff !important;
    line-height: .86 !important;
    white-space: nowrap !important;
  }

  body.free-h5-mode .free-energy-widget.free-energy-h5 .free-quota-copy em {
    display: block !important;
    font-size: 54px !important;
    line-height: .86 !important;
    letter-spacing: 0 !important;
  }

  body.free-h5-mode .free-energy-widget.free-energy-h5 .free-quota-copy small {
    display: block !important;
    padding-bottom: 4px !important;
    color: #fff !important;
    font-size: 24px !important;
    line-height: 1 !important;
  }

  body.free-h5-mode .free-energy-widget.free-energy-h5 .free-quota-copy p {
    margin: 0 !important;
    color: rgba(255, 255, 255, .86) !important;
    font-size: 11px !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
  }

  body.free-h5-mode .free-energy-widget.free-energy-h5 .free-energy-orb {
    display: none !important;
  }

  body.free-h5-mode .free-energy-stats .free-check-stat b.free-check-bad {
    width: fit-content !important;
    padding: 3px 8px !important;
    border-radius: 999px !important;
    background: #fff1f2 !important;
    color: #e11d48 !important;
    font-size: 15px !important;
  }

  body.free-h5-mode .free-energy-stats .free-check-stat b.free-check-ok {
    width: fit-content !important;
    padding: 3px 8px !important;
    border-radius: 999px !important;
    background: #ecfdf5 !important;
    color: #059669 !important;
    font-size: 15px !important;
  }

  body.free-h5-mode .free-energy-stats .free-check-stat.is-ok {
    border-color: #bbf7d0 !important;
    box-shadow: 0 10px 24px rgba(16, 185, 129, .10) !important;
  }

  body.free-h5-mode .free-energy-stats .free-check-stat.is-ok em {
    background: linear-gradient(90deg, #34d399, #10b981) !important;
  }

  body .app-shell main.page .action-panel,
  body .app-shell main.page .action-panel * {
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  body .app-shell main.page .action-panel .hash-grid,
  body .app-shell main.page .action-panel .hash-card,
  body .app-shell main.page .action-panel .hash-rules,
  body .app-shell main.page .action-panel .risk-card,
  body .app-shell main.page .action-panel .form-row {
    min-width: 0 !important;
    width: 100% !important;
    overflow: hidden !important;
  }

  body .app-shell main.page .action-panel #hashType,
  body .app-shell main.page .action-panel select.input {
    width: 100% !important;
    min-width: 0 !important;
    display: block !important;
  }

  body .app-shell main.page .action-panel .address-box {
    width: 100% !important;
    min-width: 0 !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: break-all !important;
  }

  body .app-shell main.page .action-panel .hash-result-grid {
    grid-template-columns: 1fr !important;
  }

  body .app-shell main.page .action-panel .hash-rule-head {
    align-items: flex-start !important;
    flex-direction: column !important;
  }

  body .app-shell main.page .action-panel .hash-rules ol,
  body .app-shell main.page .action-panel .hash-rules li,
  body .app-shell main.page .action-panel .hash-rules p,
  body .app-shell main.page .action-panel .risk-card span {
    max-width: 100% !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
  }
}

@media (max-width: 768px) {
  .profile-menu .profile-dropdown,
  .profile-menu.open .profile-dropdown,
  .profile-menu.logged-in .profile-dropdown {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  .profile-menu.open #accountBtn {
    box-shadow: 0 8px 20px rgba(22, 119, 255, .14) !important;
  }

  [data-service="package"] {
    display: none !important;
  }

  body .app-shell main.page .services-panel {
    margin: 14px 8px 0 !important;
    padding: 14px 12px 12px !important;
    border-radius: 10px !important;
    background: rgba(255, 255, 255, .96) !important;
    border: 1px solid #e5eaf2 !important;
    box-shadow: 0 10px 30px rgba(15, 23, 42, .06) !important;
  }

  body .app-shell main.page .services-panel .panel-title {
    margin-bottom: 12px !important;
  }

  body .app-shell main.page .services-panel .title-left {
    gap: 7px !important;
  }

  body .app-shell main.page .services-panel .title-icon {
    width: 16px !important;
    height: 16px !important;
    border-radius: 5px !important;
    background: transparent !important;
    color: #1677ff !important;
    box-shadow: none !important;
    transform: rotate(45deg) !important;
  }

  body .app-shell main.page .services-panel .title-icon svg {
    display: none !important;
  }

  body .app-shell main.page .services-panel .title-icon::before {
    content: "";
    width: 9px;
    height: 9px;
    display: block;
    border-radius: 2px;
    background: linear-gradient(135deg, #1677ff, #7c6df2);
    box-shadow: 0 5px 12px rgba(22, 119, 255, .25);
  }

  body .app-shell main.page .services-panel .panel-title h2 {
    font-size: 14px !important;
    line-height: 1.2 !important;
    font-weight: 900 !important;
    color: #24324b !important;
  }

  body .app-shell main.page .services-panel .guide-link {
    font-size: 11px !important;
    color: #8fa0b8 !important;
    font-weight: 800 !important;
  }

  body .app-shell main.page .services-panel .service-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  body .app-shell main.page .services-panel .service-card {
    min-height: 84px !important;
    padding: 10px 6px 9px !important;
    border-radius: 9px !important;
    border: 1px solid #edf1f7 !important;
    background: #fff !important;
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    box-shadow: 0 8px 18px rgba(15, 23, 42, .035) !important;
  }

  body .app-shell main.page .services-panel .service-card:active {
    transform: scale(.98) !important;
  }

  body .app-shell main.page .services-panel .service-card i {
    width: 34px !important;
    height: 34px !important;
    border-radius: 10px !important;
    display: grid !important;
    place-items: center !important;
    margin: 0 !important;
    color: #d39b2d !important;
    background: linear-gradient(135deg, #fff7e8, #fff) !important;
    box-shadow: 0 8px 18px rgba(211, 155, 45, .12) !important;
  }

  body .app-shell main.page .services-panel .service-card i svg {
    width: 19px !important;
    height: 19px !important;
  }

  body .app-shell main.page .services-panel .service-card strong {
    margin: 0 !important;
    color: #182235 !important;
    font-size: 12px !important;
    line-height: 1.2 !important;
    font-weight: 900 !important;
    white-space: nowrap !important;
  }

  body .app-shell main.page .services-panel .service-card span {
    display: none !important;
  }

  body .app-shell main.page .services-panel .service-card[data-service="free_energy"] i,
  body .app-shell main.page .services-panel .service-card[data-service="gift_energy"] i {
    color: #1677ff !important;
    background: linear-gradient(135deg, #eaf3ff, #fff) !important;
    box-shadow: 0 8px 18px rgba(22, 119, 255, .12) !important;
  }

  body .app-shell main.page .services-panel .service-card[data-service="hosting"] i {
    color: #2582d9 !important;
    background: linear-gradient(135deg, #eaf7ff, #fff) !important;
  }

  body .app-shell main.page .services-panel .service-card[data-service="exchange"] i {
    color: #6d5dfb !important;
    background: linear-gradient(135deg, #eef0ff, #fff) !important;
  }

  body .app-shell main.page .services-panel .service-card[data-service="hash"] i {
    color: #f97316 !important;
    background: linear-gradient(135deg, #fff1e7, #fff) !important;
  }

  body.hash-h5-mode {
    background: #f5f7fb !important;
  }

  body.hash-h5-mode .hero-grid {
    padding-left: 8px !important;
    padding-right: 8px !important;
  }

  body.hash-h5-mode .info-panel {
    display: none !important;
  }

  body.hash-h5-mode .action-panel {
    width: 100% !important;
    padding: 18px 14px 22px !important;
    border-radius: 22px !important;
    background: #fff !important;
    border: 1px solid #e5eaf2 !important;
    box-shadow: 0 18px 46px rgba(15, 23, 42, .14) !important;
    overflow: visible !important;
  }

  body.hash-h5-mode .action-head {
    display: block !important;
    margin-bottom: 14px !important;
  }

  body.hash-h5-mode .action-head h2,
  body.hash-h5-mode #actionTitle {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    margin: 0 !important;
    font-size: 28px !important;
    line-height: 1.15 !important;
    font-weight: 900 !important;
    color: #0f172a !important;
  }

  body.hash-h5-mode .action-head h2::before,
  body.hash-h5-mode #actionTitle::before {
    content: "" !important;
    width: 5px !important;
    height: 30px !important;
    flex: 0 0 auto !important;
    border-radius: 999px !important;
    background: linear-gradient(180deg, #f6d889, #c08420) !important;
  }

  body.hash-h5-mode .mode-tabs {
    display: none !important;
  }

  body.hash-h5-mode #actionMessage {
    margin-top: 12px !important;
    border-radius: 14px !important;
  }

  body.hash-h5-mode .hash-h5-page,
  body.hash-h5-mode .hash-h5-page * {
    box-sizing: border-box !important;
    max-width: 100% !important;
  }

  body.hash-h5-mode .hash-h5-play-tabs {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin: 16px 0 14px !important;
    overflow-x: auto !important;
    padding-bottom: 2px !important;
  }

  body.hash-h5-mode .hash-h5-play-tab,
  body.hash-h5-mode .hash-h5-pay-tab {
    height: 40px !important;
    border-radius: 999px !important;
    border: 1px solid #e5eaf2 !important;
    background: #fff !important;
    color: #475569 !important;
    padding: 0 14px !important;
    white-space: nowrap !important;
    font-size: 14px !important;
    font-weight: 900 !important;
  }

  body.hash-h5-mode .hash-h5-play-tab.active {
    border-color: transparent !important;
    color: #fff !important;
    background: linear-gradient(135deg, #e2a83b, #c78320) !important;
    box-shadow: 0 10px 24px rgba(212, 154, 42, .28) !important;
  }

  body.hash-h5-mode .hash-h5-pay-tab {
    margin-left: auto !important;
    color: #a26500 !important;
    border-color: #f1d7a2 !important;
    background: #fff8e8 !important;
  }

  body.hash-h5-mode .hash-h5-feature-bar {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    border: 1px solid #e5eaf2 !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    background: linear-gradient(180deg, #fff, #fbfdff) !important;
    margin-bottom: 12px !important;
  }

  body.hash-h5-mode .hash-h5-feature-bar span {
    min-width: 0 !important;
    padding: 10px 5px !important;
    text-align: center !important;
    border-right: 1px solid #e5eaf2 !important;
  }

  body.hash-h5-mode .hash-h5-feature-bar span:last-child {
    border-right: 0 !important;
  }

  body.hash-h5-mode .hash-h5-feature-bar img {
    width: 24px !important;
    height: 24px !important;
    display: block !important;
    margin: 0 auto 5px !important;
  }

  body.hash-h5-mode .hash-h5-feature-bar b {
    display: block !important;
    color: #0f172a !important;
    font-size: 11px !important;
    line-height: 1.2 !important;
    font-weight: 900 !important;
  }

  body.hash-h5-mode .hash-h5-feature-bar em {
    display: block !important;
    margin-top: 3px !important;
    color: #64748b !important;
    font-size: 9px !important;
    line-height: 1.25 !important;
    font-style: normal !important;
  }

  body.hash-h5-mode .hash-h5-address-card {
    margin-top: 12px !important;
    padding: 14px !important;
    border-radius: 18px !important;
    background: #fff !important;
    border: 1px solid #e5eaf2 !important;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .06) !important;
  }

  body.hash-h5-mode .hash-h5-address-head {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin-bottom: 12px !important;
  }

  body.hash-h5-mode .hash-h5-address-head img {
    width: 28px !important;
    height: 28px !important;
  }

  body.hash-h5-mode .hash-h5-address-head strong {
    color: #0f172a !important;
    font-size: 17px !important;
    font-weight: 900 !important;
  }

  body.hash-h5-mode .hash-h5-address-head span {
    margin-left: auto !important;
    padding: 3px 8px !important;
    border-radius: 999px !important;
    background: #eaf3ff !important;
    color: #1677ff !important;
    font-size: 12px !important;
    font-weight: 900 !important;
  }

  body.hash-h5-mode .hash-h5-address-row {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 86px !important;
    gap: 8px !important;
  }

  body.hash-h5-mode .hash-h5-address-value {
    height: 46px !important;
    min-width: 0 !important;
    display: flex !important;
    align-items: center !important;
    padding: 0 12px !important;
    overflow: hidden !important;
    white-space: nowrap !important;
    text-overflow: ellipsis !important;
    border: 1px solid #d7deea !important;
    border-radius: 12px !important;
    color: #1e293b !important;
    background: #fff !important;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace !important;
    font-size: 12px !important;
  }

  body.hash-h5-mode .hash-h5-copy-btn {
    height: 46px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    border: 0 !important;
    border-radius: 12px !important;
    color: #fff !important;
    background: linear-gradient(135deg, #2f8cff, #0f6bff) !important;
    font-weight: 900 !important;
    box-shadow: 0 8px 20px rgba(22, 119, 255, .22) !important;
  }

  body.hash-h5-mode .hash-h5-copy-btn img {
    width: 17px !important;
    height: 17px !important;
  }

  body.hash-h5-mode .hash-h5-address-card small {
    display: block !important;
    margin-top: 9px !important;
    color: #64748b !important;
    font-size: 12px !important;
  }

  body.hash-h5-mode .hash-h5-select-card {
    margin-top: 14px !important;
  }

  body.hash-h5-mode .hash-h5-select-card label {
    display: block !important;
    margin-bottom: 8px !important;
    color: #0f172a !important;
    font-weight: 900 !important;
  }

  body.hash-h5-mode .hash-h5-select-card select {
    width: 100% !important;
    height: 48px !important;
    border-radius: 12px !important;
    border: 1px solid #d7deea !important;
    background: #fff !important;
    color: #0f172a !important;
    padding: 0 14px !important;
    font-size: 15px !important;
  }

  body.hash-h5-mode .hash-h5-rule-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
    margin-top: 14px !important;
  }

  body.hash-h5-mode .hash-h5-rule-card {
    position: relative !important;
    overflow: hidden !important;
    padding: 13px !important;
    border-radius: 18px !important;
    border: 1px solid #e5eaf2 !important;
  }

  body.hash-h5-mode .hash-h5-rule-card.gold {
    background: linear-gradient(135deg, #fff7e6, #fff) !important;
    border-color: #f1d7a2 !important;
  }

  body.hash-h5-mode .hash-h5-rule-card.blue {
    background: linear-gradient(135deg, #eef6ff, #fff) !important;
    border-color: #cfe1ff !important;
  }

  body.hash-h5-mode .hash-h5-rule-card.active {
    box-shadow: 0 0 0 2px rgba(212, 154, 42, .08), 0 10px 24px rgba(15, 23, 42, .05) !important;
  }

  body.hash-h5-mode .hash-h5-rule-title strong {
    display: block !important;
    color: #0f172a !important;
    font-size: 15px !important;
    font-weight: 900 !important;
  }

  body.hash-h5-mode .hash-h5-rule-title span {
    display: inline-flex !important;
    margin-top: 6px !important;
    padding: 3px 8px !important;
    border-radius: 999px !important;
    background: #fff1cc !important;
    color: #a26500 !important;
    font-size: 11px !important;
    font-weight: 900 !important;
  }

  body.hash-h5-mode .hash-h5-rule-option {
    margin-top: 9px !important;
    padding: 9px !important;
    border-radius: 12px !important;
    border: 1px solid #dfe6f2 !important;
    background: #fff !important;
  }

  body.hash-h5-mode .hash-h5-rule-option.active {
    border-color: #d49a2a !important;
    box-shadow: 0 0 0 2px rgba(212,154,42,.08) !important;
  }

  body.hash-h5-mode .hash-h5-rule-option b {
    display: block !important;
    color: #0f172a !important;
    font-size: 18px !important;
    font-weight: 900 !important;
  }

  body.hash-h5-mode .hash-h5-rule-option em {
    display: block !important;
    margin-top: 3px !important;
    color: #64748b !important;
    font-size: 11px !important;
    line-height: 1.35 !important;
    font-style: normal !important;
  }

  body.hash-h5-mode .hash-h5-section-head {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    margin: 16px 0 8px !important;
  }

  body.hash-h5-mode .hash-h5-section-head strong {
    color: #0f172a !important;
    font-size: 17px !important;
    font-weight: 900 !important;
  }

  body.hash-h5-mode .hash-h5-section-head button {
    border: 0 !important;
    background: transparent !important;
    color: #64748b !important;
    font-size: 13px !important;
    font-weight: 800 !important;
  }

  body.hash-h5-mode .hash-h5-latest-scroll {
    display: flex !important;
    gap: 10px !important;
    overflow-x: auto !important;
    padding: 3px 0 7px !important;
  }

  body.hash-h5-mode .hash-h5-latest-card {
    min-width: 116px !important;
    padding: 10px !important;
    border-radius: 14px !important;
    background: #fff !important;
    border: 1px solid #e5eaf2 !important;
    box-shadow: 0 8px 18px rgba(15, 23, 42, .035) !important;
  }

  body.hash-h5-mode .hash-h5-latest-card small,
  body.hash-h5-mode .hash-h5-latest-card em {
    display: block !important;
    color: #64748b !important;
    font-size: 10px !important;
    font-style: normal !important;
  }

  body.hash-h5-mode .hash-h5-latest-card b {
    display: block !important;
    margin: 5px 0 !important;
    color: #0f172a !important;
    font-size: 26px !important;
    line-height: 1 !important;
    font-weight: 900 !important;
  }

  body.hash-h5-mode .hash-h5-latest-card span {
    display: inline-flex !important;
    align-items: center !important;
    height: 22px !important;
    padding: 0 7px !important;
    border-radius: 7px !important;
    font-size: 12px !important;
    font-weight: 900 !important;
  }

  body.hash-h5-mode .hash-h5-latest-card span.gold {
    background: #fff1cc !important;
    color: #a26500 !important;
  }

  body.hash-h5-mode .hash-h5-latest-card span.blue {
    background: #eaf3ff !important;
    color: #1677ff !important;
  }

  body.hash-h5-mode .hash-h5-risk-card {
    margin-top: 12px !important;
    padding: 13px !important;
    border-radius: 16px !important;
    border: 1px solid #f1d7a2 !important;
    background: linear-gradient(135deg, #fff8e8, #fff) !important;
  }

  body.hash-h5-mode .hash-h5-risk-card strong {
    display: block !important;
    color: #9a6414 !important;
    font-weight: 900 !important;
  }

  body.hash-h5-mode .hash-h5-risk-card span {
    display: block !important;
    margin-top: 5px !important;
    color: #64748b !important;
    font-size: 12px !important;
    line-height: 1.55 !important;
  }

  body.hash-h5-mode .hash-h5-trust-bar {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    margin-top: 12px !important;
    border-radius: 16px !important;
    border: 1px solid #e5eaf2 !important;
    background: #f8fbff !important;
    overflow: hidden !important;
  }

  body.hash-h5-mode .hash-h5-trust-bar span {
    padding: 11px 6px !important;
    text-align: center !important;
    border-right: 1px solid #e5eaf2 !important;
  }

  body.hash-h5-mode .hash-h5-trust-bar span:last-child {
    border-right: 0 !important;
  }

  body.hash-h5-mode .hash-h5-trust-bar b {
    display: block !important;
    color: #0f172a !important;
    font-size: 12px !important;
    font-weight: 900 !important;
  }

  body.hash-h5-mode .hash-h5-trust-bar em {
    display: block !important;
    margin-top: 3px !important;
    color: #64748b !important;
    font-size: 10px !important;
    font-style: normal !important;
  }
}

@media (max-width: 390px) {
  body.hash-h5-mode .hash-h5-rule-grid,
  body.hash-h5-mode .hash-h5-address-row {
    grid-template-columns: 1fr !important;
  }

  body.hash-h5-mode .hash-h5-feature-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 768px) {
  body.referral-h5-mode {
    background: #f5f7fb !important;
  }

  body.referral-h5-mode .hero-grid {
    padding-left: 8px !important;
    padding-right: 8px !important;
  }

  body.referral-h5-mode .info-panel {
    display: none !important;
  }

  body.referral-h5-mode .action-panel {
    width: 100% !important;
    padding: 18px 14px 22px !important;
    border-radius: 22px !important;
    background: #fff !important;
    border: 1px solid #e5eaf2 !important;
    box-shadow: 0 18px 46px rgba(15, 23, 42, .14) !important;
    overflow: visible !important;
  }

  body.referral-h5-mode .action-head {
    display: block !important;
    margin-bottom: 14px !important;
  }

  body.referral-h5-mode .action-head h2,
  body.referral-h5-mode #actionTitle {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    margin: 0 !important;
    color: #0f172a !important;
    font-size: 24px !important;
    line-height: 1.2 !important;
    font-weight: 900 !important;
  }

  body.referral-h5-mode .action-head h2::before,
  body.referral-h5-mode #actionTitle::before {
    content: "" !important;
    width: 5px !important;
    height: 26px !important;
    flex: 0 0 auto !important;
    border-radius: 999px !important;
    background: linear-gradient(180deg, #f6d889, #c08420) !important;
  }

  body.referral-h5-mode .mode-tabs {
    display: none !important;
  }

  body.referral-h5-mode #actionMessage {
    margin-top: 12px !important;
    border-radius: 14px !important;
  }

  body.referral-h5-mode .referral-h5-page,
  body.referral-h5-mode .referral-h5-page * {
    box-sizing: border-box !important;
    max-width: 100% !important;
  }

  body.referral-h5-mode .referral-h5-tabs {
    display: flex !important;
    gap: 10px !important;
    margin: 14px 0 !important;
  }

  body.referral-h5-mode .referral-h5-tab {
    height: 36px !important;
    padding: 0 16px !important;
    border-radius: 999px !important;
    border: 1px solid #e5eaf2 !important;
    background: #fff !important;
    color: #475569 !important;
    font-weight: 800 !important;
  }

  body.referral-h5-mode .referral-h5-tab.active {
    color: #9a6418 !important;
    border-color: #d49a2a !important;
    background: #fff8e8 !important;
  }

  body.referral-h5-mode .referral-h5-hero {
    display: block !important;
    min-height: 188px !important;
    padding: 18px 16px !important;
    border-radius: 18px !important;
    border: 1px solid #dceaff !important;
    background: #f5f9ff url("./referral-h5-assets/referral-hero-h5-bg.png?v=2026070602") center / cover no-repeat !important;
    box-shadow: 0 12px 30px rgba(22, 119, 255, .10) !important;
  }

  body.referral-h5-mode .referral-h5-hero img {
    display: none !important;
  }

  body.referral-h5-mode .referral-h5-hero > div {
    position: relative !important;
    z-index: 2 !important;
    max-width: 62% !important;
  }

  body.referral-h5-mode .referral-h5-hero h3 {
    margin: 0 0 8px !important;
    color: #c27a10 !important;
    font-size: 15px !important;
    font-weight: 900 !important;
  }

  body.referral-h5-mode .referral-h5-hero strong {
    display: block !important;
    color: #0f172a !important;
    font-size: 18px !important;
    line-height: 1.4 !important;
    font-weight: 900 !important;
  }

  body.referral-h5-mode .referral-h5-hero p {
    margin: 8px 0 0 !important;
    color: #64748b !important;
    font-size: 13px !important;
    line-height: 1.55 !important;
  }

  body.referral-h5-mode .referral-h5-reward-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
    margin: 14px 0 !important;
  }

  body.referral-h5-mode .referral-h5-reward-card {
    display: grid !important;
    grid-template-columns: 52px minmax(0, 1fr) !important;
    gap: 10px !important;
    align-items: center !important;
    min-height: 94px !important;
    padding: 14px !important;
    border-radius: 16px !important;
    border: 1px solid #e5eaf2 !important;
    background: #fff !important;
    box-shadow: 0 8px 22px rgba(15,23,42,.05) !important;
  }

  body.referral-h5-mode .referral-h5-reward-card.gold {
    border-color: #f0d5a0 !important;
    background: linear-gradient(135deg, #fff9ee, #fff) !important;
  }

  body.referral-h5-mode .referral-h5-reward-card img {
    width: 52px !important;
    height: 52px !important;
  }

  body.referral-h5-mode .referral-h5-reward-card span {
    display: block !important;
    color: #334155 !important;
    font-size: 13px !important;
    font-weight: 900 !important;
  }

  body.referral-h5-mode .referral-h5-reward-card b {
    display: block !important;
    color: #1677ff !important;
    font-size: 30px !important;
    line-height: 1 !important;
    font-weight: 900 !important;
  }

  body.referral-h5-mode .referral-h5-reward-card.gold b {
    color: #b87513 !important;
  }

  body.referral-h5-mode .referral-h5-reward-card em {
    display: block !important;
    color: #64748b !important;
    font-size: 12px !important;
    font-style: normal !important;
  }

  body.referral-h5-mode .referral-h5-box {
    margin-top: 14px !important;
    padding: 14px !important;
    border-radius: 18px !important;
    border: 1px solid #e5eaf2 !important;
    background: #fff !important;
  }

  body.referral-h5-mode .referral-h5-box-title {
    margin-bottom: 10px !important;
    color: #0f172a !important;
    font-size: 16px !important;
    font-weight: 900 !important;
  }

  body.referral-h5-mode .referral-h5-input {
    width: 100% !important;
    height: 46px !important;
    border: 1px solid #d7deea !important;
    border-radius: 12px !important;
    padding: 0 12px !important;
    color: #0f172a !important;
    font-size: 14px !important;
  }

  body.referral-h5-mode .referral-h5-submit {
    width: 100% !important;
    height: 48px !important;
    margin-top: 10px !important;
    border: 0 !important;
    border-radius: 12px !important;
    color: #fff !important;
    background: linear-gradient(180deg, #f1ca73, #bb7b1c) !important;
    box-shadow: 0 10px 22px rgba(196, 130, 31, .26) !important;
    font-size: 16px !important;
    font-weight: 900 !important;
  }

  body.referral-h5-mode .referral-h5-form-box small {
    display: block !important;
    margin-top: 8px !important;
    color: #64748b !important;
    font-size: 12px !important;
  }

  body.referral-h5-mode .referral-h5-info-box,
  body.referral-h5-mode .referral-h5-status {
    background: linear-gradient(135deg, #f1f7ff, #fff) !important;
  }

  body.referral-h5-mode .referral-h5-info-box ol {
    margin: 0 !important;
    padding-left: 18px !important;
    color: #334155 !important;
    font-size: 13px !important;
    line-height: 1.7 !important;
  }

  body.referral-h5-mode .referral-h5-overview-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  body.referral-h5-mode .referral-h5-overview-item {
    min-height: 82px !important;
    padding: 10px !important;
    border-radius: 14px !important;
    border: 1px solid #e5eaf2 !important;
    background: linear-gradient(135deg, #fff, #f8fbff) !important;
  }

  body.referral-h5-mode .referral-h5-overview-item.gold {
    grid-column: span 2 !important;
    border-color: #f0d5a0 !important;
    background: linear-gradient(135deg, #fff9ee, #fff) !important;
  }

  body.referral-h5-mode .referral-h5-overview-item img {
    width: 24px !important;
    height: 24px !important;
  }

  body.referral-h5-mode .referral-h5-overview-item span {
    display: block !important;
    margin-top: 4px !important;
    color: #64748b !important;
    font-size: 11px !important;
    font-weight: 800 !important;
  }

  body.referral-h5-mode .referral-h5-overview-item strong {
    display: inline-block !important;
    margin-top: 3px !important;
    color: #0f172a !important;
    font-size: 21px !important;
    line-height: 1 !important;
    font-weight: 900 !important;
  }

  body.referral-h5-mode .referral-h5-overview-item.gold strong {
    color: #b87513 !important;
  }

  body.referral-h5-mode .referral-h5-overview-item small {
    margin-left: 3px !important;
    color: #64748b !important;
  }

  body.referral-h5-mode .referral-h5-progress-item {
    display: grid !important;
    grid-template-columns: 34px minmax(0, 1fr) 58px 72px !important;
    gap: 8px !important;
    align-items: center !important;
    min-height: 56px !important;
    margin-top: 8px !important;
    padding: 8px !important;
    border-radius: 13px !important;
    border: 1px solid #e5eaf2 !important;
    background: #fff !important;
  }

  body.referral-h5-mode .referral-h5-progress-item img {
    width: 34px !important;
    height: 34px !important;
  }

  body.referral-h5-mode .referral-h5-progress-main div {
    display: flex !important;
    justify-content: space-between !important;
    gap: 8px !important;
    color: #0f172a !important;
    font-size: 12px !important;
    font-weight: 900 !important;
  }

  body.referral-h5-mode .referral-h5-progress-main i {
    display: block !important;
    height: 7px !important;
    margin-top: 6px !important;
    overflow: hidden !important;
    border-radius: 999px !important;
    background: #e8eef6 !important;
  }

  body.referral-h5-mode .referral-h5-progress-main i b {
    display: block !important;
    height: 100% !important;
    border-radius: inherit !important;
    background: linear-gradient(90deg, #1677ff, #68b3ff) !important;
  }

  body.referral-h5-mode .referral-h5-progress-item.gold .referral-h5-progress-main i b {
    background: linear-gradient(90deg, #d49a2a, #f3c766) !important;
  }

  body.referral-h5-mode .referral-h5-progress-item > em {
    color: #1677ff !important;
    font-size: 12px !important;
    font-style: normal !important;
    font-weight: 900 !important;
    text-align: right !important;
  }

  body.referral-h5-mode .referral-h5-progress-item button {
    height: 32px !important;
    border-radius: 10px !important;
    border: 1px solid #d7deea !important;
    background: #f8fbff !important;
    color: #334155 !important;
    font-size: 12px !important;
    font-weight: 900 !important;
  }

  body.referral-h5-mode .referral-h5-progress-item button.active {
    border: 0 !important;
    color: #fff !important;
    background: linear-gradient(135deg, #2f8cff, #0f6bff) !important;
  }

  body.referral-h5-mode .referral-h5-rate-list {
    display: grid !important;
    gap: 8px !important;
  }

  body.referral-h5-mode .referral-h5-rate-item {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 58px 74px !important;
    align-items: center !important;
    gap: 8px !important;
    min-height: 48px !important;
    padding: 9px 10px !important;
    border-radius: 14px !important;
    border: 1px solid #e5eaf2 !important;
    background: linear-gradient(135deg, #ffffff, #f8fbff) !important;
  }

  body.referral-h5-mode .referral-h5-rate-item strong {
    min-width: 0 !important;
    overflow: hidden !important;
    color: #0f172a !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    font-size: 13px !important;
    font-weight: 900 !important;
  }

  body.referral-h5-mode .referral-h5-rate-item b {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 28px !important;
    border-radius: 999px !important;
    color: #0f63d9 !important;
    background: #eaf3ff !important;
    font-size: 14px !important;
    font-weight: 950 !important;
  }

  body.referral-h5-mode .referral-h5-rate-item.gold b {
    color: #a86610 !important;
    background: #fff4d8 !important;
  }

  body.referral-h5-mode .referral-h5-rate-item.orange b {
    color: #c2410c !important;
    background: #fff7ed !important;
  }

  body.referral-h5-mode .referral-h5-rate-item em {
    justify-self: end !important;
    padding: 5px 8px !important;
    border-radius: 999px !important;
    color: #047857 !important;
    background: #ecfdf5 !important;
    font-size: 11px !important;
    font-style: normal !important;
    font-weight: 900 !important;
    white-space: nowrap !important;
  }

  body.referral-h5-mode .referral-h5-rate-item.orange em {
    color: #b45309 !important;
    background: #fffbeb !important;
  }

  body.referral-h5-mode .referral-h5-record-head {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    margin-bottom: 10px !important;
  }

  body.referral-h5-mode .referral-h5-record-head strong {
    color: #0f172a !important;
    font-size: 16px !important;
    font-weight: 900 !important;
  }

  body.referral-h5-mode .referral-h5-record-head button {
    border: 0 !important;
    background: transparent !important;
    color: #1677ff !important;
    font-weight: 900 !important;
  }

  body.referral-h5-mode .referral-h5-record-card {
    margin-top: 8px !important;
    padding: 12px !important;
    border: 1px solid #e5eaf2 !important;
    border-radius: 14px !important;
    background: #fff !important;
  }

  body.referral-h5-mode .referral-h5-record-card div {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
    margin-bottom: 8px !important;
  }

  body.referral-h5-mode .referral-h5-record-card strong {
    min-width: 0 !important;
    overflow: hidden !important;
    color: #0f172a !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    font-size: 14px !important;
    font-weight: 900 !important;
  }

  body.referral-h5-mode .referral-h5-record-card div span {
    flex: 0 0 auto !important;
    padding: 4px 8px !important;
    border-radius: 999px !important;
    font-size: 11px !important;
    font-weight: 900 !important;
  }

  body.referral-h5-mode .referral-h5-record-card .pending { background: #fff7ed !important; color: #ea580c !important; }
  body.referral-h5-mode .referral-h5-record-card .ok { background: #ecfdf5 !important; color: #059669 !important; }
  body.referral-h5-mode .referral-h5-record-card .paid { background: #eaf3ff !important; color: #1677ff !important; }
  body.referral-h5-mode .referral-h5-record-card .bad { background: #fef2f2 !important; color: #dc2626 !important; }

  body.referral-h5-mode .referral-h5-record-card p {
    display: flex !important;
    justify-content: space-between !important;
    gap: 12px !important;
    margin: 6px 0 0 !important;
    color: #64748b !important;
    font-size: 12px !important;
  }

  body.referral-h5-mode .referral-h5-record-card p b {
    min-width: 0 !important;
    overflow-wrap: anywhere !important;
    color: #334155 !important;
    font-weight: 900 !important;
    text-align: right !important;
  }

  body.referral-h5-mode .referral-h5-empty {
    padding: 16px !important;
    border-radius: 14px !important;
    background: #f8fbff !important;
    color: #64748b !important;
    text-align: center !important;
    font-weight: 800 !important;
  }

  body.referral-h5-mode .referral-h5-status-lines {
    color: #334155 !important;
    font-size: 13px !important;
    line-height: 1.7 !important;
  }

  body.referral-h5-mode .referral-h5-status-lines span {
    display: block !important;
  }

  body.referral-h5-mode .referral-h5-green-bar {
    margin-top: 12px !important;
    padding: 10px 12px !important;
    border-radius: 12px !important;
    border: 1px solid #b7ecd1 !important;
    background: #ecfdf5 !important;
    color: #12824b !important;
    font-size: 13px !important;
    font-weight: 900 !important;
  }
}

@media (max-width: 380px) {
  body.referral-h5-mode .referral-h5-reward-grid {
    grid-template-columns: 1fr !important;
  }

  body.referral-h5-mode .referral-h5-overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  body.referral-h5-mode .referral-h5-progress-item {
    grid-template-columns: 34px minmax(0, 1fr) !important;
  }

  body.referral-h5-mode .referral-h5-progress-item > em,
  body.referral-h5-mode .referral-h5-progress-item button {
    grid-column: 2 / 3 !important;
    text-align: left !important;
  }
}
