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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1e2a3a, #0f1724);
    color: #e2e8f0;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    max-width: 600px;
    width: 100%;
    background: rgba(30, 41, 59, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 32px;
    padding: 32px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.view {
    display: none;
}

.view.active {
    display: block;
}

h1 {
    text-align: center;
    margin-bottom: 32px;
    font-weight: 600;
    background: linear-gradient(135deg, #60a5fa, #c084fc);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.auth-methods {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.method {
    background: #1e293b;
    padding: 20px;
    border-radius: 24px;
    border: 1px solid #334155;
}

.method h3 {
    margin-bottom: 16px;
    font-size: 1.25rem;
}

input, button {
    width: 100%;
    padding: 12px;
    margin: 8px 0;
    border-radius: 16px;
    border: none;
    font-size: 1rem;
}

input {
    background: #0f1724;
    color: #f1f5f9;
    border: 1px solid #334155;
}

button {
    background: #3b82f6;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
}

button:hover {
    background: #2563eb;
    transform: translateY(-2px);
}

.profile-card {
    background: #1e293b;
    border-radius: 24px;
    padding: 24px;
}

.profile-card p {
    margin: 12px 0;
}

.profile-card ul {
    margin: 12px 0 12px 24px;
}

#logout-btn {
    background: #ef4444;
    margin-top: 24px;
}

#logout-btn:hover {
    background: #dc2626;
}

#telegram-widget {
    margin-top: 12px;
}
.proxy-btn {
    background: #2d8c5a;
    margin-top: 8px;
    width: auto;
    display: inline-block;
    padding: 10px 20px;
}
.proxy-btn:hover {
    background: #1e6b45;
}
#telegram-proxy-btn {
    background: #2d8c5a;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 16px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 8px;
    width: auto;
    display: inline-block;
}

#telegram-proxy-btn:hover {
    background: #1e6b45;
}
.instruction-link {
    display: inline-block;
    margin-top: 10px;
    color: #60a5fa;
    text-decoration: none;
    background: #1e293b;
    padding: 8px 16px;
    border-radius: 20px;
}
.instruction-link:hover {
    background: #334155;
}
.test-telegram-btn {
    background: #6b21a5;
    margin-top: 10px;
}
.test-telegram-btn:hover {
    background: #4c1d95;
}