/* =======================================================
   CARNELIO MONEY UI KIT
   ======================================================= */

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@700;800&display=swap');

/* --- CONFIGURACIÓN BASE --- */
.money-icon {
    font-family: 'Sora', sans-serif;
    /* Fuente Clave */
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
    box-sizing: border-box;
}

/* --- ESTILO GENERAL BILLETE (Base) --- */
.bill {
    width: fit-content;
    min-width: 90px;
    height: 44px;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    transition: transform 0.2s;
}

.bill:hover {
    transform: translateY(-2px);
}

/* Texto oscuro para billetes pasteles */
.bill-text {
    font-weight: 800;
    font-size: 16px;
    line-height: 1;
    color: #333;
    z-index: 2;
    text-transform: uppercase;
    letter-spacing: -0.5px;
    white-space: nowrap;
}

.bill-text span {
    position: relative;
}

/* Banda de Seguridad (Holograma) */
.bill::after {
    content: '';
    position: absolute;
    left: 12px;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.1));
    z-index: 1;
    opacity: 0.6;
}

/* Patrón de fondo (Textura) */
.bill::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(0, 0, 0, 0.1) 1px, transparent 1px);
    background-size: 6px 6px;
    mix-blend-mode: overlay;
}

/* --- COLORES BILLETES (Pasteles Modernos) --- */
.b-2k {
    background: linear-gradient(135deg, #e5f1ef 0%, #a4ddda 100%);
    border: 1px solid #a4ddda;
}

.b-5k {
    background: linear-gradient(135deg, #fcf4e7 0%, #e7d3c0 100%);
    border: 1px solid #e7d3c0;
}

.b-10k {
    background: linear-gradient(135deg, #fde7e6 0%, #edcdcd 100%);
    border: 1px solid #edcdcd;
}

.b-20k {
    background: linear-gradient(135deg, #f9e0ce 0%, #f4be9d 100%);
    border: 1px solid #f4be9d;
}

.b-50k {
    background: linear-gradient(135deg, #dbcecf 0%, #cb9ec0 100%);
    border: 1px solid #cb9ec0;
}

.b-100k {
    background: linear-gradient(135deg, #e5edde 0%, #a9d0c9 100%);
    border: 1px solid #a9d0c9;
}


/* --- ESTILO GENERAL MONEDA (Base) --- */
.coin {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 700;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.1);
    position: relative;
    background-color: #E2E8F0;
    /* Fallback */
    color: #475569;
}

/* Brillo Metálico */
.coin::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, transparent 50%);
    opacity: 0.5;
    pointer-events: none;
}

/* --- COLORES MONEDAS --- */
.c-50,
.c-200 {
    background: #E2E8F0;
    color: #475569;
}

.c-100 {
    background: #FCD34D;
    color: #92400E;
    border-color: #F59E0B;
}

.c-500 {
    background: radial-gradient(circle, #FCD34D 50%, transparent 50.5%), #E2E8F0;
    color: #78350F;
}

.c-1000 {
    background: radial-gradient(circle, #E2E8F0 50%, transparent 50.5%), #FCD34D;
    color: #1E293B;
}

/* --- MASCOT ASSISTANT (CARNELIO) --- */
.carnelio-mascot {
    width: 60px;
    height: 60px;
    object-fit: contain;
    position: absolute;
    top: -30px;
    left: -10px;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.2));
    z-index: 100;
    animation: carnelioBounce 2s infinite ease-in-out;
}

.driver-popover {
    border-radius: 20px !important;
    padding: 20px !important;
    border: none !important;
    box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.2) !important;
}

.driver-popover-title {
    font-family: 'Inter', sans-serif !important;
    font-weight: 900 !important;
    font-size: 16px !important;
    color: #1e293b !important;
    margin-bottom: 2px !important;
}

.driver-popover-description {
    font-family: 'Inter', sans-serif !important;
    font-size: 13px !important;
    color: #64748b !important;
    line-height: 1.5 !important;
    padding-left: 20px !important;
    border-left: 3px solid #ef4444;
}

@keyframes carnelioBounce {

    0%,
    100% {
        transform: translateY(0) scale(1.05);
    }

    50% {
        transform: translateY(-5px) scale(1);
    }
}