@font-face {
  font-family: "Noto Sans";
  src: url("fonts/NotoSans-VariableFont.ttf");
}

@font-face {
  font-family: "Noto Sans Italic";
  src: url("fonts/NotoSans-Italic-VariableFont.ttf");
}

@font-face {
  font-family: "Roboto";
  src: url("fonts/Roboto-VariableFont.ttf");
}

@font-face {
  font-family: "Roboto Italic";
  src: url("fonts/Roboto-Italic-VariableFont.ttf");
}

* {margin: 0;padding: 0;  font-family: "Noto Sans", sans-serif;box-sizing: border-box;}

@media screen and (max-width: 1300px) {

}

.hidden {
    display: none;
}
a {
    text-decoration: none;
    border: none;
}
section {
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: left;
    padding: 25px;
    border-radius: 15px;
    background-color: #E1EFE5;
    /* width: 70%; */
    /* height: 100%; */
    /* margin: 0 auto; */
}

.login_header {
    text-align: center;
    margin: 0 auto;
}

.login_body {
    text-align: center;
    font-family: sans-serif;
    margin-top: 20px;
}

.login_body>h1{
    color: rgb(50, 50, 50);
}

input.login_text_input {
    margin-top: 10px;
    height: 60px;
    width: 310px;
    border-radius: 10px;
    border: 2px solid #34a234;
    font-size: 16px;
    padding: 8px;
    font-weight: 800;
}

.login_button {
    margin-top: 10px;
    height: 60px;
    width: 310px;
    border-radius: 10px;
    border: 2px solid #34a234;
    font-size: 16px;
    padding: 8px;
    background-color: #34a234;
    color: white;
    font-weight: 700;
}

.login_button:hover {
    border: 2px solid #2d882d;
    background-color: #2d882d;
}

.forgot_pass {
    color: #06f;
    text-decoration: none;
}

.message-error {
    margin-bottom: 15px;
    color: red;
}

.message-success {
    margin-bottom: 15px;
    color: #34a234;
}

.wrapper {
    max-width: 82rem;
    margin: 0 auto;
}

.lk-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    width: 100%;
    max-width: 82rem;
    background-color: #fff;
    box-shadow: 
    0 2px 10px rgba(0, 0, 0, 0.08),
    0 1px 4px rgba(52, 162, 52, 0.1);
    transition: box-shadow 0.3s ease;
    margin: 0 auto;
    border-radius: 0px 0px 30px 30px;
    top: 0;
    z-index: 20;
    padding: 0.7rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    font-family: "Noto Sans";
}

.lk-header:hover {
    box-shadow: 
        0 4px 16px rgba(0, 0, 0, 0.12),
        0 2px 8px rgba(52, 162, 52, 0.15);
}

.lk-header a {
    font-size: 1.2rem;
    text-decoration: none;
    color: black;
}

    .hover-underline-animation {
        display: inline-block;
        position: relative;
    }
  
    .hover-underline-animation::after {
        content: '';
        position: absolute;
        width: 100%;
        transform: scaleX(0);
        height: 4px;
        bottom: -34px;
        left: 0;
        background-color: #34a234;
        border-radius: 5px 5px 0px 0px;
        transform-origin: bottom right;
        transition: transform 0.25s ease-out;
    }
    
    .hover-underline-animation:hover::after {
        transform: scaleX(1.1);
        transform-origin: bottom left;
    }

    .hover-underline-animation.center::after {
        transform-origin: bottom center;
      }
      
      .hover-underline-animation.center:hover::after {
        transform-origin: bottom center;
      }

.header-logo {
    height: 60px;
}

.nav-grid {
    display: flex;
    gap: 5rem;
    align-items: center;
}

.lk-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 2rem;
}

/* .lk-buttons span {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    width: 60px;
    height: 60px;
    background-color: #E1EFE5;
}    */

.lk-buttons svg {
    width: 36px;
    height: 36px;
    text-decoration: none;
}
    .lk-buttons svg:hover {
        fill: #34a234;
    }

