.asset-detail-container {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    padding: 16px;
    color: var(--text-primary);
    background-color: var(--theme-app-bg);
    border-radius: 12px;
    max-width: 100%;
    box-sizing: border-box;
}

.asset-info-card {
    background: var(--bg-action-row);
    padding: 16px;
    border-radius: 12px;
    border: 1px solid var(--border-action-row);
    margin-bottom: 16px;
    text-align: left;
}

.asset-owner {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 6px 0;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.asset-id {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0 0 16px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.asset-balance-label {
    font-size: 11px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 4px 0;
    font-weight: 500;
}

.asset-balance-value {
    font-size: 26px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.asset-btn-topup {
    display: block;
    width: 100%;
    background-color: var(--text-primary);
    color: var(--theme-body-bg);
    border: none;
    padding: 14px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease, opacity 0.2s ease;
    text-align: center;
    margin-bottom: 24px;
    box-sizing: border-box;
}

.asset-btn-topup:hover {
    background-color: var(--text-primary);
    opacity: 0.88;
}

.asset-btn-topup:active {
    transform: scale(0.98);
    opacity: 0.75;
}

.asset-history-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 12px 0;
    text-align: left;
}

.invoice-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.invoice-item {
    background: var(--theme-app-bg);
    border: 1px solid var(--border-divider);
    border-radius: 8px;
    overflow: hidden;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
    text-align: left;
}

.invoice-header {
    padding: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    user-select: none;
    background: var(--theme-app-bg);
    transition: background-color 0.2s ease;
}

.invoice-header:hover {
    background: var(--bg-action-row);
}

.invoice-action {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 65%;
}

.invoice-amount {
    font-weight: 700;
    font-size: 14px;
    color: var(--text-primary);
    white-space: nowrap;
    flex-shrink: 0;
}

.action-TOPUP {
    color: #16a34a;
}

.action-RENEWAL {
    color: #dc2626;
}

.action-CREATE_ACCOUNT {
    color: var(--text-secondary);
}

.invoice-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease-out, padding 0.25s ease-out;
    background: var(--bg-action-row);
    border-top: 1px solid transparent;
    padding: 0 14px;
    font-size: 13px;
    color: var(--text-secondary);
}

.invoice-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px dashed var(--border-divider);
}

.invoice-detail-row:last-child {
    border-bottom: none;
}

.invoice-detail-row span {
    color: var(--text-secondary);
    white-space: nowrap;
    flex-shrink: 0;
}

.invoice-detail-row strong {
    color: var(--text-primary);
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 70%;
    text-align: right;
}

.invoice-item.expanded {
    border-color: var(--text-primary);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
}

.invoice-item.expanded .invoice-header {
    background: var(--bg-action-row);
}

.invoice-item.expanded .invoice-details {
    max-height: 180px;
    border-top: 1px solid var(--border-divider);
    padding: 10px 14px 14px;
}

@media screen and (max-width: 768px) {
    .asset-detail-container {
        padding: 14px;
        border-radius: 0;
    }

    .asset-info-card {
        padding: 14px;
        border-radius: 12px;
    }

    .asset-btn-topup {
        min-height: 44px;
        padding: 12px;
    }

    .invoice-header {
        min-height: 44px;
        padding: 12px 14px;
    }

    .invoice-detail-row {
        padding: 8px 0;
    }
}