* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    overscroll-behavior-y: none;
}

body {
    background-color: #101010;
    font-family: 'Inter', Helvetica, sans-serif;
    color: white;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    position: relative;
    padding-top: 0;
    transition: none !important;
}

.background-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #101010;
    z-index: 0;
    overflow: hidden;
}

.background-circle {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 150vw;
    height: 60vh;
    pointer-events: none;
    transition: background 0.5s ease;
}

.background-circle.image-mode {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: none;
}

.background-circle.active {
}
.grad-active .background-circle {
}

.background-circle.warning {
}
.grad-warning .background-circle {
}

.background-circle.error {
}
.grad-error .background-circle {
}

.content-wrapper {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 393px;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    transition: opacity .18s ease;
    will-change: opacity;
    padding-bottom: calc(env(safe-area-inset-bottom) + 16px);
}

.iphone-container {
    width: 100%;
    position: relative;
    flex: 1;
}

.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 24px 0;
    z-index: 10;
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.header {
    padding-top: calc(max(var(--tg-safe-area-inset-top, 0px), var(--tg-content-safe-area-inset-top, 0px)) + 50px) !important;
}

.header-right { display: inline-flex; align-items: center; gap: 8px; }

.language-flag {
    width: 32px;
    height: 32px;
    background: linear-gradient(49deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.04) 100%);
    backdrop-filter: blur(17.55px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.2s ease;
    padding: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.3));
}

.wheel-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(49deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.03) 100%);
    backdrop-filter: blur(17.55px);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.2s ease;
    padding: 0;
    color: rgba(255,255,255,0.9);
}

.wheel-icon:hover {
    background: linear-gradient(49deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0.08) 100%);
    transform: scale(1.05);
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.wheel-icon:active {
    transform: scale(0.95);
}

.wheel-icon-inner {
    font-size: 18px;
}

.language-flag:hover {
    background: linear-gradient(49deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0.08) 100%);
    transform: scale(1.05);
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.language-flag:active {
    transform: scale(0.95);
}

.admin-pill {
    height: 27px;
    padding: 6px 12px;
    border-radius: 23px;
    backdrop-filter: blur(17.55px) brightness(100%);
    background: linear-gradient(49deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.03) 100%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: rgba(255,255,255,0.9);
    cursor: pointer;
    transition: all 0.2s ease;
}

.admin-pill:hover {
    background: linear-gradient(49deg, rgba(255,255,255,0.12) 0%, rgba(255,255,255,0.06) 100%);
    transform: scale(1.05);
}

.admin-pill:active {
    transform: scale(0.95);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.user-text h1 {
    font-weight: 700;
    font-size: 16px;
    line-height: 1;
    overflow-wrap: anywhere;
}

.user-text p {
    opacity: 0.6;
    font-size: 12px;
    margin-top: 2px;
}

.notification-btn {
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.notification-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
}

.notification-btn:hover {
    transform: translateY(-2px);
}

.notification-btn:hover::before {
    width: 100%;
    height: 100%;
}

.notification-btn:active {
    transform: translateY(0) scale(0.95);
}

.notification-btn svg {
    stroke: #000;
    position: relative;
    z-index: 1;
}

.subscription {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 24px;
    margin-left: 24px;
    margin-right: 24px;
    margin-bottom: 24px;
    position: relative;
    z-index: 10;
    opacity: 0;
    animation: fadeInUp 0.6s ease 0.2s forwards;
    overflow: visible;
    background: rgba(50, 50, 50, 0.4);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-radius: 24px;
    padding: 20px 20px 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.subscription-carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 12px;
    padding: 0 60px;
    z-index: 1;
}

.subscription-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 100%;
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
}

.subscription-content.switching {
    opacity: 0;
    transform: scale(0.95) translateY(-10px);
}

.nav-arrow {
    background: linear-gradient(49deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.04) 100%);
    backdrop-filter: blur(17.55px);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: rgba(255, 255, 255, 0.7);
    flex-shrink: 0;
    position: absolute;
    overflow: visible;
    z-index: 2;
    top: 50%;
    transform: translateY(-50%);
}

.nav-arrow::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.4);
    transform: translate(-50%, -50%) scale(1);
    opacity: 0;
    pointer-events: none;
    animation: arrowWave 2.5s ease-out infinite;
}

@keyframes arrowWave {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    60% {
        transform: translate(-50%, -50%) scale(1.4);
        opacity: 0;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.4);
        opacity: 0;
    }
}

.nav-arrow:hover {
    background: linear-gradient(49deg, rgba(255,255,255,0.12) 0%, rgba(255,255,255,0.06) 100%);
    color: rgba(255, 255, 255, 0.9);
    transform: translateY(-50%) scale(1.05);
}

.nav-arrow:active {
    transform: translateY(-50%) scale(0.95);
}

.nav-arrow.prev {
    left: 0;
}

.nav-arrow.next {
    right: 0;
}

.nav-arrow svg {
    width: 20px;
    height: 20px;
    transition: transform 0.2s ease;
}

.nav-arrow:hover svg {
    transform: translateX(2px);
}

.nav-arrow.prev:hover svg {
    transform: translateX(-2px);
}

.carousel-dots {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 8px;
    min-height: 8px;
    position: relative;
    z-index: 1;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transition: width 0.6s ease-in-out, border-radius 0.6s ease-in-out, background-color 0.6s ease-in-out;
    cursor: pointer;
    position: relative;
}

.carousel-dot:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: scale(1.2);
}

.carousel-dot.active {
    background: #4A8FD4;
    width: 24px;
    border-radius: 4px;
}

.subscription-label {
    font-family: 'SF Pro Regular', Helvetica, sans-serif;
    font-size: 11px;
    line-height: 13px;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    position: relative;
    z-index: 1;
}

.subscription-status {
    flex-wrap: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
    margin-bottom: 2px;
    justify-content: center;
    position: relative;
    z-index: 1;
    min-height: 40px;
}

.status-badge {
    height: auto;
    padding: 0;
    gap: 0;
    border-radius: 0;
    backdrop-filter: none;
    background: transparent;
    display: inline-flex;
    align-items: center;
}

.status-text {
    white-space: nowrap;
    font-family: 'SF Pro Semibold', Helvetica, sans-serif;
    font-size: 28px;
    line-height: 32px;
    font-weight: 700;
    letter-spacing: -0.5px;
    position: relative;
    z-index: 1;
}

.status-text .discount-label {
    display: inline-block;
    margin-left: 6px;
    padding: 2px 8px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8e53 100%);
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    box-shadow: 0 2px 6px rgba(255,107,107,0.4);
    vertical-align: middle;
    letter-spacing: 0.3px;
}

.date-badge {
    margin-top: 8px;
    height: 32px;
    padding: 8px 16px;
    gap: 8px;
    border-radius: 20px;
    backdrop-filter: blur(17.55px) brightness(100%);
    background: rgba(255,255,255,0.12);
    display: inline-flex;
    align-items: center;
    position: relative;
    z-index: 1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 280px;
    justify-content: center;
}