/* Dropdown Content (Hidden by Default) */
.dropdown-content {
    display: none;
    position: absolute;
    border: 2px solid black;
    background-color: #fff;
    border-radius: 20px;
    top: 96px;
    z-index: 1;
  }

  /* Links inside the dropdown */
  .dropdown-content a {
    text-align: center;
    color: black;
    padding: 15px;
    border-radius: 16px;
    text-decoration: none;
    display: block;
  }
  
  /* Change color of dropdown links on hover */
  .dropdown-content a:hover {background-color: #34a234;}
  
  /* Show the dropdown menu (use JS to add this class to the .dropdown-content container when the user clicks on the dropdown button) */
  .show {display:block;}

.login-remember {
    margin-top: 6px;
    text-align: left;
    font-size: 16px;
}

input[type="checkbox"]:checked, 
input[type="checkbox"]:not(:checked) 
{
    position: absolute;
    left: -9999px;
}

input[type="checkbox"]:checked + label, 
input[type="checkbox"]:not(:checked) + label  {
    display: inline-block;
    position: relative;
    padding-left: 28px;
    line-height: 20px;
    cursor: pointer;
}

input[type="checkbox"]:checked + label:before, 
input[type="checkbox"]:not(:checked) + label:before {
    content: "";
    position: absolute;
    left: 0px;
    top: 0px;
    width: 18px;
    height: 18px;
    border: 1px solid #dddddd;
    background-color: #ffffff;
}

input[type="checkbox"]:checked + label:before, 
input[type="checkbox"]:not(:checked) + label:before {
    border-radius: 2px;
}

input[type="checkbox"]:checked + label:after, 
input[type="checkbox"]:not(:checked) + label:after {
    content: "";
    position: absolute;
    -webkit-transition: all 0.2s ease;
    -moz-transition: all 0.2s ease;
    -o-transition: all 0.2s ease;
    transition: all 0.2s ease;
}

input[type="checkbox"]:checked + label:after, 
input[type="checkbox"]:not(:checked) + label:after {
    left: 3px;
    top: 4px;
    width: 10px;
    height: 5px;
    border-radius: 1px;
    border-left: 4px solid #34a234;
    border-bottom: 4px solid #34a234;
    -webkit-transform: rotate(-45deg);
    -moz-transform: rotate(-45deg);
    -o-transform: rotate(-45deg);
    -ms-transform: rotate(-45deg);
    transform: rotate(-45deg);
}

input[type="checkbox"]:not(:checked) + label:after{
    opacity: 0;
}

input[type="checkbox"]:checked + label:after {
    opacity: 1;
}
/* --------------------- */

.main-lk {
    padding-top: 1rem;
    /* padding-bottom: 1rem; */
    display: grid;
    grid-template-columns: 308px 3fr;
    gap: 1rem;
}

.main-lk-two {
    padding-top: 1rem;
    padding-bottom: 1rem;
    display: grid;
    grid-template-columns: 308px 1fr 1fr 1fr;
    gap: 1rem;
}

.main-lk-three {
    padding-top: 1rem;
    padding-bottom: 1rem;
    display: grid;
    grid-template-columns: 308px 3fr;
    gap: 1rem;
}

.lk-balance {
    background-color: #fff;
    border-radius: 15px;
    padding: 2rem;
    min-height: 374px;
    max-height: 374px;
}

.lk-ad {
    /* background-color: #fff; */
    border-radius: 15px;
    position: relative;
}

.lk-ad img{
    object-fit: fill;
    width: 100%;
    height: 100%;
    border-radius: 15px;
}


.lk-current-balance {
    font-weight: 700;
    font-size: 36px;
    margin-top: 8px;
    margin-bottom: 8px;
}

.lk-tarif-cost {
    color: #5F6368;
    font-size: 16px;
}

.lk-button-topup {
    display: inline-block;
    background-color: #34a234;
    border: none;
    padding: 1rem 2rem;
    border-radius: 15px;
    color: white;
    font-size: 16px;
    text-decoration: none;
    margin-bottom: 24px;
    margin-top: 8px;
}

.lk-balance hr {
    border: 1px solid #D9D9D9;
    margin-bottom: 16px;
}

.lk-service {
    background-color: #fff;
    border-radius: 15px;
    position: relative;
    height: 344px;
    padding: 1.5rem;
}

.service_point {
    background-color: #E1EFE5;
    padding: 0.5rem;
    width: 44px;
    height: 44px;
    border-radius: 15px;
}

.lk-service_header {
    display: flex; 
    align-items: center;
    margin-bottom: 8px;
}

.lk-service_header_finance {
    display: flex; 
    align-items: center;
    margin-bottom: 8px;
    gap: 0.75rem;
}

.lk-service_header h2 {
    font-size: 20px;
}

.service_small {
    font-size: 14px;
    color: #5F6368;
    font-weight: 600;
    margin-bottom: 16px;
}

.service_body_info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 16px;
    margin-bottom: 8px;
}


.lk-service_finance_month button{
    background-color: #E1EFE5;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    padding-top: 0.375rem;
    padding-bottom: 0.375rem;
    border-radius: 0.5rem;
    font-size:.875rem;
    border: none;
    color: #000000;
    font-weight: 700;
    cursor: pointer;
}

.lk-service_finance_month {
  margin: 0 0 0 auto;
  display: flex;
  gap: 0.5rem;
}

.small-finance {
  color: gray;
}

.lk-service_finance_month .active {
    background-color: #34a234;
    color: #FFFFFF !important;
    cursor: pointer;
}

.lk-service_finance {
    display: grid;
    gap: 1.5rem;
    background-color: #fff;
    border-radius: 15px;
    position: relative;
    padding: 1.5rem;
}

.lk-service_body_finance {
    display: grid;
    gap: 1.25rem;
}


.lk-service_body_charge {
    background-color: #E1EFE5;
    border-radius: 15px;
    padding: 1rem;
    gap: 0.5rem;
    display: flex;
    align-items: center;
}

.service_point-finance {
    background-color: #fff;
    padding: 0.5rem;
    width: 44px;
    height: 44px;
    border-radius: 15px;
}

/* .lk-service_finance {
  min-height: 300px;
  max-height: 70vh;  
  overflow-y: auto; 
  scroll-behavior: smooth; 
}

.lk-service_finance {
  overflow-y: auto; 
} */

  .lk-service_body_charge {
    animation: fadeIn 0.3s ease-out;
  }

  @keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
  }

  
  
  
  .profile-dropdown {
    position: relative;
    display: inline-block;
    background-color: #e1efe5;
    border-radius: 8px;
  }

  .profile-dropdown:hover {
    background: #D0E5D0;
  }
  
  .dropdown-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .dropdown-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    width: 220px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
    z-index: 100;
  }
  
  .profile-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
  }
  
  .menu-header {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    font-size: 13px;
    color: #666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  .menu-item-container {
    position: relative;
    margin: 4px 0;
    border-radius: 6px;
    overflow: hidden;
  }
  
  .menu-item {
    position: relative;
    display: flex;
    align-items: center;
    padding: 12px 16px;
    cursor: pointer;
    font-size: 14px;
    width: 100%;
    text-align: left;
    border: none;
    background: none;
    z-index: 2;
  }
  
  .menu-item svg {
    width: 36px;
    height: 36px;
    margin-right: 12px;
    transition: all 0.2s ease;
  }
  
  .hover-fill {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #34A234;
    z-index: 1;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }

  
  .menu-item.profile {
    color: white;
    background-color: #34A234;
  }
  
  .menu-item.logout {
    color: #2E7D32;
    background-color: #E1EFE5;
  }
  
 
  /* Фикс для иконки профиля */
  .menu-item.profile svg {
    margin-left: -2px;
    transform: translateY(1px);
  }
