/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #000000;
    color: #ffffff;
    min-height: 100vh;
    min-height: -webkit-fill-available;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    line-height: 1.5;
    position: relative;
    overflow-x: hidden;
    overflow-y: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Matrix Money Rain */
.money-rain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.money-drop {
    position: absolute;
    color: #00ffff;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    font-size: 20px;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.8), 0 0 20px rgba(0, 255, 255, 0.5), 0 0 30px rgba(0, 200, 255, 0.3);
    opacity: 0.8;
    animation: fall linear infinite;
    user-select: none;
}

.money-drop:nth-child(odd) {
    color: #00aaff;
    opacity: 0.6;
}

.money-drop:nth-child(3n) {
    color: #0088ff;
    opacity: 0.7;
}

@keyframes fall {
    0% {
        transform: translateY(-100px);
        opacity: 0;
    }
    10% {
        opacity: 0.8;
    }
    90% {
        opacity: 0.8;
    }
    100% {
        transform: translateY(100vh);
        opacity: 0;
    }
}

/* Main content */
.main-content {
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

/* Circular Image Container */
.image-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-top: 1rem;
}

.circular-image {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Promotional Overlay */
.promo-overlay {
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 1.5rem 1.25rem;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.promo-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.check-icon {
    width: 32px;
    height: 32px;
    background: #00ff00;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000000;
    font-weight: bold;
    font-size: 20px;
    flex-shrink: 0;
}

.promo-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.5px;
}

.promo-text {
    font-size: 0.95rem;
    color: #ffffff;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-weight: 400;
}

/* Telegram Button */
.telegram-button {
    display: block;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
    background: linear-gradient(135deg, rgba(34, 158, 217, 0.4), rgba(0, 136, 204, 0.4));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: #ffffff;
    text-decoration: none;
    padding: 1.25rem 2rem;
    border-radius: 16px;
    font-size: 1.05rem;
    font-weight: 700;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    letter-spacing: 0.8px;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 8px 32px rgba(34, 158, 217, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset,
        0 0 60px rgba(34, 158, 217, 0.3);
    animation: buttonGlow 2s ease-in-out infinite;
}

.telegram-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border-radius: 16px;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.telegram-button::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

@keyframes buttonGlow {
    0%, 100% {
        box-shadow: 
            0 8px 32px rgba(34, 158, 217, 0.4),
            0 0 0 1px rgba(255, 255, 255, 0.1) inset,
            0 0 60px rgba(34, 158, 217, 0.3);
    }
    50% {
        box-shadow: 
            0 8px 40px rgba(34, 158, 217, 0.6),
            0 0 0 1px rgba(255, 255, 255, 0.2) inset,
            0 0 80px rgba(34, 158, 217, 0.5),
            0 0 100px rgba(34, 158, 217, 0.3);
    }
}

.telegram-button:hover {
    background: linear-gradient(135deg, rgba(34, 158, 217, 0.5), rgba(0, 136, 204, 0.5));
    transform: translateY(-3px) scale(1.02);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 
        0 12px 48px rgba(34, 158, 217, 0.6),
        0 0 0 1px rgba(255, 255, 255, 0.2) inset,
        0 0 80px rgba(34, 158, 217, 0.6),
        0 0 120px rgba(34, 158, 217, 0.4);
    animation: none;
}

.telegram-button:hover::before {
    opacity: 1;
}

.telegram-button:hover::after {
    opacity: 1;
}

.telegram-button:active {
    transform: translateY(-1px) scale(0.98);
    box-shadow: 
        0 4px 20px rgba(34, 158, 217, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.15) inset,
        0 0 40px rgba(34, 158, 217, 0.4);
}

/* Mobile optimizations */
@media (max-width: 480px) {
    body {
        padding: 0.5rem;
    }

    .circular-image {
        width: 240px;
        height: 240px;
    }

    .promo-overlay {
        padding: 1.25rem 1rem;
        border-radius: 12px;
    }

    .promo-title {
        font-size: 1rem;
    }

    .promo-text {
        font-size: 0.875rem;
        margin-bottom: 1.25rem;
    }

    .telegram-button {
        padding: 1rem 1.5rem;
        font-size: 0.95rem;
        border-radius: 14px;
        max-width: 100%;
        min-height: 56px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .check-icon {
        width: 28px;
        height: 28px;
        font-size: 18px;
    }

    /* Reduce money rain on mobile for performance */
    .money-drop {
        font-size: 14px;
    }

    .promo-overlay {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 375px) {
    .circular-image {
        width: 200px;
        height: 200px;
    }

    .promo-overlay {
        padding: 1rem 0.875rem;
    }

    .promo-title {
        font-size: 0.95rem;
    }

    .promo-text {
        font-size: 0.8rem;
    }

    .telegram-button {
        padding: 0.875rem 1.25rem;
        font-size: 0.9rem;
        border-radius: 12px;
        min-height: 52px;
    }

    .check-icon {
        width: 26px;
        height: 26px;
        font-size: 16px;
    }
}

/* Prevent horizontal scroll */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}

/* Better touch targets */
.telegram-button {
    -webkit-tap-highlight-color: rgba(34, 158, 217, 0.3);
    touch-action: manipulation;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}
