/* Currency Modal VIP Design */
.currency-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(5px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.currency-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.currency-modal-content {
    background: #FFFFFF;
    width: 90%;
    max-width: 800px;
    max-height: 85vh;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
}

.currency-modal-overlay.active .currency-modal-content {
    transform: translateY(0) scale(1);
}

.currency-modal-header {
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    color: #1E293B;
}

.currency-modal-header h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
}

.currency-modal-close {
    background: transparent;
    border: none;
    color: #64748B;
    font-size: 1.25rem;
    cursor: pointer;
    transition: color 0.2s;
}

.currency-modal-close:hover {
    color: #0F172A;
}

.currency-modal-body {
    padding: 0 1.5rem 1.5rem 1.5rem;
    overflow-y: auto;
}

.currency-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.currency-item-btn {
    background: transparent;
    border: none;
    border-radius: 8px;
    padding: 0.75rem;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    transition: background 0.2s;
    text-align: left;
}

.currency-item-btn:hover {
    background: #F1F5F9;
}

.currency-item-btn.active {
    background: #FFFaf0;
}

.currency-flag {
    font-size: 1.8rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

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

.currency-name {
    font-weight: 600;
    font-size: 0.85rem;
    color: #1E293B;
}

.currency-code {
    font-size: 0.75rem;
    color: #64748B;
    margin-top: 0.1rem;
}

.currency-trigger-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #fff;
    border: 2px solid #E2E8F0;
    color: #1E293B;
    padding: 0.4rem 0.8rem;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.currency-trigger-btn:hover {
    border-color: #DD6B20;
}

@media (max-width: 768px) {
    .currency-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .currency-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .currency-trigger-btn {
        padding: 0.25rem 0.6rem;
        font-size: 0.8rem;
        gap: 0.35rem;
    }

    .currency-trigger-btn span {
        display: inline-block;
    }
}