/* Стили для иконки уведомлений */
.lk_notification {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    background: #E1EFE5;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
  }
  
  .lk_notification:hover {
    background: #D0E5D0;
  }
  
  .notification-icon {
    width: 28px;
    height: 28px;
    stroke: #2E7D32;
    transition: transform 0.2s ease;
  }

  
  /* Стили для бейджа уведомлений */
  .notification-badge {
    position: absolute;
    top: 5px;
    right: 5px;
    background: #E44335;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
  }
  
  .notification-badge.hidden {
    display: none;
  }

  /* Стили для выпадающего списка */
  .notifications-dropdown {
    position: absolute;
    right: 20px;
    top: 80px;
    width: 380px;
    max-height: 500px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    z-index: 1000;
    overflow: hidden;
    transform: translateY(-10px);
    opacity: 0;
    transition: all 0.25s ease;
  }
  
  .notifications-dropdown.active {
    transform: translateY(0);
    opacity: 1;
  }
  
  .notifications-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid #f0f0f0;
  }
  
  .notifications-header h3 {
    margin: 0;
    font-size: 18px;
    color: #333;
  }
  
  .mark-all-read {
    background: none;
    border: none;
    color: #34A234;
    font-weight: 600;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 6px;
  }
  
  .mark-all-read:hover {
    background: #E1EFE5;
  }
  
  .notifications-list {
    max-height: 400px;
    overflow-y: auto;
  }
  
  .notification-item {
    display: flex;
    padding: 12px 16px;
    border-bottom: 1px solid #f5f5f5;
    transition: background 0.2s ease;
  }
  
  .notification-item.unread {
    background: #f9f9f9;
  }
  
  .notification-item:hover {
    background: #f0f0f0;
  }
  
  .notification-item .notification-icon {
    margin-right: 12px;
    flex-shrink: 0;
  }
  
  .notification-content {
    flex-grow: 1;
  }
  
  .notification-content p {
    margin: 0 0 4px 0;
    color: #333;
  }
  
  .notification-time {
    font-size: 12px;
    color: #888;
  }
  
  /* Анимация нового уведомления */
  @keyframes highlight {
    0% { background: rgba(52, 162, 52, 0.1); }
    100% { background: transparent; }
  }
  
  .new-notification {
    animation: highlight 1.5s ease-out;
  } 


  /* Исправленное позиционирование уведомлений и выпадающих меню */
.notification-wrapper {
    position: relative;
    display: inline-block;
}

.lk-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 1.5rem;
    align-items: center;
}

.profile-dropdown {
    position: relative;
    display: inline-block;
    background-color: #e1efe5;
    border-radius: 8px;
}

/* Уточненное позиционирование dropdown уведомлений */
.notifications-dropdown {
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    width: 380px;
    max-height: 500px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    z-index: 1000;
    overflow: hidden;
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.25s ease;
}

.notifications-dropdown.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

/* Уточненное позиционирование dropdown профиля */
.dropdown-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    width: 220px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
    z-index: 100;
}

.dropdown-menu.show {
    opacity: 1;
    visibility: visible;
}


.notifications-dropdown {
    display: none; /* Сначала скрываем */
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 10px;
    width: 380px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    z-index: 1000;
}

.notifications-dropdown.active {
    display: block; /* Показываем при активации */
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.notification-wrapper {
    position: relative;
}

/* Стили для диагонально разделённых кнопок */
.diagonal-split-buttons {
    font-size: 1.3rem;
    display: flex;
    height: 60px;
    margin-top: 8px;
    margin-bottom: 24px;
    position: relative;
    filter: drop-shadow(0 2px 6px rgba(52, 162, 52, 0.15));
  }
  
  .diagonal-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: white;
    font-weight: 600;
    font-size: 14px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  }
  
  .diagonal-btn span {
    position: relative;
    z-index: 2;
    line-height: 1.2;
  }
  
  .diagonal-btn svg {
    position: relative;
    z-index: 2;
    margin: 0 6px;
    transition: transform 0.2s ease;
  }
  
  /* Левая часть (Интернет) */
  .internet-part {
    background: #34a234;
    border-radius: 12px 0 0 12px;
    padding-right: 12px;
    clip-path: polygon(0 0, 92% 0, 82% 100%, 0% 100%);
  }
  
  .internet-part:hover {
    background: #2d882d;
  }
  
  .internet-part:hover svg {
    transform: translateX(3px);
  }
  
  /* Правая часть (ТВ) */
  .tv-part {
    background: #b1edc2;
    color: black;
    border-radius: 0 12px 12px 0;
    padding-left: 12px;
    clip-path: polygon(18% 0, 100% 0, 100% 100%, 8% 100%);
  }
  
  .tv-part:hover {
    background: #E1EFE5;
  }
  
  .tv-part:hover svg {
    transform: translateX(-3px);
  }
  
  /* Уменьшенный промежуток между кнопками */
  .diagonal-gap {
    background: #E1EFE5;
    clip-path: polygon(80% 0, 100% 50%, 80% 100%, 0% 50%);
    margin: 0 -16px;
    z-index: 1;
  }
  
  /* Эффект при нажатии */
  .diagonal-btn:active {
    transform: scale(0.98);
  }
/* user profile */

/* Стили для страницы профиля */
.main-profile {
    padding-top: 1rem;
    padding-bottom: 1rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.profile-section {
    background-color: #fff;
    border-radius: 15px;
    padding: 2rem;
}

.profile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.profile-header h2 {
    font-size: 1.5rem;
    color: #333;
}

.profile-content {
    display: grid;
    gap: 1.25rem;
}

.profile-row {
    display: flex;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.profile-label {
    font-weight: 600;
    color: #5F6368;
    width: 250px;
    flex-shrink: 0;
}

.profile-value {
    flex-grow: 1;
}

.profile-input {
    flex-grow: 1;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
}

.profile-input:focus {
    outline: none;
    border-color: #34a234;
    box-shadow: 0 0 0 2px rgba(52, 162, 52, 0.2);
}

.edit-btn {
    background-color: #34a234;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.2s;
}

.edit-btn:hover {
    background-color: #2d882d;
}

.change-password-btn {
    background-color: #e1efe5;
    color: #2d882d;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    margin-left: 1rem;
    transition: background-color 0.2s;
}

.change-password-btn:hover {
    background-color: #d0e5d0;
}

.profile-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    justify-content: flex-end;
}

.save-btn {
    background-color: #34a234;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.2s;
}

.save-btn:hover {
    background-color: #2d882d;
}

.cancel-btn {
    background-color: #f0f0f0;
    color: #333;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.2s;
}

.cancel-btn:hover {
    background-color: #e0e0e0;
}

/* Переключатель двухфакторной аутентификации */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
    margin-left: 1rem;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #34a234;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.service-description {
  color: #5F6368;
}


/* Стили для заголовков разделов */
.finance-section-title {
  margin: 20px 0 10px 0;
  font-size: 18px;
  font-weight: 600;
  color: #333;
}

.finance-container {
  margin-right: auto;
}

.no-data {
  text-align: center;
  padding: 40px;
  color: #999;
  font-style: italic;
}

/* Дополнительные служебные классы */
.text-center {
  text-align: center;
}


.profile_bg {
  background-color: #E1EFE5;
}

.finance-description {
  color: #5F6368;
  font-weight: 600;
}

.profile_wrap {
  padding-bottom: 5rem;
}

.ml-8 {
  margin-left: 8px;
}

.text-center {
  text-align: center;
}

