/* Стили для страницы VPN */
.vpn-status-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 10px 0;
}

.vpn-b-icon{
    position: relative;
    top: -2px;
    right: 2px;
}

.vpn-status-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.vpn-status-header h2 {
    margin: 0;
    font-size: 22px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.vpn-status-header h2 i {
    color: #40a7e3;
}

.vpn-status-indicator {
    padding: 5px 12px;
    border-radius: 22px;
    font-size: 14px;
    font-weight: 600;
    color:#B1B4B9;
}

.vpn-status-indicator.active {
    background-color: rgba(75, 181, 67, 0.2);
    color: #4BB543;
}

.vpn-status-indicator.inactive {
    background-color: rgba(220, 78, 65, 0.2);
    color: #DC4E41;
}

.vpn-status-indicator.warning {
    background-color: rgba(255, 153, 0, 0.2);
    color: #FF9900;
}

.vpn-display-none {
    display: none;
}

.vpn-display-block {
    display: block;
}

.vpn-flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.vpn-loading-spinner {
    width: 24px;
    height: 24px;
}

#manage-status-text {
    width: 100%;
    font-size: 12px;
    padding: 0 0 2px 0;
}

#manage-key-plan {
    margin-left: auto;
    font-size: 12px;
}

#manage-time-icon {
    width: 16px;
}

#manage-reset-link-btn {
    margin-top: 16px;
    width: 100%;
}

.vpn-status-indicator.expired {
    background-color: rgba(138, 138, 143, 0.2);
    color: #8A8A8F;
}


.vpn-tariff-indicator {
    padding:4px 8px;
    padding-top: 3px;
    border-radius: 22px;
    font-size: 14px;
    font-weight: 600;
    color:#B1B4B9;
    position: relative;
    bottom: 4px;
}

.vpn-tariff-indicator.BASIC {
    background-color: #0c57ab;
    color: #fff;
}

.vpn-tariff-indicator.MEDIUM {
    background-color: #21743c;
    color: #fff;
}

.vpn-tariff-indicator.MAX {
    background-color: #FF9900;
    color: #fff;
}



.vpn-actions {
    display: flex;
    gap: 10px;
    margin-top: 5px;
}

.vpn-stats-container {
    display: flex;
    gap: 15px;
}

.vpn-stats-item {
    flex: 1;
    background-color: #272729;
    border-radius: 22px;
    padding: 15px;
}

.vpn-stats-label {
    font-size: 12px;
    color: #ffffff;
    margin-bottom: 5px;
}

.vpn-stats-value {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
}

.progress {
    height: 6px;
    background-color: rgba(255, 255, 255, 0.1);
}

.progress-bar {
    background-color: #40a7e3;
}



.fav-shield-icon{
    fill: #727272;
    width: 54px;
    height: 54px;
}

#vpn-keys-container{
    /* height: 100%; */
    width: 100%;
    overflow: hidden;
    display: flex
;
    flex-direction: column;
    /* display: none; */
}
#vpn-keys-list{
    height: 100%;
    width: 100%;
    
}

.height-100-label{
    padding-top: calc(var(--tg-viewport-stable-height, 100vh) / 2 - 200px);
    border:0px;
    background-color: #121417;
}

body.web-desktop .height-100-label {
    padding-top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh / 1.35 - 120px);
}




/* Адаптация для маленьких экранов */
@media (max-width: 360px) {
    .vpn-stats-container {
        flex-direction: column;
        gap: 10px;
    }
}

/* Стили для карточек тарифов */
.tariff-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
    /* margin-top: 20px; */
    /* padding-bottom: 65px; */
}

.tariff-card {
    /* background: linear-gradient(135deg, #3c4043, #2d3135); */
    border-radius: 20px;
    padding: 12px 20px 18px 20px;
    position: relative;
    /* border: 1px solid rgba(255, 255, 255, 0.1); */
}


/* Отключение анимаций для скрытых контейнеров */
.no-animations .empty-state-animated,
.no-animations .need-more-keys-animated {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
}


/* Анимация для блока "Нужно больше VPN?" */
.need-more-keys-animated {
    opacity: 0;
    transform: translateY(15px);
    animation: needMoreKeysSlideIn 0.4s ease-out forwards;
    animation-delay: 0.4s; /* Появляется после карточек */
}

@keyframes needMoreKeysSlideIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Анимация для пустого состояния */
.empty-state-animated {
    opacity: 0;
    transform: translateY(15px);
    animation: emptyStateSlideIn 0.4s ease-out forwards;
}

