/* Gece Mavim: independent palette. Chat rows remain light, panels stay dark. */
html[data-theme-key="gecemavim"] {
 --gm-base:#061923; --gm-panel:#0d3851; --gm-raised:#103e59;
 --gm-text:#e1f4fb; --gm-edge:#2a6483;
 --theme-primary:#39a5d5; --theme-primary-rgb:57,165,213;
 --theme-hover:#b7e9ff; --theme-dark:#0d3851; --theme-darker:#061923;
 --theme-gradient:linear-gradient(120deg,#0d3851,#155979);
 --theme-border:#2a6483; --theme-glow:rgba(57,165,213,.25);
}
html[data-theme-key="gecemavim"] body {background:#061923;color:#e1f4fb;}
html[data-theme-key="gecemavim"] :is(#chat_head,#main_header,#header2,#chat_left,#chat_left_menu,#chat_right,#chat_right_content,#chat_right_data,#container_user,#usersnames,#main_footer,#wrap_footer .chat_footer,#menu_container,#container_input,#right_panel_bar,#soz_id,.y6-header,.y6-radio-ribbon,.y6-radio-player-bar){
 background:linear-gradient(110deg,#103e59,#0a293b) !important;color:#e1f4fb !important;border-color:#2a6483 !important;
}
html[data-theme-key="gecemavim"] :is(.left_profile_card,.left_drop_item,.left_item,.left_item_icon,#usersnames .user_item,#usersnames .user_item_custom,#usersnames .player-wrap,.panel_block_title,.panel_option,.y6-user-slide-card,.y6-game-card,.y6-team-card,.y6-recent-users-section,.y6-toplist-section,.y6-dj-section){
 background:linear-gradient(130deg,#103e59,#0a293b) !important;border-color:#2a6483 !important;color:#e1f4fb !important;box-shadow:0 3px 12px #0005 !important;
}
html[data-theme-key="gecemavim"] :is(.left_item_text,.left_drop_text,.left_section_title,.left_profile_name,.left_profile_role,.left_item_icon i,#usersnames .user_name,.panel_block_title,.y6-showcase-title h3){color:#d3edf7 !important;text-shadow:none !important;}
html[data-theme-key="gecemavim"] :is(.theme_btn,.default_btn,.reg_button,.y6-play-btn,.y6-dj-nav-btn,#submit_button,#chat_font_controls button){background:linear-gradient(120deg,#10354e,#155d80) !important;color:#d3edf7 !important;border-color:#24516b !important;}
html[data-theme-key="gecemavim"] :is(.modal_content,.modal_in,.page_element,.premium_setting_group,#main_input .input_table){background:#102534 !important;color:#d3edf7 !important;border-color:#24516b !important;}
html[data-theme-key="gecemavim"] :is(input,textarea,select){background-color:#0b202e;color:#d3edf7;border-color:#24516b;}
html[data-theme-key="gecemavim"] .y6-login-portal{background:radial-gradient(ellipse at top,#10354e,#071722 65%) !important;--bg-dark:#071722;--bg-card:#102534;--text-primary:#d3edf7;}
html[data-theme-key="gecemavim"] :is(#chat_center,#warp_show_chat,#container_show_chat){background:transparent !important;color:#111 !important;}
/* Higher specificity than the editorial row rules, including own/even rows. */
html[data-theme-key="gecemavim"] body #show_chat#show_chat > li.ch_logs,
html[data-theme-key="gecemavim"] body #show_chat#show_chat > li.other_logs {
 background:#f9f9ff !important;border:0 !important;border-bottom:1px solid #dedff0 !important;
 border-radius:10px !important;box-shadow:none !important;color:#111 !important;
 margin:0 !important;padding:7px 8px !important;box-sizing:border-box !important;
}
html[data-theme-key="gecemavim"] body #show_chat#show_chat > li.ch_logs:nth-child(even),
html[data-theme-key="gecemavim"] body #show_chat#show_chat > li.other_logs:nth-child(even){background:#e8e8f5 !important;}
html[data-theme-key="gecemavim"] body #show_chat#show_chat > li.topic_log{background:#bcbff7 !important;}
html[data-theme-key="gecemavim"] body #show_chat#show_chat > li :is(.chat_avatar,.my_text,.msktable,.modern_message_card,.classic_message_balloon,.btable){
 background:transparent !important;border:0 !important;box-shadow:none !important;color:inherit;
}
html[data-theme-key="gecemavim"] body #show_chat#show_chat > li .modern_message_card::before{display:none !important;}
html[data-theme-key="gecemavim"] body #show_chat#show_chat :is(.modern_message_meta,.chatops,.cdate){color:#111 !important;}
html[data-theme-key="gecemavim"] body #show_chat#show_chat .chat_message{color:inherit;}
html[data-theme-key="gecemavim"] body #show_chat#show_chat .cavatar{border-color:#3449a8 !important;}
html[data-theme-key="gecemavim"] #main_input #content{background:transparent !important;color:#d3edf7 !important;}
html[data-theme-key="gecemavim"] #main_input #content::placeholder{color:#a9bfcd;}

/* Final palette values sampled from the supplied dark navy reference. */
html[data-theme-key="gecemavim"] :is(.theme_color,.theme_txt,.theme_text,.user_name,.normal_nick,.left_profile_name){color:#e1f4fb !important;}
html[data-theme-key="gecemavim"] .y6-login-portal{background:radial-gradient(ellipse at top,#103e59,#061923 65%) !important;--bg-dark:#061923;--bg-card:#0a293b;--text-primary:#e1f4fb;}

/* Chat: white rows and the light cool grey from the third reference image. */
html[data-theme-key="gecemavim"] body #show_chat#show_chat > li.ch_logs,
html[data-theme-key="gecemavim"] body #show_chat#show_chat > li.other_logs{background:#fbfbfd !important;}
html[data-theme-key="gecemavim"] body #show_chat#show_chat > li.ch_logs:nth-child(even),
html[data-theme-key="gecemavim"] body #show_chat#show_chat > li.other_logs:nth-child(even){background:rgb(191, 205, 212) !important;}
html[data-theme-key="gecemavim"] body #show_chat#show_chat > li.topic_log{background:rgb(108, 143, 163) !important;}

/* Toolbar artwork is black in the source sprites; make it white and legible. */
html[data-theme-key="gecemavim"] :is(#right_panel_bar,.panel_bar,.side_bar,.chat_footer) :is(i,.fa,.mdi){color:#ffffff !important;text-shadow:0 1px 2px #000 !important;}
html[data-theme-key="gecemavim"] :is(#right_panel_bar,.panel_bar,.side_bar,.chat_footer) :is(p,small,.panel_bar_text,.panel_bar_item_text){color:#ffffff !important;text-shadow:0 1px 2px #000 !important;}
html[data-theme-key="gecemavim"] :is(#right_panel_bar,.panel_bar,.side_bar,.chat_footer) img:not(.cavatar){filter:brightness(0) invert(1) !important;}
html[data-theme-key="gecemavim"] :is(#right_panel_bar,.panel_bar,.side_bar) svg{fill:#ffffff !important;stroke:#ffffff !important;}

/* Profile popup: remove every remaining gold/brown surface in favour of the
   same light cool-grey and navy family used by the rest of Gece Mavim. */
html[data-theme-key="gecemavim"] .yer6_profile_hero{
 background:linear-gradient(135deg,#155979 0%,#0d3851 55%,#061923 100%) !important;
 box-shadow:inset 0 -110px 95px rgba(2,13,22,.72) !important;
}
html[data-theme-key="gecemavim"] .yer6_profile_hero::after{
 background:linear-gradient(135deg,rgba(183,233,255,.18),transparent 43%,rgba(2,13,22,.56)) !important;
}
html[data-theme-key="gecemavim"] .yer6_profile_hero .avatar_spin{
 background:linear-gradient(145deg,#e9f8fd,#73b8cf 55%,#d7eef6) !important;
 box-shadow:0 11px 26px rgba(2,13,22,.45) !important;
}
html[data-theme-key="gecemavim"] .yer6_profile_hero .pro_rank,
html[data-theme-key="gecemavim"] .yer6_profile_hero .pro_mood{color:#d3edf7 !important;}
html[data-theme-key="gecemavim"] .yer6_profile_tabs{
 background:#f7fbfd !important;border-bottom-color:#a8cbd8 !important;
}
html[data-theme-key="gecemavim"] .yer6_profile_tabs ul li{color:#1b3d4d !important;}
html[data-theme-key="gecemavim"] .yer6_profile_tabs ul li:hover{
 background:#dcecf2 !important;color:#123548 !important;
}
html[data-theme-key="gecemavim"] .yer6_profile_tabs ul li.modal_selected{
 background:linear-gradient(145deg,#155979,#287da0) !important;color:#fff !important;
 box-shadow:0 3px 9px rgba(9,52,74,.25) !important;
}
html[data-theme-key="gecemavim"] .yer6_profile_body{
 background:linear-gradient(180deg,#f9fcfd,#e4eef2) !important;color:#172932 !important;
}
html[data-theme-key="gecemavim"] .yer6_profile_body :is(.listing_half_element.info_pro,.listing_element.info_pro,.profile_like){
 background:#fff !important;border-color:#b9d4df !important;box-shadow:0 4px 12px rgba(15,63,84,.08) !important;
}
html[data-theme-key="gecemavim"] .yer6_profile_body .listing_title{color:#35677d !important;}
html[data-theme-key="gecemavim"] .yer6_profile_body .listing_text{color:#172932 !important;}

/* Panel chat: match the supplied Gece Mavim reference — the room artwork stays
   visible and every message sits in a soft ice-blue, navy-edged speech card. */
html[data-theme-key="gecemavim"] :is(#chat_center,#warp_show_chat,#container_show_chat){background:transparent !important;}
html[data-theme-key="gecemavim"] body #show_chat#show_chat > li.ch_logs,
html[data-theme-key="gecemavim"] body #show_chat#show_chat > li.other_logs{
 background:transparent !important;border:0 !important;box-shadow:none !important;
 margin:0 0 4px !important;padding:0 8px 0 0 !important;color:#061923 !important;
}
html[data-theme-key="gecemavim"] body #show_chat#show_chat > li.ch_logs:nth-child(even),
html[data-theme-key="gecemavim"] body #show_chat#show_chat > li.other_logs:nth-child(even){background:transparent !important;}
html[data-theme-key="gecemavim"] body #show_chat#show_chat > li .chat_avatar{background:transparent !important;}
html[data-theme-key="gecemavim"] body #show_chat#show_chat > li .cavatar,
html[data-theme-key="gecemavim"] body #show_chat#show_chat > li .chat_avatar img{
 border:3px solid #e2f5fc !important;box-shadow:0 2px 7px rgba(5,35,55,.55) !important;
}
html[data-theme-key="gecemavim"] body #show_chat#show_chat > li .my_text{
 width:fit-content !important;max-width:calc(100% - 10px) !important;min-width:280px !important;
 background:transparent !important;
}
html[data-theme-key="gecemavim"] body #show_chat#show_chat > li .modern_message_card,
html[data-theme-key="gecemavim"] body #show_chat#show_chat > li .classic_message_balloon{
 width:fit-content !important;max-width:100% !important;min-width:280px !important;
 padding:8px 13px 7px 17px !important;border:3px solid #e1f5fc !important;
 border-left-color:#0a4e74 !important;border-radius:25px !important;
 background:linear-gradient(115deg,#d8f0fa 0%,#9bd5ee 48%,#5d9fc4 100%) !important;
 box-shadow:0 3px 8px rgba(4,38,58,.36),inset 0 1px 0 rgba(255,255,255,.7) !important;
 color:#061923 !important;
}
html[data-theme-key="gecemavim"] body #show_chat#show_chat > li :is(.modern_message_head,.modern_message_body,.modern_message_meta,.chatops,.cdate){color:#061923 !important;text-shadow:none !important;}
html[data-theme-key="gecemavim"] body #show_chat#show_chat > li.topic_log{
 background:linear-gradient(115deg,#cae8f5,#7fbad8) !important;border:2px solid #e1f5fc !important;
 border-left-color:#0a4e74 !important;border-radius:15px !important;color:#061923 !important;
}
@media (max-width:700px){
 html[data-theme-key="gecemavim"] body #show_chat#show_chat > li .my_text,
 html[data-theme-key="gecemavim"] body #show_chat#show_chat > li .modern_message_card,
 html[data-theme-key="gecemavim"] body #show_chat#show_chat > li .classic_message_balloon{min-width:0 !important;width:100% !important;}
}

/* Compact card rhythm from the supplied chat reference: keep the artwork clear
   and fit substantially more messages in the same panel height. */
html[data-theme-key="gecemavim"] body #show_chat#show_chat > li.ch_logs.modern_chat_row{
 grid-template-columns:62px minmax(0,1fr) !important;gap:0 !important;
 min-height:0 !important;margin:0 0 2px !important;padding-right:5px !important;
}
html[data-theme-key="gecemavim"] body #show_chat#show_chat > li.ch_logs.modern_chat_row > .chat_avatar,
html[data-theme-key="gecemavim"] body #show_chat#show_chat > li.ch_logs.modern_chat_row > .chat_avatar img{
 width:56px !important;height:56px !important;max-width:56px !important;max-height:56px !important;
}
html[data-theme-key="gecemavim"] body #show_chat#show_chat > li .my_text{min-width:220px !important;}
html[data-theme-key="gecemavim"] body #show_chat#show_chat > li .modern_message_card,
html[data-theme-key="gecemavim"] body #show_chat#show_chat > li .classic_message_balloon{
 min-width:220px !important;padding:3px 10px 3px 13px !important;border-width:2px !important;
 border-radius:21px !important;background:linear-gradient(112deg,#dff3fa 0%,#a5d8ed 53%,#5d9fc4 100%) !important;
}
html[data-theme-key="gecemavim"] body #show_chat#show_chat .modern_message_head{
 min-height:23px !important;margin:0 !important;font-size:20px !important;line-height:1.08 !important;
}
html[data-theme-key="gecemavim"] body #show_chat#show_chat .modern_message_body{
 margin:0 !important;padding:0 !important;font-size:16px !important;line-height:1.16 !important;
}
html[data-theme-key="gecemavim"] body #show_chat#show_chat .modern_message_meta{
 min-height:16px !important;margin:0 !important;padding:0 !important;font-size:10px !important;line-height:1 !important;
}
@media (max-width:700px){
 html[data-theme-key="gecemavim"] body #show_chat#show_chat > li.ch_logs.modern_chat_row{grid-template-columns:54px minmax(0,1fr) !important;}
 html[data-theme-key="gecemavim"] body #show_chat#show_chat > li.ch_logs.modern_chat_row > .chat_avatar,
 html[data-theme-key="gecemavim"] body #show_chat#show_chat > li.ch_logs.modern_chat_row > .chat_avatar img{width:50px !important;height:50px !important;max-width:50px !important;max-height:50px !important;}
 html[data-theme-key="gecemavim"] body #show_chat#show_chat > li .my_text,
 html[data-theme-key="gecemavim"] body #show_chat#show_chat > li .modern_message_card,
 html[data-theme-key="gecemavim"] body #show_chat#show_chat > li .classic_message_balloon{min-width:0 !important;width:100% !important;}
}
