/* ============================================================
   CHAT FILTER SYSTEM v5.2 (PLAYABLE DARK THEME)
   ============================================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    padding: 0;
    margin: 0;
}

body {
    background: #0a0a0c;
    max-width: 600px;
    margin: 0 auto;
    word-wrap: break-word;
    font-family: 'Segoe UI', 'Revie', Arial, sans-serif;
    font-size: 15px;
    color: #a0a0a0;
    min-height: 100vh;
}

/* ============================================================
   HEADER STYLES
   ============================================================ */

.head {
    background: #0d0d0f;
    border-bottom: 1px solid #1a1a1e;
    position: relative;
}

.panel_head {
    position: relative;
    float: right;
    color: #7a7a7a;
    padding: 10px 12px;
    font-size: 13px;
}

.location_head {
    padding: 10px 12px;
    font-weight: bold;
    color: #8a8a8a;
    font-size: 16px;
}

/* ============================================================
   EXP BAR
   ============================================================ */

.exp_bar {
    background: #0d0d0f;
    border-bottom: 1px solid #1a1a1e;
    height: 2px;
    overflow: hidden;
}

.exp_bar .progress {
    background: #2a5a2a;
    width: 0;
    height: 2px;
}

/* ============================================================
   LINES (тонкие линии во всю ширину)
   ============================================================ */

.line_1 {
    height: 1px;
    background: #1a1a1e;
    margin: 2px 0;
}

.line_1_v {
    height: 1px;
    background: #1a1a1e;
    margin: 1px 0;
}

.line_1_m {
    height: 1px;
    background: #1a1a1e;
    margin: 2px 0;
}

.line_2 {
    height: 1px;
    background: #1a1a1e;
    margin: 2px 0;
}

.line_3 {
    height: 1px;
    background: #1a1a1e;
}

.line_4 {
    height: 1px;
    background: #0d0d0f;
}

.line_foot {
    height: 1px;
    background: #1a1a1e;
    margin: 5px 0;
}

.line_pys {
    height: 2px;
    background: #1a1a1e;
    margin: 4px 0;
}

.line_notif {
    border-bottom: 1px solid #1a1a1e;
}

.mini-line {
    border-bottom: 1px solid #1a1a1e;
    margin: 2px 0;
}

/* ============================================================
   MAIN CONTAINERS
   ============================================================ */

.page {
    background: #0a0a0c;
    padding: 4px 0;
}

.body_list {
    background: #0a0a0c;
}

.body_info {
    background: #0a0a0c;
    padding: 6px;
}

.body_sel {
    display: inline-block;
    background: #121215;
    padding: 5px 10px;
    margin: 2px;
    border-radius: 4px;
    border: 1px solid #1a1a1e;
    color: #a0a0a0;
    transition: all 0.2s;
}

.body_sel:hover {
    border-color: #2a2a2e;
}

/* ============================================================
   MENU LIST (UL стиль - СЛЕВА)
   ============================================================ */

.menulist {
    list-style: none;
    margin: 0;
    padding: 0;
}

.menulist li {
    list-style: none;
    margin: 0;
    padding: 0;
}

.menulist li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    color: #8a8a8a;
    text-decoration: none;
    transition: all 0.2s ease;
    text-align: left;
}

.menulist li a:hover {
    background: #121215;
    color: #b0b0b0;
}

.menu-item-l {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: flex-start;
}

.menu-item-l i {
    width: 22px;
    font-size: 16px;
    color: #6a6a6a;
}

.menu-badge {
    background: #121215;
    color: #7a7a7a;
    font-size: 10px;
    padding: 2px 10px;
    border-radius: 12px;
    font-weight: normal;
    white-space: nowrap;
}

.menu-badge.badge-active {
    background: #1a1a1e;
    color: #9a9a9a;
}

.menu-badge.badge-ok {
    background: #1a1a1e;
    color: #8a8a8a;
}

/* ============================================================
   LINKS
   ============================================================ */

a {
    color: #7a7a7a;
    text-decoration: none;
    transition: all 0.2s;
}

