/* Wallet page */
.hbp-wallet-page {
    display: grid;
    gap: 16px;
}

.hbp-wallet-page .hbp-user-links-v8 {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    padding: 0 2px 12px;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.hbp-wallet-page .hbp-user-links-v8 a {
    color: var(--hbp-color-muted);
    font-size: 12px;
    font-weight: 850;
    text-decoration: none;
}

.hbp-wallet-page .hbp-user-links-v8 a.is-active {
    color: var(--hbp-color-primary-2);
}

.hbp-wallet-notice,
.hbp-wallet-login {
    padding: 22px;
    border-radius: 26px;
}

.hbp-wallet-login {
    display: grid;
    gap: 14px;
    max-width: 760px;
}

.hbp-wallet-login h1,
.hbp-wallet-login p {
    margin: 0;
}

.hbp-wallet-hero {
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    padding: 18px;
    border-radius: 22px;
}

.hbp-wallet-coin {
    width: 86px;
    height: 86px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: linear-gradient(145deg, #f0c5b0 0%, #b984ff 48%, #8b46ff 100%);
    color: #170d27;
    font-size: 28px;
    font-weight: 950;
    font-style: italic;
    letter-spacing: -.08em;
}

.hbp-wallet-hero h1 {
    margin: 0;
    font-size: clamp(32px, 5vw, 56px);
    line-height: .9;
    letter-spacing: -.08em;
}

.hbp-wallet-hero h1 span {
    font-size: .34em;
    color: var(--hbp-color-primary-2);
}

.hbp-wallet-lede {
    max-width: 680px;
    margin: 12px 0 0;
    color: var(--hbp-color-muted);
}

.hbp-wallet-chips,
.hbp-coin-packages {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.hbp-wallet-chips span,
.hbp-coin-packages button {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 999px;
    padding: 0 13px;
    background: rgba(255,255,255,.055);
    color: var(--hbp-color-muted);
    font-size: 13px;
    font-weight: 780;
}

.hbp-coin-packages button {
    cursor: pointer;
}

.hbp-coin-packages button.is-active {
    background: rgba(185,132,255,.18);
    border-color: rgba(185,132,255,.40);
    color: var(--hbp-color-text);
}

.hbp-wallet-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.hbp-wallet-stats article {
    display: grid;
    gap: 6px;
    padding: 18px;
    border-radius: 24px;
}

.hbp-wallet-stats span,
.hbp-wallet-note,
.hbp-wallet-transaction__main p,
.hbp-wallet-transaction__meta em,
.hbp-wallet-transaction__meta small {
    color: var(--hbp-color-muted);
    font-size: 12px;
    font-weight: 740;
}

.hbp-wallet-stats strong {
    font-size: 24px;
    letter-spacing: -.04em;
}

.hbp-wallet-grid {
    display: grid;
    grid-template-columns: minmax(0, .82fr) minmax(340px, 1fr);
    gap: 22px;
}

.hbp-wallet-panel {
    padding: 24px;
    border-radius: 28px;
}

.hbp-wallet-panel__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.hbp-wallet-panel__head h2,
.hbp-wallet-panel__head p {
    margin: 0;
}

.hbp-wallet-panel__head > span {
    min-width: 40px;
    min-height: 40px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(255,255,255,.075);
    color: var(--hbp-color-text);
    font-weight: 900;
}

.hbp-wallet-topup-form,
.hbp-wallet-transactions {
    display: grid;
    gap: 14px;
}

.hbp-wallet-transaction {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255,255,255,.075);
}

.hbp-wallet-transaction:first-child {
    padding-top: 0;
}

.hbp-wallet-transaction:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.hbp-wallet-transaction__main span,
.hbp-wallet-transaction__meta strong {
    display: block;
    font-weight: 880;
}

.hbp-wallet-transaction__main p,
.hbp-wallet-transaction__meta em,
.hbp-wallet-transaction__meta small {
    display: block;
    margin: 4px 0 0;
    font-style: normal;
}

.hbp-wallet-transaction__meta {
    text-align: right;
}

.hbp-wallet-transaction--credit .hbp-wallet-transaction__meta strong {
    color: var(--hbp-color-primary-2);
}

@media (max-width: 860px) {
    .hbp-wallet-hero,
    .hbp-wallet-grid,
    .hbp-wallet-stats {
        grid-template-columns: 1fr;
    }

    .hbp-wallet-coin {
        width: 96px;
        height: 96px;
        font-size: 30px;
    }

    .hbp-wallet-transaction {
        grid-template-columns: 1fr;
    }

    .hbp-wallet-transaction__meta {
        text-align: left;
    }
}