.mt-45 {
  margin-top: 45px;
}

.finance-header {
  margin-right: auto;
}

.balance-amount {
  font-size: 24px;
  font-weight: bold;
  color: #333;
}

.amount-negative {
  font-weight: 800; 
  color: #E44335;
}

.amount-positive {
  font-weight: 800; 
  color: #34A234;
}

/* Стили для услуг */
.service_body_info p:last-child {
  color: #000;
  font-weight: normal;
}

/* Стили для ссылок */
.service_body_info a {
  text-decoration: none;
  color: #34A234;
}

.service_body_info a>p {
  text-decoration: none;
  color: inherit !important;
}

.service_body_info a:hover {
  text-decoration: underline;
}

/* Адаптивность */
@media (max-width: 768px) {
    .profile-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .profile-label {
        width: auto;
    }
    
    .profile-actions {
        flex-direction: column;
    }
    
    .profile-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .edit-btn {
        align-self: flex-end;
    }
}

.lk-balance-container {
  width: 100%;
  max-width: 340px;
  background-color: #fff;
  border-radius: 15px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.lk-balance h2 {
  font-weight: 600;
  color: black;
  margin-bottom: 15px;
  font-size: 1.8rem;
}

.balance-tabs {
  display: flex;
  margin-bottom: 15px;
  border-bottom: 1px solid #E1EFE5;
}

.balance-tab {
  padding: 8px 15px;
  cursor: pointer;
  font-size: 14px;
  color: #5F6368;
  position: relative;
}

.balance-tab.active {
  color: #34A253;
  font-weight: 600;
}

.balance-tab.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: #34A253;
  border-radius: 3px 3px 0 0;
}

.balance-content {
  display: none;
}

.balance-content.active {
  display: block;
  min-height: 196px;
}

.balance-amount {
  font-weight: 700;
  font-size: 1.8rem;
  margin: 10px 0 15px;
  color: #333;
}

.balance-details {
  margin-bottom: 20px;
}

.detail-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 14px;
}

.detail-label {
  color: #5F6368;
}

.detail-value {
  font-weight: 600;
}

.payment-button {
  display: block;
  width: 100%;
  padding: 12px;
  background-color: #34A253;
  color: white;
  text-align: center;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  margin-top: 10px;
  transition: background-color 0.2s;
}

.payment-button:hover {
  background-color: #2D8F48;
}

.combined-balance {
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid #E1EFE5;
  color: #5F6368;
  font-size: 14px;
  text-align: center;
}

.combined-amount {
  font-weight: 600;
  color: #333;
  margin-top: 5px;
  font-size: 16px;
}

@media (max-width: 340px) {
  .lk-balance-container {
      padding: 15px;
  }
  
  .balance-tab {
      padding: 8px 10px;
      font-size: 13px;
  }
  
  .balance-amount {
      font-size: 22px;
  }
}

/* dasdsa;dadasd */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 10000;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-panel {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
  max-width: 450px;
  width: 100%;
  margin: 0 auto;
  overflow: hidden;
}

.modal-header {
  padding: 20px;
  border-bottom: 1px solid #e1efe5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #f9fbfa;
}

.modal-title {
  font-size: 18px;
  font-weight: 600;
  color: #2c3e50;
  margin: 0;
}

.modal-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #7f8c8d;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}

.modal-close:hover {
  color: #34495e;
}

.modal-body {
  padding: 20px;
}

.mb-3 {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #2c3e50;
  font-size: 14px;
}

.form-control {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #e1efe5;
  border-radius: 6px;
  font-size: 14px;
  box-sizing: border-box;
  transition: all 0.2s;
}

.form-control:focus {
  outline: none;
  border-color: #34a234;
  box-shadow: 0 0 0 3px rgba(52, 162, 52, 0.1);
}

.modal-footer {
  padding: 20px;
  border-top: 1px solid #e1efe5;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  background-color: #f9fbfa;
}

.btn {
  padding: 6px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}

.btn-secondary {
  background-color: #f1f1f1;
  color: #34495e;
  padding: 12px;
}

.btn-secondary:hover {
  background-color: #e5e5e5;
}

.btn-primary {
  background-color: #34a234;
  color: white;
  padding: 12px;
}

.btn-success {
  background-color: #34A253;
  color: white;
  padding: 12px;
}

.btn-primary:hover {
  background-color: #2c8d2c;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(52, 162, 52, 0.2);
}

@media (max-width: 480px) {
  .modal-overlay {
      padding: 10px;
  }
  
  .modal-panel {
      margin: 0;
      max-width: none;
  }
  
  .modal-footer {
      flex-direction: column;
  }
  
  .btn {
      width: 100%;
  }
}
/* asdasdsadadas */

.lk-service {
  position: relative;
  /* остальные ваши стили */
}

.lk-service_header {
  display: flex;
  align-items: center;
  position: relative;
}

.unlink-button {
  position: absolute;
  top: 8px;
  right: 8px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  color: #999;
  height: 24px;
  width: 24px;
} 

.unlink-button:hover {
  color: #ff4444;
  background-color: #f8f8f8;
}

.no-account-center {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 20px;
}

.link-account-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: none;
  border: 2px dashed #ccc;
  border-radius: 8px;
  padding: 20px;
  cursor: pointer;
  color: #666;
  transition: all 0.3s ease;
  min-width: 140px;
}

.link-account-button:hover {
  border-color: #34A234;
  color: #34A234;
  background-color: #f8faff;
}

.link-account-button svg {
  margin-bottom: 8px;
}

/* change tariff */



.tariff-name-with-icon {
    display: flex;
    align-items: center;
    gap: 10px;
}

.icon-button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.icon-button:hover {
    background-color: #f0f0f0;
}

/* Стили для модального окна */
.modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.next-tariff-section {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px dashed #ccc;
}

.tariff-badge.next {
  background-color: #28a745;
  color: white;
}

.modal-content {
    background-color: #fff;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.5rem;
}

.modal-close {
    font-size: 24px;
    cursor: pointer;
    color: #999;
}

.modal-close:hover {
    color: #333;
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 15px 20px;
    border-top: 1px solid #eee;
}

.modal-button {
    padding: 10px 20px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-weight: 500;
}

.modal-button.primary {
    background-color: #007bff;
    color: white;
}

.modal-button.primary:disabled {
    background-color: #6c757d;
    cursor: not-allowed;
}

