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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    color: white;
    overflow: hidden;
}

.container {
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    border: 1px solid rgba(255, 255, 255, 0.18);
    max-width: 400px;
    position: relative;
}

.logo {
    font-size: 3em;
    margin-bottom: 20px;
    user-select: none;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

h1 {
    margin: 0 0 20px 0;
    font-size: 1.8em;
    font-weight: 600;
}

p {
    margin-bottom: 30px;
    opacity: 0.9;
    line-height: 1.5;
}

.telegram-btn {
    background: linear-gradient(45deg, #0088cc, #00a1e4);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 12px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(0, 136, 204, 0.3);
}

.telegram-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 136, 204, 0.4);
}

.telegram-btn:active {
    transform: translateY(0);
}

.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
    font-size: 0.9em;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
    margin-right: 10px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.domain-info {
    margin-top: 30px;
    font-size: 0.8em;
    opacity: 0.6;
    user-select: none;
}

.error {
    color: #ff6b6b;
    font-size: 0.9em;
    margin-top: 15px;
    display: none;
}

.countdown {
    font-size: 2em;
    margin: 20px 0;
    font-weight: bold;
    color: #ffd700;
}

.auto-redirect-info {
    font-size: 0.9em;
    opacity: 0.8;
    margin-top: 10px;
}

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

    h1 {
        font-size: 1.6em;
    }

    p {
        font-size: 0.95em;
    }

    .telegram-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    body {
        padding: 0 12px;
    }

    .container {
        padding: 26px 20px;
        max-width: 320px;
    }

    .logo {
        font-size: 2.4em;
    }

    h1 {
        font-size: 1.45em;
    }

    .countdown {
        font-size: 1.6em;
    }

    .auto-redirect-info {
        font-size: 0.85em;
    }
}
