/* =========================================================
   WALLET - CONTAINER PRINCIPAL
========================================================= */

.wallet-container {
    position: relative;
}

/* =========================================================
   WALLET - TRIGGER (BOTÃO SUPERIOR)
========================================================= */

.wallet-trigger {
    display: flex !important;
    align-items: center;
    background: linear-gradient(135deg,#003D78,#0057a8);
    color: white !important;
    border-radius: 40px;
    padding: 6px 18px !important;
    height: 36px;
    margin-top: 7px;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.wallet-trigger:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0,0,0,.25), 0 0 12px rgba(60,141,188,.35);
}

/* =========================================================
   WALLET - TEXTO DO TRIGGER
========================================================= */

.wallet-text {
    display: flex;
    flex-direction: column;
    margin-left: 8px;
    margin-right: 10px;

}

.wallet-title {
    font-size: 14px;
    font-weight: 900;
}

.wallet-value {
    font-size: 14px;
    font-weight: 900;
    margin: 0 auto;
    margin-top: -4px;
}

/* =========================================================
   WALLET - ÍCONE DA BATERIA
========================================================= */

.wallet-icon {
    font-size: 30px;
    transition: transform 0.3s ease, color 0.3s ease;
    margin-top: 3px;
    margin-right: -4px;
}

/* CORES */
.wallet-icon.text-success {
    color: #00a65a; 
}

.wallet-icon.text-warning { 
    color: #f39c12; 
}

.wallet-icon.text-danger {
    color: #dd4b39; 
}

/* =========================================================
   WALLET - ANIMAÇÕES DO ÍCONE
========================================================= */

/* velocidades */

.wallet-icon.pulse-slow {
    animation: walletPulse 2.5s infinite;
}

.wallet-icon.pulse-medium {
    animation: walletPulse 1.6s infinite;
}

.wallet-icon.pulse-fast {
    animation: walletPulse 0.9s infinite;
}

/* animação */

@keyframes walletPulse {
    0% {
        transform: scale(1);
        text-shadow: 0 0 0 currentColor;
    }

    50% {
        transform: scale(1.15);
        text-shadow: 0 0 12px currentColor, 0 0 20px currentColor;
    }

    100% {
        transform: scale(1);
        text-shadow: 0 0 0 currentColor;
    }
}

/* =========================================================
   WALLET - DROPDOWN
========================================================= */

.wallet-dropdown {
    border: none;
    padding: 0;
    background: transparent;
    right: -10px !important;
}

/* animação abertura */

.wallet-dropdown > li > .wallet-card {
    opacity: 0;
    transform: translateY(8px) scale(.98);
    transform-origin: top right;
    animation: walletDropdownIn .18s ease-out forwards;

}

@keyframes walletDropdownIn {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* =========================================================
   WALLET - CARD PRINCIPAL
   ========================================================= */

.wallet-card {
    width: 340px;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.12), 0 2px 6px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: transform .18s ease, box-shadow .18s ease;

}

.wallet-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 40px rgba(0,0,0,0.18), 0 4px 10px rgba(0,0,0,0.12);
}

/* =========================================================
   WALLET - HEADER
   ========================================================= */

.wallet-header {
    padding: 20px 22px 16px 22px;
    background: #ffffff;
}

.wallet-status-title {
    font-size: 11px;
    font-weight: 600;
    color: #8a8f98;
    letter-spacing: .6px;
}

.wallet-credit-main {
    display: flex;
    align-items: baseline;
    margin-top: 6px;
}

.wallet-credit-number {
    font-size: 42px;
    font-weight: 700;
    color: #111;
    transition: transform .2s ease, color .2s ease;
}

.wallet-credit-number.wallet-updated {
    transform: scale(1.05);
    color: #00a65a;
}

.wallet-credit-unit {
    font-size: 16px;
    color: #8a8f98;
    margin-left: 6px;
}

/* =========================================================
   WALLET - BODY
   ========================================================= */

.wallet-body {
    padding: 18px 22px 20px 22px;
    background: #f7f9fc;
    border-top: 1px solid #eef1f4;
}

