
.ios-chrome-anchor {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    pointer-events: none;
    z-index: 9999;
    transition: none;
}

body.has-web-top-bar .ios-chrome-anchor {
    display: block;
}

body.web-desktop .ios-chrome-anchor {
    display: none;
}

.ios-chrome-anchor--top {
    top: 0;
    height: 12px;
    z-index: 99999;

    background-color: var(--app-main-bg-color);
}

.main-container {
    position: relative;
    z-index: 1;
    padding: 0px 15px 0px 15px;

    height: 100%;
    width: 100%;
    max-width: none;
    margin: 0;
    box-sizing: border-box;
    overflow: hidden;
    padding-bottom: 15px;
    padding-top: 15px;

}

:not(.web-desktop) .main-container {
    padding-bottom: 35px;
}

.main-container.projects-transparent {
    background-color: #ffffff00;
}

.main-container.projects-no-bottom-padding {
    padding-bottom: 0;
    padding-top: 0;
}

.main-container.projects-transparent.projects-no-top-padding {
    height: 100% !important;
}

.content-area {
    height: 100%;
    width: 100%;
    overflow-y: auto;
    overflow-anchor: none;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: none;
    position: relative;
    border-radius: 20px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    transition: height 0.4s var(--ui-ease-standard, cubic-bezier(0.25, 0.8, 0.25, 1));
    will-change: height;
}

.content-area::-webkit-scrollbar {
    display: none;
}

.page {
    display: none !important;
    width: 100%;
    height: 100%;
    min-height: 100%;
    box-sizing: border-box;
    max-width: 600px;
    margin: 0 auto;
    border-radius: 20px 20px 25px 25px;
    padding-bottom: 0px;
    transition: opacity 0.15s ease-in-out;
    opacity: 1;
}

.page.active {
    display: block !important;
    opacity: 1;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 600px;
    bottom: 0;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    border-radius: 20px 20px 25px 25px;
}

.page.active::-webkit-scrollbar {
    display: none;
}

:root {
    --page-transition-duration: 0.2s;
    --page-transition-easing: cubic-bezier(0.4, 0, 0.2, 1);
}

@property --projects-grad-a {
    syntax: '<color>';
    inherits: true;
    initial-value: #121417;
}
@property --projects-grad-b {
    syntax: '<color>';
    inherits: true;
    initial-value: #121417;
}
@property --projects-grad-c {
    syntax: '<color>';
    inherits: true;
    initial-value: #121417;
}

body.projects-grad-morph {
    transition:
        --projects-grad-a var(--page-transition-duration) var(--page-transition-easing),
        --projects-grad-b var(--page-transition-duration) var(--page-transition-easing),
        --projects-grad-c var(--page-transition-duration) var(--page-transition-easing);
}

@media (prefers-reduced-motion: reduce) {
    body.projects-grad-morph {
        transition-duration: 0.01ms !important;
    }
}

.content-area {
    transition: opacity var(--page-transition-duration) var(--page-transition-easing);
}

.content-area.page-transition-out {
    opacity: 0;
}

.bottom-padding-container{
    padding-bottom: 75px;
}

.mainpage-profile-fab {
    position: fixed;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    width: auto;
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity var(--page-transition-duration, 0.2s) var(--page-transition-easing, ease);
}

.mainpage-profile-fab.is-hidden {
    display: none;
}

.mainpage-profile-fab.is-fading {
    opacity: 0;
}

body.tg-mobile-platform .mainpage-profile-fab {
    position: fixed;
    margin-top: 6px;
    margin-bottom: 0px;
    height: var(--tg-content-safe-area-inset-top, 0px);
    top: var(--tg-safe-area-inset-top, 0px);
    left: calc(50% + var(--mainpage-profile-shift, 0px));
    transform: translateX(-50%);
    transition: left 0.4s cubic-bezier(0.32, 0.72, 0, 1), opacity var(--page-transition-duration, 0.2s) var(--page-transition-easing, ease);
    margin: 0;
    width: auto;
    will-change: left;
}

body.tg-mobile-platform .mainpage-profile-fab.is-offset-active {
    --mainpage-profile-shift: calc(0.387 * max(0px, 406px - 100vw));
}