a:hover {
    color: #9a9a9a;
    cursor: pointer;
}

/* ============================================================
   FORMS
   ============================================================ */

.input_form, select {
    width: 95%;
    max-width: 600px;
    border-radius: 4px;
    border: 1px solid #1a1a1e;
    background: #121215;
    color: #d0d0d0;
    margin: 5px 0;
    padding: 8px 12px;
    font-size: 14px;
    outline: none;
}

.input_form:focus, select:focus {
    border-color: #2a2a2e;
}

::placeholder {
    text-align: center;
    color: #4a4a4a;
}

/* ============================================================
   BUTTONS
   ============================================================ */

.button_red_a, .button_red_i,
.button_green_a, .button_green_i,
.button_i_mini {
    display: block;
    background: #121215;
    padding: 8px 12px;
    margin: 4px;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    color: #a0a0a0;
    font-weight: normal;
    border: 1px solid #1a1a1e;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.button_red_a:hover, .button_red_i:hover {
    background: #1a1415;
    border-color: #3a2a2a;
    color: #c0a0a0;
}

.button_green_a:hover, .button_green_i:hover {
    background: #141a15;
    border-color: #2a3a2a;
    color: #a0c0a0;
}

.button_red_a:active, .button_red_i:active,
.button_green_a:active, .button_green_i:active {
    transform: translateY(1px);
}

.button_i_mini {
    width: 50%;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================================
   IMAGES
   ============================================================ */

.img {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    border-radius: 4px;
}

.img_users {
    border-radius: 4px;
    background: #121215;
    padding: 2px;
}

.avatar_container {
    position: relative;
    display: inline-block;
}

.avatar_bg {
    border-radius: 4px;
    box-shadow: none;
}

/* ============================================================
   TEXT STYLES
   ============================================================ */

.text_logo {
    display: block;
    max-width: 600px;
    height: auto;
    margin: 0 auto;
    padding: 8px;
}

.text_padd {
    color: #d0d0d0;
    padding-left: 10px;
}

.info_list {
    color: #8a7a5a;
    font-size: 13px;
}

.svg_list, .svg_list_m {
    padding: 8px 12px;
    color: #7a7a7a;
}

.svg_list i, .svg_list_m i {
    margin-right: 8px;
    color: #6a6a6a;
}

/* ============================================================
   PROFILE MENU
   ============================================================ */

.menulitl {
    list-style: none;
    padding: 0;
}

.menulitl li {
    list-style: none;
}

.menulitl li a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    color: #8a8a8a;
    text-decoration: none;
    transition: all 0.2s;
    text-align: left;
}

.menulitl li a:hover {
    background: #121215;
    color: #a0a0a0;
}

.menulitl_img {
    border-radius: 4px;
    background: #121215;
    padding: 2px;
    border: 1px solid #1a1a1e;
}

.menulitl_block {
    position: relative;
    min-height: 33px;
    padding-left: 45px;
    margin-top: -37px;
    color: #a0a0a0;
}

.menubig_block {
    position: relative;
    min-height: 55px;
    padding-left: 65px;
    margin-top: -57px;
    color: #a0a0a0;
}

.menulitl_name {
    font-weight: bold;
    color: #9a9a9a;
}

.menulitl_param {
    font-size: 12px;
    color: #7a7a7a;
}

/* ============================================================
   FOOTER
   ============================================================ */

.foot {
    padding: 12px 5px;
    margin-bottom: 5px;
    color: #5a5a5a;
    text-align: center;
    font-size: 11px;
    border-top: 1px solid #1a1a1e;
}

.foot a {
    color: #6a6a6a;
}

.foot a:hover {
    color: #8a8a8a;
}

.color_foot {
    color: #8a7a5a;
}

/* ============================================================
   USER INFO BLOCKS
   ============================================================ */

.user_foot {
    min-height: 50px;
    padding: 6px;
    color: #8a8a8a;
    text-align: left;
}

.user_nick {
    font-weight: bold;
    color: #9a9a9a;
}

