/* Currency Dropdown Styles */
.currency-dropdown {
    position: relative;
}

.currency-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 9999px;
    font-weight: 500;
    color: #475569;
    cursor: pointer;
    transition: all 0.3s ease;
}

.currency-button:hover {
    background: rgba(255, 255, 255, 0.9);
    color: #2563eb;
    border-color: rgba(37, 99, 235, 0.2);
}

.currency-button i {
    font-size: 0.75rem;
    opacity: 0.7;
}

.currency-dropdown-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    width: 280px;
    max-height: 400px;
    overflow-y: auto;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border: 1px solid #e2e8f0;
    padding: 0.5rem;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
}

.currency-dropdown-menu:not(.hidden) {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.currency-dropdown-menu::-webkit-scrollbar {
    width: 6px;
}

.currency-dropdown-menu::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 10px;
}

.currency-dropdown-menu::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

.currency-dropdown-menu::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.currency-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    color: #334155;
}

.currency-option:hover {
    background: #eff6ff;
    color: #2563eb;
}

.currency-option .fi {
    font-size: 1.25rem;
    width: 24px;
    height: 18px;
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.currency-option-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.currency-code {
    font-weight: 600;
    font-size: 0.875rem;
}

.currency-name {
    font-size: 0.75rem;
    color: #64748b;
}

.currency-symbol {
    font-weight: 600;
    color: #94a3b8;
    font-size: 0.875rem;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .currency-dropdown-menu {
        right: -1rem;
        width: 260px;
    }

    .currency-button {
        padding: 0.4rem 0.75rem;
        font-size: 0.875rem;
    }
}

/* Popular currencies section */
.currency-section-title {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.currency-divider {
    height: 1px;
    background: #e2e8f0;
    margin: 0.5rem 0;
}