.mainpage-profile-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 4px;
    padding-right: 10px;
    border-radius: 999px;
    background-color: rgb(137 137 137 / 5%);

backdrop-filter: brightness(1.5);
    transition: gap 0.22s ease, padding-right 0.22s ease, background-color 0.26s ease;
}
.mainpage-profile-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

body.tg-desktop-platform .mainpage-profile-fab.is-scrolled .mainpage-profile-btn {
    background: rgb(0 0 0 / 79%);
}

.mainpage-profile-avatar {
    width: 22px;
    height: 22px;
    border-radius: 100%;
    transition: width 0.25s ease, height 0.25s ease;
}

body.tg-mobile-platform .mainpage-profile-fab.is-label-hidden .mainpage-profile-avatar {
    width: 18px;
    height: 18px;
}

.mainpage-profile-letter {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}

.mainpage-profile-label {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    max-width: 60px;
    transform: translateX(0);
    opacity: 1;
    overflow: hidden;
    white-space: nowrap;
    transition: max-width 0.3s cubic-bezier(0.32, 0.72, 0, 1), opacity 0.25s cubic-bezier(0.32, 0.72, 0, 1);
}

.mainpage-profile-fab.is-label-hidden .mainpage-profile-btn {
    gap: 0;
    padding: 5.5px 6px;
    background-color: rgb(137 137 137 / 0%);
    transition: gap 0.3s cubic-bezier(0.32, 0.72, 0, 1), padding 0.25s cubic-bezier(0.32, 0.72, 0, 1);
}

.mainpage-profile-fab.is-label-hidden .mainpage-profile-label {
    transform: none;
    max-width: 0;
    opacity: 0;
    transition: max-width 0.25s cubic-bezier(0.32, 0.72, 0, 1), opacity 0.25s ease;
}

.web-top-bar__center {
    position: relative;
}
.acc-switch-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 39px;
    height: 30px;
    padding: 0;
    margin-left: 5px;
    border: none;
    background-color: rgb(137 137 137 / 5%);
    backdrop-filter: brightness(1.5);
    color: rgba(255,255,255,0.6);
    border-radius: 999px;
    cursor: pointer;
    transition: background .2s, color .2s;
    flex-shrink: 0;
    font-size: 12px;
}
body.has-web-top-bar .acc-switch-toggle { width:32px; }
.acc-switch-toggle:hover {
    background: rgba(255,255,255,0.12);
    color: #fff;
}
.acc-switch-toggle svg {
    transform: rotate(90deg);
    transition: transform .25s ease;
}
.acc-switch-toggle.is-open svg {
    transform: rotate(-90deg);
}
.acc-switch-toggle--fab {
    width: 28px;
    height: 28px;
    padding: 0;
    margin-left: 4px;
    background-color: rgb(137 137 137 / 5%);
    backdrop-filter: brightness(1.5);
    overflow: hidden;
    transition: width .3s cubic-bezier(0.32, 0.72, 0, 1),
                height .3s cubic-bezier(0.32, 0.72, 0, 1),
                margin-left .3s cubic-bezier(0.32, 0.72, 0, 1),
                opacity .3s cubic-bezier(0.32, 0.72, 0, 1);
}
.mainpage-profile-fab.is-label-hidden .acc-switch-toggle--fab {
    width: 0;
    height: 0;
    margin-left: 0;
    opacity: 0;
    pointer-events: none;
}

.mainpage-profile-fab .acc-switch-dropdown {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
}
.acc-switch-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%) scale(0.95);
    min-width: 200px;
    max-width: 300px;
    background: #16181b;

    border-radius: 20px;
    padding: 6px;
    z-index: 1000;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
    opacity: 0;
    pointer-events: none;
    -webkit-transition: opacity .2s cubic-bezier(0.25, 0.46, 0.45, 0.94), -webkit-transform .2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transition: opacity .2s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform .2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: opacity, transform;
    -webkit-backface-visibility: hidden;
}
.acc-switch-dropdown.is-open {
    opacity: 1;
    -webkit-transform: translateX(-50%) scale(1);
    transform: translateX(-50%) scale(1);
    pointer-events: auto;
}
.acc-switch-dropdown__item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    cursor: pointer;
    transition: background .15s;
    color: #e1e4ea;
    font-size: 13px;
    font-weight: 500;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
}
.acc-switch-dropdown__item:hover {
    background: rgba(255,255,255,0.06);
}
.acc-switch-dropdown__item.is-current {
    color: #5ba3e6;
    cursor: default;
}
.acc-switch-dropdown__item.is-current::after {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #5ba3e6;
    flex-shrink: 0;
    margin-left: auto;
}