.user_foot_p {
    position: relative;
    padding-left: 55px;
    margin-top: -54px;
}

.user_info {
    background: #0a0a0c;
    padding: 10px 12px;
    color: #9a9a9a;
    line-height: 1.6;
    border-radius: 0;
    margin: 2px 0;
}

.user_info i {
    width: 22px;
    color: #7a7a7a;
}

/* ============================================================
   EVENT & NOTIFICATION
   ============================================================ */

.event {
    text-align: center;
    padding: 8px;
    color: #c09050;
    background: rgba(192, 144, 80, 0.05);
}

.error {
    background: rgba(180, 60, 60, 0.08);
    color: #c08080;
    text-align: center;
    padding: 8px;
}

.ok {
    background: rgba(60, 120, 60, 0.08);
    color: #80c080;
    text-align: center;
    padding: 8px;
}

.notif {
    background: #0d0d0f;
    padding: 8px 12px;
    color: #a09070;
    margin: 4px 0;
}

.error_list {
    background: #0a0a0c;
    padding: 8px;
    text-align: center;
    color: #9a9a9a;
}

.not_exit {
    position: relative;
    float: right;
    opacity: 0.4;
}

.not_exit:hover {
    opacity: 0.7;
}

/* ============================================================
   WEAPON & ITEMS
   ============================================================ */

.weapon {
    display: block;
    min-height: 52px;
}

.weapon_setting {
    padding-left: 65px;
    color: #d0d0d0;
}

.weapon_param {
    color: #c0b090;
    word-wrap: break-word;
    font-size: 13px;
}

.weapon_0, .weapon_1, .weapon_2, .weapon_3, .weapon_4, .weapon_5, .weapon_6 {
    border-radius: 4px;
}

