:root {
    --tg-blue: #3390ec;
    --tg-bg: #EFEFEF;
    /* Fallback */
    --tg-text: #000000;
    --tg-hint: #707579;
    --tg-link: #3390ec;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: #a2d398;
    background-image: url('bg_new.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    color: var(--tg-text);
}

.container {
    background: #ffffff;
    border-radius: 16px;
    padding: 32px 24px;
    width: 100%;
    max-width: 400px;
    margin: 16px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    /* Soft shadow */
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Center logo by default */
}

.logo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
}

/* Content wrapper to facilitate alignment logic */
.content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Center align everything per user feedback */
    width: 100%;
    text-align: center;
}

h1 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 4px;
    line-height: 1.3;
    width: 100%;
    text-align: center;
}

.subscribers {
    font-size: 14px;
    color: var(--tg-hint);
    margin-top: 4px;
    margin-bottom: 24px;
    width: 100%;
    text-align: center;
}

.description {
    text-align: center;
    margin-bottom: 24px;
    font-size: 15px;
    line-height: 1.5;
    width: 100%;
}

.description p {
    margin-bottom: 8px;
}

.btn-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.btn {
    position: relative;
    display: block;
    width: 100%;
    padding: 12px 16px;
    background-color: var(--tg-blue);
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    border-radius: 30px;
    /* Rounded buttons */
    text-align: center;
    text-transform: uppercase;
    overflow: hidden;
    /* For shine effect */
}

/* Shine animation */
.btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.3) 50%, rgba(255, 255, 255, 0) 100%);
    transform: skewX(-25deg);
    animation: shine 10s infinite;
    /* Much slower */
}

@keyframes shine {
    0% {
        left: -100%;
    }

    20% {
        left: 200%;
    }

    100% {
        left: 200%;
    }
}

.btn:active {
    background-color: #287bbd;
    transform: scale(0.98);
}

.footer-text {
    margin-top: 24px;
    font-size: 13px;
    color: var(--tg-hint);
    text-align: center;
    line-height: 1.4;
    max-width: 90%;
    align-self: center;
    /* Center this text even if container is flex-col */
}

/* Mobile optimizations */
@media (max-width: 480px) {
    .container {
        max-width: 100%;
        width: calc(100% - 32px);
        /* Keep margins on sides */
        margin: 16px auto;
        /* Centered with margin */
        min-height: auto;
        /* Allow height to fit content */
        border-radius: 16px;
        /* Keep rounded */
        justify-content: center;
    }

    .content-wrapper {
        align-items: center;
        padding: 0 8px;
        /* Slightly reduced padding */
    }

    /* Override body if needed to ensure background fixed */
    body {
        background-attachment: fixed;
    }
}