.acc-switch-dropdown__add {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    color: #e1e4ea;
    font-size: 13px;
    cursor: pointer;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    border-radius: 12px;
    transition: background .15s, color .15s;
}
.acc-switch-dropdown__add:hover {
    background: rgba(255, 255, 255, 0.06);
}
.acc-switch-dropdown__add .bi-plus-circle {
    font-size: 22px;
    line-height: 1;
    width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    flex-shrink: 0;
}
.acc-switch-dropdown__ava {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
    object-fit: cover;
}
img.acc-switch-dropdown__ava {
    display: block;
}
span.acc-switch-dropdown__ava {
    display: flex;
}
.acc-switch-dropdown__name {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.web-top-bar {
    position: fixed;
    top: 15px;
    left: 15px;
    right: 15px;
    height: 46px;
    z-index: 1002;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border-bottom: none;
    visibility: hidden;
    pointer-events: none;
}

body.has-web-top-bar .web-top-bar {
    visibility: visible;
    pointer-events: auto;
}

.web-top-bar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 600px;
    padding: 0;
}

.web-top-bar__inner > .web-top-bar__zone {
    opacity: 0;
    transform: translateY(-7px);
    transition:
        opacity 0.42s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: 0s;
}

body.has-web-top-bar .web-top-bar__inner > .web-top-bar__zone {
    opacity: 1;
    transform: translateY(0);
}

body.has-web-top-bar .web-top-bar__inner > .web-top-bar__zone:nth-child(1) {
    transition-delay: 0.04s;
}

body.has-web-top-bar .web-top-bar__inner > .web-top-bar__zone:nth-child(2) {
    transition-delay: 0.11s;
}

body.has-web-top-bar .web-top-bar__inner > .web-top-bar__zone:nth-child(3) {
    transition-delay: 0.18s;
}

@media (prefers-reduced-motion: reduce) {
    .web-top-bar__inner > .web-top-bar__zone {
        transition-duration: 0.01ms;
        transition-delay: 0s !important;
    }
}

body.has-web-top-bar .main-container {
    padding-top: calc(15px + 46px + 8px);
    padding-bottom: 10px;
}

body.has-web-top-bar:not(.web-desktop) .content-area {
    padding-bottom: 15px;
}

body.has-web-top-bar.ios-mobile-web:not(.web-desktop) .content-area {
    padding-bottom: 0;
}

body.has-web-top-bar.ios-mobile-web:not(.web-desktop) .main-container {
    padding-bottom: 0;
}

.web-top-bar__zone {
    display: flex;
    align-items: center;
}

.web-top-bar__left   { flex: 1; justify-content: flex-start; }
.web-top-bar__center { flex: 0 0 auto; }
.web-top-bar__right  { flex: 1; justify-content: flex-end; }

.web-top-bar__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: auto;
    padding: 4px 10px;
    border-radius: 999px;
    background-color: rgb(137 137 137 / 5%);
    border: none;
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    backdrop-filter: brightness(1.5);
    -webkit-backdrop-filter: brightness(1.5);
    transition:
        background-color 0.22s ease,
        opacity 0.35s cubic-bezier(0.22, 1, 0.36, 1),
        color 0.22s ease,
        transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
        width 0.35s cubic-bezier(0.22, 1, 0.36, 1),
        padding 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    white-space: nowrap;
}
.web-top-bar__btn i {
    font-size: 14px;
}
.web-top-bar__btn:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

.web-top-bar__btn.is-inactive {
    opacity: 0;
    pointer-events: none;
    width: 0;
    min-width: 0;
    max-width: 0;
    padding: 0 !important;
    margin: 0;
    overflow: hidden;
    flex: 0 0 0px;
    gap: 0;
    border: 0;
}

.web-top-bar__btn--back {
    opacity: 0.88;
    padding-right: 12px;
}

.web-top-bar__btn--logout {
    padding-left: 12px;
}

