/* HadiDev — WhatsApp light/dark (html[data-mode="light|dark"])
   Varsayılan: dark (mevcut Whatsapp temasına yakın)
*/

/* ========== DARK (WhatsApp Web dark) ========== */
html, html[data-mode="dark"] {
  color-scheme: dark;
}

html[data-mode="dark"] a,
html:not([data-mode]) a { color: orange; }

html[data-mode="dark"] body,
html:not([data-mode]) body { background: #0b141a; color: #e9edef; }

html[data-mode="dark"] button,
html:not([data-mode]) button { background: transparent; color: #fff; }

html[data-mode="dark"] input,
html[data-mode="dark"] textarea,
html[data-mode="dark"] .post_input_container,
html:not([data-mode]) input,
html:not([data-mode]) textarea,
html:not([data-mode]) .post_input_container {
  background: #202c33; border: 1px solid #2c3941 !important; color: #e9edef;
}

html[data-mode="dark"] .setdef,
html:not([data-mode]) .setdef { color: #fff; }

html[data-mode="dark"] .cookie_wrap,
html:not([data-mode]) .cookie_wrap { background: #444d53; color: #fff; }

html[data-mode="dark"] .bback,
html:not([data-mode]) .bback { background: rgba(255,255,255,0.05); }
html[data-mode="dark"] .bbackb,
html:not([data-mode]) .bbackb { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08); }
html[data-mode="dark"] .bhover:hover,
html:not([data-mode]) .bhover:hover { background: rgba(255,255,255,0.05); }
html[data-mode="dark"] .bbackhover,
html:not([data-mode]) .bbackhover { background: rgba(255,255,255,0.05); }
html[data-mode="dark"] .bbackhover:hover,
html:not([data-mode]) .bbackhover:hover { background: rgba(255,255,255,0.03); }
html[data-mode="dark"] .bbackhoverb,
html:not([data-mode]) .bbackhoverb { background: rgba(255,255,255,0.05); }
html[data-mode="dark"] .bbackhoverb:hover,
html:not([data-mode]) .bbackhoverb:hover { background: rgba(255,255,255,0.3); border: 1px solid rgba(255,255,255,0.05); }
html[data-mode="dark"] .blisting,
html:not([data-mode]) .blisting { border-bottom: 1px solid rgba(255,255,255,0.03); }
html[data-mode="dark"] .blisting:hover,
html:not([data-mode]) .blisting:hover { background: rgba(255,255,255,0.04); }
html[data-mode="dark"] .blist,
html:not([data-mode]) .blist { border-bottom: 1px solid rgba(255,255,255,0.03); }

html[data-mode="dark"] .back_ptop,
html:not([data-mode]) .back_ptop { background: #26343d; color: #fff; }
html[data-mode="dark"] .bpmenu:hover,
html:not([data-mode]) .bpmenu:hover { background: rgba(255,255,255,0.05); }
html[data-mode="dark"] .bsub,
html:not([data-mode]) .bsub { background: rgba(0,0,0,0.1); }
html[data-mode="dark"] .bsub:hover,
html:not([data-mode]) .bsub:hover { background: rgba(255,255,255,0.03); }
html[data-mode="dark"] .bmenu,
html[data-mode="dark"] .submenu,
html:not([data-mode]) .bmenu,
html:not([data-mode]) .submenu { border-bottom: 1px solid rgba(255,255,255,0.03); }
html[data-mode="dark"] .bmenu:hover,
html[data-mode="dark"] .submenu:hover,
html:not([data-mode]) .bmenu:hover,
html:not([data-mode]) .submenu:hover { background: rgba(255,255,255,0.03); }

html[data-mode="dark"] .bshadow,
html[data-mode="dark"] .page_element,
html[data-mode="dark"] .float_menu,
html[data-mode="dark"] .btnshadow,
html[data-mode="dark"] .pboxed,
html:not([data-mode]) .bshadow,
html:not([data-mode]) .page_element,
html:not([data-mode]) .float_menu,
html:not([data-mode]) .btnshadow,
html:not([data-mode]) .pboxed { box-shadow: 0 1px 3px rgba(0,0,0,0.4); }

html[data-mode="dark"] .bselected,
html:not([data-mode]) .bselected { background: rgba(255,255,255,0.08); }
html[data-mode="dark"] .rselected,
html:not([data-mode]) .rselected { background: rgba(255,255,255,0.08); }
html[data-mode="dark"] .pselected,
html:not([data-mode]) .pselected { color: #00a884; }
html[data-mode="dark"] .cselected,
html[data-mode="dark"] .liked,
html:not([data-mode]) .cselected,
html:not([data-mode]) .liked { background: rgba(255,255,255,0.05); }
html[data-mode="dark"] .pag_btn,
html:not([data-mode]) .pag_btn { background: rgba(255,255,255,0.05); }
html[data-mode="dark"] .pagselected,
html[data-mode="dark"] .pag_btn:hover,
html:not([data-mode]) .pagselected,
html:not([data-mode]) .pag_btn:hover { background: rgba(255,255,255,0.1); }
html[data-mode="dark"] .gtag,
html:not([data-mode]) .gtag { background: #202c33; border: 1px solid rgba(255,255,255,0.05); }

html[data-mode="dark"] .bborder,
html:not([data-mode]) .bborder { border-bottom: 1px solid rgba(255,255,255,0.05); }
html[data-mode="dark"] .tborder,
html:not([data-mode]) .tborder { border-top: 1px solid rgba(255,255,255,0.05); }
html[data-mode="dark"] .lborder,
html[data-mode="dark"] .ppanel,
html:not([data-mode]) .lborder,
html:not([data-mode]) .ppanel { border-left: 1px solid rgba(255,255,255,0.05); }
html[data-mode="dark"] .rborder,
html:not([data-mode]) .rborder { border-right: 1px solid rgba(255,255,255,0.05); }
html[data-mode="dark"] .fborder,
html:not([data-mode]) .fborder { border: 1px solid rgba(255,255,255,0.05); }
html[data-mode="dark"] .float_top,
html[data-mode="dark"] .float_ctop,
html:not([data-mode]) .float_top,
html:not([data-mode]) .float_ctop { border-bottom: 1px solid rgba(255,255,255,0.05); }

html[data-mode="dark"] .bhead,
html:not([data-mode]) .bhead { background: #202c33; color: #fff; }
html[data-mode="dark"] .bsidebar,
html:not([data-mode]) .bsidebar { background: #111b21; color: #fff; }
html[data-mode="dark"] .modal_top,
html[data-mode="dark"] .pro_top,
html[data-mode="dark"] .bfoot,
html[data-mode="dark"] .foot,
html:not([data-mode]) .modal_top,
html:not([data-mode]) .pro_top,
html:not([data-mode]) .bfoot,
html:not([data-mode]) .foot { background: #202c33; color: #fff; }

html[data-mode="dark"] .backglob,
html:not([data-mode]) .backglob { background: #111b21; }
html[data-mode="dark"] .back_chat,
html:not([data-mode]) .back_chat {
  background-color: #0b141a;
  background-image: url('./images/chat_bg_dark.jpg');
  background-repeat: repeat;
  background-position: center top;
}
html[data-mode="dark"] .back_priv,
html:not([data-mode]) .back_priv {
  background-color: #0b141a;
  background-image: url('./images/chat_bg_dark.jpg');
  background-repeat: repeat;
  background-position: center top;
}
html[data-mode="dark"] .back_panel,
html:not([data-mode]) .back_panel { background: #111b21; }
html[data-mode="dark"] .back_menu,
html:not([data-mode]) .back_menu { background: #233138; }
html[data-mode="dark"] .back_pmenu,
html:not([data-mode]) .back_pmenu { background: #111b21; }
html[data-mode="dark"] .back_box,
html:not([data-mode]) .back_box { background: #162228; }
html[data-mode="dark"] .back_input,
html:not([data-mode]) .back_input { background: #202c33; border-top: unset; }
html[data-mode="dark"] .back_modal,
html[data-mode="dark"] .page_element,
html[data-mode="dark"] .back_quote,
html:not([data-mode]) .back_modal,
html:not([data-mode]) .page_element,
html:not([data-mode]) .back_quote { background: #202c33; }

html[data-mode="dark"] .theme_color,
html:not([data-mode]) .theme_color { color: #00a884; }
html[data-mode="dark"] .default_color,
html:not([data-mode]) .default_color { color: #aebac1; }
html[data-mode="dark"] .error,
html:not([data-mode]) .error { color: #cd5161; }
html[data-mode="dark"] .success,
html:not([data-mode]) .success { color: #25d366; }
html[data-mode="dark"] .warn,
html:not([data-mode]) .warn { color: orange; }

html[data-mode="dark"] .theme_btn,
html[data-mode="dark"] .back_theme,
html:not([data-mode]) .theme_btn,
html:not([data-mode]) .back_theme { background: #00a884; color: #0e2e2e; }
html[data-mode="dark"] .default_btn,
html:not([data-mode]) .default_btn { color: #00a884; border: 1px solid rgba(255,255,255,0.08); background: transparent; }
html[data-mode="dark"] .defaultd_btn,
html:not([data-mode]) .defaultd_btn { background: #444; color: #fff; }
html[data-mode="dark"] .ok_btn,
html:not([data-mode]) .ok_btn { background: #00a884; color: #0e2e2e; }
html[data-mode="dark"] .warn_btn,
html:not([data-mode]) .warn_btn { background: orange; color: #fff; }
html[data-mode="dark"] .delete_btn,
html:not([data-mode]) .delete_btn { background: #cd5161; color: #fff; }
html[data-mode="dark"] .send_btn,
html:not([data-mode]) .send_btn { color: #f6f6f6; }

html[data-mode="dark"] .user,
html:not([data-mode]) .user { color: #fff; }
html[data-mode="dark"] .chat_system,
html:not([data-mode]) .chat_system { color: rgb(134, 150, 160); }
html[data-mode="dark"] .offline,
html:not([data-mode]) .offline { opacity: 0.5; }
html[data-mode="dark"] .menui,
html[data-mode="dark"] .subi,
html:not([data-mode]) .menui,
html:not([data-mode]) .subi { color: #00a884; }
html[data-mode="dark"] .reply_item,
html:not([data-mode]) .reply_item { background: #16232b; }
html[data-mode="dark"] .main_post_item,
html:not([data-mode]) .main_post_item { color: rgba(255,255,255,0.5); }
html[data-mode="dark"] .input_item,
html:not([data-mode]) .input_item { color: #aebac1; }

/* balonlar — dark: gelen açık gri, giden su yeşili koyu */
html[data-mode="dark"] .ch_blogs .mbubble,
html:not([data-mode]) .ch_blogs .mbubble { background: #202c33; color: #e9edef; }
html[data-mode="dark"] .ch_blogs.log_mine .mbubble,
html:not([data-mode]) .ch_blogs.log_mine .mbubble { background: #202c33; color: #e9edef; }

html[data-mode="dark"] .hunter_private,
html[data-mode="dark"] .targ_quote,
html:not([data-mode]) .hunter_private,
html:not([data-mode]) .targ_quote { color: #fff; background: #2c3941; }
html[data-mode="dark"] .target_private,
html[data-mode="dark"] .hunt_quote,
html:not([data-mode]) .target_private,
html:not([data-mode]) .hunt_quote { color: #111b21; background: #d9fdd3; }
html[data-mode="dark"] .cquote,
html:not([data-mode]) .cquote { background: #1d282f !important; border-left: 4px solid #53bde4; }
html[data-mode="dark"] .topic_log,
html:not([data-mode]) .topic_log { background: rgba(0,168,132,0.102); color: #d9f2e6; }

html[data-mode="dark"] .tab_menu,
html:not([data-mode]) .tab_menu { box-shadow: 0 1px 3px rgba(0,0,0,0.4); background: #242e35; }
html[data-mode="dark"] .tab_selected,
html:not([data-mode]) .tab_selected { background: rgba(255,255,255,0.05); }
html[data-mode="dark"] .modal_mback,
html:not([data-mode]) .modal_mback { background: rgba(255,255,255,0.04); }
html[data-mode="dark"] .modal_mborder,
html:not([data-mode]) .modal_mborder { border-bottom: 1px solid rgba(255,255,255,0.08); }
html[data-mode="dark"] .modal_selected,
html:not([data-mode]) .modal_selected { background: rgba(255,255,255,0.08); }
html[data-mode="dark"] .modal_back,
html:not([data-mode]) .modal_back { background-color: rgba(0,0,0,0.6); }
html[data-mode="dark"] .bprogress,
html:not([data-mode]) .bprogress { background: #009588; color: #fff; }
html[data-mode="dark"] .bnotify,
html:not([data-mode]) .bnotify { background: #009588; color: #fff; }
html[data-mode="dark"] .foot_notify,
html[data-mode="dark"] .head_notify,
html:not([data-mode]) .foot_notify,
html:not([data-mode]) .head_notify { border: 1px solid #fff; }
html[data-mode="dark"] .sub_date,
html:not([data-mode]) .sub_date { color: rgb(107,128,143); }
html[data-mode="dark"] .sub_chat,
html[data-mode="dark"] .sub_priv,
html:not([data-mode]) .sub_chat,
html:not([data-mode]) .sub_priv { color: #8696a0; }
html[data-mode="dark"] .sub_text,
html[data-mode="dark"] .list_mood,
html:not([data-mode]) .sub_text,
html:not([data-mode]) .list_mood { color: rgb(107,128,143); }
html[data-mode="dark"] .plikes,
html:not([data-mode]) .plikes { background-color: rgba(100,100,100,0.2); color: #fff; }
html[data-mode="dark"] .bspin,
html:not([data-mode]) .bspin { color: rgba(255,255,255,0.3); }
html[data-mode="dark"] .my_notice,
html:not([data-mode]) .my_notice { color: #53bde4; background: unset; }
html[data-mode="dark"] .system_text,
html:not([data-mode]) .system_text { background: rgba(255,255,255,0.05); color: rgb(107,128,143); }
html[data-mode="dark"] .back_page,
html:not([data-mode]) .back_page { background: #202c33; color: #fff; }
html[data-mode="dark"] .post_video,
html:not([data-mode]) .post_video { background: #000; }
html[data-mode="dark"] .modal_in,
html:not([data-mode]) .modal_in { border: 1px solid rgba(255,255,255,0.01); }
html[data-mode="dark"] ul li.ch_dlogs:nth-child(odd of .ch_logs),
html:not([data-mode]) ul li.ch_dlogs:nth-child(odd of .ch_logs) { background: rgba(32, 44, 51, 0.3); }
html[data-mode="dark"] .head_option,
html[data-mode="dark"] .panel_option,
html[data-mode="dark"] .footer_item,
html:not([data-mode]) .head_option,
html:not([data-mode]) .panel_option,
html:not([data-mode]) .footer_item { color: #aebac1; }

html[data-mode="dark"] .boom_slider .ui-widget-content,
html:not([data-mode]) .boom_slider .ui-widget-content { background: #444d53; }
html[data-mode="dark"] .boom_slider .ui-state-default,
html:not([data-mode]) .boom_slider .ui-state-default { background: #8195a1 !important; }
html[data-mode="dark"] .boom_slider .ui-state-active,
html:not([data-mode]) .boom_slider .ui-state-active { background: #aebac1 !important; }
html[data-mode="dark"] .boom_slider .ui-slider-range,
html:not([data-mode]) .boom_slider .ui-slider-range { background: #aebac1; }
html[data-mode="dark"] .selectboxit-list,
html[data-mode="dark"] .selectboxit-btn,
html:not([data-mode]) .selectboxit-list,
html:not([data-mode]) .selectboxit-btn { background-color: #202c33; border: 1px solid #2c3941; color: #fff; }
html[data-mode="dark"] .selectboxit-options,
html:not([data-mode]) .selectboxit-options { background: #2c3941; color: #fff; }


/* ========== LIGHT (WhatsApp Web light) ========== */
html[data-mode="light"] { color-scheme: light; }

html[data-mode="light"] a { color: #027a5a; }
html[data-mode="light"] body { background: #f0f2f5; color: #111b21; }
html[data-mode="light"] button { background: transparent; color: #111b21; }
html[data-mode="light"] input,
html[data-mode="light"] textarea,
html[data-mode="light"] .post_input_container {
  background: #fff; border: 1px solid #e9edef !important; color: #111b21;
}
html[data-mode="light"] .setdef { color: #111b21; }
html[data-mode="light"] .cookie_wrap { background: #fff; color: #111b21; box-shadow: 0 1px 3px rgba(11,20,26,0.12); }

html[data-mode="light"] .bback { background: rgba(11,20,26,0.05); }
html[data-mode="light"] .bbackb { background: rgba(11,20,26,0.05); border: 1px solid rgba(11,20,26,0.08); }
html[data-mode="light"] .bhover:hover { background: rgba(11,20,26,0.05); }
html[data-mode="light"] .bbackhover { background: rgba(11,20,26,0.04); }
html[data-mode="light"] .bbackhover:hover { background: rgba(11,20,26,0.07); }
html[data-mode="light"] .bbackhoverb { background: rgba(11,20,26,0.04); }
html[data-mode="light"] .bbackhoverb:hover { background: rgba(11,20,26,0.08); border: 1px solid rgba(11,20,26,0.06); }
html[data-mode="light"] .blisting { border-bottom: 1px solid #e9edef; }
html[data-mode="light"] .blisting:hover { background: #f5f6f6; }
html[data-mode="light"] .blist { border-bottom: 1px solid #e9edef; }

html[data-mode="light"] .back_ptop { background: #008069; color: #fff; }
html[data-mode="light"] .bpmenu:hover { background: rgba(11,20,26,0.05); }
html[data-mode="light"] .bsub { background: #f0f2f5; }
html[data-mode="light"] .bsub:hover { background: #e9edef; }
html[data-mode="light"] .bmenu,
html[data-mode="light"] .submenu { border-bottom: 1px solid #e9edef; }
html[data-mode="light"] .bmenu:hover,
html[data-mode="light"] .submenu:hover { background: #f5f6f6; }

html[data-mode="light"] .bshadow,
html[data-mode="light"] .page_element,
html[data-mode="light"] .float_menu,
html[data-mode="light"] .btnshadow,
html[data-mode="light"] .pboxed { box-shadow: 0 1px 3px rgba(11,20,26,0.12); }

html[data-mode="light"] .bselected { background: #f0f2f5; }
html[data-mode="light"] .rselected { background: #e7f8f2; }
html[data-mode="light"] .pselected { color: #008069; }
html[data-mode="light"] .cselected,
html[data-mode="light"] .liked { background: #f0f2f5; }
html[data-mode="light"] .pag_btn { background: #f0f2f5; color: #54656f; }
html[data-mode="light"] .pagselected,
html[data-mode="light"] .pag_btn:hover { background: #e9edef; }
html[data-mode="light"] .gtag { background: #fff; border: 1px solid #e9edef; }

html[data-mode="light"] .bborder { border-bottom: 1px solid #e9edef; }
html[data-mode="light"] .tborder { border-top: 1px solid #e9edef; }
html[data-mode="light"] .lborder,
html[data-mode="light"] .ppanel { border-left: 1px solid #e9edef; }
html[data-mode="light"] .rborder { border-right: 1px solid #e9edef; }
html[data-mode="light"] .fborder { border: 1px solid #e9edef; }
html[data-mode="light"] .float_top,
html[data-mode="light"] .float_ctop { border-bottom: 1px solid #e9edef; }

html[data-mode="light"] .bhead {
  background: #ffffff;
  color: #54656f;
  border-bottom: 1px solid #e9edef;
}
html[data-mode="light"] .bsidebar { background: #fff; color: #111b21; }
html[data-mode="light"] .modal_top,
html[data-mode="light"] .pro_top { background: #008069; color: #fff; }
html[data-mode="light"] .bfoot,
html[data-mode="light"] .foot { background: #f0f2f5; color: #54656f; }

html[data-mode="light"] .backglob { background: #f0f2f5; }
html[data-mode="light"] .back_chat {
  background-color: #efeae2;
  background-image: url('./images/chat_bg_light.jpg');
  background-repeat: repeat;
  background-position: center top;
}
html[data-mode="light"] .back_priv {
  background-color: #efeae2;
  background-image: url('./images/chat_bg_light.jpg');
  background-repeat: repeat;
  background-position: center top;
}
html[data-mode="light"] .back_panel { background: #fff; }
html[data-mode="light"] .back_menu { background: #fff; }
html[data-mode="light"] .back_pmenu { background: #fff; }
html[data-mode="light"] .back_box { background: #fff; }
html[data-mode="light"] .back_input { background: #f0f2f5; border-top: 1px solid #e9edef; }
html[data-mode="light"] .back_modal,
html[data-mode="light"] .page_element,
html[data-mode="light"] .back_quote { background: #fff; }

html[data-mode="light"] .theme_color { color: #008069; }
html[data-mode="light"] .default_color { color: #54656f; }
html[data-mode="light"] .error { color: #ea0038; }
html[data-mode="light"] .success { color: #25d366; }
html[data-mode="light"] .warn { color: #e67e22; }

html[data-mode="light"] .theme_btn,
html[data-mode="light"] .back_theme { background: #008069; color: #fff; }
html[data-mode="light"] .default_btn,
html[data-mode="light"] .back_default { background: #fff; color: #008069; border: 1px solid #d1d7db; }
html[data-mode="light"] .defaultd_btn { background: #e9edef; color: #111b21; }
html[data-mode="light"] .ok_btn { background: #25d366; color: #fff; }
html[data-mode="light"] .warn_btn { background: #e67e22; color: #fff; }
html[data-mode="light"] .delete_btn { background: #ea0038; color: #fff; }
html[data-mode="light"] .send_btn { color: #54656f; }

html[data-mode="light"] .user { color: #111b21; }
html[data-mode="light"] .chat_system { color: #667781; }
html[data-mode="light"] .offline { opacity: 0.5; }
html[data-mode="light"] .menui,
html[data-mode="light"] .subi { color: #008069; }
html[data-mode="light"] .reply_item { background: #f0f2f5; }
html[data-mode="light"] .main_post_item { color: rgba(17,27,33,0.45); }
html[data-mode="light"] .input_item { color: #54656f; }

/* balonlar — light (WA: gelen #fff, giden #d9fdd3) */
html[data-mode="light"] .ch_blogs .mbubble { background: #ffffff; color: #111b21; box-shadow: 0 1px 0.5px rgba(11,20,26,0.13); }
html[data-mode="light"] .ch_blogs.log_mine .mbubble { background: #ffffff; color: #111b21; box-shadow: 0 1px 0.5px rgba(11,20,26,0.13); }
html[data-mode="light"] .target_private,
html[data-mode="light"] .hunt_quote { color: #111b21; background: #d9fdd3; }
html[data-mode="light"] .hunter_private,
html[data-mode="light"] .targ_quote { color: #111b21; background: #fff; box-shadow: 0 1px 0.5px rgba(11,20,26,0.13); }
html[data-mode="light"] .cquote { background: #f0f2f5 !important; border-left: 4px solid #53bdeb; color: #111b21; }
html[data-mode="light"] .topic_log { background: #fff; color: #54656f; box-shadow: 0 1px 1px rgba(11,20,26,0.08); }

html[data-mode="light"] .tab_menu { box-shadow: 0 1px 3px rgba(11,20,26,0.12); background: #fff; }
html[data-mode="light"] .tab_selected { background: #f0f2f5; }
html[data-mode="light"] .modal_mback { background: #f0f2f5; }
html[data-mode="light"] .modal_mborder { border-bottom: 1px solid #e9edef; }
html[data-mode="light"] .modal_selected { background: #e7f8f2; }
html[data-mode="light"] .modal_back { background-color: rgba(11,20,26,0.45); }
html[data-mode="light"] .bprogress { background: #00a884; color: #fff; }
html[data-mode="light"] .bnotify { background: #25d366; color: #fff; }
html[data-mode="light"] .foot_notify,
html[data-mode="light"] .head_notify { border: 1px solid #fff; }
html[data-mode="light"] .sub_date { color: #667781; }
html[data-mode="light"] .sub_chat,
html[data-mode="light"] .sub_priv { color: #667781; }
html[data-mode="light"] .sub_text,
html[data-mode="light"] .list_mood { color: #667781; }
html[data-mode="light"] .plikes { background-color: rgba(11,20,26,0.06); color: #111b21; }
html[data-mode="light"] .bspin { color: rgba(17,27,33,0.3); }
html[data-mode="light"] .my_notice { color: #027eb5; background: unset; }
html[data-mode="light"] .system_text { background: rgba(11,20,26,0.05); color: #667781; }
html[data-mode="light"] .back_page { background: #f0f2f5; color: #111b21; }
html[data-mode="light"] .post_video { background: #000; }
html[data-mode="light"] .modal_in { border: 1px solid #e9edef; }
html[data-mode="light"] ul li.ch_dlogs:nth-child(odd of .ch_logs) { background: rgba(11,20,26,0.04); }
html[data-mode="light"] .head_option,
html[data-mode="light"] .panel_option,
html[data-mode="light"] .footer_item { color: inherit; }
html[data-mode="light"] .bhead .head_option,
html[data-mode="light"] .bhead .panel_option,
html[data-mode="light"] .bhead .chat_head_logo,
html[data-mode="light"] #chat_head .head_option { color: #54656f; }
html[data-mode="light"] .bhead .head_notify { border: 1px solid #ffffff; }

html[data-mode="light"] .boom_slider .ui-widget-content { background: #e9edef; }
html[data-mode="light"] .boom_slider .ui-state-default { background: #8696a0 !important; }
html[data-mode="light"] .boom_slider .ui-state-active { background: #54656f !important; }
html[data-mode="light"] .boom_slider .ui-slider-range { background: #00a884; }
html[data-mode="light"] .selectboxit-list,
html[data-mode="light"] .selectboxit-btn { background-color: #fff; border: 1px solid #d1d7db; color: #111b21; }
html[data-mode="light"] .selectboxit-options { background: #fff; color: #111b21; }

/* ========== WhatsApp-style bubble layout ========== */
/* Sohbet: avatar + balon sola yaklaşsın */
#show_chat,
#chat_logs_container {
  padding-left: 4px !important;
}
.ch_logs.ch_blogs {
  padding-left: 4px !important;
  padding-right: 8px !important;
}
.ch_blogs .my_text {
  padding-left: 4px !important;
}
.ch_blogs .cavatar.chat_avatar,
.ch_blogs .chat_avatar {
  margin-right: 0;
}

.ch_blogs .my_text > .btable .cdate { display: none; }

/* Balon: mesaj kadar — satırı doldurma */
.ch_blogs .chat_message {
  display: block !important;
  width: max-content !important;
  max-width: 100% !important;
  align-items: unset !important;
  justify-content: unset !important;
}

.ch_blogs .mbubble.bubble {
  position: relative !important;
  display: inline-block !important;
  width: max-content !important;
  max-width: var(--hd-bubble-max, 320px) !important;
  min-width: 0 !important;
  padding: var(--hd-bubble-pad-y, 5px) var(--hd-bubble-pad-x, 10px) 16px var(--hd-bubble-pad-x, 10px) !important;
  box-sizing: border-box !important;
  vertical-align: top;
  white-space: normal !important;
}

.ch_blogs .mbubble .bubble_head {
  display: flex;
  align-items: center;
  gap: 6px;
  width: max-content;
  max-width: calc(var(--hd-bubble-max, 320px) - 20px);
  margin: 0 0 2px 0;
  box-sizing: border-box;
}
.ch_blogs .mbubble .bubble_head .cname {
  display: inline !important;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ch_blogs .mbubble .bubble_head .logs_menu {
  display: inline-flex !important;
  margin-left: 6px;
  width: auto !important;
  opacity: 0.5;
  cursor: pointer;
  flex: none;
}

.ch_blogs .mbubble .bubble_msg {
  display: block;
  width: max-content;
  max-width: calc(var(--hd-bubble-max, 320px) - 20px);
  padding-right: 2.75em;
  box-sizing: border-box;
  text-align: left;
  white-space: pre-wrap;
  word-wrap: break-word;
  overflow-wrap: anywhere;
}

/* Alıntı: balon içinde, kullanıcı adının altında */
.ch_blogs .mbubble .cquote,
.ch_blogs .mbubble .tp_in_quote {
  display: block;
  width: 100%;
  max-width: calc(var(--hd-bubble-max, 320px) - 20px);
  margin: 2px 0 6px;
  padding: 6px 8px;
  border-radius: 6px;
  border-left: 3px solid #53bdeb;
  box-sizing: border-box;
  background: rgba(0,0,0,.12);
}
html[data-mode="light"] .ch_blogs .mbubble .cquote,
html[data-mode="light"] .ch_blogs .mbubble .tp_in_quote {
  background: #f0f2f5;
}
.ch_blogs .mbubble .cqname,
.ch_blogs .mbubble .tp_in_quote_user {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 2px;
  color: #53bdeb;
}
.ch_blogs .mbubble .cqmess,
.ch_blogs .mbubble .tp_in_quote_msg {
  font-size: 12px;
  line-height: 1.3;
  opacity: .9;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  white-space: normal;
}
.ch_blogs .log_content > .cqbox { display: none; }

/* Input üstü alıntı çubuğu (WA tarzı) */
#quote_controller.qwraper {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
  width: auto;
  max-width: none;
  margin: 0;
  border-radius: 10px;
  overflow: hidden;
  z-index: 20;
}
#quote_controller .qcontrol {
  display: flex;
  align-items: center;
  gap: 8px;
  height: auto;
  min-height: 46px;
  padding: 8px 10px;
  box-sizing: border-box;
}
#quote_controller .qavatarwrap { display: none; }
#quote_controller .qusername_wrap {
  flex: 1;
  min-width: 0;
  display: block;
  padding: 0 4px 0 10px;
  border-left: 3px solid #53bdeb;
  white-space: normal;
}
#quote_controller .qusername {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  color: #53bdeb;
}
#quote_controller .qmess_preview {
  margin: 2px 0 0;
  font-size: 12px;
  line-height: 1.3;
  opacity: .85;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#quote_controller .qcancel {
  flex: none;
  width: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: .7;
}

.ch_blogs.log_stack .mbubble .bubble_head { display: none !important; }

.hunter_private,
.target_private {
  position: relative !important;
  display: inline-block !important;
  width: max-content !important;
  max-width: var(--hd-bubble-max, 320px) !important;
  padding: 5px 10px 16px 10px !important;
  box-sizing: border-box !important;
}
.hunter_private .bubble_msg,
.target_private .bubble_msg {
  display: block;
  width: max-content;
  max-width: 300px;
  padding-right: 2.75em;
  box-sizing: border-box;
}

.mbubble .bubble_time,
.hunter_private .bubble_time,
.target_private .bubble_time,
.mbubble .cdate.bubble_time,
.hunter_private .prdate.bubble_time,
.target_private .prdate.bubble_time {
  position: absolute !important;
  right: 8px;
  bottom: 4px;
  left: auto;
  top: auto;
  display: inline-block !important;
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
  font-size: 11px !important;
  line-height: 1;
  text-align: right;
  white-space: nowrap;
  opacity: 0.75;
}

html[data-mode="dark"] .mbubble .bubble_time,
html:not([data-mode]) .mbubble .bubble_time,
html[data-mode="dark"] .hunter_private .bubble_time,
html:not([data-mode]) .hunter_private .bubble_time,
html[data-mode="dark"] .target_private .bubble_time,
html:not([data-mode]) .target_private .bubble_time { color: #8696a0; }

html[data-mode="light"] .mbubble .bubble_time,
html[data-mode="light"] .hunter_private .bubble_time,
html[data-mode="light"] .target_private .bubble_time { color: #667781; }

/* private dış tarih satırı artık balon içinde */
.priwrap > .prdate { display: none; }

/* ardışık mesaj: sadece 2.+ satırda avatar+isim gizle; aralık dar */
.ch_blogs.log_stack { margin-top: var(--hd-stack-gap, 0px) !important; margin-bottom: 0 !important; padding-top: 0 !important; }
.ch_blogs:not(.log_stack) { margin-top: var(--hd-msg-gap, 3px); }
.ch_blogs.log_stack .chat_avatar {
	visibility: hidden;
	pointer-events: none;
}
.ch_blogs.log_stack .log_head,
.ch_blogs.log_stack .bubble_head { display: none !important; }
.ch_blogs.log_stack .chat_message { padding-top: 0 !important; margin-top: 0 !important; }
.ch_blogs.log_stack .chat_message.tpad5 { padding-top: 0 !important; }
.ch_blogs.log_stack .mbubble { margin-top: 0 !important; }
.ch_blogs.log_mine .chat_avatar { visibility: visible; }
.ch_blogs.log_mine.log_stack .chat_avatar { visibility: hidden; }

/* oda bilgi / sistem log — avatarsız sola yaslı bilgi balonu */
.sys_log {
	display: flex !important;
	justify-content: flex-start;
	padding: 6px 12px 6px 4px !important;
	width: 100%;
	box-sizing: border-box;
}
.sys_log .chat_savatar { display: none !important; }
.sys_info_bubble {
	position: relative;
	display: inline-block;
	max-width: 92%;
	padding: 6px 48px 16px 12px;
	border-radius: 8px;
	font-size: 13px;
	line-height: 1.35;
	text-align: left;
}
html[data-mode="light"] .sys_info_bubble {
	background: #ffffff;
	color: #54656f;
	box-shadow: 0 1px 0.5px rgba(11,20,26,0.13);
}
html[data-mode="dark"] .sys_info_bubble,
html:not([data-mode]) .sys_info_bubble {
	background: #182229;
	color: #8696a0;
}
.sys_info_bubble .bubble_time {
	position: absolute;
	right: 8px;
	bottom: 4px;
	font-size: 11px;
	opacity: 0.75;
}

/* input sağ aksiyonlar: + ataş radyo gönder */
#input_radio_btn { cursor: pointer; }
#main_input #ok_sub_item,
#main_input #upchat,
#main_input #input_radio_btn { order: 0; }

/* Mesaj input: alan biraz küçük, gönder yuvarlak dolgu */
#main_input,
#private_input {
  height: 46px;
}
#main_input #main_input_box,
#private_input .td_input {
  vertical-align: middle;
}
#main_input #content,
#private_input #message_content {
  height: 36px;
  font-size: 15px;
  padding: 0 14px;
  box-sizing: border-box;
}
#main_input #inputt_right,
#private_input #message_send {
  width: 46px;
  vertical-align: middle;
}
#main_input #submit_button.send_btn,
#private_send.send_btn {
  width: 40px !important;
  height: 40px !important;
  max-height: 40px !important;
  border-radius: 50% !important;
  background: #00a884 !important;
  color: #ffffff !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  font-size: 15px !important;
  line-height: 1;
  box-shadow: none !important;
  float: none !important;
  margin: 0 auto;
  cursor: pointer;
}
#main_input #submit_button.send_btn:hover,
#private_send.send_btn:hover {
  background: #06cf9c !important;
}
html[data-mode="light"] #main_input #submit_button.send_btn,
html[data-mode="light"] #private_send.send_btn {
  background: #00a884 !important;
  color: #ffffff !important;
}
html[data-mode="light"] #main_input #submit_button.send_btn:hover,
html[data-mode="light"] #private_send.send_btn:hover {
  background: #06cf9c !important;
}

/* Üst header sağ ikonlar: aralık + 2px daha büyük */
#chat_head .head_option {
  width: 48px;
  font-size: 18px;
}
#chat_head #main_mob_menu {
  width: 56px;
  padding: 0 8px 0 6px;
  vertical-align: middle;
}
#chat_head #main_mob_menu .avatar_menu {
  width: 36px;
  height: 36px;
}

/* Aydınlık / karanlık toggle (hadidev_mode addon) */
#chat_head #hd_mode_toggle.hd_mode_toggle,
#chat_head #hd_mode_toggle {
  width: 48px;
  font-size: 18px;
  cursor: pointer;
}
#chat_head #hd_mode_toggle .bcell_mid {
  text-align: center;
}
html[data-mode="light"] #chat_head #hd_mode_toggle {
  color: #54656f;
}

/* Oda medya: Görüntüle → balon içi thumbnail → lightbox (sadece kapat) */
.hd_media {
  display: block;
  margin: 4px 0 2px;
  max-width: 220px;
}
.hd_media_view {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 120px;
  padding: 8px 14px;
  border: 1px solid rgba(134, 150, 160, 0.55);
  border-radius: 8px;
  background: transparent;
  color: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  box-sizing: border-box;
}
.hd_media_view:hover {
  border-color: #00a884;
  color: #00a884;
}
.hd_media.is_open .hd_media_view { display: none; }
.hd_media_preview {
  display: none;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
}
.hd_media.is_open .hd_media_preview { display: flex; }
.hd_media_thumb {
  display: block;
  width: 100%;
  max-width: 220px;
  max-height: 160px;
  object-fit: cover;
  border-radius: 8px;
  cursor: zoom-in;
  border: 1px solid rgba(134, 150, 160, 0.35);
  box-sizing: border-box;
}
.hd_media_close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  min-width: 88px;
  padding: 6px 12px;
  border: 1px solid rgba(134, 150, 160, 0.55);
  border-radius: 8px;
  background: transparent;
  color: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.hd_media_close:hover {
  border-color: #e35d6a;
  color: #e35d6a;
}
html[data-mode="light"] .hd_media_view,
html[data-mode="light"] .hd_media_close {
  border-color: rgba(17, 27, 33, 0.18);
}

/* —— HadiDev UI: footer / PM küçültme gizle —— */
#wrap_footer,
#my_menu {
  display: none !important;
  height: 0 !important;
  min-height: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
}
#dpriv,
#priv_minimize,
#mstream,
#mstream_call,
#mstream_audio {
  display: none !important;
}

/* —— Mobil sağ çentikler —— */
.hd_side_notches {
  display: none;
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 180;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}
.hd_notch {
  pointer-events: auto;
  width: 40px;
  height: 44px;
  margin: 0;
  padding: 0 10px 0 8px;
  border: 0;
  border-radius: 12px 0 0 12px;
  background: #202c33;
  color: #aebac1;
  box-shadow: -2px 2px 10px rgba(0,0,0,.28);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}
html[data-mode="light"] .hd_notch {
  background: #ffffff;
  color: #54656f;
  box-shadow: -2px 2px 10px rgba(11,20,26,.12);
}
.hd_notch:active { opacity: .85; }

@media screen and (max-width: 768px) {
  .hd_side_notches { display: flex; }
}

/* —— Ayarlar alt sheet —— */
.hd_mobile_sheet {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100060;
}
.hd_mobile_sheet.is_open { display: block; }
.hd_sheet_backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.45);
}
.hd_sheet_panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: min(72vh, 560px);
  border-radius: 16px 16px 0 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: hdSheetUp .22s ease-out;
}
@keyframes hdSheetUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}
.hd_sheet_head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(128,128,128,.2);
  flex-shrink: 0;
}
.hd_sheet_title { font-weight: 700; font-size: 15px; }
.hd_sheet_close {
  border: 0;
  background: transparent;
  color: inherit;
  width: 36px;
  height: 36px;
  cursor: pointer;
  font-size: 16px;
  opacity: .75;
}
.hd_sheet_list {
  overflow: auto;
  padding: 6px 0 20px;
  -webkit-overflow-scrolling: touch;
}
.hd_sheet_item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 16px;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  box-sizing: border-box;
}
.hd_sheet_item:hover,
.hd_sheet_item:active { background: rgba(0,168,132,.1); }
.hd_sheet_ico {
  width: 28px;
  text-align: center;
  color: #00a884;
  flex-shrink: 0;
}
.hd_sheet_ico .menui { color: #00a884; }
.hd_sheet_txt { flex: 1; font-size: 14px; }
.hd_sheet_empty { padding: 16px; margin: 0; text-align: center; }

/* —— WA stilinde balon içi ses player —— */
.ch_blogs .boomaudio.chat_audio { display: none !important; }
.hd_voice_player {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 180px;
  max-width: 240px;
  margin: 4px 0 2px;
  padding: 4px 0;
}
.hd_voice_play {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: #00a884;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 13px;
  padding: 0;
}
.hd_voice_play.is_playing { background: #06cf9c; }
.hd_voice_wave {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: rgba(134,150,160,.35);
  overflow: hidden;
  position: relative;
}
.hd_voice_bar {
  height: 100%;
  width: 0%;
  background: #00a884;
  border-radius: 2px;
}
.hd_voice_time {
  font-size: 11px;
  opacity: .75;
  min-width: 32px;
  text-align: right;
  flex-shrink: 0;
}
html[data-mode="light"] .hd_voice_wave { background: rgba(17,27,33,.12); }

