* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    line-height: 1.6;
    color: #2C3E50;
}

.container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 60px;
    max-width: 900px;
    width: 100%;
    text-align: center;
    position: relative;
}

.qr-section {
    margin: 20px 0;
}

h1 {
    color: #333;
    margin-bottom: 30px;
    font-size: 48px;
    font-weight: 600;
}

.qr-code {
    background: white;
    padding: 30px;
    border-radius: 15px;
    margin: 40px 0;
    display: inline-block;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.qr-code img,
.qr-code canvas {
    max-width: 100%;
    height: auto;
}

.instructions {
    color: #666;
    margin-top: 30px;
    line-height: 1.6;
    font-size: 24px;
}

.instructions-alt {
    margin-top: 20px;
    font-size: 20px;
    color: #999;
}

.link-button {
    display: inline-block;
    margin-top: 30px;
    padding: 20px 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 15px;
    font-weight: 600;
    font-size: 24px;
    transition: transform 0.3s ease;
}

.link-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.footer {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 2px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.footer-logo {
    height: 60px;
    width: auto;
}

.footer-text {
    font-size: 18px;
    color: #666;
    font-weight: 500;
}

.footer-text strong {
    font-weight: 900;
    color: #333;
    font-size: 20px;
}

.language-switcher {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 100;
}

.lang-dropdown {
    position: relative;
}

.lang-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: 2px solid #667eea;
    background: white;
    color: #667eea;
    border-radius: 10px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.lang-dropdown-toggle:hover {
    background: #f8f9ff;
    border-color: #5a6fd6;
}

.lang-dropdown.open .lang-dropdown-toggle {
    background: #f8f9ff;
    border-color: #5a6fd6;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

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

.lang-code {
    font-weight: 700;
}

.lang-arrow {
    transition: transform 0.3s ease;
    color: #667eea;
}

.lang-dropdown.open .lang-arrow {
    transform: rotate(180deg);
}

.lang-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    background: white;
    border: 2px solid #5a6fd6;
    border-top: none;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    overflow: hidden;
}

.lang-dropdown.open .lang-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s ease;
}

.lang-dropdown-item:hover {
    background: #f8f9ff;
}

.lang-dropdown-item.active {
    background: #f0f3ff;
    color: #667eea;
}

.lang-name {
    flex: 1;
}

.lang-check {
    color: #667eea;
}

/* List reset for dropdown menu */
.lang-dropdown-menu {
    list-style: none;
}

.lang-dropdown-menu li {
    margin: 0;
    padding: 0;
}

/* Focus styles for accessibility */
:focus-visible {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

.link-button:focus-visible {
    outline: 3px solid white;
    outline-offset: 3px;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.lang-dropdown-toggle:focus-visible {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

.lang-dropdown-item:focus {
    outline: none;
    background: #f0f3ff;
}

.lang-dropdown-item:focus-visible {
    background: #f0f3ff;
    outline: 2px solid #667eea;
    outline-offset: -2px;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

@media (max-width: 640px) {
    .container {
        padding: 28px;
    }

    .language-switcher {
        position: static;
        display: flex;
        justify-content: flex-end;
        margin-bottom: 20px;
    }

    h1 {
        font-size: 32px;
    }

    .instructions {
        font-size: 18px;
    }

    .link-button {
        width: 100%;
        padding: 18px 20px;
        font-size: 20px;
    }
}