body.has-web-top-bar #mainpage-profile-fab {
    display: none !important;
}

html.bind-email-overlay-open,
html.bind-email-overlay-open body {
    overflow: hidden;
}

.bind-email-overlay {
    position: fixed;
    inset: 0;
    z-index: 9500;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background-color: var(--bind-email-overlay-bottom, #121417);
    opacity: 0;
    pointer-events: none;
    transition: opacity .35s ease;
    color: #fff;
    isolation: isolate;
}
.bind-email-overlay.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.bind-email-overlay {
    --bind-email-overlay-top: #1a3a6b;
    --bind-email-overlay-bottom: #121417;
}
.bind-email-overlay__bg {
    position: absolute;
    inset: 0;
    z-index: -2;
    background: linear-gradient(
        180deg,
        var(--bind-email-overlay-top) 0%,
        #1c2c50 18%,
        #182238 40%,
        #14182a 65%,
        var(--bind-email-overlay-bottom) 90%,
        var(--bind-email-overlay-bottom) 100%
    );
}

.bind-email-overlay__glow {
    position: absolute;
    left: 50%;
    top: 36%;
    transform: translate(-50%, -50%);
    width: min(90vw, 600px);
    height: min(60vh, 480px);
    z-index: -1;
    pointer-events: none;
    background: radial-gradient(
        closest-side,
        rgba(91, 163, 230, 0.32) 0%,
        rgba(50, 130, 215, 0.14) 40%,
        rgba(50, 130, 215, 0.04) 65%,
        rgba(50, 130, 215, 0) 100%
    );
    filter: blur(30px);
    animation: bindEmailGlow 7s ease-in-out infinite;
}
@keyframes bindEmailGlow {
    0%, 100% { opacity: .85; transform: translate(-50%, -50%) scale(1); }
    50%      { opacity: 1;   transform: translate(-50%, -50%) scale(1.08); }
}

.bind-email-overlay__grid {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image:
        radial-gradient(circle at 20% 25%, rgba(255,255,255,0.5) 0.5px, transparent 1px),
        radial-gradient(circle at 70% 15%, rgba(255,255,255,0.35) 0.5px, transparent 1px),
        radial-gradient(circle at 85% 60%, rgba(255,255,255,0.4) 0.5px, transparent 1px),
        radial-gradient(circle at 30% 80%, rgba(255,255,255,0.3) 0.5px, transparent 1px),
        radial-gradient(circle at 55% 45%, rgba(255,255,255,0.4) 0.5px, transparent 1px),
        radial-gradient(circle at 10% 60%, rgba(255,255,255,0.25) 0.5px, transparent 1px),
        radial-gradient(circle at 90% 90%, rgba(255,255,255,0.3) 0.5px, transparent 1px),
        radial-gradient(circle at 45% 10%, rgba(255,255,255,0.35) 0.5px, transparent 1px);
    background-size: 240px 240px, 280px 280px, 320px 320px, 260px 260px, 300px 300px, 220px 220px, 340px 340px, 200px 200px;
    opacity: .55;
    -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 60%, transparent 95%);
            mask-image: linear-gradient(180deg, #000 0%, #000 60%, transparent 95%);
    animation: bindEmailStars 80s linear infinite;
}
@keyframes bindEmailStars {
    from { background-position: 0 0, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0; }
    to   { background-position: 240px 240px, -280px 280px, 320px -320px, -260px -260px, 300px 300px, -220px 220px, 340px -340px, -200px 200px; }
}

.bind-email-overlay__content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 28px 24px;
    text-align: center;
    max-width: 520px;
    width: 100%;
    margin: 0 auto;
    transform: translateY(16px);
    opacity: 0;
    transition: transform .5s .1s cubic-bezier(.2,.8,.2,1), opacity .5s .1s ease;
}
.bind-email-overlay.is-visible .bind-email-overlay__content {
    transform: translateY(0);
    opacity: 1;
}

