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

body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #ffa366 0%, #ffb84d 50%, #ffd699 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 40% 60%, rgba(255, 255, 255, 0.08) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

.container {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.telegram-preview {
    background: white;
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.telegram-preview::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(120, 194, 173, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.channel-avatar {
    width: 130px;
    height: 130px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #f0f0f0;
    position: relative;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.channel-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.channel-avatar:hover img {
    transform: scale(1.1);
}

.channel-name {
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.subscriber-count {
    font-size: 14px;
    color: #7f8c8d;
    margin-bottom: 25px;
    font-weight: 400;
}

.contact-info {
    margin-bottom: 25px;
    text-align: left;
}

.contact-item {
    margin-bottom: 12px;
    font-size: 14px;
    line-height: 1.4;
}

.contact-label {
    color: #7f8c8d;
    font-weight: 400;
}

.contact-link {
    color: #ff8c42;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
}

.contact-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #ff8c42, #ffb84d);
    transition: width 0.3s ease;
}

.contact-link:hover {
    color: #ff7829;
    transform: translateY(-1px);
}

.contact-link:hover::after {
    width: 100%;
}

.registration-info {
    font-size: 14px;
    color: #2c3e50;
    line-height: 1.6;
    margin-bottom: 30px;
    text-align: left;
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    padding: 20px;
    border-radius: 15px;
    border-left: 4px solid #ff8c42;
    box-shadow: 0 4px 15px rgba(255, 140, 66, 0.1);
    position: relative;
    overflow: hidden;
}

.registration-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 90% 10%, rgba(255, 140, 66, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.registration-info strong {
    color: #ff8c42;
    font-weight: 700;
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.telegram-button {
    background: linear-gradient(135deg, #ff8c42 0%, #ffb84d 100%);
    color: white;
    text-decoration: none;
    padding: 18px 40px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(255, 140, 66, 0.3);
    position: relative;
    overflow: hidden;
}

.telegram-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.telegram-button:hover::before {
    left: 100%;
}

.telegram-button:hover {
    background: linear-gradient(135deg, #ff7829 0%, #ff9933 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 140, 66, 0.4);
}

.preview-link {
    color: #95a5a6;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.preview-link:hover {
    color: #ff8c42;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 480px) {
    body {
        padding: 10px;
    }
    
    .telegram-preview {
        padding: 30px 20px;
        border-radius: 15px;
    }
    
    .channel-avatar {
        width: 110px;
        height: 110px;
    }
    
    .channel-name {
        font-size: 24px;
    }
    
    .contact-info {
        margin-bottom: 20px;
    }
    
    .contact-item {
        font-size: 13px;
    }
    
    .registration-info {
        font-size: 11px;
        padding: 12px;
    }
    
    .telegram-button {
        padding: 12px 25px;
        font-size: 13px;
    }
}

/* Адаптивность для планшетов */
@media (min-width: 481px) and (max-width: 768px) {
    .container {
        max-width: 450px;
    }
    
    .telegram-preview {
        padding: 35px 25px;
    }
}

/* Адаптивность для десктопа */
@media (min-width: 769px) {
    .container {
        max-width: 420px;
    }
    
    .telegram-preview {
        padding: 45px 35px;
    }
    
    .telegram-button:active {
        transform: translateY(0);
    }
}

/* Анимации */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.telegram-preview {
    animation: fadeIn 0.6s ease-out;
}

.channel-avatar {
    animation: fadeIn 0.8s ease-out 0.2s both;
}

.channel-info {
    animation: fadeIn 0.8s ease-out 0.4s both;
}

.action-buttons {
    animation: fadeIn 0.8s ease-out 0.6s both;
}

/* Декоративные элементы */
.telegram-preview::after {
    content: '💼';
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 20px;
    opacity: 0.1;
    animation: float 3s ease-in-out infinite;
}

.channel-info::after {
    content: '✈️';
    position: absolute;
    bottom: 10px;
    right: 10px;
    font-size: 16px;
    opacity: 0.1;
    animation: float 2s ease-in-out infinite reverse;
}

/* Анимация плавания */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Улучшения для subscriber-count */
.subscriber-count {
    background: linear-gradient(135deg, #ff8c42, #ffb84d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
}

/* Добавляем блеск для заголовка */
.channel-name {
    position: relative;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
} 