* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    width: 100%;
    overflow-x: hidden;
}

body {
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: rgba(0,0,0,0);
    color: #333;
    font: 12px/18px "Lucida Grande", "Lucida Sans Unicode", Arial, Helvetica, Verdana, sans-serif;
    box-sizing: border-box;
    position: relative;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    width: 100%;
}

/* Telegram Background */
.tgme_background_wrap {
    box-sizing: border-box;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    background: var(--body-bg);
}

.tgme_background {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.tgme_background_pattern {
    pointer-events: none;
    aspect-ratio: auto 50 / 50;
    box-sizing: border-box;
    display: block;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.2);
    background-image: url('img/pattern.svg');
    background-repeat: repeat;
    background-position: center;
    background-size: 420px auto;
    opacity: 0.25;
    filter: invert(1) brightness(2);
    mix-blend-mode: overlay;
}

/* Telegram Head */
:root {
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: rgba(0,0,0,0);
    --second-text-color: #7d7f81;
    --accent-color-hover: #1a8ad5;
    --icon-verified: url('data:image/svg+xml,%3Csvg%20fill%3D%22none%22%20height%3D%2226%22%20viewBox%3D%220%200%2026%2026%22%20width%3D%2226%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22m6%206h12v12h-12z%22%20fill%3D%22%23fff%22%2F%3E%3Cpath%20clip-rule%3D%22evenodd%22%20d%3D%22m14.38%201.51%201.82%201.82c.37.37.86.57%201.38.57h2.57c1.01%200%201.85.77%201.94%201.76l.01.19v2.57c0%20.52.21%201.01.57%201.38l1.82%201.82c.71.71.76%201.84.13%202.61l-.13.15-1.82%201.82c-.37.37-.57.86-.57%201.38v2.57c0%201.01-.77%201.85-1.76%201.94l-.19.01h-2.57c-.52%200-1.01.21-1.38.57l-1.82%201.82c-.71.71-1.84.76-2.61.13l-.15-.13-1.82-1.82c-.37-.37-.86-.57-1.38-.57h-2.57c-1.01%200-1.85-.77-1.94-1.76l-.01-.19v-2.57c0-.52-.21-1.01-.57-1.38l-1.82-1.82c-.71-.71-.76-1.84-.13-2.61l.13-.15%201.82-1.82c.37-.37.57-.86.57-1.38v-2.57c0-1.08.87-1.95%201.95-1.95h2.57c.52%200%201.01-.21%201.38-.57l1.82-1.82c.76-.76%202-.76%202.76%200zm3.2%208.05c-.43-.34-1.03-.31-1.42.06l-.1.11-4.45%205.56-1.75-1.75-.11-.1c-.42-.32-1.03-.29-1.42.1s-.42.99-.1%201.42l.1.11%202.6%202.6.11.1c.42.32%201.02.29%201.4-.08l.1-.11%205.2-6.5.08-.12c.27-.46.17-1.05-.25-1.4z%22%20fill%3D%22%231c93e3%22%20fill-rule%3D%22evenodd%22%2F%3E%3C%2Fsvg%3E');
    --text-color: #fff;
    --accent-btn-color: #1c93e3;
    --body-bg: #000;
    --box-bg: #1e1e1e;
    --box-bg-blured: rgba(34, 34, 34, .84);
    --tme-logo-color: #000;
    --tme-desc-color: #84888C;
    --tme-table-bg-color: #212429;
    --tme-table-border-color: #33373d;
    --tme-table-head-color: #262a2e;
    --tme-table-accent-color: #30aafd;
    --tme-table-accent-bg-color: #23313e;
    --accent-link-color: #3ca1eb;
    --dl-link-icon: url('data:image/svg+xml,%3Csvg%20height%3D%2214%22%20viewBox%3D%220%200%2014%2014%22%20width%3D%2214%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22m4.4%2010.3%203.3-3.5c0%200%200%200%200%200l-3.3-3.5%22%20fill%3D%22none%22%20stroke%3D%22%2330aafd%22%20stroke-linecap%3D%22round%22%20stroke-width%3D%221.05%22%2F%3E%3C%2Fsvg%3E');
}

.tgme_head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: rgba(243, 243, 243, 0.884);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(232, 232, 232, 0.5);
    position: relative;
    z-index: 10;
    width: 100%;
    box-sizing: border-box;
    left: 0;
    right: 0;
    margin-left: 0;
    margin-right: 0;
}

.tgme_head_brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

.tgme_logo {
    color: #0088cc;
    height: 34px;
    width: 133px;
    box-sizing: border-box;
    display: inline-block;
    vertical-align: top;
    overflow: hidden;
}

.tgme_head_right_btn {
    font-family: 'Roboto', sans-serif;
    box-sizing: border-box;
    text-decoration: none;
    display: inline-block;
    font-size: 14px;
    line-height: 17px;
    font-weight: bold;
    -webkit-font-smoothing: antialiased;
    text-transform: uppercase;
    color: #fff;
    background: var(--accent-btn-color);
    padding: 9px 16px;
    height: 34px;
    border-radius: 17px;
    text-align: center;
    transition: all .15s ease .15s;
}