.weapon_0 { border: 1px solid #2a5a2a; }
.weapon_1 { border: 1px solid #5a5a5a; }
.weapon_2 { border: 1px solid #2a6a2a; }
.weapon_3 { border: 1px solid #8a7a2a; }
.weapon_4 { border: 1px solid #2a4a8a; }
.weapon_5 { border: 1px solid #6a2a8a; }
.weapon_6 { border: 1px solid #8a2a2a; }

/* ============================================================
   POTIONS
   ============================================================ */

.potions {
    display: block;
}

.potions_name {
    padding-left: 60px;
    color: #d0d0d0;
    padding-top: 6px;
    font-size: 15px;
}

.potions_param {
    color: #a0a0a0;
    word-wrap: break-word;
    font-size: 13px;
}

/* ============================================================
   BATTLE STYLES
   ============================================================ */

.block_hunting {
    display: block;
    padding: 8px;
}

.hunting_name {
    text-align: center;
    padding: 6px;
    font-weight: normal;
}

.img_hunting {
    display: block;
    margin: 0 auto;
    padding: 6px;
    border-radius: 4px;
}

.img_m_battle {
    position: relative;
    padding: 4px;
    border-radius: 4px;
}

.img_h_battle {
    border-radius: 4px;
    background: #121215;
    padding: 2px;
    margin: 4px;
}

.block_monsters {
    position: absolute;
    padding-left: 65px;
    margin-top: -60px;
    color: #a0a0a0;
}

.name_monsters {
    font-weight: bold;
    color: #9a9a9a;
}

.param_monsters {
    font-size: 11px;
    color: #7a7a7a;
    margin-top: 2px;
}

.hp_bar_monster, .hp_bar_users {
    border-radius: 2px;
    border: 1px solid #1a1a1e;
    background: #121215;
    margin: 6px 8px 6px 60px;
    height: 8px;
    overflow: hidden;
}

.hp_bar_monster .health2, .hp_bar_users .health2 {
    background: #2a5a2a;
    height: 8px;
}

.hp_bar_monster .health2 .health,
.hp_bar_users .health2 .health {
    background: #8a2a2a;
    height: 8px;
}

/* ============================================================
   PROFILE AVATAR & WEAPONS
   ============================================================ */

.block_img {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 8px;
    flex-wrap: wrap;
}

.left_weapon, .right_weapon {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.left_weapon img, .right_weapon img {
    width: 45px;
    height: 45px;
    object-fit: contain;
    background: #0a0a0c;
    border-radius: 4px;
}

.status {
    font-size: 13px;
    color: #9a9a9a;
    padding: 8px;
    background: #0a0a0c;
    margin: 4px;
    text-align: center;
}

/* ============================================================
   NAVIGATION
   ============================================================ */

.page_navi {
    margin: 0 2px;
    display: inline-block;
    border: 1px solid #1a1a1e;
    color: #9a9a9a;
    padding: 5px 10px;
    border-radius: 4px;
}

.page_navi:hover {
    border-color: #2a2a2e;
    color: #b0b0b0;
}

.navigation {
    padding: 10px 0;
    font-size: 13px;
    text-align: center;
}

#page_a {
    margin: 0 2px;
    color: #8a8a8a;
    border: 1px solid #1a1a1e;
    padding: 5px 10px;
    border-radius: 4px;
    text-decoration: none;
}

#page_a:hover {
    color: #a0a0a0;
    border-color: #2a2a2e;
    background: #121215;
}

/* ============================================================
   SMILE PANEL
   ============================================================ */

.smiles {
    margin: 4px;
    transition: opacity 0.2s;
    border-radius: 4px;
}

.smiles:hover {
    opacity: 0.7;
    cursor: pointer;
}

#panel_smiles, #panel_forum, #panel {
    display: none;
    background: #0d0d0f;
    padding: 8px;
    border-radius: 4px;
    margin: 6px 0;
    border: 1px solid #1a1a1e;
}

#panel_smiles.enabled, #panel_forum.enabled, #panel.enabled {
    display: block;
}

.smiles_button, .update_button, .smiles_button_t {
    opacity: 0.5;
    transition: opacity 0.2s;
}

.smiles_button:hover, .update_button:hover, .smiles_button_t:hover {
    opacity: 0.8;
    cursor: pointer;
}

.update_button {
    position: relative;
    float: right;
    margin-top: -28px;
    margin-right: 35px;
}

.arrow {
    position: relative;
    float: right;
    margin-top: -23px;
    padding-right: 10px;
}

/* ============================================================
   BATTLE RESULTS
   ============================================================ */

.pobeda {
    font-size: 16px;
    color: #5a9a5a;
    font-weight: bold;
    padding: 10px;
    text-align: center;
}

.porashenie {
    font-size: 16px;
    color: #9a5a5a;
    font-weight: bold;
    padding: 10px;
    text-align: center;
}

/* ============================================================
   RATING STARS
   ============================================================ */

.rat {
    display: inline-block;
    width: 75px;
    height: 13px;
    background: #1a1a1e;
    border-radius: 2px;
    overflow: hidden;
}

.rating_plus {
    display: inline-block;
    width: 15px;
    height: 13px;
    background: #8a7a4a;
}

.star0 { display: none; }
.star1 { width: 7px; }
.star2 { width: 15px; }
.star3 { width: 22px; }
.star4 { width: 30px; }
.star5 { width: 37px; }
.star6 { width: 45px; }
.star7 { width: 52px; }
.star8 { width: 60px; }
.star9 { width: 67px; }
.star10 { width: 75px; }

/* ============================================================
   CURRENCY WRAPPER
   ============================================================ */

.currency_wrapper_left {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    justify-content: flex-start;
}

.currency_item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #121215;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 11px;
    color: #d0d0d0;
    border: 1px solid #1a1a1e;
}

.curr_label {
    font-size: 9px;
    color: #6a6a6a;
    margin-left: 2px;
}

/* ============================================================
   BOTTOM MENU ICONS
   ============================================================ */

.menu_icon {
    font-size: 24px;
    color: #7a7a7a;
}

.menu_link_home:hover .menu_icon,
.menu_link_hero:hover .menu_icon,
.menu_link_bag:hover .menu_icon {
    color: #9a9a9a;
}

/* ============================================================
   BATTLE BUTTONS
   ============================================================ */

.attack-button-container {
    display: inline-block;
    margin: 0 15px;
    text-align: center;
}

.special-button-wrapper {
    position: relative;
    display: inline-block;
}

.special-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(10, 10, 12, 0.9);
    border-radius: 4px;
    opacity: 0;
    transition: opacity 0.3s;
}

.special-button-wrapper:hover .special-overlay {
    opacity: 1;
}

.special-text {
    color: #b09060;
    font-size: 10px;
    font-weight: normal;
}

.special-count {
    color: #b06060;
    font-size: 13px;
    font-weight: bold;
    margin-top: 2px;
}

.cooldown-timer {
    text-align: center;
    color: #b07070;
    font-size: 10px;
    margin-top: 4px;
}

/* ============================================================
   COLORS
   ============================================================ */

.whit { color: #e0e0e0; }
.gray { color: #8a8a8a; }
.red { color: #b07070; }
.yellow { color: #b0a070; }
.orange { color: #b08860; }
.blue { color: #70a0b0; }
.green { color: #70b070; }
.purple { color: #a070b0; }
.white { color: #a0a0a0; }

/* ============================================================
   PROFILE BACKGROUND
   ============================================================ */

.profile_bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.05;
    z-index: 0;
    pointer-events: none;
}

/* ============================================================
   MAIL & MISC
   ============================================================ */

#otv {
    color: #5a5a5a;
    font-size: 12px;
}

.mail {
    width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #8a8a8a;
}

.gift:hover {
    opacity: 0.6;
    cursor: pointer;
}

.save {
    color: #8a6a9a;
    text-decoration: none;
    border-bottom: 1px solid #8a6a9a;
}

.save:hover {
    color: #a08ab0;
    border-bottom-color: #a08ab0;
}

.weapon_button {
    display: block;
}

.img_weapon {
    position: absolute;
    padding-left: 5px;
    padding-top: 3px;
}

.img_height {
    min-height: 60px;
    position: relative;
}

.weapon_height {
    min-height: 60px;
    position: relative;
    padding-left: 65px;
    color: #d0d0d0;
}

.t_max {
    min-height: 60px;
}

.t_img {
    position: absolute;
    padding-left: 8px;
    padding-top: 4px;
}

.t_name {
    display: block;
    position: relative;
    padding-top: 3px;
    padding-left: 65px;
    color: #a0a0a0;
}

.t_param {
    color: #8a8a8a;
    word-wrap: break-word;
    font-size: 12px;
}

/* ============================================================
   SCROLLBAR STYLES
   ============================================================ */

::-webkit-scrollbar {
    width: 3px;
    background: #0d0d0f;
}

::-webkit-scrollbar-track {
    background: #0a0a0c;
}

::-webkit-scrollbar-thumb {
    background: #2a2a2e;
    border-radius: 2px;
}

::-webkit-scrollbar-thumb:hover {
    background: #3a3a3e;
}

/* ============================================================
   MEDIA QUERIES
   ============================================================ */

@media (max-width: 550px) {
    body {
        font-size: 14px;
    }
    
    .menu_icon {
        font-size: 20px;
    }
    
    .menulist li a {
        padding: 8px 10px;
    }
    
    .currency_item {
        font-size: 10px;
        padding: 2px 8px;
    }
    
    .left_weapon img, .right_weapon img {
        width: 38px;
        height: 38px;
    }
    
    .block_img .img_users {
        width: 90px;
        height: auto;
    }
    
    .location_head {
        font-size: 14px;
    }
    
    .panel_head {
        font-size: 11px;
        padding: 8px;
    }
    
    .attack-button-container {
        margin: 0 8px;
    }
}

@media (max-width: 400px) {
    .currency_wrapper_left {
        gap: 4px;
    }
    
    .currency_item {
        font-size: 9px;
        padding: 2px 6px;
    }
    
    .menu-item-l i {
        width: 18px;
        font-size: 13px;
    }
    
    .menu-badge {
        font-size: 8px;
        padding: 2px 6px;
    }
}