* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
}

.language-selector-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    width: 100%;
    background-color: #0c4a6e;
    padding: 20px;
}

.language-selector-card {
    transition: all 150ms cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 600ms;
    background-color: #0369a1;
    border-radius: 32px;
    padding: 56px;
    box-shadow: 0 32px 64px rgba(0, 0, 0, 0.25);
    max-width: 600px;
    width: 100%;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: translateY(20px) scale(0.95);
    opacity: 0;
}

.language-selector-card.animate-in {
    transform: translateY(0px) scale(1);
    opacity: 1;
}

@media (max-width: 640px) {
    .language-selector-container {
        padding: 16px;
    }

    .language-selector-card {
        padding: 36px;
    }
}

.header-section {
    text-align: center;
    margin-bottom: 48px;
}

.icon-container {
    position: relative;
    display: inline-block;
    margin-bottom: 24px;
}

.star-icon-wrapper {
    width: 96px;
    height: 96px;
    background-color: #0ea5e9;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 16px 32px rgba(14, 165, 233, 0.4);
    transform: rotate(-5deg);
}

.star-icon {
    width: 48px;
    height: 48px;
    color: #ffffff;
}

.sparkle-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 32px;
    height: 32px;
    background-color: #fbbf24;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 16px rgba(251, 191, 36, 0.4);
}

.sparkle-emoji {
    font-size: 16px;
}

.main-title {
    font-size: 36px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

@media (max-width: 640px) {
    .main-title {
        font-size: 28px;
    }
}

.description {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 400;
    line-height: 1.4;
    max-width: 400px;
    margin: 0 auto;
}

@media (max-width: 640px) {
    .description {
        font-size: 16px;
    }
}

.language-options {
    display: grid;
    gap: 20px;
    margin-bottom: 40px;
}

.language-option {
    position: relative;
    display: flex;
    align-items: center;
    padding: 24px;
    border-radius: 20px;
    cursor: pointer;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 150ms cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 300ms;
    backdrop-filter: blur(5px);
    overflow: hidden;
    background: rgba(255, 255, 255, 0.1);
}

@media (max-width: 640px) {
    .language-option {
        padding: 18px;
    }
}

.language-option:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(8px) scale(1.02);
}

.language-option.selected {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
}

.option-overlay {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: rgba(56, 189, 248, 0.1);
    opacity: 0;
    transition: opacity 150ms cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 300ms;
}

.option-content {
    position: relative;
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
}

.flag-container {
    position: relative;
}

.flag-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 640px) {
    .flag-icon {
        width: 48px;
        height: 48px;
        font-size: 20px;
    }
}

.ukrainian-flag {
    background-color: #fbbf24;
    box-shadow: 0 8px 24px rgba(251, 191, 36, 0.3);
}

.russian-flag {
    background-color: #ef4444;
    box-shadow: 0 8px 24px rgba(239, 68, 68, 0.3);
}

.english-flag {
    background-color: #3b82f6;
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.3);
}

.checkmark-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 20px;
    height: 20px;
    background-color: #10b981;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
    opacity: 0;
    transform: scale(0);
    transition: all 150ms cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 200ms;
}

.language-option.selected .checkmark-badge {
    opacity: 1;
    transform: scale(1);
}

.checkmark-icon {
    width: 12px;
    height: 12px;
    color: #ffffff;
}

.language-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.language-name {
    color: #ffffff;
    font-weight: 700;
    font-size: 20px;
    letter-spacing: -0.01em;
}

@media (max-width: 640px) {
    .language-name {
        font-size: 17px;
    }
}

.language-description {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    font-size: 14px;
}

@media (max-width: 640px) {
    .language-description {
        font-size: 12px;
    }
}

.radio-button {
    position: relative;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.radio-dot {
    width: 12px;
    height: 12px;
    background-color: #ffffff;
    border-radius: 50%;
    transition: transform 150ms cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 200ms;
    transform: scale(0);
}

.language-option.selected .radio-dot {
    transform: scale(1);
}

.footer-section {
    transition: all 150ms cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 400ms;
    opacity: 0;
    transform: translateY(20px);
}

.footer-section.show {
    opacity: 1;
    transform: translateY(0px);
}

.divider {
    height: 1px;
    background-color: rgba(255, 255, 255, 0.3);
    margin-bottom: 32px;
}

.apply-button {
    width: 100%;
    font-weight: 800;
    font-size: 18px;
    padding: 18px 36px;
    border-radius: 16px;
    transition: all 150ms cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 300ms;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    letter-spacing: -0.01em;
    border: none;
    background: #f1f5f9;
    color: #1e40af;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

@media (max-width: 640px) {
    .apply-button {
        font-size: 16px;
        padding: 16px 36px;
    }
}

.apply-button:hover {
    background: #ffffff;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
    color: #0c4a6e;
}

.button-icon {
    width: 20px;
    height: 20px;
}
