/**
 * ============================================================
 * Ahmadiyad - Luxury Coin Balance Rolling Widget
 * Smooth 3D Rolling/Flip animation (Coins <-> BDT)
 * Developed by: Etarnity Global Innovation
 * ============================================================
 */

.navbar-coin-widget {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: linear-gradient(135deg, #FFFBEB 0%, #FEF3C7 100%);
    border: 1.5px solid #FDE68A;
    padding: 4px 10px 4px 6px;
    border-radius: 10px;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(217, 119, 6, 0.12);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    height: 36px;
    margin-left: 10px;
    margin-right: 4px;
    box-sizing: border-box;
}

.navbar-coin-widget:hover {
    background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
    border-color: #F59E0B;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(217, 119, 6, 0.22);
}

.coin-icon-badge {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    font-size: 13px;
    box-shadow: 0 2px 5px rgba(217, 119, 6, 0.35);
    flex-shrink: 0;
    animation: coinPulse 3s infinite ease-in-out;
}

.coin-icon-badge svg {
    width: 16px;
    height: 16px;
    filter: drop-shadow(0 1px 1px rgba(0,0,0,0.2));
}

/* 3D Vertical Rolling Ticker */
.coin-rolling-ticker {
    height: 20px;
    line-height: 20px;
    overflow: hidden;
    position: relative;
    perspective: 400px;
}

.ticker-roller {
    display: flex;
    flex-direction: column;
    animation: rollCoinTicker 7s infinite cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.ticker-face {
    height: 20px;
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.ticker-num {
    font-size: 13px;
    font-weight: 800;
    color: #92400E;
    font-family: 'Plus Jakarta Sans', sans-serif;
    letter-spacing: -0.2px;
}

.ticker-unit {
    font-size: 11px;
    font-weight: 700;
    color: #B45309;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.face-bdt .ticker-num {
    color: #047857;
}

.face-bdt .ticker-unit {
    color: #065F46;
}

/* Keyframes for seamless vertical rolling between Face 1 and Face 2 */
@keyframes rollCoinTicker {
    0%, 42% {
        transform: translateY(0);
    }
    50%, 92% {
        transform: translateY(-20px);
    }
    100% {
        transform: translateY(0);
    }
}

@keyframes coinPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.08) rotate(5deg);
    }
}

/* Mobile Sidebar Drawer Coin Card */
.sidebar-coin-card {
    background: linear-gradient(135deg, #FFFBEB 0%, #FEF3C7 100%);
    border: 1.5px solid #FDE68A;
    border-radius: 10px;
    padding: 12px 14px;
    margin: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-decoration: none;
    box-shadow: 0 2px 10px rgba(217, 119, 6, 0.08);
}

.sidebar-coin-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-coin-info h5 {
    margin: 0 0 2px;
    font-size: 13.5px;
    font-weight: 800;
    color: #92400E;
}

.sidebar-coin-info p {
    margin: 0;
    font-size: 11.5px;
    color: #B45309;
    font-weight: 600;
}