.bind-email-overlay__hero {
    position: relative;
    width: 260px;
    height: 260px;
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bind-email-overlay__hero-orbit {
    position: absolute;
    top: 50%;
    left: 50%;
    border-radius: 50%;
    border: 1px dashed rgba(91, 163, 230, 0.25);
    transform: translate(-50%, -50%);
    pointer-events: none;
}
.bind-email-overlay__hero-orbit--1 {
    width: 200px;
    height: 200px;
    animation: bindEmailOrbit 18s linear infinite;
}
.bind-email-overlay__hero-orbit--2 {
    width: 254px;
    height: 254px;
    border-color: rgba(91, 163, 230, 0.18);
    animation: bindEmailOrbit 26s linear infinite reverse;
}
@keyframes bindEmailOrbit {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to   { transform: translate(-50%, -50%) rotate(360deg); }
}

.bind-email-overlay__hero-orbit-icon {
    position: absolute;
    width: 28px;
    height: 28px;
    margin: -14px 0 0 -14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #5ba3e6;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.6));

    animation: bindEmailOrbitCounter 18s linear infinite;
}
.bind-email-overlay__hero-orbit-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}
.bind-email-overlay__hero-orbit--2 .bind-email-overlay__hero-orbit-icon {
    width: 24px;
    height: 24px;
    margin: -12px 0 0 -12px;
    color: #7cc8ff;

    animation: bindEmailOrbitCounter 26s linear infinite reverse;
}
@keyframes bindEmailOrbitCounter {
    from { transform: rotate(0deg); }
    to   { transform: rotate(-360deg); }
}

.bind-email-overlay__hero-orbit-icon[data-pos="r"]  { top: 50%; left: 100%; }
.bind-email-overlay__hero-orbit-icon[data-pos="l"]  { top: 50%; left: 0; }
.bind-email-overlay__hero-orbit-icon[data-pos="t"]  { top: 0;   left: 50%; }
.bind-email-overlay__hero-orbit-icon[data-pos="b"]  { top: 100%;left: 50%; }
.bind-email-overlay__hero-orbit-icon[data-pos="tr"] { top: 14%; left: 86%; }
.bind-email-overlay__hero-orbit-icon[data-pos="bl"] { top: 86%; left: 14%; }
.bind-email-overlay__hero-orbit-icon[data-pos="ll"] { top: 50%; left: 0; }
.bind-email-overlay__hero-orbit-icon[data-pos="tl"] { top: 14%; left: 14%; }

.bind-email-overlay__hero-rings {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}
.bind-email-overlay__hero-ring {
    position: absolute;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    border: 2px solid rgba(50, 130, 215, 0.45);
    opacity: 0;
    animation: bindEmailRing 2.6s ease-out infinite;
}
.bind-email-overlay__hero-ring:nth-child(2) { animation-delay: .9s; }
.bind-email-overlay__hero-ring:nth-child(3) { animation-delay: 1.8s; }
@keyframes bindEmailRing {
    0%   { transform: scale(.55); opacity: .8; border-color: rgba(91,163,230,.6); }
    80%  { opacity: 0;             border-color: rgba(50,130,215,.15); }
    100% { transform: scale(1.55); opacity: 0; }
}

.bind-email-overlay__hero-badge {
    position: relative;
    width: 140px;
    height: 140px;
    border-radius: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(180deg, #1d2533ab 0%, #141926f0 100%);
    border: 1px solid rgba(50, 130, 215, 0.35);
    box-shadow:
        0 6px 20px rgba(0, 0, 0, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    animation: bindEmailFloat 4s ease-in-out infinite;
}
.bind-email-overlay__hero-badge svg {
    position: relative;
    z-index: 1;
    width: 84px;
    height: 84px;
}

.bind-email-overlay__hero-shine {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 60%;
    height: 200%;
    background: linear-gradient(
        100deg,
        rgba(255,255,255,0)    0%,
        rgba(255,255,255,0.06) 40%,
        rgba(255,255,255,0.12) 50%,
        rgba(255,255,255,0.06) 60%,
        rgba(255,255,255,0)    100%
    );
    transform: rotate(20deg) translateX(-100%);
    animation: bindEmailShine 4.5s ease-in-out infinite;
    z-index: 2;
    pointer-events: none;
}
@keyframes bindEmailShine {
    0%   { transform: rotate(20deg) translateX(-120%); }
    55%  { transform: rotate(20deg) translateX(260%); }
    100% { transform: rotate(20deg) translateX(260%); }
}

@keyframes bindEmailFloat {
    0%, 100% { transform: translateY(0) rotate(-2deg); }
    50%      { transform: translateY(-10px) rotate(2deg); }
}

.bind-email-overlay__hero-shadow {
    position: absolute;
    bottom: 18px;
    left: 50%;
    width: 110px;
    height: 18px;
    transform: translateX(-50%);
    background: radial-gradient(ellipse at center, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0) 70%);
    filter: blur(2px);
    animation: bindEmailShadow 4s ease-in-out infinite;
    pointer-events: none;
}
@keyframes bindEmailShadow {
    0%, 100% { transform: translateX(-50%) scaleX(1);   opacity: .7; }
    50%      { transform: translateX(-50%) scaleX(.78); opacity: .45; }
}

.bind-email-overlay__hero-paper {
    transform-origin: 48px 50px;
    animation: bindEmailPaper 4s ease-in-out infinite;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.25));
}
@keyframes bindEmailPaper {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-3px); }
}

