#currency-widget {
    position: fixed;
    top: 55px;
    right: 5px;
    background: #fff; /* Solid white background */
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 5px;
    z-index: 9999;
    width: 110px;
    min-height: 10px;
    font-family: Arial, sans-serif;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
    opacity: 0.7; /* Semi-transparent by default */
    transition: opacity 0.3s ease; /* Smooth opacity transition */
}
#currency-widget:hover {
    opacity: 1; /* Fully opaque on hover */
}
#currency-widget h4 {
    margin: 0 0 4px;
    font-size: 13px;
    text-align: center;
}
#currency-summary span {
    display: block;
    font-size: 13px;
    margin: 2px 0;
}
.currency-popup {
    display: none;
    position: fixed;
    top: 80px;
    right: 1px;
    background: #fff; /* Fully opaque popup */
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 10px;
    max-height: 400px;
    width: 280px;
    overflow-y: auto;
    z-index: 10000;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.currency-popup.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}
.currency-popup .currency-item {
    display: flex;
    align-items: center;
    padding: 6px 0;
    font-size: 12px;
    border-bottom: 1px solid #eee;
}
.currency-popup .currency-item:last-child {
    border-bottom: none;
}
.currency-popup .currency-flag {
    margin-right: 8px;
}
.currency-popup .currency-name {
    flex: 1;
}
.currency-popup .currency-rate {
    font-weight: 600;
}
.cw-error {
    color: #b00020;
    font-weight: 600;
}
.cw-more {
    text-align: center;
    margin-top: 4px;
}
.cw-more a {
    font-size: 11px;
    color: #0073aa;
    text-decoration: none;
}
.cw-more a:hover {
    text-decoration: underline;
}
.cw-small {
    font-size: 10px;
    color: #666;
    margin-top: 4px;
    text-align: center;
}
.currency-usd { color: #2e7d32; }
.currency-cny { color: #d32f2f; }
.currency-iqd { color: #1976d2; }
.currency-eur { color: #0288d1; }
.currency-gbp { color: #6a1b9a; }
.currency-aed { color: #388e3c; }
.currency-try { color: #c2185b; }
.currency-rub { color: #d81b60; }
.currency-jpy { color: #fbc02d; }
.currency-btc { color: #f57c00; }
.currency-eth { color: #5e35b1; }
.currency-xau { color: #ffb300; }
.currency-cad { color: #d81b60; }
.currency-aud { color: #0288d1; }
.currency-chf { color: #388e3c; }