/* ============================================================
   Mobile & Tablet Responsive Adjustments (max-width: 991.99px)
   Glassmorphic & Modern Dark Redesign
   ============================================================ */

@media (max-width: 991.99px) {

  /* --- Authorization Layout --- */
  .page_auth_left {
    display: none !important;
  }

  .page_auth_right {
    width: 100% !important;
    align-items: center;
    background: transparent !important;
    padding: 40px 15px !important;
  }

  .login_block {
    width: 100% !important;
    margin-left: 0 !important;
  }

  .page_authorization {
    display: flex;
    min-height: 100vh;
    justify-content: center;
  }

  /* --- Header & Navigation --- */
  .wapper .header {
    position: relative;
  }

  .wapper .header ul {
    display: none;
    float: left;
    height: 100%;
    list-style: none;
  }

  .wapper .header ul > li {
    display: block;
    float: left;
    margin: 0 17px;
  }

  .wapper .header ul > li > a {
    font-size: 20px;
    color: #707893;
    line-height: 53px;
    text-align: center;
    transition: color 0.2s ease;
  }

  .wapper .header ul > li > a:hover {
    color: #ffffff;
  }

  .wapper .header ul.user-menu {
    display: block;
    margin-top: 15px;
    float: right;
    right: 37px;
    height: 32px;
    position: relative;
  }

  .wapper .header ul.user-menu > li {
    margin: 0 8px;
  }

  .wapper .header ul.user-menu > li.collapsible {
    position: relative;
  }

  .wapper .header ul.user-menu > li.collapsible > a {
    width: 42px;
  }

  .wapper .header ul.user-menu > li.collapsible > a img {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: block;
    float: left;
    position: absolute;
    top: 2px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  }

  .wapper .header ul.user-menu > li.collapsible > a i {
    display: block;
    float: right;
    line-height: 30px;
    font-size: 10px;
  }

  /* User Menu Dropdown Panel */
  .wapper .header ul.user-menu > li > ul {
    z-index: 1013;
    display: none;
    position: absolute;
    right: calc(100% - 46px);
    background: rgba(18, 20, 29, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 310px;
    height: auto;
    list-style: none;
    top: 55px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    border-radius: 18px;
    overflow: hidden;
    padding: 8px;
  }

  .wapper .header ul.user-menu > li > ul > li {
    text-align: left;
    width: 100%;
    margin: 0;
  }

  .wapper .header ul.user-menu > li > ul > li > a {
    font-weight: 700;
    color: #aeb6d2;
    font-size: 12px;
    display: flex;
    align-items: center;
    border-radius: 10px;
    position: relative;
    height: 42px;
    margin: 0;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    transition: all 0.2s ease;
    padding: 0 12px;
    line-height: normal;
    left: 0;
  }

  .wapper .header ul.user-menu > li > ul > li > a:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
  }

  .header ul.user-menu > li > ul > li > a b {
    color: #aeb6d2;
    font-size: 9px;
    transition: all 0.2s ease;
    margin-left: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    padding: 2px 8px;
  }

  .header ul.user-menu > li > ul > li > a:hover b {
    color: #08150f;
    background: #4fea9f;
    box-shadow: 0 0 10px rgba(79, 234, 159, 0.4);
  }

  .header ul.user-menu > li > ul > li > a i {
    color: #707893;
    font-size: 16px;
    margin-right: 8px;
    transition: all 0.2s ease;
  }

  .header ul.user-menu > li > ul > li > a:hover i {
    color: #4fea9f;
  }

  /* Header Drawer Menu */
  .wapper .header-menu {
    position: absolute;
    top: 60px;
    border-radius: 18px;
    left: -12px;
    background: rgba(18, 20, 29, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    min-width: 290px;
    max-width: 290px;
    padding: 8px 14px;
    z-index: 1000;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
  }

  .wapper .header-menu .container {
    padding: 0;
    margin: 10px 0;
  }

  .wapper .header-menu .collapsible-menu {
    font-size: 14px;
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .wapper .header-menu .collapsible-menu > li {
    display: block;
    position: relative;
  }

  .wapper .header-menu .collapsible-menu > li.collapsible {
    padding-right: 0;
  }

  .wapper .header-menu .collapsible-menu > li.collapsible::before {
    font-family: 'Font Awesome 5 Pro';
    font-weight: 900;
    content: "\f078";
    position: absolute;
    right: 12px;
    top: 15px;
    z-index: 1010;
    background: rgba(255, 255, 255, 0.08);
    color: #aeb6d2;
    font-size: 8px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
  }

  .wapper .header-menu .collapsible-menu > li > a {
    height: 44px;
    display: flex;
    align-items: center;
    padding: 0 14px;
    margin: 2px 0;
    border-radius: 10px;
    font-weight: 700;
    color: #ffffff;
    font-size: 12.5px;
    transition: all 0.2s ease;
  }

  .wapper .header-menu .collapsible-menu > li > a.open,
  .wapper .header-menu .collapsible-menu > li > a:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
  }

  .wapper .header-menu .collapsible-menu > li ul {
    display: none;
    list-style: none;
    margin: 0;
    padding: 4px 0 4px 10px;
  }

  .wapper .header-menu .collapsible-menu > li ul > li > a {
    padding: 0 12px;
    font-weight: 600;
    color: #aeb6d2;
    font-size: 11.5px;
    display: flex;
    align-items: center;
    height: 38px;
    border-radius: 8px;
    transition: all 0.2s ease;
  }

  .wapper .header-menu .collapsible-menu > li ul > li:hover a {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
  }

  .collapsible_head {
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    display: flex;
    gap: 10px;
    margin: 10px;
    align-items: center;
    justify-content: space-between;
  }

  .collapsible_head .bxs-door-open {
    color: #ff6b60;
    transition: all 0.2s ease;
    background: rgba(255, 107, 96, 0.12);
    border: 1px solid rgba(255, 107, 96, 0.25);
    width: 36px;
    height: 36px;
    cursor: pointer;
    display: flex;
    font-size: 16px;
    border-radius: 10px;
    justify-content: center;
    align-items: center;
  }

  .collapsible_head .bxs-door-open:hover {
    color: #ffffff;
    background: #ff6b60;
    box-shadow: 0 0 12px rgba(255, 107, 96, 0.4);
  }

  /* --- Hidden / Display Toggles --- */
  .center_sub,
  .search_user,
  .pro,
  .language_btn,
  .bottom_water_info_left,
  .version,
  .nav_bottom_soc,
  .container-buttons-card,
  .activity_name,
  .version_fixed,
  .number_cTabs,
  .text_left_cTabs i,
  .online_now_head,
  .position_player,
  .play-servers,
  .slider_menu,
  .status_user_chat,
  .btns_blocked {
    display: none !important;
  }

  .button_menu_collapse {
    display: flex !important;
    font-weight: 700;
    transition: all 0.2s ease;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    cursor: pointer;
    color: #aeb6d2;
    font-size: 17px;
    align-items: center;
    margin-right: 5px;
    height: 40px;
    width: 40px;
    border-radius: 50%;
    justify-content: center;
  }

  .button_menu_collapse:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
  }

  .point_header {
    z-index: 1;
    display: block;
    width: 12px;
    height: 12px;
    border: 3px solid #12141d;
    border-radius: 50%;
    background: #4fea9f;
    box-shadow: 0 0 8px rgba(79, 234, 159, 0.8);
    top: 14px;
    position: absolute;
    right: -107px;
  }

  .no-privilegies-profile-text {
    position: relative;
    font-size: 11px !important;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    color: #707893;
    width: auto;
    left: 0 !important;
    top: 0 !important;
    margin-top: 8px;
  }

  .d-lg-inline-block {
    display: none !important;
    background: rgba(255, 107, 96, 0.08);
    border: 1px solid rgba(255, 107, 96, 0.25);
    border-radius: 12px;
    width: 100%;
    position: relative;
    top: 20px;
    padding: 10px 14px;
    font-size: 11px;
    color: #ff6b60;
    font-weight: 700;
  }

  /* --- Grid & Layout Resets --- */
  .shop_block_flex,
  .row_widget,
  .bottom_footer,
  .bottom_info,
  .flex_new_new,
  .flex_info_new,
  .referal_block_setting,
  .cTabs_block,
  .three_support,
  .black_list,
  .block_setting_top,
  .toper_mini_blocks,
  .banlist,
  .forum_shapka,
  .chat_block,
  .block_message_avalon,
  .admin_menu_block,
  .profile_block,
  .personal_card,
  .left_profile,
  .prof_r,
  .prof_l,
  .flex_contacts_btn,
  .flex-double,
  .referal_block,
  .new_table_privileges,
  .search_flex_users,
  .block_message,
  .right_user_top,
  .heading_block_user,
  .block_forum_item,
  .new_table_forum,
  .new_tr_forum_flex,
  .name_info_block_topic,
  .block_support,
  .div_edit_user,
  .block_select_servers_blocked,
  .block_stats_bans,
  .avatar_edit,
  .flex_edit_news,
  .flex_user_info,
  .news_flex,
  .discount_block {
    display: flex !direction-fix;
    flex-direction: column !important;
  }

  .left_events,
  .right_events,
  .left_block,
  .right_profile,
  .block_setting_left1,
  .block_setting_right1,
  .block_setting_left,
  .block_setting_right,
  .black_list_button,
  .toper_mini_right,
  .topic-answers div[id^="answer"] .left-side,
  .topic-answers div[id^="answer"] .right-side,
  .right-side_flex,
  .block_mes_avalon,
  .block_message_right,
  .edit_news_right,
  .block_search,
  .new_tr_forum,
  .block_support_left,
  .block_support_right,
  .edit_news_left,
  .left_blocked,
  .flex_user_avatar_edit,
  .left_news,
  .block_content_new {
    width: 100% !important;
  }

  /* --- Cards & Containers Styling --- */
  .news_block,
  .row_events {
    height: auto;
    display: flex;
    gap: 16px;
    padding: 18px;
    border-radius: 18px;
    background: rgba(18, 20, 29, 0.68);
    border: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 16px;
    flex-direction: column;
  }

  .right_events {
    padding: 16px;
    background-size: cover;
    border-radius: 14px;
  }

  .news-block-img,
  .news-block-imgg {
    height: 200px;
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 14px;
    object-fit: cover;
  }

  .cTabs_left_block {
    background: rgba(18, 20, 29, 0.68);
    border: 1px solid rgba(255, 255, 255, 0.08);
    width: 100%;
    height: auto;
    min-height: 260px;
    padding: 16px;
    border-radius: 18px;
    display: flex;
    flex-wrap: wrap;
    align-content: space-between;
    justify-content: flex-end;
  }

  .text_left_cTabs {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    margin: 0;
    width: 100%;
    padding: 16px;
    font-weight: 700;
    font-size: 11px;
    color: #aeb6d2;
  }

  .cf {
    background: rgba(18, 20, 29, 0.68);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 20px;
    width: 100%;
  }

  .support_cTabs {
    width: 40px;
    height: 40px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    font-size: 17px;
    color: #707893;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .support_cTabs:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
  }

  /* --- Support Banners --- */
  .vk_support {
    background: linear-gradient(135deg, #0077ff 0%, #0055c4 100%);
    border-radius: 14px;
    width: 100%;
    height: 56px;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 6px 20px rgba(0, 119, 255, 0.3);
  }

  .ticket_support {
    background: linear-gradient(135deg, #22b877 0%, #178253 100%);
    border-radius: 14px;
    width: 100%;
    height: 56px;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 6px 20px rgba(34, 184, 119, 0.3);
  }

  .send_support {
    width: 110px;
    transition: all 0.2s ease;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    display: flex;
    gap: 6px;
    height: 36px;
    font-size: 11px;
    cursor: pointer;
    border-radius: 10px;
    font-weight: 800;
    align-items: center;
    justify-content: center;
    color: #ffffff;
  }

  .send_support:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
  }

  /* --- Navigation & List Components --- */
  .vertical-navigation {
    flex-direction: column;
    margin-bottom: 0;
    width: 100%;
  }

  .vertical-navigation li {
    width: 100%;
  }

  .vertical-navigation li a {
    border-radius: 12px !important;
    justify-content: flex-start !important;
    gap: 8px;
    display: flex;
    flex-direction: row;
    padding: 12px 14px;
  }

  .tabs__buttons--container {
    display: flex;
    margin-bottom: 12px;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 8px;
  }

  .tabs__buttons--container::-webkit-scrollbar {
    height: 3px;
  }

  .tabs__buttons--container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
  }

  /* --- Profile & Friends --- */
  .profile_block {
    margin-bottom: 24px;
    border-radius: 20px;
    display: flex;
    gap: 16px;
    flex-direction: column;
  }

  .left_profile {
    border-radius: 20px;
    padding: 20px;
    background-size: cover;
    display: flex;
    gap: 18px;
    flex-direction: column;
    justify-content: space-between;
  }

  .profile-settingss {
    color: #ffffff;
    font-weight: 800;
    height: 42px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    width: 100%;
    padding: 0 20px;
    font-size: 11px;
    display: flex;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
    cursor: pointer;
    align-items: center;
    justify-content: center;
  }

  .profile-settingss:hover {
    background: rgba(255, 255, 255, 0.12);
  }

  #friends {
    display: flex;
    margin-top: 10px;
    overflow-x: auto;
    gap: 8px;
  }

  #friends::-webkit-scrollbar {
    display: none;
  }

  /* --- Tables & Adaptive Lists --- */
  table.table.table-bordered tr {
    position: relative;
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    padding: 12px 16px;
    height: auto;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    flex-direction: column;
    align-items: flex-start;
  }

  .table-adaptive .table-row > .row > div.with-description > p {
    line-height: 1.5;
    font-size: 12px;
    margin: 10px 0 0;
    position: relative;
    top: 0;
    border: none;
    background: transparent;
    color: #ffffff !important;
    font-weight: 600;
    overflow-wrap: anywhere;
  }

  /* --- Form Inputs & Selects --- */
  .custom-file label {
    width: 100%;
    height: 48px;
    display: flex;
    position: absolute;
    top: 0; right: 0; left: 0;
    cursor: pointer;
    z-index: 2;
    transition: all 0.2s ease;
    color: #aeb6d2;
    font-size: 11px;
    font-weight: 700;
    background-color: rgba(0, 0, 0, 0.25);
    border-radius: 12px;
    border: 1px dashed rgba(255, 255, 255, 0.15) !important;
    padding: 0 14px;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  .custom-input.with-title > span {
    z-index: 3;
    font-size: 9.5px;
    line-height: 10px;
    position: absolute;
    transform: translateY(0);
    transition: all 0.2s ease;
    height: 15px;
    top: 18px;
    font-weight: 700;
    left: 16px;
    color: #707893;
  }

  .custom-input.with-title > input:not(:placeholder-shown) + span,
  .custom-file .custom-input.with-title > label:not(:placeholder-shown) + span,
  .custom-input.with-title > input:focus + span,
  .custom-file .custom-input.with-title > label:focus + span {
    font-size: 9px;
    top: 14px;
    transform: translateY(-10px);
  }

  .custom-select > select,
  .storeselect {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 100% !important;
  }

  /* --- Chat Area --- */
  #chat #chat_messages,
  #chat #messages {
    overflow-y: auto;
    width: 100%;
    height: 280px !important;
    margin-left: 0;
  }

  .chat {
    width: 100% !important;
    padding: 15px !important;
    background: transparent !important;
    margin-bottom: 0 !important;
  }

  /* --- Modern Settings Grid --- */
  .settings-modern-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .navigation-setting.with-icons.settings-modern-tabs li a {
    height: 52px;
    padding: 8px 12px;
    border-radius: 12px;
  }

  .settings-modern-tabs .flex_tab_settings {
    font-size: 11px;
    font-weight: 700;
  }

  .settings-modern-tabs .flex_tab_settings i {
    width: 28px;
    min-width: 28px;
    height: 28px;
    font-size: 14px;
  }

  .settings-modern-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .settings-modern-card {
    padding: 16px !important;
    border-radius: 18px;
  }

  .settings-modern .img_edit_settings {
    width: 88px;
    height: 88px;
    border-radius: 20px;
  }

}