.bind-email-overlay__hero-badge-notif {
    transform-origin: 74px 22px;
    animation: bindEmailBadge 1.8s ease-in-out infinite;
    filter: drop-shadow(0 2px 6px rgba(226, 49, 80, 0.5));
}
@keyframes bindEmailBadge {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.08); }
}

.bind-email-overlay__title {
    font-size: 32px;
    line-height: 1.15;
    font-weight: 800;
    margin: 0 0 14px;
    letter-spacing: -0.4px;
    color: #ffffff;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}
.bind-email-overlay__text {
    font-size: 15px;
    line-height: 1.55;
    color: rgba(225, 232, 245, 0.85);
    margin: 0;
    max-width: 420px;
}
.bind-email-overlay__text b {
    color: #7cc8ff;
    font-weight: 600;
}
.bind-email-overlay__text-warn {
    display: inline-block;
    margin-top: 10px;
    font-size: 13px;
    color: rgba(255, 180, 180, 0.85);
}

.bind-email-overlay__footer {
    position: relative;
    z-index: 1;
    background: #121417;
    padding: 20px 24px calc(28px + var(--tg-safe-area-inset-bottom, 0px) + var(--tg-content-safe-area-inset-bottom, 0px));
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    transform: translateY(20px);
    opacity: 0;
    transition: transform .5s .25s cubic-bezier(.2,.8,.2,1), opacity .5s .25s ease;
}
.bind-email-overlay.is-visible .bind-email-overlay__footer {
    transform: translateY(0);
    opacity: 1;
}

.bind-email-overlay__cta {
    flex: none;
    align-self: stretch;
    height: auto;
}

.bind-email-overlay__later {
    border: none;
    background: transparent;
    color: rgba(255,255,255,0.45);
    font-size: 13px;
    padding: 10px 16px;
    cursor: pointer;
    border-radius: 10px;
    transition: color .2s ease, background .2s ease;
}
.bind-email-overlay__later:hover,
.bind-email-overlay__later:active {
    color: rgba(255,255,255,0.85);
}

@media (max-height: 640px) {
    .bind-email-overlay__content     { padding-top: 50px; padding-bottom: 12px; }
    .bind-email-overlay__hero        { width: 200px; height: 200px; margin-bottom: 22px; }
    .bind-email-overlay__hero-badge  { width: 110px; height: 110px; border-radius: 28px; }
    .bind-email-overlay__hero-badge svg { width: 64px; height: 64px; }
    .bind-email-overlay__hero-ring   { width: 110px; height: 110px; }
    .bind-email-overlay__hero-orbit--1 { width: 158px; height: 158px; }
    .bind-email-overlay__hero-orbit--2 { width: 196px; height: 196px; }
    .bind-email-overlay__hero-shadow { width: 90px; bottom: 12px; }
    .bind-email-overlay__title       { font-size: 24px; margin-bottom: 10px; }
    .bind-email-overlay__text        { font-size: 14px; }
}
@media (max-width: 380px) {
    .bind-email-overlay__title       { font-size: 24px; }
    .bind-email-overlay__hero        { width: 220px; height: 220px; }
    .bind-email-overlay__hero-orbit--1 { width: 170px; height: 170px; }
    .bind-email-overlay__hero-orbit--2 { width: 214px; height: 214px; }
}
