/* Balance Card - Premium Theme (Cobalt Blue #0047AB, Navy #000080, Sky Blue #82C8E5) */

.balance-card {
    background: linear-gradient(135deg, #0047AB 0%, #000080 60%, #002266 100%);
    background-size: 200% 200%;
    animation: balanceGradientShift 12s ease infinite;
    padding: 2rem;
    border-radius: 22px;
    box-shadow: 0 12px 35px rgba(0, 71, 171, 0.35), 0 4px 12px rgba(0, 0, 128, 0.2);
    position: relative;
    overflow: hidden;
    color: white;
    border: 1px solid rgba(130, 200, 229, 0.25);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.balance-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 45px rgba(0, 71, 171, 0.45), 0 6px 16px rgba(130, 200, 229, 0.25);
}

@keyframes balanceGradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Decorative glass orbs */
.balance-card::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -25%;
    width: 75%;
    height: 140%;
    background: radial-gradient(circle, rgba(130, 200, 229, 0.25) 0%, transparent 65%);
    pointer-events: none;
    animation: orbFloat 8s ease-in-out infinite alternate;
}

.balance-card::after {
    content: '';
    position: absolute;
    bottom: -35%;
    left: -15%;
    width: 55%;
    height: 90%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 55%);
    pointer-events: none;
}

@keyframes orbFloat {
    0% { transform: scale(1) translate(0, 0); }
    100% { transform: scale(1.1) translate(-15px, 10px); }
}

.balance-card h4,
.balance-card .label {
    margin: 0;
    font-size: 0.75rem;
    color: #82C8E5;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 700;
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 6px;
}

.balance-card h2,
.balance-card .amount {
    margin-top: 0.5rem;
    margin-bottom: 0;
    font-size: 2.35rem;
    font-weight: 800;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
    position: relative;
    z-index: 1;
    letter-spacing: -0.5px;
}

/* Mini balance card variant */
.balance-card-mini {
    background: linear-gradient(135deg, #0047AB 0%, #000080 100%);
    padding: 1.25rem 1.5rem;
    border-radius: 14px;
    box-shadow: 0 6px 20px rgba(0, 71, 171, 0.3);
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid rgba(130, 200, 229, 0.2);
    transition: transform 0.25s ease;
}

.balance-card-mini:hover {
    transform: translateY(-2px);
}

.balance-card-mini .label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #82C8E5;
    font-weight: 600;
}

.balance-card-mini .amount {
    font-size: 1.5rem;
    font-weight: 800;
}

/* Balance card with action button */
.balance-card-action {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.balance-card-action .btn-topup {
    background: white;
    color: #0047AB;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    z-index: 1;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
    text-decoration: none;
}

.balance-card-action .btn-topup:hover {
    background: #82C8E5;
    color: #000080;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(130, 200, 229, 0.4);
}

/* White variant for colored backgrounds */
.balance-card-white {
    background: white;
    border: 1px solid #dbe5ee;
    color: #0f172a;
}

.balance-card-white h4,
.balance-card-white .label {
    color: #6D8196;
}

.balance-card-white h2,
.balance-card-white .amount {
    color: #0047AB;
    text-shadow: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .balance-card {
        padding: 1.5rem;
    }

    .balance-card h2,
    .balance-card .amount {
        font-size: 1.85rem;
    }
}