/**
 * RAF-74: RDT Balance Widget + Home Button Styles
 */

/* ===========================================
   RDT WIDGET (HOME PAGE) - BIGGER
   =========================================== */
.rdt-mini-balance {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: white;
    border: 1px solid rgba(75, 196, 81, 0.3);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    font-family: 'Josefin Sans', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #1f2937;
    /* Position absolute in top-right */
    position: absolute;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}

.rdt-mini-balance:hover {
    border-color: #4BC451;
    box-shadow: 0 3px 10px rgba(75, 196, 81, 0.25);
    transform: translateY(-50%) scale(1.02);
}

.rdt-mini-balance:active {
    transform: translateY(-50%) scale(0.98);
}

.rdt-mini-balance .rdt-coin-mini {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

.rdt-mini-balance .rdt-mini-amount {
    min-width: 24px;
    text-align: center;
}


/* ===========================================
   HOME BUTTON (CHAT PAGE) - BIGGER, Simple
   =========================================== */
.rdt-home-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.15s ease;
    padding: 6px;
    /* Position absolute in top-right */
    position: absolute;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}

.rdt-home-btn:hover {
    background: rgba(75, 196, 81, 0.15);
}

.rdt-home-btn:active {
    background: rgba(75, 196, 81, 0.25);
    transform: translateY(-50%) scale(0.95);
}

.rdt-home-btn svg {
    width: 24px;
    height: 24px;
}


/* ===========================================
   BRAND HEADER FIX - Keep centered
   =========================================== */
.brand-header {
    position: relative !important;
}


/* ===========================================
   RESPONSIVE
   =========================================== */
@media (max-width: 420px) {
    .rdt-mini-balance {
        padding: 5px 10px;
        font-size: 14px;
        gap: 5px;
        right: 36px;
    }
    
    .rdt-mini-balance .rdt-coin-mini {
        width: 18px;
        height: 18px;
    }
    
    .rdt-home-btn {
        width: 32px;
        height: 32px;
        right: 36px;
        padding: 4px;
    }
    
    .rdt-home-btn svg {
        width: 22px;
        height: 22px;
    }
}
