/* ===========================
   Country Selector Modal
   =========================== */
.country-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

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

.country-modal-content {
    background-color: #fff;
    padding: 2.5rem;
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.country-modal.active .country-modal-content {
    transform: translateY(0);
}

.country-modal-title {
    font-size: 1.75rem;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.country-modal-subtitle {
    color: #666;
    margin-bottom: 2rem;
    font-size: 1rem;
}

.country-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.country-option {
    background-color: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.country-option:hover {
    border-color: var(--color-primary);
    background-color: #f0f9f6;
    transform: translateY(-3px);
}

.country-flag {
    font-size: 3rem;
    line-height: 1;
}

.country-name {
    font-weight: 600;
    color: var(--color-text);
}

.country-currency {
    font-size: 0.85rem;
    color: #888;
}

/* Header Switcher */
.country-switcher {
    margin-left: 1rem;
    cursor: pointer;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    border-radius: 50%;
    transition: background-color 0.2s;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.country-switcher:hover {
    background-color: #f0f0f0;
}