/* Telegram Page */
.tgme_page {
    font-family: 'Roboto', sans-serif;
    color: #000;
    box-sizing: border-box;
    position: relative;
    margin: 31px auto 16px;
    padding: 32px 0;
    width: 400px;
    max-width: 400px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-radius: 16px;
    transition: all .15s ease .15s;
    z-index: 1;
}

.tgme_page_photo {
    text-align: center;
    margin-bottom: 16px;
}

.tgme_page_photo_image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    display: inline-block;
}

.tgme_page_title {
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    color: #000;
    margin-bottom: 8px;
    padding: 0 24px;
}

.tgme_page_extra {
    text-align: center;
    font-size: 14px;
    color: #666;
    margin-bottom: 16px;
    padding: 0 24px;
}

.tgme_page_description {
    text-align: center;
    font-size: 14px;
    line-height: 1.5;
    color: #000;
    margin-bottom: 24px;
    padding: 0 24px;
}

.tgme_page_description a {
    color: var(--accent-link-color);
    text-decoration: none;
}

.tgme_page_action {
    text-align: center;
    padding: 0 24px;
    margin-bottom: 16px;
}

.tgme_action_button_new {
    display: inline-block;
    background: var(--accent-btn-color);
    color: #fff;
    padding: 12px 32px;
    border-radius: 24px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: all .15s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.tgme_action_button_new:hover {
    background: var(--accent-color-hover);
    transform: translateY(-1px);
}

.tgme_action_button_new.shine::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Responsive Design */
@media screen and (min-width: 481px) {
    .tgme_page {
        width: 400px !important;
        max-width: 400px !important;
        margin-top: 31px !important;
        margin-bottom: 16px;
    }
}

@media screen and (max-width: 480px) {
    .tgme_page {
        margin-top: 16px;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 16px;
        padding: 24px 0;
        border-radius: 12px;
        width: 360px;
        max-width: 360px;
    }
    
    .tgme_page_photo_image {
        width: 100px;
        height: 100px;
    }
    
    .tgme_page_title {
        font-size: 18px;
        padding: 0 16px;
    }
    
    .tgme_page_extra {
        padding: 0 16px;
    }
    
    .tgme_page_description {
        font-size: 13px;
        padding: 0 16px;
    }
    
    .tgme_page_action {
        padding: 0 16px;
    }
    
    .tgme_action_button_new {
        padding: 10px 24px;
        font-size: 14px;
    }
    
    .tgme_head {
        padding: 10px 12px;
    }
    
    .tgme_logo {
        height: 28px;
        width: auto;
    }
    
    .tgme_head_right_btn {
        padding: 7px 12px;
        font-size: 12px;
        height: 28px;
    }
}

@media screen and (max-width: 360px) {
    .tgme_page {
        margin-top: 8px;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 8px;
        padding: 20px 0;
        width: 320px;
        max-width: 320px;
    }
    
    .tgme_page_photo_image {
        width: 80px;
        height: 80px;
    }
    
    .tgme_page_title {
        font-size: 16px;
        padding: 0 12px;
    }
    
    .tgme_page_description {
        font-size: 12px;
        padding: 0 12px;
    }
    
    .tgme_action_button_new {
        padding: 8px 20px;
        font-size: 13px;
    }
}

/* Redirect Message */
.redirect-message {
    font-family: 'Roboto', sans-serif;
    color: #000;
    box-sizing: border-box;
    position: relative;
    margin: 31px auto 16px;
    padding: 60px 40px;
    width: 400px;
    max-width: 400px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-radius: 16px;
    opacity: 0;
    display: none;
    text-align: center;
    z-index: 100;
}

.redirect-message p {
    margin: 0;
    font-size: 18px;
    line-height: 1.6;
    font-weight: 400;
    color: #333;
}

.redirect-message a {
    color: #1c93e3;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
    border-bottom: 1px solid transparent;
}

.redirect-message a:hover {
    color: #1a8ad5;
    border-bottom-color: #1a8ad5;
}

@media screen and (min-width: 481px) {
    .redirect-message {
        width: 400px !important;
        max-width: 400px !important;
        margin-top: 31px !important;
        margin-bottom: 16px;
    }
}

@media screen and (max-width: 480px) {
    .redirect-message {
        margin-top: 16px;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 16px;
        padding: 50px 30px;
        width: 360px;
        max-width: 360px;
    }
    
    .redirect-message p {
        font-size: 16px;
    }
}

@media screen and (max-width: 360px) {
    .redirect-message {
        margin-top: 8px;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 8px;
        padding: 40px 24px;
        width: 320px;
        max-width: 320px;
    }
    
    .redirect-message p {
        font-size: 14px;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