@keyframes emptyStateSlideIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Градиенты для тарифов */
.tariff-card--basic {
    background: linear-gradient(62deg, #1D2025 20%, rgba(58, 129, 236, 0.3));
}

.tariff-card--medium {
    background: linear-gradient(62deg, #1D2025 20%, rgba(31, 170, 71, 0.3));
}

.tariff-card--max {
    background: linear-gradient(62deg, #1D2025 20%, rgba(255, 153, 0, 0.3));
}

/* .tariff-card--popular {
    background: linear-gradient(135deg, #4a7c59, #3d6b4f);
    border: 1px solid rgba(255, 255, 255, 0.2);
} */

.tariff-header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 5px;
}

.tariff-title {
    color: #ffffff;
    font-size: 22px;
    font-weight: 700;
    margin: 0;
}

.tariff-badge {
    margin-left: 7px;
    background-color: #ff4444;
    color: #ffffff;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.tariff-discount {
    margin-left: 7px;
    background-color: #3D9966;
    color: #ffffff;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.tariff-content {
    display: flex;
    flex-direction: column;
    /* gap: 12px; */
}

.tariff-feature {
    display: flex;
    align-items: center;
    gap: 4px;
}

.tariff-emoji {
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.tariff-devices {
    color: #FF9900;
    font-size: 14px;
    font-weight: 500;
}

.tariff-description {
    color: #b0b0b0;
    font-size: 13px;
    margin: 0;
    line-height: 1.4;
}

.tariff-price {
    color: #ffffff;
    font-size: 26px;
    font-weight: 700;
    margin: 8px 0;
    margin-top: 18px;
}



.tariff-button {

    position: absolute;
    bottom: 20px;
    right: 20px;
    color: #121417;

    font-size: 14px;
    font-weight: 700;

    background-color: rgba(255, 255, 255, 0.9);
    
    border: none;
    border-radius: 22px;
    padding: 7px 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tariff-button:hover {
    background-color: #ffffff;
    transform: translateY(-1px);
}

.tariff-button:active {
    transform: translateY(0);
}

.vpn-key-card {
    position: relative;
}

.vpn-key-card--vless {
    background: linear-gradient(62deg, #1D2025 20%, rgba(58, 129, 236, 0.3));
}

.vpn-key-card__protocol {
    position: absolute;
    top: 18px;
    right: 20px;
    font-size: 13px;
    font-weight: 700;
    color: #ffffff99;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.vpn-key-card__status {
    width: 100%;
    font-size: 12px;
    padding: 0 0 2px 0;
}

.vpn-key-card__heading {
    display: flex;
    align-items: center;
    gap: 3px;
    margin-bottom: 4px;
}

.vpn-key-card__name {
    margin: 0;
    color: #ffffff;
}

.vpn-key-card__rename-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    opacity: 1;
    pointer-events: auto;
    overflow: hidden;
    padding: 0;
    margin-left: 0;
    transition: color 0.15s ease, background 0.15s ease;
}

.vpn-key-card__rename-btn:hover {
    color: rgba(255, 255, 255, 0.9);
}

.vpn-key-card__rename-btn:active {
    color: rgba(255, 255, 255, 1);
}

.vpn-key-card__key-id {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 4px;
    line-height: 1;
}

.vpn-key-card__devices-chip {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.2);
    font-size: 11px;
    color: rgba(255, 255, 255, 0.85);
}

.vpn-key-card__time-icon {
    width: 16px;
}

.vpn-key-card__time-text {
    color: #3D9966;
}

.vpn-key-card__time-text--ok {
    color: #3D9966;
}

.vpn-key-card__time-text--warn {
    color: #FFA500;
}

.vpn-key-card__time-text--danger {
    color: #FF3D3D;
}

.vpn-key-card__actions {
    height: 100%;
    margin-top: 12px;
}

.vpn-key-card__actions-delete {
    margin-top: 12px;
}

.vpn-key-card .tariff-button {
    position: static;
    width: 100%;
    background-color: #fff;
    color: #121417;
    border: none;
    font-weight: 700;
}

.vpn-key-card .tariff-button:hover {
    background-color: #f0f0f0;
}

.vpn-key-card .tariff-button--manage {
    background-color: #fff;
    color: #121417;
    border: none;
    font-weight: 700;
}

.vpn-key-card .tariff-button--manage:hover {
    background-color: #f0f0f0;
}

.vpn-key-card .tariff-button--delete {
    background-color: transparent;
    color: #fff;
    border: 1px solid #ff4444;
}

.vpn-key-card .tariff-button--delete:hover {
    background-color: rgba(255, 68, 68, 0.15);
    color: #ff4444;
}

#vpn-buy-key-container{
    /* height: calc(100% - 50px); */
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

#vpn-buy-key-content {
    margin-top: 12px;
    /* padding-bottom: 10px; */
    flex: 1;
    overflow: hidden;
}


.vpn-need-more-keys{
    padding: 20px;
    background: #16181C;
    border-radius: 24px;
}
.vnmk-text1{
    font-weight: 600;
    font-size: 18px;
    text-align: center;
    color: #DCDDE0;
}

.vnmk-text2{
    font-weight: 500;
    font-size: 14px;
    text-align: center;
    color:#B1B4B9;
}

.vnmk-button{
    margin-top: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
}

.vnmk-icon{
    width: 16px;
    height: 16px;
}



#buy-new-vpn-1month-content{
    border-radius: 19px;
}

#buy-new-vpn-3month-content{
    border-radius: 19px;
}

#buy-new-vpn-6month-content{
    border-radius: 19px;
}


#buy-new-vpn-12month-content{
    border-radius: 19px;
}

#install-toggle{
    margin-bottom: 6px;
}

#change-key-card{
    margin-bottom: 12px;
    padding-top: 12px;
}


/* Адаптация для больших экранов */
/* @media (min-width: 768px) {
    .tariff-cards {
        flex-direction: row;
        gap: 15px;
    }
    
    .tariff-card {
        flex: 1;
    }
} */

.manage-key-cstname {
    display: block;
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
}

.manage-key-id-sub {
    display: block;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 2px;
}

.rename-key-modal {
    padding: 24px 20px 32px;
}

.rename-key-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.rename-key-modal__header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #fff;
}

.rename-key-modal__keyid {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
}

.rename-key-modal__body {
    margin-bottom: 20px;
}

.rename-key-modal__input {
    width: 100%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 14px 16px;
    font-size: 16px;
    color: #fff;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.rename-key-modal__input:focus {
    border-color: rgba(255, 255, 255, 0.3);
}

.rename-key-modal__input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.rename-key-modal__hint {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.35);
    margin-top: 8px;
    padding-left: 4px;
}

.rename-key-modal__actions {
    display: flex;
    gap: 10px;
}

.rename-key-modal__save {
    flex: 1;
    border-radius: 14px;
    padding: 14px;
    font-size: 15px;
    font-weight: 600;
}

.rename-key-modal__save:disabled {
    opacity: 0.5;
    pointer-events: none;
}