.subscription-progress {
    width: calc(100% + 120px);
    max-width: calc(100% + 120px);
    margin-top: 16px;
    margin-bottom: 12px;
    margin-left: -60px;
    margin-right: -60px;
    position: relative;
    z-index: 1;
}

.subscription-progress-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 1);
    margin-bottom: 6px;
}

.subscription-progress-label span:first-child {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
}

.subscription-progress-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.subscription-progress-fill {
    height: 100%;
    border-radius: 10px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1), background 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.subscription-progress-fill.active {
}

.subscription-progress-fill.warning {
}

.subscription-progress-fill.error {
}

.balance-pill{
    height: 27px;
    padding: 6px 12px;
    border-radius: 23px;
    backdrop-filter: blur(17.55px) brightness(100%);
    background: linear-gradient(49deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.03) 100%);
    display: inline-flex;
    align-items: center;
    font-family: 'Montserrat', Helvetica, sans-serif;
    font-size: 12px;
    line-height: 14px;
    color: rgba(255,255,255,0.9);
}

.date-badge img {
    width: 16px;
    height: 16px;
    filter: brightness(0) invert(1);
}

.date-text {
    font-family: 'Montserrat', Helvetica, sans-serif;
    font-size: 13px;
    line-height: 15px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

.tariff-params {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
}

.tariff-param-block {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 11px;
    line-height: 1.2;
    color: rgba(255, 255, 255, 0.75);
    white-space: nowrap;
    width: 100%;
    max-width: 280px;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    backdrop-filter: blur(8px);
    margin-bottom: 8px;
}

.tariff-param-block:last-child {
    margin-bottom: 0;
}

.tariff-param-block .param-icon {
    font-size: 13px;
    flex-shrink: 0;
    opacity: 0.9;
}

.tariff-param-block .param-icon-img {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    filter: brightness(0) invert(1);
    opacity: 0.7;
}

.tariff-param-block .param-text {
    font-family: 'Inter', Helvetica, sans-serif;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
}

.tariff-param-block .param-text strong {
    color: #ffffff;
    font-weight: 700;
    font-size: 14px;
    margin-left: 2px;
}

.add-devices-btn {
    width: 22px;
    height: 22px;
    background: linear-gradient(135deg, rgba(74, 143, 212, 0.2), rgba(74, 143, 212, 0.1));
    border: 1px solid rgba(74, 143, 212, 0.35);
    border-radius: 50%;
    color: #4A8FD4;
    font-size: 14px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    padding: 0;
    line-height: 1;
    margin-left: 6px;
    box-shadow: 0 2px 4px rgba(74, 143, 212, 0.1);
}

.add-devices-btn:hover {
    background: linear-gradient(135deg, rgba(74, 143, 212, 0.3), rgba(74, 143, 212, 0.15));
    border-color: rgba(74, 143, 212, 0.5);
    transform: scale(1.1);
    box-shadow: 0 3px 6px rgba(74, 143, 212, 0.2);
}

.add-devices-btn:active {
    transform: scale(0.95);
}

.action-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 31px;
    padding: 0 24px;
    opacity: 0;
    animation: fadeInUp 0.6s ease 0.4s forwards;
}

.action-buttons-grid {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 14px;
    padding: 0 24px;
    opacity: 0;
    animation: fadeInUp 0.6s ease 0.4s forwards;
}

.action-row {
    display: flex;
    gap: 14px;
    width: 100%;
}

.action-btn-primary,
.action-btn-secondary,
.action-btn-icon {
    height: 56px;
    border-radius: 13px;
    backdrop-filter: blur(17.55px) brightness(100%);
    background: linear-gradient(49deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.03) 100%);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    color: white;
    font-family: 'SF Pro Regular', Helvetica, sans-serif;
    font-size: 15px;
    line-height: 18px;
}

.action-btn-primary,
.action-btn-secondary {
    flex: 1;
    gap: 6px;
}

