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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: radial-gradient(circle at 20% 20%, rgba(255,255,255,0.08), transparent 40%),
                radial-gradient(circle at 80% 0%, rgba(255,255,255,0.06), transparent 35%),
                linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 24px;
}

.container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 16px 50px rgba(25, 35, 72, 0.2);
    padding: 42px 36px;
    max-width: 640px;
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.site-footer {
    margin-top: auto;
    padding-top: 18px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 13px;
    text-align: center;
}

h1 {
    color: #333;
    margin-bottom: 14px;
    font-size: 30px;
    line-height: 1.2;
}

h2 {
    color: #555;
    margin-top: 32px;
    margin-bottom: 15px;
    font-size: 20px;
}

p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.lang-switch {
    display: flex;
    gap: 10px;
    margin-bottom: 18px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.lang-btn {
    border: none;
    background: transparent;
    padding: 0;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.2s ease;
    width: auto;
    height: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.lang-btn:hover {
    transform: translateY(-1px);
}

.lang-btn.active {
    outline: none;
    box-shadow: none;
}

.lang-btn svg {
    width: 28px;
    height: 20px;
    display: block;
}

.download-section {
    margin: 30px 0;
    text-align: center;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    justify-content: center;
}

.download-button {
    display: inline-block;
    background: #667eea;
    color: white;
    padding: 15px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: background 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    width: 100%;
    max-width: 320px;
    text-align: center;
}

.download-button:hover {
    background: #5568d3;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.download-button:active {
    transform: translateY(0);
}

.instructions {
    margin-top: 34px;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
}

.device-switch {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    padding: 10px 12px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
}

.device-label {
    color: #666;
    font-weight: 600;
    font-size: 14px;
    margin-right: 2px;
}

.device-btn {
    border: 1px solid #e5e7eb;
    background: white;
    color: #333;
    padding: 8px 12px;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.2s ease;
    box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
}

.device-btn:hover {
    background: #eef2ff;
    border-color: #c7d2fe;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(99, 102, 241, 0.2);
}

.device-btn.active {
    background: #667eea;
    color: white;
    border-color: transparent;
    box-shadow: 0 6px 14px rgba(102, 126, 234, 0.35);
}

.instructions ol {
    margin-left: 18px;
    color: #666;
    line-height: 1.8;
}

.instructions li {
    margin-bottom: 10px;
}

.instructions strong {
    color: #333;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.settings-icon {
    display: inline-block;
    vertical-align: middle;
    color: #667eea;
    flex-shrink: 0;
}

#access-denied {
    text-align: center;
}

#access-denied h1 {
    color: #e74c3c;
}

#access-denied p {
    color: #999;
}

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

    h1 {
        font-size: 24px;
        margin-bottom: 12px;
    }

    .download-button {
        padding: 12px 22px;
        font-size: 15px;
        width: 100%;
    }

    .instructions ol {
        margin-left: 16px;
        line-height: 1.7;
    }
}

@media (min-width: 1024px) {
    .container {
        max-width: 720px;
        padding: 48px 44px;
    }

    h1 {
        font-size: 32px;
    }

    .download-button {
        font-size: 17px;
        padding: 16px 30px;
        max-width: 320px;
    }

    .download-section {
        gap: 20px;
    }
}