/* =========================================================
   WALLET - PROGRESS BAR
   ========================================================= */

.wallet-progress-container {
    margin-bottom: 16px;
}

.wallet-progress-text {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    margin-bottom: 6px;
}

.wallet-progress {
    height: 10px;
    border-radius: 999px;
    background: #e6eaf0;
    overflow: hidden;
}

.wallet-progress .progress-bar {
    border-radius: 999px;
    transition: width .6s cubic-bezier(.4,0,.2,1), background-color .3s ease;
}

/* =========================================================
   WALLET - GRID DE INFORMAÇÕES
========================================================= */

.wallet-info-grid {
    margin-top: 10px;
    margin-left: -7px;
}

.wallet-info-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 8px;
    border-radius: 6px;
    transition: background .15s ease;
}

.wallet-info-row:hover {
    background: #f4f6f9;
}

.wallet-info-label {
    color: #6b7280;
}

.wallet-info-value {
    font-weight: 600;
    color: #111;
}

.wallet-success {
    color: #00a65a;
}

.wallet-warning {
    color: #f39c12;
}

.wallet-danger {
    color: #dd4b39;
}


/* =========================================================
   WALLET - FOOTER
========================================================= */

.wallet-footer {
    margin-top: 14px;
    padding-top: 10px;
    border-top: 1px solid #eef1f4;
}

.wallet-history-link {
    display: block;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: #3c8dbc;
    padding: 6px;
    border-radius: 6px;
    transition: all .15s ease;
}

.wallet-history-link:hover {
    background: #eef3f8;
    transform: translateY(-1px);
    color: #1e88e5;
    text-decoration: none;
}

/* =========================================================
   WALLET - LOADER
   ========================================================= */

.wallet-loader-dots span {
    width: 4px;
    height: 4px;
    margin: 0 2px;
    background: white;
    border-radius: 50%;
    display: inline-block;
    animation: walletLoader 1.4s infinite;
}

.wallet-loader-dots span:nth-child(2) {
    animation-delay: .2s;
}

.wallet-loader-dots span:nth-child(3) {
    animation-delay: .4s;
}

@keyframes walletLoader {

    0%,80%,100% {
        opacity: .3;
        transform: scale(.5);
    }

    40% {
        opacity: 1;
        transform: scale(1);
    }
}

/* ================================
   CONFIGURAÇÕES DA CARTEIRA
================================ */

.wallet-settings-divider
{
    border-top: 1px solid #eee;
    margin: 12px 0;
}

.wallet-settings-title
{
    font-size: 11px;
    font-weight: 600;
    color: #999;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.wallet-setting-item
{
    padding: 6px 0;
}

.wallet-setting-label
{
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    color: #333;
}

.wallet-setting-label input
{
    cursor: pointer;
}

.wallet-setting-description
{
    font-size: 11px;
    color: #888;
    margin-left: 22px;
    margin-top: 2px;
    line-height: 1.3;
}

.wallet-config-warning
{
    font-size: 12px;
    color: #b37b00;
    margin-left: 24px;
    margin-top: 6px;
    line-height: 1.4;
}

.wallet-config-item
{
    padding: 8px 0;
}

.wallet-config-title
{
    font-weight: 600;
    font-size: 14px;
}

.wallet-config-description
{
    font-size: 12.5px;
    color: #666;
    margin-left: 24px;
    margin-top: 4px;
    line-height: 1.4;
}

.wallet-config-alert
{
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin-top: 10px;
    padding: 8px 10px;
    background: #fff8e5;
    border: 1px solid #f0d58a;
    border-radius: 4px;
    font-size: 12.5px;
    color: #8a6d00;
}

.wallet-config-alert-icon
{
    font-size: 16px;
    margin-top: 1px;
}

.wallet-config-blocked
{
    margin-top: 10px;
    padding: 8px 10px;

    font-size: 12.5px;
    color: #6b7280;

    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 6px;

    display: flex;
    align-items: center;
    gap: 6px;
}