html {
    overflow-y: scroll;
}

body {
    background: var(--tg-theme-secondary-bg-color);
    color: var(--tg-theme-text-color);
    font-family: 'Roboto', sans-serif;
    margin: 25px;
}

.headers {
    font-weight: bold;
    font-size: 20px;
}

#check_subscription {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

#load-box {
    width: 300px;
    height: 300px;
}

#timer {
    font-size: 18px;
    color: var(--tg-theme-link-color);
    font-weight: bold;
}

#timer-text {
    font-size: 15px;
    color: var(--tg-theme-hint-color);
    margin-top: 3px;
}

.channels {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 10px 20px;
    background: var(--tg-theme-bg-color);
    border-radius: 10px;
    font-size: 16px;
    margin: 5px 0;
    box-sizing: border-box;
    overflow: hidden;
}

.channel_link_buttons, #ref_link_button {
    cursor: pointer;
    font-size: 12px;
    padding: 8px 15px;
    background: var(--tg-theme-button-color);
    border-radius: 6px;
    border: none;
    font-weight: bold;
    color: var(--tg-theme-button-text-color);
    transition: background-color 0.3s ease;
}

.channel_link_buttons:hover, #ref_link_button:hover {
    background: var(--tg-theme-link-color);
}

.channel_link_buttons:active, #ref_link_button:active {
    background: var(--tg-theme-hint-color);
}

.hints {
    color: var(--tg-theme-hint-color);
    margin-left: 5px;
}

.channel_name {
    font-size: 16px;
    line-height: 1.4;
    width: 100px;
    margin-right: 10px;
    flex: 1;
    word-wrap: break-word;
    color: var(--tg-theme-text-color);
}

.info {
    font-size: 15px;
    text-align: center;
}

.telegram-container {
    width: 100%;
    padding: 10px 20px 10px 13px;
    background: var(--tg-theme-bg-color);
    border-radius: 10px;
    font-size: 16px;
    margin: 5px 0;
    overflow: hidden;
    box-sizing: border-box;
}

.emodji {
    width: auto;
    height: 20px;
}

.params {
    color: var(--tg-theme-link-color);
    font-size: 15px;
    font-weight: bold;
    margin-left: 5px;
}

#ref_link {
    color: var(--tg-theme-link-color);
    font-size: 15px;
    margin-right: 3px;
}

#ref_link_container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.avatar-placeholder, .avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 15px;
    flex-shrink: 0;
}

.avatar-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
}

#ticket_img {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    margin-right: 20px;
}

.ticket_text_container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
}

.ticket_number, .ticket_desc {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.ticket_number {
    font-size: 17px;
    font-weight: bold;
}

.ticket_desc {
    font-size: 15.5px;
    color: var(--tg-theme-hint-color);
}

.container {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 10px;
    box-sizing: border-box;
    justify-content: center;
}

.hidden-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

#toggleButton {
    cursor: pointer;
    font-size: 16px;
    padding: 8px 15px;
    background: var(--tg-theme-button-color);
    border-radius: 6px;
    border: none;
    color: var(--tg-theme-button-text-color);
    transition: background-color 0.3s ease;
    text-align: center;
    display: block;
    margin: 15px auto 0;
}

.full-screen-container {
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    z-index: -1;
    justify-content: center;
    align-items: center;
}

#lottie-container {
    width: 100%;
    height: 100%;
}

#lottie-container svg {
    width: 100%;
    height: 100%;
}

.place {
    font-size: 25px;
    width: 1.5em;
    height: 1.5em;
    display: inline-block;
    text-align: center;
    margin-right: 0.5em;
    font-weight: bold;
}

.place-number {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: linear-gradient(217deg, rgba(159, 159, 159, 0.8), rgba(255,0,0,0) 70.71%),
                linear-gradient(127deg, rgba(182, 184, 187, 0.8), rgba(0,255,0,0) 70.71%),
                linear-gradient(336deg, rgba(110, 109, 109, 0.8), rgba(0,0,255,0) 70.71%);
    font-family: Arial, sans-serif;
    font-size: 15px;
    font-weight: bold;
    color: #e7e7e7;
}

.user-link {
    text-decoration: none;
    color: white;
    font-weight: bold;
}

.link {
    color: var(--tg-theme-link-color);
    font-weight: bold;
    text-decoration: none;
}

.loading-text {
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.75;
    }
    50% {
        transform: scale(1.05);
        opacity: 1;
    }
}