.action-btn-primary .btn-icon,
.action-btn-secondary .btn-icon {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.action-btn-primary span,
.action-btn-secondary span {
}

.action-btn-icon {
    flex: 1;
    flex-direction: column !important;
    gap: 6px;
    font-size: 11px;
    line-height: 13px;
    padding: 8px 4px !important;
}

.action-btn-icon .svg-icon {
    width: 24px;
    height: 24px;
    margin-bottom: 0;
}

.action-btn-icon span {
    display: block;
    margin-top: 4px;
}

.action-btn-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.action-btn-primary:hover,
.action-btn-secondary:hover,
.action-btn-icon:hover {
    transform: translateY(-3px) translateZ(8px);
    background: linear-gradient(49deg, rgba(255,255,255,0.12) 0%, rgba(255,255,255,0.08) 100%);
    box-shadow: 
        0 10px 20px rgba(0, 0, 0, 0.45),
        0 6px 12px rgba(0, 0, 0, 0.35),
        0 0 20px 4px rgba(255, 255, 255, 0.08),
        0 2px 6px rgba(255, 255, 255, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.action-btn-icon:hover::before {
    opacity: 0;
}

.action-btn-primary:active,
.action-btn-secondary:active,
.action-btn-icon:active {
    transform: translateY(1px) scale(0.97) translateZ(0);
    box-shadow: 
        0 3px 6px rgba(0, 0, 0, 0.25),
        0 1px 3px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.action-btn-icon svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}


.action-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
}

.action-btn {
    width: 108px;
    height: 56px;
    border-radius: 13px;
    backdrop-filter: blur(17.55px) brightness(100%);
    background: linear-gradient(49deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.03) 100%);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.action-btn:hover {
    transform: translateY(-3px);
    background: linear-gradient(49deg, rgba(255,255,255,0.12) 0%, rgba(255,255,255,0.06) 100%);
}

.action-btn:hover::before {
    opacity: 1;
}

.action-btn:active {
    transform: translateY(-1px) scale(0.98);
}

.action-btn svg {
    stroke: #fff;
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.action-btn:hover svg {
    transform: scale(1.1);
}

.action-label {
    font-family: 'SF Pro Regular', Helvetica, sans-serif;
    font-size: 12px;
    line-height: 14px;
    color: #fff;
}

.main-block-wrapper {
    margin: 13px 24px 0;
    width: calc(100% - 48px);
    opacity: 0;
    animation: fadeInUp 0.6s ease 0.6s forwards;
    height: auto;
    min-height: auto;
}

.main-button {
    width: 100%;
    backdrop-filter: blur(17.55px) brightness(100%);
    background: linear-gradient(49deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.03) 100%);
    border: none;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 16px 24px;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
    box-shadow: 
        0 6px 12px rgba(0, 0, 0, 0.35),
        0 3px 6px rgba(0, 0, 0, 0.25),
        0 1px 3px rgba(255, 255, 255, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transform: translateY(0) translateZ(0);
}

.main-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: -1;
}

.main-button:hover {
    transform: translateY(-3px) translateZ(8px);
    box-shadow: 
        0 10px 20px rgba(0, 0, 0, 0.45),
        0 6px 12px rgba(0, 0, 0, 0.35),
        0 0 20px 4px rgba(255, 255, 255, 0.08),
        0 2px 6px rgba(255, 255, 255, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.main-button:hover::before {
    opacity: 0;
}

.main-button:active {
    transform: translateY(1px) scale(0.97) translateZ(0);
    box-shadow: 
        0 3px 6px rgba(0, 0, 0, 0.25),
        0 1px 3px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.main-nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 8px 24px 0;
    opacity: 0;
    animation: fadeInUp 0.6s ease 0.7s forwards;
}

.main-nav-container .carousel-dots {
    margin: 0;
    min-height: auto;
}

.main-nav-container .nav-arrow {
    flex-shrink: 0;
}

.main-button .main-card { 
    position: relative; 
    display: flex; 
    flex-direction: column;
    align-items: center;
    width: 100%; 
    align-items: flex-start; 
    justify-content: flex-start; 
    gap: 8px; 
    width: 100%; 
    min-height: 0;
    height: auto;
    flex: 1 1 auto;
    pointer-events: auto; 
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.main-card.switching {
    opacity: 0;
    transform: scale(0.92) translateY(-8px);
}
.main-button .main-card-title { font-family: 'SF Pro Regular', Helvetica, sans-serif; font-size: 12px; line-height: 14px; color: #fff; margin-bottom: 8px; }
.main-button .main-card-title, .main-button .main-card-desc { text-align: left; }
.main-button .main-card-desc { font-family: 'SF Pro Regular', Helvetica, sans-serif; font-size: 12px; line-height: 14px; color: #797979; margin-bottom: 10px; max-width: 100%; }
.main-button .main-card-cta { display: inline-flex; align-items: center; justify-content: center; height: 26px; padding: 0 14px; background: #4A8FD4; color: #fff; border-radius: 16px; font-family: 'SF Pro Regular', Helvetica, sans-serif; font-size: 12px; line-height: 14px; cursor: pointer; pointer-events: auto; border: none; }
.main-button .main-card-cta { align-self: flex-start; }
.main-button .main-card-cta:active { transform: scale(0.99); }

.main-button .mini-actions { display: flex; gap: 12px; margin-top: 8px; flex-wrap: wrap; justify-content: center; }
.main-button .mini-btn { 
    height: 26px; 
    padding: 0 12px; 
    background: #2a2a2a; 
    color: #fff; 
    border: 0.25px solid rgba(58, 58, 61, 0.4); 
    border-radius: 14px; 
    font-size: 12px; 
    line-height: 14px; 
    cursor: pointer; 
    transition: all 0.2s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3), 0 2px 4px rgba(0, 0, 0, 0.2);
    transform: translateY(0) translateZ(0);
}
.main-button .mini-btn:hover { 
    background: #333; 
    border-color: #4a4a4d; 
    transform: translateY(-3px) translateZ(8px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4), 0 3px 6px rgba(0, 0, 0, 0.3);
}
.main-button .mini-btn:active { 
    transform: scale(0.98) translateY(0) translateZ(0); 
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}
.main-button .mini-btn-primary { background: #4A8FD4; color: #fff; border-color: #4A8FD4; font-weight: 500; }
.main-button .mini-btn-primary:hover { 
    background: #3D7FC0; 
    transform: translateY(-3px) translateZ(8px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4), 0 3px 6px rgba(0, 0, 0, 0.3), 0 0 8px 2px rgba(74, 143, 212, 0.15);
}
.main-button .traffic-preview { width: 100%; height: 80px; object-fit: contain; opacity: .9; margin-top: 6px; }
.main-button .subtext { font-family: 'SF Pro Regular', Helvetica, sans-serif; font-size: 10px; line-height: 12px; color: #9a9a9a; margin-top: 4px; }

.main-button .partner-stats { display: flex; gap: 12px; margin: 12px 0 8px; justify-content: flex-start; }
.main-button .partner-stat-item { display: flex; flex-direction: column; align-items: flex-start; }
.main-button .partner-stat-value { font-family: 'SF Pro Regular', Helvetica, sans-serif; font-size: 16px; line-height: 18px; color: #4A8FD4; font-weight: 600; }
.main-button .partner-stat-label { font-family: 'SF Pro Regular', Helvetica, sans-serif; font-size: 10px; line-height: 12px; color: #797979; margin-top: 2px; }

.referral-fists {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin: 12px auto 16px auto;
    width: 100%;
}

.fist-left, .fist-right {
    width: 40px;
    height: 40px;
    object-fit: contain;
    opacity: 0.85;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 0.85; }
}

.main-button .main-card .referral-desc {
    color: #fff !important;
}


.main-button .main-card .mini-actions {
    justify-content: center !important;
    width: 100%;
    display: flex !important;
}

.main-button .main-card > div[style*="grid-template-columns"] {
    margin-left: auto !important;
    margin-right: auto !important;
    max-width: 100%;
}

.main-button .main-card > div[style*="background:rgba(255,255,255,0.03)"] {
    text-align: center !important;
    width: 100%;
}

.main-button .main-card .wg-subs-list {
    width: 100%;
}
.main-button .main-card .wg-sub-item {
    width: 100%;
}

.mini-actions { display: flex; gap: 12px; margin-top: 16px; flex-wrap: wrap; justify-content: center; }
.mini-btn { 
    padding: 10px 16px; 
    border: none; 
    border-radius: 12px; 
    font-size: 13px; 
    font-weight: 600; 
    cursor: pointer; 
    transition: all 0.2s ease; 
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3), 0 2px 4px rgba(0, 0, 0, 0.2);
    transform: translateY(0) translateZ(0);
}
.mini-btn-primary { background: #4A8FD4; color: #fff; }
.mini-btn-primary:hover { 
    background: #5EA0E0; 
    transform: translateY(-3px) translateZ(8px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4), 0 3px 6px rgba(0, 0, 0, 0.3), 0 0 8px 2px rgba(74, 143, 212, 0.15);
}
.mini-btn-primary:active { 
    transform: scale(0.98) translateY(0) translateZ(0); 
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}
.mini-btn-secondary { background: #2a2a2a; color: #fff; border: 0.5px solid #444; }
.mini-btn-secondary:hover { 
    background: #3a3a3a; 
    transform: translateY(-3px) translateZ(8px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4), 0 3px 6px rgba(0, 0, 0, 0.3);
}
.mini-btn-secondary:active { 
    transform: scale(0.98) translateY(0) translateZ(0); 
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}
.mini-btn-admin { background: #ef4444; color: #fff; }
.mini-btn-admin:hover { 
    background: #dc2626; 
    transform: translateY(-3px) translateZ(8px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4), 0 3px 6px rgba(0, 0, 0, 0.3);
}
.mini-btn-admin:active { 
    transform: scale(0.98) translateY(0) translateZ(0); 
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.skeleton { 
    background: linear-gradient(90deg, #1a1a1a 25%, #242424 50%, #1a1a1a 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
    border-radius: 8px;
    opacity: 0.7;
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton-text { height: 16px; margin: 8px 0; }
.skeleton-text-small { height: 12px; margin: 4px 0; }
.skeleton-text-large { height: 24px; margin: 8px 0; }
.skeleton-circle { border-radius: 50%; }
.skeleton-card { height: 120px; margin: 12px 0; border-radius: 16px; }

.fade-in {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.content-loading { min-height: 200px; }

* {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
}

.card, .subscription-card, .main-button {
    will-change: transform;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

img {
    display: block;
    max-width: 100%;
    height: auto;
    loading: lazy;
    decoding: async;
}

.avatar {
    position: relative;
    overflow: hidden;
}

.avatar img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

body {
    opacity: 1;
}

body.page-loading {
    opacity: 0;
}

html, body {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
}

.content-wrapper {
    min-height: 100vh;
    min-height: 100dvh;
}

* {
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}

button, a, .card {
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-perspective: 1000;
    perspective: 1000;
}

button, .card, .subscription-card {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

.main-button .faq-quick {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
    margin-top: 12px;
}

.main-button .faq-item {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    font-size: 11px;
    line-height: 14px;
    color: #ccc;
    cursor: pointer;
    transition: all 0.2s ease;
}

.main-button .faq-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(74, 143, 212, 0.3);
    color: #4A8FD4;
    transform: translateX(2px);
}

.main-button .faq-item:active {
    transform: translateX(2px) scale(0.98);
}

.main-button .start-steps {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    margin-top: 12px;
    margin-bottom: 8px;
}

.main-button .start-step {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.main-button .start-step:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(74, 143, 212, 0.3);
    transform: translateX(2px);
}

.main-button .start-step:active {
    transform: translateX(2px) scale(0.98);
}

.main-button .start-step .step-number {
    width: 24px;
    height: 24px;
    min-width: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #4A8FD4;
    color: #fff;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 700;
    font-family: 'SF Pro Regular', Helvetica, sans-serif;
    flex-shrink: 0;
}

.main-button .start-step .step-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    text-align: left;
    align-items: flex-start;
}

.main-button .start-step .step-title {
    font-size: 12px;
    line-height: 14px;
    color: #fff;
    font-weight: 500;
    font-family: 'SF Pro Regular', Helvetica, sans-serif;
}

.main-button .start-step .step-desc {
    font-size: 10px;
    line-height: 12px;
    color: #999;
    font-family: 'SF Pro Regular', Helvetica, sans-serif;
}

.main-dots .dots-arrow {
    width: 24px;
    height: 24px;
    background: rgba(71, 71, 75, 0.5);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease;
    padding: 0;
    outline: none;
    flex-shrink: 0;
}

.main-dots .dots-arrow svg {
    width: 16px;
    height: 16px;
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.2s ease;
}

.main-dots .dots-arrow:hover {
    background: rgba(74, 143, 212, 0.2);
}

.main-dots .dots-arrow:hover svg {
    color: #4A8FD4;
}

.main-dots .dots-arrow:active {
    background: rgba(74, 143, 212, 0.3);
}

.settings-button {
    margin: 14px 24px 0;
    width: calc(100% - 48px);
    height: 56px;
    backdrop-filter: blur(17.55px) brightness(100%);
    background: linear-gradient(49deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.03) 100%);
    border: none;
    border-radius: 13px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    animation: fadeInUp 0.6s ease 0.8s forwards;
    position: relative;
    transform: translateY(0) translateZ(0);
}

.settings-button.hidden {
    display: none !important;
}

.settings-button::before {
    content: '';
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: #4A8FD4;
    border-radius: 50%;
    z-index: 1;
}

.settings-button:hover {
    transform: translateY(-3px) translateZ(8px);
    background: linear-gradient(49deg, rgba(255,255,255,0.12) 0%, rgba(255,255,255,0.08) 100%);
    box-shadow: 
        0 10px 20px rgba(0, 0, 0, 0.45),
        0 6px 12px rgba(0, 0, 0, 0.35),
        0 0 20px 4px rgba(255, 255, 255, 0.08),
        0 2px 6px rgba(255, 255, 255, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.settings-button:active {
    transform: translateY(1px) scale(0.97) translateZ(0);
    box-shadow: 
        0 3px 6px rgba(0, 0, 0, 0.25),
        0 1px 3px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.settings-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0 19px 0 28px;
    height: 100%;
    position: relative;
    z-index: 1;
}

.settings-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.settings-icon {
    width: 40px;
    height: 40px;
    background: #010101;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.settings-button:hover .settings-icon {
    transform: rotate(90deg);
}

.settings-icon svg {
    stroke: #fff;
}

.settings-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    text-align: left;
}

.settings-title {
    font-family: 'SF Pro Regular', Helvetica, sans-serif;
    font-size: 12px;
    line-height: 14px;
    color: #fff;
}

.settings-description {
    font-family: 'SF Pro Regular', Helvetica, sans-serif;
    font-size: 10px;
    line-height: 14px;
    color: #fff;
}

.settings-content > svg {
    stroke: #fff;
    transition: transform 0.3s ease;
}

.settings-button:hover .settings-content > svg {
    transform: translateX(5px);
}

.statistics {
    padding: 39px 24px 32px;
}

.statistics-title {
    font-family: 'SF Pro Semibold', Helvetica, sans-serif;
    font-size: 16px;
    line-height: 14px;
    opacity: 0;
    animation: fadeInUp 0.6s ease 1s forwards;
}

.stats-cards {
    display: flex;
    gap: 25px;
    margin-top: 27px;
}

.stat-card {
    flex: 1;
    background: #1e1e1e;
    border: none;
    border-radius: 21px;
    overflow: hidden;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-card:first-child {
    opacity: 0;
    animation: fadeInUp 0.6s ease 1.2s forwards;
}

.stat-card:last-child {
    opacity: 0;
    animation: fadeInUp 0.6s ease 1.4s forwards;
}

#cardDevices {
    background-image: url('/lk/img/hwid.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

#cardTraffic {
    background-image: url('/lk/img/traffic-graph.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#cardTraffic:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(74, 143, 212, 0.15);
}

#cardTraffic:active {
    transform: scale(0.98) translateY(0);
}

.card-content {
    padding: 0;
    height: 155px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 10;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 13px 13px 0;
}

.card-header svg {
    stroke: #fff;
    transition: transform 0.3s ease;
}

.stat-card:hover .card-header svg {
    transform: scale(1.1);
}

.card-text {
    font-family: 'SF Pro Regular', Helvetica, sans-serif;
    font-size: 12px;
    line-height: 14px;
}

.card-value {
    font-family: 'Nebulas Medium', Helvetica, sans-serif;
    font-weight: 500;
    font-size: 32px;
    line-height: 28px;
    padding: 0 18px 17px;
    width: 100%;
    text-align: center;
    margin-top: auto;
}

.traffic-graph {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 97px;
    object-fit: contain;
    pointer-events: none;
    display: none;
}

.icon {
    width: 24px;
    height: 24px;
    color: white;
}

.chevron-icon {
    width: 24px;
    height: 24px;
    stroke: white;
}

body.fade-out .content-wrapper {
    opacity: 0;
}

.bottom-sheet{position:fixed;left:0;right:0;bottom:0;top:0;background:rgba(0,0,0,.35);backdrop-filter:blur(4px);display:flex;align-items:flex-end;justify-content:center;z-index:1000}
.bottom-sheet.hidden{display:none}
.sheet{width:100%;max-width:393px;background:#161616;border-top-left-radius:16px;border-top-right-radius:16px;padding:16px 16px 20px;box-shadow:0 -8px 24px rgba(0,0,0,.4);margin-bottom:env(safe-area-inset-bottom)}
.sheet-title{text-align:center;font-size:14px;margin-bottom:8px}
.devices-list{max-height:45vh;overflow:auto;margin-top:4px}
.device-item{display:flex;align-items:center;gap:12px;background:#1E1E1E;border-radius:12px;padding:12px;margin-bottom:8px}
.device-icon-wrapper{width:40px;height:40px;border-radius:10px;background:rgba(255,255,255,0.08);display:flex;align-items:center;justify-content:center;flex-shrink:0;color:rgba(255,255,255,0.7)}
.device-row{display:flex;align-items:center;justify-content:space-between;background:#1E1E1E;border-radius:12px;padding:10px 12px;margin-bottom:8px}
.device-name{font-size:14px;line-height:18px;color:#fff;font-weight:500;flex:1}
.device-hwid{font-size:11px;line-height:14px;color:rgba(255,255,255,0.5);font-family:'SF Mono',Monaco,monospace;word-break:break-all}
.device-remove{width:85px;height:32px;background:#4A8FD4;border:none;border-radius:16px;color:#fff;font-size:12px;font-weight:600;cursor:pointer;flex-shrink:0;transition:all 0.2s ease}
.device-remove:hover{background:#5EA0E0;transform:scale(1.05)}
.device-remove:active{transform:scale(0.95)}
.sheet-close{width:100%;height:48px;background:#2a2a2a;border:0.25px solid rgba(58, 58, 61, 0.4);border-radius:12px;color:#fff;margin-top:8px}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@font-face {
    font-family: 'SF Pro Regular';
    src: local('SF Pro Display'), local('SFProDisplay-Regular');
    font-weight: 400;
}

@font-face {
    font-family: 'SF Pro Semibold';
    src: local('SF Pro Display Semibold'), local('SFProDisplay-Semibold');
    font-weight: 600;
}

@font-face {
    font-family: 'Nebulas Medium';
    src: local('Nebulas Medium'), local('Nebulas-Medium');
    font-weight: 500;
}

.svg-icon {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

#toast.show {
    opacity: 1 !important;
}

@media (min-width: 480px) {
    body {
        padding-bottom: 100px;
    }

    .content-wrapper {
        max-width: 440px;
    }
    .header { padding: 0 24px 0; }

    .subscription {
        margin-top: 24px;
    }

    .action-buttons {
        gap: 16px;
        padding: 0 24px;
    }

    .action-btn {
        width: 124px;
        height: 60px;
    }

    .settings-button {
        height: 72px;
    }

    .statistics {
        padding: 40px 24px 32px;
    }

    .card-value {
        font-size: 34px;
        line-height: 32px;
    }
}

@media (min-width: 768px) {
    .content-wrapper {
        max-width: 600px;
    }
    .header { padding: 0 32px 0; }

    .status-text {
        font-size: 22px;
        line-height: 26px;
    }

    .main-button {
        padding: 20px 32px;
    }

    .main-button .main-card-title {
        font-size: 14px !important;
        line-height: 16px !important;
    }

    .main-button .main-card-desc {
        font-size: 13px !important;
        line-height: 16px !important;
    }

    .card-value {
        font-size: 36px;
        line-height: 34px;
    }

    .background-circle {
        width: 120vw;
        height: 65vh;
    }
}

@media (min-width: 1024px) {
    .content-wrapper {
        max-width: 700px;
    }
    
    .header { 
        padding: 0 40px 0; 
    }

    .main-button {
        padding: 24px 40px;
    }

    .main-button .main-card-title {
        font-size: 16px !important;
        line-height: 20px !important;
        margin-bottom: 10px !important;
    }

    .main-button .main-card-desc {
        font-size: 14px !important;
        line-height: 18px !important;
        margin-bottom: 12px !important;
    }

    .main-button .main-card-cta {
        height: 32px !important;
        padding: 0 18px !important;
        font-size: 14px !important;
    }

    .card-value {
        font-size: 40px;
        line-height: 38px;
    }

    .status-text {
        font-size: 24px;
        line-height: 28px;
    }

    .total-online-value {
        font-size: 48px !important;
    }

    .total-online-label {
        font-size: 14px !important;
    }

    .servers-total-online {
        padding: 24px !important;
        margin: 20px auto 16px !important;
    }
}

@media (min-width: 1280px) {
    .content-wrapper {
        max-width: 800px;
    }
    
    .header { 
        padding: 0 48px 0; 
    }

    .main-button {
        padding: 28px 48px;
    }

    .main-button .main-card-title {
        font-size: 18px !important;
        line-height: 22px !important;
        margin-bottom: 12px !important;
    }

    .main-button .main-card-desc {
        font-size: 16px !important;
        line-height: 20px !important;
        margin-bottom: 14px !important;
    }

    .main-button .main-card-cta {
        height: 36px !important;
        padding: 0 22px !important;
        font-size: 15px !important;
    }

    .card-value {
        font-size: 44px;
        line-height: 42px;
    }

    .status-text {
        font-size: 26px;
        line-height: 30px;
    }

    .main-button .partner-stat-value {
        font-size: 20px !important;
        line-height: 24px !important;
    }

    .main-button .partner-stat-label {
        font-size: 12px !important;
        line-height: 14px !important;
    }

    .total-online-value {
        font-size: 56px !important;
    }

    .total-online-label {
        font-size: 16px !important;
    }

    .servers-total-online {
        padding: 28px !important;
        margin: 24px auto 20px !important;
    }

    .cluster-name {
        font-size: 15px !important;
    }

    .node-name {
        font-size: 14px !important;
    }

    .server-item {
        padding: 12px 16px !important;
    }
}

#snow {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

body.winter-mode #snow {
    display: block;
}

.winter-snowdrifts {
    display: none;
}

body.winter-mode .winter-snowdrifts {
    display: block;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to top,
        rgba(255, 255, 255, 1) 0%,
        rgba(248, 250, 255, 0.98) 15%,
        rgba(240, 245, 255, 0.92) 30%,
        rgba(230, 240, 255, 0.85) 45%,
        rgba(220, 235, 255, 0.7) 60%,
        rgba(210, 230, 255, 0.5) 75%,
        rgba(200, 225, 255, 0.3) 85%,
        transparent 100%
    );
    clip-path: polygon(
        0% 100%,
        2% 90%,
        4% 85%,
        6% 82%,
        8% 80%,
        11% 77%,
        14% 74%,
        17% 72%,
        20% 70%,
        23% 69%,
        26% 68%,
        30% 67%,
        34% 66%,
        38% 67%,
        42% 69%,
        46% 71%,
        50% 73%,
        54% 74%,
        58% 73%,
        62% 71%,
        66% 69%,
        70% 67%,
        74% 66%,
        78% 67%,
        82% 69%,
        86% 72%,
        90% 76%,
        93% 80%,
        96% 85%,
        98% 90%,
        100% 94%,
        100% 100%
    );
    pointer-events: none;
    z-index: 3;
    box-shadow: inset 0 -20px 40px rgba(200, 220, 255, 0.3);
}

.b-head-decor {
    display: none;
}

body.winter-mode .b-head-decor {
    position: fixed;
    top: 0;
    left: 50%;
    display: block;
    height: 115px;
    width: 300%;
    overflow: visible;
    background: url(/lk/img/b-head-decor_newyear.png) repeat-x center 0;
    z-index: 100;
    pointer-events: none;
    transform: translateX(-50%) scale(0.605);
    transform-origin: top center;
}

@media (hover: none) and (pointer: coarse) {
    body.winter-mode .b-head-decor {
        top: -30px;
        transform: translateX(-50%) translateY(30px) scale(0.944);
    }
}

body.winter-mode .b-head-decor::before {
    content: '';
    display: block;
    position: absolute;
    top: -115px;
    left: 0;
    z-index: 3;
    height: 115px;
    width: 100%;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.75);
}

body.winter-mode .b-head-decor__inner {
    position: absolute;
    top: 0;
    left: 50%;
    height: 115px;
    display: block;
    width: 373px;
    overflow: visible;
}

body.winter-mode .b-head-decor__inner_n1 {
    margin-left: -746px;
}

body.winter-mode .b-head-decor__inner_n2 {
    margin-left: -373px;
}

body.winter-mode .b-head-decor__inner_n3 {
    margin-left: 0;
}

body.winter-mode .b-head-decor__inner_n4 {
    margin-left: 373px;
}

body.winter-mode .b-ball {
    position: absolute;
}

body.winter-mode .b-ball_n1 {
    top: 0;
    left: 3px;
    width: 59px;
    height: 83px;
}

body.winter-mode .b-ball_n2 {
    top: -19px;
    left: 51px;
    width: 55px;
    height: 70px;
}

body.winter-mode .b-ball_n3 {
    top: 9px;
    left: 88px;
    width: 49px;
    height: 67px;
}

body.winter-mode .b-ball_n4 {
    top: 0;
    left: 133px;
    width: 57px;
    height: 102px;
}

body.winter-mode .b-ball_n5 {
    top: 0;
    left: 166px;
    width: 49px;
    height: 57px;
}

body.winter-mode .b-ball_n6 {
    top: 6px;
    left: 200px;
    width: 54px;
    height: 70px;
}

body.winter-mode .b-ball_n7 {
    top: 0;
    left: 240px;
    width: 56px;
    height: 67px;
}

body.winter-mode .b-ball_n8 {
    top: 0;
    left: 283px;
    width: 54px;
    height: 53px;
}

body.winter-mode .b-ball_n9 {
    top: 10px;
    left: 321px;
    width: 49px;
    height: 66px;
}

body.winter-mode .b-ball_n1 .b-ball__i {
    background: url(/lk/img/b-ball_n1.png) no-repeat;
}

body.winter-mode .b-ball_n2 .b-ball__i {
    background: url(/lk/img/b-ball_n2.png) no-repeat;
}

body.winter-mode .b-ball_n3 .b-ball__i {
    background: url(/lk/img/b-ball_n3.png) no-repeat;
}

body.winter-mode .b-ball_n4 .b-ball__i {
    background: url(/lk/img/b-ball_n4.png) no-repeat;
}

body.winter-mode .b-ball_n5 .b-ball__i {
    background: url(/lk/img/b-ball_n5.png) no-repeat;
}

body.winter-mode .b-ball_n6 .b-ball__i {
    background: url(/lk/img/b-ball_n6.png) no-repeat;
}

body.winter-mode .b-ball_n7 .b-ball__i {
    background: url(/lk/img/b-ball_n7.png) no-repeat;
}

body.winter-mode .b-ball_n8 .b-ball__i {
    background: url(/lk/img/b-ball_n8.png) no-repeat;
}

body.winter-mode .b-ball_n9 .b-ball__i {
    background: url(/lk/img/b-ball_n9.png) no-repeat;
}

body.winter-mode .b-ball_i1 .b-ball__i {
    background: url(/lk/img/b-ball_i1.png) no-repeat;
}

body.winter-mode .b-ball_i2 .b-ball__i {
    background: url(/lk/img/b-ball_i2.png) no-repeat;
}

body.winter-mode .b-ball_i3 .b-ball__i {
    background: url(/lk/img/b-ball_i3.png) no-repeat;
}

body.winter-mode .b-ball_i4 .b-ball__i {
    background: url(/lk/img/b-ball_i4.png) no-repeat;
}

body.winter-mode .b-ball_i5 .b-ball__i {
    background: url(/lk/img/b-ball_i5.png) no-repeat;
}

body.winter-mode .b-ball_i6 .b-ball__i {
    background: url(/lk/img/b-ball_i6.png) no-repeat;
}

body.winter-mode .b-ball_i1 {
    top: 0;
    left: 0;
    width: 25px;
    height: 71px;
}

body.winter-mode .b-ball_i2 {
    top: 0;
    left: 25px;
    width: 61px;
    height: 27px;
}

body.winter-mode .b-ball_i3 {
    top: 0;
    left: 176px;
    width: 29px;
    height: 31px;
}

body.winter-mode .b-ball_i4 {
    top: 0;
    left: 205px;
    width: 50px;
    height: 51px;
}

body.winter-mode .b-ball_i5 {
    top: 0;
    left: 289px;
    width: 78px;
    height: 28px;
}

body.winter-mode .b-ball_i6 {
    top: 0;
    left: 367px;
    width: 6px;
    height: 69px;
}

body.winter-mode .b-ball__i {
    position: absolute;
    width: 100%;
    height: 100%;
    transform-origin: 50% 0;
    transition: all .3s ease-in-out;
    pointer-events: none;
}

body.winter-mode .b-ball_bounce .b-ball__right {
    position: absolute;
    top: 0;
    right: 0;
    left: 50%;
    bottom: 0;
    z-index: 9;
    pointer-events: auto;
    cursor: pointer;
}

body.winter-mode .b-ball_bounce:hover .b-ball__right {
    display: none;
}

body.winter-mode .b-ball_bounce .b-ball__right:hover {
    left: 0;
    display: block !important;
}

body.winter-mode .b-ball_bounce.bounce > .b-ball__i {
    transform: rotate(-9deg);
}

body.winter-mode .b-ball_bounce .b-ball__right.bounce + .b-ball__i {
    transform: rotate(9deg);
}

body.winter-mode .b-ball_bounce.bounce1 > .b-ball__i {
    transform: rotate(6deg);
}

body.winter-mode .b-ball_bounce .b-ball__right.bounce1 + .b-ball__i {
    transform: rotate(-6deg);
}

body.winter-mode .b-ball_bounce.bounce2 > .b-ball__i {
    transform: rotate(-3deg);
}

body.winter-mode .b-ball_bounce .b-ball__right.bounce2 + .b-ball__i {
    transform: rotate(3deg);
}

body.winter-mode .b-ball_bounce.bounce3 > .b-ball__i {
    transform: rotate(1.5deg);
}

body.winter-mode .b-ball_bounce .b-ball__right.bounce3 + .b-ball__i {
    transform: rotate(-1.5deg);
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 16px;
}

.modal-overlay.hidden {
    display: none;
}

.modal-content {
    background: #1a1a1a;
    border-radius: 20px;
    width: 100%;
    max-width: 420px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.modal-content.devices-modal {
    max-width: 380px;
}

.traffic-chart-sheet {
    max-height: 85vh;
    overflow-y: auto;
}

.chart-container {
    position: relative;
    height: 300px;
    padding: 16px;
    margin: 8px 0;
}

.chart-stats {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 12px 16px;
    margin-top: 8px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
}

.chart-stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}

.chart-stat-item .stat-label {
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
}

.chart-stat-item .stat-value {
    color: #4A8FD4;
    font-size: 15px;
    font-weight: 600;
}

#cardTraffic {
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#cardTraffic:active {
    transform: scale(0.98);
}

.modal-header {
    padding: 20px 20px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
}


.modal-title {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
}

.modal-close {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    line-height: 1;
    padding: 0;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.15);
}

.modal-body {
    padding: 20px;
}

.devices-info {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 16px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 8px;
}

.info-row:last-child {
    margin-bottom: 0;
}

.info-row strong {
    color: #fff;
    font-weight: 600;
}

.info-row.highlight {
    color: #4A8FD4;
    font-weight: 500;
}

.info-row.highlight strong {
    color: #4A8FD4;
}

.devices-selector {
    margin-bottom: 16px;
}

.selector-label {
    display: block;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 12px;
    font-weight: 500;
}

.devices-options {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.device-option-btn {
    padding: 12px 18px;
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: 'Inter', Helvetica, sans-serif;
    min-width: 80px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.device-option-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.device-option-btn.active {
    background: linear-gradient(135deg, rgba(74, 143, 212, 0.15), rgba(74, 143, 212, 0.08));
    border-color: #4A8FD4;
    color: #4A8FD4;
    box-shadow: 0 4px 12px rgba(74, 143, 212, 0.2);
    transform: translateY(-2px);
}

.device-option-btn.current {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.6);
}

.device-option-btn:disabled {
    opacity: 0.4 !important;
    cursor: not-allowed !important;
}

.device-option-btn:disabled:hover {
    transform: none !important;
    background: rgba(255, 255, 255, 0.08) !important;
}

.device-option-btn:active:not(:disabled) {
    transform: scale(0.96) translateY(0);
}

.devices-summary {
    background: rgba(74, 143, 212, 0.08);
    border: 1px solid rgba(74, 143, 212, 0.2);
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 16px;
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 15px;
    color: #fff;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.price-value {
    font-size: 18px;
    color: #4A8FD4;
    font-weight: 700;
}

.payment-btn {
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, #4A8FD4, #d4e84a);
    border: none;
    border-radius: 14px;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: 'Inter', Helvetica, sans-serif;
    box-shadow: 0 4px 12px rgba(74, 143, 212, 0.3);
    margin-top: 8px;
}

.payment-btn:hover {
    background: linear-gradient(135deg, #3D7FC0, #ddf55a);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(74, 143, 212, 0.4);
}

.payment-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(74, 143, 212, 0.3);
}

@keyframes textFlash {
    0% {
        transform: translateY(0);
        color: #fff;
    }
    40% {
        transform: translateY(-1px) scale(0.98);
        color: #4A8FD4;
    }
    100% {
        transform: translateY(0);
        color: #fff;
    }
}

.step-badge {
    height: 27px;
    padding: 6px 12px;
    border-radius: 23px;
    backdrop-filter: blur(17.55px) brightness(100%);
    background: #4A8FD4;
    display: inline-flex;
    align-items: center;
    font-family: 'Montserrat', Helvetica, sans-serif;
    font-size: 12px;
    line-height: 14px;
    font-weight: 600;
    color: #fff;
    letter-spacing: 0.3px;
    margin-bottom: 16px;
}

.action-badge {
    height: 22px;
    padding: 4px 10px;
    border-radius: 18px;
    backdrop-filter: blur(17.55px) brightness(100%);
    background: #4A8FD4;
    display: inline-flex;
    align-items: center;
    font-family: 'Montserrat', Helvetica, sans-serif;
    font-size: 11px;
    line-height: 12px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    margin: 0 2px;
}

.servers-total-online {
    text-align: center;
    margin: 16px auto 12px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(74, 143, 212, 0.15) 0%, rgba(74, 143, 212, 0.05) 100%);
    border: 1px solid rgba(74, 143, 212, 0.25);
    border-radius: 12px;
    width: 100%;
    max-width: 100%;
    height: auto;
    min-height: auto;
}

.total-online-value {
    font-size: 32px;
    font-weight: 700;
    color: #4A8FD4;
    line-height: 1.2;
    margin-bottom: 4px;
}

.total-online-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    text-transform: lowercase;
}

.servers-list {
    margin: 8px auto 0;
    width: 100%;
    height: auto;
    min-height: auto;
    overflow: visible;
}


.server-cluster {
    margin-bottom: 12px;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    transition: all 0.2s ease;
    width: 100%;
}

.server-cluster:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(74, 143, 212, 0.2);
}

.cluster-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.cluster-name {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
}

.cluster-online {
    font-size: 11px;
    font-weight: 500;
    color: #4A8FD4;
    padding: 3px 8px;
    background: rgba(74, 143, 212, 0.15);
    border-radius: 8px;
}

.server-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 8px;
    margin-bottom: 4px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 6px;
    transition: all 0.15s ease;
}

.server-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.server-name {
    font-size: 12px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}

.server-online {
    font-size: 11px;
    font-weight: 600;
    color: #4A8FD4;
}

.node-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 8px 4px 20px;
    margin-bottom: 2px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    font-size: 11px;
}

.servers-load-list {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 100%;
}

.main-button .main-card .servers-load-list {
    align-items: center;
}

.main-button .main-card .servers-load-list .server-load-cluster {
    align-items: center;
}

.main-button .main-card .servers-load-list .server-load-cluster .server-load-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.main-button .main-card .servers-load-list .server-load-cluster .server-load-item .server-load-header {
    justify-content: center;
    width: 100%;
}

.main-button .main-card .servers-load-list .server-load-cluster .server-load-item .server-load-metrics {
    width: 100%;
    max-width: 100%;
}

.server-load-cluster {
    margin-bottom: 16px;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.server-load-cluster-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.server-load-cluster-name {
    font-family: 'SF Pro Regular', Helvetica, sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
}

.server-load-item {
    margin-bottom: 12px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.server-load-item:last-child {
    margin-bottom: 0;
}

.server-load-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.server-load-name {
    font-family: 'SF Pro Regular', Helvetica, sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}

.server-load-status {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.server-load-status.status-online {
    background: #4caf50;
    box-shadow: 0 0 6px rgba(76, 175, 80, 0.5);
}

.server-load-status.status-error {
    background: #ff4444;
    box-shadow: 0 0 6px rgba(255, 68, 68, 0.5);
}

.server-load-status.status-unknown {
    background: #888;
    box-shadow: 0 0 6px rgba(136, 136, 136, 0.3);
}

.server-load-metrics {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.server-load-metric {
    display: flex;
    align-items: center;
    gap: 10px;
}

.server-load-metric-label {
    font-family: 'SF Pro Regular', Helvetica, sans-serif;
    font-size: 11px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    min-width: 35px;
}

.server-load-metric-bar {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}

.server-load-metric-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.3s ease;
}

.server-load-metric-value {
    font-family: 'SF Pro Regular', Helvetica, sans-serif;
    font-size: 11px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    min-width: 35px;
    text-align: right;
}

.node-flag {
    font-size: 14px;
    flex-shrink: 0;
}

.node-name {
    flex: 1;
    color: rgba(255, 255, 255, 0.7);
    font-size: 11px;
}

.node-online {
    font-size: 10px;
    font-weight: 500;
    color: rgba(74, 143, 212, 0.8);
    padding: 2px 6px;
    background: rgba(74, 143, 212, 0.1);
    border-radius: 6px;
}

.servers-loading {
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.5;
    }
    50% {
        opacity: 1;
    }
}

select {
    background: #1a1a1a !important;
    color: #fff !important;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ebff57' d='M6 9L1 4h10z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 10px center !important;
    cursor: pointer;
}

select option {
    background: #1a1a1a !important;
    color: #fff !important;
    padding: 10px;
}

select:hover {
    background: #222 !important;
}

select:focus {
    background: #222 !important;
    outline: none;
}

.settings-float-content {
    display: none;
}

.settings-button.floating {
    position: fixed;
    left: 24px;
    right: 24px;
    bottom: calc(env(safe-area-inset-bottom) + 16px);
    margin: 0;
    width: auto;
    height: 56px;
    border-radius: 18px;
    background: linear-gradient(135deg, #4A8FD4 0%, #d4ff00 50%, #4A8FD4 100%);
    background-size: 200% 200%;
    animation: floating-bounce 2.2s ease-in-out infinite, gradientFloat 8s ease infinite;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 20;
    transition: transform 0.2s ease;
    opacity: 1;
}

@keyframes gradientFloat {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.settings-button.floating::before {
    display: none;
}

.settings-button.floating .settings-content {
    display: none;
}

.settings-button.floating .settings-float-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 100%;
    color: #fff;
}

.settings-button.floating .settings-float-icon {
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.settings-button.floating .settings-float-icon svg {
    width: 22px;
    height: 22px;
    color: #fff;
}

.settings-button.floating .settings-float-text {
    font-family: 'SF Pro Display', 'SF Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.2px;
}



body.lk-settings-floating .content-wrapper {
    padding-bottom: calc(env(safe-area-inset-bottom) + 90px);
}

@media (hover: hover) {
    .settings-button.floating:hover {
        transform: translateY(-2px) scale(1.01);
        box-shadow: 0 6px 16px rgba(74, 143, 212, 0.3);
    }
}

.settings-button.floating:active {
    transform: translateY(1px) scale(0.98);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

@keyframes floating-bounce {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-3px) scale(1.015); }
}

@media (prefers-reduced-motion: reduce) {
    .settings-button.floating {
        animation: none !important;
    }
}


.header,
.subscription,
.action-buttons,
.action-buttons-grid,
.main-block-wrapper,
.main-nav-container,
.settings-button,
.statistics-title,
.stat-card:first-child,
.stat-card:last-child {
    opacity: 1;
    animation: none;
}

body:not(.decor-ready) .b-head-decor,
body:not(.decor-ready) #snow {
    opacity: 0;
}


body.lk-settings-pending .content-wrapper {
    opacity: 0;
}

body.lk-settings-pending .background-wrapper {
    opacity: 1;
}

.share-modal .modal-content {
    max-width: 420px;
}

.share-info {
    margin-bottom: 24px;
}

.share-instruction {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
    text-align: center;
}

.share-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 20px;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #fff;
}

.share-btn .btn-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.share-btn-telegram {
    background: linear-gradient(135deg, #2AABEE 0%, #229ED9 100%);
    box-shadow: 0 4px 12px rgba(42, 171, 238, 0.2);
}

.share-btn-telegram:hover {
    background: linear-gradient(135deg, #229ED9 0%, #1E88C5 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(42, 171, 238, 0.4);
}

.share-btn-telegram:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(42, 171, 238, 0.3);
}

.share-btn-copy {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.share-btn-copy:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
}

.share-btn-copy:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.05);
}

/* Кнопка «Подключить устройство» — пастельный коралловый */
.settings-button { background: rgba(235,65,55,0.45) !important; }
.settings-button:hover { background: rgba(235,65,55,0.55) !important; }
.settings-button:active { background: rgba(235,65,55,0.6) !important; }
.settings-button::before { background: #E04040 !important; }
.settings-button.floating { background: linear-gradient(135deg, #E04040 0%, #E86058 50%, #E04040 100%) !important; background-size: 200% 200% !important; }
