/* HOMIEN CRAFT WALLET */

.wallet-page {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 22px;
    padding-top: 20px;
    padding-bottom: 80px;
}

.wallet-hero-card,
.wallet-topup-card,
.wallet-history-card {
    border: 1px solid rgba(255, 255, 255, 0.09);
    background: rgba(17, 21, 32, 0.94);
    border-radius: 20px;
    padding: 26px;
    box-shadow: 0 18px 55px rgba(0, 0, 0, 0.18);
}

.wallet-hero-card {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 90% 10%, rgba(245, 185, 66, 0.20), transparent 38%),
        linear-gradient(135deg, #202638, #10141e);
}

.wallet-hero-top,
.wallet-hero-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.wallet-hero-top div {
    display: grid;
    gap: 6px;
}

.wallet-hero-top span,
.wallet-balance-label,
.wallet-hero-bottom {
    color: #aab2c3;
    font-size: 11px;
    letter-spacing: 1.2px;
}

.wallet-hero-top strong {
    color: #fff;
    font-size: 17px;
}

.wallet-chip {
    border: 1px solid rgba(245, 185, 66, 0.3);
    background: rgba(245, 185, 66, 0.10);
    color: #f5b942 !important;
    padding: 8px 12px;
    border-radius: 30px;
    font-weight: 800;
}

.wallet-balance-label {
    margin-top: 48px;
}

.wallet-balance {
    color: #fff;
    font-size: clamp(38px, 6vw, 60px);
    font-weight: 850;
    letter-spacing: -2px;
    margin: 8px 0 36px;
}

.wallet-balance small {
    color: #f5b942;
    font-size: 28px;
}

.wallet-hero-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.09);
    padding-top: 17px;
    letter-spacing: 0;
}

.wallet-topup-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 18px;
}

.wallet-topup-card h2,
.wallet-history-card h2 {
    margin: 8px 0;
}

.wallet-coming-soon {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(245, 185, 66, 0.08);
    border: 1px solid rgba(245, 185, 66, 0.18);
    border-radius: 12px;
    padding: 15px;
}

.wallet-coming-soon span {
    color: #f5b942;
    font-weight: 900;
    letter-spacing: 1px;
}

.wallet-coming-soon strong {
    color: #fff;
}

.wallet-topup-card button:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.wallet-history-card {
    grid-column: 1 / -1;
}

.wallet-history-list {
    display: grid;
    gap: 0;
    margin-top: 18px;
}

.wallet-history-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 17px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.wallet-history-item:last-child {
    border-bottom: 0;
}

.wallet-history-icon {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    border-radius: 13px;
    display: grid;
    place-items: center;
    font-size: 23px;
    font-weight: 800;
}

.wallet-history-icon.spent {
    background: rgba(255, 85, 85, 0.10);
    color: #ff7777;
}

.wallet-history-icon.added {
    background: rgba(70, 210, 135, 0.10);
    color: #55d995;
}

.wallet-history-info {
    min-width: 0;
    display: grid;
    gap: 4px;
    flex: 1;
}

.wallet-history-info strong {
    color: #f5f6fa;
    overflow-wrap: anywhere;
}

.wallet-history-info span,
.wallet-history-info small {
    color: #8e98aa;
    font-size: 11px;
}

.wallet-history-amount {
    white-space: nowrap;
    font-size: 15px;
}

.wallet-history-amount.negative,
.negative {
    color: #ff7777;
}

.wallet-history-amount.positive,
.positive {
    color: #55d995;
}

.wallet-empty {
    text-align: center;
    padding: 38px 15px;
    color: #9ca6b8;
}

.wallet-empty > span {
    font-size: 32px;
    color: #f5b942;
}

.wallet-empty h3 {
    color: #fff;
    margin-bottom: 7px;
}

.market-wallet {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: rgba(245, 185, 66, 0.08);
    border: 1px solid rgba(245, 185, 66, 0.20);
    border-radius: 13px;
    padding: 14px;
    margin: 15px 0;
}

.market-wallet div {
    display: grid;
    gap: 5px;
}

.market-wallet div span {
    color: #aab2c3;
    font-size: 10px;
    letter-spacing: 1px;
}

.market-wallet div strong {
    color: #f5b942;
    font-size: 22px;
}

.market-wallet a {
    color: #f5b942;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}

.market-wallet-guest {
    display: grid;
    color: #aab2c3;
    font-size: 13px;
}

.account-balance {
    display: grid;
    gap: 10px;
    margin: 20px 0;
}

.account-balance > span {
    color: #aab2c3;
    font-size: 11px;
    letter-spacing: 1px;
}

.account-balance > strong {
    color: #f5b942;
    font-size: 30px;
}

.account-transactions {
    margin-top: 35px;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.wallet-transaction-row {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    padding: 13px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.wallet-transaction-row div {
    display: grid;
    gap: 5px;
}

.wallet-transaction-row div strong {
    font-size: 13px;
}

.wallet-transaction-row div span {
    color: #8e98aa;
    font-size: 11px;
}

@media (max-width: 800px) {
    .wallet-page {
        grid-template-columns: 1fr;
    }

    .wallet-history-card {
        grid-column: auto;
    }
}

@media (max-width: 480px) {
    .wallet-hero-card,
    .wallet-topup-card,
    .wallet-history-card {
        padding: 19px;
    }

    .wallet-hero-top,
    .wallet-hero-bottom {
        align-items: flex-start;
    }

    .wallet-chip {
        font-size: 9px;
    }

    .wallet-history-item {
        gap: 9px;
    }

    .wallet-history-amount {
        font-size: 13px;
    }
}