.modal-button.primary:not(:disabled):hover {
    background-color: #0069d9;
}

.modal-button.secondary {
    background-color: #f8f9fa;
    color: #333;
}

.modal-button.secondary:hover {
    background-color: #e2e6ea;
}
/* фывыфвыф */

.tariff-change-link {
    display: inline-flex;
    align-items: center;
    color: #34a234;
    font-weight: 600;
    text-decoration: none;
    margin-top: 16px;
    transition: all 0.2s ease;
}

.tariff-change-link:hover {
    color: #2d882d;
    text-decoration: underline;
}

.tariff-change-link svg {
    margin-left: 6px;
    width: 14px;
    height: 14px;
    transition: transform 0.2s ease;
}

.tariff-change-link:hover svg {
    transform: translateX(3px);
}

.modal {
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.tariff-modal {
    width: 90%;
    max-width: 1200px;
    max-height: 90vh;
    overflow-y: auto;
}

.tariff-container {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.current-tariff-section,
.tariff-selection,
.tariff-details {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 5px;
}

.tariff-filters {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.filter-btn {
    padding: 5px 10px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 3px;
    cursor: pointer;
}

.filter-btn.active {
    background: #007bff;
    color: #fff;
    border-color: #007bff;
}

.tariffs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    max-height: 50vh;
    overflow-y: auto;
}

.tariff-card {
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s;
}

.tariff-card:hover {
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0,123,255,0.5);
}

.tariff-card.selected {
    border-color: #007bff;
    background-color: #f0f7ff;
}

.tariff-card.current {
    background-color: #e8f5e9;
    border-color: #4caf50;
}

.tariff-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.tariff-header h4 {
    margin: 0;
    font-size: 16px;
}

.tariff-badge {
    font-size: 12px;
    padding: 3px 8px;
    border-radius: 12px;
    color: #fff;
}

.hidden {
  display: none;
}

.close-button {
  position: absolute;
  top: 45px;
  width: 100%;
  background: #4caf50;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: white;
  padding: 0;
  height: 32px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.close-button:hover {
  background-color: #34A234;
}

.tariff-badge.current {
    background: #4caf50;
}

.tariff-badge.d2 {
    background: #4caf50;
}

.tariff-badge.d3 {
    background: #4caf50;
}

.tariff-speed {
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 5px;
}

.tariff-price {
    font-size: 18px;
    font-weight: bold;
    color: #e91e63;
}

.tariff-details-content {
    margin-top: 15px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    word-break: normal;
    text-align: right;
}

.detail-label {
    font-weight: bold;
}

.detail-description {
    margin: 15px 0;
    padding: 10px;
    background: #f5f5f5;
    border-radius: 5px;
    font-style: italic;
}

.comparison-section {
    margin: 20px 0;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 5px;
}

.comparison-section h5 {
    margin-top: 0;
    margin-bottom: 10px;
}

.comparison-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.diff {
    font-weight: bold;
}

.diff.positive {
    color: #4caf50;
}

.diff.negative {
    color: #f44336;
}

.btn-select-tariff {
    width: 100%;
    margin-top: 15px;
    padding: 10px;
}

.details-placeholder {
    text-align: center;
    padding: 30px;
    color: #999;
    font-style: italic;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.with-tooltip {
    position: relative;
}

.info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: #6c757d;
    color: white;
    font-size: 12px;
    font-weight: bold;
    margin-left: 5px;
    cursor: help;
}

.tooltip {
    display: none;
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    padding: 10px;
    background-color: #333;
    color: #fff;
    border-radius: 4px;
    font-size: 12px;
    font-weight: normal;
    line-height: 1.4;
    z-index: 1000;
    white-space: normal;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    margin-bottom: 10px;
}

.tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
}

.with-tooltip:hover .tooltip {
    display: block;
}

@media (max-width: 768px) {
    .info-icon:hover::after,
    .tooltip {
        width: 250px;
        left: 0;
        transform: none;
    }
    
    .info-icon:hover::before,
    .tooltip::after {
        left: 20px;
    }
}

/* Добавим в CSS */
.badges {
    display: flex;
    gap: 5px;
}

.tv-badge {
    background-color: #9c27b0;
    color: white;
    font-size: 12px;
    padding: 3px 8px;
    border-radius: 12px;
    font-weight: bold;
}

.tariff-tv {
    font-size: 12px;
    color: #9c27b0;
    margin-bottom: 5px;
    font-weight: 500;
}

.close {cursor: pointer;}

/* adaptive */

/* Добавляем в конец файла style.css */

/* ==================== */
/* АДАПТИВНЫЕ СТИЛИ */
/* ==================== */

/* Общие адаптивные стили */
@media screen and (max-width: 1200px) {
  .wrapper {
    /* padding: 0 1rem; */
    max-width: 90%;
  }

  .lk-header {
    max-width: 90%;
  }
  
  .main-lk-two {
    grid-template-columns: 1fr 1fr;
    padding-top: 0;
  }
  
  .nav-grid {
    gap: 2rem;
  }
}

/* Планшеты и небольшие экраны */
@media screen and (max-width: 1200px) {
  .main-lk {
    grid-template-columns: 1fr;
  }
  
  .main-lk-two {
    grid-template-columns: 1fr;
  }
  
  .main-lk-three {
    grid-template-columns: 1fr;
  }
  
  .lk-service {
    height: auto;
    min-height: 344px;
  }
  
  .nav-grid {
    gap: 1.5rem;
  }
  
  .lk-header {
    padding: 0.5rem 1rem;
  }
  
  .header-logo {
    height: 50px;
  }
  
  .tariff-container {
    grid-template-columns: 1fr;
    gap: 15px;
  }
}

/* Мобильные устройства (ландшафт) */
@media screen and (max-width: 768px) {
  .login {
    width: 90%;
    padding: 20px;
  }
  
  .lk-header {
    justify-content: center;
  }

  
  
  .nav-grid {
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    margin-top: 1rem;
  }
  
  .lk-buttons {
    justify-content: center;
    margin-top: 1rem;
    gap: 1rem;
  }
  
  .hover-underline-animation::after {
    bottom: -15px;
  }
  
  .diagonal-split-buttons {
    flex-direction: column;
    height: auto;
  }
  
  .internet-part, .tv-part {
    clip-path: none;
    border-radius: 12px;
    margin-bottom: 10px;
    padding: 15px !important;
  }
  
  .diagonal-gap {
    display: none;
  }
  
  .notifications-dropdown {
    width: 300px;
    right: -50px;
  }
  
  .dropdown-menu {
    right: -80px;
  }
  
  .profile-dropdown .dropdown-menu {
    right: 0;
  }
  
  .modal-panel {
    width: 95%;
  }
  
  .balance-tabs {
    flex-wrap: wrap;
  }
  
  .balance-tab {
    flex: 1;
    min-width: 50%;
    text-align: center;
  }
  
  .lk-service_finance_month {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
  }
}

/* Мобильные устройства (портрет) */
@media screen and (max-width: 576px) {
  section {
    padding: 1rem;
  }
  
  .login {
    width: 100%;
    padding: 15px;
  }
  
  input.login_text_input, 
  .login_button {
    width: 100%;
    max-width: 100%;
  }
  
  .login_header svg {
    width: 150px;
  }
  
  .lk-service, 
  .lk-service_finance {
    padding: 1rem;
  }
  
  .service_body_info {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    margin-bottom: 1rem;
  }
  
  .service_body_info svg {
    margin-bottom: 0.5rem;
  }
  
  .modal-footer {
    flex-direction: column;
  }
  
  .modal-footer .btn {
    width: 100%;
    margin-bottom: 0.5rem;
  }
  
  .profile-row {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .profile-label {
    width: 100%;
    margin-bottom: 0.5rem;
  }
  
  .profile-actions {
    flex-direction: column;
  }
  
  .notifications-dropdown {
    width: 280px;
    right: -90px;
  }
  
  .tariffs-grid {
    grid-template-columns: 1fr;
  }
  
  .payment-button {
    padding: 10px;
    font-size: 14px;
  }
  
  .unlink-button {
    top: 5px;
    right: 5px;
  }
}

/* Очень маленькие устройства */
@media screen and (max-width: 380px) {
  .login_body h1 {
    font-size: 1.5rem;
  }
  
  .lk-balance h2 {
    font-size: 1.5rem;
  }
  
  .balance-amount {
    font-size: 1.5rem;
  }
  
  .service-title {
    font-size: 1.2rem;
  }
  
  .notifications-dropdown {
    width: 250px;
    right: -70px;
  }
  
  .dropdown-menu {
    width: 200px;
  }
}

/* Высокие экраны */
@media screen and (min-height: 1000px) and (max-width: 768px) {
  section {
    height: auto;
    min-height: 100vh;
    padding: 2rem 0;
  }
}

textarea {
  resize: none;
}

/* Стили для улучшения UX на мобильных */
@media (hover: none) and (pointer: coarse) {
  /* Увеличиваем область клика для сенсорных устройств */
  .balance-tab,
  .lk-service_finance_month button,
  .menu-item,
  .dropdown-toggle,
  .lk_notification {
    min-height: 44px; /* Рекомендованный минимальный размер для касаний */
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  input, select, textarea {
    font-size: 16px; /* Предотвращает масштабирование в iOS */
  }
}

/* Анимации для плавного появления элементов */
@media (prefers-reduced-motion: no-preference) {
  .lk-service,
  .lk-balance,
  .lk-ad {
    animation: fadeIn 0.5s ease-out;
  }
  
  @keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
  }
}

@media screen and (max-width: 1200px) {
  .main-lk {
      display: flex;
      flex-direction: column; /* Упорядочиваем блоки по вертикали */
  }

  .lk-balance,
  .lk-ad {
      width: 100%; /* Блоки занимают всю ширину */
  }

  .lk-service {
      min-height: auto; /* Убираем минимальную высоту для адаптивности */
  }
}

.btn-danger {
  background-color: #E44335;
}

.btn:hover {
  background-color: #2D8F48;
}

.btn-danger:hover {
  background-color: #e03121;
}

/* logout btn */
/* Стили для кнопки выхода */
.logout-btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background-color: #E44335;
  border-radius: 8px;
  color: white;
  text-decoration: none;
  box-shadow: 0 2px 4px rgba(228, 67, 53, 0.2);
  position: relative;
  overflow: hidden;
}

.logout-btn-icon:hover {
  background-color: #e04331;
  box-shadow: 0 4px 8px rgba(228, 67, 53, 0.3);
}

.logout-btn-icon:active {
  transform: translateY(0);
}

/* Иконка приоткрытой двери с горизонтальным открытием */
.door-icon-exit {
  width: 20px;
  height: 20px;
  position: relative;
}

.door-icon-exit .door-frame {
  position: absolute;
  width: 16px;
  height: 18px;
  border: 2px solid white;
  border-radius: 2px;
  left: 0;
  top: 0;
}

.door-icon-exit .door {
  position: absolute;
  width: 12px;
  height: 16px;
  background: white;
  border-radius: 2px 0 0 2px;
  left: 2px;
  top: 1px;
  transition: all 0.3s ease;
  transform-origin: left center;
}

.door-icon-exit .handle {
  position: absolute;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: #E44335;
  right: 2px;
  top: 8px;
}

.door-icon-exit .arrow {
  position: absolute;
  width: 6px;
  height: 6px;
  border-top: 2px solid white;
  border-right: 2px solid white;
  transform: rotate(45deg);
  left: 14px;
  top: 7px;
  opacity: 0;
  transition: all 0.3s ease 0.1s;
}

.logout-btn-icon:hover .door {
  transform: rotateY(-70deg);
}

.logout-btn-icon:hover .arrow {
  opacity: 1;
  left: 10px;
}



/* tech form */

/* Стили для сообщений */
.messages-container {
  display: grid;
  gap: 1.5rem;
}

.messages-list {
  max-height: 400px;
  overflow-y: auto;
  padding: 1rem;
  background: #f9f9f9;
  border-radius: 8px;
}

.message-item {
  margin-bottom: 1rem;
  padding: 1rem;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.message-item.outgoing {
  border-left: 4px solid #34a234;
}

.message-item.incoming {
  border-left: 4px solid #2196f3;
}

.message-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  color: #666;
}

.message-sender {
  font-weight: 600;
}

.message-date {
  color: #999;
}

.message-content {
  line-height: 1.5;
}

.message-attachment {
  margin-top: 0.5rem;
  padding: 0.5rem;
  background: #f0f0f0;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.message-attachment a {
  color: #34a234;
  text-decoration: none;
}

.message-attachment a:hover {
  text-decoration: underline;
}

.no-messages {
  text-align: center;
  padding: 2rem;
  color: #999;
  font-style: italic;
}

.unread-count {
  background: #e44335;
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 12px;
  font-size: 0.8rem;
}

/* Стили для формы и drag & drop */
.message-form {
  background: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.file-upload-container {
  margin-bottom: 1rem;
}

.file-upload-label {
  cursor: pointer;
}

.file-upload-input {
  display: none;
}

.file-upload-area {
  border: 2px dashed #ccc;
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
}

.file-upload-area:hover,
.file-upload-area.highlight {
  border-color: #34a234;
  background-color: #f9f9f9;
}

.file-upload-area svg {
  margin-bottom: 1rem;
  color: #ccc;
}

.file-upload-area.highlight svg {
  color: #34a234;
}

.file-upload-area span {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.file-upload-area small {
  color: #999;
}

.file-preview {
  margin-top: 1rem;
}

.file-preview-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem;
  background: #f0f0f0;
  border-radius: 4px;
  margin-bottom: 0.5rem;
}

.file-name {
  font-size: 0.9rem;
}

.file-remove {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: #e44335;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.file-remove:hover {
  background: #ffcdd2;
}

/* Сообщения пользователя (слева, синие) */
.message-item.user-message {
  border-left: 4px solid #2196f3;
  background-color: #e3f2fd;
  margin-right: 20%;
  text-align: left;
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
}

/* Сообщения поддержки/админа (справа, зеленые) */
.message-item.admin-message {
  border-left: 4px solid #34a234;
  background-color: #e8f5e9;
  margin-left: 20%;
  text-align: right;
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
}

/* Заголовок сообщения */
.message-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  color: #666;
}

/* Для сообщений админа меняем направление flex */
.message-item.admin-message .message-header {
  flex-direction: row-reverse;
}

.message-sender {
  font-weight: 600;
}

.message-date {
  color: #999;
}

/* cool popup */

/* Стили для кастомных уведомлений */
.notification-container {
  position: fixed;
  top: 100px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.notification {
  padding: 16px 20px;
  border-radius: 8px;
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 300px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transform: translateX(100%);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55);
  font-family: "Noto Sans", sans-serif;
}

.notification.show {
  transform: translateX(0);
  opacity: 1;
}

.notification.hide {
  transform: translateX(100%);
  opacity: 0;
}

.notification-success {
  background-color: #34a234;
  border-left: 4px solid #2d882d;
}

.notification-error {
  background-color: #E44335;
  border-left: 4px solid #c13b2e;
}

.notification-info {
  background-color: #2196F3;
  border-left: 4px solid #0b7dda;
}

.notification-warning {
  background-color: #FF9800;
  border-left: 4px solid #e68900;
}

.notification-content {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-grow: 1;
}

.notification-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.notification-message {
  font-size: 14px;
  line-height: 1.4;
  font-weight: 500;
}

.notification-close {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  font-size: 18px;
  margin-left: 10px;
  opacity: 0.7;
  transition: opacity 0.2s;
  padding: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.notification-close:hover {
  opacity: 1;
}

/* Анимация появления */
@keyframes slideInRight {
  from {
      transform: translateX(100%);
      opacity: 0;
  }
  to {
      transform: translateX(0);
      opacity: 1;
  }
}

@keyframes slideOutRight {
  from {
      transform: translateX(0);
      opacity: 1;
  }
  to {
      transform: translateX(100%);
      opacity: 0;
  }
}

/* confirm bless */

/* Стили для кастомных confirm-окон */
.confirm-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.confirm-overlay.show {
  opacity: 1;
  visibility: visible;
}

.confirm-modal {
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  width: 90%;
  max-width: 400px;
  padding: 0;
  overflow: hidden;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.confirm-overlay.show .confirm-modal {
  transform: scale(1);
}

.confirm-header {
  padding: 20px;
  border-bottom: 1px solid #e1efe5;
  background-color: #f9fbfa;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.confirm-title {
  font-size: 18px;
  font-weight: 600;
  color: #2c3e50;
  margin: 0;
}

.confirm-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #7f8c8d;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}

.confirm-close:hover {
  color: #34495e;
}

.confirm-body {
  padding: 20px;
  color: #333;
  line-height: 1.5;
}

.confirm-footer {
  padding: 15px 20px;
  border-top: 1px solid #e1efe5;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  background-color: #f9fbfa;
}

.confirm-btn {
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  min-width: 80px;
}

.confirm-btn-cancel {
  background-color: #f1f1f1;
  color: #34495e;
}

.confirm-btn-cancel:hover {
  background-color: #e5e5e5;
}

.confirm-btn-confirm {
  background-color: #34a234;
  color: white;
}

.confirm-btn-confirm:hover {
  background-color: #2c8d2c;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(52, 162, 52, 0.2);
}

.confirm-btn-danger {
  background-color: #E44335;
  color: white;
}

.confirm-btn-danger:hover {
  background-color: #d32f2f;
}

/* Анимация */
@keyframes confirmFadeIn {
  from {
      opacity: 0;
      transform: translateY(-20px);
  }
  to {
      opacity: 1;
      transform: translateY(0);
  }
}

.confirm-modal {
  animation: confirmFadeIn 0.3s ease;
}

/* balance */

/* Исправление для вкладок баланса */
.balance-content {
  min-height: 250px; /* Фиксированная высота для предотвращения скачков */
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.balance-content.active {
  display: block;
  opacity: 1;
}

.balance-details {
  margin-bottom: 15px;
}

.header-logo-div {
  margin-top: 8px;
}

/* Центрирование содержимого карточек на мобильных */
@media screen and (max-width: 768px) {
  .lk-service {
      text-align: center;
      padding: 1rem;
  }

  .lk-service_header {
      flex-direction: column;
      text-align: center;
      gap: 0.5rem;
  }

  .header-logo {
    margin-left: 0px;
  }

  .logout-btn-icon {
    display: none;
  }

  .service_point {
      margin: 0 auto;
  }

  .service-title.ml-8 {
      margin-left: 0 !important;
  }

  .service_body_info {
      flex-direction: column;
      align-items: center;
      text-align: center;
      gap: 0.5rem;
      margin-bottom: 1rem;
  }

  .service_body_info > div {
      display: flex;
      flex-direction: column;
      align-items: center;
  }

  /* Выравнивание кнопок в карточках */
  .service_body_info .btn {
      width: 100%;
      margin: 0.5rem auto;
  }

  /* Специфичные стили для кнопок управления интернетом */
  #toggleInternetStatus {
      margin-bottom: 10px;
  }

  /* Выравнивание для финансового блока */
  .lk-service_finance {
      text-align: center;
  }

  .lk-service_header_finance {
      flex-direction: column;
      gap: 1rem;
  }

  .lk-service_finance_month {
      margin: 1rem 0 0 0;
      justify-content: center;
  }
}

/* Дополнительные стили для улучшения внешнего вида на всех устройствах */




/* Для десктопов сохраняем обычное выравнивание */
@media screen and (max-width: 769px) {
  .service_body_info {
      justify-content: flex-start;
      text-align: left;
  }

  .service_body_info {
    flex-grow: 1;
    display: flex;
    align-items: center;
  }

  .lk-service {
    display: flex;
    flex-direction: column;
  }
}

/* Улучшение для кнопок оплаты */
.payment-button {
  margin-top: 10px;
  text-align: center;
}

.service-title {
  text-align: left;
}


@media screen and (max-width: 769px) {  


    /* Выравнивание заголовков услуг */
  .service-title {
    text-align: center;
  }
}

/* blue header */

/* Стили для баннера */
.cabinet-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: white;
  padding: 12px 0;
  z-index: 10000;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.banner-content {
  max-width: 82rem;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1.5rem;
}

.banner-text {
  font-size: 14px;
  font-weight: 500;
}

.banner-link {
  color: white;
  text-decoration: underline;
  margin: 0 4px;
  font-weight: 600;
}

.banner-link:hover {
  color: #e0e7ff;
}

.banner-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.banner-button {
  background: white;
  color: #2563eb;
  border: none;
  padding: 6px 16px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.banner-button:hover {
  background: #f8fafc;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.banner-toggle {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: 6px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: white;
  transition: all 0.2s ease;
}

.banner-toggle:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

/* Состояние когда баннер скрыт */
.cabinet-banner.collapsed {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}

/* Адаптивность для мобильных */
@media screen and (max-width: 768px) {
  .banner-content {
      flex-direction: column;
      gap: 12px;
      text-align: center;
  }
  
  .banner-actions {
      width: 100%;
      justify-content: center;
  }
}


/* Стили для плашки старого личного кабинета */
.old-cabinet-banner {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #007bff;
  color: white;
  text-align: center;
  padding: 10px 0;
  z-index: 10000;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.banner-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.banner-link {
  color: white;
  text-decoration: underline;
  margin: 0 5px;
}

.banner-button {
  background: white;
  color: #007bff;
  border: none;
  padding: 5px 15px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
}

.banner-button:hover {
  background: #f8f9fa;
}

/* Сдвигаем основной хедер вниз на высоту плашки */
/* .lk-header {
  top: 48px !important; 
} */

/* Адаптивность для мобильных */
@media screen and (max-width: 768px) {
  .banner-content {
      flex-direction: column;
      gap: 5px;
  }
  
  .banner-content span {
      margin-bottom: 5px;
  }
  
  .lk-header {
      /* top: 79px !important; Увеличиваем отступ для мобильных, если плашка становится выше */
  }
}

/* header margin */

.main-content {
  padding-top: 90px; /* Высота плашки + высота хедера */
  min-height: calc(100vh - 140px); /* Чтобы футер не прилипал к верху */
}

/* Для мобильных устройств */
@media screen and (max-width: 768px) {
  .main-content {
      padding-top:160px; /* Меньший отступ для мобильных */
      min-height: calc(100vh - 160px);
  }
}

/* burger menu */

/* Стили для бургер-меню */
.burger-menu {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  cursor: pointer;
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10001;
}

.burger-menu span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: #34A234;
  border-radius: 3px;
  transition: all 0.3s ease;
}

/* Стили для мобильного меню */
.mobile-nav {
  position: fixed;
  top: 0;
  left: -100%;
  width: 80%;
  max-width: 300px;
  height: 100vh;
  background-color: #fff;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
  z-index: 10000;
  transition: left 0.3s ease;
  padding-top: 70px;
}

.mobile-nav.active {
  left: 0;
}

.mobile-nav-content {
  display: flex;
  flex-direction: column;
  padding: 20px;
}

.mobile-nav-item {
  display: flex;
  align-items: center;
  padding: 15px 10px;
  color: #333;
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid #f0f0f0;
  transition: background-color 0.2s;
}

.mobile-nav-item:hover {
  background-color: #E1EFE5;
  color: #34A234;
}

.mobile-nav-item svg {
  margin-right: 15px;
  width: 24px;
  height: 24px;
}

.mobile-unread-count {
  background: #E44335;
  color: white;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  margin-left: 10px;
}

/* Затемнение фона при открытом меню */
.mobile-nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.mobile-nav-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Адаптивность */
@media screen and (max-width: 768px) {
  .burger-menu {
      display: flex;
  }
  
  .nav-grid {
      display: none;
  }
  
  .lk-buttons {
      display: none;
  }
  

}

/* Анимация бургер-меню при активации */
.burger-menu.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.burger-menu.active span:nth-child(2) {
  opacity: 0;
}

.burger-menu.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* finance page */

/* Добавить в конец файла */
.finance-period-selector {
  margin: 20px 0;
  padding: 20px;
  background: #f9f9f9;
  border-radius: 10px;
}

.period-presets {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
  flex-wrap: wrap;
}

.period-preset {
  padding: 8px 16px;
  border: 1px solid #ddd;
  background: white;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.period-preset:hover,
.period-preset.active {
  background: #34a234;
  color: white;
  border-color: #34a234;
}

.custom-period {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}

.date-inputs {
  display: flex;
  align-items: center;
  gap: 10px;
}

.date-inputs span {
  font-weight: 500;
}

.finance-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
  margin-bottom: 25px;
  padding: 20px;
  background: #f9f9f9;
  border-radius: 10px;
}

.stat-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.stat-label {
  font-weight: 600;
  color: #5F6368;
}

.stat-value {
  font-weight: 700;
  font-size: 18px;
}

.loading {
  text-align: center;
  padding: 40px;
  color: #666;
  font-style: italic;
}

.error {
  text-align: center;
  padding: 40px;
  color: #E44335;
}

@media (max-width: 768px) {
  .custom-period {
      flex-direction: column;
      align-items: stretch;
  }
  
  .date-inputs {
      justify-content: space-between;
  }
  
  .finance-stats {
      grid-template-columns: 1fr;
  }
}

