.currency-selector-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: 15px;
}

.country-selector {
    position: relative;
}

.country-selector-wrapper {
    position: relative;
    display: inline-block;
}

.country-selector-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 6px 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: inherit;
}

.country-selector-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.country-selector-btn.loading {
    opacity: 0.5;
    pointer-events: none;
}

.country-loader {
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    pointer-events: none;
}

.country-flag {
    width: 24px;
    height: 16px;
    object-fit: cover;
    border-radius: 2px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.country-flag-emoji {
    font-size: 20px;
    line-height: 1;
}

.dropdown-arrow {
    font-size: 10px;
    opacity: 0.7;
    transition: transform 0.3s ease;
}

.country-selector-btn.active .dropdown-arrow {
    transform: rotate(180deg);
}

.country-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    min-width: 220px;
    background: rgba(26, 26, 26, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    overflow: hidden;
}

.country-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-header {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.country-option {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 10px 16px;
    background: transparent;
    border: none;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}

.country-option:hover {
    background: rgba(255, 255, 255, 0.1);
}

.country-option.active {
    background: rgba(255, 79, 129, 0.2);
    color: #ff4f81;
}

.country-flag-small {
    width: 20px;
    height: 14px;
    object-fit: cover;
    border-radius: 2px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
}

.country-flag-emoji-small {
    font-size: 18px;
    flex-shrink: 0;
}

.country-name {
    flex: 1;
    font-size: 14px;
}

.check-mark {
    color: #4CAF50;
    font-size: 16px;
    flex-shrink: 0;
}

.currency-select-wrapper {
    position: relative;
    display: inline-block;
}

.currency-select {
    padding: 6px 32px 6px 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: inherit;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 12 12"><path fill="rgba(255,255,255,0.7)" d="M6 9L1 4h10z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 10px center;
}

.currency-select:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.currency-select.loading {
    opacity: 0.5;
    pointer-events: none;
}

.currency-select option {
    background: #1a1a1a;
    color: #ffffff;
}

.currency-loader {
    position: absolute;
    top: 50%;
    right: 35px;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    pointer-events: none;
}

.spinner {
    animation: rotate 1s linear infinite;
    width: 100%;
    height: 100%;
}

.spinner .path {
    stroke: currentColor;
    stroke-linecap: round;
    animation: dash 1.5s ease-in-out infinite;
}

@keyframes rotate {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes dash {
    0% {
        stroke-dasharray: 1, 150;
        stroke-dashoffset: 0;
    }
    50% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -35;
    }
    100% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -124;
    }
}

/* Mobile responsive */
@media (max-width: 768px) {
    .currency-selector-wrapper {
        gap: 10px;
        margin-left: 10px;
    }

    .country-selector-btn {
        padding: 5px 10px;
    }

    .country-flag {
        width: 20px;
        height: 14px;
    }

    .currency-select {
        font-size: 12px;
        padding: 5px 28px 5px 10px;
    }

    .country-dropdown {
        min-width: 200px;
    }
}
